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 |
---|---|---|---|---|---|---|
Returns the URL for the shape.
|
public void setHover(String aString)
{
if(RMUtils.equals(aString, getHover())) return; // If value already set, just return
Object oldValue = put("Hover", RMStringUtils.min(aString)); // Cache old value
firePropertyChange("Hover", oldValue, aString, -1); // Set new value and fire PropertyChange
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getURL() { return (String)get(\"RMShapeURL\"); }",
"public String getUri();",
"public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}",
"@Nullable\n public abstract String url();",
"public String getURL();",
"String getUri();",
"private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}",
"public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }",
"String getSpecUrl();",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"java.lang.String getUri();",
"java.lang.String getUri();",
"public String getUrl();",
"public String getUrl();",
"public String getUrl();",
"public String getUrl();",
"java.lang.String getPictureUri();",
"String getExternalFeatureModelURI();",
"Uri getUrl();",
"public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}",
"public static String getUrl() {\n return annotation != null ? annotation.url() : \"Unknown\";\n }",
"public abstract String getURL();",
"@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }",
"abstract public String imageUrl ();",
"public String getURL()\n {\n return getURL(\"http\");\n }",
"String url();",
"String getPreviewUrlTemplate();",
"@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}",
"String getUri( );",
"public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }",
"URI getUri();",
"@Override\n public String getUrl() {\n return getOriginUrl();\n }",
"public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}",
"public String url() {\n return server.baseUri().toString();\n }",
"@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"public String getURL() {\n\t\treturn getName();\n\t}",
"String getURI();",
"String getURI();",
"String getURI();",
"abstract String getUri();",
"public java.lang.String getSchemaUrl() {\n java.lang.Object ref = schemaUrl_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n schemaUrl_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getUrl() {\n Object ref = url_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n url_ = s;\n }\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getSchemaUrl() {\n java.lang.Object ref = schemaUrl_;\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 schemaUrl_ = s;\n return s;\n }\n }",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"String makePlanCommunityUrl();",
"@Api(1.2)\n @NonNull\n public String url() {\n return mRequest.buildOkRequest().url().toString();\n }",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"private String get_url() {\n File file = new File(url);\n return file.getAbsolutePath();\n }",
"public Shape(URL url) {\n this(url, \"cm\");\n }",
"public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}",
"@Override\r\n public String getURL() {\n return url;\r\n }",
"public static URL buildUrl() {\n Uri builtUri = Uri.parse(CONTENT_JSON_URL).buildUpon()\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }",
"public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}",
"@JsonIgnore\n\tpublic String getAbsoluteURI() {\n\t\treturn path.toUri().toString();\n\t}",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }",
"@Column(length = 2048)\r\n @PlaceHolder(key = \"schema\")\r\n public String getUrlPath() {\r\n return urlPath;\r\n }",
"@Override\r\n public String getFriendlyURI() {\r\n return createURI(false, false);\r\n }",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getURL() {\n return URL;\n }",
"String getT_modelUri();",
"URL getUrl();",
"public java.lang.String getUrl() {\n return url;\n }",
"private String getOriginUrl() {\n Uri.Builder builder = url.buildUpon();\n for (Param p : queryParams) {\n builder.appendQueryParameter(p.key, p.value);\n }\n return builder.build().toString();\n }",
"public String url() {\n return this.url;\n }",
"@Nonnull public String getURL() {\n return url;\n }",
"public abstract String getUrl();",
"java.lang.String getApiUrl();",
"@Override\n\tpublic String getURL() {\n\t\treturn null;\n\t}",
"@Override\r\n public String getUrl()\r\n {\n return null;\r\n }",
"public String getUrl() {\n Object ref = url_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n url_ = s;\n return s;\n }\n }",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"public String getUrl() {\n Object ref = url_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}",
"String getBaseUri();",
"String getShapeName();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public String getURL();",
"public String getUrl()\n {\n return this.url;\n }",
"public String getUrl()\n\t\t{\n\t\t\treturn \"https://developer.zohoapis.eu\";\n\t\t}",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getUrl() {\n Object ref = url_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public java.lang.String getUrl() {\n java.lang.Object ref = url_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n url_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] |
[
"0.79551977",
"0.6313671",
"0.629817",
"0.6273879",
"0.62678826",
"0.62290853",
"0.6210939",
"0.6162844",
"0.61344177",
"0.6132317",
"0.6132317",
"0.6088449",
"0.6088449",
"0.6086517",
"0.6086517",
"0.6086517",
"0.6086517",
"0.60402805",
"0.60322076",
"0.6024308",
"0.5987882",
"0.59875",
"0.5983719",
"0.5983608",
"0.5960147",
"0.59569556",
"0.59533906",
"0.59420025",
"0.59165585",
"0.59152055",
"0.5887302",
"0.5857972",
"0.5857931",
"0.5846684",
"0.58427423",
"0.5837814",
"0.5815242",
"0.5815242",
"0.5806292",
"0.580515",
"0.580515",
"0.580515",
"0.5802379",
"0.57802874",
"0.577445",
"0.57691514",
"0.57689226",
"0.57671356",
"0.57671356",
"0.57671356",
"0.57671356",
"0.57671356",
"0.57671356",
"0.5764064",
"0.57473236",
"0.5740864",
"0.5740864",
"0.5740864",
"0.5738112",
"0.5736777",
"0.5732248",
"0.57292175",
"0.571561",
"0.5715506",
"0.57149655",
"0.56936985",
"0.5692217",
"0.5691738",
"0.56909114",
"0.56909114",
"0.5685961",
"0.56810623",
"0.56621593",
"0.56582105",
"0.5656393",
"0.56539565",
"0.5647767",
"0.5639308",
"0.5633751",
"0.5630959",
"0.5627736",
"0.562738",
"0.56178516",
"0.56178516",
"0.5613452",
"0.5607067",
"0.5604643",
"0.5603477",
"0.56030464",
"0.56015193",
"0.56015193",
"0.56015193",
"0.56015193",
"0.56015193",
"0.55969614",
"0.5596943",
"0.55966973",
"0.5594546",
"0.5594546",
"0.5594471",
"0.5586936"
] |
0.0
|
-1
|
Returns the locked state of the shape (really just to prevent location/size changes in the editor).
|
public boolean isLocked() { return RMUtils.boolValue(get("Locked")); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ShapeState getFinalState();",
"ShapeState getInitialState();",
"void fucusLocks() {\n\t\t// check if mouse is inside the polygon\n\t\tif (checkPointInsidePolygon(point, P)) {\n\t\t\tstate = State.DRAG_AREA;\n\t\t} else\n\t\t\tstate = State.ROTATE;\n\n\t\t// check if mouse is close to the line\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (line[i].pointCloseToLine() && !mouseLockedToLine) {\n\t\t\t\tselectedLine = i;\n\t\t\t\tswitch (lineMode) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstate = State.SCALE_PROPORTIONALLY_LINE;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tstate = State.DRAG_FREE_LINE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// check if mouse is close to the point\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (point[i].isFocusedOnThePoint())\n\t\t\t\tswitch (pointMode) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstate = State.SCALE_FREE_POINT;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tstate = State.DRAG_FREE_POINT;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tstate = State.SCALE_PORPORTIONALLY_POINT;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t}",
"public boolean getLocked() {\n\t\treturn isLocked;\n\t}",
"public int getState()\r\n {\r\n if(left.get() && middle.get() && right.get())\r\n lineStatus = STATE_ALL;\r\n else if(!left.get() && !middle.get() && !right.get())\r\n lineStatus = STATE_NONE;\r\n else if(left.get() && !middle.get() && right.get())\r\n lineStatus = STATE_SPLIT;\r\n else if(middle.get())\r\n lineStatus = STATE_MIDDLE;\r\n else if(left.get())\r\n lineStatus = STATE_LEFT;\r\n else if(right.get())\r\n lineStatus = STATE_RIGHT;\r\n \r\n return lineStatus;\r\n }",
"public static MovingShape getInstance() {\n return state;\n }",
"public boolean getDoorIsLocked()\n {\n return isLocked;\n }",
"public @Bool boolean getLocked()\n\t\tthrows PropertyNotPresentException;",
"public final boolean getLocked() {\n return locked;\n }",
"public static Shape getCurrentShape() {\n\t\treturn currentShape;\n\t}",
"public GraphicsState getState(\n )\n {return state;}",
"public boolean isLocked() {\r\n return isLocked;\r\n }",
"public boolean isLocked() {\n return mLocked;\n }",
"public boolean isLocked() {\n return mLocked;\n }",
"public boolean isLocked() {\n return isLocked;\n }",
"public ReentrantReadWriteLock getStateLock() {\n return stateLock;\n }",
"public Map<String, Boolean> getLockedOperations() {\n return this.lockedOperations;\n }",
"IShape getCurrentShape();",
"public long getLockStatus() {\r\n return lockStatus;\r\n }",
"public State getCircleState()\n {\n return iconPartStates[3];\n }",
"public boolean isShapeMasked() {\n return this.shapeMasked;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public boolean isLocked();",
"public boolean isLocked() {\n\t\treturn isLocked;\n\t}",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"private State getState() {\n if (isSelected() && !isArmed()) {\n // normal black tick\n return State.SELECTED;\n } else if (isSelected() && isArmed()) {\n // don't care grey tick\n return State.OTHER;\n } else {\n // normal deselected\n return State.NOT_SELECTED;\n }\n }",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public boolean getPenState() {\r\n\t\treturn penState;\r\n\t}",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"boolean isLocked();",
"boolean isLocked();",
"public Rectangle getShape() \n\t{\n\t\treturn box;\n\t}",
"public State getInternalArcState()\n {\n return iconPartStates[2];\n }",
"public @Bool boolean isLocked()\r\n\t\tthrows PropertyNotPresentException;",
"public LockingMode lockingMode() {\n return lockingMode;\n }",
"public boolean isLocked()\n\t{\n\t\treturn locked;\n\t}",
"Shape getShape();",
"public Shape getShape() {\n return shape;\n }",
"public Shape getShape() {\n\treturn shape;\n }",
"public int getRotationState() {\n return this.rotationState;\n }",
"public boolean isLocked() {\r\n \treturn false;\r\n }",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"public Boolean getLocked() throws NotLoadedException {\n return locked.getValue();\n }",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"public SizeState getSizeState() {\n return this.sizeState;\n }",
"public Shape getShape() { return shape; }",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"@Override\n\tpublic boolean isLocked() { return true; }",
"public boolean GetIsLock()\n {\n return this._lock;\n }",
"@ManyToOne\n\t@JoinColumn(name=\"LockStatus\", nullable=false)\n\t@Fetch(FetchMode.SELECT)\n\t@NotFound(action=NotFoundAction.IGNORE)\n\tpublic AccessStatus getLockStatus() {\n\t\treturn this.lockStatus;\n\t}",
"public boolean getState( ) { return state; }",
"protected final Object getTreeLock() {\n return Component.LOCK;\n }",
"Shape getHighlightShape();",
"public boolean isLock() {\n return isLock;\n }",
"public boolean isLocked() {\n\t\tif (locked == true)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public void setPoolLocked(boolean lockingState){poolLocked=lockingState;}",
"public BoundingShape getBoundingShape() {\n\treturn boundingShape;\n }",
"public Shape getShape();",
"public void setIsLocked(\r\n\t\t\t@Bool Boolean locked);",
"public Boolean getState() {\n return state;\n }",
"Rect getCollisionShape()\n {\n return new Rect(x+2,y+2,x +(width-2), y+(height-2));\n }",
"@ApiModelProperty(required = true, value = \"1APP8 Managed administrative status\")\n @JsonProperty(\"locked\")\n public Boolean getLocked() {\n return locked;\n }",
"public static String getCurrentShapeName() {\n\t\treturn currentShapeName;\n\t}",
"public AccessibleStateSet getAccessibleStateSet() {\n AccessibleStateSet states = super.getAccessibleStateSet();\n states.add(AccessibleState.SINGLE_LINE);\n return states;\n }",
"public boolean isLocked() {\n return (lockId == null ? false : true);\n }",
"LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();",
"public boolean isUnlocked() {\n return !isSolid;\n }",
"public Long getState() {\n return state;\n }",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public Object getPersistentShape(int _shape)\n/* 215: */ {\n/* 216:302 */ switch (_shape)\n/* 217: */ {\n/* 218: */ case 0: \n/* 219:303 */ return this.presentation;\n/* 220: */ case -1: \n/* 221:304 */ return this.icon;\n/* 222: */ }\n/* 223:306 */ return null;\n/* 224: */ }",
"public String getLockType() {\n return this.lockType;\n }",
"public int[] getShape() {\n return shape;\n }",
"public States getPilotState() {\n\t\treturn state;\n\t}",
"private boolean updateShape(Position p){\n\t\t// only change when the cell is not end or start pos\n\t\tif (!m.getSixEndPos()[p.getX()][p.getY()] && !m.getSixStartPos()[p.getX()][p.getY()]){\n\t\t\tif (m.getShape()[p.getX()][p.getY()]){\n\t\t\t\tm.getShape()[p.getX()][p.getY()] = false;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm.getShape()[p.getX()][p.getY()] = true;\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public Ellipse2D getShape()\r\n {\r\n if(this.stable){\r\n return new Ellipse2D.Double(x, y, XSIZE*2, YSIZE*2);\r\n }\r\n else\r\n return new Ellipse2D.Double(x, y, XSIZE, YSIZE);\r\n }",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"protected S state() {\n return state;\n }",
"public LockOnChange getLockOnChangeMode(){\r\n return this.lockOnChangeMode;\r\n }",
"@Override\n\tpublic GridsterLayoutState getState() {\n\t\treturn (GridsterLayoutState) super.getState();\n\t}",
"public boolean isLocked() {\n boolean locked = super.isLocked();\n if (trackerPanel != null) {\n locked = locked || trackerPanel.getCoords().isLocked();\n }\n return locked;\n }",
"public void setLocked(boolean value) {\n\t\tisLocked = value;\n\t}",
"public GameObjectState getState() {\r\n\t\treturn state;\r\n\t}",
"ShapeType getShapeType();",
"public Shape getShape() {\n\t\treturn null;\n\t}",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public final OpLockDetails getOpLock() {\n\t\treturn m_oplock;\n\t}",
"protected Shape getShape()\n {\n return null;\n }",
"public GameState getState(){\n\t\tGameState State=new GameState(this.points, this.currentBoard.getState());\n\t\t\n\t\treturn State;\n\t}",
"boolean isDrawState()\n\t{\n\t\treturn !state.contains(0);\n\t}",
"public synchronized int getState() {\n return mState;\n }",
"public synchronized int getState() {\n return mState;\n }",
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"public boolean isLockEnabled() {\r\n\t\treturn lockEnabled;\r\n\t}",
"@DISPID(1611006024) //= 0x60060048. The runtime will prefer the VTID if present\n @VTID(99)\n boolean onlyCurrentOperatedSolidSetInGeometry();"
] |
[
"0.66251713",
"0.6376556",
"0.61425275",
"0.61277735",
"0.6011844",
"0.6000714",
"0.5954315",
"0.59408426",
"0.59235644",
"0.59032875",
"0.58528495",
"0.58343697",
"0.58175254",
"0.58175254",
"0.5794128",
"0.5794101",
"0.5755998",
"0.57454",
"0.57283455",
"0.5721256",
"0.57173544",
"0.5699288",
"0.5699288",
"0.5699288",
"0.56670445",
"0.5646877",
"0.5642249",
"0.5641256",
"0.5637231",
"0.5619273",
"0.5609776",
"0.5608685",
"0.558505",
"0.558505",
"0.5579008",
"0.55540884",
"0.554981",
"0.55345494",
"0.5525023",
"0.5518731",
"0.5507471",
"0.5502764",
"0.5496875",
"0.5482395",
"0.5477726",
"0.5463293",
"0.5460362",
"0.54564416",
"0.5454356",
"0.54327905",
"0.54107606",
"0.5409992",
"0.5408523",
"0.53890324",
"0.53455913",
"0.5321925",
"0.5319813",
"0.5316637",
"0.52924895",
"0.5292355",
"0.52761257",
"0.52662385",
"0.5259011",
"0.52555996",
"0.52460873",
"0.5232382",
"0.5228481",
"0.52262354",
"0.52074146",
"0.5205508",
"0.5204847",
"0.5190334",
"0.5185332",
"0.51841843",
"0.5178356",
"0.5177726",
"0.51765037",
"0.51757014",
"0.5170324",
"0.5169205",
"0.51659197",
"0.5163915",
"0.51542574",
"0.51448035",
"0.514451",
"0.5141641",
"0.51415086",
"0.51365626",
"0.51355714",
"0.5129567",
"0.51279354",
"0.51261526",
"0.51137835",
"0.50917506",
"0.5089757",
"0.50680214",
"0.50680214",
"0.5059654",
"0.50566864",
"0.5049478"
] |
0.61299264
|
3
|
Sets the locked state of the shape (really just to prevent location/size changes in the editor).
|
public void setLocked(boolean aValue)
{
if(aValue==isLocked()) return; // If value already set, just return
Object oldValue = put("Locked", aValue); // Cache old value
firePropertyChange("Locked", oldValue, aValue, -1); // Set new value and fire PropertyChange
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setLocked(boolean locked) {\n if (locked) {\n display = imgLockedMouseOver;\n isLocked = true;\n } else {\n display = imgUnlockedMouseOver;\n isLocked = false;\n }\n repaint();\n }",
"public void setIsLocked(\r\n\t\t\t@Bool Boolean locked);",
"public void setLocked(boolean locked)\n\t{\n\t\tthis.locked = locked;\n\t}",
"void fucusLocks() {\n\t\t// check if mouse is inside the polygon\n\t\tif (checkPointInsidePolygon(point, P)) {\n\t\t\tstate = State.DRAG_AREA;\n\t\t} else\n\t\t\tstate = State.ROTATE;\n\n\t\t// check if mouse is close to the line\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (line[i].pointCloseToLine() && !mouseLockedToLine) {\n\t\t\t\tselectedLine = i;\n\t\t\t\tswitch (lineMode) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstate = State.SCALE_PROPORTIONALLY_LINE;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tstate = State.DRAG_FREE_LINE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// check if mouse is close to the point\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (point[i].isFocusedOnThePoint())\n\t\t\t\tswitch (pointMode) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstate = State.SCALE_FREE_POINT;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tstate = State.DRAG_FREE_POINT;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tstate = State.SCALE_PORPORTIONALLY_POINT;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t}",
"public void setLocked(boolean value) {\n\t\tisLocked = value;\n\t}",
"void setUserLocked(boolean b);",
"public void setShapeMasked(boolean shapeMasked) {\n boolean oldShapeMasked = this.shapeMasked;\n this.shapeMasked = shapeMasked;\n propertyChangeSupport.firePropertyChange(\"shapeMasked\", oldShapeMasked, shapeMasked);\n }",
"public void setPoolLocked(boolean lockingState){poolLocked=lockingState;}",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"void setValueLocked(boolean valueLocked);",
"public final void setLocked(final boolean lockedNew) {\n this.locked = lockedNew;\n }",
"public void setShifterLocked(boolean isLocked) {\n isShifterLocked = isLocked;\n }",
"public void lock() {\n islandLocked = true;\n }",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"public void lock() {\n\t\tlocked = true;\n\t}",
"public void lockGame() {\n this.isLocked = true;\n btnLockGame.setEnabled(false);\n }",
"public void setFillArea(boolean b)\r\n/* 34: */ {\r\n/* 35: 26 */ this.fillArea = b;repaint();\r\n/* 36: */ }",
"@Override\r\n\tpublic void transformComponent(AffineTransform transform, Set<JVGShape> locked) {\n\t}",
"public void SetIsLock(boolean isLock)\n {\n this._lock = isLock;\n }",
"public final void setSelectingLocked(boolean selectingLocked) {\n this.selectingLocked = selectingLocked;\n }",
"@Override\r\n public void setShape (Shape shape,\r\n double grade)\r\n {\r\n// // Check status\r\n// if (glyph.isTransient()) {\r\n// logger.error(\"Setting shape of a transient glyph\");\r\n// }\r\n\r\n // Blacklist the old shape if any\r\n Shape oldShape = getShape();\r\n\r\n if ((oldShape != null) && (oldShape != shape)\r\n && (oldShape != Shape.GLYPH_PART)) {\r\n forbidShape(oldShape);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"Shape {} forbidden for {}\",\r\n oldShape, glyph.idString());\r\n }\r\n }\r\n\r\n if (shape != null) {\r\n // Remove the new shape from the blacklist if any\r\n allowShape(shape);\r\n }\r\n\r\n // Remember the new shape\r\n evaluation = new Evaluation(shape, grade);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"{} assigned {}\", glyph.idString(), evaluation);\r\n }\r\n }",
"public void lock(String stateName) throws ProcessManagerException {\r\n try {\r\n State state = processModel.getState(stateName);\r\n ((UpdatableProcessInstanceManager) Workflow.getProcessInstanceManager())\r\n .lock(currentProcessInstance, state, currentUser);\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_LOCK_FAILED\", e);\r\n }\r\n }",
"protected void setShape(Shape shape) {\n\t\tif (shape != null) {\n\t\t\t_shape = shape;\n\t\t\tthis.setLocation(shape.getLocation());\n\t\t\tthis.setDimensions(shape.getDimensions());\n\t\t}\n\t}",
"public void setDoorIsLocked(boolean isLocked)\n {\n this.isLocked = isLocked;\n }",
"public void lockDoor(nodePositions side) {\n lockedDoors[side.getNumVal()] = true;\n }",
"public void setRenderInsideShape(boolean renderInsideShape) {\n boolean oldRenderInsideShape = this.renderInsideShape;\n this.renderInsideShape = renderInsideShape;\n propertyChangeSupport.firePropertyChange(\"renderInsideShape\", oldRenderInsideShape, renderInsideShape);\n }",
"@Override\n public void setRectangle() {\n switch (direction){\n case 0:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 2:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 1:\n rectangle.setLocation((int)x+13,(int)y+8);\n break;\n case 3:\n rectangle.setLocation((int)x+2,(int)y+8);\n break;\n }\n\n }",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public void setAsDoor()\n\t{\n\t\toriginalX = this.x2;\n\t\toriginalY = this.y2;\n\t\tisDoor = true;\t\n\t\tstateOfDoor=DOOR_STATE_CLOSED;\n\t\t\n\t\tswingingWay1=true;//May change directions if there is an obstacle\n\t\tticks = 0;\n\t}",
"public void setShape1(boolean b)\n\t{\n\t\tthis.shape1 = b;\n\t}",
"public void setLockStatus(long lockStatus) {\r\n this.lockStatus = lockStatus;\r\n }",
"protected void setObjectHeld(boolean oHeld) { objHeld = oHeld; }",
"public void setPenState(boolean state) {\r\n\t\tthis.penState=state;\r\n\t}",
"public void setMyShape(int shapeIndex){this.myShape = shapeIndex;}",
"public void setShape(Info shape) {\n \n }",
"@Override\n public void setArmed(boolean state) {\n if (!shouldChangeArm(state))\n return;\n this.armed = state;\n changeArmedAppearance(state);\n ((WorkspaceView) canvas).invalidateElement(this);\n }",
"public void setIsFileLocked(boolean isFileLocked) {\n this.isFileLocked = isFileLocked;\n }",
"public void setShape( final FireShapes shape ) {\r\n\t\tthis.shape = shape;\r\n\t}",
"public void setLockEnabled(boolean lockEnabled) {\r\n\t\tthis.lockEnabled = lockEnabled;\r\n\t}",
"public void assignShape() {\n\t\t\n\t}",
"public void setInternalArcState(State state)\n {\n iconPartStates[2] = state;\n this.paintImmediately(this.getVisibleRect());\n }",
"public void setCircleState(State state)\n {\n iconPartStates[3] = state;\n this.paintImmediately(this.getVisibleRect());\n }",
"@Override\n public void set(boolean state) {\n if (isInverted) {\n super.set(!state);\n } else {\n super.set(state);\n }\n }",
"void setShape(IReadableShape shape) {\n keyframes.clear();\n if (!Objects.isNull(shape)) {\n this.shape = shape;\n this.updateKeyframes();\n }\n this.resetFrameList();\n\n }",
"public void setShape(ShapeType shape) {\n\t\tthis.shape = shape;\n\t}",
"public void setGliding ( boolean gliding ) {\n\t\texecute ( handle -> handle.setGliding ( gliding ) );\n\t}",
"public void unlock() {\n islandLocked = false;\n }",
"void setBox(boolean box);",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLocked(boolean locked, Connection conn) throws SQLException, NotLoadedException {\n SqlUpdateCommand sqlUpdateCommand = new SqlUpdateCommand(\"Person\", \"\\\"Username\\\" = '\" + userName.getValue() + \"'\");\n sqlUpdateCommand.addBooleanValue(\"Locked_YN\", locked);\n conn.createStatement().execute(sqlUpdateCommand.toString());\n this.locked.setValueOnLoadedObject(locked);\n }",
"@Override\r\n public void forbidShape (Shape shape)\r\n {\r\n if (forbiddenShapes == null) {\r\n forbiddenShapes = new HashSet<>();\r\n }\r\n\r\n forbiddenShapes.add(shape);\r\n }",
"public void setProtected()\n {\n ensureLoaded();\n m_flags.setProtected();\n setModified(true);\n }",
"public IBlockState setRotation(World world, BlockPos pos, IBlockState state, EnumFacing face, boolean hasHalf, boolean topHalf);",
"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}",
"protected abstract void setCell(int x, int y, boolean state);",
"@NonNull\n public T setLockOrientation(boolean lockOrientation) {\n mLockOrientation = lockOrientation;\n return (T) this;\n }",
"@Override\r\n\tpublic void onLock(boolean lock) {\n\t\tthis.lock = lock;\r\n\t}",
"protected void setDrawing(boolean drawing) {\n\tmDrawing = drawing;\n}",
"public void makeReadOnly()\n {\n m_readOnly = true;\n }",
"public void makeReadOnly()\n {\n m_readOnly = true;\n }",
"private void setSelectedCreatingShape(KeyShapeGenerator gen) {\n GaudrophoneController.getController().getCanvasManager().setState(State.CreatingShape);\n GaudrophoneController.getController().getCanvasManager().setStoredKeyGenerator(gen);\n }",
"public void setEnabled (boolean enabled) {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\tint flags = enabled ? 0 : OS.Pt_BLOCKED | OS.Pt_GHOST;\r\n\tOS.PtSetResource (topHandle, OS.Pt_ARG_FLAGS, flags, OS.Pt_BLOCKED | OS.Pt_GHOST);\r\n}",
"public void setSelection (boolean selected) {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_FLAGS, selected ? OS.Pt_SET : 0, OS.Pt_SET);\r\n}",
"private void rotateShape(double degree) {\n takeModuleOfShape(index);\n\n shiftMemento(index);\n draw.setMementos(mementos);\n\n mementos[mementoIndex - 1].setDegree(mementos[mementoIndex - 1].getDegree() + degree);\n\n shapes.get(shapes.size() - 1).draw(mementos[mementoIndex - 1].getRectangle(), mementos[mementoIndex - 1].getDegree());\n\n mementos = draw.getMementos();\n\n draw.revalidate();\n draw.repaint();\n gui.arrayPanel[1].repaintPanel();\n flagCopy = true;\n draw.setFlag(false);\n }",
"protected void resetShapeTimeline(RMShape aShape)\n{\n RMTimeline timeline = aShape.getTimeline(); if(timeline==null) return;\n aShape.undoerDisable();\n int time = timeline.getTime(); timeline.setTime(0); timeline.setTime(time);\n aShape.undoerEnable();\n}",
"public abstract void setFilled(boolean filled);",
"@Override\n\tpublic boolean isLocked() { return true; }",
"public void setFreeShape(boolean freeShape) {\r\n this.freeShape = freeShape;\r\n }",
"@Override\n public void setState(int state) {\n synchronized(LOCK_STATE) {\n this.state = state;\n }\n }",
"public void setShape(short shape) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 2, shape);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 2, shape);\n\t\t}\n\t}",
"public void setShapeType(ShapeType shapeType) {\n }",
"void setPickEnabled(boolean enable);",
"public void setShipState(Point xy, int state) {\r\n\t\tshipStateMap.put(xy, state);\r\n\t\tif (state==3)\r\n\t\t\tnumberOfAllowedShotsRemaining --;\r\n\t}",
"public void setShape(int pValue){\n\t\t\n\t\tswitch(pValue){\n\t\t\n\t\tcase(0): iShape = eTileShape.CIRCLE;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(1): iShape = eTileShape.CLUB;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(2): iShape = eTileShape.DIAMOND;\n\t\t\tbreak;\n\t\t\n\t\tcase(3): iShape = eTileShape.STAR;\n\t\t\tbreak;\n\t\t\n\t\tcase(4): iShape = eTileShape.SPADE;\n\t\t\tbreak;\n\t\t\n\t\tcase(5): iShape = eTileShape.SQUARE;\n\t\t\tbreak;\n\t\t\n\t\tdefault: System.out.print(\"Error: Out of bounds Shape Value\");\n\t\t}//end case\n\t}",
"@Override\n public void setLockOwner(Object lockOwner) {\n }",
"private void setGeometryComboEnabled(boolean enabled) {\n\n\t\tthis.comboGeometryList.setEnabled(enabled);\n\t}",
"public void setOn(final boolean ON) {\n on = ON;\n init(getInnerBounds().width, getInnerBounds().height);\n repaint(getInnerBounds());\n }",
"public void setGeometry(Geometry g) {\n this.geometry = (Geometry) g.clone();\n }",
"public void setShapeMode(int _shapeMode) {\n\t\tshapeMode = _shapeMode;\n\t}",
"private void setCurrentPos() {\n\t\tcurrentPos=layout_Circle[l.y][l.x];\n\t\tcurrentPos.setFill(Paint.valueOf(\"Red\"));\n\n\t\tsetValidMoves();\n\t}",
"public void reset(){\n\t\topen[0]=false;\n\t\topen[1]=false;\n\t\topen[2]=false;\n\t\tcount = 0;\n\t\t//System.out.println(\"The lock has been reset.\");\n\t}",
"public void setShouldFillShape(boolean shouldFillShape) {\n boolean oldShouldFillShape = this.shouldFillShape;\n this.shouldFillShape = shouldFillShape;\n propertyChangeSupport.firePropertyChange(\"shouldFillShape\", oldShouldFillShape, shouldFillShape);\n }",
"@Override\r\n\tvoid setProperty(BoundedShape anObject, Point aNewValue) {\n\t\tRectangle newBounds = new Rectangle (aNewValue.x, aNewValue.y, anObject.getWidth(), anObject.getHeight());\r\n\t\tanObject.setBounds(newBounds);\r\n\t}",
"public void set(int x, int y, int width, int height, int rotation) {\n\t\tobox.set(x, y, width, height, rotation);\n\t}",
"public void setShape(String shape)\n\t{\n \t \n \tlength.setVisible(false); \n \twidth.setVisible(false); \n \theight.setVisible(false); \n \tradius.setVisible(false); \n \tradius2.setVisible(false); \n \troll.setVisible(false); \n \tpitch.setVisible(false); \n \tyaw.setVisible(false); \n \tquality.setVisible(false); \n \tsides.setVisible(false);\n \t\n \tlengthText.setVisible(false); \n \twidthText.setVisible(false); \n \theightText.setVisible(false); \n \tradiusText.setVisible(false); \n \tradius2Text.setVisible(false); \n \trollText.setVisible(false); \n \tpitchText.setVisible(false); \n \tyawText.setVisible(false); \n \tqualityText.setVisible(false); \n \tsidesText.setVisible(false);\n \t\n\t\tif(shape.equals(\"Cube\"))\n \t{\n \t\tlengthText.setVisible(true);\n \t\tlength.setVisible(true);\n \t\twidthText.setVisible(true);\n \t\twidth.setVisible(true);\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\tlength.setText(\"1\");\n \t\twidth.setText(\"1\");\n \t\theight.setText(\"1\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t}\n \telse if(shape.equals(\"Sphere\"))\n \t{\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tqualityText.setVisible(true);\n \t\tquality.setVisible(true);\n \t\t\n \t\tradius.setText(\"1\");\n \t\tquality.setText(\"15\");\n \t}\n \telse if(shape.equals(\"Prism\"))\n \t{\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tsidesText.setVisible(true);\n \t\tsides.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\theight.setText(\"1\");\n \t\tradius.setText(\"1\");\n \t\tsides.setText(\"4\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t\t\n \t}\n \telse if(shape.equals(\"Cylinder\"))\n \t{\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\t//yawText.setVisible(true);\n \t\t//yaw.setVisible(true);\n \t\t\n \t\theight.setText(\"1\");\n \t\tradius.setText(\"1\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\t//yaw.setText(\"0\");\n \t}\n \telse if(shape.equals(\"Torus\"))\n \t{\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tradius2Text.setVisible(true);\n \t\tradius2.setVisible(true);\n \t\tqualityText.setVisible(true);\n \t\tquality.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\tradius.setText(\"1\");\n \t\tradius2.setText(\"2\");\n \t\tquality.setText(\"15\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t}\n \t\n\t}",
"public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\n }\n }",
"void lockRootEdge(LockMode mode);",
"public synchronized void setOpLock(OpLockDetails oplock)\n\t\tthrows ExistingOpLockException {\n\n\t\tsuper.setOpLock( oplock);\n\n\t\t// Set the state cache for the remote oplock\n\t\t\n\t\tif ( oplock instanceof RemoteOpLockDetails) {\n\t\t\tRemoteOpLockDetails remoteOplock = (RemoteOpLockDetails) getOpLock();\n\t\t\tremoteOplock.setStateCache( getStateCache());\n\t\t}\n\t}",
"private void lockFocus() {\n try {\n // This is how to tell the camera to lock focus.\n mPreviewRequestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, CameraMetadata.CONTROL_AF_TRIGGER_START);\n // Tell #mCaptureCallback to wait for the lock.\n mState = STATE_WAITING_LOCK;\n mCaptureSession.capture(mPreviewRequestBuilder.build(), mCaptureCallback, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }",
"public static void setMesh(){\n if(sMesh){\n sMesh = false;\n }else{\n sMesh = true;\n }\n }",
"private void setBusyCursor(){\r\n\t\tlensdiagram.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\t}",
"public EpsShape(Shape shape, boolean filled) {\n\t\tsuper();\n\t\tthis.shape=shape;\n\t\tthis.filled=filled;\n\t}",
"void setState(boolean state);",
"@Override\r\n public void allowShape (Shape shape)\r\n {\r\n if (forbiddenShapes != null) {\r\n forbiddenShapes.remove(shape);\r\n }\r\n }",
"protected abstract void setShapes();",
"@Override\r\n public void setShape (Shape shape)\r\n {\r\n setShape(shape, Evaluation.ALGORITHM);\r\n }",
"public void setRotationAngle(float mAngle) {\n mPolygonShapeSpec.setRotation(mAngle);\n rebuildPolygon();\n invalidate();\n }"
] |
[
"0.6847",
"0.65565294",
"0.6551755",
"0.6496926",
"0.6359011",
"0.6270181",
"0.6241266",
"0.6081722",
"0.6032707",
"0.60134184",
"0.5980538",
"0.59606767",
"0.5916679",
"0.58635837",
"0.58525527",
"0.58411527",
"0.5803506",
"0.5790519",
"0.57696766",
"0.5759548",
"0.57231736",
"0.56782293",
"0.5660581",
"0.5652536",
"0.5624494",
"0.5619381",
"0.560873",
"0.56017524",
"0.558891",
"0.5584292",
"0.55294716",
"0.55179954",
"0.55083865",
"0.5478592",
"0.5469121",
"0.5468338",
"0.5447984",
"0.5423826",
"0.5396137",
"0.53662735",
"0.53300184",
"0.5306534",
"0.5302904",
"0.52970445",
"0.5256626",
"0.5254219",
"0.52405995",
"0.52341354",
"0.5232545",
"0.5227316",
"0.5227316",
"0.5227316",
"0.5223775",
"0.5211593",
"0.5206179",
"0.5205504",
"0.5204888",
"0.5195956",
"0.51887846",
"0.5183306",
"0.51807916",
"0.5157442",
"0.5157442",
"0.51445407",
"0.5143327",
"0.5141738",
"0.51387686",
"0.5130354",
"0.51211864",
"0.51105255",
"0.51095486",
"0.5102458",
"0.50915426",
"0.5076757",
"0.5075181",
"0.5071548",
"0.50695807",
"0.50679076",
"0.50661784",
"0.5060668",
"0.5056024",
"0.502771",
"0.50272125",
"0.502221",
"0.50209546",
"0.5016575",
"0.5006634",
"0.49963468",
"0.49941474",
"0.49941042",
"0.49929377",
"0.49909443",
"0.49901265",
"0.49889058",
"0.498388",
"0.49724427",
"0.49672857",
"0.4964732",
"0.49634665",
"0.49600992"
] |
0.56889987
|
21
|
Returns the timeline for animating shape property changes.
|
public RMTimeline getTimeline() { return getTimeline(false); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void animUpdate(PropertyChangeEvent anEvent)\n{\n // Return if shape is a new-born\n if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return;\n \n // If change is anim property, add record\n if(isAnimProperty(anEvent.getPropertyName()))\n addTimelineEntry(anEvent.getPropertyName(), anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Fill\n else if(anEvent.getPropertyName().equals(\"Fill\")) {\n RMFill f1 = (RMFill)anEvent.getNewValue();\n RMFill f2 = (RMFill)anEvent.getOldValue();\n RMColor c1 = f1!=null? f1.getColor() : RMColor.clearWhite;\n RMColor c2 = f2!=null? f2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"Color\", c1, c2);\n }\n \n // Add anim records for Fill.Color\n else if(anEvent.getPropertyName().equals(\"Fill.Color\"))\n addTimelineEntry(\"Color\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke\n else if(anEvent.getPropertyName().equals(\"Stroke\")) {\n RMStroke s1 = (RMStroke)anEvent.getNewValue();\n RMStroke s2 = (RMStroke)anEvent.getOldValue();\n RMColor c1 = s1!=null? s1.getColor() : RMColor.clearWhite;\n RMColor c2 = s2!=null? s2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"StrokeColor\", c1, c2);\n float lw1 = s1!=null? s1.getWidth() : 0;\n float lw2 = s2!=null? s2.getWidth() : 0;\n addTimelineEntry(\"StrokeWidth\", lw1, lw2);\n }\n \n // Add anim records for Stroke.Color\n else if(anEvent.getPropertyName().equals(\"Stroke.Color\"))\n addTimelineEntry(\"StrokeColor\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke.Width\n else if(anEvent.getPropertyName().equals(\"Stroke.Width\"))\n addTimelineEntry(\"StrokeWidth\", anEvent.getNewValue(), anEvent.getOldValue());\n}",
"public Timeline getLineMovement()\r\n {\r\n return timeline;\r\n }",
"protected void setTimeline(RMTimeline aTimeline)\n{\n // Stop listening to old timeline property changes\n if(getTimeline()!=null) getTimeline().removePropertyChangeListener(this);\n \n // Set anim\n put(\"Anim\", aTimeline);\n \n // Set owner to this shape and start listening for property changes\n if(aTimeline!=null) {\n aTimeline.setOwner(this);\n aTimeline.addPropertyChangeListener(this);\n }\n}",
"public Timeline getTimeline() { return this.timeline; }",
"public Timeline getTimeline() {\n return this.timeline;\n }",
"public interface IMotion {\r\n\r\n /**\r\n * Gets the initial state of the shape.\r\n *\r\n * @return IShape of the initial state of the shape.\r\n */\r\n IShape getStartShape();\r\n\r\n /**\r\n * Gets the end state of the shape.\r\n *\r\n * @return IShape of the end state of the shape.\r\n */\r\n IShape getEndShape();\r\n\r\n /**\r\n * Gets the start time of the motion.\r\n *\r\n * @return start time of motion.\r\n */\r\n int getStartTime();\r\n\r\n /**\r\n * Gets the end time of the motion.\r\n *\r\n * @return end time of motion.\r\n */\r\n int getEndTime();\r\n}",
"public interface IShape {\n\n /**\n * Adds a new motion to the list if it does not overlap with any existing motion, and add the\n * keyframes that align with the start and end points of this motion.\n *\n * @param motion the motion to be added\n * @throws IllegalArgumentException if the motion overlaps with an existing motion in the list\n */\n void addMotion(IMotion motion);\n\n /**\n * Add the given keyframe to this animation, and edit the motions to align with the new keyframe.\n *\n * @param keyframe the keyframe to be added.\n */\n void addKeyframe(IKeyframe keyframe);\n\n /**\n * Removes the keyframe and reformats motions at the given time.\n *\n * @param time the tick to remove the keyframe at\n */\n void removeKeyframe(int time);\n\n /**\n * Adds the given keyframe to this shape, overwriting the one at the time it has.\n *\n * @param newKeyframe the new keyframe to add.\n */\n void editKeyframe(IKeyframe newKeyframe);\n\n /**\n * Returns all the motions of this shape object.\n *\n * @return a list containing all motions.\n */\n List<IMotion> getMotions();\n\n /**\n * Returns all keyframes of this shape object.\n *\n * @return a list containing all keyframes.\n */\n List<IKeyframe> getKeyframes();\n\n /**\n * Calculates the current position of this shape at the given tick, and sets the values.\n *\n * @param tick the tick to calculate position at\n * @throws IllegalArgumentException if tick is not positive or if no motion runs at that tick\n */\n void calculateMotionAtTick(int tick);\n\n /**\n * Returns a string containing the name of the type of shape this object is.\n *\n * @return the string representing the name of the type of this object.\n */\n String getType();\n\n /**\n * Gets dimensions field of this Shape.\n *\n * @return the dimension field\n */\n Dimension getDimensions();\n\n /**\n * Gets the color field of this Shape.\n *\n * @return the color field\n */\n Color getColor();\n\n /**\n * Gets the position field of this Shape.\n *\n * @return the position field\n */\n Point getPosition();\n\n /**\n * Checks that there are no gaps in the run time of this shape's motions.\n *\n * @return true if there are no gaps, false otherwise\n */\n boolean isPlayable();\n\n /**\n * Returns the final tick value for this shape.\n *\n * @return the final tick value\n */\n int getFinalTick();\n\n /**\n * Returns the first tick motions start for this shape.\n *\n * @return the first tick value.\n */\n int getFirstTick();\n\n /**\n * Gets the name of this shape.\n *\n * @return the name\n */\n String getName();\n\n /**\n * Checks if this shape has a motion during this time.\n *\n * @param tick the tick to check\n * @return if the shape has a motion\n */\n boolean isRunningDuringTick(int tick);\n\n}",
"private void updateKeyframes() {\n keyframes.clear();\n ArrayList<IMotion> motions = new ArrayList<>(shape.getMotions());\n\n if (motions.size() > 0) {\n IMotion start = motions.get(0);\n keyframes.add(start.getIntermediateState(start.getStartTime()));\n }\n\n for (IMotion motion : motions) {\n IState keyframe = motion.getIntermediateState(motion.getEndTime());\n\n if (!keyframes.contains(keyframe)) {\n keyframes.add(keyframe);\n }\n }\n }",
"List<IEvent> getEventList(IShape shape);",
"Animation getStructure();",
"Animation getAnimation() {\n return currAnimation;\n }",
"public Timeline createPartLineAnimation(int duration, int stop_duration, ArrayList<Coordinate> affected_points, int slow_duration, int slow_stop_duration, Circle vehicle, ArrayList<Coordinate> line_coordinates_part, EventHandler<MouseEvent> handler, boolean detour_delay)\r\n {\r\n Timeline affected_timeline = new Timeline();\r\n int original_duration = duration;\r\n int original_stop_duration = stop_duration;\r\n addLineVehicles(vehicle);\r\n vehicle.setOnMouseClicked(handler);\r\n\r\n // add all keyframes to timeline - one keyframe means path from one coordinate to another coordinate\r\n // vehicle waits in stop for 1 seconds and go to another coordinate for 2 seconds (in default mode)\r\n int delta_time = 0;\r\n KeyFrame waiting_in_stop = null;\r\n\r\n //int affected_stops_count = 0;\r\n for (int i = 0; i < line_coordinates_part.size() - 1; i++) {\r\n // if we go through street affected by slow traffic\r\n if (line_coordinates_part.get(i).isInArray(affected_points) && line_coordinates_part.get(i+1).isInArray(affected_points))\r\n {\r\n // duration between coordinates and duration of waiting in stop is different\r\n duration = slow_duration;\r\n stop_duration = slow_stop_duration;\r\n }\r\n else\r\n {\r\n // else use default duration\r\n duration = original_duration;\r\n stop_duration = original_stop_duration;\r\n }\r\n\r\n for (Stop s : this.getStopsMap()) {\r\n // if we are in stop, we wait 'stop_duration' time\r\n if (line_coordinates_part.get(i).getX() == s.getCoordinate().getX() && line_coordinates_part.get(i).getY() == s.getCoordinate().getY()) {\r\n waiting_in_stop = new KeyFrame(Duration.seconds(delta_time + stop_duration), // this means waiting in stop for some time\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates_part.get(i).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates_part.get(i).getY()));\r\n\r\n delta_time = delta_time + stop_duration;\r\n\r\n break;\r\n }\r\n }\r\n // we travelled for 'duration' time\r\n KeyFrame end = new KeyFrame(Duration.seconds(delta_time + duration), // this means that the path from one coordinate to another lasts 2 seconds\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates_part.get(i + 1).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates_part.get(i + 1).getY()));\r\n\r\n if (waiting_in_stop != null) {\r\n affected_timeline.getKeyFrames().addAll(end, waiting_in_stop);\r\n } else {\r\n affected_timeline.getKeyFrames().addAll(end);\r\n }\r\n\r\n delta_time = delta_time + duration;\r\n }\r\n\r\n this.setLineMovement(affected_timeline); // set movement of specified line\r\n\r\n if (detour_delay == false)\r\n {\r\n this.setDelay(duration, slow_duration, affected_points.size());\r\n }\r\n else\r\n {\r\n this.delay = this.detour_streets.size() * duration - duration;\r\n }\r\n\r\n\r\n return affected_timeline;\r\n }",
"public Animation Animation() {\r\n return animation;\r\n }",
"public RMTimeline getTimeline(boolean create)\n{\n // Get timeline from attributes map\n RMTimeline timeline = (RMTimeline)get(\"Anim\");\n \n // If null and create is requested, create\n if(timeline==null && create)\n setTimeline(timeline = new RMTimeline(this));\n\n // Return timeline\n return timeline;\n}",
"private String drawAllShapes() {\n\n /*\n Have list of list for each shape and the motions of each shape\n Need to iterate through the frames and for each motion in a frame\n add it to the corresponding shape in the list of lists\n */\n StringBuilder shapeSVG = new StringBuilder();\n Map<Integer, List<Shape>> animationFrames = this.model.getFrames();\n List<List<Shape>> shapeStates = new ArrayList<>();\n for (Integer key : new TreeSet<>(animationFrames.keySet())) {\n List<Shape> singleFrame = animationFrames.get(key);\n for (Shape shape : singleFrame) {\n if (!this.containsShapeList(shapeStates, shape.getName())) {\n List<Shape> shapeMotions = new ArrayList<>();\n shapeMotions.add(singleFrame.get(singleFrame.indexOf(shape)));\n shapeStates.add(shapeMotions);\n } else {\n shapeStates.get(this.findShape(shapeStates, shape.getName()))\n .add(singleFrame.get(singleFrame.indexOf(shape)));\n }\n }\n }\n\n for (List<Shape> shape : shapeStates) {\n shapeSVG.append(this.drawSingleShape(shape.get(0).getName(), shape.get(0).getType(), shape))\n .append(\"\\n\");\n }\n\n return shapeSVG.toString();\n }",
"public interface IShape {\n\n /**\n * Adds a new KeyFrame to this Shape, if it does not conflict with another KeyFrame that occurs at the same time as\n * it. If an identical KeyFrame is added at an identical time, no exception will be thrown, but if a non-identical\n * KeyFrame is added at the same time as another KeyFrame, an exception will be thrown.\n *\n * @param k the {@link KeyFrame} to be added to this IShape object.\n * @throws IllegalArgumentException\n */\n void addKeyFrame(KeyFrame k) throws IllegalArgumentException;\n\n /**\n * Removes the KeyFrame at tick t, if it exists. If the KeyFrame does not exist, then an IllegalArgumentException is\n * thrown.\n *\n * @param tick The tick that the KeyFrame to remove occurs at.\n * @return The KeyFrame that was removed, if the method found a KeyFrame to remove\n * @throws IllegalArgumentException if no KeyFrame exists at the specified time parameter for this shape.\n */\n KeyFrame removeKeyFrame(int tick) throws IllegalArgumentException;\n\n /**\n * Adds a {@link Motion} to this IShape. The added motion must occur <b>immediately after the last motion in this\n * IShape has ended</b>, in order to prevent any gaps in motion from occurring. To modify/add/change the path/motion\n * of this shape in an earlier state, add a KeyFrame instead.\n *\n * @param m\n * @throws IllegalArgumentException\n */\n void addMotion(Motion m) throws IllegalArgumentException;\n\n Motion removeMotion(int tick) throws IllegalArgumentException;\n\n /**\n * Gets the unique string identifier of this Shape.\n *\n * @return the unique string name of this shape.\n */\n String getName();\n\n /**\n * Returns all of the KeyFrames pertaining to this Shape.\n *\n * @return A map of all of this Shape's {@link KeyFrame}\n */\n List<KeyFrame> getKeyFrames();\n\n /**\n * Gets this shapes type enum.\n *\n * @return the enum ShapeType of this shape.\n */\n ShapeType getShapeType();\n\n /**\n * Returns a list of this shapes Motion objects, ordered by start time. The list will always contain a continuous\n * flow of back to back motions.\n *\n * @return a list of this Shape's motion objects\n */\n List<Motion> getMotions();\n\n //boolean isVisible();\n\n}",
"protected void resetShapeTimeline(RMShape aShape)\n{\n RMTimeline timeline = aShape.getTimeline(); if(timeline==null) return;\n aShape.undoerDisable();\n int time = timeline.getTime(); timeline.setTime(0); timeline.setTime(time);\n aShape.undoerEnable();\n}",
"public Animation getMovingAnimation(){\r\n\t\treturn moving;\r\n\t}",
"public List<AnimationCallback> getAnimationCallbacks() {\n return callbacks;\n }",
"@VTID(34)\n com.exceljava.com4j.excel.TimelineState getTimelineState();",
"protected abstract float getFrameTimeNormalAnimation();",
"public void setTime(int aTime)\n{\n // Get shape timeline and set time (if non-null)\n RMTimeline timeline = getTimeline();\n if(timeline!=null) {\n undoerDisable();\n timeline.setTime(aTime);\n undoerEnable();\n }\n \n // If children have same animator as this shape, recurse setTime to children\n if(getAnimator()==getChildAnimator())\n for(int i=0, iMax=getChildCount(); i<iMax; i++)\n getChild(i).setTime(aTime);\n}",
"public Timeline createLineAnimation(AnchorPane anchor_pane_map, int duration, int stop_duration, ArrayList<Coordinate> affected_points, int slow_duration, int slow_stop_duration, EventHandler<MouseEvent> handler, boolean detour_delay)\r\n {\r\n // coordinates of path for vehicle on transportline\r\n ArrayList<Coordinate> line_coordinates = this.transportLinePath();\r\n // ids of coordinates of path for vehicle on transportline\r\n ArrayList<String> line_coordinates_ids = this.transportLinePathIDs();\r\n // all stops for transportline\r\n List<Stop> line_stops = this.getStopsMap();\r\n // create vehicle for line (circle)\r\n Circle vehicle = new Circle(this.getStopsMap().get(0).getCoordinate().getX(), this.getStopsMap().get(0).getCoordinate().getY(), 10);\r\n vehicle.setStroke(Color.AZURE);\r\n vehicle.setFill(this.getTransportLineColor());\r\n vehicle.setStrokeWidth(5);\r\n addLineVehicles(vehicle);\r\n vehicle.setOnMouseClicked(handler);\r\n\r\n Timeline timeline = new Timeline();\r\n int original_duration = duration;\r\n int original_stop_duration = stop_duration;\r\n\r\n // add all keyframes to timeline - one keyframe means path from one coordinate to another coordinate\r\n // vehicle waits in stop for 1 seconds and go to another coordinate for 2 seconds (in default mode)\r\n int delta_time = 0;\r\n KeyFrame waiting_in_stop = null;\r\n for (int i = 0; i < line_coordinates.size() - 1; i++) {\r\n // if we go through street affected by slow traffic\r\n if (line_coordinates.get(i).isInArray(affected_points) && line_coordinates.get(i+1).isInArray(affected_points))\r\n {\r\n // duration between coordinates and duration of waiting in stop is different\r\n duration = slow_duration;\r\n stop_duration = slow_stop_duration;\r\n }\r\n else\r\n {\r\n // else use default duration\r\n duration = original_duration;\r\n stop_duration = original_stop_duration;\r\n }\r\n\r\n for (Stop s : line_stops) {\r\n // if we are in stop, we wait 'stop_duration' time\r\n if (line_coordinates.get(i).getX() == s.getCoordinate().getX() && line_coordinates.get(i).getY() == s.getCoordinate().getY()) {\r\n waiting_in_stop = new KeyFrame(Duration.seconds(delta_time + stop_duration), // this means waiting in stop for some time\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates.get(i).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates.get(i).getY()));\r\n\r\n delta_time = delta_time + stop_duration;\r\n break;\r\n }\r\n }\r\n // we travelled for 'duration' time\r\n KeyFrame end = new KeyFrame(Duration.seconds(delta_time + duration), // this means that the path from one coordinate to another lasts 2 seconds\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates.get(i + 1).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates.get(i + 1).getY()));\r\n\r\n if (waiting_in_stop != null) {\r\n timeline.getKeyFrames().addAll(end, waiting_in_stop);\r\n } else {\r\n timeline.getKeyFrames().addAll(end);\r\n }\r\n\r\n delta_time = delta_time + duration;\r\n }\r\n\r\n timeline.setCycleCount(Timeline.INDEFINITE); // infinity number of repetitions\r\n anchor_pane_map.getChildren().add(vehicle);\r\n\r\n if (detour_delay == false)\r\n {\r\n this.setDelay(duration, slow_duration, affected_points.size());\r\n }\r\n else\r\n {\r\n this.delay = this.detour_streets.size() * duration - duration;\r\n }\r\n\r\n return timeline;\r\n }",
"public CanaryTimeline getTimeline() {\n return this.timeline;\n }",
"private void createAnimation () {\n // KeyFrame frame = new KeyFrame(Duration.millis(MILLISECOND_DELAY), e -> myManager.step());\n // myAnimation = new Timeline();\n // myAnimation.setCycleCount(Timeline.INDEFINITE);\n // myAnimation.getKeyFrames().add(frame);\n }",
"public int getAnimation() {\n\t\t\treturn animation;\n\t\t}",
"@Test\n public void testDifferentChangeTypeOverlap() {\n testAnimation.addShape(c, 1, 100);\n move1 = new MoveShape(c, 500.0, 100.0, 300.0, 300.0);\n size1 = new ScaleShape(c, 120.0, 60.0, 85.0, 10.67);\n colorChange1 = new ChangeColor(c,\n 0, 0, 1,\n 0, 1, 0);\n testAnimation.addEvent(c, move1, 20, 45);\n testAnimation.addEvent(c, size1, 28, 88);\n testAnimation.addEvent(c, colorChange1, 36, 95);\n assertEquals(\"Shapes:\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"C moves from (500.0,100.0) to (300.0,300.0) from time t=20 to t=45\\n\"\n + \"C changes height from 60.0 to 10.67 and changes width from 120.0 to 85.0\"\n + \" from time t=28 to t=88\\nC changes color from (0,0,1) to (0,1,0) from \" +\n \"time t=36 \"\n + \"to t=95\\n\",\n testAnimation.toString());\n }",
"@Test\n public void testEverything() {\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n move1 = new MoveShape(r, 200.0, 200.0, 300.0, 300.0);\n move2 = new MoveShape(c, 500.0, 100.0, 500.0, 400.0);\n move3 = new MoveShape(r, 300.0, 300.0, 200.0, 200.0);\n\n size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0);\n\n colorChange1 = new ChangeColor(c, 0, 0, 1, 0, 1, 0);\n\n testAnimation.addEvent(r, move1, 10, 50);\n testAnimation.addEvent(c, move2, 20, 70);\n testAnimation.addEvent(c, colorChange1, 50, 80);\n testAnimation.addEvent(r, size1, 51, 70);\n testAnimation.addEvent(r, move3, 70, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R moves from (200.0,200.0) to (300.0,300.0) from time t=10 to t=50\\n\"\n + \"C moves from (500.0,100.0) to (500.0,400.0) from time t=20 to t=70\\n\"\n + \"C changes color from (0,0,1) to (0,1,0) from time t=50 to t=80\\n\"\n + \"R changes width from 50.0 to 25.0 from time t=51 to t=70\"\n + \"\\nR moves from (300.0,300.0) to (200.0,200.0) from time\"\n + \" t=70 to t=100\\n\",\n testAnimation.toString());\n }",
"public static Range getAnimation(Moves move)\n {\n Range animationRange = new Range();\n\n switch (move)\n {\n case IDLE:\n animationRange.start = 1;\n animationRange.end = 50;\n animationRange.loop = true;\n break;\n case MAGIC:\n animationRange.start = 50;\n animationRange.end = 100;\n animationRange.loop = false;\n break;\n case DEFEND:\n animationRange.start = 100;\n animationRange.end = 150;\n animationRange.loop = false;\n break;\n case ATTACK:\n animationRange.start = 150;\n animationRange.end = 210;\n animationRange.loop = false;\n break;\n }\n\n return animationRange;\n }",
"public ConstraintAnimation getConstraintAnimation() {\n return constraintAnimation;\n }",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"@Test\n public void testAddMove() {\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n // Instantiate the moves\n move1 = new MoveShape(r, 200.0, 200.0, 300.0, 300.0);\n move2 = new MoveShape(c, 500.0, 100.0, 500.0, 400.0);\n move3 = new MoveShape(r, 300.0, 300.0, 200.0, 200.0);\n\n testAnimation.addEvent(r, move1, 10, 50);\n testAnimation.addEvent(c, move2, 20, 70);\n testAnimation.addEvent(r, move3, 70, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R moves from (200.0,200.0) to (300.0,300.0) from time t=10 to t=50\\n\"\n + \"C moves from (500.0,100.0) to (500.0,400.0) from time t=20 to t=70\\n\"\n + \"R moves from (300.0,300.0) to (200.0,200.0) from time t=70 to t=100\\n\",\n testAnimation.toString());\n }",
"public ObservableList<Shape> drawDataProperty() { return drawData; }",
"public AnimationHook animate() {\n return animation.start();\n }",
"public void propertyChange(PropertyChangeEvent anEvent)\n{\n // Get DeepChangeListener count (just return if zero)\n int deepListenerCount = getListenerCount(DeepChangeListener.class); if(deepListenerCount==0) return;\n \n // If change is fill/stroke, convert property name to \"Fill.xxx\" or \"Stroke.xxx\" for the sake of animation\n if(anEvent.getSource() instanceof RMFill) {\n Object source = anEvent.getSource();\n String prefix = source==getFill()? \"Fill\" : source==getStroke()? \"Stroke\" : null;\n String propertyName = prefix + \".\" + anEvent.getPropertyName();\n anEvent = new PropertyChangeEvent(this, propertyName, anEvent.getOldValue(), anEvent.getNewValue());\n repaint();\n }\n \n // Propagate to this shape's DeepChangeListeners (if present)\n for(int i=0, iMax=getListenerCount(DeepChangeListener.class); i<iMax; i++)\n getListener(DeepChangeListener.class, i).deepChange(this, anEvent);\n}",
"public Boolean getAnimate () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.animate);\r\n\t}",
"@Override\n public String toStringSvg(int speed, IShape shape) {\n String result = \"\";\n\n result += \"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + this.getStartTime() * 1000.0 / speed + \"ms\\\" dur=\\\"\"\n + this.timeInterval * 1000.0 / speed + \"ms\\\" \"\n + this.toStringSvgScaleXChange(shape)\n + \" fill=\\\"freeze\\\"/>\\n\";\n result += \"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + this.getStartTime() * 1000.0 / speed + \"ms\\\" dur=\\\"\"\n + this.timeInterval * 1000.0 / speed + \"ms\\\" \"\n + this.toStringSvgScaleYChange(shape)\n + \" fill=\\\"freeze\\\"/>\";\n\n return result;\n }",
"@Test\n public void testInstantChangeConvertsToTotalChange() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addAction(new ChangeColorAction(\"R\", 0, 10,\n new Color(0, 0, 0), new Color(10, 10, 10)));\n textView1.animate(model1, 1, out);\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Lower-left corner: (500.0,200.0), Width: 10.0, Height: 10.0, Color: \"\n + \"(0.0,0.0,0.0)\\n\"\n + \"Appears at t=0.0s\\n\"\n + \"Disappears at t=10.0s\\n\"\n + \"\\n\"\n + \"Shape R changes color from (0.0,0.0,0.0) to (10.0,10.0,10.0) from \"\n + \"t=0.0s to t=10.0s\\n\",\n out.toString());\n }",
"@Test\n public void testAddShape() {\n // add the \"R\" & \"C\" shapes to the animation\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\", testAnimation.toString());\n }",
"private Line getTrajectory() {\n Point target = this.topLeft.add(this.velocity).asPoint();\n return new Line(this.topLeft.asPoint(), target);\n }",
"public void setLineMovement(Timeline t)\r\n {\r\n timeline = t;\r\n }",
"public interface IReadOnlyAnimationModel {\n\n /**\n * Gets the map of shape id's to shapes.\n *\n * @return the LinkedHashMap of shapes.\n */\n LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();\n\n /**\n * Gets the canvas dimension.\n *\n * @return the dimension of the canvas.\n */\n Dimension getCanvasDimension();\n\n /**\n * Gets the left most x and top most y.\n *\n * @return the Point of the x and y coordinates.\n */\n Point getTopXY();\n}",
"public interface IAction {\n /**\n * A function that returns the state of the object at a particular tick. The object's state is in\n * proportion to where the tick is in the action's interval (between start and end time).\n *\n * @param tick an int that represents the frame of the animation per unit of time.\n * @param accumulatorShape keeps track of the shape at tick.\n * @return the shape at the tick.\n * @throws IllegalArgumentException if the tick is negative. if the shape is null.\n */\n IShape getShapeAtTick(double tick, IShape accumulatorShape);\n\n /**\n * Gets the current shape of the Action object.\n *\n * @return the current shape of the Action object.\n */\n IShape getCurrentShape();\n\n /**\n * Gets the time of the Action object.\n *\n * @return the time of the Action object.\n */\n Time getTime();\n\n /**\n * Gets the type of the Action object.\n *\n * @return the type of the Action object.\n */\n Action getType();\n\n /**\n * Gets the name of the Action object.\n *\n * @return the name of the Action object.\n */\n String getName();\n\n /**\n * Gets the old position of the Action object.\n *\n * @return the old position of the Action object.\n */\n Position getOldPosition();\n\n /**\n * Gets the new position of the Action object.\n *\n * @return the new position of the Action object.\n */\n Position getNewPosition();\n\n /**\n * Gets the old with of the Action object.\n *\n * @return the old width of the Action object.\n */\n double getOldWidth();\n\n /**\n * Gets the old height of the Action object.\n *\n * @return the new height of the Action object.\n */\n double getOldHeight();\n\n /**\n * Gets the new width of the Action object.\n *\n * @return the new width of the Action object.\n */\n double getNewWidth();\n\n /**\n * Gets the new height of the Action object.\n *\n * @return the new height of the Action object.\n */\n double getNewHeight();\n\n /**\n * Gets the old color of the Action object.\n *\n * @return the old color of the Action object.\n */\n RGB getOldColor();\n\n /**\n * Gets the new color of the Action object.\n *\n * @return the new color of the Action object\n */\n RGB getNewColor();\n}",
"protected abstract Animator[] getAnimators(View itemView);",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"public Optional<Animation> animation() {\n return Optional.empty();\n }",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"@Test\n public void testShapesNoMovement() throws IOException {\n AnimationModel am = new SimpleAnimationModel();\n StringBuilder sb = new StringBuilder();\n am.addShape(\"Reccy\", ShapeType.RECTANGLE);\n int[] rgb = {50, 40, 20};\n am.addMotion(10, 15, 15, 15, 9,\n 9, 30, 30, 4, 4, rgb,\n rgb, \"Reccy\");\n am.startAnimation();\n IAnimationView av = new SVGAnimationView(am, 2, sb);\n av.render();\n assertEquals(\"<svg viewBox = \\\"0 0 0 0\\\" version=\\\"1.1\\\" \"\n + \"xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"Reccy\\\" x=\\\"15.00\\\" y=\\\"9.00\\\" width=\\\"30.00\\\" \"\n + \"height=\\\"4.00\\\" fill=\\\"rgb(50,40,20)\\\" visibility=\\\"hidden\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"0.0ms\\\" dur=\\\"5000.0ms\\\" \"\n + \"attributeName=\\\"visibility\\\" from=\\\"hidden\\\" to=\\\"visible\\\" fill=\\\"freeze\\\" /></rect>\\n\"\n + \"</svg>\", sb.toString());\n }",
"public Shape getShape() { return shape; }",
"public ArrayList<TimeLineEvent> getTimeLineEvents() {\n\t\treturn info;\n\t}",
"@Override\n protected int getRevealTime()\n {\n // If not Line chart or Trace.Disabled, return default\n Trace trace = getTrace();\n boolean showPointsOrArea = trace.isShowPoints() || trace.isShowArea();\n if (showPointsOrArea || getTrace().isDisabled())\n return ContentView.DEFAULT_REVEAL_TIME;\n\n // Calc factor to modify default time\n double maxLen = getTraceLineShapeArcLength();\n double factor = Math.max(1, Math.min(maxLen / 500, 2));\n\n // Return default time times factor\n return (int) Math.round(factor * ContentView.DEFAULT_REVEAL_TIME);\n }",
"Animation getShowAnimation();",
"public Timeline getTimeline(){\n return null;\n }",
"public interface Moves {\n\n /**\n * Applies the move onto a shape when it is on the correct tick.\n *\n * @return the shape with the move applied onto it\n */\n ShapeState apply(int tick);\n\n\n /**\n * Gets the initial tick of which the move is applicable on.\n *\n * @return the initial tick.\n */\n ShapeState getInitialState();\n\n /**\n * Gets the final tick of which the move is applicable on.\n *\n * @return the final tick.\n */\n ShapeState getFinalState();\n\n /**\n * Checks whether the move is finished at a certain time.\n *\n * @param tick the time to be checked.\n * @return whether the move is finished at that time.\n *\n */\n boolean isMoveFinished(int tick);\n\n\n\n}",
"private void setBeginAndEnd() {\n for (int i=1;i<keyframes.size();i++){\n if (curTime <= ((PointInTime)keyframes.get(i)).time){\n beginPointTime=(PointInTime)keyframes.get(i-1);\n endPointTime=(PointInTime)keyframes.get(i);\n return;\n }\n }\n beginPointTime=(PointInTime)keyframes.get(0);\n if (keyframes.size()==1)\n endPointTime=beginPointTime;\n else\n endPointTime=(PointInTime)keyframes.get(1);\n curTime=((PointInTime)keyframes.get(0)).time;\n }",
"public java.util.ArrayList<android.animation.Animator> getChildAnimations() { throw new RuntimeException(\"Stub!\"); }",
"public boolean isAnimatableProperty() {\n\t\treturn false;\n\t}",
"public RMAnimator getAnimator() { return getAnimator(false); }",
"public void setTimeline(Timeline timeline) {\n/* 485 */ if (this.timeline != timeline) {\n/* 486 */ this.timeline = timeline;\n/* 487 */ fireChangeEvent();\n/* */ } \n/* */ }",
"@Test\n public void testColorChange() {\n testAnimation.addShape(c, 6, 100);\n // Instantiate the color change\n colorChange1 = new ChangeColor(c,\n 0, 0, 1,\n 0, 1, 0);\n colorChange2 = new ChangeColor(c,\n 0, 1, 0,\n 25, 1, 0);\n testAnimation.addEvent(c, colorChange1, 50, 80);\n testAnimation.addEvent(c, colorChange2, 81, 90);\n assertEquals(\"Shapes:\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"C changes color from (0,0,1) to (0,1,0) from time t=50 to t=80\\n\"\n + \"C changes color from (0,1,0) to (25,1,0) from time t=81 to t=90\\n\",\n testAnimation.toString());\n }",
"public static String getTimelineOfPhaseChanges(String schema, Long rs_id) {\r\n\r\n\t\tif (rs_id == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\treturn TimeLine.packupArray(getPhaseChangesForRunningSim(\r\n\t\t\t\tschema, rs_id));\r\n\t}",
"public IAnimationSyncSet getCurrentAnimationSyncSet()\n\t{\n\t\treturn _animationSyncSet;\n\t}",
"private Animation animateBranchGrowing(List<Branch> branchGeneration, int depth, Duration duration) {\n final ParallelTransition sameDepthBranchAnimation = new ParallelTransition();\n\n for (final Branch branch : branchGeneration) {\n final KeyValue keyValue = new KeyValue(branch.base.endYProperty(), branch.length);\n final KeyFrame keyFrame = new KeyFrame(duration, keyValue);\n final Timeline branchGrowingAnimation = new Timeline(keyFrame);//line is growing by changinh endY from 0 to brunch.lengt\n\n final PauseTransition pauseTransition = new PauseTransition();\n pauseTransition.setDuration(Duration.ONE);\n pauseTransition.setOnFinished(event -> branch.base.setStrokeWidth(branch.length / 25));\n\n sameDepthBranchAnimation.getChildren().add(\n new SequentialTransition(\n //To set width from 0 to some value we use pause transition with duration.one millisecond\n //trick to show lines\n pauseTransition,\n branchGrowingAnimation\n )\n );\n }\n\n return sameDepthBranchAnimation;\n\n }",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"public Shape getShape() {\n return shape;\n }",
"@Test\n public void testAddSizeChange() {\n testAnimation.addShape(r, 1, 100);\n // Instantiate the size change\n size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0);\n size2 = new ScaleShape(r, 25.0, 100.0, 25.0, 13.0);\n testAnimation.addEvent(r, size1, 51, 70);\n testAnimation.addEvent(r, size2, 71, 73);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R changes width from 50.0 to 25.0 from time t=51 to t=70\"\n + \"\\nR changes height from 100.0 to 13.0 from time t=71 to t=73\\n\",\n testAnimation.toString());\n }",
"private void shiftFrames(RMShape aShape, int fromTime, int aShiftTime)\n{\n // If shape timeline available, have it shift records\n if(aShape.getTimeline()!=null)\n aShape.getTimeline().shiftRecords(fromTime, aShiftTime);\n \n // Forward shift frame on to shape children\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n shiftFrames(aShape.getChild(i), fromTime, aShiftTime);\n}",
"@Test\n public void testGaps() throws IOException {\n int[] a = {3, 4, 5};\n Motion motion1 = new Motion(2, 3, 3, 4, 5, 5, 7,\n 8,\n 9, 10, a, a);\n Motion motion2 = new Motion(4, 5, 4, 3, 5, 6, 8,\n 8,\n 10, 10, a, a);\n AnimationModel am = new SimpleAnimationModel();\n am.addShape(\"R\", ShapeType.RECTANGLE);\n am.addMotion(2, 3, 3, 4, 5, 5, 7,\n 8,\n 9, 10, a, a, \"R\");\n am.addMotion(4, 5, 4, 3, 5, 6, 8,\n 8,\n 10, 10, a, a, \"R\");\n am.startAnimation();\n StringBuilder sb = new StringBuilder();\n IAnimationView av = new SVGAnimationView(am, 2, sb);\n av.render();\n assertEquals(\"<svg viewBox = \\\"0 0 0 0\\\" version=\\\"1.1\\\" \"\n + \"xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"R\\\" x=\\\"3.00\\\" y=\\\"5.00\\\" width=\\\"7.00\\\" height=\\\"9.00\\\" \"\n + \"fill=\\\"rgb(3,4,5)\\\" visibility=\\\"hidden\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"0.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"visibility\\\" from=\\\"hidden\\\" to=\\\"visible\\\" fill=\\\"freeze\\\" />\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"3\\\" to=\\\"4\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"width\\\" from=\\\"7\\\" to=\\\"8\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"height\\\" from=\\\"9\\\" to=\\\"10\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"4\\\" to=\\\"3\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"5\\\" to=\\\"6\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"</svg>\", sb.toString());\n }",
"public double getCircleTime();",
"@Override\r\n public void changed(ObservableValue<? extends Duration> observable, Duration oldValue, Duration newValue) {\r\n\r\n // skip starting at 0/0\r\n if( oldValue == Duration.ZERO)\r\n return;\r\n\r\n // get current location\r\n double x = pen.getTranslateX();\r\n double y = pen.getTranslateY();\r\n\r\n // initialize the location\r\n if( oldLocation == null) {\r\n oldLocation = new Location();\r\n oldLocation.x = x;\r\n oldLocation.y = y;\r\n return;\r\n }\r\n\r\n // draw line\r\n gc.setStroke(Color.BLUE);\r\n gc.setFill(Color.YELLOW);\r\n gc.setLineWidth(7);\r\n gc.strokeLine(oldLocation.x, oldLocation.y, x, y);\r\n\r\n // update old location with current one\r\n oldLocation.x = x;\r\n oldLocation.y = y;\r\n }",
"@Test\n public void testChangeCanvas() throws IOException {\n AnimationModel am = new SimpleAnimationModel();\n int[] i = {40, 40, 40};\n StringBuilder sb = new StringBuilder();\n am.addShape(40, 40, 45, \"Reccy\", false, 100, 150,\n 20, 15, ShapeType.RECTANGLE);\n am.addMotion(5, 10, 100, 150, 150,\n 200, 20, 15, 15, 10, i,\n i, \"Reccy\");\n am.setCanvas(30, 30, 360, 400);\n am.startAnimation();\n IAnimationView av = new SVGAnimationView(am, 2, sb);\n av.render();\n assertEquals(\"<svg viewBox = \\\"30 30 360 400\\\" \"\n + \"version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"Reccy\\\" x=\\\"100.00\\\" y=\\\"150.00\\\" width=\\\"20.00\\\" \"\n + \"height=\\\"15.00\\\" fill=\\\"rgb(40,40,40)\\\" visibility=\\\"hidden\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"0.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"visibility\\\" from=\\\"hidden\\\" to=\\\"visible\\\" fill=\\\"freeze\\\" />\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"100\\\" to=\\\"150\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"150\\\" to=\\\"200\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"width\\\" from=\\\"20\\\" to=\\\"15\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"height\\\" from=\\\"15\\\" to=\\\"10\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"</svg>\", sb.toString());\n }",
"private Line getMiddleTrajectory() {\n Point startPoint;\n if (movingRight()) {\n startPoint = middleRight();\n } else if (movingLeft()) {\n startPoint = middleLeft();\n } else {\n return null;\n }\n\n return new Line(startPoint, this.velocity);\n }",
"void currentFrame(List<IShape> shapes);",
"public boolean getAnimated() {\r\n return animated.get();\r\n }",
"private void runAnimations(ObservableList<Node> recs, List<List<List<double[]>>> animations) {\n // The amount of time to pause between each step of animations\n long delay = 1000 / arrSize;\n\n // Time levels must occur in order\n for(int timeLevelIndex = 0; timeLevelIndex < animations.size(); timeLevelIndex++) {\n List<List<double[]>> timeLevel = animations.get(timeLevelIndex);\n\n int maxEvents = findMaxEvents(timeLevel);\n\n // Displaying each step of merge sort at the corresponding location of the input\n for(int eventIndex = 0; eventIndex < maxEvents; eventIndex++) {\n for(int locationIndex = 0; locationIndex < timeLevel.size(); locationIndex++) {\n List<double[]> location = timeLevel.get(locationIndex);\n\n if(eventIndex < location.size()) {\n double[] event = location.get(eventIndex);\n\n switch ((int) event[0]) {\n case 1:\n ((Rectangle) recs.get((int) event[1])).setFill(DEFAULT_COLOR);\n ((Rectangle) recs.get((int) event[2])).setFill(DEFAULT_COLOR);\n break;\n case 2:\n ((Rectangle) recs.get((int) event[1])).setFill(COMPARISON_COLOR);\n ((Rectangle) recs.get((int) event[2])).setFill(COMPARISON_COLOR);\n break;\n case 3:\n ((Rectangle) recs.get((int) event[1])).setFill(CHANGE_COLOR);\n ((Rectangle) recs.get((int) event[2])).setFill(CHANGE_COLOR);\n break;\n case 4:\n ((Rectangle) recs.get((int) event[1])).setHeight(event[2]);\n break;\n }\n }\n }\n\n try {\n Thread.sleep(delay);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public MMPCOrderNodeNext[] getTransitions() {\n\n MMPCOrderNodeNext[]\tretValue\t= new MMPCOrderNodeNext[m_next.size()];\n\n m_next.toArray(retValue);\n\n return retValue;\n\n }",
"public Shape getShape() {\n\treturn shape;\n }",
"@Override\n\tpublic synchronized Collection<Transition> getTransitions() {\n\t\treturn this.transitions;\n\t}",
"public abstract void animationStarted();",
"public void calcTimeTrace() \r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tRandom generator = new Random ();\t\r\n \r\n for (int i=1; i<numFrames;i++){\r\n\t\t\tIJ.showProgress(i, numFrames);\r\n\t\t\tfor (int j=0;j<numParticles;j++){\r\n\t\t\t\tdouble changeState=generator.nextDouble();\r\n\t\t\t\tif (timeTrace[i-1][j]==1){\r\n\t\t\t\t\tif (changeState<switchOff) timeTrace[i][j]=0;\r\n\t\t\t\t\telse timeTrace[i][j]=1;\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif (timeTrace[i-1][j]==0){\r\n\t\t\t\t\tif (changeState<switchOn) timeTrace[i][j]=1;\r\n\t\t\t\t\telse timeTrace[i][j]=0;\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n }\t\r\n\t}",
"public Shape createStrokedShape(Shape shape) {\n/* 140 */ GeneralPath result = new GeneralPath();\n/* 141 */ PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), 1.0D);\n/* 142 */ float[] points = new float[6];\n/* 143 */ float moveX = 0.0F, moveY = 0.0F;\n/* 144 */ float lastX = 0.0F, lastY = 0.0F;\n/* 145 */ float thisX = 0.0F, thisY = 0.0F;\n/* 146 */ int type = 0;\n/* 147 */ float next = 0.0F;\n/* 148 */ int phase = 0;\n/* 149 */ while (!it.isDone()) {\n/* 150 */ float dx, dy, distance; type = it.currentSegment(points);\n/* 151 */ switch (type) {\n/* */ case 0:\n/* 153 */ moveX = lastX = points[0];\n/* 154 */ moveY = lastY = points[1];\n/* 155 */ result.moveTo(moveX, moveY);\n/* 156 */ next = OutlineZigzagEffect.this.wavelength / 2.0F;\n/* */ break;\n/* */ \n/* */ case 4:\n/* 160 */ points[0] = moveX;\n/* 161 */ points[1] = moveY;\n/* */ \n/* */ \n/* */ case 1:\n/* 165 */ thisX = points[0];\n/* 166 */ thisY = points[1];\n/* 167 */ dx = thisX - lastX;\n/* 168 */ dy = thisY - lastY;\n/* 169 */ distance = (float)Math.sqrt((dx * dx + dy * dy));\n/* 170 */ if (distance >= next) {\n/* 171 */ float r = 1.0F / distance;\n/* 172 */ while (distance >= next) {\n/* 173 */ float x = lastX + next * dx * r;\n/* 174 */ float y = lastY + next * dy * r;\n/* 175 */ if ((phase & 0x1) == 0) {\n/* 176 */ result.lineTo(x + OutlineZigzagEffect.this.amplitude * dy * r, y - OutlineZigzagEffect.this.amplitude * dx * r);\n/* */ } else {\n/* 178 */ result.lineTo(x - OutlineZigzagEffect.this.amplitude * dy * r, y + OutlineZigzagEffect.this.amplitude * dx * r);\n/* 179 */ } next += OutlineZigzagEffect.this.wavelength;\n/* 180 */ phase++;\n/* */ } \n/* */ } \n/* 183 */ next -= distance;\n/* 184 */ lastX = thisX;\n/* 185 */ lastY = thisY;\n/* 186 */ if (type == 4) result.closePath(); \n/* */ break;\n/* */ } \n/* 189 */ it.next();\n/* */ } \n/* 191 */ return (new BasicStroke(OutlineZigzagEffect.this.getWidth(), 2, OutlineZigzagEffect.this.getJoin())).createStrokedShape(result);\n/* */ }",
"private void setupTimeline(){\n KeyFrame kf = new KeyFrame(Duration.millis(Constants.DURATION), new TimeHandler());\n Timeline timeline = new Timeline(kf);\n timeline.setCycleCount(Animation.INDEFINITE);\n timeline.play();\n }",
"public static MovingShape getInstance() {\n return state;\n }",
"public Scriptable getTransitions()\n\t{\n\t\tScriptable transitionsScriptable = (Scriptable)new ValueConverter().convertValueForScript(\n\t\t\tthis.serviceRegistry, this.scope, null, this.transitions);\n\t\t\n\t\treturn transitionsScriptable;\n\t}",
"private String toStringSvgScaleYChange(IShape shape) {\n String result = \"\";\n if (shape.getShapeType() == ShapeType.Rectangle) {\n result += \"attributeName=\\\"height\\\" from=\\\"\"\n + this.fromSy\n + \"\\\"\"\n + \" to=\\\"\"\n + this.toSy\n + \"\\\"\"\n + \" repeatCount=\\\"0\\\"\";\n } else if (shape.getShapeType() == ShapeType.Oval) {\n result += \"attributeName=\\\"cy\\\" from=\\\"\"\n + this.fromSy\n + \"\\\"\"\n + \" to=\\\"\"\n + this.toSy\n + \"\\\"\"\n + \" dur=\\\"\"\n + \" repeatCount=\\\"0\\\"\";\n }\n return result;\n }",
"public StringKey getAnimation() {\n return ModelBundle.SHIP_ANIMATIONS.get(name);\n }",
"public ArrayList<PhysicsShape> getShapes() {\n\t\treturn shapes;\n\t}",
"public boolean getShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWANIMATION$20);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"public ArrayList<Animator> getChildAnimations() {\n/* 106 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"protected Animator[] getAnimators(View view) {\n return new Animator[]{ObjectAnimator.ofFloat(view, \"alpha\", 0f, 1f)};\n }",
"public List<Shape> getDrawShapes();",
"Map<IShape, List<IEvent>> getShapeMap();",
"public Animale getAnimaleACaso(){\n\t\tthrow new NotImplementedException();\r\n\t}",
"IShape getStartShape();",
"ShapeState getInitialState();",
"List<WorkflowProcessingState> getStates();",
"@Override\n public void animate() {\n }",
"@Override\n\tpublic int getAnimationStyle() {\n\t\treturn 0;\n\t}",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public ArrayList<TweenCallback> getCallbacks()\n\t{\n\t\treturn callbacks;\n\t}"
] |
[
"0.71258247",
"0.6109834",
"0.5703767",
"0.5678104",
"0.5586227",
"0.5567517",
"0.5468725",
"0.54104865",
"0.5374449",
"0.535417",
"0.532094",
"0.5269934",
"0.5230717",
"0.5230428",
"0.5229699",
"0.5214242",
"0.5205163",
"0.51930255",
"0.5171519",
"0.51569927",
"0.5149293",
"0.5112578",
"0.50057423",
"0.49788275",
"0.4970413",
"0.49010658",
"0.48921448",
"0.48798677",
"0.4875474",
"0.4863123",
"0.48466173",
"0.48447067",
"0.48251146",
"0.47959942",
"0.4773798",
"0.47685927",
"0.47641838",
"0.47609603",
"0.4755458",
"0.4748803",
"0.47442517",
"0.47389975",
"0.47346225",
"0.4731079",
"0.47248352",
"0.47022268",
"0.47017625",
"0.4664112",
"0.46611527",
"0.46584296",
"0.46557978",
"0.46489683",
"0.46473944",
"0.46128252",
"0.46082237",
"0.460638",
"0.46019444",
"0.45997667",
"0.45972347",
"0.45958567",
"0.45744914",
"0.4552258",
"0.45508018",
"0.4547359",
"0.4535299",
"0.45155865",
"0.45140114",
"0.45061672",
"0.44960833",
"0.4476723",
"0.44498736",
"0.44470218",
"0.4443878",
"0.44408083",
"0.44388354",
"0.44336507",
"0.4431913",
"0.44312283",
"0.44302088",
"0.44274086",
"0.44272467",
"0.44187087",
"0.44165444",
"0.44148076",
"0.43983597",
"0.4389857",
"0.43857548",
"0.43829313",
"0.43824452",
"0.43811065",
"0.43795037",
"0.43718955",
"0.4364763",
"0.43638852",
"0.4354894",
"0.43500015",
"0.43488264",
"0.43486962",
"0.43473247",
"0.43466786"
] |
0.5226223
|
15
|
Returns the timeline for animating shape property changes, with an option to create if absent.
|
public RMTimeline getTimeline(boolean create)
{
// Get timeline from attributes map
RMTimeline timeline = (RMTimeline)get("Anim");
// If null and create is requested, create
if(timeline==null && create)
setTimeline(timeline = new RMTimeline(this));
// Return timeline
return timeline;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void animUpdate(PropertyChangeEvent anEvent)\n{\n // Return if shape is a new-born\n if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return;\n \n // If change is anim property, add record\n if(isAnimProperty(anEvent.getPropertyName()))\n addTimelineEntry(anEvent.getPropertyName(), anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Fill\n else if(anEvent.getPropertyName().equals(\"Fill\")) {\n RMFill f1 = (RMFill)anEvent.getNewValue();\n RMFill f2 = (RMFill)anEvent.getOldValue();\n RMColor c1 = f1!=null? f1.getColor() : RMColor.clearWhite;\n RMColor c2 = f2!=null? f2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"Color\", c1, c2);\n }\n \n // Add anim records for Fill.Color\n else if(anEvent.getPropertyName().equals(\"Fill.Color\"))\n addTimelineEntry(\"Color\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke\n else if(anEvent.getPropertyName().equals(\"Stroke\")) {\n RMStroke s1 = (RMStroke)anEvent.getNewValue();\n RMStroke s2 = (RMStroke)anEvent.getOldValue();\n RMColor c1 = s1!=null? s1.getColor() : RMColor.clearWhite;\n RMColor c2 = s2!=null? s2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"StrokeColor\", c1, c2);\n float lw1 = s1!=null? s1.getWidth() : 0;\n float lw2 = s2!=null? s2.getWidth() : 0;\n addTimelineEntry(\"StrokeWidth\", lw1, lw2);\n }\n \n // Add anim records for Stroke.Color\n else if(anEvent.getPropertyName().equals(\"Stroke.Color\"))\n addTimelineEntry(\"StrokeColor\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke.Width\n else if(anEvent.getPropertyName().equals(\"Stroke.Width\"))\n addTimelineEntry(\"StrokeWidth\", anEvent.getNewValue(), anEvent.getOldValue());\n}",
"protected void setTimeline(RMTimeline aTimeline)\n{\n // Stop listening to old timeline property changes\n if(getTimeline()!=null) getTimeline().removePropertyChangeListener(this);\n \n // Set anim\n put(\"Anim\", aTimeline);\n \n // Set owner to this shape and start listening for property changes\n if(aTimeline!=null) {\n aTimeline.setOwner(this);\n aTimeline.addPropertyChangeListener(this);\n }\n}",
"public interface IShape {\n\n /**\n * Adds a new motion to the list if it does not overlap with any existing motion, and add the\n * keyframes that align with the start and end points of this motion.\n *\n * @param motion the motion to be added\n * @throws IllegalArgumentException if the motion overlaps with an existing motion in the list\n */\n void addMotion(IMotion motion);\n\n /**\n * Add the given keyframe to this animation, and edit the motions to align with the new keyframe.\n *\n * @param keyframe the keyframe to be added.\n */\n void addKeyframe(IKeyframe keyframe);\n\n /**\n * Removes the keyframe and reformats motions at the given time.\n *\n * @param time the tick to remove the keyframe at\n */\n void removeKeyframe(int time);\n\n /**\n * Adds the given keyframe to this shape, overwriting the one at the time it has.\n *\n * @param newKeyframe the new keyframe to add.\n */\n void editKeyframe(IKeyframe newKeyframe);\n\n /**\n * Returns all the motions of this shape object.\n *\n * @return a list containing all motions.\n */\n List<IMotion> getMotions();\n\n /**\n * Returns all keyframes of this shape object.\n *\n * @return a list containing all keyframes.\n */\n List<IKeyframe> getKeyframes();\n\n /**\n * Calculates the current position of this shape at the given tick, and sets the values.\n *\n * @param tick the tick to calculate position at\n * @throws IllegalArgumentException if tick is not positive or if no motion runs at that tick\n */\n void calculateMotionAtTick(int tick);\n\n /**\n * Returns a string containing the name of the type of shape this object is.\n *\n * @return the string representing the name of the type of this object.\n */\n String getType();\n\n /**\n * Gets dimensions field of this Shape.\n *\n * @return the dimension field\n */\n Dimension getDimensions();\n\n /**\n * Gets the color field of this Shape.\n *\n * @return the color field\n */\n Color getColor();\n\n /**\n * Gets the position field of this Shape.\n *\n * @return the position field\n */\n Point getPosition();\n\n /**\n * Checks that there are no gaps in the run time of this shape's motions.\n *\n * @return true if there are no gaps, false otherwise\n */\n boolean isPlayable();\n\n /**\n * Returns the final tick value for this shape.\n *\n * @return the final tick value\n */\n int getFinalTick();\n\n /**\n * Returns the first tick motions start for this shape.\n *\n * @return the first tick value.\n */\n int getFirstTick();\n\n /**\n * Gets the name of this shape.\n *\n * @return the name\n */\n String getName();\n\n /**\n * Checks if this shape has a motion during this time.\n *\n * @param tick the tick to check\n * @return if the shape has a motion\n */\n boolean isRunningDuringTick(int tick);\n\n}",
"public Timeline getLineMovement()\r\n {\r\n return timeline;\r\n }",
"protected void resetShapeTimeline(RMShape aShape)\n{\n RMTimeline timeline = aShape.getTimeline(); if(timeline==null) return;\n aShape.undoerDisable();\n int time = timeline.getTime(); timeline.setTime(0); timeline.setTime(time);\n aShape.undoerEnable();\n}",
"public Timeline getTimeline() { return this.timeline; }",
"public interface IMotion {\r\n\r\n /**\r\n * Gets the initial state of the shape.\r\n *\r\n * @return IShape of the initial state of the shape.\r\n */\r\n IShape getStartShape();\r\n\r\n /**\r\n * Gets the end state of the shape.\r\n *\r\n * @return IShape of the end state of the shape.\r\n */\r\n IShape getEndShape();\r\n\r\n /**\r\n * Gets the start time of the motion.\r\n *\r\n * @return start time of motion.\r\n */\r\n int getStartTime();\r\n\r\n /**\r\n * Gets the end time of the motion.\r\n *\r\n * @return end time of motion.\r\n */\r\n int getEndTime();\r\n}",
"public Timeline createPartLineAnimation(int duration, int stop_duration, ArrayList<Coordinate> affected_points, int slow_duration, int slow_stop_duration, Circle vehicle, ArrayList<Coordinate> line_coordinates_part, EventHandler<MouseEvent> handler, boolean detour_delay)\r\n {\r\n Timeline affected_timeline = new Timeline();\r\n int original_duration = duration;\r\n int original_stop_duration = stop_duration;\r\n addLineVehicles(vehicle);\r\n vehicle.setOnMouseClicked(handler);\r\n\r\n // add all keyframes to timeline - one keyframe means path from one coordinate to another coordinate\r\n // vehicle waits in stop for 1 seconds and go to another coordinate for 2 seconds (in default mode)\r\n int delta_time = 0;\r\n KeyFrame waiting_in_stop = null;\r\n\r\n //int affected_stops_count = 0;\r\n for (int i = 0; i < line_coordinates_part.size() - 1; i++) {\r\n // if we go through street affected by slow traffic\r\n if (line_coordinates_part.get(i).isInArray(affected_points) && line_coordinates_part.get(i+1).isInArray(affected_points))\r\n {\r\n // duration between coordinates and duration of waiting in stop is different\r\n duration = slow_duration;\r\n stop_duration = slow_stop_duration;\r\n }\r\n else\r\n {\r\n // else use default duration\r\n duration = original_duration;\r\n stop_duration = original_stop_duration;\r\n }\r\n\r\n for (Stop s : this.getStopsMap()) {\r\n // if we are in stop, we wait 'stop_duration' time\r\n if (line_coordinates_part.get(i).getX() == s.getCoordinate().getX() && line_coordinates_part.get(i).getY() == s.getCoordinate().getY()) {\r\n waiting_in_stop = new KeyFrame(Duration.seconds(delta_time + stop_duration), // this means waiting in stop for some time\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates_part.get(i).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates_part.get(i).getY()));\r\n\r\n delta_time = delta_time + stop_duration;\r\n\r\n break;\r\n }\r\n }\r\n // we travelled for 'duration' time\r\n KeyFrame end = new KeyFrame(Duration.seconds(delta_time + duration), // this means that the path from one coordinate to another lasts 2 seconds\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates_part.get(i + 1).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates_part.get(i + 1).getY()));\r\n\r\n if (waiting_in_stop != null) {\r\n affected_timeline.getKeyFrames().addAll(end, waiting_in_stop);\r\n } else {\r\n affected_timeline.getKeyFrames().addAll(end);\r\n }\r\n\r\n delta_time = delta_time + duration;\r\n }\r\n\r\n this.setLineMovement(affected_timeline); // set movement of specified line\r\n\r\n if (detour_delay == false)\r\n {\r\n this.setDelay(duration, slow_duration, affected_points.size());\r\n }\r\n else\r\n {\r\n this.delay = this.detour_streets.size() * duration - duration;\r\n }\r\n\r\n\r\n return affected_timeline;\r\n }",
"private void createAnimation () {\n // KeyFrame frame = new KeyFrame(Duration.millis(MILLISECOND_DELAY), e -> myManager.step());\n // myAnimation = new Timeline();\n // myAnimation.setCycleCount(Timeline.INDEFINITE);\n // myAnimation.getKeyFrames().add(frame);\n }",
"public interface IShape {\n\n /**\n * Adds a new KeyFrame to this Shape, if it does not conflict with another KeyFrame that occurs at the same time as\n * it. If an identical KeyFrame is added at an identical time, no exception will be thrown, but if a non-identical\n * KeyFrame is added at the same time as another KeyFrame, an exception will be thrown.\n *\n * @param k the {@link KeyFrame} to be added to this IShape object.\n * @throws IllegalArgumentException\n */\n void addKeyFrame(KeyFrame k) throws IllegalArgumentException;\n\n /**\n * Removes the KeyFrame at tick t, if it exists. If the KeyFrame does not exist, then an IllegalArgumentException is\n * thrown.\n *\n * @param tick The tick that the KeyFrame to remove occurs at.\n * @return The KeyFrame that was removed, if the method found a KeyFrame to remove\n * @throws IllegalArgumentException if no KeyFrame exists at the specified time parameter for this shape.\n */\n KeyFrame removeKeyFrame(int tick) throws IllegalArgumentException;\n\n /**\n * Adds a {@link Motion} to this IShape. The added motion must occur <b>immediately after the last motion in this\n * IShape has ended</b>, in order to prevent any gaps in motion from occurring. To modify/add/change the path/motion\n * of this shape in an earlier state, add a KeyFrame instead.\n *\n * @param m\n * @throws IllegalArgumentException\n */\n void addMotion(Motion m) throws IllegalArgumentException;\n\n Motion removeMotion(int tick) throws IllegalArgumentException;\n\n /**\n * Gets the unique string identifier of this Shape.\n *\n * @return the unique string name of this shape.\n */\n String getName();\n\n /**\n * Returns all of the KeyFrames pertaining to this Shape.\n *\n * @return A map of all of this Shape's {@link KeyFrame}\n */\n List<KeyFrame> getKeyFrames();\n\n /**\n * Gets this shapes type enum.\n *\n * @return the enum ShapeType of this shape.\n */\n ShapeType getShapeType();\n\n /**\n * Returns a list of this shapes Motion objects, ordered by start time. The list will always contain a continuous\n * flow of back to back motions.\n *\n * @return a list of this Shape's motion objects\n */\n List<Motion> getMotions();\n\n //boolean isVisible();\n\n}",
"public Timeline getTimeline() {\n return this.timeline;\n }",
"public Timeline createLineAnimation(AnchorPane anchor_pane_map, int duration, int stop_duration, ArrayList<Coordinate> affected_points, int slow_duration, int slow_stop_duration, EventHandler<MouseEvent> handler, boolean detour_delay)\r\n {\r\n // coordinates of path for vehicle on transportline\r\n ArrayList<Coordinate> line_coordinates = this.transportLinePath();\r\n // ids of coordinates of path for vehicle on transportline\r\n ArrayList<String> line_coordinates_ids = this.transportLinePathIDs();\r\n // all stops for transportline\r\n List<Stop> line_stops = this.getStopsMap();\r\n // create vehicle for line (circle)\r\n Circle vehicle = new Circle(this.getStopsMap().get(0).getCoordinate().getX(), this.getStopsMap().get(0).getCoordinate().getY(), 10);\r\n vehicle.setStroke(Color.AZURE);\r\n vehicle.setFill(this.getTransportLineColor());\r\n vehicle.setStrokeWidth(5);\r\n addLineVehicles(vehicle);\r\n vehicle.setOnMouseClicked(handler);\r\n\r\n Timeline timeline = new Timeline();\r\n int original_duration = duration;\r\n int original_stop_duration = stop_duration;\r\n\r\n // add all keyframes to timeline - one keyframe means path from one coordinate to another coordinate\r\n // vehicle waits in stop for 1 seconds and go to another coordinate for 2 seconds (in default mode)\r\n int delta_time = 0;\r\n KeyFrame waiting_in_stop = null;\r\n for (int i = 0; i < line_coordinates.size() - 1; i++) {\r\n // if we go through street affected by slow traffic\r\n if (line_coordinates.get(i).isInArray(affected_points) && line_coordinates.get(i+1).isInArray(affected_points))\r\n {\r\n // duration between coordinates and duration of waiting in stop is different\r\n duration = slow_duration;\r\n stop_duration = slow_stop_duration;\r\n }\r\n else\r\n {\r\n // else use default duration\r\n duration = original_duration;\r\n stop_duration = original_stop_duration;\r\n }\r\n\r\n for (Stop s : line_stops) {\r\n // if we are in stop, we wait 'stop_duration' time\r\n if (line_coordinates.get(i).getX() == s.getCoordinate().getX() && line_coordinates.get(i).getY() == s.getCoordinate().getY()) {\r\n waiting_in_stop = new KeyFrame(Duration.seconds(delta_time + stop_duration), // this means waiting in stop for some time\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates.get(i).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates.get(i).getY()));\r\n\r\n delta_time = delta_time + stop_duration;\r\n break;\r\n }\r\n }\r\n // we travelled for 'duration' time\r\n KeyFrame end = new KeyFrame(Duration.seconds(delta_time + duration), // this means that the path from one coordinate to another lasts 2 seconds\r\n new KeyValue(vehicle.centerXProperty(), line_coordinates.get(i + 1).getX()),\r\n new KeyValue(vehicle.centerYProperty(), line_coordinates.get(i + 1).getY()));\r\n\r\n if (waiting_in_stop != null) {\r\n timeline.getKeyFrames().addAll(end, waiting_in_stop);\r\n } else {\r\n timeline.getKeyFrames().addAll(end);\r\n }\r\n\r\n delta_time = delta_time + duration;\r\n }\r\n\r\n timeline.setCycleCount(Timeline.INDEFINITE); // infinity number of repetitions\r\n anchor_pane_map.getChildren().add(vehicle);\r\n\r\n if (detour_delay == false)\r\n {\r\n this.setDelay(duration, slow_duration, affected_points.size());\r\n }\r\n else\r\n {\r\n this.delay = this.detour_streets.size() * duration - duration;\r\n }\r\n\r\n return timeline;\r\n }",
"public void setTime(int aTime)\n{\n // Get shape timeline and set time (if non-null)\n RMTimeline timeline = getTimeline();\n if(timeline!=null) {\n undoerDisable();\n timeline.setTime(aTime);\n undoerEnable();\n }\n \n // If children have same animator as this shape, recurse setTime to children\n if(getAnimator()==getChildAnimator())\n for(int i=0, iMax=getChildCount(); i<iMax; i++)\n getChild(i).setTime(aTime);\n}",
"public RMTimeline getTimeline() { return getTimeline(false); }",
"List<IEvent> getEventList(IShape shape);",
"Animation getStructure();",
"@Test\n public void testShapesNoMovement() throws IOException {\n AnimationModel am = new SimpleAnimationModel();\n StringBuilder sb = new StringBuilder();\n am.addShape(\"Reccy\", ShapeType.RECTANGLE);\n int[] rgb = {50, 40, 20};\n am.addMotion(10, 15, 15, 15, 9,\n 9, 30, 30, 4, 4, rgb,\n rgb, \"Reccy\");\n am.startAnimation();\n IAnimationView av = new SVGAnimationView(am, 2, sb);\n av.render();\n assertEquals(\"<svg viewBox = \\\"0 0 0 0\\\" version=\\\"1.1\\\" \"\n + \"xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"Reccy\\\" x=\\\"15.00\\\" y=\\\"9.00\\\" width=\\\"30.00\\\" \"\n + \"height=\\\"4.00\\\" fill=\\\"rgb(50,40,20)\\\" visibility=\\\"hidden\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"0.0ms\\\" dur=\\\"5000.0ms\\\" \"\n + \"attributeName=\\\"visibility\\\" from=\\\"hidden\\\" to=\\\"visible\\\" fill=\\\"freeze\\\" /></rect>\\n\"\n + \"</svg>\", sb.toString());\n }",
"private void updateKeyframes() {\n keyframes.clear();\n ArrayList<IMotion> motions = new ArrayList<>(shape.getMotions());\n\n if (motions.size() > 0) {\n IMotion start = motions.get(0);\n keyframes.add(start.getIntermediateState(start.getStartTime()));\n }\n\n for (IMotion motion : motions) {\n IState keyframe = motion.getIntermediateState(motion.getEndTime());\n\n if (!keyframes.contains(keyframe)) {\n keyframes.add(keyframe);\n }\n }\n }",
"@Test\n public void testDifferentChangeTypeOverlap() {\n testAnimation.addShape(c, 1, 100);\n move1 = new MoveShape(c, 500.0, 100.0, 300.0, 300.0);\n size1 = new ScaleShape(c, 120.0, 60.0, 85.0, 10.67);\n colorChange1 = new ChangeColor(c,\n 0, 0, 1,\n 0, 1, 0);\n testAnimation.addEvent(c, move1, 20, 45);\n testAnimation.addEvent(c, size1, 28, 88);\n testAnimation.addEvent(c, colorChange1, 36, 95);\n assertEquals(\"Shapes:\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"C moves from (500.0,100.0) to (300.0,300.0) from time t=20 to t=45\\n\"\n + \"C changes height from 60.0 to 10.67 and changes width from 120.0 to 85.0\"\n + \" from time t=28 to t=88\\nC changes color from (0,0,1) to (0,1,0) from \" +\n \"time t=36 \"\n + \"to t=95\\n\",\n testAnimation.toString());\n }",
"@Test\n public void testAddShape() {\n // add the \"R\" & \"C\" shapes to the animation\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\", testAnimation.toString());\n }",
"@VTID(34)\n com.exceljava.com4j.excel.TimelineState getTimelineState();",
"public Optional<Animation> animation() {\n return Optional.empty();\n }",
"public RMAnimator getAnimator(boolean create)\n{\n return getParent()!=null? getParent().getChildAnimator(create) : null;\n}",
"public Timeline getTimeline(){\n return null;\n }",
"private String drawAllShapes() {\n\n /*\n Have list of list for each shape and the motions of each shape\n Need to iterate through the frames and for each motion in a frame\n add it to the corresponding shape in the list of lists\n */\n StringBuilder shapeSVG = new StringBuilder();\n Map<Integer, List<Shape>> animationFrames = this.model.getFrames();\n List<List<Shape>> shapeStates = new ArrayList<>();\n for (Integer key : new TreeSet<>(animationFrames.keySet())) {\n List<Shape> singleFrame = animationFrames.get(key);\n for (Shape shape : singleFrame) {\n if (!this.containsShapeList(shapeStates, shape.getName())) {\n List<Shape> shapeMotions = new ArrayList<>();\n shapeMotions.add(singleFrame.get(singleFrame.indexOf(shape)));\n shapeStates.add(shapeMotions);\n } else {\n shapeStates.get(this.findShape(shapeStates, shape.getName()))\n .add(singleFrame.get(singleFrame.indexOf(shape)));\n }\n }\n }\n\n for (List<Shape> shape : shapeStates) {\n shapeSVG.append(this.drawSingleShape(shape.get(0).getName(), shape.get(0).getType(), shape))\n .append(\"\\n\");\n }\n\n return shapeSVG.toString();\n }",
"public static Range getAnimation(Moves move)\n {\n Range animationRange = new Range();\n\n switch (move)\n {\n case IDLE:\n animationRange.start = 1;\n animationRange.end = 50;\n animationRange.loop = true;\n break;\n case MAGIC:\n animationRange.start = 50;\n animationRange.end = 100;\n animationRange.loop = false;\n break;\n case DEFEND:\n animationRange.start = 100;\n animationRange.end = 150;\n animationRange.loop = false;\n break;\n case ATTACK:\n animationRange.start = 150;\n animationRange.end = 210;\n animationRange.loop = false;\n break;\n }\n\n return animationRange;\n }",
"public interface IReadOnlyAnimationModel {\n\n /**\n * Gets the map of shape id's to shapes.\n *\n * @return the LinkedHashMap of shapes.\n */\n LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();\n\n /**\n * Gets the canvas dimension.\n *\n * @return the dimension of the canvas.\n */\n Dimension getCanvasDimension();\n\n /**\n * Gets the left most x and top most y.\n *\n * @return the Point of the x and y coordinates.\n */\n Point getTopXY();\n}",
"@Test\n public void testAddMove() {\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n // Instantiate the moves\n move1 = new MoveShape(r, 200.0, 200.0, 300.0, 300.0);\n move2 = new MoveShape(c, 500.0, 100.0, 500.0, 400.0);\n move3 = new MoveShape(r, 300.0, 300.0, 200.0, 200.0);\n\n testAnimation.addEvent(r, move1, 10, 50);\n testAnimation.addEvent(c, move2, 20, 70);\n testAnimation.addEvent(r, move3, 70, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R moves from (200.0,200.0) to (300.0,300.0) from time t=10 to t=50\\n\"\n + \"C moves from (500.0,100.0) to (500.0,400.0) from time t=20 to t=70\\n\"\n + \"R moves from (300.0,300.0) to (200.0,200.0) from time t=70 to t=100\\n\",\n testAnimation.toString());\n }",
"public interface IAction {\n /**\n * A function that returns the state of the object at a particular tick. The object's state is in\n * proportion to where the tick is in the action's interval (between start and end time).\n *\n * @param tick an int that represents the frame of the animation per unit of time.\n * @param accumulatorShape keeps track of the shape at tick.\n * @return the shape at the tick.\n * @throws IllegalArgumentException if the tick is negative. if the shape is null.\n */\n IShape getShapeAtTick(double tick, IShape accumulatorShape);\n\n /**\n * Gets the current shape of the Action object.\n *\n * @return the current shape of the Action object.\n */\n IShape getCurrentShape();\n\n /**\n * Gets the time of the Action object.\n *\n * @return the time of the Action object.\n */\n Time getTime();\n\n /**\n * Gets the type of the Action object.\n *\n * @return the type of the Action object.\n */\n Action getType();\n\n /**\n * Gets the name of the Action object.\n *\n * @return the name of the Action object.\n */\n String getName();\n\n /**\n * Gets the old position of the Action object.\n *\n * @return the old position of the Action object.\n */\n Position getOldPosition();\n\n /**\n * Gets the new position of the Action object.\n *\n * @return the new position of the Action object.\n */\n Position getNewPosition();\n\n /**\n * Gets the old with of the Action object.\n *\n * @return the old width of the Action object.\n */\n double getOldWidth();\n\n /**\n * Gets the old height of the Action object.\n *\n * @return the new height of the Action object.\n */\n double getOldHeight();\n\n /**\n * Gets the new width of the Action object.\n *\n * @return the new width of the Action object.\n */\n double getNewWidth();\n\n /**\n * Gets the new height of the Action object.\n *\n * @return the new height of the Action object.\n */\n double getNewHeight();\n\n /**\n * Gets the old color of the Action object.\n *\n * @return the old color of the Action object.\n */\n RGB getOldColor();\n\n /**\n * Gets the new color of the Action object.\n *\n * @return the new color of the Action object\n */\n RGB getNewColor();\n}",
"public boolean isAnimatableProperty() {\n\t\treturn false;\n\t}",
"@Test\n public void testEverything() {\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n move1 = new MoveShape(r, 200.0, 200.0, 300.0, 300.0);\n move2 = new MoveShape(c, 500.0, 100.0, 500.0, 400.0);\n move3 = new MoveShape(r, 300.0, 300.0, 200.0, 200.0);\n\n size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0);\n\n colorChange1 = new ChangeColor(c, 0, 0, 1, 0, 1, 0);\n\n testAnimation.addEvent(r, move1, 10, 50);\n testAnimation.addEvent(c, move2, 20, 70);\n testAnimation.addEvent(c, colorChange1, 50, 80);\n testAnimation.addEvent(r, size1, 51, 70);\n testAnimation.addEvent(r, move3, 70, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R moves from (200.0,200.0) to (300.0,300.0) from time t=10 to t=50\\n\"\n + \"C moves from (500.0,100.0) to (500.0,400.0) from time t=20 to t=70\\n\"\n + \"C changes color from (0,0,1) to (0,1,0) from time t=50 to t=80\\n\"\n + \"R changes width from 50.0 to 25.0 from time t=51 to t=70\"\n + \"\\nR moves from (300.0,300.0) to (200.0,200.0) from time\"\n + \" t=70 to t=100\\n\",\n testAnimation.toString());\n }",
"@Override\n public String toStringSvg(int speed, IShape shape) {\n String result = \"\";\n\n result += \"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + this.getStartTime() * 1000.0 / speed + \"ms\\\" dur=\\\"\"\n + this.timeInterval * 1000.0 / speed + \"ms\\\" \"\n + this.toStringSvgScaleXChange(shape)\n + \" fill=\\\"freeze\\\"/>\\n\";\n result += \"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + this.getStartTime() * 1000.0 / speed + \"ms\\\" dur=\\\"\"\n + this.timeInterval * 1000.0 / speed + \"ms\\\" \"\n + this.toStringSvgScaleYChange(shape)\n + \" fill=\\\"freeze\\\"/>\";\n\n return result;\n }",
"public Animation getMovingAnimation(){\r\n\t\treturn moving;\r\n\t}",
"T setSequencedAnimation(Boolean sequencedAnimation);",
"private void addTimeButtons(String shapeName) {\n popupPanel.add(TIME_LABEL);\n ButtonGroup bg = new ButtonGroup();\n for (Integer i : model.getShapeStatesFromId(shapeName).keySet()) {\n JRadioButton jb = new JRadioButton(i.toString());\n popupPanel.add(jb);\n bg.add(jb);\n shapeTimes.add(jb);\n }\n }",
"public CanaryTimeline getTimeline() {\n return this.timeline;\n }",
"public Animation Animation() {\r\n return animation;\r\n }",
"protected abstract void initTimeline();",
"Animation getShowAnimation();",
"Animation getAnimation() {\n return currAnimation;\n }",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"@Override\n\tpublic int getAnimationStyle() {\n\t\treturn 0;\n\t}",
"@Test\n public void testInstantChangeConvertsToTotalChange() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addAction(new ChangeColorAction(\"R\", 0, 10,\n new Color(0, 0, 0), new Color(10, 10, 10)));\n textView1.animate(model1, 1, out);\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Lower-left corner: (500.0,200.0), Width: 10.0, Height: 10.0, Color: \"\n + \"(0.0,0.0,0.0)\\n\"\n + \"Appears at t=0.0s\\n\"\n + \"Disappears at t=10.0s\\n\"\n + \"\\n\"\n + \"Shape R changes color from (0.0,0.0,0.0) to (10.0,10.0,10.0) from \"\n + \"t=0.0s to t=10.0s\\n\",\n out.toString());\n }",
"protected abstract float getFrameTimeNormalAnimation();",
"public void setLineMovement(Timeline t)\r\n {\r\n timeline = t;\r\n }",
"@Override\n public Shape reply() {\n Paint fill = this.fillColor.equals(\"\") ? null : Color.valueOf(this.fillColor);\n Paint lineColor = this.lineColor.equals(\"\") ? null : Color.valueOf(this.lineColor);\n MyEllipse newShape = new MyEllipse(dashLine,rotate,this.getPosX(), this.getPosY(), this.radiusX, this.radiusY,\n this.lineWidth, lineColor, fill);\n newShape.createDate = this.createDate;\n return newShape;\n }",
"private void shiftFrames(RMShape aShape, int fromTime, int aShiftTime)\n{\n // If shape timeline available, have it shift records\n if(aShape.getTimeline()!=null)\n aShape.getTimeline().shiftRecords(fromTime, aShiftTime);\n \n // Forward shift frame on to shape children\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n shiftFrames(aShape.getChild(i), fromTime, aShiftTime);\n}",
"private String drawSingleShape(String name, ShapeType type, List<Shape> motions) {\n StringBuilder svg = new StringBuilder();\n Shape initShape = motions.get(0);\n\n if (isRectangleOrSquare(type)) {\n svg.append(\"<rect \");\n\n svg.append(\"id=\\\"\").append(name).append(\"\\\" \").append(\"x=\\\"\")\n .append(initShape.getPosition().getX()).append(\"\\\" \").append(\"y=\\\"\")\n .append(initShape.getPosition().getY()).append(\"\\\" \").append(\"width=\\\"\")\n .append(initShape.getWidth()).append(\"\\\" \").append(\"height=\\\"\")\n .append(initShape.getHeight()).append(\"\\\" \").append(\"fill=\\\"rgb(\")\n .append(initShape.getRValue()).append(\",\").append(initShape.getGValue()).append(\",\")\n .append(initShape.getBValue()).append(\")\\\" visibility=\\\"visible\\\">\\n\");\n } else {\n svg.append(\"<ellipse \");\n\n svg.append(\"id=\\\"\").append(name).append(\"\\\" \").append(\"cx=\\\"\")\n .append(initShape.getPosition().getX()).append(\"\\\" \").append(\"cy=\\\"\")\n .append(initShape.getPosition().getY()).append(\"\\\" \").append(\"rx=\\\"\")\n .append(initShape.getWidth()).append(\"\\\" \").append(\"ry=\\\"\")\n .append(initShape.getHeight()).append(\"\\\" \").append(\"fill=\\\"rgb(\")\n .append(initShape.getRValue()).append(\",\").append(initShape.getGValue()).append(\",\")\n .append(initShape.getBValue()).append(\")\\\" visibility=\\\"visible\\\">\\n\");\n }\n\n for (int i = 1; i < motions.size(); i++) {\n\n Shape prevMotion = motions.get(i - 1);\n Shape currMotion = motions.get(i);\n\n if (this.isRectangleOrSquare(type)) {\n svg.append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000).append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"x\\\" from=\\\"\").append(prevMotion.getPosition().getX())\n .append(\"\\\"\").append(\" to=\\\"\")\n .append(currMotion.getPosition().getX()).append(\"\\\"\").append(\" fill=\\\"freeze\\\"/>\\n\")\n .append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000)\n .append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"y\\\" from=\\\"\").append(prevMotion.getPosition().getY())\n .append(\"\\\"\").append(\" to=\\\"\").append(currMotion.getPosition().getY()).append(\"\\\"\")\n .append(\" fill=\\\"freeze\\\"/>\\n\")\n .append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000)\n .append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"width\\\" from=\\\"\").append(prevMotion.getWidth())\n .append(\"\\\"\").append(\" to=\\\"\").append(currMotion.getWidth()).append(\"\\\"\")\n .append(\" fill=\\\"freeze\\\"/>\\n\")\n .append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000)\n .append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"height\\\" from=\\\"\").append(prevMotion.getHeight())\n .append(\"\\\"\").append(\" to=\\\"\").append(currMotion.getHeight()).append(\"\\\"\")\n .append(\" fill=\\\"freeze\\\"/>\\n\")\n .append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000)\n .append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"fill\\\" from=\").append(\"\\\"rgb(\")\n .append(prevMotion.getRValue()).append(\",\").append(prevMotion.getGValue()).append(\",\")\n .append(prevMotion.getBValue()).append(\")\\\"\")\n .append(\" to=\").append(\"\\\"rgb(\")\n .append(currMotion.getRValue()).append(\",\").append(currMotion.getGValue()).append(\",\")\n .append(currMotion.getBValue()).append(\")\\\"/>\").append(\"\\n\");\n } else {\n\n svg.append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000).append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"cx\\\" from=\\\"\").append(prevMotion.getPosition().getX())\n .append(\"\\\"\").append(\" to=\\\"\")\n .append(currMotion.getPosition().getX()).append(\"\\\"\").append(\" fill=\\\"freeze\\\"/>\\n\")\n .append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000)\n .append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"cy\\\" from=\\\"\").append(prevMotion.getPosition().getY())\n .append(\"\\\"\").append(\" to=\\\"\").append(currMotion.getPosition().getY()).append(\"\\\"\")\n .append(\" fill=\\\"freeze\\\"/>\\n\").append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000)\n .append(\"ms\\\" dur=\\\"\")\n .append(((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000)\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"rx\\\" from=\\\"\").append(prevMotion.getWidth())\n .append(\"\\\"\").append(\" to=\\\"\").append(currMotion.getWidth()).append(\"\\\"\")\n .append(\" fill=\\\"freeze\\\"/>\\n\")\n .append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000)\n .append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"ry\\\" from=\\\"\").append(prevMotion.getHeight())\n .append(\"\\\"\").append(\" to=\\\"\").append(currMotion.getHeight()).append(\"\\\"\")\n .append(\" fill=\\\"freeze\\\"/>\\n\")\n .append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\")\n .append((prevMotion.getTime() / this.speed) * 1000)\n .append(\"ms\\\" dur=\\\"\")\n .append((((currMotion.getTime() - prevMotion.getTime()) / this.speed) * 1000))\n .append(\"ms\\\" \")\n .append(\"attributeName=\\\"fill\\\" from=\").append(\"\\\"rgb(\")\n .append(prevMotion.getRValue()).append(\",\").append(prevMotion.getGValue()).append(\",\")\n .append(prevMotion.getBValue()).append(\")\\\"\")\n .append(\" to=\").append(\"\\\"rgb(\")\n .append(currMotion.getRValue()).append(\",\").append(currMotion.getGValue()).append(\",\")\n .append(currMotion.getBValue()).append(\")\\\"/>\").append(\"\\n\");\n }\n\n }\n\n if (this.isRectangleOrSquare(type)) {\n svg.append(\"</rect>\");\n } else {\n svg.append(\"</ellipse>\");\n }\n return svg.toString();\n }",
"public void setTimeline(Timeline timeline) {\n/* 485 */ if (this.timeline != timeline) {\n/* 486 */ this.timeline = timeline;\n/* 487 */ fireChangeEvent();\n/* */ } \n/* */ }",
"@Test\n public void testAddSizeChange() {\n testAnimation.addShape(r, 1, 100);\n // Instantiate the size change\n size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0);\n size2 = new ScaleShape(r, 25.0, 100.0, 25.0, 13.0);\n testAnimation.addEvent(r, size1, 51, 70);\n testAnimation.addEvent(r, size2, 71, 73);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R changes width from 50.0 to 25.0 from time t=51 to t=70\"\n + \"\\nR changes height from 100.0 to 13.0 from time t=71 to t=73\\n\",\n testAnimation.toString());\n }",
"@Override\n\tpublic boolean create(Animations obj) {\n\t\treturn false;\n\t}",
"@Test\n public void testGaps() throws IOException {\n int[] a = {3, 4, 5};\n Motion motion1 = new Motion(2, 3, 3, 4, 5, 5, 7,\n 8,\n 9, 10, a, a);\n Motion motion2 = new Motion(4, 5, 4, 3, 5, 6, 8,\n 8,\n 10, 10, a, a);\n AnimationModel am = new SimpleAnimationModel();\n am.addShape(\"R\", ShapeType.RECTANGLE);\n am.addMotion(2, 3, 3, 4, 5, 5, 7,\n 8,\n 9, 10, a, a, \"R\");\n am.addMotion(4, 5, 4, 3, 5, 6, 8,\n 8,\n 10, 10, a, a, \"R\");\n am.startAnimation();\n StringBuilder sb = new StringBuilder();\n IAnimationView av = new SVGAnimationView(am, 2, sb);\n av.render();\n assertEquals(\"<svg viewBox = \\\"0 0 0 0\\\" version=\\\"1.1\\\" \"\n + \"xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"R\\\" x=\\\"3.00\\\" y=\\\"5.00\\\" width=\\\"7.00\\\" height=\\\"9.00\\\" \"\n + \"fill=\\\"rgb(3,4,5)\\\" visibility=\\\"hidden\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"0.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"visibility\\\" from=\\\"hidden\\\" to=\\\"visible\\\" fill=\\\"freeze\\\" />\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"3\\\" to=\\\"4\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"width\\\" from=\\\"7\\\" to=\\\"8\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"height\\\" from=\\\"9\\\" to=\\\"10\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"4\\\" to=\\\"3\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"5\\\" to=\\\"6\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"</svg>\", sb.toString());\n }",
"public Shape createStrokedShape(Shape shape) {\n/* 140 */ GeneralPath result = new GeneralPath();\n/* 141 */ PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), 1.0D);\n/* 142 */ float[] points = new float[6];\n/* 143 */ float moveX = 0.0F, moveY = 0.0F;\n/* 144 */ float lastX = 0.0F, lastY = 0.0F;\n/* 145 */ float thisX = 0.0F, thisY = 0.0F;\n/* 146 */ int type = 0;\n/* 147 */ float next = 0.0F;\n/* 148 */ int phase = 0;\n/* 149 */ while (!it.isDone()) {\n/* 150 */ float dx, dy, distance; type = it.currentSegment(points);\n/* 151 */ switch (type) {\n/* */ case 0:\n/* 153 */ moveX = lastX = points[0];\n/* 154 */ moveY = lastY = points[1];\n/* 155 */ result.moveTo(moveX, moveY);\n/* 156 */ next = OutlineZigzagEffect.this.wavelength / 2.0F;\n/* */ break;\n/* */ \n/* */ case 4:\n/* 160 */ points[0] = moveX;\n/* 161 */ points[1] = moveY;\n/* */ \n/* */ \n/* */ case 1:\n/* 165 */ thisX = points[0];\n/* 166 */ thisY = points[1];\n/* 167 */ dx = thisX - lastX;\n/* 168 */ dy = thisY - lastY;\n/* 169 */ distance = (float)Math.sqrt((dx * dx + dy * dy));\n/* 170 */ if (distance >= next) {\n/* 171 */ float r = 1.0F / distance;\n/* 172 */ while (distance >= next) {\n/* 173 */ float x = lastX + next * dx * r;\n/* 174 */ float y = lastY + next * dy * r;\n/* 175 */ if ((phase & 0x1) == 0) {\n/* 176 */ result.lineTo(x + OutlineZigzagEffect.this.amplitude * dy * r, y - OutlineZigzagEffect.this.amplitude * dx * r);\n/* */ } else {\n/* 178 */ result.lineTo(x - OutlineZigzagEffect.this.amplitude * dy * r, y + OutlineZigzagEffect.this.amplitude * dx * r);\n/* 179 */ } next += OutlineZigzagEffect.this.wavelength;\n/* 180 */ phase++;\n/* */ } \n/* */ } \n/* 183 */ next -= distance;\n/* 184 */ lastX = thisX;\n/* 185 */ lastY = thisY;\n/* 186 */ if (type == 4) result.closePath(); \n/* */ break;\n/* */ } \n/* 189 */ it.next();\n/* */ } \n/* 191 */ return (new BasicStroke(OutlineZigzagEffect.this.getWidth(), 2, OutlineZigzagEffect.this.getJoin())).createStrokedShape(result);\n/* */ }",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"public interface Moves {\n\n /**\n * Applies the move onto a shape when it is on the correct tick.\n *\n * @return the shape with the move applied onto it\n */\n ShapeState apply(int tick);\n\n\n /**\n * Gets the initial tick of which the move is applicable on.\n *\n * @return the initial tick.\n */\n ShapeState getInitialState();\n\n /**\n * Gets the final tick of which the move is applicable on.\n *\n * @return the final tick.\n */\n ShapeState getFinalState();\n\n /**\n * Checks whether the move is finished at a certain time.\n *\n * @param tick the time to be checked.\n * @return whether the move is finished at that time.\n *\n */\n boolean isMoveFinished(int tick);\n\n\n\n}",
"public void propertyChange(PropertyChangeEvent anEvent)\n{\n // Get DeepChangeListener count (just return if zero)\n int deepListenerCount = getListenerCount(DeepChangeListener.class); if(deepListenerCount==0) return;\n \n // If change is fill/stroke, convert property name to \"Fill.xxx\" or \"Stroke.xxx\" for the sake of animation\n if(anEvent.getSource() instanceof RMFill) {\n Object source = anEvent.getSource();\n String prefix = source==getFill()? \"Fill\" : source==getStroke()? \"Stroke\" : null;\n String propertyName = prefix + \".\" + anEvent.getPropertyName();\n anEvent = new PropertyChangeEvent(this, propertyName, anEvent.getOldValue(), anEvent.getNewValue());\n repaint();\n }\n \n // Propagate to this shape's DeepChangeListeners (if present)\n for(int i=0, iMax=getListenerCount(DeepChangeListener.class); i<iMax; i++)\n getListener(DeepChangeListener.class, i).deepChange(this, anEvent);\n}",
"public Shape getShape() { return shape; }",
"public ObservableList<Shape> drawDataProperty() { return drawData; }",
"public AnimationHook animate() {\n return animation.start();\n }",
"public List<AnimationCallback> getAnimationCallbacks() {\n return callbacks;\n }",
"private void setupTimeline(){\n KeyFrame kf = new KeyFrame(Duration.millis(Constants.DURATION), new TimeHandler());\n Timeline timeline = new Timeline(kf);\n timeline.setCycleCount(Animation.INDEFINITE);\n timeline.play();\n }",
"public Style createEditPathBox() {\n \t \tStroke stroke = styleFactory.createStroke(\n \t \t\tfilterFactory.literal(Color.RED), filterFactory.literal(1), null, null,null, new float[] { 5, 2 }, null, null, null\n\t\t);\n \t \t\n\t\t//Cria um Symbolizer para linha.\n\t\tPolygonSymbolizer polygonSymbolizer = styleFactory.createPolygonSymbolizer(stroke, null, null);\n\t\t//Regra para um estilo de fei��o.\n\t\tRule rulePoly = styleFactory.createRule();\n\t\t\n\t\t//Adiciona o PointSymbolizer na regra.\n\t\t//rulePoly.setName(\"Polygon\"); \n\t\t//ruleLine.setFilter(filterFactory.equals(filterFactory.property(\"geom\"), filterFactory.literal(false)));\n\t\trulePoly.symbolizers().add(polygonSymbolizer); \n\t\t\t \n\t\t//Adiciona uma ou N regras em uma estilo de uma determinada fei��o.\n\t\tFeatureTypeStyle ftsPoly = styleFactory.createFeatureTypeStyle(new Rule[]{rulePoly});\n\t\t \n\t\t//Cria o estilo (SLD).\n\t\tStyle style = styleFactory.createStyle();\n\t\tstyle.featureTypeStyles().add(ftsPoly);\n\t\t \n\t\treturn style;\n }",
"public Boolean getAnimate () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.animate);\r\n\t}",
"protected abstract Animator[] getAnimators(View itemView);",
"@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n\tprotected Animator createAnimator() {\n\t\tAnimator anim = ViewAnimationUtils.createCircularReveal(\n\t\t\t\tmRevealView, getWidth() / 2, getHeight() / 2, 0, getWidth() / 2);\n\t\tanim.addListener(new AnimatorListenerAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t// Now we can refresh the drawable state\n\t\t\t\trefreshDrawableState();\n\n\t\t\t\tmRevealView.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t\treturn anim;\n\t}",
"public boolean getShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWANIMATION$20);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"@Override\r\n protected boolean hasAnimation() {\r\n return true;\r\n }",
"@Test\n public void testColorChange() {\n testAnimation.addShape(c, 6, 100);\n // Instantiate the color change\n colorChange1 = new ChangeColor(c,\n 0, 0, 1,\n 0, 1, 0);\n colorChange2 = new ChangeColor(c,\n 0, 1, 0,\n 25, 1, 0);\n testAnimation.addEvent(c, colorChange1, 50, 80);\n testAnimation.addEvent(c, colorChange2, 81, 90);\n assertEquals(\"Shapes:\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"C changes color from (0,0,1) to (0,1,0) from time t=50 to t=80\\n\"\n + \"C changes color from (0,1,0) to (25,1,0) from time t=81 to t=90\\n\",\n testAnimation.toString());\n }",
"static Animator createAnimation(\n View view,\n TransitionValues values,\n int viewPosX,\n float startX,\n float endX,\n TimeInterpolator interpolator,\n Transition transition) {\n float terminalX = view.getTranslationX();\n Integer startPosition = (Integer) values.view.getTag(R.id.transitionPosition);\n if (startPosition != null) {\n startX = startPosition - viewPosX + terminalX;\n }\n // Initial position is at translation startX, startY, so position is offset by that\n // amount\n int startPosX = viewPosX + Math.round(startX - terminalX);\n\n view.setTranslationX(startX);\n if (startX == endX) {\n return null;\n }\n Path path = new Path();\n path.moveTo(startX, 0);\n path.lineTo(endX, 0);\n ObjectAnimator anim =\n ObjectAnimator.ofFloat(view, View.TRANSLATION_X, View.TRANSLATION_Y, path);\n\n TransitionPositionListener listener =\n new TransitionPositionListener(view, values.view, startPosX, terminalX);\n transition.addListener(listener);\n anim.addListener(listener);\n anim.addPauseListener(listener);\n anim.setInterpolator(interpolator);\n return anim;\n }",
"@Test\n public void testChangeCanvas() throws IOException {\n AnimationModel am = new SimpleAnimationModel();\n int[] i = {40, 40, 40};\n StringBuilder sb = new StringBuilder();\n am.addShape(40, 40, 45, \"Reccy\", false, 100, 150,\n 20, 15, ShapeType.RECTANGLE);\n am.addMotion(5, 10, 100, 150, 150,\n 200, 20, 15, 15, 10, i,\n i, \"Reccy\");\n am.setCanvas(30, 30, 360, 400);\n am.startAnimation();\n IAnimationView av = new SVGAnimationView(am, 2, sb);\n av.render();\n assertEquals(\"<svg viewBox = \\\"30 30 360 400\\\" \"\n + \"version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"Reccy\\\" x=\\\"100.00\\\" y=\\\"150.00\\\" width=\\\"20.00\\\" \"\n + \"height=\\\"15.00\\\" fill=\\\"rgb(40,40,40)\\\" visibility=\\\"hidden\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"0.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"visibility\\\" from=\\\"hidden\\\" to=\\\"visible\\\" fill=\\\"freeze\\\" />\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"100\\\" to=\\\"150\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"150\\\" to=\\\"200\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"width\\\" from=\\\"20\\\" to=\\\"15\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2500.0ms\\\" dur=\\\"2500.0ms\\\" \"\n + \"attributeName=\\\"height\\\" from=\\\"15\\\" to=\\\"10\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"</svg>\", sb.toString());\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"private JMenu createAnimationMenu() {\r\n\t\tJMenu animateMenu = new JMenu(\"Animation\");\r\n\t\tanimateMenu.setMnemonic('a');\r\n\t\tJMenuItem animationSettings = new JMenuItem(\"Animation Settings\");\r\n\t\tanimationSettings.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tExpressionConsoleModel.getInstance().enterExpression(\r\n\t\t\t\t\t\t\"edit(\" + Grapher2DConstants.Grapher2DAnimateFlag + \",\"\r\n\t\t\t\t\t\t\t\t+ Grapher2DConstants.TimeIncrement + \")\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t// animationSettings.setVisible(true);\r\n\t\tanimateMenu.add(animationSettings);\r\n\t\treturn animateMenu;\r\n\t}",
"private Timeline setupFluctuationTimeline(int interval) {\n Timeline timeline = new Timeline(\n new KeyFrame(Duration.millis(interval),\n event -> {\n fluctuateLine();\n }\n ));\n timeline.setCycleCount(Animation.INDEFINITE);\n return timeline;\n }",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"@Override\n protected int getRevealTime()\n {\n // If not Line chart or Trace.Disabled, return default\n Trace trace = getTrace();\n boolean showPointsOrArea = trace.isShowPoints() || trace.isShowArea();\n if (showPointsOrArea || getTrace().isDisabled())\n return ContentView.DEFAULT_REVEAL_TIME;\n\n // Calc factor to modify default time\n double maxLen = getTraceLineShapeArcLength();\n double factor = Math.max(1, Math.min(maxLen / 500, 2));\n\n // Return default time times factor\n return (int) Math.round(factor * ContentView.DEFAULT_REVEAL_TIME);\n }",
"net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"private Line getTrajectory() {\n Point target = this.topLeft.add(this.velocity).asPoint();\n return new Line(this.topLeft.asPoint(), target);\n }",
"TimelineEntity(){}",
"void setShape(IReadableShape shape) {\n keyframes.clear();\n if (!Objects.isNull(shape)) {\n this.shape = shape;\n this.updateKeyframes();\n }\n this.resetFrameList();\n\n }",
"public ArrayList<Animator> getChildAnimations() {\n/* 106 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private Animation animateBranchGrowing(List<Branch> branchGeneration, int depth, Duration duration) {\n final ParallelTransition sameDepthBranchAnimation = new ParallelTransition();\n\n for (final Branch branch : branchGeneration) {\n final KeyValue keyValue = new KeyValue(branch.base.endYProperty(), branch.length);\n final KeyFrame keyFrame = new KeyFrame(duration, keyValue);\n final Timeline branchGrowingAnimation = new Timeline(keyFrame);//line is growing by changinh endY from 0 to brunch.lengt\n\n final PauseTransition pauseTransition = new PauseTransition();\n pauseTransition.setDuration(Duration.ONE);\n pauseTransition.setOnFinished(event -> branch.base.setStrokeWidth(branch.length / 25));\n\n sameDepthBranchAnimation.getChildren().add(\n new SequentialTransition(\n //To set width from 0 to some value we use pause transition with duration.one millisecond\n //trick to show lines\n pauseTransition,\n branchGrowingAnimation\n )\n );\n }\n\n return sameDepthBranchAnimation;\n\n }",
"public java.util.ArrayList<android.animation.Animator> getChildAnimations() { throw new RuntimeException(\"Stub!\"); }",
"public ConstraintAnimation getConstraintAnimation() {\n return constraintAnimation;\n }",
"public interface IMotion extends ITimeInterval {\n\n /**\n * Adds this motion to the given queue of motions, combining it if necessary with any\n * overlapping motions that already exist in the queue. Combining motions involves\n * both splicing motions into overlapped vs. non-overlapped time periods, as well as\n * combining the fields they change (x, y, w, h, and rgb) into one motion reflective of all\n * changes.\n * @param motionQueue represents the queue of motions for this motion to be added to\n * @return the updated queue with this motion added\n */\n Queue<IMotion> addToQueue(Queue<IMotion> motionQueue);\n\n /**\n * Combines the changes/transformations two motions, this motion and the given motion, make\n * into one motion. Assumes that motions have the same start and end tick.\n *\n * @param m1 the given motion whose changes are added with this motion\n * @return a motion that holds the changes both this motion and the given motion m1 made\n * @throws IllegalArgumentException if motions do not have the same start and end tick as each\n * other, or they illegally overlap (i.e. both try to change the same element of a shape,\n * or their unchanged fields are different)\n */\n IMotion addMotions(IMotion m1) throws IllegalArgumentException;\n\n /**\n * Get a splice/portion of this motion from the given start tick to the end tick.\n * If motion is completely out of the splice range, return null.\n * If motion does not fill total splice range, return;\n * the part of the motion that does fit it the range.\n * Examples:\n * A motion from t=3 to t=8, spliced from t=4 to t=6, would return the portion of the motion from\n * t=4 to t=6\n * A motion from t=4 to t=6, spliced from t=6 to\n * @param splitTickStart represents the start of the splice range in ticks\n * @param splitTickEnd represents the end of the splice range in ticks\n * @return the splice of this motion from the given tick range, or null if motion is outside of\n * tick range or tick range is 0.\n */\n IMotion splice(int splitTickStart, int splitTickEnd);\n\n /**\n * Given two motions that are consecutive (i.e this motion is the next motion\n * directly after the given motion), check that all the end values of the given motion\n * match up with all the start values of the this motion.\n * @param m1 represents the consecutive motion that comes right before this motion\n * @return true if this motion's start values match the given motion's end values,\n * false otherwise\n */\n boolean validConsecutiveMotion(IMotion m1);\n\n /**\n * Represents the elements of a shape this motion changes as a list of booleans.\n * Each boolean in the list represents a change in x, y, width, height, or color respectively,\n * where a change in the element is represented by true and a lack of change by this motion\n * is represented by false.\n * E.g. a motion that changed the x position and color of a shape would be represented as:\n * [true, false, false, false, true].\n */\n boolean[] bitwiseChangeList();\n\n /**\n * Executes this motion for a given Shape, changing its attributes to reflect\n * change in position, size, color, or hidden status to the end state of this motion.\n * @param shape the shape to execute motion for.\n */\n void executeMotion(Shape shape);\n\n /**\n * Generates the string representation of this Motion, including each of its attributes (ticks,\n * x position, y position, width, height, color).\n * @return the string rendering of this Motion.\n */\n String toString();\n\n /**\n * Generates a formatted string of the start values of a motion.\n * @return the formatted string of a motion's start values.\n */\n String toStringStartValues();\n\n /**\n * Generates a formatted string of the end values of a motion.\n * @return the formatted string of a motion's end values.\n */\n String toStringEndValues();\n\n /**\n * Generates the string representation of this Motion, including each of its attributes (ticks,\n * x position, y position, width, height, color) as integers.\n * @return the string rendering of this Motion.\n */\n String toStringAsInt();\n\n /**\n * Gets the first x value of this motion.\n * @return the first x value at the last tick of the motion.\n */\n double getStartX();\n\n /**\n * Gets the end x value of this motion.\n * @return the end x value at the last tick of the motion.\n */\n double getEndX();\n\n /**\n * Gets the first y value of this motion.\n * @return the first y value at the last tick of the motion.\n */\n double getStartY();\n\n /**\n * Gets the final y value of this motion.\n * @return the end y value at the last tick of the motion.\n */\n double getEndY();\n\n /**\n * Gets the first width value of this motion.\n * @return the first width value at the last tick of the motion.\n */\n double getStartW();\n\n /**\n * Gets the final width value of this motion.\n * @return the end width value at the last tick of the motion.\n */\n double getEndW();\n\n /**\n * Gets the final RGB value of this motion.\n * @return the end RGB value at the last tick of the motion.\n */\n double getStartH();\n\n /**\n * Gets the final height value of this motion.\n * @return the end height value at the last tick of the motion.\n */\n double getEndH();\n\n /**\n * Gets the first RGB value of this motion.\n * @return the first RGB value at the first tick of the motion.\n */\n int[] getStartRGB();\n\n /**\n * Gets the final RGB value of this motion.\n * @return the end RGB value at the last tick of the motion.\n */\n int[] getEndRGB();\n\n /**\n * Returns this motion and the other motion given as a list of spliced, combined motions.\n * Combining motions involves splitting up the motions into non-overlapping and overlapping\n * periods of time, and consolidating the motions' changes into one motion\n * for overlapping periods of time.\n * examples:\n * 2 3 4 5 6\n * |-----| motion1\n * |--------| motion2\n * combined:\n * |--| newmotion1\n * |--| newmotion2\n * |-----| newmotion3\n * 2 3 4 5 6\n * |--------| m1\n * |--------| m2\n * combined:\n * |--------| newmotion1\n * 2 3 4 5 6\n * |-----| m1\n * |--------| m2\n * combined:\n * |--| newmotion1\n * |-----| newmotion2\n * 2 3 4 5 6\n * |--------| m1\n * |--| m2\n * combined:\n * |--| newmotion1\n * |--| newmotion2\n * |--| newmotion3\n *\n * @param other the given motion to combine with this motion\n * @return the list of combined motion(s)\n * @throws IllegalArgumentException if there are illegal/invalid overlaps between the two motions\n */\n List<IMotion> combineMotion(IMotion other);\n}",
"public RMAnimator getChildAnimator(boolean create)\n{\n return getParent()!=null? getParent().getChildAnimator(create) : null;\n}",
"public void setTimeline(Timeline timeline) {\n this.timeline = timeline;\n }",
"public RMAnimator getAnimator() { return getAnimator(false); }",
"void addShape(IShape shape, int appear, int disappear);",
"public Shape getShape() {\n return shape;\n }",
"ShapeState getInitialState();",
"public int getAnimation() {\n\t\t\treturn animation;\n\t\t}",
"public Style createEditPathEdges() {\n \tGraphic gr;\n \tMark mark;\n \tPointSymbolizer pointSymbolizer;\n \t\n \t//POINT\n gr = styleFactory.createDefaultGraphic();\n mark = styleFactory.getSquareMark();\n mark.setStroke(styleFactory.createStroke(filterFactory.literal(Color.BLACK), filterFactory.literal(1)));\n mark.setFill(styleFactory.createFill(filterFactory.literal(Color.WHITE)));\n gr.graphicalSymbols().clear();\n gr.graphicalSymbols().add(mark);\n gr.setSize(filterFactory.literal(4));\n pointSymbolizer = styleFactory.createPointSymbolizer(gr, null); \n Rule rule = styleFactory.createRule();\n rule.symbolizers().add(pointSymbolizer);\n \n FeatureTypeStyle fts = styleFactory.createFeatureTypeStyle(new Rule[]{rule});\n Style style = styleFactory.createStyle();\n style.featureTypeStyles().add(fts); \n return style;\n }",
"public List <Integer> getKeyFrameTimes(List <RMShape> theShapes, boolean includeImplied)\n{\n // If a shapeList wasn't provided, assume it should be animator owner's children.\n if(theShapes==null)\n theShapes = _owner.getChildren();\n\n // Create new list for key frames\n List <Integer> keyFrames = new Vector();\n \n // Add implied key frames: time zero, current time and freeze frames\n if(includeImplied) {\n keyFrames.add(0);\n if(getTime()!=0) keyFrames.add(getTime());\n for(Integer freezeFrame : _freezeFrames) {\n int index = Collections.binarySearch(keyFrames, freezeFrame);\n if(index<0)\n keyFrames.add(-index - 1, freezeFrame);\n }\n }\n \n // Add explicit key frames by iterating over owner's children (on down)\n for(int i=0, iMax=ListUtils.size(theShapes); i<iMax; i++)\n getKeyFrames(theShapes.get(i), keyFrames);\n\n // Update Scoped keyframe\n if(!keyFrames.contains(_scopeTime))\n _scopeTime = null;\n\n // Return key frames\n return keyFrames;\n}",
"public Animale getAnimaleACaso(){\n\t\tthrow new NotImplementedException();\r\n\t}",
"Map<IShape, List<IEvent>> getShapeMap();"
] |
[
"0.70154965",
"0.58406764",
"0.5578295",
"0.55129695",
"0.5492786",
"0.54330313",
"0.5411501",
"0.53744787",
"0.5334512",
"0.53325814",
"0.5200231",
"0.51867276",
"0.51838326",
"0.51232177",
"0.5105873",
"0.50345904",
"0.50042427",
"0.50007445",
"0.49891454",
"0.49664345",
"0.490098",
"0.48902407",
"0.4864607",
"0.48492113",
"0.48333508",
"0.48155648",
"0.48131642",
"0.48038584",
"0.47711638",
"0.47575855",
"0.47230548",
"0.4682437",
"0.46692154",
"0.46587962",
"0.46534643",
"0.4646508",
"0.46436962",
"0.46348488",
"0.46329108",
"0.46241933",
"0.4617835",
"0.46176574",
"0.4603987",
"0.4600624",
"0.45972526",
"0.45824128",
"0.4574554",
"0.45714065",
"0.45641086",
"0.45489275",
"0.45392495",
"0.45337486",
"0.45286402",
"0.4527215",
"0.45003313",
"0.448746",
"0.44743365",
"0.44743112",
"0.4471989",
"0.4444628",
"0.44142765",
"0.44141257",
"0.43904167",
"0.43853894",
"0.43840605",
"0.43807426",
"0.43683836",
"0.43674725",
"0.4365232",
"0.4360739",
"0.43596482",
"0.43596482",
"0.43596482",
"0.43596482",
"0.43596482",
"0.4355764",
"0.4354679",
"0.43419817",
"0.43397337",
"0.43390772",
"0.43295625",
"0.43242916",
"0.43236554",
"0.43180892",
"0.4305217",
"0.42992595",
"0.4295439",
"0.428755",
"0.4286656",
"0.4286499",
"0.42645198",
"0.42608353",
"0.42532495",
"0.42450023",
"0.42411107",
"0.42376095",
"0.42370522",
"0.42359495",
"0.42356682",
"0.42356333"
] |
0.6403306
|
1
|
Sets the shape timeline.
|
protected void setTimeline(RMTimeline aTimeline)
{
// Stop listening to old timeline property changes
if(getTimeline()!=null) getTimeline().removePropertyChangeListener(this);
// Set anim
put("Anim", aTimeline);
// Set owner to this shape and start listening for property changes
if(aTimeline!=null) {
aTimeline.setOwner(this);
aTimeline.addPropertyChangeListener(this);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setLineMovement(Timeline t)\r\n {\r\n timeline = t;\r\n }",
"public void setTimeline(Timeline timeline) {\n/* 485 */ if (this.timeline != timeline) {\n/* 486 */ this.timeline = timeline;\n/* 487 */ fireChangeEvent();\n/* */ } \n/* */ }",
"public void setTimeline(Timeline timeline) {\n this.timeline = timeline;\n }",
"public void setTimeline(CanaryTimeline timeline) {\n this.timeline = timeline;\n }",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"protected void resetShapeTimeline(RMShape aShape)\n{\n RMTimeline timeline = aShape.getTimeline(); if(timeline==null) return;\n aShape.undoerDisable();\n int time = timeline.getTime(); timeline.setTime(0); timeline.setTime(time);\n aShape.undoerEnable();\n}",
"void setShape(IReadableShape shape) {\n keyframes.clear();\n if (!Objects.isNull(shape)) {\n this.shape = shape;\n this.updateKeyframes();\n }\n this.resetFrameList();\n\n }",
"public void setShape( final FireShapes shape ) {\r\n\t\tthis.shape = shape;\r\n\t}",
"public void setTime(int aTime)\n{\n // Get shape timeline and set time (if non-null)\n RMTimeline timeline = getTimeline();\n if(timeline!=null) {\n undoerDisable();\n timeline.setTime(aTime);\n undoerEnable();\n }\n \n // If children have same animator as this shape, recurse setTime to children\n if(getAnimator()==getChildAnimator())\n for(int i=0, iMax=getChildCount(); i<iMax; i++)\n getChild(i).setTime(aTime);\n}",
"public void setShape(ShapeType shape) {\n\t\tthis.shape = shape;\n\t}",
"protected void setShape(Shape shape) {\n\t\tif (shape != null) {\n\t\t\t_shape = shape;\n\t\t\tthis.setLocation(shape.getLocation());\n\t\t\tthis.setDimensions(shape.getDimensions());\n\t\t}\n\t}",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public void setShape (Tetromino shape)\n\t{\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tfor (int j=0; j<2; j++)\n\t\t\t{\n\t\t\t\tcoords[i][j]=coordsTable[shape.ordinal()][i][j];\n\t\t\t}\n\t\t}\n\t\tdetailShape = shape;\n\t}",
"public void setShapeType(ShapeType shapeType) {\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"void setRoute(Shape route);",
"public void setShape(Info shape) {\n \n }",
"public void setShapes(Object shapes) {\r\n this.shapes = shapes;\r\n }",
"private void setupTimeline(){\n KeyFrame kf = new KeyFrame(Duration.millis(Constants.DURATION), new TimeHandler());\n Timeline timeline = new Timeline(kf);\n timeline.setCycleCount(Animation.INDEFINITE);\n timeline.play();\n }",
"protected abstract void initTimeline();",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"protected abstract void setShapes();",
"public void setStroke(RMStroke aStroke)\n{\n if(RMUtils.equals(getStroke(), aStroke)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_stroke!=null) _stroke.removePropertyChangeListener(this);\n firePropertyChange(\"Stroke\", _stroke, _stroke = aStroke, -1); // Set value and fire PropertyChange\n if(_stroke!=null) _stroke.addPropertyChangeListener(this); // Set shape\n}",
"public void assignShape() {\n\t\t\n\t}",
"@Override\r\n public void setShape (Shape shape)\r\n {\r\n setShape(shape, Evaluation.ALGORITHM);\r\n }",
"public void newPostTimeline(TimeLine timeline) {\n\t\tList<TimeLine> timelines = loadTimelines(SystemProperty.ALL, currentUser);\n\t\ttimeLineSheet.refreshAll(timelines);\n\t}",
"public void setType(ShapeType ty) {\n\t\t\ttype.set(ty);\n\t\t}",
"@Override\n public void start(Stage stage) throws Exception {\n final Rectangle rectBasicTimeline = new Rectangle(100, 50, 100, 50);\n rectBasicTimeline.setFill(Color.RED);\n\n Group p = new Group();\n Scene scene = new Scene(p);\n stage.setScene(scene);\n stage.setWidth(500);\n stage.setHeight(500);\n\n p.getChildren().add(rectBasicTimeline);\n stage.show();\n\n // -------------- Set up a timeline with an event that moves rect\n // Animation\n final Timeline timeline = new Timeline();\n timeline.setCycleCount(Timeline.INDEFINITE);\n\n EventHandler<ActionEvent> onFinished = new EventHandler<ActionEvent>() {\n public void handle(ActionEvent t) {\n System.out.println(\"Calling setX\");\n rectBasicTimeline.setX(rectBasicTimeline.getX() + 10);\n }\n };\n\n final KeyFrame kf = new KeyFrame(Duration.millis(1000), onFinished);\n timeline.getKeyFrames().add(kf);\n timeline.play();\n\n }",
"public void setMyShape(int shapeIndex){this.myShape = shapeIndex;}",
"void setBeginPosition(net.opengis.gml.x32.TimePositionType beginPosition);",
"public static void initialiseShapeTurtleLinden() {\n shape.update();\n turtle.setWord(shape.getWord());\n turtle.setLength(shape.getLength());\n turtle.setAngle(shape.getAngle());\n\n linSys.setDrawRules(shape.getDrawRules());\n linSys.setMoveRules(shape.getMoveRules());\n linSys.setRulesX(shape.getRulesX());\n linSys.setRulesY(shape.getRulesY());\n\n turtle.setCoords((double) frameWidth / 2, (double) frameHeight / 2);\n turtle.saveStartingTurtle();\n }",
"public void setShapeList(List theShapes){\n fShapes=theShapes;\r\n\r\n if (fSemantics!=null)\r\n fSemantics.setShapeList(theShapes);\r\n\r\n setSemanticsForInterpretationBoards();\r\n\r\n listenToAll(fShapes);\r\n\r\n if (fSemantics.interpretationChanged()); //NEW ENSURE UPDATE AFTER FILE OPEN\r\n\r\n }",
"private void setBeginAndEnd() {\n for (int i=1;i<keyframes.size();i++){\n if (curTime <= ((PointInTime)keyframes.get(i)).time){\n beginPointTime=(PointInTime)keyframes.get(i-1);\n endPointTime=(PointInTime)keyframes.get(i);\n return;\n }\n }\n beginPointTime=(PointInTime)keyframes.get(0);\n if (keyframes.size()==1)\n endPointTime=beginPointTime;\n else\n endPointTime=(PointInTime)keyframes.get(1);\n curTime=((PointInTime)keyframes.get(0)).time;\n }",
"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 setShape(int left, int top, int width, int height) {\n rectShape.left = left;\n rectShape.top = top;\n rectShape.width = width;\n rectShape.height = height;\n\n setPathShapes(0, 0, width, height);\n subgroup.setTransform(left, top);\n textGroup.setTransform(left, top);\n\n textUtil.setShapeSize(width, height);\n\n if (legacy) {\n textUtil.setTextShape();\n }\n }",
"protected void setLineType(int style) {\r\n\t\tif (primaryShape instanceof Shape) {\r\n\t\t\t((Shape) primaryShape).setLineStyle(style);\r\n\t\t}\r\n\t}",
"public void setShape(String shape)\n\t{\n \t \n \tlength.setVisible(false); \n \twidth.setVisible(false); \n \theight.setVisible(false); \n \tradius.setVisible(false); \n \tradius2.setVisible(false); \n \troll.setVisible(false); \n \tpitch.setVisible(false); \n \tyaw.setVisible(false); \n \tquality.setVisible(false); \n \tsides.setVisible(false);\n \t\n \tlengthText.setVisible(false); \n \twidthText.setVisible(false); \n \theightText.setVisible(false); \n \tradiusText.setVisible(false); \n \tradius2Text.setVisible(false); \n \trollText.setVisible(false); \n \tpitchText.setVisible(false); \n \tyawText.setVisible(false); \n \tqualityText.setVisible(false); \n \tsidesText.setVisible(false);\n \t\n\t\tif(shape.equals(\"Cube\"))\n \t{\n \t\tlengthText.setVisible(true);\n \t\tlength.setVisible(true);\n \t\twidthText.setVisible(true);\n \t\twidth.setVisible(true);\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\tlength.setText(\"1\");\n \t\twidth.setText(\"1\");\n \t\theight.setText(\"1\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t}\n \telse if(shape.equals(\"Sphere\"))\n \t{\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tqualityText.setVisible(true);\n \t\tquality.setVisible(true);\n \t\t\n \t\tradius.setText(\"1\");\n \t\tquality.setText(\"15\");\n \t}\n \telse if(shape.equals(\"Prism\"))\n \t{\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tsidesText.setVisible(true);\n \t\tsides.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\theight.setText(\"1\");\n \t\tradius.setText(\"1\");\n \t\tsides.setText(\"4\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t\t\n \t}\n \telse if(shape.equals(\"Cylinder\"))\n \t{\n \t\theightText.setVisible(true);\n \t\theight.setVisible(true);\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\t//yawText.setVisible(true);\n \t\t//yaw.setVisible(true);\n \t\t\n \t\theight.setText(\"1\");\n \t\tradius.setText(\"1\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\t//yaw.setText(\"0\");\n \t}\n \telse if(shape.equals(\"Torus\"))\n \t{\n \t\tradiusText.setVisible(true);\n \t\tradius.setVisible(true);\n \t\tradius2Text.setVisible(true);\n \t\tradius2.setVisible(true);\n \t\tqualityText.setVisible(true);\n \t\tquality.setVisible(true);\n \t\trollText.setVisible(true);\n \t\troll.setVisible(true);\n \t\tpitchText.setVisible(true);\n \t\tpitch.setVisible(true);\n \t\tyawText.setVisible(true);\n \t\tyaw.setVisible(true);\n \t\t\n \t\tradius.setText(\"1\");\n \t\tradius2.setText(\"2\");\n \t\tquality.setText(\"15\");\n \t\troll.setText(\"0\");\n \t\tpitch.setText(\"0\");\n \t\tyaw.setText(\"0\");\n \t}\n \t\n\t}",
"public void setCurrentShape(Shape currentShape, JTextField textfield ) {\n\t\t\n\t\tthis.currentShape = currentShape;\n\t\tthis.statusText = textfield;\n\t}",
"public void setShapeMasked(boolean shapeMasked) {\n boolean oldShapeMasked = this.shapeMasked;\n this.shapeMasked = shapeMasked;\n propertyChangeSupport.firePropertyChange(\"shapeMasked\", oldShapeMasked, shapeMasked);\n }",
"public void addShape(TShape aShape){\r\n // fShapes.remove(aShape); // just in case it was already there\r\n\r\n /*unfortunately we need to have a front to back screen order, properties at the back\r\n (drawn first), then individuals, finally relations between individuals*/\r\n\r\n /* if (aShape instanceof TLine)\r\n fShapes.add(aShape); // add at the end\r\n else if (aShape instanceof TProperty)\r\n fShapes.add(0,aShape); // add at the beginning\r\n else {\r\n int insertIndex=0;\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()) {\r\n if (! ((TShape) iter.next()instanceof TProperty))\r\n break; //put it after rectangles\r\n else\r\n insertIndex++;\r\n }\r\n }\r\n fShapes.add(insertIndex,aShape);\r\n }*/\r\n\r\n\r\n // aShape.setSemantics(fSemantics);\r\n\r\n aShape.addChangeListener(this); // and we'll listen for any of its changes, such as being selected\r\n\r\n addShapeToList(aShape,fShapes);\r\n\r\n if (aShape instanceof TInterpretationBoard)\r\n ((TInterpretationBoard)aShape).setSemantics(fSemantics);\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n }",
"public void setFeedbackPoint(Shape shape, Point point){\n\t\tPolyline polyline = (Polyline)shape;\n\t\tpolyline.setFeedback(point);\n\t\t\n\t\tthis.view.getPaintPanel().update(null,null);\n\t}",
"@FXML\n void editTimeline (Timeline timeline) {\n\n// changes the Timeline name\n timeline.name = timeline_nameField.getText().trim();\n\n// exits the add window\n cancelTimelineEdit();\n\n setMessage(\"Successfully edited Timeline.\", false);\n }",
"public void setTimeLine(double time) {\n if (yCoord != 0) {\n try {\n offscreen.setRGB(0, yCoord, width, 1, pixels, 0, 0);\n } catch (Exception ex) {\n }\n }\n if (time > 0.0 && time < 1.0) {\n // store the new time line to the restoration array\n timeValue = time;\n yCoord = (int) (timeValue * height);\n offscreen.getRGB(0, yCoord, width, 1, pixels, 0, 0);\n for (int x = 0; x < width; x++) {\n pixels[x] ^= 0x00FFFFFF;\n }\n offscreen.setRGB(0, yCoord, width, 1, pixels, 0, 0);\n for (int x = 0; x < width; x++) {\n pixels[x] ^= 0x00FFFFFF;\n }\n }\n }",
"public Timeline getTimeline() { return this.timeline; }",
"private void setPathShapes(int left, int top, int width, int height) {\n for (int i = 0; i < paths.size(); ++i) {\n PathWrapper p = paths.get(i);\n IPathFactory f = getPathFactories().get(i);\n p.path.setShape(f.createPath(left, top, width, height));\n }\n }",
"public void setShape(int pValue){\n\t\t\n\t\tswitch(pValue){\n\t\t\n\t\tcase(0): iShape = eTileShape.CIRCLE;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(1): iShape = eTileShape.CLUB;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(2): iShape = eTileShape.DIAMOND;\n\t\t\tbreak;\n\t\t\n\t\tcase(3): iShape = eTileShape.STAR;\n\t\t\tbreak;\n\t\t\n\t\tcase(4): iShape = eTileShape.SPADE;\n\t\t\tbreak;\n\t\t\n\t\tcase(5): iShape = eTileShape.SQUARE;\n\t\t\tbreak;\n\t\t\n\t\tdefault: System.out.print(\"Error: Out of bounds Shape Value\");\n\t\t}//end case\n\t}",
"@Override\n public void init() {\n head.setFill(getColor());\n body.setFill(getColor());\n update();\n }",
"public void setShape(short shape) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 2, shape);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 2, shape);\n\t\t}\n\t}",
"@Override\n\tpublic void setShapeColor(Color color) {\n\t\tthis.currentColor = color;\n\t}",
"public CanvasEditor(Shape initialShape) { //shape constructor\n\t\t\n\t\tthis.currentShape = initialShape;\n\t\t\n\t\t\n\t}",
"public void animUpdate(PropertyChangeEvent anEvent)\n{\n // Return if shape is a new-born\n if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return;\n \n // If change is anim property, add record\n if(isAnimProperty(anEvent.getPropertyName()))\n addTimelineEntry(anEvent.getPropertyName(), anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Fill\n else if(anEvent.getPropertyName().equals(\"Fill\")) {\n RMFill f1 = (RMFill)anEvent.getNewValue();\n RMFill f2 = (RMFill)anEvent.getOldValue();\n RMColor c1 = f1!=null? f1.getColor() : RMColor.clearWhite;\n RMColor c2 = f2!=null? f2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"Color\", c1, c2);\n }\n \n // Add anim records for Fill.Color\n else if(anEvent.getPropertyName().equals(\"Fill.Color\"))\n addTimelineEntry(\"Color\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke\n else if(anEvent.getPropertyName().equals(\"Stroke\")) {\n RMStroke s1 = (RMStroke)anEvent.getNewValue();\n RMStroke s2 = (RMStroke)anEvent.getOldValue();\n RMColor c1 = s1!=null? s1.getColor() : RMColor.clearWhite;\n RMColor c2 = s2!=null? s2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"StrokeColor\", c1, c2);\n float lw1 = s1!=null? s1.getWidth() : 0;\n float lw2 = s2!=null? s2.getWidth() : 0;\n addTimelineEntry(\"StrokeWidth\", lw1, lw2);\n }\n \n // Add anim records for Stroke.Color\n else if(anEvent.getPropertyName().equals(\"Stroke.Color\"))\n addTimelineEntry(\"StrokeColor\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke.Width\n else if(anEvent.getPropertyName().equals(\"Stroke.Width\"))\n addTimelineEntry(\"StrokeWidth\", anEvent.getNewValue(), anEvent.getOldValue());\n}",
"public void setStartPointEndingStyle(String style) {\n/* 713 */ String actualStyle = (style == null) ? \"None\" : style;\n/* 714 */ COSBase base = getCOSObject().getDictionaryObject(COSName.LE);\n/* */ \n/* 716 */ if (!(base instanceof COSArray) || ((COSArray)base).size() == 0) {\n/* */ \n/* 718 */ COSArray array = new COSArray();\n/* 719 */ array.add((COSBase)COSName.getPDFName(actualStyle));\n/* 720 */ array.add((COSBase)COSName.getPDFName(\"None\"));\n/* 721 */ getCOSObject().setItem(COSName.LE, (COSBase)array);\n/* */ }\n/* */ else {\n/* */ \n/* 725 */ COSArray array = (COSArray)base;\n/* 726 */ array.setName(0, actualStyle);\n/* */ } \n/* */ }",
"public void setStroke(Stroke stroke);",
"public void setShapes(ArrayList<DrawableGUIShape> shapes) {\n if (shapes == null) {\n throw new IllegalArgumentException(\"invalid shape list\");\n } else {\n for (DrawableGUIShape s : shapes) {\n if (s == null) {\n throw new IllegalArgumentException(\"invalid shape list\");\n }\n }\n }\n this.shapes.clear();\n this.shapes.addAll(shapes);\n }",
"public void setPathOrigin(int x, int y);",
"@Override\n public void setRectangle() {\n switch (direction){\n case 0:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 2:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 1:\n rectangle.setLocation((int)x+13,(int)y+8);\n break;\n case 3:\n rectangle.setLocation((int)x+2,(int)y+8);\n break;\n }\n\n }",
"public void setNodeShape(String shape) {\n StringBuffer command = new StringBuffer(\"node [shape=\");\n command.append(shape);\n command.append(\"];\");\n this.drawElements.add(new DotGraphCommand(new String(command)));\n }",
"private void setUpLedger() {\n _ledgerLine = new Line();\n _ledgerLine.setStrokeWidth(Constants.STROKE_WIDTH);\n _staffLine = new Line();\n _staffLine.setStrokeWidth(1);\n }",
"void setBegin(net.opengis.gml.x32.TimeInstantPropertyType begin);",
"public final void updateTimeline()\r\n {\r\n Kml placesKml = myModel.getMyPlaces();\r\n\r\n Feature feature = placesKml.getFeature();\r\n\r\n if (feature instanceof Document)\r\n {\r\n Document doc = (Document)feature;\r\n List<Placemark> timedPoints = New.list();\r\n getTimedPlacemarks(doc.getFeature(), timedPoints);\r\n\r\n myTimelineRegistry.removeLayer(ourKey);\r\n if (!timedPoints.isEmpty())\r\n {\r\n Placemark mark = timedPoints.get(0);\r\n Color color = PlacemarkUtils.getPlacemarkColor(mark);\r\n myTimelineRegistry.addLayer(ourKey, \"My Places\", color, true);\r\n addPointsToTimeline(timedPoints);\r\n }\r\n }\r\n }",
"private void setCurrentPos() {\n\t\tcurrentPos=layout_Circle[l.y][l.x];\n\t\tcurrentPos.setFill(Paint.valueOf(\"Red\"));\n\n\t\tsetValidMoves();\n\t}",
"Axis (Timeline timeline) {\n\n// assigns a Timeline to the Axis\n this.timeline = timeline;\n\n// creates a common y value for all Elements of the Axis\n// also used by all Markers on this Axis\n y = (axes.size() + 1) * 120;\n\n// places and styles the Axis\n this.setText(timeline.name.toUpperCase());\n this.setLayoutY(y - 12);\n this.setStyle(stylesheet.toString());\n this.getStyleClass().add(\"marker\");\n\n// places and styles the persistentLabel\n persistentLabel = new Label(timeline.name.toUpperCase());\n persistentLabel.setLayoutY(y - 13);\n persistentLabel.setStyle(stylesheet.toString());\n persistentLabel.getStyleClass().add(\"marker\");\n persistentLabel.setStyle(\"-fx-text-fill: #cccccc\");\n persistentLabel.setLayoutX(20);\n persistentLabel.setVisible(false);\n\n// sets start as the startDate of the first Event\n start = timeline.events.peekFirst().startDate[2];\n\n// sets right click on the Label and persistentLabel to expand Timeline\n this.setOnMouseClicked(mouseEvent -> {\n if (mouseEvent.getButton() == MouseButton.SECONDARY)\n expandElement(timeline);\n });\n persistentLabel.setOnMouseClicked(mouseEvent -> {\n if (mouseEvent.getButton() == MouseButton.SECONDARY)\n expandElement(timeline);\n });\n }",
"TimelineEntity(){}",
"public void setShapesLocation(File shapesLocation) {\n\t\tthis.shapesLocation = shapesLocation;\n\t}",
"public void setAnimation() {\r\n\r\n // start outside the screen and move down until the clock is out of sight\r\n ObjectAnimator moveDown = ObjectAnimator.ofFloat(this, \"y\", -100, screenY + 100);\r\n AnimatorSet animSet = new AnimatorSet();\r\n animSet.play(moveDown);\r\n\r\n // Set duration to 4000 milliseconds\r\n animSet.setDuration(4000);\r\n\r\n animSet.start();\r\n\r\n }",
"public void setLine (int Line);",
"public void setDrawingLayer(DrawingLayer drawingLayer)\n\t{\t\t\n\t\tspawnDrawingLayer = drawingLayer;\n\t}",
"void setShapeList(List<String> shapes);",
"public TimeLine(Spatial target) {\r\n this.target = target;\r\n }",
"public void draw(Shape shape) {\n this.shape = shape; //setter\n System.out.println(shape.draw()); //execute\n }",
"T setSequencedAnimation(Boolean sequencedAnimation);",
"protected JSR310DateTimeDeserializerBase<T> withShape(Shape shape) {\n return this;\n }",
"public void setStages(ArrayList value);",
"public void setRandomShape()\n\t{\n\t\tvar rand = new Random();\n\t\tint x = Math.abs(rand.nextInt())%7 + 1;\n\t\t\n\t\tTetromino[] values = Tetromino.values();\n\t\tsetShape (values[x]);\n\t}",
"@Override\n public void setTurtlePosition(double xPosition, double yPosition) {\n screenCreator.setTurtlePosition(xPosition,yPosition);\n }",
"public void setBeginPosition(FPointType fpt) {\n fptStart.x = fpt.x;\n fptStart.y = fpt.y;\n }",
"public void addShape(Shape shape)\n {\n shapes.add(shape);\n }",
"private void prepareTimeline() {\n\r\n\t new AnimationTimer() {\r\n\r\n\t @Override\r\n\t public void handle(long now) {\r\n\r\n\t addDataToSeries();\r\n\r\n\t }\r\n\t }.start();\r\n\r\n\t}",
"@FXML\n void addTimeline () {\n\n// loads data from TextField\n String name = timeline_nameField.getText().trim();\n\n// checks if the TextField has contents in it\n if (name.isEmpty()) {\n setMessage(\"Timeline creation failed: Invalid Timeline name\", false);\n return;\n }\n\n// creates a Timeline\n app.timelines.add(new Timeline(name));\n\n// clears the TextFields\n timeline_nameField.setText(\"\");\n\n setMessage(\"Successfully created Timeline: \" + name, false);\n\n// re-lists the elements in Menu\n drawMenuElements(false);\n window.setTitle(\"Timelines: Menu\");\n\n toggleMenuButtonVisibility(true);\n cancelTimelineButton.setVisible(false);\n }",
"public EventTimeline() {\n this(0, 0, 91, 9);\n }",
"public void setFlavor(LinePlotFlavor flavor) {\n this.flavor = flavor;\n }",
"public abstract void setClip(Shape clip);",
"public final void init(Shape shape) {\n if (shape.getCustomConfig() instanceof BrushConfig) {\n BrushConfig bc = (BrushConfig) shape.getCustomConfig();\n Brush brush = getBrush(bc.getBrush());\n brush.init(shape, bc.getRulerMode());\n \n for (Vector2 point : bc.getPoints()) {\n brush.mouseMove(point);\n }\n }\n }",
"@Override\n public void initialize() {\n double left = getBorder().getStrokes().get(0).getWidths().getLeft();\n canvas.widthProperty().bind(widthProperty().subtract(left * 2));\n canvas.heightProperty().bind(heightProperty().subtract(left * 2));\n canvas.setTranslateX(left);\n canvas.setTranslateY(left);\n\n // init properties value\n color.set(Color.BLUE);\n thickness.set(5);\n\n // addind mouse handlers\n canvas.setOnMousePressed(e -> {\n lastLineList.clear();\n handleMouseEvent(e);\n });\n canvas.setOnMouseDragged(e -> handleMouseEvent(e));\n canvas.setOnMouseReleased(e -> {\n handleMouseEvent(e);\n lastLine.setValue(new DrawingInfos(lastLineList));\n });\n }",
"private void scaleFrames(RMShape aShape, int aStartTime, float aFactor)\n{\n // If shape timeline available, have it scale records\n if(aShape.getTimeline()!=null) {\n \n // Scale timeline records\n aShape.getTimeline().scaleRecords(aStartTime, aFactor);\n \n // Reset time\n resetShapeTimeline(aShape);\n }\n \n // Forward scale frames on to shape children\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n scaleFrames(aShape.getChild(i), aStartTime, aFactor);\n}",
"DrawShape(){\r\n super();\r\n setBackground(Color.WHITE);\r\n addMouseListener(this);\r\n }",
"@Override\n\tpublic void setShapeColor(Color color) {\n\t\tthis.decorateComponent.setShapeColor(color);\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 }",
"public abstract void setStroke(BasicStroke stroke);",
"public void setParent(RMParentShape aShape) { _parent = aShape; }",
"public void setPosition(Point position){\r\n this.position.set(position.x, position.y);\r\n\r\n this.shadow.setPosition(position);\r\n this.surface.setPosition(position);\r\n this.shading.setPosition(position);\r\n\r\n\r\n this.setBounds(new Rect(\r\n this.position.x - this.radius,\r\n this.position.y - this.radius,\r\n this.position.x + this.radius,\r\n this.position.y + this.radius\r\n ));\r\n \r\n }",
"public Timeline getTimeline() {\n return this.timeline;\n }",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"private void updateShapeOffset() {\n int offsetX = scroller.getOffsetX();\n int offsetY = scroller.getOffsetY();\n shape.setOffset(offsetX, offsetY);\n }",
"public void setPosition(Point position);",
"public void setStrokeStyle(STYLE style);",
"@Override\n\tpublic void setPaintType(int type) {\n\t\tthis.shapeType = type;\n\t}",
"public void setLinePos(int linePos) {\n this.linePos = linePos;\n }",
"public LineShape() {\n sc=new ShapeComponent[4];\n sc[0]=new ShapeComponent(0,0);\n sc[1]=new ShapeComponent(0,5);\n sc[2]=new ShapeComponent(0,10);\n sc[3]=new ShapeComponent(0,15);\n size=5;\n }"
] |
[
"0.6780179",
"0.6731074",
"0.6707175",
"0.664117",
"0.6567006",
"0.6492619",
"0.6477885",
"0.63573843",
"0.6208399",
"0.6012723",
"0.5981732",
"0.5817254",
"0.5817139",
"0.5801775",
"0.577037",
"0.5696115",
"0.558276",
"0.55762815",
"0.5571249",
"0.55670726",
"0.550238",
"0.54809994",
"0.5449412",
"0.54401016",
"0.54097986",
"0.53891015",
"0.53566873",
"0.5290709",
"0.5262135",
"0.52117085",
"0.5178015",
"0.5158132",
"0.5148458",
"0.5147551",
"0.51208544",
"0.50931627",
"0.5076599",
"0.50595105",
"0.50563884",
"0.5023494",
"0.49983394",
"0.4980277",
"0.49382156",
"0.491438",
"0.49016935",
"0.48916402",
"0.48869133",
"0.48860553",
"0.48843914",
"0.48822397",
"0.48821267",
"0.48817536",
"0.48802313",
"0.48708656",
"0.48707098",
"0.4865097",
"0.48382312",
"0.4836757",
"0.48054618",
"0.48049048",
"0.47832802",
"0.47811928",
"0.476728",
"0.47596973",
"0.4745239",
"0.47418436",
"0.47163695",
"0.47076637",
"0.47002882",
"0.46967787",
"0.46844527",
"0.4683914",
"0.46800876",
"0.46789694",
"0.46788156",
"0.46759677",
"0.46724585",
"0.46706012",
"0.4670095",
"0.46617097",
"0.46574727",
"0.4657332",
"0.46566558",
"0.46478242",
"0.46379608",
"0.46275604",
"0.46221405",
"0.46126986",
"0.4610941",
"0.46097484",
"0.46030548",
"0.4599445",
"0.45994207",
"0.45980668",
"0.45972508",
"0.45740086",
"0.4567687",
"0.45663682",
"0.45661387",
"0.45633644"
] |
0.764865
|
0
|
Tells the shape's timeline to update the shape to the given time in milliseconds. Recurses to shape children.
|
public void setTime(int aTime)
{
// Get shape timeline and set time (if non-null)
RMTimeline timeline = getTimeline();
if(timeline!=null) {
undoerDisable();
timeline.setTime(aTime);
undoerEnable();
}
// If children have same animator as this shape, recurse setTime to children
if(getAnimator()==getChildAnimator())
for(int i=0, iMax=getChildCount(); i<iMax; i++)
getChild(i).setTime(aTime);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setTime(int aTime)\n{\n // If we loop, mod the time, otherwise, clamp time\n if(getLoops() && aTime>getMaxTime())\n aTime = aTime%getMaxTime();\n else aTime = SnapMath.clamp(aTime, 0, getMaxTime());\n \n // If already at given time, just return\n if(_time==aTime) return;\n\n // Set new value and fire property change\n firePropertyChange(\"Time\", _time, _time = aTime, -1);\n \n // Reset time of owner children\n for(int i=0, iMax=getOwner().getChildCount(); i<iMax; i++)\n getOwner().getChild(i).setTime(_time);\n \n // Send did update notification\n for(int i=0, iMax=getListenerCount(Listener.class); i<iMax; i++)\n getListener(Listener.class, i).animatorUpdated(this);\n \n // Clear new born list\n _newBorns.clear();\n}",
"@Override\n public void updateAtTime(IShape shape, int time) {\n int currentSx = formula(time, this.startTime, this.endTime, this.fromSx, this.toSx);\n int currentSy = formula(time, this.startTime, this.endTime, this.fromSy, this.toSy);\n\n shape.setScale(currentSx, currentSy);\n }",
"public void timeUpdate(int time) {\r\n handler.setTime(time);\r\n }",
"public void update(int time);",
"public void shiftFrames(int fromTime, int aShiftTime)\n{\n // Scale frames for shapes\n for(int i=0, iMax=getOwner().getChildCount(); i<iMax; i++)\n shiftFrames(getOwner().getChild(i), fromTime, aShiftTime);\n \n // If new time beyond max, reset max time\n setTime(fromTime + aShiftTime);\n setMaxTime(getMaxTime() + aShiftTime);\n}",
"private void shiftFrames(RMShape aShape, int fromTime, int aShiftTime)\n{\n // If shape timeline available, have it shift records\n if(aShape.getTimeline()!=null)\n aShape.getTimeline().shiftRecords(fromTime, aShiftTime);\n \n // Forward shift frame on to shape children\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n shiftFrames(aShape.getChild(i), fromTime, aShiftTime);\n}",
"public void setTime(int time) {\r\n\t\tthis.time = time;\r\n\t\tupdate();\r\n\t}",
"public void timeChanged( int newTime );",
"protected void updateTime(float deltaTime) {\n }",
"public abstract void update(float time);",
"@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}",
"public void updateTime() {\n\t\tthis.currentTime = System.currentTimeMillis();\n\t}",
"public void updateTime(int time)\n\t{\n\t\tshotsRemaining = rateOfFire;\n\t}",
"public void timeUpdate(AudioHandler handler, long time) {\r\n slrTime.setValue((int) time);\r\n lblTime.setText(Utility.formatTime(time, false) + \" / \" + Utility.formatTime(handler.getDuration(), false));\r\n if (panGlassPane.isVisible()) panGlassPane.repaint();\r\n }",
"public void update(GameTime gameTime){\n\t\tsuper.update(gameTime);\n\t\t//TODO: put drawing code here\n\t\t\n\t}",
"public void move(long elapsedTimeNs) {\n\n for (Shape s: shapes){\n if (s instanceof FillableShape && s.getColor() == Color.GREEN){\n ((FillableShape) s).setFilled(true);\n }\n s.move(elapsedTimeNs);\n s.constrain(0,0,width,height);\n }\n }",
"public void setTime(float time) {\n this.time = time;\n }",
"private void scaleFrames(RMShape aShape, int aStartTime, float aFactor)\n{\n // If shape timeline available, have it scale records\n if(aShape.getTimeline()!=null) {\n \n // Scale timeline records\n aShape.getTimeline().scaleRecords(aStartTime, aFactor);\n \n // Reset time\n resetShapeTimeline(aShape);\n }\n \n // Forward scale frames on to shape children\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n scaleFrames(aShape.getChild(i), aStartTime, aFactor);\n}",
"protected void timeChanged(Real time) {\n try {\n getChart().timeChanged(time);\n } catch (Exception exc) {\n logException(\"changePosition\", exc);\n }\n super.timeChanged(time);\n }",
"abstract protected void refresh(long time);",
"private void updateWindow(long time) {\n for (long nextSecond = secondStart + NANO_IN_SECOND; end != null\n && nextSecond < time; nextSecond += NANO_IN_SECOND) {\n int count = 0;\n while (start != null && start.time < nextSecond) {\n count++;\n start = start.next;\n }\n lastSecondCount -= count;\n secondStart = nextSecond;\n updateLastSecond(count);\n if (start == null)\n end = null;\n }\n }",
"public void setTime(double time) {_time = time;}",
"public void scaleFrames(int aStartTime, int newMaxTime)\n{\n // Get scale factor\n float factor = newMaxTime/(float)getMaxTime();\n \n // Scale frames for shapes\n for(int i=0, iMax=getOwner().getChildCount(); i<iMax; i++)\n scaleFrames(getOwner().getChild(i), aStartTime, factor);\n \n // Set new max time\n setMaxTime(newMaxTime);\n}",
"void setTime(final int time);",
"public void setTime(long time) {\n this.time = time;\n }",
"public void setTime(long time) {\r\n this.time = time;\r\n }",
"public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void changeTime(int time, Activity activity) {\r\n\t\tthis.currentTime = time;\t\r\n//\t\tinvalidate(); // causes the onDraw method to be invoked\r\n\t\tactivity.runOnUiThread(new Runnable() {\r\n\t\t\t public void run() {\r\n\t\t\t\t invalidate();\r\n\t\t\t }\r\n\t\t\t});\r\n\t}",
"public abstract void updateTime(int currentTime);",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"protected abstract void update(double deltaTime);",
"public void setBorderLerpTime(long time)\n {\n borderSizeLerpTime = time;\n }",
"public void timeChanged();",
"private void updateTime() {\n timer.update();\n frametime = timer.getTimePerFrame();\n }",
"public void setTimeLine(double time) {\n if (yCoord != 0) {\n try {\n offscreen.setRGB(0, yCoord, width, 1, pixels, 0, 0);\n } catch (Exception ex) {\n }\n }\n if (time > 0.0 && time < 1.0) {\n // store the new time line to the restoration array\n timeValue = time;\n yCoord = (int) (timeValue * height);\n offscreen.getRGB(0, yCoord, width, 1, pixels, 0, 0);\n for (int x = 0; x < width; x++) {\n pixels[x] ^= 0x00FFFFFF;\n }\n offscreen.setRGB(0, yCoord, width, 1, pixels, 0, 0);\n for (int x = 0; x < width; x++) {\n pixels[x] ^= 0x00FFFFFF;\n }\n }\n }",
"public void setTime(long time) {\r\n this.time.setTime(time);\r\n }",
"public void step(float time)\n {\n if(this.firstTick)\n {\n this.firstTick = false;\n this.elapsed = 0.0f;\n }\n else\n {\n this.elapsed += time;\n }\n\n float updateTime = (float)Math.min(1.0f, this.elapsed/this.duration);\n\n this.update(updateTime);\n }",
"public void setTime(Long time) {\n this.time = time;\n }",
"public void update(int difTime){\n \tfor (Iterator<Sprite> iterator = graphicsElements.iterator(); iterator.hasNext();) {\n\t\t\tSprite s = (Sprite)iterator.next();\n\t\t\ts.update(difTime);\n \t}\n }",
"public boolean advanceTo(long time)\n {\n if (time < startTime)\n {\n return false;\n }\n else if (state == AnimationState.STOPPED)\n {\n return true;\n }\n else if (state == AnimationState.WAITING)\n {\n state = AnimationState.FORWARD;\n dispatchAnimationEvent(animationStarted);\n }\n \n float t = 0;\n long scaledTime = time;\n boolean ended = false;\n \n switch (repeatMode)\n {\n case NONE:\n ended = (time >= startTime + duration);\n t = ended ? 1.0f :\n (float) ((double) (time - startTime) / duration);\n break;\n \n case REPEAT:\n state = AnimationState.FORWARD;\n scaledTime = (time - startTime) % duration;\n t = (float) ((double) scaledTime / duration);\n \n if (scaledTime < lastTime)\n {\n dispatchAnimationEvent(animationRepeated);\n }\n \n break;\n \n case OSCILLATE:\n scaledTime = (time - startTime) % (2 * duration);\n \n if (scaledTime < duration)\n {\n t = (float) ((double) scaledTime / duration);\n }\n else\n {\n t = 1 - (float) ((double) (\n scaledTime - duration) / duration);\n }\n \n if (state == AnimationState.FORWARD\n && scaledTime > duration)\n {\n state = AnimationState.BACKWARD;\n dispatchAnimationEvent(animationRepeated);\n }\n else if (state == AnimationState.BACKWARD\n && scaledTime < duration)\n {\n state = AnimationState.FORWARD;\n dispatchAnimationEvent(animationRepeated);\n }\n \n break;\n }\n \n float y = interpolator.getInterpolation(t);\n \n for (PropertyTransformer transformer : transformers)\n {\n transformer.transform(y);\n }\n \n if (ended)\n {\n if (removeWhenComplete)\n {\n getShape().remove();\n }\n \n dispatchAnimationEvent(animationEnded);\n }\n \n lastTime = scaledTime;\n \n return ended;\n }",
"public void setTime(int time) {\n\t\tthis.time = time;\n\t}",
"protected void resetShapeTimeline(RMShape aShape)\n{\n RMTimeline timeline = aShape.getTimeline(); if(timeline==null) return;\n aShape.undoerDisable();\n int time = timeline.getTime(); timeline.setTime(0); timeline.setTime(time);\n aShape.undoerEnable();\n}",
"public abstract void update(float deltaTime);",
"public abstract void update(float deltaTime);",
"public abstract void update(float deltaTime);",
"public void setTime(){\r\n \r\n }",
"public void setTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}",
"public void update(long ms) {\n\t\t\n\t}",
"public void setWait(int time)\n\t{\n\t\tthis.dx = 1;\n\t\tthis.dy = 1;\n\t\tthis.time = time;\n\t\t//run();\n\t}",
"@Override\n public void draw(Batch batch, float parentAlpha) {\n long currentTime = System.currentTimeMillis();\n\n if (!isFinished) {\n timeLabel.setText(formatTime(endTime - currentTime));\n\n if (endTime <= currentTime) {\n isFinished = true;\n fire(new ChangeListener.ChangeEvent());\n }\n\n super.draw(batch, parentAlpha);\n }\n }",
"public void setTime(int time) {\n\n\t\tthis.time = time;\n\t}",
"void update(String time);",
"@Command\n\t@NotifyChange(\"currentTime\")\n\tpublic void updateTime() {\n\t}",
"public void updateTime(double time){\n\t\t//System.out.println(\"Updating time at \"+time);\n\t\tif(drivefirst)\n\t\t\tupdateTimeDF(time);\n\t\telse\n\t\t\tupdateTimeWF(time);\n\t}",
"public void clockChange(int time);",
"public Fireball update(int time) {\r\n\t\tif(shouldRemove()==false){\r\n\t\t\tgraphic.draw();\r\n\t\t}\r\n\t\t\r\n\t\trandGen=new Random();\r\n\t\t\r\n\t\t//Decrements the countdown by time\r\n\t\tfireballCountdown-=time;\r\n\t\t\r\n\t\t//As long as fireballcountdown<=0 it prints out a new fireball\r\n\t\tif(fireballCountdown <=0){\r\n\t\t\t\r\n\t\t\t//Sets a new number in the coundown starting the process again\r\n\t\t\tfireballCountdown = randGen.nextInt(3001)+3000;\r\n\t\t\t\r\n\t\t\t//Makes the fires produce fireballs\r\n\t\t\tFireball fire= new Fireball(graphic.getX(),graphic.getY(),\r\n\t\t\t\t\t(float)(randGen.nextFloat()*(2*Math.PI)));\r\n\t\t\tif(shouldRemove()==false){\r\n\t\t\t\tLevel.fireballs.add(fire);\r\n\t\t\t}\r\n\t\t\treturn fire;\r\n\t\t\t\r\n\t\t}\r\n\t\telse return null;\r\n\t\t\r\n\t}",
"@Override\n\tpublic void update(long elapsed_time, LevelData levelData, Rectangle animation_bounds)\n\t{\n\t}",
"@Override\n void individualUpdate() {\n timeToLive--;\n radius++;\n setColor();\n }",
"@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}",
"public void setTime(int time)\n {\n this.time = time;\n start = time;\n end = time;\n }",
"public void setTime(gov.ucore.ucore._2_0.TimeType time)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.TimeType target = null;\n target = (gov.ucore.ucore._2_0.TimeType)get_store().find_element_user(TIME$2, 0);\n if (target == null)\n {\n target = (gov.ucore.ucore._2_0.TimeType)get_store().add_element_user(TIME$2);\n }\n target.set(time);\n }\n }",
"public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }",
"public void setLastMoved(double time);",
"public void handle(long currentNanoTime) {\n\t \t\t\tobw.updateWorld(mc);\t\t\t// find new position of ball \n\t \t\t\tobw.drawWorld(mc);\t\t\t\t// draw ball in new position\n\t \t\t}",
"public void setPlayerTime ( long time , boolean relative ) {\n\t\texecute ( handle -> handle.setPlayerTime ( time , relative ) );\n\t}",
"public synchronized void tick(){\r\n\t\ttime++;\r\n\t\tnotifyAll();\r\n\t}",
"public static void set(long time) {\n\t\tWorldTime.absoluteTime = time;\n\t}",
"public abstract void advance(double deltaTime);",
"@Override\n public synchronized void update(int deltaTime) {\n }",
"private void updateTime()\n {\n time++;\n this.timeTextField.setText(\"\" + time);\n }",
"@Override\r\n\tpublic void Update() {\n\t\tsuper.Update();\r\n\t\t\r\n\t\tif(mTime != Definition.FOREVER && mTime < 0)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tfor(int i=0;i<mOwner.mSpriteList.size();i++)\r\n\t\t{\r\n\t\t\tmOwner.mSpriteList.get(i).setColor(23f/255, 117f/255, 148f/255);\r\n\t\t}\r\n\t\t\r\n\t\tMotionStrategy move = new SpeedUp(mSlowRate, -1);\r\n\t\tmOwner.getMoveWay().add(move);\r\n\t}",
"public void step(){\r\n\t\tcurrentTime++;\r\n\t\tfor (TimeObserver t : observers) {\r\n\t\t\tt.timeChanged(currentTime);\r\n\t\t}\r\n\t}",
"public void tick() {\n --this.peekTime;\n }",
"@Override\n\tpublic void setTime(long time)\n\t{\n\t\tsource.setTime(time);\n\t}",
"public void removeFramesAtTime(int aTime)\n{\n // Iterate over owner children and remove frame at time\n for(int i=0, iMax=getOwner().getChildCount(); i<iMax; i++)\n removeFramesBetweenTimes(getOwner().getChild(i), aTime, aTime, true);\n \n // Remove frame from freeze frames\n int index = Collections.binarySearch(_freezeFrames, aTime);\n if(index>=0)\n _freezeFrames.remove(index);\n}",
"public void setTime( Date time ) {\n this.time = time;\n }",
"public float update(float time)\n {\n timeAccumulator += time;\n\n while (timeAccumulator > timeStep)\n {\n step(timeStep);\n timeAccumulator -= timeStep;\n }\n\n return timeAccumulator / timeStep;\n }",
"public void update()\n\t{\n\t\t// Place this GameCanvas at the proper location and size\n\t\tthis.setBounds(0, 0, game.getWindow().getWidth(), game.getWindow().getHeight());\n\t\t\n\t\tif (timeCount > game.getFps())\n\t\t\ttimeCount = 0;\n\t\t\n\t\ttimeCount++;\n\t}",
"@Override\n public State update() {\n if(mRuntime.seconds()<=time) {\n arm.setPosition(pos);\n return this;\n }\n //(1000);\n\n return NextState;\n\n\n\n\n\n }",
"public void Update(double elapsedTime){\n }",
"protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }",
"public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(long timeMillis) {\n this.timeMillis = timeMillis;\n }",
"public Builder setTime(long value) {\n\n time_ = value;\n onChanged();\n return this;\n }",
"public void setTime(long time,int ento){ \r\n\t}",
"abstract public void setLoadingTime(long time);",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void updatePos(double elapsedTime) {\n\t\tif(falling) {\n\t\t\tsetX(getOwner().getX() + getOwner().getWidth() / 2 - getBoundsInParent().getWidth() / 2);\n\t\t\tsetY(getOwner().getY() + getOwner().getHeight() / 2 - getBoundsInParent().getHeight() / 2);\n\t\t} else setY(this.getY() + elapsedTime * getYSpeed());\n\t}",
"public final native void setTime(String time) /*-{\n this.setTime(time);\n }-*/;",
"public TextView setRelativeTimeSpan( final int childViewIndex, final long time )\n {\n return updater.setRelativeTimeSpan( childViewIndex, time );\n }",
"public void step() {\n \tinternaltime ++;\n \n }",
"public void timePassed() {\n this.moveOneStep();\n }",
"@Override\n\tpublic void update(float deltaTime) {\n\t}"
] |
[
"0.6837417",
"0.6663438",
"0.6398447",
"0.61570126",
"0.6001116",
"0.5994662",
"0.5901658",
"0.58898205",
"0.5823875",
"0.58149797",
"0.57995987",
"0.5789631",
"0.5781539",
"0.577047",
"0.57550085",
"0.5753744",
"0.57272863",
"0.5676992",
"0.5659713",
"0.56279635",
"0.56159693",
"0.5602207",
"0.5596279",
"0.558036",
"0.5578072",
"0.5573668",
"0.55577976",
"0.5548367",
"0.5541857",
"0.55334413",
"0.5529543",
"0.5515273",
"0.5500294",
"0.5495664",
"0.54797006",
"0.54604065",
"0.54466254",
"0.54452914",
"0.54412276",
"0.54410714",
"0.54209644",
"0.54100287",
"0.54038525",
"0.54038525",
"0.54038525",
"0.5398201",
"0.53709334",
"0.5370308",
"0.5362556",
"0.53620625",
"0.53398174",
"0.53322417",
"0.5330179",
"0.5328626",
"0.5321431",
"0.5305837",
"0.5293028",
"0.52928114",
"0.5289463",
"0.5274045",
"0.5268056",
"0.52468973",
"0.52192307",
"0.5203531",
"0.51982075",
"0.51971674",
"0.5196983",
"0.5189997",
"0.51771355",
"0.51746076",
"0.51626766",
"0.51619834",
"0.51596534",
"0.51553774",
"0.5129805",
"0.5126617",
"0.5125787",
"0.51249754",
"0.5122706",
"0.51192564",
"0.5113886",
"0.51056707",
"0.51033735",
"0.51033735",
"0.51033735",
"0.5100882",
"0.5096626",
"0.50892067",
"0.5088436",
"0.5087442",
"0.5087442",
"0.5087442",
"0.5087442",
"0.5084378",
"0.50720465",
"0.5071035",
"0.5060801",
"0.50470465",
"0.5042707",
"0.5042497"
] |
0.7609513
|
0
|
Returns the Object associated with the given name for the shape. This is a general purpose property facility to allow shapes to hold many less common properties without the overhead of explicitly including ivars for them. The map that holds these properties is shared so that there is only ever one instance of the map for each unique permutation of attributes.
|
public Object get(String aName) { return _attrMap.get(aName); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"final public Object getObjectAttr(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.Object;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"String getShapeName();",
"IShape getShape(String name);",
"public Object getProperty(String name)\n {\n return m_props.get(name);\n }",
"Shape getShape();",
"public Object getProperty(String name) {\n return null;\n }",
"public Object getProperty(String name) {\n\t\treturn beanMap.get(name);\n\t}",
"LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();",
"public PropertyObject getProperty(String name) {\n return this.properties.get(name);\n }",
"public PrimObject reference(String name) {\n return resolveObject(name);\n }",
"Object getProperty(String name);",
"public Object get(String name) {\n if (name == null) {\n return this.def;\n }\n return super.get(name);\n }",
"AbstractShape(String name, double x, double y, double w, double h, int r, int g, int b) {\n this.name = name;\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n this.r = r;\n this.g = g;\n this.b = b;\n }",
"public Object getProperty(String name) {\n return properties.get(name);\n }",
"public Shape getShape() { return shape; }",
"public Property property(String name)\n\t{\n\t\tList<Element> list = filter(p -> p.getName().equals(name) && p instanceof Property);\n\t\t\n\t\tif (list != null && list.size() > 0)\n\t\t{\n\t\t\tif (list.size() > 1)\n\t\t\t\tSystem.out.println(\"Warning: Returning first of many groups with duplicate names\");\n\t\t\t\n\t\t\treturn (Property) list.get(0);\n\t\t}\n\t\telse return null;\n\t}",
"public Object prop(String name, String type);",
"public Shape getShape();",
"public GeometricObject(String name)\r\n\t{\r\n\t\tif (name == null || name.length() == 0)\r\n\t\t\tValidation.reportError(\"invalid name\");\r\n\t\telse\r\n\t\t\tthis.name = name;\r\n\t}",
"String getLayerShapeName();",
"public Shape getShape()\n {\n return Shape.this;\n }",
"private Object retrieveObject(String name)\r\n {\r\n Object retVal = null;\r\n\r\n // retrieve the object that the weak reference refers to, if any\r\n WeakReference ref = (WeakReference) nameObjects.get(name);\r\n if (ref != null)\r\n {\r\n retVal = ref.get();\r\n }\r\n \r\n return retVal;\r\n }",
"public Object getProperty(String name) {\n if (properties != null) {\n return properties.get(name);\n }\n return null;\n }",
"public String getProperty(String name);",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"public Shape getShape() {\n return shape;\n }",
"public Info getInfo() {\n super.fillInfo(shape);\n return this.shape;\n }",
"public XMLEleObject getObject() {\n if (Location != null) {\n SecName newName = new SecName(Location);\n newName.setAll(Name, Location, MyFont);\n return newName;\n }\n return null;\n }",
"public Optional<Object> getProperty(String name) {\n return Optional.ofNullable(properties.get(name));\n }",
"public String prop(String name);",
"public Object getProperty(String name)\n {\n return ClassAnalyzer.getProperty(m_Source,name);\n }",
"@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }",
"public Object getProperty(QName name) {\n\t\tString n = getFullName(name);\n\t\tObject o = content.getProperty(n);\n\t\tLOGGER.debug(\"-------------- GETTING {} as {} --------------\", n, o);\n\t\treturn o;\n\t}",
"public Object getProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return null;\n }\n return session.getAttribute(name);\n }",
"public Shape getShape() {\n\treturn shape;\n }",
"public String runtimeProperty(String name) {\n if (_properties == null) {\n return null;\n }\n return _properties.get(name);\n }",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public PrimObject resolveObject(String name) {\n return findObject(importFor(name));\n }",
"public ImmutableObject modifiedName(String name) {\n return new ImmutableObject(this.id, name);\n }",
"public interface ShapePaletteInfo {\n\t/**\n\t * Add a entry to this info object associating a given type of\n\t * Calculator with a given value.\n\t * @param calcType the VisualPropertyType repesentation of the\n\t * Calculator (e.g., VisualPropertyType.NODE_FILL_COLOR). If\n\t * calcType already exists in this object, it's information\n\t * will be replaced.\n\t * @param value the value associated with the key of this info\n\t * object (see getKey() from the Calculator specified by calcType.\n\t */\n // MLC 05/09/07:\n // void add(byte calcType, Object value);\n // MLC 05/09/07:\n void add(VisualPropertyType calcType, Object value);\n\n\t/**\n\t * Return the value that was obtained from the DiscreteMapping\n\t * of the given Calculator for the controlling attribute value\n\t * specified by the key of this ShapePaletteInfo. For\n\t * example, if this ShapePaletteInfo has a key of \"type1\",\n\t * then a call with\n\t * calcType=\"VisualPropertyType.NODE_FILL_COLOR\" would return\n\t * the Color value that was associated with key \"type1\" from\n\t * the DiscreteMapping in the Node Color Calculator.\n\t * @param calcType the type of the Calculator for which we are\n\t * to obtain the stored value.\n\t * @return the Object value from the DiscreteMapping. If\n\t * no such calculator exists for this object, null is\n\t * returned. Note that a default value may be\n\t * returned if calcType doesn't have a mapping for\n\t * this Object's key.\n\t */\n // MLC 05/09/07:\n // Object getValue(byte calcType);\n // MLC 05/09/07:\n Object getValue(VisualPropertyType calcType);\n\n\t/**\n\t * Return the key associated with this ShapePaletteInfo.\n\t * This corresponds to a specific value from the\n\t * controlling attribute name.\n\t */\n\tString getKey();\n\n\t/**\n\t * Return the name of the controlling attribute associated with\n\t * this ShapePaletteInfo.\n\t */\n\tString getControllingAttributeName();\n\n\tString toString();\n}",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"public Shape(ShapeType shape, Color color, int width, int height, int posX, int posY, String name) {\n\t\tsuper(posX, posY, width, height, name);\n\t\tthis.shape = shape;\n\t\tthis.color = color;\n\t}",
"public Object getProperty(String attName);",
"public Object getPersistentShape(int _shape)\n/* 215: */ {\n/* 216:302 */ switch (_shape)\n/* 217: */ {\n/* 218: */ case 0: \n/* 219:303 */ return this.presentation;\n/* 220: */ case -1: \n/* 221:304 */ return this.icon;\n/* 222: */ }\n/* 223:306 */ return null;\n/* 224: */ }",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"String getProperty(String name);",
"@SuppressWarnings(\"unchecked\")\r\n public static <T> T getProperty(String name) {\r\n return (T) propertyMap.get(name);\r\n }",
"abstract Object getXMLProperty(XMLName name);",
"public Circle getShape(){\n\t\treturn new Circle();\n\t}",
"public <T> T getProperty(String name) {\n return properties.get(name);\n }",
"public native final Value property(final String name)/*-{\n\t\treturn {\n\t\t\tdatum : this.property(name)\n\t\t};\n\t}-*/;",
"String getShapeLabel();",
"public Object put(String aName, Object anObj)\n{\n // If map shared, clone it for real\n if(_attrMap.isShared())\n _attrMap = _attrMap.cloneX();\n \n // Put value (or remove if null)\n return anObj!=null? _attrMap.put(aName, anObj) : _attrMap.remove(aName);\n}",
"public RMParentShape getOwner() { return _owner; }",
"ShapeType getShapeType();",
"private SymObject find(String name) {\n SymObject object = table.find(name);\n if (object == SymbolTable.OBJECT_NONE) {\n error(name + \" can't be resolved to a name\");\n }\n\n return object;\n }",
"@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }",
"PropertyName getName();",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"public static String getProperty(String name) {\n return propertyMap.getProperty(name);\n }",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public MetaProperty getMetaProperty(String name) throws XavaException {\n\t\treturn getMetaProperty(name, true);\n\t}",
"public static String getCurrentShapeName() {\n\t\treturn currentShapeName;\n\t}",
"public Shape createShape(int shapeId, String name) {\n return registeredShapes.get(shapeId).create(name);\n }",
"int getShapeId();",
"Object getProperty(Long id, String name) throws RemoteException;",
"protected NamedThing getLocalProperty(String name) {\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (name.equals(prop.getName())) {\n return prop;\n }\n }\n return null;\n }",
"public String getProperty(String name) {\n return this.getProperty(name, null);\n }",
"public Objects getObject(String itemName)\n {\n return items.get(itemName);\n }",
"protected Shape getShape()\n {\n return null;\n }",
"public Object getattr(String name) {\n return getattr(name, null);\n }",
"public static void main(String[] args) {\n\n Color color = new Color();\n color.setIntensity(10);\n color.setName(\"Green\");\n Shape.color = color; // aici se modifica campul color la nivel de clasa\n // Shape.color - variabilele si methodele se acceseaza cu numele clasei iar schimbarea este vizibila in toate instantele clasei\n// shape.setColor(color); // bad practice , nu e ok sa avem getteri si setteri pentru variabile statice\n// shape1.setAria(1); // aici se modifica valoarea campului aria numai in obiectul shape1\n\n// System.out.println(shape1.getAria());\n// System.out.println(Shape.color);\n// System.out.println(shape1.color1);\n\n// System.out.println(shape2.color1);\n// Color color2 = new Color();\n// color2.setIntensity(110);\n// color2.setName(\"Red\");\n// shape2.color = color2; // e acelasi lucru ca si atunci cand schimbam valoarea campului static cu numele clasei, tot la nivel de clasa se schimba si asa pentru ca e static\n // cum e aici schimbat nu e ok- (bad practice) pentru ca ne poate induce in eroare, color fiid un camp static el trebuie accesat cu numele clasei\n // chiar si cand folosim numele unei instante a clasei , schimbarea este vizibila in toate celelalte intante ale clasei\n// System.out.println(shape2.color);\n// System.out.println(shape3.color);\n// System.out.println(shape4.color);\n }",
"@Override\n public InstanceProperties getNameInstanceProperties(String methodName) {\n InstanceProperties properties = super.getNameInstanceProperties(methodName);\n\n if (name != null) {\n String literalName = repositoryHelper.getExactMatchRegex(name);\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.NAME_PROPERTY_NAME, literalName, methodName);\n }\n\n return properties;\n }",
"public ComplexConfigDTO getComplexProperty(final String name) {\n \t\treturn complexProperties.get(name);\n \t}",
"public java.lang.Object getProperty(java.lang.String name)\n throws javax.xml.bind.PropertyException\n {\n return super.getProperty(name);\n }",
"private Shape find(String name, ArrayList<Shape> listShapes, ArrayList<Command> commands) {\r\n for (Shape shape : listShapes) {\r\n if (shape.getName().equals(name)) {\r\n return shape;\r\n }\r\n }\r\n throw new IllegalArgumentException(\"Cannot find shape.\");\r\n }",
"public int getMyShape(){ return myShape;}",
"public String getProperty( String name )\n {\n return getProperty( name, false );\n }",
"public static Object get(String name) {\r\n\t\treturn getInstance().addResource(name);\r\n\t}",
"public static IShape getCircle(String color){\n IShape circle = (Circle) shapeMap.get(color);\n Random random = new Random();\n\n //Adds a circle to the HashMap if the circle doesn't exist or\n //it sets a new x and y coordinate if the object already exists.\n if(circle == null){\n circle = new Circle(color);\n shapeMap.put(color, circle);\n }else{\n circle.setX(random.nextInt(576) + 10);\n circle.setY(random.nextInt(250) + 10);\n }\n\n return circle;\n }",
"private MetaProperty getMetaViewProperty(String name) throws XavaException {\n\t\tif (metaViewProperties == null) \n\t\t\tthrow new ElementNotFoundException(\"view_property_not_found\", name, getName(), getModelName());\n\t\tMetaProperty p = (MetaProperty) metaViewProperties.get(name);\n\t\tif (p == null)\n\t\t\tthrow new ElementNotFoundException(\"view_property_not_found\", name, getName(), getModelName());\n\t\treturn p;\n\t}",
"public Object getLinkProperty(String name) {\n if (!hasLinkAttributes()) {\n return null;\n }\n\n return get(\"link.\" + name);\n }",
"public Object getLinkProperty(String name) {\n if (!hasLinkAttributes()) {\n return null;\n }\n\n return get(\"link.\" + name);\n }",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"public interface IShape {\n\n /**\n * Adds a new motion to the list if it does not overlap with any existing motion, and add the\n * keyframes that align with the start and end points of this motion.\n *\n * @param motion the motion to be added\n * @throws IllegalArgumentException if the motion overlaps with an existing motion in the list\n */\n void addMotion(IMotion motion);\n\n /**\n * Add the given keyframe to this animation, and edit the motions to align with the new keyframe.\n *\n * @param keyframe the keyframe to be added.\n */\n void addKeyframe(IKeyframe keyframe);\n\n /**\n * Removes the keyframe and reformats motions at the given time.\n *\n * @param time the tick to remove the keyframe at\n */\n void removeKeyframe(int time);\n\n /**\n * Adds the given keyframe to this shape, overwriting the one at the time it has.\n *\n * @param newKeyframe the new keyframe to add.\n */\n void editKeyframe(IKeyframe newKeyframe);\n\n /**\n * Returns all the motions of this shape object.\n *\n * @return a list containing all motions.\n */\n List<IMotion> getMotions();\n\n /**\n * Returns all keyframes of this shape object.\n *\n * @return a list containing all keyframes.\n */\n List<IKeyframe> getKeyframes();\n\n /**\n * Calculates the current position of this shape at the given tick, and sets the values.\n *\n * @param tick the tick to calculate position at\n * @throws IllegalArgumentException if tick is not positive or if no motion runs at that tick\n */\n void calculateMotionAtTick(int tick);\n\n /**\n * Returns a string containing the name of the type of shape this object is.\n *\n * @return the string representing the name of the type of this object.\n */\n String getType();\n\n /**\n * Gets dimensions field of this Shape.\n *\n * @return the dimension field\n */\n Dimension getDimensions();\n\n /**\n * Gets the color field of this Shape.\n *\n * @return the color field\n */\n Color getColor();\n\n /**\n * Gets the position field of this Shape.\n *\n * @return the position field\n */\n Point getPosition();\n\n /**\n * Checks that there are no gaps in the run time of this shape's motions.\n *\n * @return true if there are no gaps, false otherwise\n */\n boolean isPlayable();\n\n /**\n * Returns the final tick value for this shape.\n *\n * @return the final tick value\n */\n int getFinalTick();\n\n /**\n * Returns the first tick motions start for this shape.\n *\n * @return the first tick value.\n */\n int getFirstTick();\n\n /**\n * Gets the name of this shape.\n *\n * @return the name\n */\n String getName();\n\n /**\n * Checks if this shape has a motion during this time.\n *\n * @param tick the tick to check\n * @return if the shape has a motion\n */\n boolean isRunningDuringTick(int tick);\n\n}",
"@Override\n\tpublic DmcObject findUniqueObject(DmcObjectName name) {\n\t\treturn null;\n\t}",
"public static GlobalProperty forName(String name) {\n return GlobalProperties.forName(name);\n }",
"public Shape getShape() {\n return null;\n }",
"private MorphCategory get(String name)\n {\n MorphCategory cat = this.categoryMap.get(name);\n\n if (cat == null)\n {\n this.categoryMap.put(name, cat = new MorphCategory(this, name));\n }\n\n return cat;\n }",
"public Shape(String name, Material material) {\n this.name = name;\n this.material = material;\n }",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"public Shape getShape() {\n\t\treturn _shape!=null? _shape: new CircleShape(new Vec2f(0,0), 0);\n\t}",
"public abstract DrawingComponent getObjectByPathId(UUID uid);",
"public Prostor getProstor(String name){\r\n return mapa.get(name);\r\n }",
"public Shape getShape() {\n\t\treturn null;\n\t}",
"public String getObjName()\n {\n return this.objName;\n }",
"public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }",
"private String getProperty(\n String name\n ) {\n return properties.getProperty(\n String.format(\"%s%s\", propertiesPrefix, name)\n );\n }"
] |
[
"0.60911477",
"0.6012638",
"0.5775519",
"0.56952006",
"0.56754166",
"0.56356955",
"0.5633024",
"0.5574955",
"0.5527246",
"0.54824734",
"0.5454131",
"0.5435532",
"0.54335773",
"0.5427885",
"0.5416524",
"0.541058",
"0.5407474",
"0.5401794",
"0.53394717",
"0.53327596",
"0.531938",
"0.5290505",
"0.5222715",
"0.52128476",
"0.52010924",
"0.51943827",
"0.51882344",
"0.51863855",
"0.51690584",
"0.51583374",
"0.51414424",
"0.51351887",
"0.513285",
"0.51140046",
"0.5100449",
"0.50951064",
"0.50933945",
"0.50916326",
"0.50768465",
"0.5076667",
"0.5068305",
"0.50544",
"0.5025132",
"0.5014003",
"0.5001093",
"0.4998645",
"0.49904227",
"0.4978432",
"0.4956005",
"0.49398366",
"0.49360004",
"0.49128062",
"0.49110737",
"0.4908022",
"0.4897572",
"0.48854724",
"0.48853242",
"0.48788533",
"0.4872072",
"0.4856023",
"0.4851081",
"0.4846645",
"0.48461193",
"0.4842573",
"0.4826315",
"0.48178387",
"0.48142433",
"0.48132488",
"0.4801979",
"0.4797345",
"0.4794793",
"0.47873282",
"0.47797087",
"0.47558397",
"0.47546762",
"0.47443253",
"0.47441778",
"0.47411984",
"0.47376496",
"0.4734019",
"0.4733714",
"0.47299337",
"0.47269672",
"0.47267753",
"0.47267753",
"0.47232634",
"0.47228748",
"0.47207692",
"0.47170028",
"0.47132298",
"0.47126123",
"0.46997523",
"0.4695823",
"0.46863076",
"0.46858704",
"0.46787563",
"0.46709433",
"0.466863",
"0.46670437",
"0.46575245"
] |
0.5540918
|
8
|
Sets an Object to be associated with the given name for the shape.
|
public Object put(String aName, Object anObj)
{
// If map shared, clone it for real
if(_attrMap.isShared())
_attrMap = _attrMap.cloneX();
// Put value (or remove if null)
return anObj!=null? _attrMap.put(aName, anObj) : _attrMap.remove(aName);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setObjectName(String text) {\n\t\tif (selectedObjects.size() > 0)\n\t\t\tselectedObjects.get(0).changeName(text);\n\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\theldObj.setName(name);\n\t}",
"public void setShape(Info shape) {\n \n }",
"public void setOwner(RMParentShape anObj) { _owner = anObj; }",
"private void storeObject(String name, Object obj)\r\n {\r\n objectNames.put(obj, name);\r\n\r\n if (!nameObjects.containsKey(name))\r\n nameObjects.put(name, new WeakReference(obj));\r\n }",
"public void setObjectAtLocation(Point p, Object o);",
"public void set(String name, Object value) {\n }",
"@Override\r\n public void setObject(String object) {\n }",
"void setShapeLabel(String Label);",
"public void set(XObject object) {\r\n if(object == null)\r\n throw new IllegalArgumentException(\"XObject was null.\");\r\n name = object.getName();\r\n id = object.getId();\r\n parent = object.getParent();\r\n }",
"void setObject(String id, Object data);",
"public void setObjName( String objName )\n {\n this.objName = objName;\n }",
"public void setObjectName(String objectName) { this.objectName=objectName; }",
"public synchronized void registerObject(String name, Object object)\r\n throws IllegalArgumentException,\r\n NullPointerException\r\n {\r\n if (containsSubString(name, TIGHT_BINDING))\r\n {\r\n // user has used the wrong method to register this object.\r\n registerObject(object, name);\r\n }\r\n else\r\n {\r\n // check that name doesn't contain illegal characters\r\n if (!isValidName(name))\r\n {\r\n throw new IllegalArgumentException(\"ResourceManager.registerObject(): \"+\r\n \"name '\" +name+ \"' can not contain \"+\r\n \"the whitespace, or the characters \" +\r\n \" '\"+LOOSE_BINDING+\"', '\"+\r\n SINGLE_MATCH+ \"'\");\r\n }\r\n\r\n if (object == null)\r\n {\r\n throw new NullPointerException(\"ResourceManager.registerObject(): \"+\r\n \"object is null\");\r\n }\r\n\r\n // store this mapping\r\n storeObject(name, object);\r\n }\r\n }",
"public void setParameter(String name, Object object) throws IOException {\r\n if (object instanceof File) {\r\n setParameter(name, (File) object);\r\n } else {\r\n setParameter(name, object.toString());\r\n }\r\n }",
"@Override\n protected void _putObjectToActorInstance(String name, Object object) throws ScriptException {\n \n // see if the actor class has this field\n Field field = null;\n try {\n field = _actorObject.getClass().getField(name);\n } catch(Exception e) {\n // do nothing\n }\n \n if(field == null) {\n // actor class does not have the field so put as global \n String globalName = \"_yyy_\" + name;\n _engine.put(globalName, object);\n _engine.eval(object.getClass().getName() + \" \" + name + \" = \" + globalName);\n } else {\n try {\n // set the field in the actor instance.\n field.set(_actorObject, object);\n } catch (Exception e) {\n throw new ScriptException(\"Error setting port/parameter \" + name + \": \" + e.getMessage());\n }\n }\n }",
"public void setObject_name(String object_name) {\n this.object_name = object_name == null ? null : object_name.trim();\n }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"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 final void setName(String name) {_name = name;}",
"void setName(String name_);",
"public void setName (String name){\n \n boyName = name;\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"public final void setName(final ReferenceIdentifier name) {\n this.name = name;\n }",
"public void setName(String inName)\n {\n name = inName;\n }",
"public void setName(String nameIn) {\n name = nameIn;\n }",
"public void setObject(Object aObject) {\r\n\t\tthis.object = aObject;\r\n\t}",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public String setObject(String objName, Object objValue) {\r\n String resultMsg = new String(\"A \" + XML_TAG + \" cannot contain an Element (\"\r\n + objName + \").\");\r\n return resultMsg;\r\n }",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void put(String name, Object value);",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName(String Name){\r\n name = Name;\r\n }",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public void setMyShape(int shapeIndex){this.myShape = shapeIndex;}",
"public void assignShape() {\n\t\t\n\t}",
"public void setName(final String name) {\n\t\tLOGGER.debug(\"SecurityObject#setName [name=\" + name + \"]\");\n\n\t\tthis.name = name;\n\t}",
"void setObjectKey(String objectKey);",
"public synchronized void setName(Identifier name) {\n Identifier old = this.name;\n this.name = name;\n firePropertyChange (PROP_NAME, old, name);\n }",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public GeometricObject(String name)\r\n\t{\r\n\t\tif (name == null || name.length() == 0)\r\n\t\t\tValidation.reportError(\"invalid name\");\r\n\t\telse\r\n\t\t\tthis.name = name;\r\n\t}",
"void setObjectType(String objectType);",
"public void setShape( final FireShapes shape ) {\r\n\t\tthis.shape = shape;\r\n\t}",
"public void setObject(XSerial obj);",
"public void setName(final String name);",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public MyObject(String objectName){\n\n this.objectName = objectName;\n }",
"public abstract void setName(String name);",
"public abstract void setName(String name);",
"public void setName(String name)\n {\n _name = name;\n }",
"public static void addNameBinding (String name, Object javaObject)\n\t{\n\t\tm_interpreter.set (name, javaObject);\n\t}",
"public void setName(Identifier name) throws SourceException;",
"@Override\n\tpublic void setAttribute(String name, Object value) {\n super.setAttribute(name, value);\n Enumeration<Figure> k = figures();\n while (k.hasMoreElements())\n k.nextElement().setAttribute(name, value);\n }",
"@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setProperty(String name,Object value);",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setGameObject(GameObject gameObject)\n {\n this.gameObject = gameObject;\n }",
"public static void setProperty( Object object, String name, String value )\r\n {\r\n Object[] arguments = new Object[]{ value };\r\n\r\n Class<?>[] parameterTypes = new Class<?>[]{ String.class };\r\n\r\n if ( name.length() > 0 )\r\n {\r\n name = \"set\" + name.substring( 0, 1 ).toUpperCase() + name.substring( 1, name.length() );\r\n\r\n try\r\n {\r\n Method concatMethod = object.getClass().getMethod( name, parameterTypes );\r\n\r\n concatMethod.invoke( object, arguments );\r\n }\r\n catch ( Exception ex )\r\n {\r\n throw new UnsupportedOperationException( \"Failed to set property\", ex );\r\n }\r\n }\r\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n\t\tgetNonVisualProperties().setName(name);\n\t}",
"public synchronized void registerObject(String name, Object child,\r\n Object object)\r\n throws IllegalArgumentException,\r\n NullPointerException\r\n {\r\n if (object == null)\r\n {\r\n throw new NullPointerException(\"ResourceManager.registerObject(): \"+\r\n \"parent object is null\");\r\n }\r\n\r\n // determine the absolute name of the parent\r\n String parentName = retrieveAbsoluteName(object);\r\n\r\n if (parentName == null)\r\n {\r\n throw new IllegalArgumentException(\"ResourceManager.registerObject(): \"+\r\n \"parent not registered with manager\");\r\n }\r\n else\r\n {\r\n // register the object under the fully qualified name\r\n registerObject(child, parentName+TIGHT_BINDING+name);\r\n }\r\n }",
"public void setObjectName(java.lang.String param){\n localObjectNameTracker = true;\n \n this.localObjectName=param;\n \n\n }",
"public void setName(String name) {\n this.name = name;\n this.box.getElement().setAttribute(\"name\", name);\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void rename()\n\t{\n\t\t// get the object within the node\n\t\tObject string = this.getUserObject();\n\n\t\t// should always be a string, given the constructor\n\t\tif (string instanceof String)\n\t\t{\n\t\t\tstring = JOptionPane.showInputDialog(\"Enter a New Name\");\n\n\t\t\tif (string != null && string instanceof String)\n\t\t\t{\n\t\t\t\tthis.setUserObject(string);\n\t\t\t\tthis.name = (String) string;\n\t\t\t}\n\t\t}\n\t}",
"void setName(String strName);",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setObject(T object)\n\t{\n\t\tthis.object = object;\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"@Override\r\n public void setName(String name) {\n }"
] |
[
"0.6510762",
"0.65074223",
"0.62849605",
"0.6158292",
"0.6150086",
"0.6113643",
"0.61054283",
"0.60710734",
"0.6054524",
"0.60321206",
"0.5967529",
"0.5940439",
"0.59369457",
"0.5927182",
"0.58348846",
"0.58149636",
"0.57685244",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5745714",
"0.5740722",
"0.5733636",
"0.5727239",
"0.5727146",
"0.57214445",
"0.5699743",
"0.56953174",
"0.56802374",
"0.5679739",
"0.5678584",
"0.56780326",
"0.5672385",
"0.5672385",
"0.5672385",
"0.5672385",
"0.5672385",
"0.5672385",
"0.5667776",
"0.56553286",
"0.56553286",
"0.56553286",
"0.5650284",
"0.5645348",
"0.56313217",
"0.56294644",
"0.561326",
"0.5613009",
"0.5603578",
"0.5578365",
"0.5578365",
"0.5578365",
"0.5575814",
"0.5561936",
"0.55561686",
"0.55553555",
"0.5540687",
"0.5535122",
"0.5529588",
"0.55246615",
"0.55246615",
"0.5514742",
"0.550168",
"0.5501389",
"0.54962724",
"0.54860985",
"0.5483134",
"0.5483134",
"0.5483134",
"0.5479103",
"0.5467547",
"0.5467547",
"0.5467547",
"0.5467547",
"0.5462749",
"0.5458857",
"0.5455028",
"0.54524666",
"0.54519844",
"0.5431065",
"0.54288656",
"0.54228556",
"0.54228556",
"0.54228556",
"0.54228556",
"0.54228556",
"0.54228556",
"0.54228556",
"0.54206944",
"0.54173076",
"0.54141265",
"0.54114324",
"0.53996795",
"0.5399389"
] |
0.0
|
-1
|
Returns the object associated with given key, using the given default if not found.
|
public Object get(String aName, Object aDefault)
{
Object value = get(aName);
return value!=null? value : aDefault;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"V getOrDefault(final K key, final V defaultValue);",
"Object getDefaultValue(String key);",
"public V getOrDefault(K key, V defaultValue) {\r\n V value = get(key);\r\n if (value == null) {\r\n return defaultValue;\r\n }\r\n return value;\r\n }",
"protected <T> T getValue(String key, T defaultVal) {\r\n return getValue(key, defaultVal, RestartReqs.NONE);\r\n }",
"java.lang.String getFieldOrDefault(\n java.lang.String key,\n java.lang.String defaultValue);",
"public static Object getCache(String key, Object defaultValue) {\n\t\tObject obj = getSession().getAttribute(key);\n\t\treturn obj==null?defaultValue:obj;\n\t}",
"public static Object getCache(String key, Object defaultValue) {\n Object obj = getSession().getAttribute(key);\n return obj==null?defaultValue:obj;\n }",
"public Object get(Object key)\r\n\t{\r\n\r\n\t\tint index;\r\n\t\tString orDefault = null;\r\n\t\tString k = (String) key;\r\n\t\tif ((index = k.indexOf(DEFAULT_ID)) > 0) {\r\n\t\t\torDefault = k.substring(index+DEFAULT_ID.length());\r\n\t\t\tk = k.substring(0,index);\r\n\t\t\tkey = k;\r\n\t\t}\r\n\t\tValidate.notEmpty(k, \"Empty key passed as parameter for call to get(key)\");\r\n\t\tif ((index = k.indexOf(':')) > 0 && index < k.length() - 1) {\r\n\t\t\tif (index == LANG_REF.length() && k.startsWith(LANG_REF)) {\r\n\t\t\t\treturn new LanguageLocale().getLang(this,k);\r\n\t\t\t} else if (index == REPLACE_REF.length() && k.startsWith(REPLACE_REF)) {\r\n\t\t\t\treturn org.xmlactions.action.utils.StringUtils.replace(this, replace(k));\r\n\t\t\t} else if (index == THEME_REF.length() && k.startsWith(THEME_REF)) {\r\n\t\t\t\treturn getThemeValueQuietly(k.substring(index + 1));\r\n\t\t\t} else if (index == APPLICATIONCONTEXT_REF.length() && k.startsWith(APPLICATIONCONTEXT_REF)) {\r\n\t\t\t\treturn getApplicationContext().getBean(k.substring(index + 1));\r\n\t\t\t} else if (index == CODE_REF.length() && k.startsWith(CODE_REF)) {\r\n\t\t\t\tCodeParser codeParser = new CodeParser();\r\n\t\t\t\treturn codeParser.parseCode(this, k.substring(index + 1));\r\n\t\t\t} else {\r\n\t\t\t\tMap<String, Object> map = getMap(k.substring(0, index));\r\n\t\t\t\tif (map != null) {\r\n\t\t\t\t\tString [] keys = k.substring(index + 1).split(\"/\");\r\n\t\t\t\t\tfor (int keyIndex = 0 ; keyIndex < keys.length; keyIndex++ ) {\r\n\t\t\t\t\t\tk = keys[keyIndex];\r\n\t\t\t\t\t\tObject obj = map.get(k);\r\n\t\t\t\t\t\tif (obj != null && obj instanceof String) {\r\n\t String s = (String)obj;\r\n\t if (s.startsWith(\"${\") && s.indexOf(k) == 2) {\r\n\t obj = \"[\" + k + \"]\";\r\n\t } else {\r\n\t obj = replace((String)obj);\r\n\t }\r\n\t\t\t\t\t\t} else if (obj == null){\r\n\t\t\t\t\t\t\tobj = orDefault;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(keyIndex+1 >= keys.length) {\r\n\t\t\t\t\t\t\treturn obj;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (obj instanceof Map) {\r\n\t\t\t\t\t\t\tmap = (Map)obj;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\treturn obj;\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\treturn orDefault;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tString [] keys = k.split(\"/\");\r\n\t\t\tObject obj = null;\r\n\t\t\tMap map = null;\r\n\t\t\tfor (int keyIndex = 0 ; keyIndex < keys.length; keyIndex++ ) {\r\n\t\t\t\tk = keys[keyIndex];\r\n\r\n\t\t\t\tif (keyIndex == 0) {\r\n\t\t\t\t\tif (rootMap.containsKey(k)) {\r\n\t\t\t\t\t\tobj = rootMap.get(k);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tif (applicationContext != null) {\r\n\t\t\t\t\t\t\t\tobj = applicationContext.getBean((String)k);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (Throwable t) {\r\n\t\t log.info(t.getMessage());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (map.containsKey(k)) {\r\n\t\t\t\t\t\tobj = map.get(k);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (obj != null && obj instanceof String) {\r\n\t\t\t\t\tobj = replace((String)obj);\r\n\t\t\t\t} else if (obj == null){\r\n\t\t\t\t\tobj = orDefault;\r\n\t\t\t\t}\r\n\t\t\t\tif(keyIndex+1 >= keys.length) {\r\n\t\t\t\t\treturn obj;\r\n\t\t\t\t}\r\n\t\t\t\tif (obj instanceof Map) {\r\n\t\t\t\t\tmap = (Map)obj;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn obj;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn orDefault;\r\n\t\t}\r\n\t}",
"public String getWithDefault(String key, String defaultValue) {\n\t\tif (exists(key)) {\n\t\t\treturn fileData.get(key);\n\t\t}\n\t\telse {\n\t\t\treturn defaultValue;\n\t\t}\n\t}",
"Optional<V> lookup(K k);",
"default Optional<T> optional(@NonNull final String key) {\n return Optional.ofNullable(get(key));\n }",
"public synchronized Object getAttribute(String key, Object defaultObject) {\n Object value = attributes.get(key);\n if (value == null) value = defaultObject;\n return value;\n }",
"public Object getAttribute(Object key, Object defaultObject) {\n\t\tObject obj = session.getAttribute(key, defaultObject);\n\t\tif(obj == null) {\n\t\t\treturn defaultObject;\n\t\t}\n\t\treturn obj;\n\t}",
"Object getPreference(String prefKey, Object defaultValue);",
"int getInfoOrDefault(\n int key,\n int defaultValue);",
"public String getProperty(Object obj, String key, String defaultValue);",
"public Object getObject(String key);",
"protected <T> T getValue(String key, T defaultVal, RestartReqs req) {\r\n return getValue(key, null, defaultVal, req);\r\n }",
"public String getOrElse(String key, String defaultValue) {\n\t\tInstant start = Instant.now();\n\t\tString result;\n\t\ttry {\n\t\t\tresult = get(key);\n\t\t} catch (ConfigException e) {\n\t\t\tLOGGER.warn(\"No value was found for key {}: the default value {} will be returned\", key, defaultValue);\n\t\t\tresult = defaultValue;\n\t\t}\n\t\tLOGGER.debug(\"Access to config {} to getOrElse {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn result;\t\t\n\t}",
"Optional<V> get(K key);",
"String getSettingByKey(String key, String defaultValue);",
"public Object get(String key, Object fallback)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section == null ? fallback : section.get(pieces[1]);\n }\n\n if (data.containsKey(key)) return data.get(key);\n return fallback;\n }",
"@Override\n public <T extends Object> T getValue(String key, T defaultValue) {\n Map<String, T> map = (Map<String, T>) preferences.getAll();\n T value = map.get(key);\n return value != null ? value : defaultValue;\n }",
"public final <T> T getProperty(String key, T defaultValue) {\n/* 72 */ Object value = Launch.blackboard.get(key);\n/* 73 */ return (value != null) ? (T)value : defaultValue;\n/* */ }",
"Object get(String key);",
"Object get(String key);",
"public V lookup(K key);",
"protected <T> Property getProperty(String key, T defaultVal) {\r\n return getProperty(key, defaultVal, RestartReqs.NONE);\r\n }",
"private <X extends ObjectType> PrismObject<X> resolve(Session session, String oid, String defaultName, RObjectType defaultType) throws SchemaException {\n if (oid == null) {\n return null;\n }\n Query query = session.getNamedQuery(\"get.object\");\n query.setParameter(\"oid\", oid);\n query.setResultTransformer(GetObjectResult.RESULT_STYLE.getResultTransformer());\n GetObjectResult object = (GetObjectResult) query.uniqueResult();\n\n PrismObject result;\n if (object != null) {\n String xml = RUtil.getXmlFromByteArray(object.getFullObject(), getConfiguration().isUseZip());\n result = getPrismContext().parserFor(xml).language(SqlRepositoryServiceImpl.DATA_LANGUAGE).compat().parse();\n } else if (defaultType != null) {\n result = getPrismContext().createObject(defaultType.getJaxbClass());\n result.asObjectable().setName(PolyStringType.fromOrig(defaultName != null ? defaultName : oid));\n result.setOid(oid);\n } else {\n result = null;\n }\n //noinspection unchecked\n return result;\n }",
"protected <T> T getValue(String key, String comment, T defaultVal) {\r\n return getValue(key, comment, defaultVal, RestartReqs.NONE);\r\n }",
"Object get(Object key);",
"public Object getObject(final String key)\r\n {\r\n return helperObjects.get(key);\r\n }",
"public Integer getInteger(String key, Integer defaultValue);",
"java.lang.String getDetailsOrDefault(\n java.lang.String key,\n java.lang.String defaultValue);",
"Object getAttribute(String key, Object defaultObject)\n throws ProcessingException;",
"public V getOrDefault(T keySummary, V defaultValue) {\n // there is a possibility that the key is not present\n if (keySummary.isEmptyVS()) {\n return defaultValue;\n }\n if (!containsKey(keySummary).getGuardFor(false).isFalse()) {\n return defaultValue.restrict(keySummary.getUniverse());\n }\n\n V merger = null;\n List<V> toMerge = new ArrayList<>();\n for (GuardedValue<?> key : ValueSummary.getGuardedValues(keySummary)) {\n V val = entries.getOrDefault(key.getValue(), defaultValue);\n if (merger == null) merger = val.restrict(key.getGuard());\n toMerge.add(val.restrict(key.getGuard()));\n }\n\n assert merger != null;\n return merger.merge(toMerge);\n }",
"default String resolve(\n final String group,\n final String key,\n final String defaultValue\n )\n {\n Map<String, Map<String, String>> data = getData();\n return null != data && null != data.get(group) && null != data.get(group).get(key)\n ? data.get(group).get(key)\n : defaultValue;\n }",
"public <T> T get(TypedKey<T> key)\n\t{\n\t\tObject value = map.get(Objects.requireNonNull(key));\n\t\treturn (value == null) ? key.getDefaultValue() : key.cast(value);\n\t}",
"@Override\n\tprotected KeyCacheObjectTest getInner(String id,\n\t\t\tKeyCacheObjectTest defaultValue) throws DaoManagerException {\n\t\treturn null;\n\t}",
"V get(Object key);",
"<T> T getObj(String key, Class<T> clazz);",
"java.lang.String getMetadataOrDefault(\n java.lang.String key,\n java.lang.String defaultValue);",
"java.lang.String getMetadataOrDefault(\n java.lang.String key,\n java.lang.String defaultValue);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"public static final <K,V> V ccGetOrDefault(\n HashMap<K,V> pxMap,K pxKey, V pxDefault\n ){\n if(pxMap==null){return pxDefault;}\n if(pxKey==null){return pxDefault;}\n if(pxMap.containsKey(pxKey)){\n return pxMap.get(pxKey);\n }else{\n return pxDefault;\n }//..?\n }",
"public <T> Class<? extends T> getAsClass(String key, Class<T> clazz, Class<? extends T> defaultVal) throws IOException {\n String val = entries.getProperty(key);\n return val == null ? defaultVal : Utils.getClass(val, clazz);\n }",
"public T get(K key);",
"V get(final K key);",
"public File getFile(String key) {\n\t\tFile defaultValue = (File) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tFile file = new File(sp);\n\t\tif (file.exists())\n\t\t\treturn file;\n\t\telse {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t}",
"protected <T> T getValue(String key, T defaultVal, Bound<? extends Number> bound) {\r\n return getValue(key, null, defaultVal, bound);\r\n }",
"T get(String key);",
"T get(@NonNull String key);",
"public String get(final String key, final String defaultValue)\n {\n return this.getSystemOrPropertyString(key, defaultValue, this.useCache);\n }",
"public String get(String key, String defaultValue) {\n return System.getProperty(prefix + key, defaultValue);\n }",
"public String getProperty(Class type, String key, String defaultValue);",
"public Object getSerializable(@NonNull final String key, final Object defaultValue) {\n byte[] bytes = realGetBytes(TYPE_SERIALIZABLE + key);\n if (bytes == null) return defaultValue;\n return bytes2Object(bytes);\n }",
"public Optional<V> lookup(K key) {\n Optional<V> mt = Optional.empty();\n return this.entries.foldr(((kvp, o)-> kvp.left.equals(key) ? Optional.of(kvp.right) : o) , mt);\n }",
"MountPoint findDefaultMountPoint(String relatedContentId, String handlerKey);",
"Optional<T> findOne(K id);",
"@Override\r\n\tpublic Object getObject(Object key) {\n\t\treturn null;\r\n\t}",
"public Object get(String key);",
"String getOptionsOrDefault(\n String key,\n String defaultValue);",
"String getOptionsOrDefault(\n String key,\n String defaultValue);",
"String getOptionsOrDefault(\n String key,\n String defaultValue);",
"public java.lang.String getFieldOrDefault(\n java.lang.String key,\n java.lang.String defaultValue) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, java.lang.String> map =\n internalGetField().getMap();\n return map.containsKey(key) ? map.get(key) : defaultValue;\n }",
"public String get(Class requestor, String field, String defaultString);",
"float getWithDefault(int idx, float defaultVal);",
"protected <T> T getValue(String key, String comment, T defaultVal, RestartReqs req) {\r\n return getValue(key, comment, defaultVal, req, null);\r\n }",
"String getReplicationOrDefault(\n String key,\n String defaultValue);",
"Object get(Object key) throws NullPointerException;",
"public Object lookup(String key){\n ListNode<String,Object> temp = getNode(key);\n if(temp != null)\n return temp.value;\n else\n return null;\n }",
"@Nullable\r\n public Object get(String key) {\r\n if (attributeMap.containsKey(key)) {\r\n return attributeMap.get(key);\r\n } else if (parent.isPresent()) {\r\n return parent.get().get(key);\r\n } else {\r\n return null;\r\n }\r\n }",
"ISObject forceGet(String key);",
"public String getString(String key, String defaultValue);",
"public String getString(String key, String defaultValue);",
"default T getOrCreate() {\n if(!isPresent()) {\n return create();\n }\n else {\n return get();\n }\n }",
"ISObject get(String key);",
"java.lang.String getDetailsOrDefault(\n java.lang.String key,\n /* nullable */\n java.lang.String defaultValue);",
"@Override\n public T get(Object key) {\n return get(key, null);\n }",
"public int getInt(String key, int defaultValue);",
"public java.lang.String getFieldOrDefault(\n java.lang.String key,\n java.lang.String defaultValue) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, java.lang.String> map =\n internalGetField().getMap();\n return map.containsKey(key) ? map.get(key) : defaultValue;\n }",
"String getString(String key, String defaultValue);",
"String getString(String key, String defaultValue);",
"public <K> Object getSpecific(K key, String valueKey);",
"public void setDefault(String key){\n _default = key;\n }",
"public String getAsString(String key, String defaultVal) {\n return entries.getProperty(key, defaultVal);\n }",
"public Object get(String key) {\n \t\treturn this.get(null, key);\n \t}",
"int getInt(String key, int defaultValue);",
"public String get(Object requestor, String field, String defaultString);",
"@java.lang.Override\n public /* nullable */ com.google.protobuf.Value getMediaOrDefault(\n java.lang.String key,\n /* nullable */\n com.google.protobuf.Value defaultValue) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n java.util.Map<java.lang.String, com.google.protobuf.Value> map = internalGetMedia().getMap();\n return map.containsKey(key) ? map.get(key) : defaultValue;\n }",
"public abstract T get(String key);",
"@Override\n\t\tpublic Object getProperty(String key, Object defaultValue) {\n\t\t\treturn null;\n\t\t}",
"public PDFObject get (String key)\n {\n PDFObject value = getUnresolved (key);\n return value == null ? null : value.resolve ();\n }",
"public static String getData(String key, String defaultValue){\n return DataStore.getData(context, key, defaultValue);\n }"
] |
[
"0.72946817",
"0.7152225",
"0.6852568",
"0.6520259",
"0.6376944",
"0.6360076",
"0.6349765",
"0.6276728",
"0.6223034",
"0.621736",
"0.6216761",
"0.6195534",
"0.61697656",
"0.6164137",
"0.61580896",
"0.6099563",
"0.6049604",
"0.60374075",
"0.60207",
"0.6015165",
"0.59909016",
"0.5982831",
"0.597271",
"0.5968532",
"0.5922996",
"0.5922996",
"0.5883094",
"0.58720034",
"0.586747",
"0.5862332",
"0.5842782",
"0.5835146",
"0.58282757",
"0.5799159",
"0.57966685",
"0.57914686",
"0.5774794",
"0.57224387",
"0.57052433",
"0.5696203",
"0.56926554",
"0.5687323",
"0.5687323",
"0.5685975",
"0.5685975",
"0.5685975",
"0.5685975",
"0.5685975",
"0.5685975",
"0.5685975",
"0.5675363",
"0.56666166",
"0.56571525",
"0.56409377",
"0.5626312",
"0.5624372",
"0.5621008",
"0.5609746",
"0.56070673",
"0.56069785",
"0.5599532",
"0.55970526",
"0.55915093",
"0.5589012",
"0.55784225",
"0.55759704",
"0.55669117",
"0.5563871",
"0.5563871",
"0.5563871",
"0.5554606",
"0.5549032",
"0.5539184",
"0.5534849",
"0.55337834",
"0.552345",
"0.5522417",
"0.5519376",
"0.5512996",
"0.55065554",
"0.55065554",
"0.5503661",
"0.54984015",
"0.5481589",
"0.5465363",
"0.5444896",
"0.5439919",
"0.54366153",
"0.54366153",
"0.5430845",
"0.5419676",
"0.5417683",
"0.54102004",
"0.5409615",
"0.5398552",
"0.5386332",
"0.53766716",
"0.5368735",
"0.53677785",
"0.53664005"
] |
0.6540289
|
3
|
Returns the shape's path.
|
public RMPath getPath() { return RMPath.unitRectPath; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Path getPath();",
"Path getPath();",
"public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}",
"public Path getPath() {\n return p;\n }",
"public Path getPath() {\n return path;\n }",
"IPath getPath();",
"public Path getPath() {\n return path;\n }",
"public Path getPath() {\n return this.path;\n }",
"public Path getPath(){\n return this.path;\n }",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"public final String getPath() {\n\t\treturn this.path.toString();\n\t}",
"public String getPath() {\n\n\t\treturn this.path;\n\n\t}",
"public Path getPath() {\n return mPath;\n }",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"public abstract Shape createPath();",
"public Shape getPath()\n {\n if (getRadius() < 0.0001) return super.getPath();\n return new RoundRect(0, 0, getWidth(), getHeight(), getRadius());\n }",
"public String getPath() \r\n\t{\r\n\t\tStringBuilder pathBuilder = new StringBuilder();\r\n\t\tfor(Cell c: path)\r\n\t\t\tpathBuilder.append(\" (\" + c.getRow() + ',' + c.getColumn() + ')');\r\n\t\t\r\n\t\treturn pathBuilder.toString();\r\n\t}",
"public String getPath() {\n\t\treturn this.path;\n\t}",
"public String getPath()\n {\n\n return _path;\n }",
"@Nonnull\n Path getPath();",
"public final String getPath()\n {\n return path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\r\n\t\t\treturn path;\r\n\t\t}",
"public String getPath() {\n\t\treturn path;\n\t}",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath();",
"public String getPath();",
"public String getPath();",
"public String getPath() {\r\n return path;\r\n }",
"public String getPath() {\r\n return path;\r\n }",
"public String getPath()\n {\n return path;\n }",
"public String getPath()\n {\n return path;\n }",
"public final String getPath() {\n\t return m_path;\n\t}",
"public CustomPath getPath() {\n\t\treturn path;\n\t}",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"Path getPath() {\n return this.path;\n }",
"public SoPath getPath() {\n\t\t return path; \n\t}",
"@Nullable public String getPath() {\n return path;\n }",
"String getPath() {\r\n\t\treturn path;\r\n\t}",
"String getPath() {\n return path;\n }",
"public String getPath(){\n\t\t\treturn this.path;\n\t\t}",
"public DefinitionPath getPath() {\n\t\treturn path;\n\t}",
"String getPath() {\n return this.path;\n }",
"public Tile getPath() {\n\t\treturn path;\n\t}",
"public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }",
"public String getPath(){\r\n\t\treturn path;\r\n\t}",
"public Position[] getPath() {\n\t\treturn path;\n\t}",
"@Nullable String getPath();",
"public String getPathName();",
"public File getPath() {\n return this.path;\n }",
"public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }",
"public abstract String getPath();",
"public abstract String getPath();",
"public T getPath() {\n\tif (path == null) path = newSplinePath2D();\n\tint cpsize = cplist.size();\n\tif (cpsize > 0) {\n\t CPoint[] array = new CPoint[cpsize];\n\t cplist.toArray(array);\n\t appendAux(array);\n\t cplist.clear();\n\t}\n\treturn path;\n }",
"public ArrayList<Point> getPath() {\n\t\treturn path;\n\t\t\n\t}",
"protected String getPath ()\n\t{\n\t\treturn path;\n\t}",
"CtPath getPath();",
"public java.lang.String getPath() {\n\t\t return path;\n\t }",
"public String toString() {\n\t\t\treturn shape;\n\t\t}",
"public EphemeralFsPath getPath() {\n return getPaths(fs, steps);\n\n }",
"String getPath() {\n return mPath;\n }",
"public String toPathString() {\n return path();\n }",
"public File getShapesLocation() {\n\t\treturn shapesLocation;\n\t}",
"public String getPath() {\n return m_path;\n }",
"public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }",
"public Shape getShape() {\n\t\treturn shape;\n\t}"
] |
[
"0.7638906",
"0.7528285",
"0.7302561",
"0.72807366",
"0.7272653",
"0.7235182",
"0.7221559",
"0.72133344",
"0.7200166",
"0.7197116",
"0.7193349",
"0.71595806",
"0.7141594",
"0.7122028",
"0.7122028",
"0.7122028",
"0.7122028",
"0.7122028",
"0.71137244",
"0.71055776",
"0.7092633",
"0.70665103",
"0.70606667",
"0.7049728",
"0.704614",
"0.7043955",
"0.7039708",
"0.70371044",
"0.70238",
"0.70238",
"0.70238",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7023244",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.7022105",
"0.70178735",
"0.70178735",
"0.70178735",
"0.7010455",
"0.7010455",
"0.7006061",
"0.7006061",
"0.69859433",
"0.69830143",
"0.69801676",
"0.6979134",
"0.69781643",
"0.69754285",
"0.6961556",
"0.6955066",
"0.69409806",
"0.69375104",
"0.6914027",
"0.6895105",
"0.6891549",
"0.6876802",
"0.6854615",
"0.68439996",
"0.6797199",
"0.6795842",
"0.67903227",
"0.6779463",
"0.6779463",
"0.6775368",
"0.67720115",
"0.676241",
"0.6761016",
"0.67410177",
"0.6700618",
"0.66950303",
"0.66407585",
"0.66392773",
"0.6635712",
"0.6626576",
"0.66189975",
"0.6582963"
] |
0.6654854
|
94
|
Returns the shape's path scaled to the shape's current bounds.
|
public RMPath getPathInBounds() { return getPath().getPathInRect(getBoundsInside()); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Path2D.Double getBoundsAsPath() {\n\t\t\n\t\tRectangle2D.Double rect = getTextBounds();\n\t\tDouble w = rect.getWidth();\n\t\tDouble h = rect.getHeight();\n\t\t\n\t\tPath2D.Double bounds = new Path2D.Double();\n\t\tbounds.moveTo(0, 0);\n\t\tbounds.lineTo(w, 0);\n\t\tbounds.lineTo(w, h);\n\t\tbounds.lineTo(0, h);\n\t\tbounds.lineTo(0, 0);\n\t\t\n\t\treturn bounds;\n\t}",
"public Shape getPath()\n {\n if (getRadius() < 0.0001) return super.getPath();\n return new RoundRect(0, 0, getWidth(), getHeight(), getRadius());\n }",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}",
"public RMPath getMaskPath()\n{\n RMPath path = null;\n \n // If this shape draws anything, start with its path\n if(getStroke()!= null || getFill()!=null)\n path = getPathInBounds();\n \n // If this shape has children, add paths of children\n if(getChildCount()>0) {\n \n // Create list for paths\n List paths = new ArrayList();\n if(path!=null)\n paths.add(path);\n \n // Iterate over children and add their paths\n for(int i=0, iMax=getChildCount(); i<iMax; i++) {\n RMPath childPath = getChild(i).getMaskPath();\n if(childPath != null) {\n RMPath p2 = childPath.clone();\n p2.transformBy(getChild(i).getTransform());\n paths.add(p2);\n }\n }\n \n // Join paths\n if(paths.size() > 0)\n path = RMPathUtils.join(paths, RMPathUtils.JOIN_OP_ADD);\n }\n \n // Return path\n return path;\n}",
"public Path getPath();",
"public T getPath() {\n\tif (path == null) path = newSplinePath2D();\n\tint cpsize = cplist.size();\n\tif (cpsize > 0) {\n\t CPoint[] array = new CPoint[cpsize];\n\t cplist.toArray(array);\n\t appendAux(array);\n\t cplist.clear();\n\t}\n\treturn path;\n }",
"public RMPath convertPathToShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformToShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"public RMPath convertPathFromShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformFromShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"Path getPath();",
"public Path2D asAwtShape() {\n\t\t// creates the awt path\n\t\tPath2D.Double path = new Path2D.Double();\n\t\t\n\t\t// iterate on the path segments\n\t\tfor (Segment seg : this.segments) {\n\t\t\tseg.updatePath(path);\n\t\t}\n\t\t\n\t\t// returns the updated path\n\t\treturn path;\n\t}",
"public final Shape getScaled(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().scale(fromPoint, toPoint, anchorPoint);\n\t}",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"public Path getPath(){\n return this.path;\n }",
"public Path getPath() {\n return p;\n }",
"public abstract Shape createPath();",
"public Path getApproxPath() {\n\t\treturn approxPath;\n\t}",
"public Path getPath() {\n return mPath;\n }",
"public Path getPath() {\n return this.path;\n }",
"IShape getCurrentShape();",
"Shape getShape();",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"public Path getPath() {\n return path;\n }",
"public Path getPath() {\n return path;\n }",
"public int getMinionPathLength() {\n return getStandardPathLength() + Constants.EFFECT_REPULSE_WEIGHT * (minionRepulse ? 1 : 0);\n }",
"IPath getPath();",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"Path getPath() {\n return this.path;\n }",
"protected double getShapeScale(Plot plot,int series,int item, double x, double y) {\n return scale;\n }",
"static Shape closedArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"BaseBounds computeShapeBounds(BaseBounds bounds, BaseTransform tx,\n com.sun.javafx.geom.Shape s)\n {\n if (impl_mode == NGShape.Mode.EMPTY) {\n return bounds.makeEmpty();\n }\n\n float[] bbox = {\n Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY,\n Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY,\n };\n boolean includeShape = (impl_mode != NGShape.Mode.STROKE);\n boolean includeStroke = (impl_mode != NGShape.Mode.FILL);\n if (includeStroke && (getStrokeType() == StrokeType.INSIDE)) {\n includeShape = true;\n includeStroke = false;\n }\n\n if (includeStroke) {\n final StrokeType type = getStrokeType();\n double sw = Utils.clampMin(getStrokeWidth(), MIN_STROKE_WIDTH);\n StrokeLineCap cap = getStrokeLineCap();\n StrokeLineJoin join = convertLineJoin(getStrokeLineJoin());\n float miterlimit =\n (float) Utils.clampMin(getStrokeMiterLimit(), MIN_STROKE_MITER_LIMIT);\n // Note that we ignore dashing for computing bounds and testing\n // point containment, both to save time in bounds calculations\n // and so that animated dashing does not keep perturbing the bounds...\n Toolkit.getToolkit().accumulateStrokeBounds(\n s,\n bbox, type, sw,\n cap, join, miterlimit, tx);\n // Account for \"minimum pen size\" by expanding by 0.5 device\n // pixels all around...\n bbox[0] -= 0.5;\n bbox[1] -= 0.5;\n bbox[2] += 0.5;\n bbox[3] += 0.5;\n } else if (includeShape) {\n com.sun.javafx.geom.Shape.accumulate(bbox, s, tx);\n }\n\n if (bbox[2] < bbox[0] || bbox[3] < bbox[1]) {\n // They are probably +/-INFINITY which would yield NaN if subtracted\n // Let's just return a \"safe\" empty bbox..\n return bounds.makeEmpty();\n }\n bounds = bounds.deriveWithNewBounds(bbox[0], bbox[1], 0.0f,\n bbox[2], bbox[3], 0.0f);\n return bounds;\n }",
"public Shape getShape();",
"public String getAsSVGPath() {\n\n\t\tString d=\"M \"+topleft.x +\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+bottomright.y+\" \"\n\t\t\t\t+\"L \"+topleft.x +\",\"+bottomright.y+\" z\";\n\n\n\t\treturn d;\n\t}",
"static Shape concaveArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size, 0.0);\n \t\tpath.lineTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}",
"public ArrayList<Point> getPath() {\n\t\treturn path;\n\t\t\n\t}",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public CustomPath getPath() {\n\t\treturn path;\n\t}",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public BoundingShape getBoundingShape() {\n\treturn boundingShape;\n }",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public Position[] getPath() {\n\t\treturn path;\n\t}",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public DefinitionPath getPath() {\n\t\treturn path;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic Stack<MenuChoice> getPath() {\r\n\t\treturn ((Stack<MenuChoice>) path.clone());\r\n\t}",
"public int getPathCost() {\r\n\t\treturn pathCost;\r\n\t}",
"IShape getEndShape();",
"public Shape getShape() { return shape; }",
"public sRectangle getSRectangleBound()\n {\n return form.getSRectangleBound();\n }",
"public Shape getShape() {\n return shape;\n }",
"public interface Path {\n\tVector2D [] getPointsAsArray();\n\n\tList<Vector2D> getPointsAsList();\n}",
"public GeneralPath toGeneralPath()\n {\n float x1 = getLowerLeftX();\n float y1 = getLowerLeftY();\n float x2 = getUpperRightX();\n float y2 = getUpperRightY();\n GeneralPath path = new GeneralPath();\n path.moveTo(x1, y1);\n path.lineTo(x2, y1);\n path.lineTo(x2, y2);\n path.lineTo(x1, y2);\n path.closePath();\n return path;\n }",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"public S2LatLngRect getBound() {\n // To save time, we ignore numerical errors in the computed S2LatLngs while\n // accumulating the bounds and then account for them here.\n //\n // S2LatLng(S2Point) has a maximum error of 0.955 * S2.DBL_EPSILON in latitude.\n // In the worst case, we might have rounded \"inwards\" when computing the\n // bound and \"outwards\" when computing the latitude of a contained point P,\n // therefore we expand the latitude bounds by 2 * S2.DBL_EPSILON in each\n // direction. (A more complex analysis shows that 1.5 * S2.DBL_EPSILON is\n // enough, but the expansion amount should be a multiple of S2.DBL_EPSILON in\n // order to avoid rounding errors during the expansion itself.)\n //\n // S2LatLng(S2Point) has a maximum error of S2.DBL_EPSILON in longitude, which\n // is simply the maximum rounding error for results in the range [-Pi, Pi].\n // This is true because the Gnu implementation of atan2() comes from the IBM\n // Accurate Mathematical Library, which implements correct rounding for this\n // intrinsic (i.e., it returns the infinite precision result rounded to the\n // nearest representable value, with ties rounded to even values). This\n // implies that we don't need to expand the longitude bounds at all, since\n // we only guarantee that the bound contains the *rounded* latitudes of\n // contained points. The *true* latitudes of contained points may lie up to\n // S2.DBL_EPSILON outside of the returned bound.\n\n S2LatLng expansion = S2LatLng.fromRadians(2 * S2.DBL_EPSILON, 0);\n return builder.build().expanded(expansion).polarClosure();\n }",
"protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }",
"public abstract ScaledPathArray getPathList();",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"public List<Transform> getPath() {\n return Collections.unmodifiableList(new ArrayList<>(mPath));\n }",
"public static Shape getCurrentShape() {\n\t\treturn currentShape;\n\t}",
"public final String getPath() {\n\t return m_path;\n\t}",
"public SoPath getPath() {\n\t\t return path; \n\t}",
"public Rectangle getBounds() {\n return new Rectangle(x, y, DIAMETER, DIAMETER); // returns a rectangle with its dimensions\r\n }",
"public Shape getClip()\r\n\t{\r\n\t\treturn _g2.getClip();\r\n\t}",
"public Path2D getPath(boolean closed) {\n if (closed) {\n return path;\n } else {\n return pathOpen;\n }\n }",
"static Shape openArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\treturn path;\n \t}",
"RectangleLatLng getBounds();",
"public String getPath() {\n return this.path;\n }",
"public Shape getTailShape()\n {\n // If already set, just return\n if (_tailShape!=null) return _tailShape;\n\n // Create/configure/set TailShape\n Path2D path = new Path2D();\n path.moveTo(0, 0);\n path.lineTo(16, 6);\n path.lineTo(0, 12);\n path.lineTo(5, 6);\n path.close();\n return _tailShape = path;\n }",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public String getPath() {\n\n\t\treturn this.path;\n\n\t}",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n\t\treturn this.path;\n\t}",
"Rectangle getBounds() {\n return new Rectangle(getLocation(), getSize());\n }",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"public Tile getPath() {\n\t\treturn path;\n\t}",
"public String getPath();",
"public String getPath();",
"public String getPath();",
"public EphemeralFsPath getPath() {\n return getPaths(fs, steps);\n\n }",
"@Nonnull\n Path getPath();",
"public List<Tile> getPathSegment() {\n return pathSegment;\n }",
"IShape getStartShape();",
"protected Shape decodeArrowPath(int width, int height) {\r\n\t\tdouble w = OTabbedPaneArrowButtonPainter.arrowWidth;\r\n\t\tdouble h = OTabbedPaneArrowButtonPainter.arrowHeight - 1;\r\n\r\n\t\tdouble x = (((this.decodeX(2.0f) - this.decodeX(1.0f)) / 2.0) - (w / 2.0)) + 0.5;\r\n\t\tdouble y = (((this.decodeY(2.0f) - this.decodeY(1.0f)) / 2.0) - (h / 2.0)) + 1.5;\r\n\r\n\t\tthis.path.reset();\r\n\t\tthis.path.moveTo(x, y + (h / 2.0));\r\n\t\tthis.path.lineTo(x + w, y);\r\n\t\tthis.path.lineTo(x + w, y + h);\r\n\t\tthis.path.closePath();\r\n\r\n\t\treturn this.path;\r\n\t}"
] |
[
"0.67728436",
"0.6707634",
"0.63024884",
"0.5893332",
"0.57251936",
"0.558743",
"0.55690175",
"0.5546779",
"0.5500755",
"0.53988934",
"0.539821",
"0.53896296",
"0.5367244",
"0.5355959",
"0.53530926",
"0.5347964",
"0.53223884",
"0.53218347",
"0.5321434",
"0.5319413",
"0.52937573",
"0.5292494",
"0.5257352",
"0.5245546",
"0.5208912",
"0.5207669",
"0.52069825",
"0.5186173",
"0.51817876",
"0.5157491",
"0.51329404",
"0.51233166",
"0.5118735",
"0.50830895",
"0.50522906",
"0.50453126",
"0.50451905",
"0.50390404",
"0.5034797",
"0.50278366",
"0.4993722",
"0.49930778",
"0.49911922",
"0.49888203",
"0.4962958",
"0.49509373",
"0.49455804",
"0.49443415",
"0.49368897",
"0.49364117",
"0.49345767",
"0.49125934",
"0.4912262",
"0.4907454",
"0.4907454",
"0.4907454",
"0.4907454",
"0.4907454",
"0.4896405",
"0.4896018",
"0.48957297",
"0.4895311",
"0.48933795",
"0.48897454",
"0.48881826",
"0.48636392",
"0.48627403",
"0.48611325",
"0.4854101",
"0.48526338",
"0.48468092",
"0.4841585",
"0.4837997",
"0.48370335",
"0.48322028",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48278216",
"0.48140752",
"0.48129347",
"0.48119047",
"0.48110467",
"0.48043078",
"0.48043078",
"0.48043078",
"0.48031184",
"0.4800594",
"0.48003286",
"0.4790295",
"0.47900474"
] |
0.72033995
|
0
|
Returns the outline of the shape as a path. For simple shape this is the same as getPath(), and for group shapes it's the union of all the children paths.
|
public RMPath getMaskPath()
{
RMPath path = null;
// If this shape draws anything, start with its path
if(getStroke()!= null || getFill()!=null)
path = getPathInBounds();
// If this shape has children, add paths of children
if(getChildCount()>0) {
// Create list for paths
List paths = new ArrayList();
if(path!=null)
paths.add(path);
// Iterate over children and add their paths
for(int i=0, iMax=getChildCount(); i<iMax; i++) {
RMPath childPath = getChild(i).getMaskPath();
if(childPath != null) {
RMPath p2 = childPath.clone();
p2.transformBy(getChild(i).getTransform());
paths.add(p2);
}
}
// Join paths
if(paths.size() > 0)
path = RMPathUtils.join(paths, RMPathUtils.JOIN_OP_ADD);
}
// Return path
return path;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Shape getPath()\n {\n if (getRadius() < 0.0001) return super.getPath();\n return new RoundRect(0, 0, getWidth(), getHeight(), getRadius());\n }",
"public Path getPath();",
"public abstract Shape createPath();",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"Path getPath();",
"public final Stroke getOutlineStroke() {\n return outlineStroke;\n }",
"public String getPath() \r\n\t{\r\n\t\tStringBuilder pathBuilder = new StringBuilder();\r\n\t\tfor(Cell c: path)\r\n\t\t\tpathBuilder.append(\" (\" + c.getRow() + ',' + c.getColumn() + ')');\r\n\t\t\r\n\t\treturn pathBuilder.toString();\r\n\t}",
"IPath getPath();",
"public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}",
"public BlockPath getPath() {\n BlockPath path = new BlockPath();\n path.addPathNodeToPathFront(this);\n CourseComponent nodeAbove = parent;\n while (nodeAbove != null) {\n path.addPathNodeToPathFront(nodeAbove);\n nodeAbove = nodeAbove.getParent();\n }\n return path;\n }",
"@Nonnull\n Path getPath();",
"public Path getPath() {\n return p;\n }",
"PathSegments getPath();",
"public Path getPath() {\n return mPath;\n }",
"public Path getPath() {\n return path;\n }",
"public Path getPath() {\n return this.path;\n }",
"public Path getPath() {\n return path;\n }",
"public Path getPath(){\n return this.path;\n }",
"public Path2D asAwtShape() {\n\t\t// creates the awt path\n\t\tPath2D.Double path = new Path2D.Double();\n\t\t\n\t\t// iterate on the path segments\n\t\tfor (Segment seg : this.segments) {\n\t\t\tseg.updatePath(path);\n\t\t}\n\t\t\n\t\t// returns the updated path\n\t\treturn path;\n\t}",
"public final Paint getOutlinePaint() {\n return outlinePaint;\n }",
"@Override\r\n Shape getOutline ()\r\n {\r\n return null;\r\n }",
"public CustomPath getPath() {\n\t\treturn path;\n\t}",
"Path getPath() {\n return this.path;\n }",
"public RMPath getPathInBounds() { return getPath().getPathInRect(getBoundsInside()); }",
"public String getAsSVGPath() {\n\n\t\tString d=\"M \"+topleft.x +\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+bottomright.y+\" \"\n\t\t\t\t+\"L \"+topleft.x +\",\"+bottomright.y+\" z\";\n\n\n\t\treturn d;\n\t}",
"public final String getPath() {\n\t\treturn this.path.toString();\n\t}",
"IShape getEndShape();",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"public String getPath() {\n\n\t\treturn this.path;\n\n\t}",
"public SoPath getPath() {\n\t\t return path; \n\t}",
"public GeneralPath toGeneralPath()\n {\n float x1 = getLowerLeftX();\n float y1 = getLowerLeftY();\n float x2 = getUpperRightX();\n float y2 = getUpperRightY();\n GeneralPath path = new GeneralPath();\n path.moveTo(x1, y1);\n path.lineTo(x2, y1);\n path.lineTo(x2, y2);\n path.lineTo(x1, y2);\n path.closePath();\n return path;\n }",
"void drawOutline(DrawContext dc, Object shape);",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"public T getPath() {\n\tif (path == null) path = newSplinePath2D();\n\tint cpsize = cplist.size();\n\tif (cpsize > 0) {\n\t CPoint[] array = new CPoint[cpsize];\n\t cplist.toArray(array);\n\t appendAux(array);\n\t cplist.clear();\n\t}\n\treturn path;\n }",
"public EphemeralFsPath getPath() {\n return getPaths(fs, steps);\n\n }",
"public String getOutline() {\n return outline;\n }",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"public void strokeShape(Shape shape);",
"public Path2D.Double getBoundsAsPath() {\n\t\t\n\t\tRectangle2D.Double rect = getTextBounds();\n\t\tDouble w = rect.getWidth();\n\t\tDouble h = rect.getHeight();\n\t\t\n\t\tPath2D.Double bounds = new Path2D.Double();\n\t\tbounds.moveTo(0, 0);\n\t\tbounds.lineTo(w, 0);\n\t\tbounds.lineTo(w, h);\n\t\tbounds.lineTo(0, h);\n\t\tbounds.lineTo(0, 0);\n\t\t\n\t\treturn bounds;\n\t}",
"public Path2D getPath(boolean closed) {\n if (closed) {\n return path;\n } else {\n return pathOpen;\n }\n }",
"CtPath getPath();",
"public DefinitionPath getPath() {\n\t\treturn path;\n\t}",
"public Outline getOutline()\n {\n return outline;\n }",
"public PathOverlay drawPath(Path path);",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic Stack<MenuChoice> getPath() {\r\n\t\treturn ((Stack<MenuChoice>) path.clone());\r\n\t}",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"public String toString() {\n\t\t\treturn shape;\n\t\t}",
"public String getPath();",
"public String getPath();",
"public String getPath();",
"public final String getPath() {\n\t return m_path;\n\t}",
"@Nullable public String getPath() {\n return path;\n }",
"@Nullable String getPath();",
"public Stroke getStroke()\r\n\t{\r\n\t\treturn _g2.getStroke();\r\n\t}",
"public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }",
"java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();",
"public Shape getShape();",
"public float[][] getPath() {\n/* 825 */ COSBase base = getCOSObject().getDictionaryObject(COSName.PATH);\n/* 826 */ if (base instanceof COSArray) {\n/* */ \n/* 828 */ COSArray array = (COSArray)base;\n/* 829 */ float[][] pathArray = new float[array.size()][];\n/* 830 */ for (int i = 0; i < array.size(); i++) {\n/* */ \n/* 832 */ COSBase base2 = array.getObject(i);\n/* 833 */ if (base2 instanceof COSArray) {\n/* */ \n/* 835 */ pathArray[i] = ((COSArray)array.getObject(i)).toFloatArray();\n/* */ }\n/* */ else {\n/* */ \n/* 839 */ pathArray[i] = new float[0];\n/* */ } \n/* */ } \n/* 842 */ return pathArray;\n/* */ } \n/* 844 */ return (float[][])null;\n/* */ }",
"public Position[] getPath() {\n\t\treturn path;\n\t}",
"public String getPath() {\n\t\treturn this.path;\n\t}",
"public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }",
"public Stroke getInnerStroke() {\n return null;\n }",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }",
"static Shape closedArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"Shape getShape();",
"public Stroke<R> getStroke() {\n if (stroke == null) {\n stroke = factory.createStroke();\n }\n return stroke;\n }",
"public TerminalRule getPATHRule() {\n\t\treturn tPATH;\n\t}",
"public Tile getPath() {\n\t\treturn path;\n\t}",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"public String getPath() {\n return this.path;\n }",
"List<Edge> getPath() throws NoPathFoundException;",
"public final String getPath()\n {\n return path;\n }",
"org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D[] getPathArray();",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public Stroke getStroke() {\n\t\tStroke theStroke = stroke;\n\t\tif (theStroke == null) {\n\t\t\ttheStroke = new BasicStroke(strokeWidth);\n\t\t\tstroke = theStroke;\n\t\t}\n\t\treturn theStroke;\n\t}",
"public String getPath() {\r\n\t\t\treturn path;\r\n\t\t}",
"public String getPath()\n {\n\n return _path;\n }",
"public String getPath() {\n\t\treturn path;\n\t}",
"public DirectShapeRenderer beginPath() {\n \t\treturn renderer.beginPath();\n \t}",
"public String getPath() {\n \tStringBuilder path = new StringBuilder();\n \tint s = this.getSelectedIndex();\n \tif (s <= 0 ) s = 0;\n \tJPiereIADTabpanel p = tabPanelList.get(s);\n \tfor (int i = 0; i <= s; i++) {\n \t\tString n = null;\n \t\tif (i == s)\n \t\t\tn = p.getTitle();\n \t\telse {\n \t\t\tJPiereIADTabpanel t = tabPanelList.get(i);\n \t\t\tif (t.getTabLevel() < p.getTabLevel())\n \t\t\t\tn = t.getTitle();\n \t\t}\n \t\tif (n != null) {\n \t\t\tif (path.length() > 0) {\n \t\t\t\tpath.append(\" > \");\n \t\t\t}\n \t\t\tpath.append(n);\n \t\t}\n \t}\n\n \treturn path.toString();\n }",
"private GeneralPath buildPath() {\n path = new GeneralPath();\n path.moveTo(p1.x, p1.y);\n path.lineTo(p2.x, p2.y);\n path.lineTo(p3.x, p3.y);\n path.closePath();\n assert path != null;\n return path;\n }",
"public ArrayList<Point> getPath() {\n\t\treturn path;\n\t\t\n\t}"
] |
[
"0.69675213",
"0.65672326",
"0.6472431",
"0.63496614",
"0.63376486",
"0.6263184",
"0.62114215",
"0.6185104",
"0.61430275",
"0.6076177",
"0.6061638",
"0.60554874",
"0.6038221",
"0.6006464",
"0.5946225",
"0.59017503",
"0.5877156",
"0.5870833",
"0.58707565",
"0.5839396",
"0.58038723",
"0.5791966",
"0.57802445",
"0.5774817",
"0.5722101",
"0.5713138",
"0.5712449",
"0.56985974",
"0.56684464",
"0.5665384",
"0.56639147",
"0.56552947",
"0.5651878",
"0.5651878",
"0.5651878",
"0.5651878",
"0.5651878",
"0.5650143",
"0.5642983",
"0.5639365",
"0.5628369",
"0.5614701",
"0.56041855",
"0.56012595",
"0.55964005",
"0.5587785",
"0.5581551",
"0.557354",
"0.557074",
"0.5557946",
"0.55556226",
"0.55523664",
"0.5543998",
"0.5543998",
"0.5543998",
"0.55360526",
"0.5535745",
"0.5530282",
"0.5522052",
"0.55169004",
"0.5515599",
"0.5515204",
"0.54977846",
"0.5496296",
"0.54935384",
"0.5491108",
"0.54887116",
"0.5488392",
"0.5485042",
"0.5482722",
"0.5468387",
"0.54653823",
"0.5453729",
"0.54534686",
"0.5450776",
"0.54364085",
"0.54331833",
"0.5420104",
"0.54179484",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.54163146",
"0.5413861",
"0.54120535",
"0.5409434",
"0.5403608",
"0.5398193",
"0.5385308",
"0.5384606",
"0.5381912"
] |
0.69626284
|
1
|
Returns the parent of this shape.
|
public RMParentShape getParent() { return _parent; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public DrawingComposite getParent() {\n\t\treturn parent;\n\t}",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public WidgetParent getParent() {\n return this.m_parent;\n }",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public Path getParent(\n ) {\n return this.parent;\n }",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public PApplet getParent() {\n\t\treturn this.parent;\n\t}",
"public String getParent() {\n return parent;\n }",
"public String getParent() {\n return _parent;\n }",
"public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}",
"public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}",
"public String getParent() {\r\n return this.parent;\r\n }",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"public String getParent() {\n return _theParent;\n }",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"public CompoundExpression getParent (){\n return _parent;\n }",
"public String getParent() {\r\n return parent;\r\n }",
"public Kit getParent() {\n return this.parent;\n }",
"public PApplet getParent() {\n\t\treturn parent;\n\t}",
"public IPSComponent peekParent();",
"public Entity getParent() {\n return parent;\n }",
"public Foo getParent() {\n return parent;\n }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public GraphicalLattice getParentLattice() {\n\t\treturn parentLattice;\n\t}",
"public IAVLNode getParent() {\n\t\t\treturn this.parent; // to be replaced by student code\n\t\t}",
"@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}",
"public Node<T> getParent() {\n return this.parent;\n }",
"public ParseTreeNode getParent() {\r\n return _parent;\r\n }",
"public Comment getParent () {\n return parentComment;\n }",
"public EventNode getParent() {\n\t\treturn parent;\n\t}",
"public String getParentId() {\n return getParent() != null ? getParent().getId() : null;\n }",
"public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }",
"public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}",
"public StructuredId getParent()\r\n {\r\n return parent;\r\n }",
"public Figure getFigure() {\n\t\treturn _parentFigure;\n\t}",
"public Glyph getParent() {\n return parent;\n }",
"public Glyph getParent() {\n return parent;\n }",
"public int Parent() { return this.Parent; }",
"public Tree<T> getParent()\n {\n return this.parent;\n }",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"public PlanNode getParent() {\n return parent;\n }",
"Node<T> parent();",
"public PropertySelector getParent() {\n return parent;\n }",
"Spring getParent() {\n return parent;\n }",
"public String getParentName() {\n return parentName;\n }",
"public Node getParent(){\n return parent;\n }",
"public int getParentID() {\n\t\treturn parentID;\n\t}",
"public Node getParentNode() {\n return parentNode;\n }",
"public String getParentName() {\n\t\treturn parentName;\n\t}",
"public ILexComponent getParent();",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public Folder getParentFolder() {\n\t\treturn parentFolder;\n\t}",
"@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();",
"public Component getParentComponent() {\r\n\t\tif (parentComponent == null) {\r\n\t\t\tif (view != null)\r\n\t\t\t\tparentComponent = view.getComponent(parentComponentName);\r\n\t\t}\r\n\t\treturn parentComponent;\r\n\t}",
"Object getParent();",
"IGLProperty getParent();",
"@JsProperty\n Element getParentElement();",
"public int getParentID() {\n\t\treturn _parentID;\n\t}",
"public int getParent();",
"public String getParentName() {\n return parentName;\n }",
"public Path parent() {\n if (isRoot()) {\n return this;\n } else {\n String[] newParts = new String[parts.length - 1];\n for (int i = 0; i < parts.length - 1; i++) {\n newParts[i] = parts[i];\n }\n return new Path(newParts, true);\n }\n }",
"@Override\r\n public FileName getParent() {\r\n final String parentPath;\r\n final int idx = getPath().lastIndexOf(SEPARATOR_CHAR);\r\n if (idx == -1 || idx == getPath().length() - 1) {\r\n // No parent\r\n return null;\r\n }\r\n if (idx == 0) {\r\n // Root is the parent\r\n parentPath = SEPARATOR;\r\n } else {\r\n parentPath = getPath().substring(0, idx);\r\n }\r\n return createName(parentPath, FileType.FOLDER);\r\n }",
"public SpacialPattern getParent() {\n\t\treturn parent;\n\t}",
"public int getParentNode(){\n\t\treturn parentNode;\n\t}",
"public TreeNode getParent()\n {\n return mParent;\n }",
"public com.vmware.converter.ManagedObjectReference getParentFolder() {\r\n return parentFolder;\r\n }",
"public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }",
"public String getParentId() {\n return getProperty(Property.PARENT_ID);\n }",
"public Workspace getParentWorkspace() {\n\t\treturn this.parentWorkspace;\n\t}",
"public TreeNode getParent ()\r\n {\r\n return parent;\r\n }",
"public Colourizer getParentColour() {\n return parentLineColour;\n }",
"public UpTreeNode<E> getParent() {\n\t\t\treturn parent;\n\t\t}",
"public Peak getParent() {\n\t\treturn parent;\n\t}",
"public Node getParent();",
"public PartialSolution getParent() {\n return _parent;\n }",
"@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn parent;\r\n\t}",
"public String getParentName() {\n return getProperty(Property.PARENT_NAME);\n }",
"public E getParentEntity() {\n return parentEntity;\n }",
"@Pure\n\tpublic TreeNode<?, ?> getParentNode() {\n\t\treturn (TreeNode<?, ?>) getSource();\n\t}",
"public String getParent() {\r\n return (String) getAttributeInternal(PARENT);\r\n }",
"public abstract Optional<TypeName> parent();",
"public TeachersDomainStandardsNode getParent() {\n\t\treturn parent;\n\t}",
"@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn this.parent;\r\n\t}",
"public int getParent_id() {\n return this.parent_id;\n }",
"public ProductContainer getParent();",
"public ASPMSyntaxElement getParent() {\n\t\treturn parent;\n\t}",
"public FileNode getParent() {\r\n return this.parent;\r\n }",
"@JsProperty\n Node getParentNode();",
"@VTID(7)\r\n void getParent();"
] |
[
"0.8650444",
"0.819573",
"0.79310656",
"0.7902546",
"0.7902546",
"0.7902546",
"0.786001",
"0.7854757",
"0.7800113",
"0.7785037",
"0.7728909",
"0.77138066",
"0.75935656",
"0.7584307",
"0.7566624",
"0.75392425",
"0.7529399",
"0.7524263",
"0.75122786",
"0.75122786",
"0.75076306",
"0.74986356",
"0.74986356",
"0.74956125",
"0.74952096",
"0.74867344",
"0.7481696",
"0.7464262",
"0.74417716",
"0.74356073",
"0.7427541",
"0.7421125",
"0.7408223",
"0.7364943",
"0.73089325",
"0.7300013",
"0.7284452",
"0.728107",
"0.7280291",
"0.727009",
"0.72460943",
"0.7245956",
"0.72370154",
"0.72303396",
"0.7223632",
"0.7215657",
"0.7215657",
"0.72072405",
"0.72047603",
"0.7195885",
"0.7180899",
"0.7162944",
"0.7141551",
"0.71348125",
"0.71336544",
"0.71302",
"0.7127473",
"0.71184844",
"0.71165866",
"0.71086663",
"0.71024585",
"0.7097569",
"0.70934165",
"0.7089311",
"0.7089043",
"0.7085774",
"0.70850104",
"0.707646",
"0.70662814",
"0.70647323",
"0.7062505",
"0.70589423",
"0.7058201",
"0.70509",
"0.70478505",
"0.70430404",
"0.7021278",
"0.7017446",
"0.70134956",
"0.70129013",
"0.7008766",
"0.70031357",
"0.6998557",
"0.6994547",
"0.6994175",
"0.69883585",
"0.6985221",
"0.69818586",
"0.69805866",
"0.6962806",
"0.69614464",
"0.695712",
"0.6956108",
"0.6953771",
"0.6951219",
"0.69469935",
"0.6945191",
"0.6931391",
"0.693057",
"0.6930196"
] |
0.8089883
|
2
|
Sets the parent of this shape (called automatically by addChild()).
|
public void setParent(RMParentShape aShape) { _parent = aShape; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"final void setParent(ShapeParent newParent)\n {\n this.parent = newParent;\n }",
"public void setParent(CarrierShape parent)\n\t{\n\t\tthis.parent = parent;\n\t}",
"public void setParent(DrawingComposite parent) {\n\t\tthis.parent = parent;\n\t}",
"public RMParentShape getParent() { return _parent; }",
"void setParent(IGLProperty parent);",
"public void setParent(Node parent){\n this.parent = parent;\n }",
"public void setParent(Node parent) {\n this.parent = parent;\n }",
"public void setParent(Glyph parent) {\n this.parent = parent;\n }",
"public void setParent(Node node) {\n parent = node;\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"protected void setParent(CodeItem codeItem) {\n this.parent = codeItem;\n }",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public void setParent(ILexComponent parent);",
"private void setParent(Node<T> parent) {\n this.parent = parent;\n }",
"public void setParent(Node<T> parent) {\n this.parent = parent;\n }",
"void setParent(WidgetParent ip) {\n this.m_parent = ip;\n }",
"public void setParent(ASPMSyntaxElement parent) {\n\t\tassert this.parent == null;\n\t\tthis.parent = parent;\n\t}",
"@objid (\"617c2b9e-55b6-11e2-877f-002564c97630\")\n @Override\n protected void setParent(GmCompositeNode parent) {\n if (parent != null && getParent() != parent) {\n getPersistedStyle().setCascadedStyle(parent.getPersistedStyle());\n }\n \n super.setParent(parent);\n }",
"public void setParentLayer(EObject newValue);",
"public void setParent(PafDimMember parent) {\r\n\t\tthis.parent = parent;\r\n\t}",
"@Override\n\tpublic void setParent(ASTNode node) {\n\t\tthis.parent = node;\n\t\t\n\t}",
"public void setParent(Instance parent) {\r\n \t\tthis.parent = parent;\r\n \t}",
"public void setParent(String aParent) {\n _theParent = aParent;\n }",
"@Override\n\tpublic void setParent(HtmlTag parent){\n\t\tif(parent != null)\n\t\t{\n\t\t\tsetParentInternal(TreeNode.create(parent));\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetParentInternal(null);\n\t\t}\n\t\tif(!parent.getChildren().contains(this))\n\t\t{\n\t\t\tparent.addChild(this);\t\n\t\t}\n\t}",
"public void setParent(PaletteContainer newParent) {\n if (parent != newParent) {\n PaletteContainer oldParent = parent;\n parent = newParent;\n listeners.firePropertyChange(PROPERTY_PARENT, oldParent, parent);\n }\n }",
"public void setParent(ASTNeoNode parent) {\r\n \t\tassertTrue(parent != null);\r\n \t\tassertTrue(this.parent == null); // Can only set parent once\r\n \t\tthis.parent = parent;\r\n \t}",
"@Override\n\tpublic void setParent(TreeNode parent) {\n\t\tthis.parent = parent ;\n\t}",
"@Override\n\tpublic void setParent(TreeNode parent) {\n\t\tthis.parent = parent ;\n\t}",
"public void setParent(State aParent);",
"void setParent(UIComponent parent);",
"public void setParent( PlanNode parent ) {\n removeFromParent();\n if (parent != null) {\n this.parent = parent;\n this.parent.children.add(this);\n }\n }",
"public void setParent(String parent) {\n _parent = parent;\n }",
"public void setParent(RBNode<T> node, RBNode<T> parent) {\n if(node != null)\r\n node.parent = parent;\r\n }",
"public void setParent(String parent) {\r\n this.parent = parent;\r\n }",
"public void setParent(Kit parentKit) {\n this.parent = parentKit;\n }",
"public @Override void setParent(View parent) {\n super.setParent(parent);\n \n /* Make sure that the children get loaded.\n * It is necessary to do because children preferences will\n * define the preferences of the parent.\n */\n if (parent != null) {\n if (parent instanceof ViewLayoutState.Parent) {\n setStatusBits(ACTIVE_LAYOUT_STATE);\n } else {\n clearStatusBits(ACTIVE_LAYOUT_STATE);\n }\n \n // Resolving whether active layout state must be resolved prior getChildren()\n getChildren();\n \n } else { // parent is being set to null\n releaseChildren();\n clearStatusBits(ACTIVE_LAYOUT_STATE);\n }\n }",
"public void setParent(final @Nullable Node<@Nullable T> parent) {\n this.parent = parent;\n }",
"public void setParent(TreeNode parent)\r\n\t{\r\n\t\tm_parent = parent;\r\n\t}",
"public void setParent (CompoundExpression parent)\r\n\t\t{\r\n\t\t\t_parent = parent;\r\n\t\t}",
"public void setParent(Concept _parent) { parent = _parent; }",
"@Override\r\n\tpublic void setParent(Tag arg0) {\n\t}",
"public void setParent(String parent) {\n this.parent = parent;\n }",
"public void setParent(LeafTreeNode parent) {\n this.parent = parent;\n }",
"public void setParent(AsNode parent) {\n\t\tthis.state.setG(parent.getState().getG() + parent.childCost.get(this));\n\t\tthis.parent = parent;\n\t}",
"public void setParent(View parent) {\n throw new Error(\"Can't set parent on root view\");\n }",
"public void setParent (CompoundExpression parent){\n _parent = parent;\n }",
"public void setParent(final ParseTreeNode parent) {\r\n _parent = parent;\r\n }",
"public abstract void setParent(UIComponent parent);",
"void setParent(TreeNode<T> parent);",
"public void setParent (com.redsaga.hibnatesample.step2.Board _parent) {\n\t\tthis._parent = _parent;\n\t}",
"void setParent(TestResultTable.TreeNode p) {\n parent = p;\n }",
"protected void setParent(Group parent) {\n internalGroup.setParent(parent.internalGroup);\n }",
"void setParent(Resource parent)\n {\n this.parent = new ResourceRef(parent, coral);\n if(parent != null)\n {\n \tparentId = parent.getId();\n }\n else\n {\n \tparentId = -1;\n }\n }",
"public void setParent(String value) {\r\n setAttributeInternal(PARENT, value);\r\n }",
"public void setParent(FileNode parent) {\r\n this.parent = parent;\r\n }",
"public void setParent(@CheckForNull final OtuSet parent) {\n\t\tthis.parent = parent;\n\t}",
"<E extends CtElement> E setParent(E parent);",
"public DrawingComposite getParent() {\n\t\treturn parent;\n\t}",
"public void setParent(IAVLNode node) {\n\t\t\tthis.parent = node; // to be replaced by student code\n\t\t}",
"public void setParentPanel(UIPanel parent) {\n this.parentPanel = parent;\n updateBounds();\n }",
"@Override\n\tpublic void setParent(WhereNode parent) {\n\t\tthis.parent = parent;\n\t}",
"public void setParent (TreeNode parent)\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"setParent parent=\" + parent + \" for \" + this);\r\n }\r\n\r\n this.parent = parent;\r\n }",
"public void setParent(MenuTree parent){\n this.parentMenuTree = parent;\n }",
"abstract public void setParent(Command cmd);",
"public void setParent(Node newParent) {\r\n\t\t\tparent = newParent;\r\n\t\t}",
"public void setParent(Node node) {\n\n\t\tif (this.parent != null) {\n\t\t\t// if there's a current parent node, unlink the 2 nodes\n\t\t\tthis.parent.children.remove(this);\n\t\t} else {\n\t\t\t// the parent is the root graph\n\t\t\tthis.graph.childNodes.remove(this.getId());\n\t\t}\n\n\t\tthis.parent = node;\n\n\t\tif (node != null) {\n\t\t\t// link the 2 nodes\n\t\t\tnode.children.add(this);\n\t\t} else {\n\t\t\t// the parent is the root graph\n\t\t\tthis.graph.childNodes.put(this.getId(), this);\n\t\t}\n\t}",
"public void setParent(IAVLNode node);",
"public void setParent(IAVLNode node);",
"public void setParent(AbstractConfigNode parent) {\n this.parent = parent;\n }",
"public void setParent(int id);",
"protected void setParent(ILanguageElement parent) {\r\n this.parent = parent;\r\n }",
"public void setParentComponent(Component _component) {\r\n\t\tparentComponent = _component;\r\n\t}",
"public void setParentOne(int parent)\n\t{\n\t\tparentSetOne = parent;\n\t}",
"public void setIsParent(Boolean isParent) {\n this.isParent = isParent;\n }",
"@Override\n\tpublic void onParentSet() {\n\t\t\n\t}",
"public PApplet getParent() {\n\t\treturn parent;\n\t}",
"public void setParentNode(BSTNode parent) {\n\t\tthis.parentNode = parent;\n\t}",
"@Override\n\tpublic void setParent(Tag parentTag) {\n\t\tthis.parentTag = parentTag;\n\n\t}",
"@Nullable <T extends ContainerHolder> T setParent(@Nullable T parent);",
"public void setParent(PlasticClassPool parent) \n {\n this.parent = parent;\n parent.children.add(this);\n }",
"public Drawing (PApplet parent) {\n\t\tthis.parent = parent;\n\t}",
"@Override\n public void setParent(MElementContainer<MUIElement> arg0)\n {\n \n }",
"public void setParent(TaskFolder parent)\n {\n super.setParent(parent);\n if (parent != null) parent.addFolder(this);\n }",
"public void setParentable(Boolean parentable);",
"public void setParent(PsUpdateIf parent) {\n\t\tsuper.setParent(parent);\n\t\tm_pjRoot = (PjRootFinder)parent;\n\t\tm_pFunction.add(m_pjRoot.m_fx.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_xMin.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_xMax.getInfoPanel());\n\t\tm_pBounds.add(m_pjRoot.m_discr.getInfoPanel());\n\t}",
"public void setORM_Parent(orm.Nomenclature value) {\r\n\t\tthis.parent = value;\r\n\t}",
"public abstract void setParent (XMLReader parent);",
"public boolean setParent (\n\t\tfinal BinomialTree<KEY, ITEM> parent)\n\t{\n\t\t_parent = parent;\n\t\treturn true;\n\t}",
"public void setOwner(RMParentShape anObj) { _owner = anObj; }",
"@Override\n public void setParent(IStatement _statement) {\n\t this._parent = _statement;\n }",
"@Override\n public void setParentNode(ConfigurationNode parent)\n {\n this.parent = parent;\n }",
"public static void setParent(java.awt.Frame newParent) {\n parent = newParent;\n}",
"public void setParent(HtmlMap<T> parent)\n\t{\n\t\tthis.m_parent = parent;\n\t}",
"public PApplet getParent() {\n\t\treturn this.parent;\n\t}",
"public Kit getParent() {\n return this.parent;\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public void setParent(SpacialPattern pattern) {\n\t\tparent = pattern;\n\t}",
"public void setParent(DocxContext<?> parent) {\n\n }",
"protected void setParent(ResourceBundle parent) {\n super.setParent(parent);\n\n m_parent_bundle = parent;\n }",
"public WidgetParent getParent() {\n return this.m_parent;\n }"
] |
[
"0.7990725",
"0.76581526",
"0.7603317",
"0.73722595",
"0.7278022",
"0.71829414",
"0.71557224",
"0.71278334",
"0.71196955",
"0.70498496",
"0.7011918",
"0.699503",
"0.694758",
"0.69473094",
"0.6932042",
"0.69244045",
"0.69188046",
"0.69059795",
"0.69015115",
"0.68847716",
"0.68557245",
"0.6852394",
"0.68440574",
"0.6820002",
"0.681115",
"0.68005896",
"0.6799574",
"0.6799574",
"0.6796781",
"0.67922896",
"0.6790345",
"0.6777992",
"0.6767537",
"0.6758047",
"0.6742204",
"0.67390174",
"0.6736968",
"0.672687",
"0.67263",
"0.6724489",
"0.6721309",
"0.6719759",
"0.6716234",
"0.6706838",
"0.6704508",
"0.670087",
"0.6699471",
"0.6697833",
"0.669586",
"0.6692569",
"0.66844887",
"0.6662999",
"0.66567856",
"0.6653319",
"0.66398615",
"0.6638203",
"0.6613443",
"0.65810907",
"0.6572426",
"0.6565327",
"0.65500784",
"0.654037",
"0.65034765",
"0.64966124",
"0.6494819",
"0.6489577",
"0.647503",
"0.647503",
"0.640472",
"0.6385738",
"0.636459",
"0.635544",
"0.6346027",
"0.6338264",
"0.6338181",
"0.63339674",
"0.63252175",
"0.63027275",
"0.6299774",
"0.627682",
"0.6251866",
"0.6241552",
"0.6239225",
"0.6219104",
"0.6213821",
"0.6201997",
"0.6164938",
"0.61633164",
"0.6161396",
"0.61514497",
"0.6143898",
"0.61040545",
"0.6090175",
"0.6074477",
"0.6073891",
"0.6071456",
"0.60703",
"0.6065562",
"0.60507834",
"0.60499126"
] |
0.80007905
|
0
|
Returns the first parent with given class by iterating up parent hierarchy.
|
public <T extends RMShape> T getParent(Class<T> aClass)
{
for(RMShape s=getParent(); s!=null; s=s.getParent()) if(aClass.isInstance(s)) return (T)s;
return null; // Return null since parent of class wasn't found
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"<P extends CtElement> P getParent(Class<P> parentType) throws ParentNotInitializedException;",
"@Override\n\tpublic List<Parent> retrieveParentListByClass(int classId) {\n\t\tint class_id_grade = classId;\n\t\tList<Parent> existingParent = parentRepository.findByClass(classId);\n\t\treturn existingParent;\n\t}",
"Object getParent();",
"IClassBuilder getParent();",
"public static SpItem findParentOfType(SpItem spItem, Class<?> klass) {\n SpItem parent = spItem.parent();\n\n while (parent != null) {\n if (klass.isInstance(parent)) {\n return parent;\n }\n\n parent = parent.parent();\n }\n\n return null;\n }",
"public tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier commonSuperType(tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier c) {\n \n\tif (this.conformsTo(c)) { return c; }\n\tif (c.conformsTo(this)) { return this; }\n Set thisParents = new HashSet(); ;\n thisParents.add(this);\n Set cParents = new HashSet(); ;\n cParents.add(c);\n \n //the transitive closure of the Classifier and all of its parents\n Set thisTC = new HashSet();\n Set cTC = new HashSet();\n \n while(!(thisParents.isEmpty() && cParents.isEmpty())){\n thisTC.addAll(thisParents);\n cTC.addAll(cParents);\n \n Set thisParentsTemp = new HashSet();\n Iterator thisParentsIt = thisParents.iterator();\n while(thisParentsIt.hasNext()){\n tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier aThisParent = (tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier) thisParentsIt.next();\n if(cTC.contains(aThisParent)){\n return aThisParent;\n }\n thisParentsTemp.addAll(aThisParent.getParents());\n }\n thisParents=thisParentsTemp;\n \n Set cParentsTemp = new HashSet();\n Iterator cParentsIt = cParents.iterator();\n while(cParentsIt.hasNext()){\n tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier aCParent = (tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier) cParentsIt.next();\n if(thisTC.contains(aCParent)){\n return aCParent;\n }\n cParentsTemp.addAll(aCParent.getParents());\n }\n cParents=cParentsTemp;\n }\n return null; //should only occure if c is a collection type\n }",
"public int getParent();",
"@VTID(7)\r\n void getParent();",
"public int findParent(int[] parent, int u) {\n\t\tif (parent[u] == -1) { // matlab u khud ka parent hai/godfather/leader/founder\n\t\t\treturn u;\n\t\t}\n\t\treturn findParent(parent, parent[u]);\n\t}",
"CoreParentNode coreGetParent();",
"public abstract T getParent(T anItem);",
"private int findParent(int[] parent, int i) {\n if (parent[i] == i)\n return i;\n return findParent(parent, parent[i]);\n }",
"public List<AlfClass> getParents() {\t\r\n\t\tList<AlfClass> parents = new ArrayList<AlfClass>(this.strongParents);\r\n\t\tparents.addAll(this.weakParents);\r\n\t\treturn Collections.unmodifiableList(parents);\r\n\t}",
"public Node getParent();",
"private static int chooseParent() {\n\t\tint parent = 0;\n\t\tChromosome thisChromo = null;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\t// Randomly choose an eligible parent.\n\t\t\tparent = getRandomNumber(0, population.size() - 1);\n\t\t\tthisChromo = population.get(parent);\n\t\t\tif (thisChromo.selected() == true) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\n\t\treturn parent;\n\t}",
"public static Class<?> getOuterClass(Class<?> cl) {\n \t\tClass<?> enclosingClass;\n \t\twhile ((enclosingClass = cl.getEnclosingClass()) != null) {\n \t\t\tcl = enclosingClass;\n \t\t}\n \t\treturn cl;\n \t}",
"public Foo getParent() {\n return parent;\n }",
"public TaskGroup getSelectedTaskParent()\n {\n boolean first = true;\n TaskGroup allParent = null;\n\n // Examine the parent task group for each selected undertaking\n Iterator<AUndertaking> taskIt = getSelectedTaskIterator();\n\n while (taskIt.hasNext()) {\n AUndertaking item = taskIt.next();\n\n TaskGroup parentOfItem = item.getTaskGroup();\n\n // If the selected item represents a top-level undertaking,\n // then null is the only possible response.\n if (parentOfItem == null) {\n return null;\n }\n\n // Remember first parent to compare against the remaining ones\n if (first) {\n first = false;\n allParent = parentOfItem;\n }\n else if (parentOfItem != allParent) {\n // If a subsequent parent is different from the remembered one,\n // return null\n return null;\n }\n }\n\n // If there is no selected undertaking, return null\n if (allParent == null) {\n return null;\n }\n\n // Otherwise, return the shared parent task group\n return allParent;\n }",
"public static OntClass getFirstNamedSuperClass(OntClass c)\n\t{\n\t\tfor (BreadthFirstIterator<OntClass> i = new BreadthFirstIterator<OntClass>(new SuperClassSearchNode(c)); i.hasNext(); ) {\n\t\t\tOntClass superClass = i.next();\n\t\t\tif (superClass.isURIResource() && !superClass.equals(c))\n\t\t\t\treturn superClass;\n\t\t}\n\t\treturn c.getOntModel().getOntClass(OWL.Thing.getURI());\n\t}",
"abstract public Container<?> getParent();",
"TreeNode<T> getParent();",
"public SearchTreeNode getParent() { return parent; }",
"Node<T> parent();",
"Component getParent(Component c) {\n return hierarchy.getParent(c);\n }",
"public List getParents()\n {\n \tList result = new ArrayList();\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n\n \tif (instance != null)\n \t{\n \t if (instance.isRepresentative(this.refMofId())&&\n \t instance.hasRefObject(this.refMofId()))\n \t {\n \t if (getGeneralization().isEmpty() && !(this instanceof Interface) && !(this instanceof Enumeration))\n \t {\n \t \tresult.add(OclLibraryHelper.getInstance(this).\n \t\t\t\t\t\t\t\t\t\t\tgetAny());\n \t return result;\n \t \t }\n \t } \t \n \t \n\t \tif (equals(OclLibraryHelper.getInstance(this).getVoid()))\n\t \t{\n\t \t\tModel topPackage = ModelHelper.\n\t \t\t\t\t\t\t \t\tgetInstance(\n\t \t\t\t\t\t\t \t\t\t\t(Uml15Package) this.refOutermostPackage()).\n\t \t\t\t\t\t\t \t\t\t\t\t\tgetTopPackage();\n\t \t\tresult.addAll(((NamespaceImpl)topPackage).getAllClassesWithoutSpez());\n\t \t\treturn result;\n\t \t}\n \t} \n \tIterator it = getGeneralization().iterator();\n\n \twhile(it.hasNext())\n \t{\n \t Generalization g = (Generalization)it.next(); \n \t result.add(g.getParent());\n \t}\n \treturn result;\n }",
"public FObj findNearestAncestorFObj() {\n FONode par = parent;\n while (par != null && !(par instanceof FObj)) {\n par = par.parent;\n }\n return (FObj) par;\n }",
"public SearchNode<S, A> getParent() {\r\n\t\treturn parent;\r\n\t}",
"public T getParent(T anItem) { return null; }",
"private Node getFirstParentBlock(Node node) {\n Node parentNode = node.getParent();\n\n Node lastNode = node;\n while (parentNode != null && !BLOCK_PARENTS.contains(parentNode.getClass())) {\n lastNode = parentNode;\n parentNode = parentNode.getParent();\n }\n if (parentNode instanceof ASTIfStatement) {\n parentNode = lastNode;\n } else if (parentNode instanceof ASTSwitchStatement) {\n parentNode = getSwitchParent(parentNode, lastNode);\n }\n return parentNode;\n }",
"@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();",
"public PageTreeNode getParent() {\n return parent;\n }",
"private static int chooseParent(final int parentA) {\n\t\tint parent = 0;\n\t\tChromosome thisChromo = null;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\t// Randomly choose an eligible parent.\n\t\t\tparent = getRandomNumber(0, population.size() - 1);\n\t\t\tif (parent != parentA) {\n\t\t\t\tthisChromo = population.get(parent);\n\t\t\t\tif (thisChromo.selected() == true) {\n\t\t\t\t\tdone = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn parent;\n\t}",
"java.lang.String getParent();",
"java.lang.String getParent();",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public String getParent(String child) {\n \tif ( child.equals(TreeConstants.Object_.getString())) {\n \t\treturn TreeConstants.No_class.toString();\n \t}\n \tfor (String parent : adjacencyList.keySet()) {\n \t\tArrayList<String> listOfChildren = adjacencyList.get(parent);\n \t\tif (listOfChildren.indexOf(child) != -1) {\n \t\t\treturn parent;\n \t\t}\n \t}\n \t// This shouldn't happen\n \treturn null;\n }",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"@VTID(9)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject getParent();",
"public ParseTreeNode getParent() {\r\n return _parent;\r\n }",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"private <T extends BaseSFVertex> T getSuperParent() {\n return SFVertexFactory.load(\n g(),\n g().V(getId())\n // Create a list containing this vertex, and every vertex in the chain of of\n // parent.\n .union(__.identity(), __.repeat(__.out(Schema.PARENT)).emit())\n // Order them by the number of parent vertices they have. The super-parent\n // will always be at the start of\n // the list, since it's the only vertex with exactly 0 parents.\n .order()\n .by(__.out(Schema.PARENT).count())\n // Return only the first entry in the list, which is guaranteed to be the\n // super-parent.\n .limit(1));\n }",
"public void selectParents() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }",
"protected Directory getParent() {\n return parent;\n }",
"private Path findCaret(Parent parent) {\n\t\tfor (Node n : parent.getChildrenUnmodifiable()) {\n\t\t\tif (n instanceof Path) {\n\t\t\t\treturn (Path) n;\n\t\t\t} else if (n instanceof Parent) {\n\t\t\t\tPath p = findCaret((Parent) n);\n\t\t\t\tif (p != null) {\n\t\t\t\t\treturn p;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic <T extends BusinessObject> T findOwnerByClass(Class<T> parentClass) {\n\t\tif (ClassUtil.isSuperclassOf(parentClass, getClass())) {\n\t\t\treturn (T)this;\n\t\t} else if (ownerProperty().getValue() != null) {\n\t\t\treturn ownerProperty().getValue().findOwnerByClass(parentClass);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public TreeNode getParent ()\r\n {\r\n return parent;\r\n }",
"public ProductContainer getParent();",
"public Category getParent(){\r\n return parent;\r\n }",
"public void selectParents1() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }",
"@DerivedProperty\n\tCtElement getParent() throws ParentNotInitializedException;",
"public IRNode getParent(IRNode node);",
"public static Object getParent(final Object obj) throws Exception {\n\t\tClass<?> c = obj.getClass();\n\t\tClass<?> parentClass = c.getSuperclass();\n\t\tif (parentClass==null) {\t// Occurs when c==Object whose parent is null exactly)\n\t\t\treturn null;\n\t\t}\n\n\t\tObject parent = null;\n\t\t\n\t\tparent = cloneObject(obj, parentClass, parentClass);\n\t\t\n\t\treturn parent;\n\t}",
"<E extends CtElement> E getParent(Filter<E> filter) throws ParentNotInitializedException;",
"public TreeNode getParentNode();",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public TopLevelType getParentTopLevelType() {\r\n return parent;\r\n }",
"public TopLevelType getParentTopLevelType() {\r\n return parent;\r\n }",
"public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }",
"protected void findNewParent() {\n\t\t\tif (parent != null)\n\t\t\t\tparent.children.remove(this);\n\t\t\tNodeLayout[] predecessingNodes = node.getPredecessingNodes();\n\t\t\tparent = null;\n\t\t\tfor (int i = 0; i < predecessingNodes.length; i++) {\n\t\t\t\tTreeNode potentialParent = (TreeNode) owner.layoutToTree\n\t\t\t\t\t\t.get(predecessingNodes[i]);\n\t\t\t\tif (!children.contains(potentialParent)\n\t\t\t\t\t\t&& isBetterParent(potentialParent))\n\t\t\t\t\tparent = potentialParent;\n\t\t\t}\n\t\t\tif (parent == null)\n\t\t\t\tparent = owner.superRoot;\n\n\t\t\tparent.addChild(this);\n\t\t}",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public Integer getParent(Integer e){\n\t\ttry{\n\t\t\treturn searchNodeRef(e).father.element;\n\t\t} catch (Exception exc) {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}",
"public abstract Optional<TypeName> parent();",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"private static void getClassHierarchyRecurs(Class clazz, boolean flag) {\n Class classFirst = null;\n if (flag) {\n classFirst = clazz;\n }\n if (clazz != null) {\n clazz = clazz.getSuperclass();\n getClassHierarchyRecurs(clazz, false);\n }\n if (clazz != null) {\n System.out.println(clazz.getName());\n System.out.println(\" ^\");\n System.out.println(\" |\");\n }\n if (classFirst != null) {\n System.out.println(classFirst.getName());\n }\n }",
"public Tree<T> getParent()\n {\n return this.parent;\n }",
"DendrogramNode<T> getParent();",
"public Entity getParent() {\n return parent;\n }",
"public abstract XMLReader getParent ();",
"protected TacticalBattleProcessor getParent() {\n return parent;\n }",
"public GrauParentesco getGrauParentesco(int codigoGrauParentesco);",
"ContentIdentifier getParent(ContentIdentifier cid);",
"IGLProperty getParent();",
"public AccessibleElement getParent();",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"Spring getParent() {\n return parent;\n }",
"public IMember getParentMember();",
"CoreElement coreGetParentElement();",
"public SqlFromSubSelect getParent() {\n return parent;\n }",
"public ContentScanner getParentLevel(\n )\n {return parentLevel;}",
"public int getParentType() {\r\n return parent_type;\r\n }",
"@DISPID(150)\n @PropGet\n com4j.Com4jObject getParent();",
"@DISPID(150)\n @PropGet\n com4j.Com4jObject getParent();",
"com.google.apps.drive.activity.v2.DriveItem getParent();",
"@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn parent;\r\n\t}",
"public static Component getFirstChildType(Component parent, int type) {\n\t\tList<Component> comps = Component.organizeComponents(Arrays.asList(parent));\n\t\tfor (Component c : comps) {\n\t\t\tif (type == c.getType()) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public TestResultTable.TreeNode getParent() {\n return parent;\n }",
"public int getParentOne()\n\t{\n\t\treturn parentSetOne;\n\t}",
"Genome chooseParent();",
"private Alternative getParentAlternative(Alternative alt){\r\n \t\tAlternative toReturn = null;\r\n \t\tDecision parentDecision = new Decision();\r\n \t\tparentDecision.fromDatabase(alt.getParent());\r\n \t\tif (parentDecision.getID() < 0 || \r\n \t\t\t\tparentDecision.getPtype() != RationaleElementType.ALTERNATIVE) return null;\r\n \t\ttoReturn = new Alternative();\r\n \t\ttoReturn.fromDatabase(parentDecision.getParent());\r\n \t\tif (toReturn.getID() < 0) return null;\r\n \t\treturn toReturn;\r\n \t}",
"@Override\n\tpublic Parent selectParentByParentName(String parentName) {\n\t\treturn parentDao.selectParentByParentName(parentName);\n\t}",
"public RBNode<T> parentOf(RBNode<T> node) {\n return node != null? node.parent : null;\r\n }",
"public TreeNode getParent() { return par; }",
"public String getParent() {\n return _theParent;\n }",
"public Ent getParent(){\n\t\treturn (Ent)bound.getParent();\n\t}",
"private AttributeNode findSuper(String className, String attributeName) {\n \n // find the superclass by searching the OCR's for a generalization \n \n List<ObjectClassRelationship> ocrs = \n elements.getElements(DomainObjectFactory.newObjectClassRelationship());\n \n String superClassName = null;\n for(ObjectClassRelationship ocr : ocrs) {\n if (ocr.getType() == ObjectClassRelationship.TYPE_IS && \n ocr.getSource().getLongName().equals(className)) {\n superClassName = ocr.getTarget().getLongName();\n break;\n }\n }\n \n if (superClassName == null) {\n System.err.println(\"Superclass not found for \"+className);\n return null;\n }\n \n // find the super class in the tree\n \n int div = superClassName.lastIndexOf(\".\");\n String sPackage = superClassName.substring(0, div);\n String sName = superClassName.substring(div+1);\n \n for(Object pchild : rootNode.getChildren()) {\n PackageNode pnode = (PackageNode)pchild;\n if (pnode.getFullPath().equals(sPackage)) {\n for(Object cchild : pnode.getChildren()) {\n ClassNode cnode = (ClassNode)cchild;\n if (cnode.getDisplay().equals(sName)) {\n PackageNode inherited = null;\n for(Object achild : cnode.getChildren()) {\n if (\"Inherited Attributes\".equals(\n ((UMLNode)achild).getDisplay())) {\n // remember the inheritance subtree for later\n inherited = (PackageNode)achild;\n }\n else if (achild instanceof AttributeNode) {\n AttributeNode anode = (AttributeNode)achild;\n if (anode.getDisplay().equals(attributeName)) {\n return anode;\n }\n }\n }\n // attribute wasn't found, check inheritance subtree\n if (inherited != null) {\n for(Object achild : inherited.getChildren()) {\n AttributeNode anode = (AttributeNode)achild;\n if (anode.getDisplay().equals(attributeName)) {\n return findSuper(cnode.getFullPath(), attributeName);\n }\n }\n \n }\n }\n } \n }\n }\n \n return null;\n }"
] |
[
"0.6714532",
"0.6527966",
"0.6471247",
"0.6238703",
"0.605285",
"0.5969796",
"0.5960237",
"0.58501744",
"0.58250797",
"0.58053684",
"0.57717997",
"0.5742391",
"0.57409227",
"0.5695547",
"0.56868917",
"0.5677304",
"0.567116",
"0.5667324",
"0.5635071",
"0.563278",
"0.56281275",
"0.55784726",
"0.5567198",
"0.5551171",
"0.55473244",
"0.55310094",
"0.5530258",
"0.55293995",
"0.5528564",
"0.552119",
"0.5519531",
"0.55126274",
"0.5512017",
"0.5512017",
"0.5503574",
"0.5500573",
"0.5470152",
"0.5470152",
"0.5470152",
"0.5470152",
"0.54613596",
"0.5458915",
"0.5456112",
"0.54272866",
"0.5426191",
"0.54260033",
"0.54234403",
"0.5409731",
"0.54068524",
"0.5403478",
"0.5397837",
"0.53965354",
"0.5377815",
"0.53723294",
"0.5365357",
"0.53623724",
"0.5353428",
"0.534887",
"0.534887",
"0.53468883",
"0.53350544",
"0.5331907",
"0.5318282",
"0.53175014",
"0.53074515",
"0.5292266",
"0.5292266",
"0.5292266",
"0.5291264",
"0.5289881",
"0.5285426",
"0.52748066",
"0.5266184",
"0.5265483",
"0.52572733",
"0.5255443",
"0.5255337",
"0.525494",
"0.52499956",
"0.5248507",
"0.5242729",
"0.52415675",
"0.5234942",
"0.52331907",
"0.5226418",
"0.5220029",
"0.5220029",
"0.52175075",
"0.52152115",
"0.52144474",
"0.52117753",
"0.52071786",
"0.52012885",
"0.51998705",
"0.51964873",
"0.51947",
"0.51928186",
"0.5191921",
"0.51912785",
"0.5189856"
] |
0.73076504
|
0
|
Removes this shape from it's parent.
|
public void removeFromParent() { if(_parent!=null) _parent.removeChild(this); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void remove()\n {\n ShapeParent parent = getShapeParent();\n \n if (parent != null)\n {\n parent.remove(this);\n }\n }",
"public void removeFromParent();",
"public void removeParent() {\r\n\t\tif (getParent() == null)\r\n\t\t\treturn;\r\n\r\n\t\tif (p.getLeft() == this)\r\n\t\t\tp.setLeft(null);\r\n\t\telse if (p.getRight() == this)\r\n\t\t\tp.setRight(null);\r\n\r\n\t\tthis.p = null;\r\n\t}",
"void remove(Shape shape)\n {\n // If the children list contains the shape\n // then remove it and set its parent to null\n // breaking the two-way connection\n if(contains(shape))\n {\n children.remove(shape);\n shape.setParent(null);\n }\n }",
"public void remove()\n {\n removed();\n node.shapeRemoved(shape);\n }",
"public RMParentShape getParent() { return _parent; }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public void removeFromParent(){\n\t\tif(getParent() != null){\n\t\t\tif(getParent().childList != null){\n\t\t\t\tgetParent().childList.remove(this);\n\t\t\t}\n\t\t\tbound.setParent(null);\n\t\t\tfor(Scene s:sceneList){\n\t\t\t\ts.rootEntityList.add(this);\n\t\t\t}\n\t\t}\n\t}",
"public PlanNode removeFromParent() {\n PlanNode result = this.parent;\n if (this.parent != null) {\n // Remove this node from its current parent ...\n this.parent.children.remove(this);\n this.parent = null;\n }\n return result;\n }",
"protected void removeSelf() {\n if (!removed && parentNode != null && componentNode != null) {\n // remove this node from parent node\n parentNode.removeChild(componentNode);\n // Mark as removed\n removed = true;\n }\n }",
"public void removeNode()\n\t{\n\t\tif (parent != null)\n\t\t\tparent.removeChild(this);\n\t}",
"public void dissociateShape() {\n\t\tif(currentShape != null && (groupedShapes.contains(currentShape))) {\n\t\t\tgroupedShapes.remove(currentShape);\n\t\t\tnotifyObservers();\n\t\t}\n\t}",
"public void removePiece() {\n\t\troot.getChildren().clear();\n\t\tthis.piece = null;\n\t\troot.getChildren().add(rectangle);\n\t}",
"public void removeShape(RetainedShape shapePeer) {\r\n\t\tshapePeer.vboHandle.delete();\r\n\t}",
"public void setParent(RMParentShape aShape) { _parent = aShape; }",
"@Override\n\tpublic void explode()\n\t{\n\t\tparent.remove( this );\n\t}",
"public void popParent();",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public void remove(IVisualElement elem) {\n children.remove(elem);\n if (elem.getParent() == parentRef.get()) {\n elem.setParent(null);\n }\n }",
"public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }",
"public void detach() {\n\t\tsetParent(null);\n\t}",
"public void removeParentLineConnector()\n {\n LineConnector parentLineConnector = null;\n \n for (LineConnector lineConnector: lineConnectors)\n if (lineConnector.isType(LineConnectorType.TRIANGLE))\n {\n parentLineConnector = lineConnector;\n break;\n }\n if (parentLineConnector != null)\n lineConnectors.remove(parentLineConnector);\n }",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public void stopAnimation()\n {\n ShapeView view = getParentView();\n \n if (view != null)\n {\n view.getAnimationManager().stop(this);\n }\n }",
"public void remove(Shape c) {\n\t\tc.centerXProperty().removeListener(doubleListener);\n\t\tc.centerYProperty().removeListener(doubleListener);\n\t\tc.radiusProperty().removeListener(doubleListener);\n\t\tc.colorProperty().removeListener(colorListener);\n\t\tc.widthProperty().removeListener(doubleListener);\n\t\tc.heightProperty().removeListener(doubleListener);\n\t\tc.arcWidthProperty().removeListener(doubleListener);\n\t\tc.arcHeightProperty().removeListener(doubleListener);\n\t\tc.textProperty().removeListener(textListener);\n\t\tc.typeProperty().removeListener(typeListener);\n\t\tc.deleteProperty().removeListener(deleteListener);\n\t\tdrawData.remove(c);\n\t}",
"public void remove() {\n removeNode(this);\n }",
"public DrawingComposite getParent() {\n\t\treturn parent;\n\t}",
"final void setParent(ShapeParent newParent)\n {\n this.parent = newParent;\n }",
"public void removeFromParent(TXSemanticTag child);",
"public void removeShape(PhysicsShape shape) {\n\t\tshapes.remove(shape);\n\t}",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }",
"public void remove()\n {\n this.morphs.remove(this.index);\n this.clamp();\n }",
"@Override\n public void undo(){\n this.parent.getSelectedArea().clear();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\r\n super.remove();\r\n }",
"public void removeGate(){\n\t\t\n\t\t//remove the child gates and set them to null\n\t\twhile(this.child1!=null){\n\t\t\tthis.child1.removeGate();\n\t\t\t\n\t\t\tthis.child1 = null;\n\t\t}\n\n\t\twhile(this.child2!=null){\n\t\t\tthis.child2.removeGate();\n\t\t\tthis.child2 = null;\n\t\t}\n\t\t\n\t\tLineComponent.lines.remove(this.comp);\n\t\tthis.comp = null;\n\t\t\n\t\t//remove the gate from gateList and remove the JLabels\n\t\tDigitalCircuitUI.gateList.remove(this);\n\t\tDigitalCircuitUI.labels.remove(this);\n\t\t\n\t\t//if gate is an input, remove it from input list\n\t\tif(this.isInput()){\n\t\t\tDigitalCircuitUI.inputList.remove(this);\n\t\t}\n\t\t\n\t\t//remove the activeLabel for inputs\n\t\tContainer parent = this.getParent();\n\t\tif(parent != null){\n\t\t\tif(this.isInput()){\n\t\t\t\tparent.remove(((Input)this).activeLabel);\n\t\t\t\t//DigitalCircuitUI.inputTag--;\n\t\t\t}\n\t\t\tparent.remove(this);\n\t\t\tparent.revalidate();\n\t\t\tparent.repaint();\n\t\t}\n\t\t\n\t\t//set the parent gate's child/children to null\n\t\tif(this.pGate != null){\n\t\t\tif(this.pGate.child1 == this){\n\t\t\t\tthis.pGate.child1 = null;\n\t\t\t}\n\t\t\t\n\t\t\tif(this.pGate.child2 == this){\n\t\t\t\tthis.pGate.child2 = null;\n\t\t\t}\n\t\t}\n\t}",
"public void removeShape(Shapes obj) {\n \tthis.listShapes.remove(obj);\n \t W.repaint();\n }",
"public void setParent(CarrierShape parent)\n\t{\n\t\tthis.parent = parent;\n\t}",
"public Shape detransform (Shape shape) {\n return inverse.createTransformedShape (shape);\n }",
"public void remove () { this.setAsDown(); n.remove(); }",
"public void destroy() {\n ViewGroup parent = (ViewGroup) getParent();\n if (parent != null) {\n parent.removeView(this);\n }\n mRevealerSpring.destroy();\n }",
"private void removeShape(Shape shapeToRemove) {\n\t\t// Find all Edges which come to this Shape\n\t\tVector<Edge> sources = getEdgeSource(shapeToRemove, shapes);\n\t\t\n\t\t// Find all Edges which come from this Shape\n\t\tVector<Edge> dests = getEdgeDest(shapeToRemove, shapes);\n\t\tshapes.remove(shapeToRemove);\n\t\t\n\t\t// Remove all Edge and JointPoint\n\t\tremoveEdgeJointPointSource(sources);\n\t\tremoveEdgeJointPointDest(dests);\n\t}",
"private void removeObject() {\n\t\tif(this.curr_obj != null) {\n this.canvas.uRemove(this.curr_obj);\n\t\t\tthis.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n\n this.curr_obj = null;\n }\n\t}",
"public void clear()\n\t{\n\t\tthis.getChildren().clear();\n\t}",
"synchronized void detachParent() {\n if (!isRoot()) {\n Neighbor neighbor = node.getParent();\n if (neighbor != null) {\n neighbor.detach();\n node.parent = null;\n }\n node.makeRoot();\n }\n }",
"@Override\n\tpublic void undo() {\n\t\tthis.list.delete(shape);\n\n\t}",
"protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearContainingParentType() {\n containingParentType = null;\n fieldSetFlags()[2] = false;\n return this;\n }",
"public void removeFromRoot(){\n Main.getRootPlayGround().getChildren().remove(imageView);\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearContainingParentId() {\n containingParentId = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public void remove(){\n\t\tsetBounds(800, 600, WIDTH, HEIGHT);\n\t}",
"public void setRemover() {\n Disposable d = Disposable.from(() -> parent.psm.remove(this));\n UNSAFE.putOrderedObject(this, REMOVE, d);\n }",
"@Override\n\tprotected void deactivateFigure() {\n\t\tthis.layer.remove(getFigure());\n\t\tgetConnectionFigure().setSourceAnchor(null);\n\t\tgetConnectionFigure().setTargetAnchor(null);\n\t}",
"public Builder clearRect() { copyOnWrite();\n instance.clearRect();\n return this;\n }",
"public void undo() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\teditor.selectPage((CompositeActor) parent);\n\t\t\t\tif (child instanceof NamedObj) {\n\t\t\t\t\tComponentUtility.setContainer(child, null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void erase()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.erase(this);\n }",
"public void clear() {\n\t\tshapes.clear();\n\t\tgroupedShapes.clear();\n\t\tthis.repaint();\n\t\tcounter = 0;\n\t\tnotifyObservers();\n\t}",
"@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}",
"public void remove(GuiElementBase element) {\n\t\tif (!children.remove(element))\n\t\t\tthrow new UnsupportedOperationException(\"The specified element is not a child of this container\");\n\t\tif (element.isPressed())\n\t\t\telement.getContext().setPressed(null);\n\t\telement.setContext(null);\n\t\telement.setParent(null);\n\t\tonChildRemoved(element);\n\t}",
"public void clear(){\r\n canvas.getGraphicsContext2D().clearRect(canvas.getWidth(),canvas.getHeight(),1,1);\r\n pane.getChildren().clear();\r\n }",
"public abstract void removedFromWidgetTree();",
"private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}",
"public void erase()\n {\n this.top = null;\n }",
"public void remove() {\n this.getNext().setPrev(this.getPrev());\n this.getPrev().setNext(this.getNext());\n }",
"public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }",
"@Override\n public MElementContainer<MUIElement> getParent()\n {\n return null;\n }",
"public void removeElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (children.contains(element)) {\n children.remove(element);\n updateChildrenAttribute();\n }\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public X removeAncestor(AncestorListener listener) {\n component.removeAncestorListener(listener);\n return (X) this;\n }",
"public Shape getClipShape() { return null; }",
"public void removeVertex();",
"public void dispose() {\n parent.removePropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n child.removePropertyChangeListener(PNode.PROPERTY_FULL_BOUNDS, this);\n parent.removeEdge(this);\n child.removeEdge(this);\n child.setParentEdge(null);\n }",
"public boolean removeFromRoot() {\n Views.removeFromParent(this);\n setVisibility(8);\n return true;\n }",
"protected void conditionallyRelayout()\n {\n ShapeView view = getParentView();\n \n if (view != null)\n {\n view.conditionallyRelayout();\n }\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearContainingParentLevel() {\n containingParentLevel = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"private void removeJoinShape(Shape shapeToRemove) {\n\t\t\n\t\tif (shapeToRemove instanceof JoinPoint) {\n\t\t\t\n\t\t\t// Source Edge mean edge which go to this Shape\n\t\t\tEdge source = (Edge) ((JoinPoint) shapeToRemove).getSource();\n\t\t\t\n\t\t\t// Destination Edge mean edge which go out this Shape\n\t\t\tEdge dest = (Edge) ((JoinPoint) shapeToRemove).getDest();\n\t\t\t\n\t\t\tshapes.remove(shapeToRemove);\n\t\t\t\n\t\t\t// Create Edge to join between two shapes\n\t\t\tEdge edge = (Edge) createEdge();\n\t\t\tedge.setSource(source.getSource());\n\t\t\tif (source.getSource() instanceof JoinPoint) {\n\t\t\t\t((JoinPoint)(source.getSource())).setDest(edge);\n\t\t\t}\n\t\t\t\n\t\t\tedge.setDest(dest.getDest());\n\t\t\t\n\t\t\tif (dest.getDest() instanceof JoinPoint) {\n\t\t\t\t((JoinPoint)(dest.getDest())).setSource(edge);\n\t\t\t}\n\t\t\t\n\t\t\taddShape(edge);\n\t\t\tif (source != null) {\n\t\t\t\tremoveEdge(source);\n\t\t\t}\n\t\t\tif (dest != null) {\n\t\t\t\tremoveEdge(dest);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public boolean remove() {\n if (parent == null) {\n throw new RuntimeException(ROOT_REMOVING_EXCEPTION_MESSAGE);\n }\n\n return parent.remove(value); // increments modificationCount!\n }",
"public Shape getShape() {\n return null;\n }",
"@Override\n\tpublic void removeLayoutComponent(Component comp) {\n\t\tif (center == comp)\n\t\t\tcenter = null;\n\t\telse\n\t\t\tedge.remove(comp);\n\t}",
"public void removeObjectOnlyFromCanvas(int ID) {\n super.removeObject(ID);\n }",
"@Override\r\n public void removeFromView() {\r\n currentAnimation.stop();\r\n super.removeFromView();\r\n }",
"public Path getParent(\n ) {\n return this.parent;\n }",
"public void delete() {\n this.root = null;\n }",
"@Override\n public void removeChildren()\n {\n children.clear();\n }",
"void removeArrow() {\n Drawer.getInstance().removeElement(this);\n Drawer.getInstance().removeElement(triangle);\n }",
"public void removeChild( ChildType child );",
"public void removeSelf(){\n\t\tif(prev != null){\n\t\t\tprev.next = next;\n\t\t\tnext.prev = prev;\n\t\t\tprev = null;\n\t\t\tnext = null;\n\t\t}\n\t}",
"public PApplet getParent() {\n\t\treturn parent;\n\t}",
"protected Shape getShape()\n {\n return null;\n }",
"public final synchronized void clearGeometry() {\n synchronized (this) {\n this.f718B8WBXPBCF2jGfUDZZU2zV5EYdqbUBu0lAZ0THCEqYyuE8VACR9dY7rDnwBIqh64T = null;\n this.f719hxYOFxFjLpN1maJuWNxUV40nExCGxsxkDPOTgtzMu4zlZCQb3bPlKsXo1SYJg6ME = null;\n }\n }",
"public void clearComplexRelationshipCoordinates()\n {\n if(this.isVisible())\n {\n this.coordinates = null;\n this.paint(this.getGraphics());\n }\n }",
"public void clear() {\n \tthis.listShapes.clear();\n }",
"public AVLNode delUnaryLeft() {\n\t\t\tchar side = this.parentSide();\n\t\t\tif (side == 'L') {\n\t\t\t\tthis.parent.setLeft(this.getLeft());\n\t\t\t} else { // side == 'R', 'N' cannot happen\n\t\t\t\tthis.parent.setRight(this.getLeft());\n\t\t\t}\n\t\t\tthis.left.setParent(this.parent);\n\t\t\tAVLNode parent = (AVLNode) this.parent;\n\t\t\tthis.parent = null;\n\t\t\tthis.left = null;\n\t\t\treturn parent;\n\t\t}"
] |
[
"0.85507977",
"0.7277675",
"0.7171752",
"0.6996903",
"0.6800991",
"0.6634578",
"0.6591687",
"0.64892524",
"0.6435004",
"0.6434384",
"0.63024133",
"0.6293103",
"0.62469566",
"0.62249154",
"0.620874",
"0.61866266",
"0.60979134",
"0.60933864",
"0.6045289",
"0.603305",
"0.60127944",
"0.5941145",
"0.5938128",
"0.5910898",
"0.58902365",
"0.58742577",
"0.58056104",
"0.5796622",
"0.5783475",
"0.5761857",
"0.5761617",
"0.5737098",
"0.57019603",
"0.56767076",
"0.5675853",
"0.5675853",
"0.5675853",
"0.5675853",
"0.5675853",
"0.5675853",
"0.5675853",
"0.5675523",
"0.5654188",
"0.5640628",
"0.56050617",
"0.55635124",
"0.5545911",
"0.55361646",
"0.5530136",
"0.5529051",
"0.55136776",
"0.55032676",
"0.54999536",
"0.5499939",
"0.54907656",
"0.548534",
"0.5476573",
"0.5461782",
"0.54433215",
"0.54355574",
"0.5425211",
"0.5418005",
"0.5393912",
"0.5388106",
"0.5361607",
"0.53610057",
"0.53607094",
"0.53418046",
"0.5320032",
"0.53151333",
"0.53146946",
"0.5300878",
"0.5298243",
"0.5291588",
"0.52648526",
"0.52565485",
"0.52545846",
"0.52507985",
"0.5248359",
"0.52440894",
"0.52362627",
"0.5233743",
"0.5233022",
"0.523085",
"0.52282125",
"0.52164674",
"0.5205946",
"0.5205625",
"0.5202263",
"0.5180178",
"0.51798254",
"0.5168015",
"0.51563793",
"0.5140527",
"0.5136746",
"0.51367295",
"0.5124049",
"0.51220506",
"0.5120055",
"0.5119724"
] |
0.7407576
|
1
|
Returns the index of this child in its parent.
|
public int indexOf() { return _parent!=null? _parent.indexOfChild(this) : -1; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }",
"default int childIndex() {\n // XXX this is expensive\n SemanticRegion<T> parent = parent();\n if (parent != null) {\n return parent.children().indexOf(this);\n }\n return -1;\n }",
"@Override\r\n\tpublic int getIndexOfChild(Object parent, Object child) {\r\n\t\t\r\n\t\treturn 0;\r\n\t}",
"int getAccessibleIndexInParent() {\n MenuContainer localParent = parent;\n if (!(localParent instanceof MenuComponent)) {\n // MenuComponents only have accessible index when inside MenuComponents\n return -1;\n }\n MenuComponent localParentMenu = (MenuComponent)localParent;\n return localParentMenu.getAccessibleChildIndex(this);\n }",
"public int getChildIndex() {\n return childIndex;\n }",
"public int getAccessibleIndexInParent() {\n return MenuComponent.this.getAccessibleIndexInParent();\n }",
"public int getAccessibleIndexInParent() {\n try {\n return unoAccessibleContext.getAccessibleIndexInParent();\n } catch (com.sun.star.uno.RuntimeException e) {\n return -1;\n } \n }",
"private int getIndexChild(BTreeNode<T> parent, BTreeNode<T> child) {\n for (int i = 0; i < 6; i++) {\n if (parent.getChild(i) == child) {\n return i;\n }\n }\n return -1;\n }",
"@Pure\n\tpublic int getChildIndex() {\n\t\treturn this.childIndex;\n\t}",
"private int getChildIndex(long descendent) {\n long destinationChild = ZQuad.getChildThatsAncestorOf(this.quad, descendent);\n // What is the descendancy of that child relative to this one?\n long descendancy = ZQuad.getDescendancy(destinationChild, 1);\n // The scalar component is what we're looking for.\n return (int) ZQuad.quadToScalar(descendancy, 1);\n }",
"public int getIndexOfChild(Object parent, Object child) {\r\n\t\tURI[] children = getChildren(parent);\r\n\t\tfor (int i = 0; i < children.length; i++) {\r\n\t\t\tint result = comp.compare((URI) child, children[i]);\r\n\t\t\tif (result == 0) {\r\n\t\t\t\treturn i;\r\n\t\t\t} else if (result < 0) {\r\n\t\t\t\treturn -i - 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -children.length - 1;\r\n\t}",
"public int index(AdapterNode child) {\n int count = childCount();\n\n for (int i = 0; i < count; i++) {\n AdapterNode n = this.child(i);\n\n if (child == n) {\n return i;\n }\n }\n\n return -1; // Should never get here.\n }",
"private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }",
"public int\tgetIndexOfChild(Object parent, Object child) {\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getIndexOfChild(child);\n }",
"private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }",
"private int parent(int index) {\n return index / 2;\n }",
"private int parent(int index) {\n return index / 2;\n }",
"private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"@objid (\"808e6a98-1dec-11e2-8cad-001ec947c8cc\")\n public final int getChildIndex(final GmNodeModel child) {\n return this.children.indexOf(child);\n }",
"public int indexOf( ChildType child );",
"private int parentIndex(int i) {\n return i / 2;\n }",
"public int getIndexOfChild(Object parent, Object child) {\n\t\tint indexOfChild = -1;\n\n\t\tif (parent instanceof Directory) {\n\t\t\tDirectory dir = (Directory) parent;\n\t\t\tIterator<File> i = dir.getIterator();\n\t\t\tboolean found = false;\n\n\t\t\tint index = 0;\n\t\t\twhile (!found && i.hasNext()) {\n\t\t\t\tFile current = i.next();\n\t\t\t\tif (child == current) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tindexOfChild = index;\n\t\t\t\t} else {\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn indexOfChild;\n\t}",
"public int getChildNum() {\r\n\t\treturn childNum;\r\n\t}",
"public int getChildNum() {\n return childNum;\n }",
"public int getIndexInSection()\n\t{\n\t\tfinal TiViewProxy parent = getParent();\n\n\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\treturn section.getRowIndex(this);\n\t\t}\n\n\t\treturn -1;\n\t}",
"public int findExpandedItemIndex() {\n int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = getChildAt(i);\n if (((LayoutParams) child.getLayoutParams()).isOpen) {\n return i;\n }\n }\n return -1;\n }",
"private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}",
"public int Parent() { return this.Parent; }",
"public int getParent();",
"public int getParentCounter(){\r\n\t\tint returning = parentCounter;\r\n\t\tparentCounter++;\r\n\t\treturn returning;\r\n\t}",
"int getParentMonsterIndex();",
"public int indexOf(Shape shape)\n {\n // returns the index of the child\n return children.indexOf(shape);\n }",
"protected final int getChildIndex(ViewLayoutState child) {\n return getChildren().getChildIndex(child);\n }",
"private int WCIT(TFNode child) throws TFNodeException {\r\n if (child.getParent() == null) {\r\n throw new TFNodeException(\"Node has no parent\");\r\n }\r\n\r\n TFNode parent = child.getParent();\r\n for (int i = 0; i <= parent.getNumItems(); i++) {\r\n if (child == parent.getChild(i)) {\r\n return i;\r\n }\r\n }\r\n throw new TFNodeException(\"Node is not a child of it's parent\");\r\n }",
"public int getEmptyChild() {\r\n\t\t\tfor (int i = 0; i < children.size(); i++) {\r\n\t\t\t\t//System.out.println(\"Checking child #\" + i + \"\\t\\tChild: \" + getChild(i).debug());\r\n\t\t\t\tif (getChild(i).getData().size() == 0)\r\n\t\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn -1;\r\n\t\t}",
"public int getIndex()\n {\n return m_index;\n }",
"public final int child ()\r\n {\r\n return _value.child();\r\n }",
"public int index() {\n\t\treturn this.index;\n\t}",
"public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}",
"public int getIndex() {\r\n return index;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"public int getParentMonsterIndex() {\n return parentMonsterIndex_;\n }",
"public int getChildNumber(Key key) {\r\n\t\t\tint ret = -1;\r\n\t\t\t\r\n\t\t\tchildren.reset();\r\n\t\t\t//find child position\r\n\t\t\tfor (int i = 0; i < children.size(); i++) {\r\n\t\t\t\tif (children.get().get(key) != null) {\r\n\t\t\t\t\tret = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tchildren.next();\r\n\t\t\t}\r\n\t\t\tchildren.reset();\r\n\t\t\t\r\n\t\t\treturn ret;\r\n\t\t}",
"int getAccessibleChildIndex(MenuComponent child) {\n return -1; // Overridden in subclasses.\n }",
"public int getIndex() {\n return mIndex;\n }",
"protected int parent(int i) {\n return (i - 1) >> 1;\n }",
"public int getIndex() {\r\n\t\treturn index;\r\n\t}",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n\t\treturn this.mIndex;\n\t}",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return this.index;\n }",
"public int getIndex() {\n return this.index;\n }",
"public final int getIndex(){\n return index_;\n }",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int parent(int i){\n\t\tif(i == 0) return Integer.MIN_VALUE;\n\t\treturn (i-1)/2;\n\t}",
"public int getIndex()\n {\n return index;\n }",
"public int getIndex() {\n\t\treturn this.index;\n\t}",
"public int getIndex() {\n \t\treturn index;\n \t}",
"public int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex() {\n\t\treturn index;\n\t}",
"public int getParentMonsterIndex() {\n return parentMonsterIndex_;\n }",
"public int getIndex()\n {\n return index;\n }",
"public Integer index() {\n return this.index;\n }",
"public int getIndex() { return this.index; }",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}",
"public FileIndex getParent()\n {\n return( parent );\n }",
"int indexOfChild(TreeNodeValueModel<T> child);",
"private int parent(int i) {\n double d = (double) i;\n d = Math.floor((d - 1) / 2);\n return (int) d;\n\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"protected static int parent(int i){\n return (i-1)/2;\n }",
"public IntColumn getParentId() {\n return delegate.getColumn(\"parent_id\", DelegatingIntColumn::new);\n }",
"private int getParentIndex(int index){\n return (index-1) >> 1;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"private int parent(int child) {\n\t\treturn (child-1)/2;\n\t}",
"private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }",
"public Integer getIndex() {\n return index;\n }"
] |
[
"0.8598563",
"0.807231",
"0.7751892",
"0.76042134",
"0.753949",
"0.74596727",
"0.74384314",
"0.7318988",
"0.7315462",
"0.7211809",
"0.71640724",
"0.7091706",
"0.70270663",
"0.6993283",
"0.6957531",
"0.6914056",
"0.6914056",
"0.68614584",
"0.68592966",
"0.6828057",
"0.67761904",
"0.6671579",
"0.6671415",
"0.66486526",
"0.6634719",
"0.66213703",
"0.6621224",
"0.6620479",
"0.66185635",
"0.6617634",
"0.6609741",
"0.65988314",
"0.6598278",
"0.6588655",
"0.6583405",
"0.6563157",
"0.65582675",
"0.646468",
"0.6457409",
"0.6451342",
"0.6451078",
"0.644895",
"0.6441033",
"0.6435054",
"0.64300007",
"0.642503",
"0.6423131",
"0.64229465",
"0.64034194",
"0.63986135",
"0.63946265",
"0.63946265",
"0.63946265",
"0.63946265",
"0.63946265",
"0.63927895",
"0.63922745",
"0.63922745",
"0.63894427",
"0.6383836",
"0.6383836",
"0.6383836",
"0.63797015",
"0.6369312",
"0.63622123",
"0.6360615",
"0.6359347",
"0.6359347",
"0.6359347",
"0.63557994",
"0.6354252",
"0.6352485",
"0.63518006",
"0.6348757",
"0.6348258",
"0.63476264",
"0.6336179",
"0.63302493",
"0.63302493",
"0.6319946",
"0.6313031",
"0.630663",
"0.63056797",
"0.63056797",
"0.63056797",
"0.63056797",
"0.63056797",
"0.63056797",
"0.6303806",
"0.6287098",
"0.6280905",
"0.62675756",
"0.62675756",
"0.62675756",
"0.62675756",
"0.62675756",
"0.62675756",
"0.62662137",
"0.6255773",
"0.6246673"
] |
0.78895986
|
2
|
Returns the child count.
|
public int getChildCount() { return 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int childCount(){\n return this.children.size();\n }",
"public int getChildCount() {\r\n if (_children == null) {\r\n return 0;\r\n }\r\n return _children.size();\r\n }",
"public int getChildCount() {\n return this.children.size();\n }",
"public int getChildCount () {\n return childCount;\n }",
"public int countChildren() {\n return this.children.size();\n }",
"public int countChildren() {\n return this.children.size();\n }",
"int getChildCount();",
"public int getChildCount();",
"public Integer GetNumOfChild() {\n\t\treturn this.ChildSMILES.size();\n\t}",
"@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(20)\n\tint childrenCount();",
"public int numberOfChildren() {\n\t\tif(children == null) return 0;\n\t\telse return children.size();\n\t}",
"public int getChildCount() {return children.size();}",
"abstract long calculateChildCount() throws TskCoreException;",
"public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }",
"@Override\n public int getNumChildren() {\n\t return this._children.size();\n }",
"public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }",
"public abstract int getNumChildren();",
"public int childListCount() // 페이징, 검색 뺐음, A반 기준 -> 나중에 반 생성 시 변경하기. ★학부모 정보 제외함 (회원가입안할 시 에러)\r\n\t\t\tthrows Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tint result = 0;\r\n\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\r\n\t\t\tpstmt = conn.prepareStatement(\"select count(child_num) from child where child_class = 'A'\");\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tresult = rs.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (rs != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (pstmt != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (conn != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }",
"public StringWithCustomFacts getNumChildren() {\n return numChildren;\n }",
"@Override\n\tpublic int getChildrenNum() {\n\t\treturn children.size();\n\t}",
"public int childrenSize()\r\n\t{\r\n\t\treturn this.children.size();\r\n\t}",
"@FameProperty(name = \"numberOfChildren\", derived = true)\n public Number getNumberOfChildren() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }",
"public int getTotalChildren() {\n\t\treturn _nTotalChildren;\n\t}",
"int childrenSize();",
"public int getLengthOfChildren() {\n int length = 0;\n IBiNode childTmp;\n\n if (this.child != null) {\n // length of first child\n length += this.child.getLength();\n\n childTmp = this.child.getSibling();\n while (childTmp != null) {\n // length of 2nd - nth children\n length += childTmp.getLength();\n childTmp = childTmp.getSibling();\n }\n\n }\n\n return length;\n }",
"public int getChildCount() { return data.length; }",
"@Override\n public final int size() {\n return children.size();\n }",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"@Override\r\n\tpublic int getChildCount(Object parent) {\r\n\t\r\n\t\treturn 0;\r\n\t}",
"public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }",
"public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}",
"public int getChildCount(Object parent) {\n\t\tint result = 0;\n\t\tFile file = (File) parent;\n\n\t\tif (file instanceof Directory) {\n\t\t\tDirectory directory = (Directory) file;\n\t\t\tresult = directory.getNumberOfChildren();\n\t\t}\n\t\treturn result;\n\t}",
"public int\tgetChildCount(Object parent) {\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getChildCount();\n }",
"@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}",
"public int getAccessibleChildrenCount() {\n try {\n return unoAccessibleContext.getAccessibleChildCount();\n } catch (com.sun.star.uno.RuntimeException e) {\n return 0;\n }\n }",
"@Override\n\tpublic int size() {\n\t\tint s = valCount; // saves value of current node\n\t\tfor (int i = 0; i < childCount; ++i) { // then checks all children\n\t\t\ts += children[i].size();\n\t\t}\n\t\treturn s;\n\t}",
"@Override\n public int getChildrenCount(String name)\n {\n return children.getSubNodes(name).size();\n }",
"protected int numChildren() {\r\n return 3;\r\n }",
"public int getChildCount(V vertex);",
"public int size() {\n return tree.count();\n }",
"@Override\n public int getChildrenCount(int groupPosition)\n {\n return children.get(headers.get(groupPosition)).size();\n }",
"public int dataCount() {\n return this.root.dataCount();\n }",
"@Override\n public int getChildrenCount(int groupPosition) {\n return children[groupPosition].length;\n }",
"@Override\n public int getChildrenCount(int groupPosition) {\n return getGroup(groupPosition).getChildrenCount();\n }",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"int getNumberOfChildren(int nodeID){\n check(nodeID);\n return nodes_[nodeID].size_;\n }",
"public int getAncestorCount() { return _parent!=null? getParent().getAncestorCount() + 1 : 0; }",
"int getChildrenCount(int groupPosition);",
"public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }",
"private int countChildElements(final Node parent)\r\n {\r\n NodeList listOfChildren = parent.getChildNodes();\r\n return listOfChildren.getLength();\r\n }",
"public void setChildCount (int childCount) {\n this.childCount = childCount;\n }",
"public int size() {\n\t\treturn root.count();\n\t}",
"public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }",
"@Override\n\tpublic int getChildrenCount(int groupPosition) {\n\t\treturn listChildren.get(listTitles.get(groupPosition)).size();\n\t}",
"private int numChildren(int index){\n\t\t\n\t\tint children = 0;\n\t\t\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 1] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 2] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}",
"public Integer count() {\n return this.bst.count();\n }",
"@Override\n\tpublic Long findChildEntityCount(String entityId) {\n\t\treturn parentEntityNodeRepository.countByParentIdAndActive(entityId, true);\n\t}",
"public int countNodes(){\r\n \treturn count(root);\r\n }",
"public int nodeCount() {\n return this.root.nodeCount();\n }",
"public final int size() {\r\n return sequentialSize(root);\r\n }",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int getParentEntryCount() {\n if (parent != null) {\n return parent.getEntryCount();\n }\n return 1;\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"public int size() {\n return size(root);\n }",
"public int size() {\n return size(root);\n }",
"public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}",
"public int order()\n\t{\n\t\treturn null == _children ? 0 : _children.size();\n\t}",
"private int getNumberOfChildren(String elemId) {\n return selenium.getXpathCount(\"//*[@id='\" + elemId + \"']/*\").intValue();\n }",
"public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }",
"public int getNodeCount() {\n return dataTree.getNodeCount();\n }",
"public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}",
"public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }",
"public int nodeCount(){\r\n\t\treturn size;\r\n\t}",
"public @Override int getViewCount() {\n return getChildren().getChildCount();\n }",
"int getParentIdCount();",
"int numChildren(Position<E> p) throws IllegalArgumentException;",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }",
"public int size() {\n\t\tif (this.root == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn this.root.getSize(); \n\t}",
"public int count() {\n return this.count;\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }",
"public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }",
"public int size() \n {\n return size(root);\n }",
"public abstract int getSelfCount();",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public int size() {\n if(root == null){\n return 0;\n }\n else{\n return 1 + size(root.lc) + size(root.rc);\n }\n }",
"public final int child ()\r\n {\r\n return _value.child();\r\n }",
"public int size(){\n return size(root);\n }",
"public int count() {\n\t\treturn count;\n\t}",
"public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }",
"public int getChildCount(int groupPosition) {\n if (groupPosition < mGroupDataList.size()) {\n return mChildDataList.get(groupPosition) == null ? 0 : mChildDataList.get(groupPosition).size();\n }\n return 0;\n }",
"@FameProperty(name = \"numberOfDeadChildren\", derived = true)\n public Number getNumberOfDeadChildren() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }",
"public java.math.BigInteger getCount()\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(COUNT$8);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }",
"public int countNodes()\n {\n return countNodes(root);\n }",
"public int countNodes()\n {\n return countNodes(root);\n }",
"public int getChildNum() {\n return childNum;\n }"
] |
[
"0.8393179",
"0.83554953",
"0.8327879",
"0.83100337",
"0.82807887",
"0.8272593",
"0.8210147",
"0.8138694",
"0.81039727",
"0.8056368",
"0.80562264",
"0.8035168",
"0.78979105",
"0.78608686",
"0.78474003",
"0.7787983",
"0.77243227",
"0.7660538",
"0.7601835",
"0.7601175",
"0.7600774",
"0.75361615",
"0.7528491",
"0.74510866",
"0.74221987",
"0.7413234",
"0.73629165",
"0.7347317",
"0.7325252",
"0.728993",
"0.72487897",
"0.72483015",
"0.72243154",
"0.7183578",
"0.7141579",
"0.7138092",
"0.70848423",
"0.706429",
"0.70574087",
"0.70357007",
"0.6983773",
"0.69792515",
"0.69349456",
"0.6910877",
"0.6895346",
"0.6865353",
"0.68620914",
"0.6860215",
"0.68498904",
"0.68341213",
"0.6826879",
"0.68150675",
"0.6800649",
"0.6792043",
"0.6749212",
"0.67189914",
"0.6673823",
"0.66670686",
"0.6643962",
"0.66355675",
"0.66273266",
"0.6623918",
"0.661026",
"0.661026",
"0.660267",
"0.65902996",
"0.65821064",
"0.65821064",
"0.6575674",
"0.65621686",
"0.6543957",
"0.6540467",
"0.6537131",
"0.6516875",
"0.6507391",
"0.6502096",
"0.6492595",
"0.6484887",
"0.64783657",
"0.6477256",
"0.64769197",
"0.6463035",
"0.6462832",
"0.64571273",
"0.6448942",
"0.64401937",
"0.6436604",
"0.6436331",
"0.64343786",
"0.6426034",
"0.6422451",
"0.6413638",
"0.6412682",
"0.64009315",
"0.6397111",
"0.6395278",
"0.6391753",
"0.6388692",
"0.6388692",
"0.63883805"
] |
0.7265938
|
30
|
Returns the child at given index.
|
public RMShape getChild(int anIndex) { return null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ChildType getChildAt( int index );",
"public Node getChild(int index) {\n\t\treturn this.children.get(index);\n\t}",
"@Override public BTreeNode getChild(int index) {\n return this.children[index];\n }",
"public FileNode getChildAt(int index) {\r\n return children.get(index);\r\n }",
"public XMLElement getChild(int index)\n/* */ {\n/* 545 */ return (XMLElement)this.children.elementAt(index);\n/* */ }",
"public ParseTreeNode getChild(final int index) {\r\n return _children.get(index);\r\n }",
"@Override\n public ConfigurationNode getChild(int index)\n {\n return children.getNode(index);\n }",
"public PlanNode getChild( int index ) {\n return this.children.isEmpty() ? null : this.children.get(index);\n }",
"public TreeNode getChildAt(int childIndex)\n {\n return mChildren[childIndex];\n }",
"public Object\tgetChild(Object parent, int index) {\t\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getChild(index);\n }",
"ComponentAgent getChild(int index);",
"public TreeItem getChild(int i) { return (TreeItem)children[i]; }",
"@Override\n\tpublic Component getChild(int index) {\n\t\treturn _childComponents.get(index);\n\t}",
"TreeNodeValueModel<T> child(int index);",
"public AdapterNode child(int searchIndex) {\n org.w3c.dom.Node node = domNode.getChildNodes().item(searchIndex);\n\n if (FormEditor.compress) {\n TreeSet ChildSet = new TreeSet(new AdapterNodeComparator());\n org.w3c.dom.NodeList childNodes = domNode.getChildNodes();\n\n for (int i = 0; i < childNodes.getLength(); i++) {\n node = childNodes.item(i);\n\n if ((node.getNodeType() == GenerateListData.ELEMENT_TYPE) &&\n treeElement(node.getNodeName())) {\n ChildSet.add(new AdapterNode(node));\n }\n }\n\n Object obj = ChildSet.toArray()[searchIndex];\n\n return (AdapterNode) obj;\n\n // Return Nth displayable node\n\n /**\n * Old Code\n * int elementNodeIndex = 0;\n * for (int i=0; i<domNode.getChildNodes().getLength(); i++) {\n * node = (domNode.getChildNodes()).item(i);\n * if (node.getNodeType() == GenerateListData.ELEMENT_TYPE\n * && treeElement( node.getNodeName() )\n * && elementNodeIndex++ == searchIndex) {\n * break;\n * }\n *\n * }*/\n }\n\n return new AdapterNode(node);\n }",
"public PropertiesOfView getPOChildAt(int index) {\n return children[index];\n }",
"@Override\n\tpublic void getChild(int index) {\n\t\t\n\t}",
"public GrammarComponent get(int index) {\n return children.get(index);\n }",
"public HTMLComponent getChild(int i);",
"public Shape shapeAt(int index) throws IndexOutOfBoundsException\n {\n // Return the child at index\n return children.get(index);\n }",
"public Object getChild(Object parent, int index) {\n\t\tObject result = null;\n\n\t\tif (parent instanceof Directory) {\n\t\t\tDirectory dir = (Directory) parent;\n\t\t\tresult = dir.getFile(index);\n\t\t}\n\t\treturn result;\n\t}",
"protected final ViewLayoutState getChild(int index) {\n return getChildren().getChild(index);\n }",
"public WSLNode getChild(int i) {return (WSLNode) children.elementAt(i);}",
"private int firstChild(int index) {\n // Formula to calculate the index of the first child of parent node\n return d * index + 1;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public TreeNode getChildAt(int i) { return data[i]; }",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return children[groupPosition][childPosition];\n }",
"public int getChildIndex() {\n return childIndex;\n }",
"public final Chapter chapterAt(int index) {\n return children.get(index);\n }",
"@Override\n public Object getChild(int groupPos, int childPos) {\n return item.get(groupPos).elements.get(childPos);\n }",
"@Override\n\tpublic Component getChild(int i) {\n\t\treturn list.get(i);\n\t}",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }",
"public Component getChild(int i){\n return null;\n }",
"Object getChild(int groupPosition, int childPosition);",
"private int rightChild(int index) {\n return index * 2 + 1;\n }",
"private Node getChild(K key) {\r\n\r\n // binarySearch for the correct index\r\n int correct_place = Collections.binarySearch(keys, key);\r\n int child_indexing;\r\n if (correct_place >= 0) {\r\n child_indexing = correct_place + 1;\r\n } else {\r\n child_indexing = -correct_place - 1;\r\n }\r\n\r\n return children.get(child_indexing);\r\n }",
"public DomainElement elementForIndex(int index);",
"private int[] getChildren(int index) {\r\n int[] children = new int[] {\r\n 2 * index + 1,\r\n 2 * index + 2\r\n };\r\n return children;\r\n }",
"@Pure\n\tpublic int getChildIndex() {\n\t\treturn this.childIndex;\n\t}",
"public ASTNode getChild(int i)\n\t{\n\t\treturn children.get(i);\n\t}",
"@Override\n\tpublic Object retrieve(int index) throws IndexOutOfBoundsException {\n\n\n\t\t// Check for valid size\n\t\tif (index < 0 || index >= this.size()) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\n\t\t// set the position of the current node to the head\n\t\tNode current = head;\n\n\t\t// move through the list\n\t\tif (index == 0) {// head\n\t\t\treturn head.getElement();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(i == index) {\n\t\t\t\treturn current.getElement();\n\t\t\t}\n\t\t\t\n\t\t\tcurrent = current.getNext(); // set the node to the next node\n\t\t}\n\n\t\t// return the element in the node\n\t\treturn null;\n\t}",
"public FSMNode get(int index) {\n return get(root, index);\n }",
"public AccessibilityNodeInfo getChild(int index) {\n/* 196 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public E get(int index)\n { \n if(index >= size() || index < 0)\n {\n return null; \n }\n Node<E> n = getNode(index);\n return n.getValue();\n }",
"public Object get(int index) {\r\n return entry(index).element;\r\n }",
"public T get(int index) {\r\n return getNodeAtIndex(index).getData();\r\n }",
"Object get(int index);",
"Object get(int index);",
"@Override\n public E get(int index) throws IndexOutOfBoundsException\n {\n if(index > size() - 1 || index < 0)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n return currNode.getElement(); \n }",
"private int parent(int index) {\n return index / 2;\n }",
"private int parent(int index) {\n return index / 2;\n }",
"public Object get(final int index) {\n return super.get(index);\n }",
"public Item get(int index) {\n StuffNode ptr = sentinel;\n int ind = 0;\n if ((index + 1 > this.size()) || this.isEmpty() ) {\n return null;\n }\n while (ind <= index) {\n ptr = ptr.next;\n ind += 1;\n }\n return ptr.item;\n }",
"public Node getChild(int childNum) {\r\n\t\t\tif (childNum > children.size()) return null;\r\n\t\t\treturn children.get(childNum);\r\n\t\t}",
"@Override\n public Object getChild(int groupPosition, int childPosition) {\n return this.child.get(this.header.get(groupPosition)).get(childPosition);\n }",
"@Override\n public Object getChild(int groupPosition, int childPosition)\n {\n return children.get(headers.get(groupPosition)).get(childPosition);\n }",
"Node getChild(K key) {\r\n\t\t\tint loc = Collections.binarySearch(keys, key);\r\n\t\t\tint childIndex = loc >= 0 ? loc + 1 : -loc - 1;\r\n\t\t\treturn children.get(childIndex);\r\n\t\t}",
"public Object get(int index) {\n isValidIndex(index);\n return getNode(index).data;\n }",
"private E getElement(int index) {\n if (index >= contents.size()) {\n return null;\n } else {\n return contents.get(index);\n }\n }",
"@Override\n\t\tpublic Object getChild(int groupPosition, int childPosition) {\n\t\t\treturn childPosition;\n\t\t}",
"public E get(int index)\r\n {\r\n checkValidIndex(index);\r\n return listIterator(index).next();\r\n }",
"public Node getChild(int quadrant) {\n\t\t\tif (quadrant < 0 || quadrant > 3) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t} else {\n\t\t\t\treturn children[quadrant];\n\t\t\t}\n\t\t}",
"Node getChild(String childID) throws IllegalAccessException;",
"private int leftChild(int index) {\n return index * 2;\n }",
"public FileNode removeChildAt(int index) {\r\n childNum--;\r\n \treturn children.remove(index);\r\n }",
"public T get(int index) {\n\t\tint at = 1;\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (at == index) {\n\t\t\t\treturn current.value;\n\t\t\t}\n\t\t\tat++;\n\t\t}\n\t\t// We couldn't find it, throw an exception!\n\t\tthrow new IndexOutOfBoundsException();\n\t}",
"public BPTreeNodeItem getItem(int index);",
"public Object get(int index);",
"public Object get(int index);",
"private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }",
"public E get(int index) {\n\t\tcheckBounds(index);\r\n\t\treturn getNode(index).getData();\r\n\t}",
"@Override\n public final Chapter get(int index) {\n return chapterAt(index);\n }",
"public Object get(int index) {\n Node answer = first;\n for (int i = 0; i < index; i++) {\n answer = answer.next;\n }\n return answer.data;\n }",
"public E get(int index) {\n\t\tif (index < 0 || index >= mSize)\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\treturn getNode(index).data;\n\t}",
"public T get(int index) {\n return list.get(index);\n }",
"public Car getChild(int i){\n\t\t\treturn null;\n\t\t}",
"T getElementFromIndex(int index) throws ListException;",
"private int kthChild(int index, int k) {\n return 2 * index + k; // 2 = binary heap\n }",
"public Node getChild();",
"public int get(int index);",
"private Element getElement(int index) {\n if (index < this._size / 2) {\n return this.getElementForwards(index);\n } else {\n return this.getElementBackwards(index);\n }\n }",
"@Override\n public T get(int index){\n if(isEmpty()){\n return null;\n } else{ \n DLLNode<T> current = first;\n for(int i = 0; i < index - 1; i++){\n current = current.successor;\n }\n return current.element;\n }\n }",
"public E get(int index)\n\t{\n\t\treturn contents[index];\n\t}",
"private int getIndexChild(BTreeNode<T> parent, BTreeNode<T> child) {\n for (int i = 0; i < 6; i++) {\n if (parent.getChild(i) == child) {\n return i;\n }\n }\n return -1;\n }",
"public Path child(String name, boolean isIndex) {\n String[] newParts = new String[parts.length + 1];\n for (int i = 0; i < parts.length; i++) {\n newParts[i] = parts[i];\n }\n newParts[newParts.length - 1] = name;\n return new Path(newParts, isIndex);\n }",
"public E get(int index) {\r\n return items.get(index);\r\n }",
"private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}",
"public U get(int index) throws IndexOutOfBoundsException {\n\t\t\tif (index >= mLength || index < 0) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Supplied index is invalid.\");\n\t\t\t}\n\n\t\t\treturn getNodeAtIndex(index).getValue();\n\t\t}",
"public T get(int index) {\n T result = null;\n if (index >= 0 && index < this.container.length) {\n result = (T) this.container[index];\n }\n return result;\n }",
"@Override\n\tpublic NumberInterface getChild(int n) {\n\t\treturn numbers.get(n);\n\t}",
"public BTreeNode<E> getChild(int pos) {\n\t\tif (pos >= 0 && pos < children.size()) {\n\t\t\treturn children.get(pos);\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"private static int rightChildIndex(int index) {\n\t\treturn (index * 2) + 2;\n\t}",
"public E get ( int index)\n {\n if (index < 0 || index >= size) {\n throw new\n IndexOutOfBoundsException(Integer.toString(index));\n }\n Node<E> node = getNode(index);\n return node.data;\n }",
"private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }",
"public CoreResourceHandle get(int index) {\n if (index >= 0 && index < doSize()) {\n return doGet(index);\n }\n throw new IndexOutOfBoundsException();\n }",
"public Glyph child(int position) throws OperationNotSupportedException, IndexOutOfBoundsException {\n throw new OperationNotSupportedException(\"This Glyph cannot have children\");\n }"
] |
[
"0.831099",
"0.80392647",
"0.7885038",
"0.78257406",
"0.7780144",
"0.7769642",
"0.7549073",
"0.74927485",
"0.7480119",
"0.7447567",
"0.740833",
"0.74002266",
"0.7372111",
"0.7236752",
"0.721904",
"0.7197995",
"0.71914643",
"0.71420574",
"0.7129225",
"0.70662534",
"0.69910055",
"0.6989828",
"0.6941429",
"0.6788038",
"0.67537576",
"0.67367166",
"0.67048407",
"0.66659147",
"0.6632477",
"0.6627116",
"0.66022724",
"0.65728664",
"0.6566341",
"0.65645313",
"0.6564015",
"0.65538883",
"0.6551836",
"0.6547748",
"0.6543701",
"0.6539277",
"0.65390486",
"0.65332806",
"0.6529695",
"0.6520931",
"0.6520767",
"0.6512375",
"0.6511792",
"0.64975315",
"0.64975315",
"0.64839816",
"0.646459",
"0.646459",
"0.6463858",
"0.64625466",
"0.6460128",
"0.6447995",
"0.6441945",
"0.64248896",
"0.640753",
"0.64052206",
"0.640225",
"0.64019394",
"0.64019173",
"0.6392668",
"0.6379759",
"0.63648796",
"0.6358928",
"0.6345769",
"0.6345249",
"0.6345249",
"0.634286",
"0.6336632",
"0.6335248",
"0.6333666",
"0.6328198",
"0.6307663",
"0.6300205",
"0.6292702",
"0.62896264",
"0.6282946",
"0.6270151",
"0.62665343",
"0.6265316",
"0.6264019",
"0.62592655",
"0.62564164",
"0.62559736",
"0.62530315",
"0.62512225",
"0.62497413",
"0.624619",
"0.62452966",
"0.6244728",
"0.6244728",
"0.6244728",
"0.62432784",
"0.6240187",
"0.62320435",
"0.62271553",
"0.6222111"
] |
0.6902977
|
23
|
Returns the children list.
|
public List <RMShape> getChildren() { return Collections.emptyList(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<String> children() {\n return this.children;\n }",
"public ArrayList getChildren()\n {\n return children;\n }",
"public List<PafDimMember> getChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = null;\r\n\t\t\r\n\t\t// If no children are found, return empty array list\r\n\t\tif (children == null) {\r\n\t\t\tchildList = new ArrayList<PafDimMember>();\r\n\t\t} else {\r\n\t\t\t// Else, return pointer to children\r\n\t\t\tchildList = children;\r\n\t\t}\r\n\t\treturn childList;\r\n\t}",
"public String[] listChildren()\n/* */ {\n/* 519 */ int childCount = getChildCount();\n/* 520 */ String[] outgoing = new String[childCount];\n/* 521 */ for (int i = 0; i < childCount; i++) {\n/* 522 */ outgoing[i] = getChild(i).getName();\n/* */ }\n/* 524 */ return outgoing;\n/* */ }",
"public List<String> getChildren() {\n\t\treturn null;\n\t}",
"public Collection<ChildType> getChildren();",
"public JodeList children() {\n return new JodeList(node.getChildNodes());\n }",
"public ParseTree[] getChildren() {\n\t\treturn children;\n\t}",
"public List<Node> getChildren() {\r\n\t\t\tchildren.reset();\r\n\t\t\treturn children;\r\n\t\t}",
"public ArrayList<ExpandableListItems_Child> getChildren()\n {\n return children;\n }",
"public Vector getChildren()\r\n\t{\r\n\t\treturn m_children;\r\n\t}",
"public String getChildren() {\n return children;\n }",
"protected String[] doListChildren()\n {\n return (String[])m_children.toArray( new String[ m_children.size() ] );\n }",
"public String getChildren() {\n\t\treturn children;\n\t}",
"public List<TreeNode> getChildren ()\r\n {\r\n if (logger.isFineEnabled()) {\r\n logger.fine(\"getChildren of \" + this);\r\n }\r\n\r\n return children;\r\n }",
"public ArrayList<Node> getChildren(){\n return children;\n }",
"public ArrayList<Node> getChildren() { return this.children; }",
"public ArrayList<Node> getChildren() {\n return children;\n }",
"public java.util.List<BinomialTree<KEY, ITEM>> children()\n\t{\n\t\treturn _children;\n\t}",
"protected final synchronized Iterator<T> children() {\n if( children == null ) {\n children = Collections.emptyList();\n }\n \n return children.iterator();\n }",
"public ArrayList<LexiNode> getChilds(){\n\t\treturn childs;\n\t}",
"public List<EntityHierarchyItem> children() {\n return this.innerProperties() == null ? null : this.innerProperties().children();\n }",
"public List<HtmlMap<T>> getChildren()\n\t{\n\t\treturn m_children;\n\t}",
"public Vector getChildren() {\n return this.children;\n }",
"public List<TreeNode> getChildren() {\n\t\treturn children;\n\t}",
"public Human[] getChildren() {\n return children;\n }",
"public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }",
"public List<ChronologElement> getChildren() {\r\n return children;\r\n }",
"@Override\n\tpublic List<Node> chilren() {\n\t\treturn children;\n\t}",
"public ObjectList<DynamicModelPart> getChildren() {\n return this.children;\n }",
"public List<RealObject> getChildren();",
"List<Node<T>> children();",
"public ArrayList<Node> getList(){\n \treturn this.children;\n }",
"@DISPID(4)\n\t// = 0x4. The runtime will prefer the VTID if present\n\t@VTID(10)\n\tcom.gc.IList children();",
"public ResultMap<BaseNode> listChildren();",
"public List<XML2JSONObject> getChildren() {\r\n return _childs;\r\n }",
"protected abstract List<T> getChildren();",
"public ArrayList<PiptDataElement> getChildren()\n {\n\treturn children;\n }",
"public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}",
"public Iterator<ParseTreeNode> children() {\r\n if ((_children == null) || (_children.size() == 0)) {\r\n return NULL_ITERATOR;\r\n }\r\n return _children.iterator();\r\n }",
"@Override\r\n\tpublic List<TreeNode> getChildren() {\n\t\tif(this.children==null){\r\n\t\t\treturn new ArrayList<TreeNode>();\r\n\t\t}\r\n\t\treturn this.children;\r\n\t}",
"@Nonnull\n Iterable<? extends T> getChildren();",
"public Node[] getChildren(){return children;}",
"public List<GuiElementBase> getChildren()\n\t\t{ return Collections.unmodifiableList(children); }",
"public Node[] getChildren() {\n\t\treturn children.toArray(new Node[0]);\n\t}",
"public SeleniumQueryObject children() {\n\t\treturn ChildrenFunction.children(this, elements);\n\t}",
"public Collection<VisualLexiconNode> getChildren() {\n \t\treturn children;\n \t}",
"public List<TWidget> getChildren() {\n return children;\n }",
"public @NonNull List<@NonNull Node<@Nullable T>> getChildren() {\n return Collections.unmodifiableList(this.children);\n }",
"public String[] getChildList() {\n if (this.children == null) {\n return this.pointsByChild.keySet().toArray(new String[this.pointsByChild.size()]);\n } else {\n return this.children.clone();\n }\n }",
"@Override\n\tpublic TreeNode[] getChildren() {\n\t\treturn this.children ;\n\t}",
"public ArrayList<BTreeNode<E>> getChildren() {\n\t\treturn children;\n\t}",
"ArrayList<Expression> getChildren();",
"public List<FileNode> getChildren() {\r\n return this.children;\r\n }",
"public IStatus[] getChildren() {\n\t\treturn adaptee.getChildren();\n\t}",
"public List<? extends Resource> getChildren() {\n\t\tLOGGER.debug(\"Get Children \");\n\t\tfinal Iterator<Content> children = content.listChildren().iterator();\n\t\treturn ImmutableList.copyOf(new PreemptiveIterator<SparseMiltonContentResource>() {\n\n\t\t\t\t\tprivate SparseMiltonContentResource resource;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected boolean internalHasNext() {\n\t\t\t\t\t\twhile (children.hasNext()) {\n\t\t\t\t\t\t\tContent n = children.next();\n\t\t\t\t\t\t\tif (n != null) {\n\t\t\t\t\t\t\t\tresource = new SparseMiltonContentResource(n\n\t\t\t\t\t\t\t\t\t\t.getPath(), session, n);\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresource = null;\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected SparseMiltonContentResource internalNext() {\n\t\t\t\t\t\treturn resource;\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t}",
"public JodeList children(String nodeName) {\n return this.children().filter(nodeName);\n }",
"Collection<DendrogramNode<T>> getChildren();",
"public Collection<BaseGenerator> \n getChildren() \n {\n return Collections.unmodifiableCollection(pChildren.values());\n }",
"public List<MagicPattern> getChildren() {\n\t\treturn children;\n\t}",
"public JodeList children(Predicate<Jode> filter) {\n return this.children().filter(filter);\n }",
"@objid (\"808c084f-1dec-11e2-8cad-001ec947c8cc\")\n public final List<GmNodeModel> getChildren() {\n return new ArrayList<>(this.children);\n }",
"public Node[] getChildren(){\n return children.values().toArray(new Node[0]);\n }",
"public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }",
"@NotNull\n @Override\n public TreeElement[] getChildren() {\n return callChildren(this, navigationItem);\n }",
"public Vector<Node> getChildren(){\n\t\t Vector<Node> children = new Vector<>(0);\n\t\t Iterator<Link> l= myLinks.iterator();\n\t\t\twhile(l.hasNext()){\n\t\t\t\tLink temp=l.next();\n\t\t\t\tif(temp.getM().equals(currNode))\n\t\t\t\t children.add(temp.getN());\n\t\t\t\tif(temp.getN().equals(currNode))\n\t\t\t\t children.add(temp.getM());\n\t\t\t}\n\t\treturn children;\n\t}",
"public List<PlanNode> getChildren() {\n return childrenView;\n }",
"@Override\n public List<TreeNode<N>> children() {\n return Collections.unmodifiableList(children);\n }",
"@DISPID(-2147417075)\n @PropGet\n com4j.Com4jObject children();",
"public AST[] getChildren()\r\n {\n \tif (children == null) {\r\n \t\tList<AST> temp = new java.util.ArrayList<AST>();\r\n \t\ttemp.addAll(fields);\r\n \t\ttemp.addAll(predicates);\r\n \t\ttemp.addAll(constructors);\r\n \t\ttemp.addAll(methods);\r\n \t\tchildren = (AST[]) temp.toArray(new AST[0]);\r\n \t}\r\n \treturn children;\r\n }",
"public HashMap<Integer, List<Integer>> getChildren() {\n\t\treturn children;\n\t}",
"public List getChildren(){\n List result = new ArrayList();\n Iterator it = getSpecialisation().iterator();\n while(it.hasNext()){\n Generalization g = (Generalization)it.next(); \n result.add(g.getChild());\n //System.out.println(\" \"+getName()+\" Parent:\" +g.getParent().getName());\n }\n return result;\n }",
"public List<TreeNode> getChildrenNodes();",
"@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }",
"public Collection<ConfigurationTreeNode> getChildren() {\r\n\t\treturn children.values();\r\n\t}",
"public List<CourseComponent> getChildLeafs() {\n List<CourseComponent> childLeafs = new ArrayList<>();\n if (children != null) {\n for (CourseComponent c : children) {\n if (!c.isContainer())\n childLeafs.add(c);\n }\n }\n return childLeafs;\n }",
"public List<Program> getChildren() {\n\t\tif (_children == null) {\n\t\t\tthrow new IllegalArgumentException(\"Children must be initialized before calling.\");\n\t\t}\n\t\treturn _children;\n\t}",
"public List<GameStateChild> getChildren() {\n return null;\n }",
"public Enumeration enumerateChildren() {\n return this.children.elements();\n }",
"public ListNode[] getChildren(){\n\t\tListNode[] ret = new ListNode[length()];\n\t\tListNode temp = firstNode;\n\t\tfor(int i = 0; i < ret.length && temp != null; i++){\n\t\t\tret[i] = temp;\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\n\t\treturn ret;\n\t}",
"public ArrayList<Node> getChildren() {\n if (children != null) return children;\n children = new ArrayList<>();\n for (Move m : state.getLegalMoves()) {\n Node child = new Node(this, m);\n children.add(child);\n }\n return children;\n }",
"public Item2Vector<Concept> getChildren() { return children; }",
"public ArrayList getChildren() {\n return m_values;\n }",
"public Iterator<Resource> listChildren() {\n return Collections.<Resource>emptyList().iterator();\n }",
"List<HNode> getChildren(Long id);",
"public List<String> getChildIds() {\n return childIds;\n }",
"public List<CourseComponent> getChildContainers() {\n List<CourseComponent> childContainers = new ArrayList<>();\n if (children != null) {\n for (CourseComponent c : children) {\n if (c.isContainer())\n childContainers.add(c);\n }\n }\n return childContainers;\n }",
"public Enumeration children()\n {\n return new Enumeration(){\n int i = 0;\n public boolean hasMoreElements()\n {\n return i < mChildren.length;\n }\n\n public Object nextElement()\n {\n return mChildren[i++];\n }\n };\n }",
"public List<TreeNode> getNotes ()\r\n {\r\n return children;\r\n }",
"List<UIComponent> getChildren();",
"public LinkedList<ApfsElement> getChildren() {\n return this.ApfsChildren;\n }",
"public List<BudgetAccountTableRow> getChildren() {\n return this.children;\n }",
"@Override\n\t\tpublic List<? extends IObject> getChildren() {\n\t\t\tif (!this.hasChildren()) {\n\t\t\t\treturn new ArrayList<>();\n\t\t\t}\n\t\t\tIterator<IFolder> subfolders = this.folder.subfolder();\n\t\t\treturn Lists.transform(ImmutableList.copyOf(subfolders), new Function<IFolder, FolderTreeObject>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic FolderTreeObject apply(IFolder input) {\n\t\t\t\t\treturn new FolderTreeObject(input, FolderTreeObject.this.rootFolder);\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public List<String> getChildNames() {\n\t\treturn _childNames;\n\t}",
"public Vector getChildren() {\n return null;\n }",
"@Override\r\n\tpublic List<Node> getChildren() {\r\n\t\treturn null;\r\n\t}",
"public Enumeration<Faza> children() {\n\t\tEnumeration<Faza> en;\n\t\tVector<Faza> d = new Vector<Faza>();\n\n\t\tList<Faza> fs = new ArrayList<Faza>();\n\t\tFaza f1 = new Faza();\n\t\tf1.setNazivFaze(\"faza 2\");\n\t\tfs.add(f1);\n\t\tfor (int i = 0; i < fs.size(); i++) {\n\t\t\td.add(fs.get(i));\n\t\t}\n\t\ten = d.elements();\n\t\treturn en;\n\t}",
"default List<SemanticRegion<T>> children() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n if (equals(r.parent())) {\n result.add(r);\n }\n }\n return result;\n }",
"public List getChildren(iNamedObject no)\n\t{\n\t\tif (no instanceof iNamedGroup)\n\t\t{\n\t\t\treturn ((iNamedGroup) no).getChildrenList();\n\t\t}\n\t\treturn emptyVec;\n\t}",
"public abstract List<Node> getChildNodes();",
"public Resource[] getChildren()\n {\n try\n {\n return coral.getStore().getResource(coral.getStore().getResource(getId()));\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"Unexpected inconsitency\", e);\n }\n }"
] |
[
"0.8131794",
"0.80286896",
"0.8022049",
"0.8019892",
"0.79355055",
"0.7923902",
"0.78879666",
"0.78721315",
"0.7870955",
"0.7849529",
"0.7829288",
"0.78249246",
"0.782319",
"0.78076255",
"0.7807379",
"0.779374",
"0.7769315",
"0.77635294",
"0.7752027",
"0.77152604",
"0.7663428",
"0.7651812",
"0.7648839",
"0.76487",
"0.7635716",
"0.7631957",
"0.7628456",
"0.76204604",
"0.76143163",
"0.76128733",
"0.7587759",
"0.7586651",
"0.7584377",
"0.75780576",
"0.75778574",
"0.75753677",
"0.75500435",
"0.75425166",
"0.7522851",
"0.7513964",
"0.74833435",
"0.7478959",
"0.7464502",
"0.74567187",
"0.74502224",
"0.7449833",
"0.7437431",
"0.74359757",
"0.7426285",
"0.7406049",
"0.7403942",
"0.7401193",
"0.7398832",
"0.7395902",
"0.73918486",
"0.73790824",
"0.7379027",
"0.73769736",
"0.73742026",
"0.7355339",
"0.7352537",
"0.73301184",
"0.73284197",
"0.7326409",
"0.73248285",
"0.7311286",
"0.72835547",
"0.72761667",
"0.7263109",
"0.7259579",
"0.72347754",
"0.72144395",
"0.720938",
"0.7203856",
"0.71912986",
"0.71820146",
"0.7179246",
"0.7159469",
"0.7139655",
"0.713435",
"0.7117123",
"0.7110405",
"0.7059312",
"0.7017846",
"0.70069444",
"0.7006151",
"0.6996312",
"0.6989557",
"0.6970831",
"0.69576347",
"0.69456226",
"0.6943965",
"0.69354767",
"0.68773115",
"0.6877076",
"0.6865503",
"0.6864248",
"0.6864061",
"0.68508905",
"0.6845018",
"0.68440944"
] |
0.0
|
-1
|
Returns the top level shape (usually an RMDocument).
|
public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Shape getShape();",
"public Shape getShape() {\n\t\treturn null;\n\t}",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public Shape getShape();",
"public Shape getShape() {\n return null;\n }",
"protected Shape getShape()\n {\n return null;\n }",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public Shape getShape() {\n\t\treturn _shape!=null? _shape: new CircleShape(new Vec2f(0,0), 0);\n\t}",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public Shape getShape() {\n\treturn shape;\n }",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public Shape getShape() {\n return shape;\n }",
"public Shape getShape() { return shape; }",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public Shape getShape(Graphics2D g) {\r\n\t\tdouble innerNodeHeight = getInnerBoxHeight(g);\r\n\t\treturn new Rectangle2D.Double(visualNode.getUpperLeftCornerX(g) + INTERNAL_MARGIN, \r\n\t\t\t\tvisualNode.getUpperLeftCornerY(g) + visualNode.getTextHeight(g) + INTERNAL_MARGIN, \r\n\t\t\t\tBOX_WIDTH, \r\n\t\t\t\tinnerNodeHeight);\r\n\t}",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}",
"ShapeType getShapeType();",
"@Override\r\n public Shape getShape ()\r\n {\r\n if (evaluation != null) {\r\n return evaluation.shape;\r\n } else {\r\n return null;\r\n }\r\n }",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }",
"public String whatShape();",
"public Shape getShape() \n {\n return new EllipseShape(new Extent(3,3), Color.RED,true);\n }",
"public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }",
"public Rectangle getShape() \n\t{\n\t\treturn box;\n\t}",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"IShape getCurrentShape();",
"public SVGElementModel getRoot() {\n \t\treturn store.getRootItems().get(0);\n \t}",
"public static Shape getCurrentShape() {\n\t\treturn currentShape;\n\t}",
"IShape getStartShape();",
"IShape getShape(String name);",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"@Override\n\tpublic String getShape() {\n\t\treturn \"Rectangle\";\n\t}",
"public BoundingShape getBoundingShape() {\n\treturn boundingShape;\n }",
"public PhyloTreeNode getOverallRoot() {\n return overallRoot;\n }",
"@Override\r\n Shape getOutline ()\r\n {\r\n return null;\r\n }",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"String getShapeName();",
"@Override\n\tprotected Shape getShape() {\n\t\tRectangle2D ellipse = new Rectangle2D.Double(this.getX(), this.getY(), this.getDimension(), this.getDimension()/2);\n\t return ellipse;\n\t}",
"public ConnectorFigure getPrimaryShape() {\r\n\t\treturn (ConnectorFigure) primaryShape;\r\n\t}",
"public Circle getShape(){\n\t\treturn new Circle();\n\t}",
"@Override\n\tpublic void getShape() {\n\n\t}",
"public Shape getRenderObject(\n )\n {return renderObject;}",
"public Ellipse2D getShape()\r\n {\r\n if(this.stable){\r\n return new Ellipse2D.Double(x, y, XSIZE*2, YSIZE*2);\r\n }\r\n else\r\n return new Ellipse2D.Double(x, y, XSIZE, YSIZE);\r\n }",
"public Shape getRectangle() {\n return rectangle;\n }",
"public RMParentShape getOwner() { return _owner; }",
"public RMParentShape getParent() { return _parent; }",
"RootNode getRootNode();",
"public ShapeGroup getShapeGroup() {\n return referencedShapeGroup;\n }",
"public T getRootElement();",
"W getRootElement();",
"public OMSVGSVGElement getDocumentRoot() {\n \t\treturn svg;\n \t}",
"public Element getDocument() {\n\t\t\n\t\tElement retval = getRoot();\n\t\t\n\t\tList<Element> children;\n\t\t\n\t\tif ( retval.getName().equals(\"ROOT\") && (children = retval.getAllChildren()).size() > 0 )\n\t\t\tretval = children.get(0);\n\t\t\n\t\treturn retval;\n\n\t}",
"@DISPID(1610940422) //= 0x60050006. The runtime will prefer the VTID if present\n @VTID(28)\n Factory shapeFactory();",
"@Override\n Shape getShape() {\n return Shape.Square;\n }",
"abstract Shape nodeShape(String node, Graphics2D g2d);",
"public Rectangle getShape(){\n return myRectangle;\n }",
"private PR1Model.Shape getSelection() { return selection.get(); }",
"public ShapeType getType() {\n\t\t\treturn type.get();\n\t\t}",
"public String getRandomShape(){\n\t\tRandom randon = new Random();\n\t\treturn Shape.values()[randon.nextInt(Shape.values().length)].toString();\n\t}",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"public String getShapeType(){\n\t\treturn shapeType;\n\t}",
"public Region getRoot() {\r\n return root;\r\n }",
"public String toString() {\n\t\t\treturn shape;\n\t\t}",
"public List <RMShape> getShapesToDescendant(RMShape aShape)\n{\n List list = aShape.getShapesToAncestor(this); Collections.reverse(list); return list;\n}",
"public String describeRoot();",
"public Object getPersistentShape(int _shape)\n/* 215: */ {\n/* 216:302 */ switch (_shape)\n/* 217: */ {\n/* 218: */ case 0: \n/* 219:303 */ return this.presentation;\n/* 220: */ case -1: \n/* 221:304 */ return this.icon;\n/* 222: */ }\n/* 223:306 */ return null;\n/* 224: */ }",
"IShape getEndShape();",
"Shape getHighlightShape();",
"protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) { return clone(); }",
"public short getShape() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 2);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 2);\n\t\t}\n\t}",
"public RMShape getAncestorInCommon(RMShape aShape)\n{\n // If shape is our descendant, return this shape\n if(isDescendant(aShape))\n return this;\n \n // Iterate up shape's ancestors until one has this shape as descendant\n for(RMShape shape=aShape; shape!=null; shape=shape.getParent())\n if(shape.isDescendant(this))\n return shape;\n \n // Return null since common ancestor not found\n return null;\n}",
"int getShapeId();",
"public Rect getBBox() throws PDFNetException {\n/* 857 */ return new Rect(GetBBox(this.a));\n/* */ }",
"public static Style getDefault() { return Style.SHAPE; }",
"OntologyTerm getRoot();",
"public String getRoot();",
"@Override\n\tpublic String getShapeType() {\n\t\treturn \"Rectangle\";\n\t}",
"public abstract Node getBoundingNode();",
"public Object getRoot() {\n\t\treturn null;\n\t}",
"@PublicAtsApi\n public String getRootElementXPath() {\n\n return this.root.getUniquePath();\n }",
"public Info getInfo() {\n super.fillInfo(shape);\n return this.shape;\n }",
"Node<UnderlyingData> getTopLineNode();",
"public Group shapes() {\n Group group = new Group();\n\n Rectangle square = new Rectangle();\n square.setHeight(_size * 2.0);\n square.setWidth(_size * 2.0);\n square.setX(-_size);\n square.setY(-_size);\n square.setFill(_fill);\n square.setOpacity(0.2);\n group.getChildren().add(square);\n\n return group;\n }",
"public List <RMShape> getShapesToAncestor(RMShape aShape)\n{\n // Iterate and add up this shape and parents until given ancestor is added (or we run out)\n List ancestors = new ArrayList();\n for(RMShape shape=this; shape!=null; shape=shape.getParent()) {\n ancestors.add(shape);\n if(shape==aShape)\n break;\n }\n \n // Return ancestors\n return ancestors;\n}",
"public int[] getShape() {\n return shape;\n }",
"public String getRootElement() {\n int index = mRootElementCombo.getSelectionIndex();\n if (index >= 0) {\n return mRootElementCombo.getItem(index);\n }\n return null;\n }",
"public List <RMShape> getChildren() { return Collections.emptyList(); }",
"private void createShape() {\n if (shape == null) {\n float firstItemMargin = noxConfig.getNoxItemMargin();\n float firstItemSize = noxConfig.getNoxItemSize();\n int viewHeight = getMeasuredHeight();\n int viewWidth = getMeasuredWidth();\n int numberOfElements = noxItemCatalog.size();\n ShapeConfig shapeConfig =\n new ShapeConfig(numberOfElements, viewWidth, viewHeight, firstItemSize, firstItemMargin);\n shape = ShapeFactory.getShapeByKey(defaultShapeKey, shapeConfig);\n } else {\n shape.setNumberOfElements(noxItemCatalog.size());\n }\n shape.calculate();\n }",
"String getShapeLabel();",
"public final OMSVGElement getFarthestViewportElement() {\n return (OMSVGElement)convert(((SVGTextElement)ot).getFarthestViewportElement());\n }",
"protected IFigure createNodeShape() {\r\n\t\treturn primaryShape = new ConnectorFigure();\r\n\t}",
"String getLayerShapeName();",
"public Stroke getInnerStroke() {\n return null;\n }",
"public Shape getShape(String shapeType) {\n if (shapeType == null)\n return null;\n\n switch (ShapeType.valueOf(shapeType)) {\n case CIRCLE:\n return circle;\n case RECTANGLE:\n return rectangle;\n case SQUARE:\n return square;\n default:\n return null;\n }\n }",
"public Object getRoot(){\r\n\t\treturn _root;\r\n\t}",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }"
] |
[
"0.7027868",
"0.6893423",
"0.68597907",
"0.68437564",
"0.6784049",
"0.6633043",
"0.6551845",
"0.65413517",
"0.6540666",
"0.65345675",
"0.6528678",
"0.65049076",
"0.6492195",
"0.64714545",
"0.64707136",
"0.642954",
"0.6393308",
"0.63746107",
"0.63678783",
"0.63445747",
"0.63438064",
"0.63055605",
"0.6277557",
"0.62452686",
"0.62204504",
"0.6212337",
"0.6205435",
"0.61756057",
"0.61732316",
"0.61005646",
"0.60704255",
"0.6032509",
"0.60187584",
"0.60141474",
"0.6005398",
"0.596333",
"0.5959112",
"0.5955073",
"0.594145",
"0.5938551",
"0.5923915",
"0.58915526",
"0.5884574",
"0.5878859",
"0.5869639",
"0.58642066",
"0.58417547",
"0.5821979",
"0.57972264",
"0.5791731",
"0.5746737",
"0.57450485",
"0.57393193",
"0.57295823",
"0.57264674",
"0.571562",
"0.5710873",
"0.56899166",
"0.5668974",
"0.56621414",
"0.56498176",
"0.5639452",
"0.56388247",
"0.56297714",
"0.56152177",
"0.5607537",
"0.5604565",
"0.5598393",
"0.5596622",
"0.5566701",
"0.55485773",
"0.55417776",
"0.55372113",
"0.55265206",
"0.55211717",
"0.55050606",
"0.5505022",
"0.55028623",
"0.5499318",
"0.54903394",
"0.547923",
"0.5478647",
"0.54785055",
"0.547365",
"0.54669666",
"0.5457542",
"0.54490453",
"0.54484165",
"0.54483175",
"0.54443234",
"0.5437021",
"0.5431784",
"0.54253525",
"0.5423786",
"0.5422267",
"0.5421597",
"0.5405497",
"0.5404928",
"0.53952664",
"0.53912413"
] |
0.72225696
|
0
|
Returns the RMDocument ancestor of this shape (or null if not there).
|
public RMDocument getDocument() { return _parent!=null? _parent.getDocument() : null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public RMShape getAncestorInCommon(RMShape aShape)\n{\n // If shape is our descendant, return this shape\n if(isDescendant(aShape))\n return this;\n \n // Iterate up shape's ancestors until one has this shape as descendant\n for(RMShape shape=aShape; shape!=null; shape=shape.getParent())\n if(shape.isDescendant(this))\n return shape;\n \n // Return null since common ancestor not found\n return null;\n}",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"private SchemaComponent findOutermostParentElement(){\n SchemaComponent element = null;\n //go up the tree and look for the last instance of <element>\n\tSchemaComponent sc = getParent();\n while(sc != null){\n if(sc instanceof Element){\n element = sc;\n }\n\t sc = sc.getParent();\n }\n return element;\n }",
"public RMParentShape getParent() { return _parent; }",
"public TopoDS_Shape Ancestor( TopoDS_Edge E) {\n TopoDS_Shape ret = new TopoDS_Shape(OCCwrapJavaJNI.BRepAlgo_NormalProjection_Ancestor(swigCPtr, this, TopoDS_Edge.getCPtr(E), E), true);\n return ret;\n }",
"public String getParentElement() {\n return ROOT_NO_ELEMENT_DEFAULT;\n }",
"public FObj findNearestAncestorFObj() {\n FONode par = parent;\n while (par != null && !(par instanceof FObj)) {\n par = par.parent;\n }\n return (FObj) par;\n }",
"public Loop getRoot() {\n\t\tfor (Loop lp : parent.keySet()) {\n\t\t\tif (parent.get(lp)==null) return lp;\n\t\t}\n\t\treturn null;\n\t}",
"public abstract Node getBoundingNode();",
"public abstract Optional<TypeName> parent();",
"public abstract XMLReader getParent ();",
"public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }",
"public RMShape getAncestor(int anIndex) { return anIndex==0? getParent() : getParent().getAncestor(anIndex-1); }",
"public Figure getFigure() {\n\t\treturn _parentFigure;\n\t}",
"Node<T> parent();",
"SemanticRegion<T> parent();",
"public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"CoreParentNode coreGetParent();",
"public JDialog getAncestor() {\n return ancestor;\n }",
"@JsProperty\n Node getParentNode();",
"public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"@Override\n public Object getRoot() {\n if (this.getParent() == null) {\n return this;\n }\n return this.getParent().getRoot();\n }",
"public Node getParent();",
"@JsProperty\n Element getParentElement();",
"@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }",
"public IAVLNode getParent() {\n\t\t\treturn this.parent; // to be replaced by student code\n\t\t}",
"public TreeNode getParent() {\n\t\treturn null;\n\t}",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public RMParentShape getOwner() { return _owner; }",
"public Region getRoot() {\r\n return root;\r\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"private Rectangle getParentBounds() {\n final var bounds = mParentBounds;\n\n return bounds == null\n ? mParentBounds = calculateBounds( getParent() )\n : bounds;\n }",
"public Object getRoot() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Tag getParent() {\n\t\treturn null;\r\n\t}",
"public Ent getParent(){\n\t\treturn (Ent)bound.getParent();\n\t}",
"public Optional<NamespaceId> getParentId() {\n return parentId;\n }",
"public Node getParentNode() {\n return parentNode;\n }",
"Object getParent();",
"@Override\n public Node getParentNode() {\n return null;\n }",
"public Element getDocument() {\n\t\t\n\t\tElement retval = getRoot();\n\t\t\n\t\tList<Element> children;\n\t\t\n\t\tif ( retval.getName().equals(\"ROOT\") && (children = retval.getAllChildren()).size() > 0 )\n\t\t\tretval = children.get(0);\n\t\t\n\t\treturn retval;\n\n\t}",
"@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}",
"public Node<T> getParent() {\n return this.parent;\n }",
"public VNode getParent() throws VlException\n {\n VRL pvrl=getParentLocation(); \n \n if (pvrl==null)\n \treturn null; \n \n return vrsContext.openLocation(getParentLocation());\n }",
"public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }",
"public Resource getParent() {\n return null;\n }",
"public XMLBuilder getRoot() {\n\t\treturn xmlBody;\n\t}",
"CoreElement coreGetParentElement();",
"private GitCommit getParentImpl()\n {\n RevCommit r = _rev.getParentCount()>0? _rev.getParent(0) : null;\n if(r!=null) r = (RevCommit)getRevObject(r); // They return a rev commit, but it isn't loaded!\n return r!=null? new GitCommit(r) : null;\n }",
"public Path getParent(\n ) {\n return this.parent;\n }",
"public AVLNode getRoot() {\n return root;\n }",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"public <T extends RMShape> T getParent(Class<T> aClass)\n{\n for(RMShape s=getParent(); s!=null; s=s.getParent()) if(aClass.isInstance(s)) return (T)s;\n return null; // Return null since parent of class wasn't found\n}",
"public WidgetParent getParent() {\n return this.m_parent;\n }",
"public RTWLocation parent();",
"public SearchNode<S, A> getParent() {\r\n\t\treturn parent;\r\n\t}",
"public Taxon getAncestor(final TaxonRank rank) {\n\t\tif (rank == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tTaxon parent = this;\n\t\twhile (parent != null && parent.getRank() != rank) {\n\t\t\tparent = parent.getParent();\n\t\t}\n\t\treturn parent;\n\t}",
"public PhyloTreeNode getOverallRoot() {\n return overallRoot;\n }",
"public SVGElementModel getRoot() {\n \t\treturn store.getRootItems().get(0);\n \t}",
"public org.landxml.schema.landXML11.IntersectionDocument.Intersection getIntersection()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.IntersectionDocument.Intersection target = null;\r\n target = (org.landxml.schema.landXML11.IntersectionDocument.Intersection)get_store().find_element_user(INTERSECTION$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"protected final XmlAntTask getRoot() {\n\t\tXmlAntTask tmp1 = parent;\n\t\tXmlAntTask tmp2 = this;\n\t\twhile (tmp1 != null) {\n\t\t\ttmp2 = tmp1;\n\t\t\ttmp1 = tmp2.getParent();\n\t\t}\n\t\treturn tmp2;\n\t}",
"public List <RMShape> getShapesToAncestor(RMShape aShape)\n{\n // Iterate and add up this shape and parents until given ancestor is added (or we run out)\n List ancestors = new ArrayList();\n for(RMShape shape=this; shape!=null; shape=shape.getParent()) {\n ancestors.add(shape);\n if(shape==aShape)\n break;\n }\n \n // Return ancestors\n return ancestors;\n}",
"@Override\r\n\t\tpublic Node getLastChild()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public Entity getGrandparent() {\n return grandparent;\n }",
"RegistryNode getParentNode() {\n return parentNode;\n }",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"public TreeNode getParentNode();",
"public IPSComponent peekParent();",
"RootNode getRootNode();",
"public static Node rightAncestor(Node node) {\n\n\n if(node.parent!=null){\n if(node.key>node.parent.key){ // หา parent ตัวแรกี่มีคค่ามากกว่า\n return rightAncestor(node.parent);\n }\n else {return node.parent;}\n }else{return null;}//////\n }",
"@Override\r\n\tpublic Object getParent(Object element) {\n\t\treturn null;\r\n\t}",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public RBNode<T> parentOf(RBNode<T> node) {\n return node != null? node.parent : null;\r\n }",
"TreeNode commonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n\tResult r = commonAncestorHelper(root, p, q);\n\t// if whatever is returned is an ancestor\n\t// we return that node\n\t// else return null, there is no ancestor that exists\n\tif (r.isAncestor) {\n\t\treturn r.node\n\t}\n\treturn null; \n}",
"private static String recoverParent(BabelSynset bs) throws IOException {\n\t\tif(bs.getEdges(BabelPointer.ANY_HYPERNYM).size() == 0) {\n\t\t\tif(bs.getEdges(BabelPointer.DERIVATIONALLY_RELATED).size() > 0) {\n\t\t\t\tString tag = bs.getEdges(BabelPointer.DERIVATIONALLY_RELATED).get(0).getTarget();\n\t\t\t\tif(tag != null) \n\t\t\t\t\treturn tag;\n\t\t\t}\n\t\t}\n\t\treturn findHighParent_A(bs);\n\t}",
"public PDRectangle getFringe()\n {\n COSArray rd = annot.getCOSArray(COSName.RD);\n return rd != null ? new PDRectangle(rd) : null;\n }",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Reference getRootRef() {\n return this.rootRef;\n }",
"@Pure\n\tpublic TreeNode<?, ?> getParentNode() {\n\t\treturn (TreeNode<?, ?>) getSource();\n\t}",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"Node commonAncestor(Node one, Node two);",
"private HtmlElement getRoot()\n\t{\n\t\treturn getBaseRootElement( ROOT_BY );\n\t}",
"public Parent getVista() {\n\t\treturn null;\n\t}",
"public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"corrupted data parent resource #\"+parentId+\n \" does not exist\", e);\n }\n }\n else\n {\n parent = new ResourceRef(null, coral);\n }\n }\n try\n {\n return parent.get();\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"in-memory data incosistency\", e);\n }\n }",
"@Nullable\n public VastInLineXmlManager getInLineXmlManager() {\n Node firstMatchingChildNode = XmlUtils.getFirstMatchingChildNode(this.mAdNode, \"InLine\");\n if (firstMatchingChildNode != null) {\n return new VastInLineXmlManager(firstMatchingChildNode);\n }\n return null;\n }",
"public Foo getParent() {\n return parent;\n }",
"public X ancestorListener(AncestorListener listener) {\n component.addAncestorListener(listener);\n return (X) this;\n }",
"private TreeNode getAncestorNode(LayoutEntity layout, Map<Long, TreeNode> ancestorNodeMap) {\n TreeNode ancestor = ancestorNodeMap.get(layout.getIndex().getId());\n if (Objects.isNull(ancestor)) {\n ancestor = new TreeNode(layout.getIndex(), Lists.newArrayList(layout));\n ancestor.layout = layout;\n ancestor.layoutNodes.forEach(LayoutNode::setSpanned);\n ancestorNodeMap.put(layout.getIndex().getId(), ancestor);\n }\n return ancestor;\n }",
"public ObjRef getRootObjRef() {\n return rootRef;\n }",
"public Object getParent() {\r\n return this.parent;\r\n }"
] |
[
"0.67724186",
"0.67516774",
"0.66288716",
"0.6553465",
"0.6412868",
"0.63310784",
"0.6205808",
"0.61320734",
"0.60938144",
"0.60753816",
"0.60511583",
"0.5983218",
"0.59748346",
"0.5946675",
"0.5913622",
"0.5851973",
"0.5848989",
"0.5844904",
"0.58306855",
"0.5826577",
"0.58186466",
"0.58059144",
"0.57942873",
"0.57770514",
"0.57424325",
"0.57388",
"0.5721169",
"0.5717019",
"0.57091635",
"0.5706218",
"0.57011294",
"0.5665902",
"0.56602967",
"0.56413656",
"0.5637529",
"0.5633577",
"0.5626265",
"0.5623364",
"0.562148",
"0.5621364",
"0.55923855",
"0.5591918",
"0.5571798",
"0.5564319",
"0.55575955",
"0.55564",
"0.5544423",
"0.55244344",
"0.55182225",
"0.55176944",
"0.5517045",
"0.55049294",
"0.5500507",
"0.549609",
"0.54936206",
"0.5470272",
"0.54680985",
"0.54496634",
"0.5449408",
"0.54461837",
"0.5439064",
"0.54264295",
"0.5411029",
"0.5407759",
"0.54039335",
"0.5401262",
"0.5395254",
"0.53949946",
"0.5394992",
"0.5393427",
"0.53866404",
"0.5384803",
"0.5384803",
"0.53822386",
"0.5379824",
"0.5373788",
"0.5372342",
"0.5371374",
"0.53678805",
"0.5360444",
"0.5358961",
"0.5354518",
"0.5344416",
"0.53436995",
"0.53436995",
"0.5334371",
"0.53268045",
"0.5325087",
"0.5325087",
"0.5325087",
"0.5323858",
"0.5323572",
"0.5323281",
"0.53178644",
"0.53106827",
"0.5307836",
"0.53053296",
"0.530067",
"0.5297321",
"0.5294084"
] |
0.6493737
|
4
|
Returns the RMPage ancestor of this shape (or null if not there).
|
public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public RMParentShape getParent() { return _parent; }",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"SemanticRegion<T> parent();",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public Peak getParent() {\n\t\treturn parent;\n\t}",
"public RMShape getAncestorInCommon(RMShape aShape)\n{\n // If shape is our descendant, return this shape\n if(isDescendant(aShape))\n return this;\n \n // Iterate up shape's ancestors until one has this shape as descendant\n for(RMShape shape=aShape; shape!=null; shape=shape.getParent())\n if(shape.isDescendant(this))\n return shape;\n \n // Return null since common ancestor not found\n return null;\n}",
"private Rectangle getParentBounds() {\n final var bounds = mParentBounds;\n\n return bounds == null\n ? mParentBounds = calculateBounds( getParent() )\n : bounds;\n }",
"public GitCommit getParent() { return _par!=null? _par : (_par=getParentImpl()); }",
"public Figure getFigure() {\n\t\treturn _parentFigure;\n\t}",
"public IAVLNode getParent() {\n\t\t\treturn this.parent; // to be replaced by student code\n\t\t}",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public Loop getRoot() {\n\t\tfor (Loop lp : parent.keySet()) {\n\t\t\tif (parent.get(lp)==null) return lp;\n\t\t}\n\t\treturn null;\n\t}",
"IGLProperty getParent();",
"public GraphicalLattice getParentLattice() {\n\t\treturn parentLattice;\n\t}",
"public Entity getGrandparent() {\n return grandparent;\n }",
"public FObj findNearestAncestorFObj() {\n FONode par = parent;\n while (par != null && !(par instanceof FObj)) {\n par = par.parent;\n }\n return (FObj) par;\n }",
"public int getParent();",
"Object getParent();",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public abstract Optional<TypeName> parent();",
"public Resource getParent() {\n return null;\n }",
"public PDRectangle getFringe()\n {\n COSArray rd = annot.getCOSArray(COSName.RD);\n return rd != null ? new PDRectangle(rd) : null;\n }",
"public Ent getParent(){\n\t\treturn (Ent)bound.getParent();\n\t}",
"public PApplet getParent() {\n\t\treturn this.parent;\n\t}",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public RTWLocation parent();",
"public RMParentShape getOwner() { return _owner; }",
"public TopoDS_Shape Ancestor( TopoDS_Edge E) {\n TopoDS_Shape ret = new TopoDS_Shape(OCCwrapJavaJNI.BRepAlgo_NormalProjection_Ancestor(swigCPtr, this, TopoDS_Edge.getCPtr(E), E), true);\n return ret;\n }",
"public VNode getParent() throws VlException\n {\n VRL pvrl=getParentLocation(); \n \n if (pvrl==null)\n \treturn null; \n \n return vrsContext.openLocation(getParentLocation());\n }",
"public IPSComponent peekParent();",
"public JDialog getAncestor() {\n return ancestor;\n }",
"public PageTreeNode getParent() {\n return parent;\n }",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"public Region getRoot() {\r\n return root;\r\n }",
"private GitCommit getParentImpl()\n {\n RevCommit r = _rev.getParentCount()>0? _rev.getParent(0) : null;\n if(r!=null) r = (RevCommit)getRevObject(r); // They return a rev commit, but it isn't loaded!\n return r!=null? new GitCommit(r) : null;\n }",
"@Nullable\n public DpProp getTop() {\n if (mImpl.hasTop()) {\n return DpProp.fromProto(mImpl.getTop());\n } else {\n return null;\n }\n }",
"public FcgLevel parent() {\n\t\tif (direction == IN_AND_OUT) {\n\t\t\t// undefined--we are the parent of all\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"To get the parent of the source level you must use the constructor directly\");\n\t\t}\n\n\t\tint newDistance = getDistance() - 1;\n\t\tFcgDirection newDirection = direction;\n\t\tif (newDistance == 0) {\n\t\t\tnewDirection = IN_AND_OUT;\n\t\t}\n\t\treturn new FcgLevel(newDistance, newDirection);\n\t}",
"public RBNode<T> parentOf(RBNode<T> node) {\n return node != null? node.parent : null;\r\n }",
"public int Parent() { return this.Parent; }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Resource getParent()\n {\n if(parent == null)\n {\n if(parentId != -1)\n {\n try\n {\n parent = new ResourceRef(coral.getStore().getResource(parentId), coral);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"corrupted data parent resource #\"+parentId+\n \" does not exist\", e);\n }\n }\n else\n {\n parent = new ResourceRef(null, coral);\n }\n }\n try\n {\n return parent.get();\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"in-memory data incosistency\", e);\n }\n }",
"public RMRect getFrame() { return isRSS()? convertRectToShape(getBoundsInside(), _parent) : getBounds(); }",
"public WidgetParent getParent() {\n return this.m_parent;\n }",
"@Override\r\n\tpublic Tag getParent() {\n\t\treturn null;\r\n\t}",
"public Entity getParent() {\n return parent;\n }",
"public RMShape getAncestor(int anIndex) { return anIndex==0? getParent() : getParent().getAncestor(anIndex-1); }",
"public TreeNode getParent() {\n\t\treturn null;\n\t}",
"public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }",
"public Object getParent() {\r\n return this.parent;\r\n }",
"Node<T> parent();",
"@VTID(7)\r\n void getParent();",
"public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }",
"public PApplet getParent() {\n\t\treturn parent;\n\t}",
"public HtmlMap<T> getParent()\n\t{\n\t\treturn this.m_parent;\n\t}",
"public Path getParent(\n ) {\n return this.parent;\n }",
"public Foo getParent() {\n return parent;\n }",
"public MiniMap getParent() {\n \t\treturn parent;\n \t}",
"public abstract XMLReader getParent ();",
"public Optional<Cause> getParent() {\n return this.parent;\n }",
"@JsProperty\n Node getParentNode();",
"public CompoundExpression getParent (){\n return _parent;\n }",
"public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }",
"public PafDimMember getParent() {\r\n\t\treturn parent;\r\n\t}",
"public TreeNode getParent() { return par; }",
"protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }",
"public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}",
"Location getTop() {\n // -\n if(!isEmpty())\n return top.getLocation();\n return null;\n }",
"Spring getParent() {\n return parent;\n }",
"CoreParentNode coreGetParent();",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"public Node getParent();",
"@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"Id getLastDefinedParent() {\n for (Commit c : Lists.reverse(commits)) {\n if (c.isSaved()) {\n return c.id;\n }\n }\n\n throw new IllegalStateException(\"Unable to determine last defined parent.\");\n }",
"@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();",
"@Nullable\n public SlideBound getInitialSlideBound() {\n if (mImpl.hasInitialSlideBound()) {\n return ModifiersBuilders.slideBoundFromProto(mImpl.getInitialSlideBound());\n } else {\n return null;\n }\n }",
"@Override\n public AVLTreeNode<E> getParent() {\n return (AVLTreeNode<E>) super.getParent();\n }",
"public ParseTreeNode getParent() {\r\n return _parent;\r\n }",
"public Group getParent() {\n com.guidebee.game.engine.scene.Group group = internalGroup.getParent();\n if (group != null) {\n return (Group) group.getUserObject();\n }\n return null;\n }",
"public Kit getParent() {\n return this.parent;\n }",
"public Parent getVista() {\n\t\treturn null;\n\t}",
"@JsProperty\n Element getParentElement();",
"public Optional<NamespaceId> getParentId() {\n return parentId;\n }",
"public String getParent() {\n int index = filename.lastIndexOf(separatorChar);\n\n if (index > 0) {\n return filename.substring(0, index);\n } else {\n return null;\n }\n\n }",
"public PartialSolution getParent() {\n return _parent;\n }",
"@Override\n\tpublic Tag getParent() {\n\t\treturn this.parentTag;\n\t}",
"public abstract Position<E> getRightParent(Position<E> p);",
"public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}",
"@NonNull <T extends ContainerHolder> Optional<T> parent();",
"public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}",
"public IRubyObject getTopSelf() {\n return topSelf;\n }",
"public Object getRoot() {\n\t\treturn null;\n\t}",
"public Point getupperRigth() {\n Point upperRigth = new Point(this.upperLeft.getX() + this.getWidth(), this.upperLeft.getY());\n return upperRigth;\n }"
] |
[
"0.6290803",
"0.6183698",
"0.6178951",
"0.6059491",
"0.60329336",
"0.5979154",
"0.5953823",
"0.5952544",
"0.59203815",
"0.5775733",
"0.5744103",
"0.57274073",
"0.57211804",
"0.57025313",
"0.5679469",
"0.56763947",
"0.5647808",
"0.56393844",
"0.5639226",
"0.563488",
"0.5626657",
"0.56243294",
"0.5617682",
"0.56091547",
"0.5588836",
"0.55578184",
"0.55380344",
"0.5534549",
"0.5527804",
"0.5522908",
"0.55173194",
"0.5503831",
"0.5494035",
"0.5473502",
"0.546635",
"0.54637134",
"0.54581237",
"0.5425466",
"0.5422693",
"0.5420541",
"0.54141843",
"0.5413218",
"0.5411007",
"0.540783",
"0.5393609",
"0.53757983",
"0.53757983",
"0.53757983",
"0.5375418",
"0.537012",
"0.53635544",
"0.5358829",
"0.5353945",
"0.53513134",
"0.5349876",
"0.53492105",
"0.53414536",
"0.532451",
"0.5315976",
"0.5308637",
"0.53058",
"0.5304815",
"0.5301046",
"0.5293613",
"0.5291347",
"0.52892643",
"0.52823675",
"0.52819586",
"0.5281768",
"0.52774113",
"0.5272731",
"0.52680486",
"0.5265663",
"0.5261199",
"0.525886",
"0.5258798",
"0.525029",
"0.5248646",
"0.52347296",
"0.5215131",
"0.5206604",
"0.51874614",
"0.51764",
"0.51745945",
"0.51723486",
"0.51717955",
"0.51665974",
"0.5154503",
"0.51543367",
"0.51516813",
"0.51483244",
"0.51395214",
"0.5136586",
"0.5135905",
"0.5132769",
"0.5131256",
"0.51263684",
"0.5119707",
"0.5117562",
"0.51146173"
] |
0.63411117
|
0
|
Returns the undoer for this shape (or null if not there).
|
public Undoer getUndoer() { return _parent!=null? _parent.getUndoer() : null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public UndoManager getUndoManager() {\n return undoManager;\n }",
"public UndoManager getUndoManager() {\n\t\treturn undoManager;\n\t}",
"public String getUndoPresentationName();",
"public String getUndoPresentationName();",
"public Lock getUndoNxtLock() {\n if (nlocks == 0)\n return null;\n return locks[nlocks - 1];\n }",
"public String getUndoInformation() {\n return previousActionUndoString;\n }",
"@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}",
"public E undo() {\n if (canUndo()) {\n future.addLast(present);\n present = past.pollLast();\n }\n return getCurrentState();\n }",
"public String getUndoPresentationName() {\n throw new UnsupportedOperationException(\"The getUndoPresentationName() method is not supported.\");\n }",
"public ReadOnlyNotebook undo() {\n statePointer--;\n ReadOnlyNotebook previousCopy = mementos.get(statePointer).getState();\n return previousCopy;\n }",
"public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }",
"@Override\n T undo();",
"public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}",
"@Override\n\t/**\n\t * undo is irrelevant in this case\n\t */\n\tpublic Task[] undo() {\n\t\treturn null;\n\t}",
"public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }",
"public Board getBoard(){\n return undoBoards.peek();\n }",
"public String getRedoPresentationName();",
"public String getRedoPresentationName();",
"public T previous()\n {\n // TODO: implement this method\n return null;\n }",
"private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }",
"public Move undoMove ()\n {\n Move lastPlayedMove = Move.undoMove();\n setGridElement(lastPlayedMove.getRow(), lastPlayedMove.getColumn(), Player.NONE);\n return lastPlayedMove;\n }",
"void undoPreviousAction() throws NothingToUndoException;",
"public void undo() throws CannotUndoException;",
"public void undoerDisable() { Undoer u = getUndoer(); if(u!=null) u.disable(); }",
"public ShapeCommand peek() {\r\n\t\treturn this.items.get(this.items.size()-1);\r\n\t}",
"public void undoerEnable() { Undoer u = getUndoer(); if(u!=null) u.enable(); }",
"public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }",
"public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }",
"public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public UndoableAction getAction() {\n return (UndoableAction) super.getAction();\n }",
"public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"public abstract void undo();",
"public void undo() {\n }",
"public UndoPointer getCommitLSN() {\n return commitList.getCommitLSN();\n }",
"public DockableState getPreviousState() {\n\t\treturn previousState;\n\t}",
"public interface UndoableEdit {\n /**\n * Undo the edit.\n *\n * @throws CannotUndoException if this edit can not be undone\n */\n public void undo() throws CannotUndoException;\n\n /**\n * Returns true if this edit may be undone.\n *\n * @return true if this edit may be undone\n */\n public boolean canUndo();\n\n /**\n * Re-applies the edit.\n *\n * @throws CannotRedoException if this edit can not be redone\n */\n public void redo() throws CannotRedoException;\n\n /**\n * Returns true if this edit may be redone.\n *\n * @return true if this edit may be redone\n */\n public boolean canRedo();\n\n /**\n * Informs the edit that it should no longer be used. Once an\n * <code>UndoableEdit</code> has been marked as dead it can no longer\n * be undone or redone.\n * <p>\n * This is a useful hook for cleaning up state no longer\n * needed once undoing or redoing is impossible--for example,\n * deleting file resources used by objects that can no longer be\n * undeleted. <code>UndoManager</code> calls this before it dequeues edits.\n * <p>\n * Note that this is a one-way operation. There is no \"un-die\"\n * method.\n *\n * @see CompoundEdit#die\n */\n public void die();\n\n /**\n * Adds an <code>UndoableEdit</code> to this <code>UndoableEdit</code>.\n * This method can be used to coalesce smaller edits into a larger\n * compound edit. For example, text editors typically allow\n * undo operations to apply to words or sentences. The text\n * editor may choose to generate edits on each key event, but allow\n * those edits to be coalesced into a more user-friendly unit, such as\n * a word. In this case, the <code>UndoableEdit</code> would\n * override <code>addEdit</code> to return true when the edits may\n * be coalesced.\n * <p>\n * A return value of true indicates <code>anEdit</code> was incorporated\n * into this edit. A return value of false indicates <code>anEdit</code>\n * may not be incorporated into this edit.\n * <p>Typically the receiver is already in the queue of a\n * <code>UndoManager</code> (or other <code>UndoableEditListener</code>),\n * and is being given a chance to incorporate <code>anEdit</code>\n * rather than letting it be added to the queue in turn.</p>\n *\n * <p>If true is returned, from now on <code>anEdit</code> must return\n * false from <code>canUndo</code> and <code>canRedo</code>,\n * and must throw the appropriate exception on <code>undo</code> or\n * <code>redo</code>.</p>\n *\n * @param anEdit the edit to be added\n * @return true if <code>anEdit</code> may be incorporated into this\n * edit\n */\n public boolean addEdit(UndoableEdit anEdit);\n\n /**\n * Returns true if this <code>UndoableEdit</code> should replace\n * <code>anEdit</code>. This method is used by <code>CompoundEdit</code>\n * and the <code>UndoManager</code>; it is called if\n * <code>anEdit</code> could not be added to the current edit\n * (<code>addEdit</code> returns false).\n * <p>\n * This method provides a way for an edit to replace an existing edit.\n * <p>This message is the opposite of addEdit--anEdit has typically\n * already been queued in an <code>UndoManager</code> (or other\n * UndoableEditListener), and the receiver is being given a chance\n * to take its place.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n *\n * @param anEdit the edit that replaces the current edit\n * @return true if this edit should replace <code>anEdit</code>\n */\n public boolean replaceEdit(UndoableEdit anEdit);\n\n /**\n * Returns true if this edit is considered significant. A significant\n * edit is typically an edit that should be presented to the user, perhaps\n * on a menu item or tooltip. The <code>UndoManager</code> will undo,\n * or redo, all insignificant edits to the next significant edit.\n *\n * @return true if this edit is significant\n */\n public boolean isSignificant();\n\n /**\n * Returns a localized, human-readable description of this edit, suitable\n * for use in a change log, for example.\n *\n * @return description of this edit\n */\n public String getPresentationName();\n\n /**\n * Returns a localized, human-readable description of the undoable form of\n * this edit, suitable for use as an Undo menu item, for example.\n * This is typically derived from <code>getPresentationName</code>.\n *\n * @return a description of the undoable form of this edit\n */\n public String getUndoPresentationName();\n\n /**\n * Returns a localized, human-readable description of the redoable form of\n * this edit, suitable for use as a Redo menu item, for example. This is\n * typically derived from <code>getPresentationName</code>.\n *\n * @return a description of the redoable form of this edit\n */\n public String getRedoPresentationName();\n}",
"public StaveGlyph getStave()\n {\n if(parent != null) return parent.getStave();\n else return null;\n }",
"public Triangle getTridroit() {\r\n return tridroit;\r\n }",
"public void undoAction(){}",
"public T previous() {\r\n\t\t// aktu == null ist dann, wenn aktu einen schritt zuvor first war;\r\n\t\tif (aktu == null) {\r\n\t\t\treturn null;\r\n\t\t} else if (first.equals(aktu)) {\r\n\t\t\t// wir sind am Ende, deswegen setzen wir aktu auf null (für die\r\n\t\t\t// Abfrage oberhalb) und geben den ersten Wert zurück;\r\n\t\t\taktu = null;\r\n\t\t\treturn (T) first.getData();\r\n\t\t} else if (first.equals(aktu.getPrevious())) {\r\n\t\t\t// überprüft, ob der Knoten vor dem aktuellen der letzte ist, dass\r\n\t\t\t// hat den Grund, dass beim letzten die Methode .getPrevios eine\r\n\t\t\t// NullPointerException wirft;\r\n\t\t\taktu = first;\r\n\t\t\treturn (T) first.getNext().getData();\r\n\t\t} else {\r\n\t\t\t// das ist der Standardfall solange der nicht beim vorletzten Knoten\r\n\t\t\t// angekommen ist.\r\n\t\t\taktu = aktu.getPrevious();\r\n\t\t\treturn (T) aktu.getNext().getData();\r\n\t\t}\r\n\r\n\t}",
"public String getBackwardNode() {\r\n\t\ttry {\r\n\t\t\treturn path.getPreviousNode(procNode);\r\n\t\t} catch (Exception e) {return null; /* In case of an error!*/}\r\n\t}",
"@Override\n public Move createUndoMove(final ScoreDirector scoreDirector) {\n return null;\n }",
"public boolean isUndoEnabled() {\n return undoEnabled;\n }",
"@Override\n\tpublic void undo() {\n\t\tthis.list.delete(shape);\n\n\t}",
"public String getNextUndoAction() {\n/* 850 */ String result = \"\";\n/* 851 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled() || this.mPdfViewCtrl.getDoc() == null) {\n/* 852 */ return result;\n/* */ }\n/* */ \n/* 855 */ removeUnsafeUndoRedoInfo(true);\n/* 856 */ String info = null;\n/* 857 */ JSONObject jsonObj = null;\n/* */ try {\n/* 859 */ info = this.mPdfViewCtrl.getNextUndoInfo();\n/* 860 */ if (sDebug)\n/* 861 */ Log.d(TAG, \"next undo: \" + info); \n/* 862 */ jsonObj = new JSONObject(info);\n/* 863 */ if (jsonObj.has(\"Action\")) {\n/* 864 */ String action = jsonObj.getString(\"Action\");\n/* 865 */ if (this.mContext != null && !Utils.isNullOrEmpty(action) && isValidAction(this.mContext, action)) {\n/* 866 */ String strUndo = this.mContext.getResources().getString(R.string.undo);\n/* 867 */ result = strUndo + \": \" + action;\n/* */ } \n/* */ } \n/* 870 */ } catch (Exception e) {\n/* 871 */ if (info == null || !info.equals(\"state not found\")) {\n/* 872 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next undo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 877 */ if (Utils.isNullOrEmpty(result) && jsonObj != null) {\n/* */ try {\n/* 879 */ if (jsonObj.has(\"label\")) {\n/* 880 */ String label = jsonObj.getString(\"label\");\n/* 881 */ if (!label.equals(\"initial\")) {\n/* 882 */ result = this.mContext.getResources().getString(R.string.undo) + \"...\";\n/* */ }\n/* */ } \n/* 885 */ } catch (Exception e) {\n/* 886 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }\n/* */ \n/* 890 */ return result;\n/* */ }",
"public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}",
"public Node<T> getPrevNode() {\n\t\treturn prevNode;\n\t}",
"public boolean undo() {\n if(undoStack.peek()!=null) {\n DrawingChange change = undoStack.pop();\n drawingArray[change.x][change.y] = change.prevChar;\n redoStack.push(change);\n return true;\n }\n return false;\n }",
"void undo();",
"public FeatureCollection undoLastEdit(){\n if (lastEditType==EDIT_NONE){\n //don't undo anything, fcLast is empty\n } else if (lastEditType==EDIT_ADD){\n //remove the added features\n removeAll(fcLastEdits);\n } else if (lastEditType==EDIT_REMOVE){\n //add the removed features\n addAll(fcLastEdits);\n }\n return fcLastEdits;\n }",
"public Boolean getShowUndoFlag() {\r\n return showUndoFlag;\r\n }",
"public String getUndoDescription(RefactoringSession refactoringSession) {\n if(refactoringSession == null) {\n refactoringSession = getLastUndo();\n }\n final RefactoringSession session = refactoringSession;\n LinkedList<UndoItem> undoitems = undoList.get(session);\n if (undoitems == null) {\n return null;\n }\n return descriptionMap.get(undoitems);\n }",
"public String getRedoPresentationName() {\n throw new UnsupportedOperationException(\"The getRedoPresentationName() method is not supported.\");\n }",
"public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}",
"@Override\n\tpublic UpdateContainer undoIt(Workspace workspace) {\n\t\treturn null;\n\t}",
"public Node getPrev() {\n return null;\n }",
"protected long getUndoModificationStamp() {\n \t\t\treturn fUndoModificationStamp;\n \t\t}",
"public State getPreviousState()\r\n\t{\r\n\t\treturn previousState;\r\n\t}",
"public TreeNode getPreviousSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index > 0) {\r\n return parent.children.get(index - 1);\r\n }\r\n }\r\n\r\n return null;\r\n }",
"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}",
"public AStarNode getPrevious() {\n return previous;\n }",
"protected abstract void internalUndo();",
"public DrawingCommand getLastCommand() {\r\n\t\tint i = this.commands.size() - 1;\r\n\t\tif (i >= 0) {\r\n\t\t\treturn this.commands.get(this.commands.size() - 1);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Token getPreviousToken() {\n return previousToken;\n }",
"public DSAGraphNode<E> getPrevious()\n {\n return previous;\n }",
"public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}",
"public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}",
"public Chord getPreviousChordInVoice ()\r\n {\r\n return voice.getPreviousChord(this);\r\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public DoublyLinkedNode<E> getPrevious() {\n return prevNode;\n }",
"public PieceOrientation previous() {\n PieceOrientation[] PieceOrientations = this.values();\n int current = value;\n int previousIndex = (current + PieceOrientations.length - 1) % PieceOrientations.length;\n return PieceOrientations[previousIndex];\n }",
"@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }",
"@Override\n\tpublic Node getPreviousSibling() {\n\t\treturn null;\n\t}",
"public Node getPrevious() {\n return previous;\n }",
"public void onUndo(TableroInmutable tablero) {\r\n\t\tthis.tablero.undo(tablero);\r\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic E previous() {\n\t\t\tcaret = caret.prev();\r\n\t\t\tif (caret == null)\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\tnextIndex--;\r\n\t\t\treturn caret.n.data[caret.idx];\r\n\t\t}",
"public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}",
"public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }",
"public interface UndoableEdit {\n /**\n * Undo the edit that was made.\n */\n public void undo() throws CannotUndoException;\n\n /**\n * True if it is still possible to undo this operation\n */\n public boolean canUndo();\n\n /**\n * Re-apply the edit, assuming that it has been undone.\n */\n public void redo() throws CannotRedoException;\n\n /**\n * True if it is still possible to redo this operation\n */\n public boolean canRedo();\n\n /**\n * May be sent to inform an edit that it should no longer be\n * used. This is a useful hook for cleaning up state no longer\n * needed once undoing or redoing is impossible--for example,\n * deleting file resources used by objects that can no longer be\n * undeleted. UndoManager calls this before it dequeues edits.\n *\n * Note that this is a one-way operation. There is no \"undie\"\n * method.\n *\n * @see CompoundEdit#die\n */\n public void die();\n\n /**\n * This UndoableEdit should absorb anEdit if it can. Return true\n * if anEdit has been incoporated, false if it has not.\n *\n * <p>Typically the receiver is already in the queue of a\n * UndoManager (or other UndoableEditListener), and is being\n * given a chance to incorporate anEdit rather than letting it be\n * added to the queue in turn.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n */\n public boolean addEdit(UndoableEdit anEdit);\n\n /**\n * Return true if this UndoableEdit should replace anEdit. The\n * receiver should incorporate anEdit's state before returning true.\n *\n * <p>This message is the opposite of addEdit--anEdit has typically\n * already been queued in a UndoManager (or other\n * UndoableEditListener), and the receiver is being given a chance\n * to take its place.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n */\n public boolean replaceEdit(UndoableEdit anEdit);\n\n /**\n * Return false if this edit is insignificant--for example one\n * that maintains the user's selection, but does not change any\n * model state. This status can be used by an UndoableEditListener\n * (like UndoManager) when deciding which UndoableEdits to present\n * to the user as Undo/Redo options, and which to perform as side\n * effects of undoing or redoing other events.\n */\n public boolean isSignificant();\n\n /**\n * Provide a localized, human readable description of this edit\n * suitable for use in, say, a change log.\n */\n public String getPresentationName();\n\n /**\n * Provide a localized, human readable description of the undoable\n * form of this edit, e.g. for use as an Undo menu item. Typically\n * derived from getDescription();\n */\n public String getUndoPresentationName();\n\n /**\n * Provide a localized, human readable description of the redoable\n * form of this edit, e.g. for use as a Redo menu item. Typically\n * derived from getPresentationName();\n */\n public String getRedoPresentationName();\n}",
"public node getPrevious() {\n\t\t\treturn previous;\n\t\t}",
"public void undoMove();",
"public AbstractPathElement<V, E> getPrevPathElement()\r\n/* */ {\r\n/* 188 */ return this.prevPathElement;\r\n/* */ }",
"public String getPrevCommandString() {\n if (this.history.size() == 0) {\n return \"\";\n }\n\n if (this.currIndex <= 0) {\n return this.history.get(0);\n }\n\n this.currIndex -= 1;\n return this.history.get(this.currIndex);\n }",
"public Node<T> previous() {\r\n return previous;\r\n }",
"public MyNode<? super E> getPrevious()\n\t{\n\t\treturn this.previous;\n\t}",
"@Override\r\n\t\tpublic Node getPreviousSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"protected MigrationEditorOperation getEditor() {\n IEditorPart editorPart = PluginUtil.getActiveEditor();\n if (editorPart instanceof MigrationEditorOperation) {\n return (MigrationEditorOperation) editorPart;\n }\n return null;\n }",
"public void undo() {\n\t\t\r\n\t}",
"public int getUndoStackCount() {\n\t\treturn undoStack.size();\n\t}",
"public T getOffspring(T target) {\r\n if (target == tree[0]) {\r\n return null;\r\n }\r\n\r\n int tarIndex = (getIndex(target) - 1) / 2;\r\n try {\r\n return tree[tarIndex];\r\n }\r\n catch (ElementNotFoundException exception) {\r\n System.out.println(\"The parent does not exist\");\r\n return null;\r\n }\r\n }",
"public Node<T> getPrev() {\n\t\treturn prev;\n\t}",
"public synchronized UndoableEdit[] getUndoableEdits() {\n int size = edits.size();\n Vector v = new Vector(size);\n for (int i=size-1;i>=0;i--) {\n UndoableEdit u = (UndoableEdit)edits.elementAt(i);\n if (u.canUndo() && u.isSignificant())\n v.addElement(u);\n }\n UndoableEdit[] array = new UndoableEdit[v.size()];\n v.copyInto(array);\n return array;\n}",
"public OsmDataLayer getEditLayer() {\n\t\treturn null;\n\t}",
"protected EditPart calculateTargetEditPart() {\t\n\t\tEditPart ep = getViewer().findObjectAt(getDropLocation());\n\t\tif (ep instanceof CrosstabEditPart) {\n\t\t\treturn ep;\n\t\t}\n\t\treturn null;\n\t}",
"public boolean canUndo();",
"public boolean canUndo();",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getLastRow()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(LASTROW$16, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public ShapeCommand pop() {\r\n\t\tShapeCommand temp = this.items.get(this.items.size()-1);\r\n\t\tthis.items.remove(this.items.size()-1);\r\n\t\treturn temp;\r\n\t}",
"public DoubleNode<T> getPrevious()\n {\n\n return previous;\n }",
"public static Previous getPreviousWindow() {\n\t\treturn previousWindow;\n\t}"
] |
[
"0.70442665",
"0.6935561",
"0.6457417",
"0.6457417",
"0.6207434",
"0.61713713",
"0.6058822",
"0.59978276",
"0.586412",
"0.5812453",
"0.5633334",
"0.5522931",
"0.5405861",
"0.53928494",
"0.5386238",
"0.53253156",
"0.5314404",
"0.5314404",
"0.5310419",
"0.52889705",
"0.5281402",
"0.52800965",
"0.5250852",
"0.52463394",
"0.5239142",
"0.5223505",
"0.52146447",
"0.5178083",
"0.5156255",
"0.512636",
"0.5126251",
"0.51147276",
"0.5099315",
"0.5094216",
"0.5091876",
"0.50869465",
"0.50732064",
"0.5059853",
"0.5040659",
"0.50403607",
"0.50376046",
"0.50284266",
"0.50269234",
"0.5024938",
"0.50245106",
"0.5016297",
"0.50092465",
"0.50086784",
"0.50011814",
"0.49936652",
"0.49910933",
"0.4958539",
"0.49538803",
"0.49488008",
"0.49467748",
"0.49334252",
"0.4932458",
"0.49199015",
"0.49143243",
"0.49100816",
"0.4908547",
"0.48850092",
"0.48765606",
"0.4874428",
"0.4866245",
"0.4857224",
"0.48547333",
"0.4846694",
"0.48388907",
"0.48272085",
"0.48223478",
"0.48189488",
"0.48178944",
"0.48176736",
"0.48128003",
"0.4806118",
"0.48027426",
"0.4795109",
"0.4791471",
"0.47912863",
"0.47899628",
"0.47898182",
"0.47891623",
"0.4787228",
"0.47833207",
"0.4779181",
"0.47758323",
"0.4772657",
"0.47667524",
"0.4741787",
"0.47360834",
"0.47300586",
"0.4728806",
"0.47232902",
"0.47001368",
"0.47001368",
"0.46956247",
"0.469364",
"0.4687371",
"0.46859488"
] |
0.7579123
|
0
|
Undoer convenience sets title of next registered undo.
|
public void undoerSetUndoTitle(String aTitle) { Undoer u = getUndoer(); if(u!=null) u.setUndoTitle(aTitle); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}",
"public String getUndoPresentationName();",
"public String getUndoPresentationName();",
"void undoPreviousAction() throws NothingToUndoException;",
"public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"public void resetTitle ( ) {\n\t\texecute ( handle -> handle.resetTitle ( ) );\n\t}",
"public final void undo() {\n\t\tthis.historyManager.undo();\n\t}",
"public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }",
"public void undo() {\n }",
"public void undoAction(){}",
"public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }",
"public void undo() throws CannotUndoException;",
"public Undoer getUndoer() { return _parent!=null? _parent.getUndoer() : null; }",
"public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}",
"public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}",
"protected abstract void internalUndo();",
"private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }",
"public void prev()\n {\n if (mHistoryIdx == 0) {\n return;\n }\n\n mCommandList.get(--mHistoryIdx).undo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }",
"public String getUndoPresentationName() {\n throw new UnsupportedOperationException(\"The getUndoPresentationName() method is not supported.\");\n }",
"public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }",
"public void onUndo(TableroInmutable tablero) {\r\n\t\tthis.tablero.undo(tablero);\r\n\t\t\r\n\t}",
"@Override\n public void undo(int numToUndo) {\n }",
"public abstract void undo();",
"public void undo() {\n\t\t\r\n\t}",
"public void resetTitle();",
"public void undoLast() {\t\t\n\t\tCommand command = undoStack.pop();\n\t\tcommand.undo();\n\t}",
"@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }",
"void undo();",
"void redoPreviousAction() throws NothingToRedoException;",
"@Override\n T undo();",
"public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }",
"public void undo() {\r\n pop( true );\r\n announce( null );\r\n }",
"public void setTitle(String t)\n {\n title = t;\n }",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void undoerEnable() { Undoer u = getUndoer(); if(u!=null) u.enable(); }",
"public String getUndoInformation() {\n return previousActionUndoString;\n }",
"public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public void onUndo() {\n game.undoLastTurn(player1);\n game.undoLastTurn(computer);\n if (player1.getRollCount() == 0 && computer.getRollCount() == 0) {\n setDefault(\"player\");\n setDefault(\"computer\");\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n } else {\n updateFields(\"player\");\n updateFields(\"computer\");\n }\n }",
"public void setTitle(java.lang.String title);",
"public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"public ReadOnlyNotebook undo() {\n statePointer--;\n ReadOnlyNotebook previousCopy = mementos.get(statePointer).getState();\n return previousCopy;\n }",
"@Override\r\n\tpublic void undo() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].undo();\r\n\t\t}\r\n\t}",
"@Override\n public void undo(History history) throws CommandExecutionException {\n try {\n transactionManager.deleteTransaction((Integer) history.getData(\"transactionId\"));\n history.setUndone(true);\n String oldMessage = history.getDisplayString();\n String newMessage = oldMessage + \" has been undone\";\n history.setDisplayString(newMessage);\n gateway.update(history, History.class);\n } catch (Exception e) {\n throw new CommandExecutionException(e);\n }\n }",
"UndoableTransaction(RitUndoManager manager, String name, String details,\r\n BackupRepository repository) {\r\n this.manager = manager;\r\n this.name = name;\r\n this.repository = repository;\r\n// this.getRepository().clean();\r\n this.details = details;\r\n\r\n if (RitUndoManager.debug) {\r\n log.debug(\"Created UNDO \" + getPresentationName() + \" \" +\r\n details + \" with repository on \" + repository.getBackupDir());\r\n }\r\n }",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"private void setNewTitle(int index)\r\n {\r\n debug(\"setNewTitle(\" + index + \") - on Tab Panel\");\r\n // Get a copy of the Old Title\r\n String oldTitle = tabPane.getTitleAt(index);\r\n String newTitle = null;\r\n\r\n // Now we want to present a Dialog box to get a new title\r\n newTitle =\r\n JOptionPane.showInputDialog(\r\n this.getModulePanel(),\r\n \"Please enter a new title for the list,\\nCurrent name is [\" + oldTitle + \"]\",\r\n \"Name Watch List\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n\r\n // If the Dialog box returned null or empy string then our new title will\r\n // the existing tab title\r\n if (newTitle == null || \"\".equals(newTitle.trim()))\r\n {\r\n newTitle = oldTitle;\r\n }\r\n\r\n // Build a defailt label for the TabPane\r\n String watchListName = getString(\"WatchListTableModule.edit.watch_list_basic_name\") + index;\r\n\r\n // Set the Propery file to reflect the new title\r\n appProps.setProperty(watchListName, newTitle);\r\n\r\n // set the Name of the title for the Tab \r\n tabPane.setTitleAt(index, newTitle);\r\n\r\n debug(\"setNewTitle(\" + index + \") - on Tab Panel to [\" + newTitle + \"] - complete\");\r\n }",
"@Override\n\tpublic void undo()\n\t{\n\t}",
"@Override\n\tpublic void onUndoStart(ReadOnlyBoard board, Counter nextPlayer,\n\t\t\tboolean undoPossible) {\n\n\t}",
"@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"void setTitle(java.lang.String title);",
"@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}",
"public ActionUndo(GraphModel model) {\n super(\"Undo\");\n this.model = model;\n //putValue(Action.MNEMONIC_KEY, KeyEvent.VK_E);\n setEnabled(false);\n model.addObserver(this);\n }",
"@Override\n public void setTitle(String title) throws IOException {\n title = title.replace(\"\\007\", \"\");\n writeOSCSequenceToTerminal((\"2;\" + title + \"\\007\").getBytes());\n }",
"@Override\n public void undo() {\n\n }",
"@Override\n public void undo() {\n\n }",
"private void addUndoButton() {\n\t\tundoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.UNDO);\n undoButton.setEnabled(false);\n\t\ttoolPanel.add(undoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().undoCommand();\n\t\t\t}\n\n\t\t});\n\t}",
"public void undo(String dummy) {\n _game.undo();\n _display.repaint();\n updateScore();\n }",
"public static void undoButton(){\n\t\tundoMoveClass.undoButtonHelper(board);\n\t}",
"@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}",
"public String getNextUndoAction() {\n/* 850 */ String result = \"\";\n/* 851 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled() || this.mPdfViewCtrl.getDoc() == null) {\n/* 852 */ return result;\n/* */ }\n/* */ \n/* 855 */ removeUnsafeUndoRedoInfo(true);\n/* 856 */ String info = null;\n/* 857 */ JSONObject jsonObj = null;\n/* */ try {\n/* 859 */ info = this.mPdfViewCtrl.getNextUndoInfo();\n/* 860 */ if (sDebug)\n/* 861 */ Log.d(TAG, \"next undo: \" + info); \n/* 862 */ jsonObj = new JSONObject(info);\n/* 863 */ if (jsonObj.has(\"Action\")) {\n/* 864 */ String action = jsonObj.getString(\"Action\");\n/* 865 */ if (this.mContext != null && !Utils.isNullOrEmpty(action) && isValidAction(this.mContext, action)) {\n/* 866 */ String strUndo = this.mContext.getResources().getString(R.string.undo);\n/* 867 */ result = strUndo + \": \" + action;\n/* */ } \n/* */ } \n/* 870 */ } catch (Exception e) {\n/* 871 */ if (info == null || !info.equals(\"state not found\")) {\n/* 872 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next undo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 877 */ if (Utils.isNullOrEmpty(result) && jsonObj != null) {\n/* */ try {\n/* 879 */ if (jsonObj.has(\"label\")) {\n/* 880 */ String label = jsonObj.getString(\"label\");\n/* 881 */ if (!label.equals(\"initial\")) {\n/* 882 */ result = this.mContext.getResources().getString(R.string.undo) + \"...\";\n/* */ }\n/* */ } \n/* 885 */ } catch (Exception e) {\n/* 886 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }\n/* */ \n/* 890 */ return result;\n/* */ }",
"private void changeTitle(SingleDocumentModel model) {\n\t\tsetTitleAt(models.indexOf(model), model.getFilePath().getFileName().toString());\n\t}",
"@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_esfTournament.setTitle(title);\n\t}",
"public String getRedoPresentationName();",
"public String getRedoPresentationName();",
"public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }",
"public void undo() {\n setExecuted(false);\n }",
"private void prepareUndoRedo()\n {\n undoManager = new UndoManager();\n \n doc = textArea.getDocument();\n doc.addUndoableEditListener(new UndoableEditListener(){\n public void undoableEditHappened(UndoableEditEvent evt)\n {\n undoManager.addEdit(evt.getEdit());\n }\n });\n \n textArea.getActionMap().put(\"Undo\", new AbstractAction(\"Undo\"){\n public void actionPerformed(ActionEvent evt)\n {\n try{\n if(undoManager.canUndo())\n {\n undoManager.undo();\n }\n }catch (CannotUndoException exc)\n {\n System.out.println(\"Erro ao usar Undo :(\");\n }\n }\n });\n textArea.getInputMap().put(KeyStroke.\n getKeyStroke(\"control Z\"), \"Undo\");\n \n textArea.getActionMap().put(\"Redo\", new AbstractAction(\"Redo\"){\n public void actionPerformed(ActionEvent evt)\n {\n try{\n if(undoManager.canRedo())\n {\n undoManager.redo();\n }\n }catch (CannotRedoException exc)\n {\n System.out.println(\"Erro ao usar Redo :(\");\n }\n }\n });\n textArea.getInputMap().put(KeyStroke.\n getKeyStroke(\"control Y\"), \"Redo\"); \n }",
"@Override\r\n\tpublic void undo(RechercheDetailleeAction arg0, RechercheDetailleeResult arg1, ExecutionContext arg2) throws ActionException {\n\r\n\t}",
"public void undo() {\n // only check the action can be undo or not\n if (!this.canUndo()) {\n throw new CannotUndoException();\n }\n }",
"public void setTitle(String title) { this.title = title; }",
"void setTitle(@NonNull String title);",
"public void setUndoDescription(String desc) {\n description = desc;\n }",
"@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}",
"public void setTitle(Title title) {\r\n this.title = title;\r\n }",
"@Override\r\n public void undo() {\n\r\n }",
"public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}",
"private void prevHistoryEntry()\n {\n if (this.historyPos > 0) {\n this.historyPos--;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n }\n }",
"public void setTitle(java.lang.Object title) {\n this.title = title;\n }",
"public void undoMove();",
"public void setTitleFormula(String formula) {\n\t CTTitle ctTitle;\n\t if (chart.isSetTitle()) {\n\t ctTitle = chart.getTitle();\n\t } else {\n\t ctTitle = chart.addNewTitle();\n\t }\n\n\t CTTx tx;\n\t if (ctTitle.isSetTx()) {\n\t tx = ctTitle.getTx();\n\t } else {\n\t tx = ctTitle.addNewTx();\n\t }\n\n\t if (tx.isSetRich()) {\n\t tx.unsetRich();\n\t }\n\t \n\t CTStrRef strRef;\n\t if (tx.isSetStrRef()) {\n\t strRef = tx.getStrRef();\n\t } else {\n\t strRef = tx.addNewStrRef();\n\t }\n\t \n\t strRef.setF(formula);\n\t}",
"public UndoStack() {\n super();\n undoPointer = -1;\n }",
"public void undo() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\teditor.selectPage((CompositeActor) parent);\n\t\t\t\tif (child instanceof NamedObj) {\n\t\t\t\t\tComponentUtility.setContainer(child, null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public final void undo(boolean notify) {\n\t\tif (game.history.peek() != this)\n\t\t\tthrow new RuntimeException(MessageUtil.getMessage(\"INVALID_UNDO\", getClass()));\n\t\tinternalUndo();\n\t\tgame.setCurrentPlayer(player);\n\t\tif (!conseq && notify) {\n\t\t\tgame.notifyEvent(\"ud\"); //for events\n\t\t\tgame.notifyEvent(\"chg\"); //to update the display\n\t\t}\n\t}",
"protected abstract void setTitle();",
"void processUndo() {\r\n boardManager.undo();\r\n }",
"public void undoableEditHappened() { }",
"public void undoableEditHappened() { }",
"@Override\n public void setTitle(String title) {\n this.title = title;\n }",
"private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }",
"@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}"
] |
[
"0.6199788",
"0.6172707",
"0.6172707",
"0.5969414",
"0.5959852",
"0.595316",
"0.59304774",
"0.5926532",
"0.57822675",
"0.5781806",
"0.57677096",
"0.57637364",
"0.5757699",
"0.5705374",
"0.57012916",
"0.56986296",
"0.56550556",
"0.5646324",
"0.56396866",
"0.561076",
"0.556475",
"0.5562801",
"0.55463254",
"0.55461615",
"0.5545678",
"0.5532315",
"0.5523649",
"0.55152977",
"0.5501112",
"0.5496623",
"0.5496567",
"0.54847735",
"0.543777",
"0.5421497",
"0.5421497",
"0.5421497",
"0.5416398",
"0.5399557",
"0.53813905",
"0.53750336",
"0.5332842",
"0.53282315",
"0.53226197",
"0.53226197",
"0.53226197",
"0.53226197",
"0.53226197",
"0.53166205",
"0.5306595",
"0.5303608",
"0.52929246",
"0.5287041",
"0.5287041",
"0.5287041",
"0.52772677",
"0.5276579",
"0.5268514",
"0.52644265",
"0.5263314",
"0.52631104",
"0.52508646",
"0.5247905",
"0.5240935",
"0.5236419",
"0.5236419",
"0.5209668",
"0.52082276",
"0.51902854",
"0.5189299",
"0.5182085",
"0.5167066",
"0.5163005",
"0.5157197",
"0.5157197",
"0.5156803",
"0.51515436",
"0.5144479",
"0.5136422",
"0.5117959",
"0.5114662",
"0.5080178",
"0.5076526",
"0.50568795",
"0.50470716",
"0.5039448",
"0.503807",
"0.5031675",
"0.5029193",
"0.50291264",
"0.5019465",
"0.5015727",
"0.5005593",
"0.50049794",
"0.5002689",
"0.4991926",
"0.49866712",
"0.49866712",
"0.4985083",
"0.49794382",
"0.4979165"
] |
0.79372585
|
0
|
Undoer convenience disable the undoer.
|
public void undoerDisable() { Undoer u = getUndoer(); if(u!=null) u.disable(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void undoerEnable() { Undoer u = getUndoer(); if(u!=null) u.enable(); }",
"@Override\n public boolean isUndo() {\n return false;\n }",
"@Override\n public boolean canUndo() {\n return false;\n }",
"public void setUndoEnabled(boolean undoEnabled) {\n this.undoEnabled = undoEnabled;\n }",
"@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}",
"public void undo() {\n setExecuted(false);\n }",
"public boolean isUndoable() {\n\t\treturn false;\n\t}",
"public void undo() throws CannotUndoException;",
"public void setUndoEnabled(boolean enabled){\n mUndoEnabled = enabled;\n if(mText != null){\n mText.setUndoEnabled(enabled);\n }\n }",
"public void undo() {\n }",
"protected abstract void internalUndo();",
"@Override\n\tpublic void onUndoNotPossible() {\n\n\t}",
"public boolean canUndo();",
"public boolean canUndo();",
"@Override\n void undo() {\n assert false;\n }",
"public void undoAction(){}",
"public synchronized void removeUndoableEditListener(UndoableEditListener l) {\n support.removeUndoableEditListener(l);\n}",
"public boolean isUndoEnabled() {\n return undoEnabled;\n }",
"@Override\n T undo();",
"void undo();",
"public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }",
"public void undo() {\n // only check the action can be undo or not\n if (!this.canUndo()) {\n throw new CannotUndoException();\n }\n }",
"public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"@Override\n\tpublic void undo() {\n\t\tlight.off();\n\t}",
"public void onUndo(TableroInmutable tablero) {\r\n\t\tthis.tablero.undo(tablero);\r\n\t\t\r\n\t}",
"public void undo() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}",
"public boolean canUndo() {\n return this.isUndoable;\n }",
"public void onUndo() {\n game.undoLastTurn(player1);\n game.undoLastTurn(computer);\n if (player1.getRollCount() == 0 && computer.getRollCount() == 0) {\n setDefault(\"player\");\n setDefault(\"computer\");\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n } else {\n updateFields(\"player\");\n updateFields(\"computer\");\n }\n }",
"public abstract void undo();",
"@Override\n public void undo() {\n\n }",
"@Override\n public void undo() {\n\n }",
"public void setNotUndoablePurgesUndoHistory(boolean arg0) {\n\t\t\n\t}",
"public void disable();",
"void disable(final Op op);",
"public ActionUndo(GraphModel model) {\n super(\"Undo\");\n this.model = model;\n //putValue(Action.MNEMONIC_KEY, KeyEvent.VK_E);\n setEnabled(false);\n model.addObserver(this);\n }",
"public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo()\n\t{\n\t}",
"public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }",
"public Undoer getUndoer() { return _parent!=null? _parent.getUndoer() : null; }",
"public void discardAllUndoableEdits() {\n undoManager.discardAllEdits();\n }",
"public interface UndoableEdit {\n /**\n * Undo the edit.\n *\n * @throws CannotUndoException if this edit can not be undone\n */\n public void undo() throws CannotUndoException;\n\n /**\n * Returns true if this edit may be undone.\n *\n * @return true if this edit may be undone\n */\n public boolean canUndo();\n\n /**\n * Re-applies the edit.\n *\n * @throws CannotRedoException if this edit can not be redone\n */\n public void redo() throws CannotRedoException;\n\n /**\n * Returns true if this edit may be redone.\n *\n * @return true if this edit may be redone\n */\n public boolean canRedo();\n\n /**\n * Informs the edit that it should no longer be used. Once an\n * <code>UndoableEdit</code> has been marked as dead it can no longer\n * be undone or redone.\n * <p>\n * This is a useful hook for cleaning up state no longer\n * needed once undoing or redoing is impossible--for example,\n * deleting file resources used by objects that can no longer be\n * undeleted. <code>UndoManager</code> calls this before it dequeues edits.\n * <p>\n * Note that this is a one-way operation. There is no \"un-die\"\n * method.\n *\n * @see CompoundEdit#die\n */\n public void die();\n\n /**\n * Adds an <code>UndoableEdit</code> to this <code>UndoableEdit</code>.\n * This method can be used to coalesce smaller edits into a larger\n * compound edit. For example, text editors typically allow\n * undo operations to apply to words or sentences. The text\n * editor may choose to generate edits on each key event, but allow\n * those edits to be coalesced into a more user-friendly unit, such as\n * a word. In this case, the <code>UndoableEdit</code> would\n * override <code>addEdit</code> to return true when the edits may\n * be coalesced.\n * <p>\n * A return value of true indicates <code>anEdit</code> was incorporated\n * into this edit. A return value of false indicates <code>anEdit</code>\n * may not be incorporated into this edit.\n * <p>Typically the receiver is already in the queue of a\n * <code>UndoManager</code> (or other <code>UndoableEditListener</code>),\n * and is being given a chance to incorporate <code>anEdit</code>\n * rather than letting it be added to the queue in turn.</p>\n *\n * <p>If true is returned, from now on <code>anEdit</code> must return\n * false from <code>canUndo</code> and <code>canRedo</code>,\n * and must throw the appropriate exception on <code>undo</code> or\n * <code>redo</code>.</p>\n *\n * @param anEdit the edit to be added\n * @return true if <code>anEdit</code> may be incorporated into this\n * edit\n */\n public boolean addEdit(UndoableEdit anEdit);\n\n /**\n * Returns true if this <code>UndoableEdit</code> should replace\n * <code>anEdit</code>. This method is used by <code>CompoundEdit</code>\n * and the <code>UndoManager</code>; it is called if\n * <code>anEdit</code> could not be added to the current edit\n * (<code>addEdit</code> returns false).\n * <p>\n * This method provides a way for an edit to replace an existing edit.\n * <p>This message is the opposite of addEdit--anEdit has typically\n * already been queued in an <code>UndoManager</code> (or other\n * UndoableEditListener), and the receiver is being given a chance\n * to take its place.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n *\n * @param anEdit the edit that replaces the current edit\n * @return true if this edit should replace <code>anEdit</code>\n */\n public boolean replaceEdit(UndoableEdit anEdit);\n\n /**\n * Returns true if this edit is considered significant. A significant\n * edit is typically an edit that should be presented to the user, perhaps\n * on a menu item or tooltip. The <code>UndoManager</code> will undo,\n * or redo, all insignificant edits to the next significant edit.\n *\n * @return true if this edit is significant\n */\n public boolean isSignificant();\n\n /**\n * Returns a localized, human-readable description of this edit, suitable\n * for use in a change log, for example.\n *\n * @return description of this edit\n */\n public String getPresentationName();\n\n /**\n * Returns a localized, human-readable description of the undoable form of\n * this edit, suitable for use as an Undo menu item, for example.\n * This is typically derived from <code>getPresentationName</code>.\n *\n * @return a description of the undoable form of this edit\n */\n public String getUndoPresentationName();\n\n /**\n * Returns a localized, human-readable description of the redoable form of\n * this edit, suitable for use as a Redo menu item, for example. This is\n * typically derived from <code>getPresentationName</code>.\n *\n * @return a description of the redoable form of this edit\n */\n public String getRedoPresentationName();\n}",
"public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }",
"@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}",
"@Override\r\n public void undo() {\n\r\n }",
"@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }",
"void setUndoRedoMenu() {\r\n\t\tui.editUndo.setEnabled(undoManager.canUndo());\r\n\t\tui.editRedo.setEnabled(undoManager.canRedo());\r\n\t\tui.toolbarUndo.setEnabled(undoManager.canUndo());\r\n\t\tui.toolbarRedo.setEnabled(undoManager.canRedo());\r\n\t}",
"public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }",
"public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }",
"void undoPreviousAction() throws NothingToUndoException;",
"public final void undo() {\n\t\tthis.historyManager.undo();\n\t}",
"@Override\n\t/**\n\t * @return isUndoAble\n\t * \t\t\ttells whether the function is undo able or not;\n\t */\n\tpublic boolean isUndoAble() {\n\t\treturn isUndoAble;\n\t}",
"void disable();",
"void disable();",
"public void undo() {\n\t\tlight.on();\n\t}",
"public void disable(){\r\n\t\tthis.activ = false;\r\n\t}",
"public Boolean getShowUndoFlag() {\r\n return showUndoFlag;\r\n }",
"public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}",
"protected void undo(EventLog.Mutator mutator, Game game) {\n\t\tif (!executed) {\n\t\t\tthrow new IllegalArgumentException(\"already undone\");\n\t\t}\n\t\tundoer.accept(mutator, game);\n\t\texecuted = false;\n\t}",
"@Override\n public void undo(int numToUndo) {\n }",
"@Override\n public boolean isRedo(){\n return false;\n }",
"public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}",
"public UndoManager getUndoManager() {\n return undoManager;\n }",
"public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}",
"private void addUndoButton() {\n\t\tundoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.UNDO);\n undoButton.setEnabled(false);\n\t\ttoolPanel.add(undoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().undoCommand();\n\t\t\t}\n\n\t\t});\n\t}",
"public interface UndoableEdit {\n /**\n * Undo the edit that was made.\n */\n public void undo() throws CannotUndoException;\n\n /**\n * True if it is still possible to undo this operation\n */\n public boolean canUndo();\n\n /**\n * Re-apply the edit, assuming that it has been undone.\n */\n public void redo() throws CannotRedoException;\n\n /**\n * True if it is still possible to redo this operation\n */\n public boolean canRedo();\n\n /**\n * May be sent to inform an edit that it should no longer be\n * used. This is a useful hook for cleaning up state no longer\n * needed once undoing or redoing is impossible--for example,\n * deleting file resources used by objects that can no longer be\n * undeleted. UndoManager calls this before it dequeues edits.\n *\n * Note that this is a one-way operation. There is no \"undie\"\n * method.\n *\n * @see CompoundEdit#die\n */\n public void die();\n\n /**\n * This UndoableEdit should absorb anEdit if it can. Return true\n * if anEdit has been incoporated, false if it has not.\n *\n * <p>Typically the receiver is already in the queue of a\n * UndoManager (or other UndoableEditListener), and is being\n * given a chance to incorporate anEdit rather than letting it be\n * added to the queue in turn.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n */\n public boolean addEdit(UndoableEdit anEdit);\n\n /**\n * Return true if this UndoableEdit should replace anEdit. The\n * receiver should incorporate anEdit's state before returning true.\n *\n * <p>This message is the opposite of addEdit--anEdit has typically\n * already been queued in a UndoManager (or other\n * UndoableEditListener), and the receiver is being given a chance\n * to take its place.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n */\n public boolean replaceEdit(UndoableEdit anEdit);\n\n /**\n * Return false if this edit is insignificant--for example one\n * that maintains the user's selection, but does not change any\n * model state. This status can be used by an UndoableEditListener\n * (like UndoManager) when deciding which UndoableEdits to present\n * to the user as Undo/Redo options, and which to perform as side\n * effects of undoing or redoing other events.\n */\n public boolean isSignificant();\n\n /**\n * Provide a localized, human readable description of this edit\n * suitable for use in, say, a change log.\n */\n public String getPresentationName();\n\n /**\n * Provide a localized, human readable description of the undoable\n * form of this edit, e.g. for use as an Undo menu item. Typically\n * derived from getDescription();\n */\n public String getUndoPresentationName();\n\n /**\n * Provide a localized, human readable description of the redoable\n * form of this edit, e.g. for use as a Redo menu item. Typically\n * derived from getPresentationName();\n */\n public String getRedoPresentationName();\n}",
"public void disable() {\n operating = false;\n }",
"public ReadOnlyNotebook undo() {\n statePointer--;\n ReadOnlyNotebook previousCopy = mementos.get(statePointer).getState();\n return previousCopy;\n }",
"public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}",
"public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}",
"@Override\r\n\tpublic void disable() {\r\n\t\tthis.tablero.disable();\r\n\t\tthis.panel.disableWhileThinking();\r\n\t}",
"public void undoableEditHappened() { }",
"public void undoableEditHappened() { }",
"public void disable() {\n\t\tm_runner.disable();\n\t}",
"public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }",
"public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }",
"public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}",
"public void disableInputs();",
"protected abstract void disable();",
"void disable() {\n }",
"@Override\r\n\tpublic void undo() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].undo();\r\n\t\t}\r\n\t}",
"public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}",
"public void undo() {\n target.setCombatState( oldState );\n }",
"@Override\n\t/**\n\t * undo is irrelevant in this case\n\t */\n\tpublic Task[] undo() {\n\t\treturn null;\n\t}",
"private void fixEnabled(){\n setEnabled(graph.getUndoManager().canRedo());\n }",
"void disableMod();",
"public DBMaker disableTransactions() {\n this.disableTransactions = true;\n return this;\n }",
"@Override\r\n\tpublic void undo() {\n\t\tlight.on();\r\n\t}",
"@Override\n public boolean canRedo() {\n return false;\n }",
"@Override\r\n\tpublic void disable() {\n\t\tcurrentState.disable();\r\n\t}",
"@Override\n\tpublic boolean undo(Usuario usuario, List<Integer> params) {\n\t\treturn false;\n\t}",
"public UndoChart() {\n }",
"public UndoManager getUndoManager() {\n\t\treturn undoManager;\n\t}",
"@Override\n public Move createUndoMove(final ScoreDirector scoreDirector) {\n return null;\n }",
"public synchronized void addUndoableEditListener(UndoableEditListener l) {\n support.addUndoableEditListener(l);\n}",
"public boolean getNotUndoablePurgesUndoHistory() {\n\t\treturn false;\n\t}"
] |
[
"0.7388846",
"0.6838401",
"0.6808208",
"0.6725281",
"0.6696579",
"0.64883924",
"0.64648217",
"0.6376581",
"0.6320752",
"0.63094944",
"0.62916726",
"0.6285747",
"0.6277255",
"0.6277255",
"0.6272052",
"0.62532485",
"0.62513876",
"0.6175005",
"0.61719835",
"0.6161919",
"0.61514896",
"0.60800326",
"0.607847",
"0.6059259",
"0.6057385",
"0.604929",
"0.6035339",
"0.60060996",
"0.59869653",
"0.59686804",
"0.59326607",
"0.59326607",
"0.5924004",
"0.59076196",
"0.58972895",
"0.58651614",
"0.5831516",
"0.58266157",
"0.58266157",
"0.58266157",
"0.58213776",
"0.58106726",
"0.57988834",
"0.57973295",
"0.5774162",
"0.5771568",
"0.57661885",
"0.57633716",
"0.57407933",
"0.57399",
"0.57363087",
"0.5710964",
"0.5699626",
"0.5693457",
"0.5692274",
"0.5690672",
"0.56906575",
"0.56906575",
"0.56611854",
"0.5656166",
"0.5642311",
"0.5637026",
"0.56227595",
"0.56106466",
"0.56069434",
"0.5603976",
"0.5603078",
"0.5587392",
"0.5585096",
"0.5580515",
"0.55788493",
"0.55630946",
"0.5558255",
"0.5536981",
"0.55328214",
"0.5532208",
"0.5532208",
"0.5525456",
"0.55167145",
"0.5506124",
"0.54946595",
"0.5483376",
"0.54694945",
"0.5465958",
"0.5455264",
"0.54465896",
"0.5437885",
"0.5433199",
"0.541169",
"0.53927237",
"0.5388649",
"0.538124",
"0.53699964",
"0.5353275",
"0.5351822",
"0.5327166",
"0.53208935",
"0.53154063",
"0.5312703",
"0.5306784"
] |
0.85977966
|
0
|
Undoer convenience enables the undoer.
|
public void undoerEnable() { Undoer u = getUndoer(); if(u!=null) u.enable(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void undoerDisable() { Undoer u = getUndoer(); if(u!=null) u.disable(); }",
"protected abstract void internalUndo();",
"public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"@Override\n T undo();",
"public void undo() throws CannotUndoException;",
"public Undoer getUndoer() { return _parent!=null? _parent.getUndoer() : null; }",
"public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }",
"public void undoAction(){}",
"void undo();",
"public void undo() {\n }",
"public interface UndoableEdit {\n /**\n * Undo the edit.\n *\n * @throws CannotUndoException if this edit can not be undone\n */\n public void undo() throws CannotUndoException;\n\n /**\n * Returns true if this edit may be undone.\n *\n * @return true if this edit may be undone\n */\n public boolean canUndo();\n\n /**\n * Re-applies the edit.\n *\n * @throws CannotRedoException if this edit can not be redone\n */\n public void redo() throws CannotRedoException;\n\n /**\n * Returns true if this edit may be redone.\n *\n * @return true if this edit may be redone\n */\n public boolean canRedo();\n\n /**\n * Informs the edit that it should no longer be used. Once an\n * <code>UndoableEdit</code> has been marked as dead it can no longer\n * be undone or redone.\n * <p>\n * This is a useful hook for cleaning up state no longer\n * needed once undoing or redoing is impossible--for example,\n * deleting file resources used by objects that can no longer be\n * undeleted. <code>UndoManager</code> calls this before it dequeues edits.\n * <p>\n * Note that this is a one-way operation. There is no \"un-die\"\n * method.\n *\n * @see CompoundEdit#die\n */\n public void die();\n\n /**\n * Adds an <code>UndoableEdit</code> to this <code>UndoableEdit</code>.\n * This method can be used to coalesce smaller edits into a larger\n * compound edit. For example, text editors typically allow\n * undo operations to apply to words or sentences. The text\n * editor may choose to generate edits on each key event, but allow\n * those edits to be coalesced into a more user-friendly unit, such as\n * a word. In this case, the <code>UndoableEdit</code> would\n * override <code>addEdit</code> to return true when the edits may\n * be coalesced.\n * <p>\n * A return value of true indicates <code>anEdit</code> was incorporated\n * into this edit. A return value of false indicates <code>anEdit</code>\n * may not be incorporated into this edit.\n * <p>Typically the receiver is already in the queue of a\n * <code>UndoManager</code> (or other <code>UndoableEditListener</code>),\n * and is being given a chance to incorporate <code>anEdit</code>\n * rather than letting it be added to the queue in turn.</p>\n *\n * <p>If true is returned, from now on <code>anEdit</code> must return\n * false from <code>canUndo</code> and <code>canRedo</code>,\n * and must throw the appropriate exception on <code>undo</code> or\n * <code>redo</code>.</p>\n *\n * @param anEdit the edit to be added\n * @return true if <code>anEdit</code> may be incorporated into this\n * edit\n */\n public boolean addEdit(UndoableEdit anEdit);\n\n /**\n * Returns true if this <code>UndoableEdit</code> should replace\n * <code>anEdit</code>. This method is used by <code>CompoundEdit</code>\n * and the <code>UndoManager</code>; it is called if\n * <code>anEdit</code> could not be added to the current edit\n * (<code>addEdit</code> returns false).\n * <p>\n * This method provides a way for an edit to replace an existing edit.\n * <p>This message is the opposite of addEdit--anEdit has typically\n * already been queued in an <code>UndoManager</code> (or other\n * UndoableEditListener), and the receiver is being given a chance\n * to take its place.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n *\n * @param anEdit the edit that replaces the current edit\n * @return true if this edit should replace <code>anEdit</code>\n */\n public boolean replaceEdit(UndoableEdit anEdit);\n\n /**\n * Returns true if this edit is considered significant. A significant\n * edit is typically an edit that should be presented to the user, perhaps\n * on a menu item or tooltip. The <code>UndoManager</code> will undo,\n * or redo, all insignificant edits to the next significant edit.\n *\n * @return true if this edit is significant\n */\n public boolean isSignificant();\n\n /**\n * Returns a localized, human-readable description of this edit, suitable\n * for use in a change log, for example.\n *\n * @return description of this edit\n */\n public String getPresentationName();\n\n /**\n * Returns a localized, human-readable description of the undoable form of\n * this edit, suitable for use as an Undo menu item, for example.\n * This is typically derived from <code>getPresentationName</code>.\n *\n * @return a description of the undoable form of this edit\n */\n public String getUndoPresentationName();\n\n /**\n * Returns a localized, human-readable description of the redoable form of\n * this edit, suitable for use as a Redo menu item, for example. This is\n * typically derived from <code>getPresentationName</code>.\n *\n * @return a description of the redoable form of this edit\n */\n public String getRedoPresentationName();\n}",
"public static void undo () {\r\n\t\tCommand cmd = undoCommands.pop();\r\n\t\tcmd.undo();\r\n\t\tredoCommands.push(cmd);\r\n\t}",
"public abstract void undo();",
"@Override\n public boolean isUndo() {\n return false;\n }",
"@Override\n public boolean canUndo() {\n return false;\n }",
"public void undo() {\n if (!undos.isEmpty()) {\n Command toUndo = undos.removeLast();\n redos.addLast(toUndo);\n toUndo.undo();\n } \n }",
"public interface UndoableEdit {\n /**\n * Undo the edit that was made.\n */\n public void undo() throws CannotUndoException;\n\n /**\n * True if it is still possible to undo this operation\n */\n public boolean canUndo();\n\n /**\n * Re-apply the edit, assuming that it has been undone.\n */\n public void redo() throws CannotRedoException;\n\n /**\n * True if it is still possible to redo this operation\n */\n public boolean canRedo();\n\n /**\n * May be sent to inform an edit that it should no longer be\n * used. This is a useful hook for cleaning up state no longer\n * needed once undoing or redoing is impossible--for example,\n * deleting file resources used by objects that can no longer be\n * undeleted. UndoManager calls this before it dequeues edits.\n *\n * Note that this is a one-way operation. There is no \"undie\"\n * method.\n *\n * @see CompoundEdit#die\n */\n public void die();\n\n /**\n * This UndoableEdit should absorb anEdit if it can. Return true\n * if anEdit has been incoporated, false if it has not.\n *\n * <p>Typically the receiver is already in the queue of a\n * UndoManager (or other UndoableEditListener), and is being\n * given a chance to incorporate anEdit rather than letting it be\n * added to the queue in turn.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n */\n public boolean addEdit(UndoableEdit anEdit);\n\n /**\n * Return true if this UndoableEdit should replace anEdit. The\n * receiver should incorporate anEdit's state before returning true.\n *\n * <p>This message is the opposite of addEdit--anEdit has typically\n * already been queued in a UndoManager (or other\n * UndoableEditListener), and the receiver is being given a chance\n * to take its place.</p>\n *\n * <p>If true is returned, from now on anEdit must return false from\n * canUndo() and canRedo(), and must throw the appropriate\n * exception on undo() or redo().</p>\n */\n public boolean replaceEdit(UndoableEdit anEdit);\n\n /**\n * Return false if this edit is insignificant--for example one\n * that maintains the user's selection, but does not change any\n * model state. This status can be used by an UndoableEditListener\n * (like UndoManager) when deciding which UndoableEdits to present\n * to the user as Undo/Redo options, and which to perform as side\n * effects of undoing or redoing other events.\n */\n public boolean isSignificant();\n\n /**\n * Provide a localized, human readable description of this edit\n * suitable for use in, say, a change log.\n */\n public String getPresentationName();\n\n /**\n * Provide a localized, human readable description of the undoable\n * form of this edit, e.g. for use as an Undo menu item. Typically\n * derived from getDescription();\n */\n public String getUndoPresentationName();\n\n /**\n * Provide a localized, human readable description of the redoable\n * form of this edit, e.g. for use as a Redo menu item. Typically\n * derived from getPresentationName();\n */\n public String getRedoPresentationName();\n}",
"public boolean isUndoable() {\n\t\treturn false;\n\t}",
"public void onUndo(TableroInmutable tablero) {\r\n\t\tthis.tablero.undo(tablero);\r\n\t\t\r\n\t}",
"public void undo() {\n\t\t\r\n\t}",
"private void addUndoButton() {\n\t\tundoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.UNDO);\n undoButton.setEnabled(false);\n\t\ttoolPanel.add(undoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().undoCommand();\n\t\t\t}\n\n\t\t});\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n public void undo() {\n\n }",
"@Override\n public void undo() {\n\n }",
"@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}",
"@Override\n\tpublic void undo()\n\t{\n\t}",
"void undoPreviousAction() throws NothingToUndoException;",
"public boolean canUndo();",
"public boolean canUndo();",
"@Override\n\tpublic void onUndoNotPossible() {\n\n\t}",
"public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }",
"public void setUndoEnabled(boolean undoEnabled) {\n this.undoEnabled = undoEnabled;\n }",
"public void undo() {\n setExecuted(false);\n }",
"public void undo() {\n // only check the action can be undo or not\n if (!this.canUndo()) {\n throw new CannotUndoException();\n }\n }",
"public void undo() {\n\t\tif (doily.lines.size() > 0) {\n\t\t\tLine line = getLastLine();\n\t\t\tdoily.lines.remove(line);\n\t\t\tredoStack.push(line);\n\t\t\tredraw();\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Undo Failed - Nothing to undo\", \n\t\t\t\t\t\"Undo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public void undo() {\n\t\tif (lastCommand != null) {\n\t\t\tlastCommand.undo();\n\t\t\tlastCommand = null;\n\t\t}\n\t}",
"@Override\n public void undo(int numToUndo) {\n }",
"@Override\r\n public void undo() {\n\r\n }",
"@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }",
"public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}",
"@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}",
"public void undo() {\n if (!history.isEmpty()) {\n Command c = history.get(0);\n c.undo();\n history.remove(0);\n future.add(0, c);\n }\n }",
"protected void undo(EventLog.Mutator mutator, Game game) {\n\t\tif (!executed) {\n\t\t\tthrow new IllegalArgumentException(\"already undone\");\n\t\t}\n\t\tundoer.accept(mutator, game);\n\t\texecuted = false;\n\t}",
"public UndoManager getUndoManager() {\n return undoManager;\n }",
"@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}",
"public synchronized void addUndoableEditListener(UndoableEditListener l) {\n support.addUndoableEditListener(l);\n}",
"@Override\n void undo() {\n assert false;\n }",
"public final void undo() {\n\t\tthis.historyManager.undo();\n\t}",
"private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }",
"@Override\r\n\tpublic void undo() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].undo();\r\n\t\t}\r\n\t}",
"public void undoableEditHappened() { }",
"public void undoableEditHappened() { }",
"public void onUndo() {\n game.undoLastTurn(player1);\n game.undoLastTurn(computer);\n if (player1.getRollCount() == 0 && computer.getRollCount() == 0) {\n setDefault(\"player\");\n setDefault(\"computer\");\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n } else {\n updateFields(\"player\");\n updateFields(\"computer\");\n }\n }",
"public boolean isUndoEnabled() {\n return undoEnabled;\n }",
"public static void undoButton(){\n\t\tundoMoveClass.undoButtonHelper(board);\n\t}",
"public boolean canUndo() {\n return this.isUndoable;\n }",
"public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}",
"@Override\n\t/**\n\t * @return isUndoAble\n\t * \t\t\ttells whether the function is undo able or not;\n\t */\n\tpublic boolean isUndoAble() {\n\t\treturn isUndoAble;\n\t}",
"public ActionUndo(GraphModel model) {\n super(\"Undo\");\n this.model = model;\n //putValue(Action.MNEMONIC_KEY, KeyEvent.VK_E);\n setEnabled(false);\n model.addObserver(this);\n }",
"public UndoController() {\r\n \t}",
"UndoableTransaction(RitUndoManager manager, String name, String details,\r\n BackupRepository repository) {\r\n this.manager = manager;\r\n this.name = name;\r\n this.repository = repository;\r\n// this.getRepository().clean();\r\n this.details = details;\r\n\r\n if (RitUndoManager.debug) {\r\n log.debug(\"Created UNDO \" + getPresentationName() + \" \" +\r\n details + \" with repository on \" + repository.getBackupDir());\r\n }\r\n }",
"public UndoManager getUndoManager() {\n\t\treturn undoManager;\n\t}",
"public UndoChart() {\n }",
"public void setUndoEnabled(boolean enabled){\n mUndoEnabled = enabled;\n if(mText != null){\n mText.setUndoEnabled(enabled);\n }\n }",
"@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }",
"public void undoMove();",
"@Override\n\tpublic void onUndoStart(ReadOnlyBoard board, Counter nextPlayer,\n\t\t\tboolean undoPossible) {\n\n\t}",
"public String getUndoPresentationName();",
"public String getUndoPresentationName();",
"private void createUndoAndRedo(final DrawingPanel thePanel) {\n myUndo = new JButton();\n myToolBar.add(myUndo);\n \n String imageLocation = \"images/undoicon.png\";\n URL imgFileLocation = PowerPaintGUI.class.getResource(imageLocation);\n \n if (Objects.nonNull(imgFileLocation)) {\n myUndo.setIcon(new ImageIcon(imgFileLocation)); \n } \n final JButton redo = new JButton();\n myToolBar.add(redo);\n imageLocation = \"images/redoicon.png\";\n imgFileLocation = PowerPaintGUI.class.getResource(imageLocation);\n \n if (Objects.nonNull(imgFileLocation)) {\n redo.setIcon(new ImageIcon(imgFileLocation)); \n } \n myUndo.setEnabled(false);\n myUndo.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(final ActionEvent theEvent) {\n thePanel.getCollection().undo();\n redo.setEnabled(true);\n thePanel.repaint();\n if (thePanel.getCollection().isEmpty()) {\n myUndo.setEnabled(false); \n myPcs.firePropertyChange(\"undo\", false, true);\n }\n }\n });\n \n \n myToolBar.add(redo);\n redo.setEnabled(false);\n redo.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(final ActionEvent theEvt) {\n \n thePanel.getCollection().redo();\n thePanel.repaint();\n if (thePanel.getCollection().isRedoEmpty()) {\n redo.setEnabled(false);\n }\n myUndo.setEnabled(true);\n }\n });\n }",
"public void undo() throws CannotUndoException {\n\t\tsuper.undo();\n\t\t\n\t\tSet affectedStates = this.getAffectedStates();\n\t\tif (iDeleting)\n\t\t\tiDoc.editAddStates(this, affectedStates);\n\t\telse\n\t\t\tiDoc.editRemoveStates(this, affectedStates);\n\t}",
"@Override\n public Move createUndoMove(final ScoreDirector scoreDirector) {\n return null;\n }",
"@Override\n\tpublic PacmanInteractionWithUndo controlling(IController controller) {\n\t\tsuper.controlling(controller);\n\t\treturn this;\n\t}",
"@Override\n\tprotected CommandResult doUndoWithResult(IProgressMonitor progressMonitor,\n\t\t\tIAdaptable info) throws ExecutionException {\n\t\tpasteCommand.doUndoWithResult(progressMonitor, info);\n\t\treturn null;\n\t}",
"private void addUndoButtonListener() {\n Button undoButton = findViewById(R.id.btnundo);\n undoButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n boolean undoAvailable = boardManager.undo();\n if (undoAvailable) {\n displayToast(\"Undo successfully! You have made \" + boardManager.getTimesOfUndo() + \" times of undo.\");\n } else {\n displayToast(\"Undo failed! This is the original board.\");\n }\n }\n });\n }",
"public void undoerSetUndoTitle(String aTitle) { Undoer u = getUndoer(); if(u!=null) u.setUndoTitle(aTitle); }",
"public Boolean getShowUndoFlag() {\r\n return showUndoFlag;\r\n }",
"public ReadOnlyNotebook undo() {\n statePointer--;\n ReadOnlyNotebook previousCopy = mementos.get(statePointer).getState();\n return previousCopy;\n }",
"public final void undo(boolean notify) {\n\t\tif (game.history.peek() != this)\n\t\t\tthrow new RuntimeException(MessageUtil.getMessage(\"INVALID_UNDO\", getClass()));\n\t\tinternalUndo();\n\t\tgame.setCurrentPlayer(player);\n\t\tif (!conseq && notify) {\n\t\t\tgame.notifyEvent(\"ud\"); //for events\n\t\t\tgame.notifyEvent(\"chg\"); //to update the display\n\t\t}\n\t}",
"public UndoStack() {\n super();\n undoPointer = -1;\n }",
"void processUndo() {\r\n boardManager.undo();\r\n }",
"public boolean undo(){\n\t\tif(!(undoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Undoing one move...\");\n\t\t\tredoStack.push(undoStack.pop());\n\t\t\tthis.setState(undoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Undo is not available\");\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\t/**\n\t * undo is irrelevant in this case\n\t */\n\tpublic Task[] undo() {\n\t\treturn null;\n\t}",
"public synchronized void removeUndoableEditListener(UndoableEditListener l) {\n support.removeUndoableEditListener(l);\n}",
"@Override\n public void undo(History history) throws CommandExecutionException {\n try {\n transactionManager.deleteTransaction((Integer) history.getData(\"transactionId\"));\n history.setUndone(true);\n String oldMessage = history.getDisplayString();\n String newMessage = oldMessage + \" has been undone\";\n history.setDisplayString(newMessage);\n gateway.update(history, History.class);\n } catch (Exception e) {\n throw new CommandExecutionException(e);\n }\n }",
"private void prepareUndoRedo()\n {\n undoManager = new UndoManager();\n \n doc = textArea.getDocument();\n doc.addUndoableEditListener(new UndoableEditListener(){\n public void undoableEditHappened(UndoableEditEvent evt)\n {\n undoManager.addEdit(evt.getEdit());\n }\n });\n \n textArea.getActionMap().put(\"Undo\", new AbstractAction(\"Undo\"){\n public void actionPerformed(ActionEvent evt)\n {\n try{\n if(undoManager.canUndo())\n {\n undoManager.undo();\n }\n }catch (CannotUndoException exc)\n {\n System.out.println(\"Erro ao usar Undo :(\");\n }\n }\n });\n textArea.getInputMap().put(KeyStroke.\n getKeyStroke(\"control Z\"), \"Undo\");\n \n textArea.getActionMap().put(\"Redo\", new AbstractAction(\"Redo\"){\n public void actionPerformed(ActionEvent evt)\n {\n try{\n if(undoManager.canRedo())\n {\n undoManager.redo();\n }\n }catch (CannotRedoException exc)\n {\n System.out.println(\"Erro ao usar Redo :(\");\n }\n }\n });\n textArea.getInputMap().put(KeyStroke.\n getKeyStroke(\"control Y\"), \"Redo\"); \n }",
"public void undo () {\n // The restores must be run in the reverse order they are added.\n for (int i = restores.size() - 1; i >= 0; --i) {\n restores.get(i).run();\n }\n restores.clear();\n }",
"public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }",
"public boolean addEdit(UndoableEdit anEdit);",
"public boolean addEdit(UndoableEdit anEdit);",
"@Override\n\tpublic boolean undo(Usuario usuario, List<Integer> params) {\n\t\treturn false;\n\t}",
"private void cmdUndo() throws NoSystemException {\n \ttry {\n\t\t\tsystem().undoLastStatement();\n\t\t} catch (MSystemException e) {\n\t\t\tLog.error(e.getMessage());\n\t\t}\n }",
"public abstract void undoMove();",
"void addUndo(UndoableMapEdit undo) {\r\n\t\tundoManager.addEdit(undo);\r\n\t\tsetUndoRedoMenu();\r\n\t}",
"private UndoManager() {\n undoList = new LinkedHashMap<RefactoringSession, LinkedList<UndoItem>>();\n redoList = new LinkedHashMap<RefactoringSession, LinkedList<UndoItem>>();\n descriptionMap = new IdentityHashMap<LinkedList, String>();\n }",
"@Override\n\tpublic void undo(LoginUserAction arg0, LoginUserResult arg1,\n\t\t\tExecutionContext arg2) throws ActionException {\n\n\t}",
"public void undo() {\n firePropertyChange(\"undo\", null, \"enable\");\n final Drawing removeMe = myDrawingArray.get(myDrawingArray.size() - 1);\n myDrawingArray.remove(removeMe);\n myUndoStack.push(removeMe);\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(\"stack\", null, EMPTY_STRING);\n }\n repaint();\n }",
"void setUndoRedoMenu() {\r\n\t\tui.editUndo.setEnabled(undoManager.canUndo());\r\n\t\tui.editRedo.setEnabled(undoManager.canRedo());\r\n\t\tui.toolbarUndo.setEnabled(undoManager.canUndo());\r\n\t\tui.toolbarRedo.setEnabled(undoManager.canRedo());\r\n\t}"
] |
[
"0.6969383",
"0.69561225",
"0.68756497",
"0.6811549",
"0.6788372",
"0.6784461",
"0.6769433",
"0.67564464",
"0.6742456",
"0.67391413",
"0.6698175",
"0.66779536",
"0.65869653",
"0.65836805",
"0.6547895",
"0.65312237",
"0.6486723",
"0.6405988",
"0.6401381",
"0.63874745",
"0.6372339",
"0.63646424",
"0.63646424",
"0.63646424",
"0.63545024",
"0.63545024",
"0.63515604",
"0.6337415",
"0.63342834",
"0.6322774",
"0.6322774",
"0.62818193",
"0.62754774",
"0.62640566",
"0.6235297",
"0.62269676",
"0.6206142",
"0.6200344",
"0.6194775",
"0.6183102",
"0.6171488",
"0.61640596",
"0.6144536",
"0.6137044",
"0.6128805",
"0.6125781",
"0.61253464",
"0.6117671",
"0.61158544",
"0.61148846",
"0.60864687",
"0.6063198",
"0.6046683",
"0.6046683",
"0.6020837",
"0.5972777",
"0.5971623",
"0.59613144",
"0.59059817",
"0.59032255",
"0.5866603",
"0.5848409",
"0.5824473",
"0.58114684",
"0.5805721",
"0.5804352",
"0.5803823",
"0.57997507",
"0.5797667",
"0.57726973",
"0.57726973",
"0.57422763",
"0.5735118",
"0.57316256",
"0.5709741",
"0.57055086",
"0.5698396",
"0.5695619",
"0.5675359",
"0.5667425",
"0.56601274",
"0.5650047",
"0.5626619",
"0.561232",
"0.56098497",
"0.56092465",
"0.56066495",
"0.55977166",
"0.55955154",
"0.55935055",
"0.5588146",
"0.5588146",
"0.5587421",
"0.5585139",
"0.55791014",
"0.552476",
"0.5519161",
"0.55042285",
"0.5499766",
"0.548819"
] |
0.7460938
|
0
|
Editor method returns whether this shape is at the top level (usually RMPage).
|
public boolean isRoot() { return getAncestorCount()<2; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isTopLevel() {\n return this.topLevel;\n }",
"public boolean isTopLevel() {\n return this.topLevel;\n }",
"boolean isTopLevel();",
"public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"public boolean isRoot() {\r\n return (_parent == null);\r\n }",
"public boolean isParent();",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"boolean isRoot()\n {\n return this.parent == null;\n }",
"public boolean isRoot() {\n return !hasParent();\n }",
"public boolean isValidateRoot() {\n\tComponent parent = getParent();\n\tif (parent instanceof JViewport) {\n\t return false;\n\t}\n return true;\n }",
"public boolean isRootVisible()\n {\n return rootVisible;\n }",
"public boolean isRootVisible()\n {\n return rootVisible;\n }",
"public boolean isPaletteRoot() {\n return className == null \n && parent != null && parent.parent == null;\n }",
"public Boolean getIsParent() {\n return isParent;\n }",
"public boolean isRootLevel(\n )\n {return parentLevel == null;}",
"public boolean hasParent() {\n return internalGroup.hasParent();\n }",
"public boolean isRootVisible()\n {\n return treeTable.getTree().isRootVisible();\n }",
"public abstract boolean isInWidgetTree();",
"public boolean isRoot(){\n\t\treturn bound.isRoot();\n\t}",
"public boolean isInteractionRoot()\n\t{\n\t\treturn this == model.getInteractionRoot();\n\t}",
"public boolean isRoot()\r\n\t{\r\n\t\treturn (m_parent == null);\r\n\t}",
"boolean hasParent();",
"boolean hasParent();",
"public boolean isScene() {\r\n\t\treturn scene;\r\n\t}",
"public boolean isRoot() {\n return term.isRoot();\n }",
"public boolean hasParent() {\n return getParent() != null;\n }",
"public boolean hasContainingParentLevel() {\n return fieldSetFlags()[3];\n }",
"public boolean checkRoot() {\n\t\t\treturn (this.getParent().getHeight() == -1);\n\t\t}",
"boolean parentIsRoot()\n {\n return this.parent != null && this.parent.isRoot();\n }",
"public boolean isRootContextNode();",
"protected boolean atGlobalScope() {\n return !currentScope.hasParent();\n }",
"boolean coreHasParent();",
"boolean hasRootFrame();",
"@Override\n\tpublic boolean isInside() {\n\t\treturn false;\n\t}",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public Boolean isRootNode();",
"public boolean getIsContainer()\n {\n return standardDefs.isContainer(root.getType());\n }",
"public boolean hasParent() {\r\n if (parent == null) \r\n return false;\r\n \r\n return true;\r\n }",
"boolean hasLevel();",
"boolean hasLevel();",
"boolean hasLevel();",
"boolean hasLevel();",
"boolean isSliceParent();",
"protected final boolean isRoot() {\n return _metaData.isRoot(this);\n }",
"public boolean isRoot() {\n return getName().getPath().equals(SEPARATOR);\n }",
"@Override\n\tpublic boolean isRoot() {\n\t\treturn false;\n\t}",
"public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }",
"public boolean isMainline();",
"public Boolean isParentable();",
"protected final boolean isRootNode() {\n return isRootNode;\n }",
"boolean isParentInitialized();",
"public boolean getIsRootElement() {\r\n\t\treturn mIsRootElement;\r\n\t}",
"public boolean isShowing() {\n return getRoot().isShowing();\n }",
"public boolean isOver() {\n return this.treeNode.getBuilding().isFinished();\n }",
"public boolean isUseParent()\n {\n return (isPragma() && getModule().toKeyword().isParentKeyword());\n }",
"private boolean hasTFoot() {\r\n\t\treturn null != this.getTFoot();\r\n\t}",
"public boolean getIsOutOfLineFODescendant() {\n return isOutOfLineFODescendant;\n }",
"public boolean hasEditor()\n\t{\n\t\treturn true;\n\t}",
"private boolean hasAnOutline()\n {\n return getEntryEditorWidgetTreeViewerInput() != null;\n }",
"public boolean isRoot() {\n return isIndex() && parts.length == 0;\n }",
"default boolean isRoot() {\n if (isEmpty()){\n return false;\n }\n\n TreeNode treeNode = getTreeNode();\n return treeNode.getLeftValue() == 1;\n }",
"public boolean inGoalRegion() {\n return position >= GOAL_POSITION;\n }",
"public boolean isChild();",
"public abstract boolean levelUp();",
"public boolean isChild(){\n return false;\n }",
"boolean hasParentalStatusView();",
"public boolean isLeafContextNode();",
"boolean getIsMainFrame();",
"public boolean hasContainingParentType() {\n return fieldSetFlags()[2];\n }",
"public boolean isVitalForParent() {\n\t\treturn isVitalForParentFunction;\n\t}",
"private boolean isCurrent(){\n return (getPageTitle().size() > 0);\n }",
"@java.lang.Override\n public boolean hasRootFrame() {\n return instance.hasRootFrame();\n }",
"public boolean isGraphEditing() {\r\n \t\treturn graph.getUI().isEditing(graph);\r\n \t}",
"public boolean isInterior() {\n return false;\n }",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public boolean isBranchRoot() {\n return term.isBranchRoot();\n }",
"public boolean isRoot() {\n\t\treturn pathFragments.isEmpty();\n\t}",
"public boolean hasSplitScreenPrimaryStack() {\n return getSplitScreenPrimaryStack() != null;\n }",
"public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}",
"public Boolean getIsChild() {\n return isChild;\n }",
"public boolean isParent() { return _file.isDir(); }",
"public boolean IsSane() // not thread safe !! - for debug \n { \n \tdebugSane = true;\n \tverifyRBTreeConditions(rootHolder.right);\n \treturn debugSane; \n }",
"public boolean isGrid() {\n return isGrid;\n }",
"public boolean isCurrentLevelFinish() {\n return currentLevelFinish;\n }",
"boolean hasIsBoundaryNodeOf();",
"public boolean isScalene () {\r\n\t\tif ((startSide1 != startSide2 && startSide1 != startSide3 && startSide2 != startSide3) && isTriangle () == true) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}",
"public boolean isInterior() {\n return true;\n }",
"public boolean isLeaf() {\n\t\t\tif ((this.right.getHeight() == -1) && (this.left.getHeight() == -1)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"boolean hasDepth();",
"boolean hasDepth();",
"public boolean isPalette() {\n return className == null \n && parent != null && parent.parent != null \n && parent.parent.parent == null;\n }",
"public boolean offScreen() {\r\n\t\treturn (this.getY() < -TREE_HEIGHT || this.getY() > 1000); \r\n\t}",
"boolean isNested();",
"public boolean isChild() {\n\t\treturn false;\n\t}",
"public boolean isMouseOver(){\n\t\treturn this.contains(Main.camera.getMousePos());\n\t}",
"@Override\n\tpublic java.lang.Boolean getIsStepLayout() {\n\t\treturn _scienceApp.getIsStepLayout();\n\t}",
"public boolean isValidateRoot()\r\n\t{\r\n\t\treturn(true);\r\n\t}",
"public boolean superSelectable() { return getClass()==RMParentShape.class; }"
] |
[
"0.739932",
"0.739932",
"0.7358744",
"0.68875676",
"0.68819815",
"0.66581756",
"0.65164435",
"0.65061456",
"0.65033287",
"0.64870524",
"0.64784926",
"0.6467375",
"0.6451299",
"0.6451299",
"0.63977987",
"0.6395893",
"0.63884753",
"0.6337588",
"0.63292474",
"0.6292504",
"0.6290098",
"0.62862074",
"0.62746805",
"0.6199831",
"0.6199831",
"0.6097356",
"0.60860056",
"0.6036255",
"0.60292065",
"0.602842",
"0.6028214",
"0.6011381",
"0.5998769",
"0.5990521",
"0.5984572",
"0.59757423",
"0.5934319",
"0.59202516",
"0.5913402",
"0.5897655",
"0.58964324",
"0.58964324",
"0.58964324",
"0.58964324",
"0.5893515",
"0.5887649",
"0.5886753",
"0.587465",
"0.58708674",
"0.5869419",
"0.58688617",
"0.5859637",
"0.5844185",
"0.58288544",
"0.5817612",
"0.5810665",
"0.5789031",
"0.57760715",
"0.5771238",
"0.576968",
"0.57676005",
"0.5767154",
"0.5760807",
"0.5756504",
"0.5749898",
"0.5747367",
"0.5728877",
"0.57169336",
"0.57054377",
"0.57032645",
"0.5699559",
"0.5695415",
"0.56867266",
"0.5685309",
"0.5679904",
"0.5677669",
"0.5673265",
"0.56698465",
"0.5660075",
"0.5643491",
"0.5637452",
"0.5635948",
"0.5631762",
"0.56266785",
"0.5621037",
"0.5618388",
"0.5617915",
"0.5612703",
"0.56121206",
"0.559739",
"0.5583451",
"0.5583451",
"0.5583169",
"0.55773807",
"0.55769366",
"0.5568879",
"0.55659467",
"0.5565048",
"0.5561918",
"0.55520016"
] |
0.6571398
|
6
|
Returns the number of ancestors (from this shape's parent up to the document).
|
public int getAncestorCount() { return _parent!=null? getParent().getAncestorCount() + 1 : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}",
"public int getParentEntryCount() {\n if (parent != null) {\n return parent.getEntryCount();\n }\n return 1;\n }",
"private int getNumberOfAncestors(DirectoryTreeNode item) {\r\n // Initialize number of parents to 0\r\n int numAncestors;\r\n if (item.equals(this.rootDir)) {\r\n // this directory does not exist\r\n numAncestors = 0;\r\n } else {\r\n // Get the parent directory of given file or directory\r\n Directory parent = (Directory) item.getParentDirectory();\r\n numAncestors = 1;\r\n // Loop until parent is not the root\r\n while (!parent.equals(this.rootDir)) {\r\n // Increment numAncestors\r\n numAncestors += 1;\r\n // Set parent to the parent directory of the parent\r\n parent = (Directory) parent.getParentDirectory();\r\n }\r\n // If loop terminates that means it is not an ancestor\r\n }\r\n return numAncestors;\r\n }",
"int getParentIdCount();",
"public int getParentCounter(){\r\n\t\tint returning = parentCounter;\r\n\t\tparentCounter++;\r\n\t\treturn returning;\r\n\t}",
"int getInheritsCount();",
"final int getIndegree() {\n return parents.size();\n }",
"public int getNumXPathSegments() {\n return xPath.size();\n }",
"public int rectangleCount() {\n return this.root.rectangleCount();\n }",
"public static int size_parent() {\n return (8 / 8);\n }",
"public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }",
"public int countLeaves(){\n return countLeaves(root);\n }",
"public int numberReferencesToThis() {\n return referenceToThis.size();\n }",
"public int getRelationsCount() {\n return relationsCount;\n }",
"public int getLevel()\n\t{\n\t\tint level = 0;\n\t\tNode p = parent;\n\t\twhile (p != null) {\n\t\t\t++level;\n\t\t\tp = p.parent;\n\t\t}\n\t\treturn level;\n\t}",
"public static int getRowCount(BaseDocument doc) {\n return doc.getParagraphElement(0).getParentElement().getElementCount();\n }",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"public int size() {\n\t\treturn root.count();\n\t}",
"public java.util.List getOrderedAncestors();",
"public int getChildCount();",
"public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }",
"public int numLeaves() {\n return numLeaves(root);//invokes helper method\n }",
"int getChildCount();",
"public int size() {\n return root.getNumberOfTerminalsInSubTree();\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}",
"int childCount(){\n return this.children.size();\n }",
"public int getRowCount()\n {\n // Get level of the node to be displayed\n int rowCount = displayNode.getLevel();\n \n // Add number of children\n rowCount = rowCount + displayNode.getChildCount();\n \n // Increment by 1 if the root node is being displayed\n if (rootVisible) \n { \n rowCount++; \n }\n \n // Return number of rows\n return rowCount;\n }",
"public int getNestingLevel() {\n\t\treturn map.size();\n\t}",
"public int numberOfLeaves() {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfLeaves(root.left) + numberOfLeaves(root.right);\r\n\t}",
"public int size() {\n return tree.count();\n }",
"public List getAncestors() {\n\t\tif (this.ancestors == null) {\n\t\t\tancestors = new ArrayList();\n\t\t\tTeachersDomainStandardsNode myParent = parent;\n\t\t\twhile (myParent != null && myParent.getLevel() > 0) {\n\t\t\t\tancestors.add(myParent);\n\t\t\t\tmyParent = myParent.getParent();\n\t\t\t}\n\t\t}\n\t\treturn ancestors;\n\t}",
"public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }",
"int computeHeight() {\n Node<Integer>[] nodes = new Node[parent.length];\n for (int i = 0; i < parent.length; i++) {\n nodes[i] = new Node<Integer>();\n }\n int rootIndex = 0;\n for (int childIndex = 0; childIndex < parent.length; childIndex++) {\n if (parent[childIndex] == -1) {\n rootIndex = childIndex;\n } else {\n nodes[parent[childIndex]].addChild(nodes[childIndex]);\n }\n }\n return getDepth(nodes[rootIndex]);\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w){\n\t return 0;\n }",
"public int depth() {\n\t\treturn depthHelp(root);\r\n\t}",
"public int\tgetChildCount(Object parent) {\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getChildCount();\n }",
"@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }",
"Liste<? extends Binarbre<E>> ancestors();",
"public int num_sets() {\n int count = 0;\n for (int i = 0; i < _parent.length; ++i) {\n if (_parent[i] == i)\n count++;\n }\n return count;\n }",
"public interface Ancestors extends Serializable, Comparable<Ancestors> {\n\n\t/**\n\t * @return the tree path of the node. This contains the path in the form of indexes. e.g. 50.1.2.2\n\t */\n\tTreePath getTreePath();\n\n\t/**\n\t * @return the ancestor matrices. This contains all path matrix from root path matrix to this path matrix.\n\t */\n\tList<PathMatrix> getAncestorMatrices();\n\n\t/**\n\t * @return the reference path matrix\n\t */\n\tPathMatrix getPathMatrix();\n}",
"public Integer count() {\n return this.bst.count();\n }",
"public int countChildren() {\n return this.children.size();\n }",
"int getSuperClassesCount();",
"public Integer getNestingLevel(Loop lp){\n\t\tint i=0; \n\t\twhile(!lp.equals(getRoot())){\n\t\t\tlp=getFather(lp);\n\t\t\ti++;\n\t\t}\n\t\treturn i;\n\t}",
"public int nodeCount() {\n return this.root.nodeCount();\n }",
"public int my_leaf_count();",
"public final List<Integer> getHierarchyGaps() {\r\n\t\tList<Integer> gaps = new ArrayList<Integer>();\r\n\t\tgaps.add(0);\r\n\t\tHeaderItem root = header.getFirstRoot();\r\n\t\tif(root == null)\r\n\t\t\treturn gaps;\r\n\t\twhile(root.hasRootsInNextLevel()) {\r\n\t\t\troot = root.getFirstRootInNextLevel();\r\n\t\t\tgaps.add(header.getWidgetTop(root));\r\n\t\t}\r\n\t\treturn gaps;\r\n\t}",
"public int getPreschoolParentsCount()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _preschoolParentLocalService.getPreschoolParentsCount();\n\t}",
"public static int offset_parent() {\n return (40 / 8);\n }",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}",
"public int countChildren() {\n return this.children.size();\n }",
"private int getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}",
"public int size() {\r\n\t\treturn size(rootNode);\r\n\t}",
"public int getChildCount() {\n return this.children.size();\n }",
"public int getFigureCount() {\n if (figureBuilder_ == null) {\n return figure_.size();\n } else {\n return figureBuilder_.getCount();\n }\n }",
"public int size() {\n\t\tif (this.root == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn this.root.getSize(); \n\t}",
"public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n }",
"public int size()\n {\n return _root.size();\n }",
"@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}",
"public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }",
"public List getAncestors() {\n\t\treturn new ArrayList();\n\t}",
"public int getValidParentSetCount() {\r\n\t\t\treturn validParentSetCount;\r\n\t\t}",
"public int getEdgeCount() {\n if (edgeBuilder_ == null) {\n return edge_.size();\n } else {\n return edgeBuilder_.getCount();\n }\n }",
"default int childIndex() {\n // XXX this is expensive\n SemanticRegion<T> parent = parent();\n if (parent != null) {\n return parent.children().indexOf(this);\n }\n return -1;\n }",
"public abstract int getNumChildren();",
"public int getNumEdges();",
"public int getDepth() {\n return getDepthRecursive(root);\n\n }",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int size() {\n return size(root);\n }",
"public int size() {\n return size(root);\n }",
"public int getChildCount () {\n return childCount;\n }",
"public abstract List<ResolvedReferenceType> getDirectAncestors();",
"public int getLowerBound ()\n\t{\n\t\treturn getRelationshipImpl().getLowerBound();\n\t}",
"int getNumberOfEdges();",
"public int numberOfNodes() {\n return numberOfNodes(root);\n }",
"public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}",
"public int getBoundContainerElementCount() {\n return nestedElements.size();\n }",
"public int getNodeCount() {\n return dataTree.getNodeCount();\n }",
"public int height() \n\t{\n\t\treturn height(root); //call recursive height method, starting at root\n\t}",
"public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}",
"public int totalWordsTree() {\r\n\t\treturn count;\r\n\t}",
"public int getNumVertices() {\n\t\treturn vertices.size();\n\t}",
"public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}",
"public int size() {\n if(root == null){\n return 0;\n }\n else{\n return 1 + size(root.lc) + size(root.rc);\n }\n }",
"public final int size() {\r\n return sequentialSize(root);\r\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null)\n throw new NullPointerException();\n for (int i : v) inBound(i);\n for (int i : w) inBound(i);\n length(v,w);\n return ancestor;\n }",
"public int getNumEdges()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn numEdges;\n\t}",
"public final int getDependentCount() {\r\n synchronized (f_seaLock) {\r\n return f_dependents.size();\r\n }\r\n }",
"public double getNumIntersect() {\n\t\treturn m_numIntersect;\n\t}",
"public int size() {\n return this.treeSize - this.unusedTreeIndices.size();\n }",
"@Override\n\t\tpublic int getRowCount() {\n\t\t\treturn app.graph.verticesCount;\n\t\t}",
"public int getOriginalEdgeCount() {\r\n return originalEdgeCount;\r\n }",
"public int getVertexCount()\n\t{\n\t\tint count = 0;\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tcount++;\n\t\t\titr.next();\n\t\t}\n\t\treturn count;\n\t}",
"@Override\r\n\tpublic int height() {\r\n\t\tif (this.root == null) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn height_sub(this.root);\r\n\t}",
"public int height() { return height(root); }",
"public int height() {\n\t\t// TODO\n return height(root);\n\t}",
"public Integer getnParentid() {\n return nParentid;\n }",
"public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}"
] |
[
"0.66388214",
"0.6299891",
"0.6247645",
"0.6061435",
"0.60118973",
"0.59584504",
"0.58509195",
"0.58220464",
"0.58080304",
"0.57966405",
"0.5791171",
"0.5652274",
"0.5592317",
"0.5519772",
"0.5516558",
"0.5513356",
"0.55020195",
"0.54835033",
"0.5483266",
"0.54678696",
"0.5466832",
"0.5452313",
"0.54512227",
"0.5444407",
"0.54403913",
"0.54309523",
"0.54268974",
"0.54257655",
"0.542209",
"0.542162",
"0.5419069",
"0.5411854",
"0.5402639",
"0.53941846",
"0.5393733",
"0.5391684",
"0.5388524",
"0.5368258",
"0.5367429",
"0.5363334",
"0.536233",
"0.53561497",
"0.53541934",
"0.535113",
"0.53487647",
"0.53474635",
"0.53425616",
"0.5342081",
"0.5341179",
"0.53404015",
"0.53213215",
"0.5321253",
"0.53088707",
"0.529774",
"0.5297529",
"0.5296014",
"0.5292416",
"0.5287279",
"0.52805936",
"0.5277669",
"0.52773815",
"0.5273908",
"0.5269034",
"0.5265835",
"0.5259599",
"0.5258206",
"0.52515763",
"0.52502364",
"0.5249879",
"0.5249879",
"0.5247064",
"0.5247064",
"0.5245769",
"0.5235639",
"0.52342856",
"0.52286017",
"0.52259475",
"0.5225468",
"0.5221591",
"0.52191246",
"0.52189976",
"0.5209619",
"0.52073485",
"0.5205359",
"0.52052784",
"0.5203864",
"0.5195024",
"0.5192092",
"0.5184241",
"0.5184006",
"0.51816475",
"0.51759106",
"0.51740867",
"0.51734036",
"0.51713866",
"0.51702255",
"0.5169005",
"0.5165877",
"0.51599187",
"0.5157172"
] |
0.78884166
|
0
|
Returns the ancestor at the given index (parent is ancestor 0).
|
public RMShape getAncestor(int anIndex) { return anIndex==0? getParent() : getParent().getAncestor(anIndex-1); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }",
"private int parent(int index) {\n return index / 2;\n }",
"private int parent(int index) {\n return index / 2;\n }",
"private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }",
"private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }",
"private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }",
"private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }",
"java.lang.String getParentId(int index);",
"private int getParent(int index) {\n return index - (index & -index);\n }",
"public int ancestor(int v, int w) {\n Paths sapComponents = sap(v, w);\n return sapComponents == null ? NO_ANCESTOR : sapComponents.ancestor();\n }",
"private int getParentIndex(int index){\n return (index-1) >> 1;\n }",
"public int ancestor(int v, int w) throws java.lang.NullPointerException, java.lang.IndexOutOfBoundsException \n\t {\n\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\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).mAncestor;\n\t\t \n\t }",
"public int getParent(int currIndex)\n {\n return (int)currIndex/2; \n }",
"public int ancestor(int v, int w) {\n\t\tBreadthFirstDirectedPaths bfsv = new BreadthFirstDirectedPaths(G, v);\n\t\tBreadthFirstDirectedPaths bfsw = new BreadthFirstDirectedPaths(G, w);\n\t\tint dv, dw, ancestor = -1, dsap = INFINITY;\n\t\tfor(int vertex = 0; vertex < G.V(); vertex++) {\n\t\t\tdv = bfsv.distTo(vertex);\n\t\t\tdw = bfsw.distTo(vertex);\n\t\t\tif (dv != INFINITY && dw != INFINITY && (dv + dw < dsap)) {\n\t\t\t\tancestor = vertex;\n\t\t\t\tdsap = dv + dw;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn (dsap == INFINITY) ? -1 : ancestor;\n\t}",
"protected int findAncestor(int ancestorID) {\n int found = 1;\n FONode temp = getParent();\n while (temp != null) {\n if (temp.getNameId() == ancestorID) {\n return found;\n }\n found += 1;\n temp = temp.getParent();\n }\n return -1;\n }",
"public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }",
"public static int parentIdx(int nodeIdx) {\n\t\treturn ((nodeIdx - 1) / 2);\n\t}",
"public int indexOf() { return _parent!=null? _parent.indexOfChild(this) : -1; }",
"public int getParent();",
"public int ancestor(int v, int w){\n shortestPath(v,w);\n return ca;\n }",
"public int ancestor(int v, int w) {\n inBound(v);\n inBound(w);\n length(v,w);\n return ancestor;\n }",
"public int ancestor(int v, int w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int closestAncestor = -1;\n int shortestPath = Integer.MAX_VALUE;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n if ((bfsV.distTo(integer) + bfsW.distTo(integer)) < shortestPath) {\n shortestPath = (bfsV.distTo(integer) + bfsW.distTo(integer));\n closestAncestor = integer;\n }\n }\n return closestAncestor;\n }",
"com.google.protobuf.ByteString\n getParentIdBytes(int index);",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n Paths sapComponents = sap(v, w);\n return sapComponents == null ? NO_ANCESTOR : sapComponents.ancestor();\n }",
"public int ancestor(int v, int w) {\n bfsV = new BreadthFirstDirectedPaths(graph, v);\n bfsW = new BreadthFirstDirectedPaths(graph, w);\n distance = Integer.MAX_VALUE;\n for (int i = 0; i < graph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n if (distance >= (bfsV.distTo(i) + bfsW.distTo(i))) {\n distance = bfsV.distTo(i) + bfsW.distTo(i);\n ancestor = i;\n }\n }\n }\n return ancestor;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n\t\tif (v == null || w == null)\n\t\t\tthrow new IllegalArgumentException();\n\t\tBreadthFirstDirectedPaths bfsv = new BreadthFirstDirectedPaths(G, v);\n\t\tBreadthFirstDirectedPaths bfsw = new BreadthFirstDirectedPaths(G, w);\n\t\tint dv, dw, ancestor = -1, dsap = INFINITY;\n\t\tfor(int vertex = 0; vertex < G.V(); vertex++) {\n\t\t\tdv = bfsv.distTo(vertex);\n\t\t\tdw = bfsw.distTo(vertex);\n\t\t\tif (dv != INFINITY && dw != INFINITY && (dv + dw < dsap)) {\n\t\t\t\tancestor = vertex;\n\t\t\t\tdsap = dv + dw;\n\t\t\t} \n\t\t}\n\t\treturn (dsap == INFINITY) ? -1 : ancestor;\n\t}",
"public int ancestor(int v, int w) {\n int[] ret = new int[2];\n ArrayList<Integer> vl = new ArrayList<Integer>(1);\n vl.add(v);\n ArrayList<Integer> wl = new ArrayList<Integer>(1);\n wl.add(w);\n sap(vl, wl, ret);\n return ret[0];\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n int shortestPath = Integer.MAX_VALUE;\n Deque<Integer> ancestors = new ArrayDeque<>();\n int ancestor = -1;\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer a : ancestors) {\n if ((bfsV.distTo(a) + bfsW.distTo(a)) < shortestPath) {\n shortestPath = (bfsV.distTo(a) + bfsW.distTo(a));\n ancestor = a;\n }\n }\n return ancestor;\n }",
"private int parentIndex(int i) {\n return i / 2;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) throws java.lang.NullPointerException, java.lang.IndexOutOfBoundsException \n\t {\n\t\t if(null==v || null==w) throw new java.lang.NullPointerException(\"null argument to ancestor, v=\"+v+\" w=\"+w);\n\t\t \n\t\t return getAncestors(v,w).mAncestor;\n\t\t \n\t }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w){\n\t return 0;\n }",
"public int ancestor(int v, int w) {\n int[] res = shortest(v, w);\n return res[1];\n }",
"public int ancestor(int v, int w) {\n if (v < 0 || v >= digraph.V() || w < 0 || w >= digraph.V())\n throw new IllegalArgumentException(\"Null argument\");\n int candidate = Integer.MAX_VALUE;\n ancestor = Integer.MAX_VALUE;\n bfsV = new BreadthFirstDirectedPathsFast(digraph, v);\n bfsW = new BreadthFirstDirectedPathsFast(digraph, w);\n for (int i = 0; i < digraph.V(); ++i) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n int distV = bfsV.distTo(i);\n int distW = bfsW.distTo(i);\n if (distV + distW < candidate) {\n candidate = distV + distW;\n ancestor = i;\n }\n }\n }\n return ancestor == Integer.MAX_VALUE ? -1 : ancestor;\n }",
"public int ancestor(int v, int w) {\r\n if (v < 0 || w < 0 || v >= G.V() || w >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n int shortestDistIndex = -1;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n if (shortestDist > bfdp1.distTo(i) + bfdp2.distTo(i)) {\r\n shortestDist = bfdp1.distTo(i) + bfdp2.distTo(i);\r\n shortestDistIndex = i;\r\n }\r\n }\r\n }\r\n return shortestDistIndex;\r\n }",
"public int parent(int i){\n\t\tif(i == 0) return Integer.MIN_VALUE;\n\t\treturn (i-1)/2;\n\t}",
"public int ancestor(int v, int w){\n\t BreadthFirstDirectedPaths BFSv =new BreadthFirstDirectedPaths(D,v);\n\t BreadthFirstDirectedPaths BFSw =new BreadthFirstDirectedPaths(D,w);\n\t \n\t int distance = Integer.MAX_VALUE;\n\t int ancestor = -1;\n\t for (int vertex = 0 ; vertex < D.V();vertex++)\n\t\t if ((BFSv.hasPathTo(vertex))\n\t\t\t\t &&(BFSw.hasPathTo(vertex))\n\t\t\t\t &&(BFSv.distTo(vertex)+BFSw.distTo(vertex))<distance)\n\t\t {\n\t\t\t ancestor = vertex;\n\t\t\t distance = BFSv.distTo(vertex)+BFSw.distTo(vertex);\n\t\t }\n\n\t\t return ancestor;\n }",
"default int childIndex() {\n // XXX this is expensive\n SemanticRegion<T> parent = parent();\n if (parent != null) {\n return parent.children().indexOf(this);\n }\n return -1;\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w){\n if(v == null || w == null)\n throw new NullPointerException(\"null arguments\");\n shortestPath(v,w);\n return ca;\n }",
"public int ancestor(int v, int w) {\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(wordGraph, v);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(wordGraph, w);\n int ancestor = -1;\n int len = -1;\n for (int i = 0; i < wordGraph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i) + path2.distTo(i);\n ancestor = i;\n }\n if (path1.distTo(i) + path2.distTo(i) < len) {\n len = path1.distTo(i) + path2.distTo(i);\n ancestor = i;\n }\n }\n }\n return ancestor;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\r\n for (Integer vTmp : v) {\r\n if (vTmp < 0 || vTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n for (Integer wTmp : w) {\r\n if (wTmp < 0 || wTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n int shortestDistIndex = -1;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n if (shortestDist > bfdp1.distTo(i) + bfdp2.distTo(i)) {\r\n shortestDist = bfdp1.distTo(i) + bfdp2.distTo(i);\r\n shortestDistIndex = i;\r\n }\r\n }\r\n }\r\n return shortestDistIndex;\r\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public int ancestor(int v, int w) {\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n int min = Integer.MAX_VALUE;\n int a = -1;\n for (int i = 0; i < digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i) && bfsV.distTo(i) + bfsW.distTo(i) < min) {\n min = bfsV.distTo(i) + bfsW.distTo(i);\n a = i;\n }\n }\n return a;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n int[] ret = new int[2];\n sap(v, w, ret);\n return ret[0];\n }",
"private static int parent(int i) {\n\t\treturn (i - 1) / 2;\n\t}",
"int getParentMonsterIndex();",
"protected static int parent(int i){\n return (i-1)/2;\n }",
"private int firstChild(int index) {\n // Formula to calculate the index of the first child of parent node\n return d * index + 1;\n }",
"private int getChildIndex(long descendent) {\n long destinationChild = ZQuad.getChildThatsAncestorOf(this.quad, descendent);\n // What is the descendancy of that child relative to this one?\n long descendancy = ZQuad.getDescendancy(destinationChild, 1);\n // The scalar component is what we're looking for.\n return (int) ZQuad.quadToScalar(descendancy, 1);\n }",
"private static int parent(int i) {\n\t\treturn (i-1)/2;\n\t}",
"private static int parent(int i) {\n\t\treturn (i-1)/2;\n\t}",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null)\n throw new NullPointerException();\n for (int i : v) inBound(i);\n for (int i : w) inBound(i);\n length(v,w);\n return ancestor;\n }",
"static int parent(int i)\n {\n return (i-1)/2;\n }",
"public int ancestor(int v, int w) {\n return calcLengthAndAncestor(v, w)._2;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) throw new IllegalArgumentException();\n for (Integer x : v) {\n if (x == null) throw new IllegalArgumentException();\n }\n for (Integer x : w) {\n if (x == null) throw new IllegalArgumentException();\n }\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(wordGraph, v);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(wordGraph, w);\n int ancestor = -1;\n int len = -1;\n for (int i = 0; i < wordGraph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i) + path2.distTo(i);\n ancestor = i;\n }\n if (path1.distTo(i) + path2.distTo(i) < len) {\n len = path1.distTo(i) + path2.distTo(i);\n ancestor = i;\n }\n }\n }\n return ancestor;\n }",
"public Object\tgetChild(Object parent, int index) {\t\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getChild(index);\n }",
"public int ancestor(final int v, final int w) {\n\n validateVertex(v);\n validateVertex(w);\n\n if (v == w) {\n return v;\n }\n\n final BreadthFirstDirectedPaths bfdvObj = new BreadthFirstDirectedPaths(digraphObj, v);\n final BreadthFirstDirectedPaths bfdwObj = new BreadthFirstDirectedPaths(digraphObj, w);\n \n int infinity = Integer.MAX_VALUE;\n int ances = -1;\n\n for (int vertex = 0; vertex < digraphObj.V(); vertex++) {\n if (bfdvObj.hasPathTo(vertex) && bfdwObj.hasPathTo(vertex)) {\n final int dist = bfdvObj.distTo(vertex) + bfdwObj.distTo(vertex);\n if (dist <= infinity) {\n infinity = dist;\n ances = vertex;\n }\n }\n }\n\n return ances;\n }",
"public int ancestor(int v, int w) {\n BreadthFirstDirectedPaths bfdV = new BreadthFirstDirectedPaths(G, v);\n BreadthFirstDirectedPaths bfdW = new BreadthFirstDirectedPaths(G, w);\n int distance = Integer.MAX_VALUE;\n int commonAncestor = -1;\n for (int i = 0; i < G.V(); i++) {\n if (bfdV.hasPathTo(i) && bfdW.hasPathTo(i)) {\n int local = bfdV.distTo(i) + bfdW.distTo(i);\n if (local < distance) {\n distance = local;\n commonAncestor = i;\n }\n }\n }\n return commonAncestor;\n }",
"private int getRoot(int index) {\n while(index < nodes.length && index != nodes[index]) {\n index = nodes[index];\n }\n return nodes[index];\n }",
"private int parent(int i){return (i-1)/2;}",
"public int ancestor(int v, int w) {\n BreadthFirstDirectedPaths bfdpv = new BreadthFirstDirectedPaths(g, v);\n BreadthFirstDirectedPaths bfdpw = new BreadthFirstDirectedPaths(g, w);\n int anc = -1;\n int minLen = Integer.MAX_VALUE;\n for (int x = 0; x < g.V(); x++) {\n if (bfdpv.hasPathTo(x) && bfdpw.hasPathTo(x)) {\n int len = bfdpv.distTo(x) + bfdpw.distTo(x);\n if (len < minLen) {\n minLen = len;\n anc = x;\n }\n }\n }\n return anc;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) {\n throw new NullPointerException();\n }\n BreadthFirstDirectedPaths bfdpv = new BreadthFirstDirectedPaths(g, v);\n BreadthFirstDirectedPaths bfdpw = new BreadthFirstDirectedPaths(g, w);\n int anc = -1;\n int minLen = Integer.MAX_VALUE;\n for (int x = 0; x < g.V(); x++) {\n if (bfdpv.hasPathTo(x) && bfdpw.hasPathTo(x)) {\n int len = bfdpv.distTo(x) + bfdpw.distTo(x);\n if (len < minLen) {\n minLen = len;\n anc = x;\n }\n }\n }\n return anc;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n int[] res = shortest(v, w);\n return res[1];\n }",
"private int parent(int i)\n {\n return (i-1)/d;\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"private int findParent(int[] parent, int i) {\n if (parent[i] == i)\n return i;\n return findParent(parent, parent[i]);\n }",
"public int ancestor(int v, int w) {\n\n if (v < 0 || v >= dg.V() || w < 0 || w >= dg.V())\n throw new IllegalArgumentException(\"vertex is not between 0 and \" + (dg.V() - 1));\n\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n Stack<Integer> candidates = new Stack<>();\n\n for (int p = 0; p < dg.V(); p++) {\n if (bfs1.hasPathTo(p) && bfs2.hasPathTo(p)) {\n candidates.push(p);\n }\n }\n\n int shortesAncestor = -1;\n int shortesPath = Integer.MAX_VALUE;\n\n while (!candidates.isEmpty()) {\n int c = candidates.pop();\n if (shortesPath > bfs1.distTo(c) + bfs2.distTo(c)) {\n shortesPath = bfs1.distTo(c) + bfs2.distTo(c);\n shortesAncestor = c;\n }\n }\n\n return shortesAncestor;\n\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) throw new IllegalArgumentException(\"Null argument\");\n for (Integer each : v) {\n if (each == null) throw new IllegalArgumentException(\"Null argument\");\n }\n for (Integer each : w) {\n if (each == null) throw new IllegalArgumentException(\"Null argument\");\n }\n int candidate = Integer.MAX_VALUE;\n ancestorMultiple = Integer.MAX_VALUE;\n bfsV = new BreadthFirstDirectedPathsFast(digraph, v);\n bfsW = new BreadthFirstDirectedPathsFast(digraph, w);\n for (int i = 0; i < digraph.V(); ++i) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n int distV = bfsV.distTo(i);\n int distW = bfsW.distTo(i);\n if (distV + distW < candidate) {\n candidate = distV + distW;\n ancestorMultiple = i;\n }\n }\n }\n return ancestorMultiple == Integer.MAX_VALUE ? -1 : ancestorMultiple;\n }",
"private int leftChild(int index) {\n return index * 2;\n }",
"private static int leftChildIndex(int index) {\n\t\treturn (index * 2) + 1;\n\t}",
"private int getParent(int parentIndex) {\n\t\tStatisticsLog statisticsLog = messageFlowLogs.get(parentIndex);\n\t\twhile (!statisticsLog.isOpenLog()) {\n\t\t\tstatisticsLog = messageFlowLogs.get(statisticsLog.getParentIndex());\n\t\t}\n\t\treturn statisticsLog.getCurrentIndex();\n\t}",
"public int currentIndexRelativeToZero() {\n return calculateIndexRelativeToZero(currentIndex());\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n int min = Integer.MAX_VALUE;\n int a = -1;\n for (int i = 0; i < digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i) && bfsV.distTo(i) + bfsW.distTo(i) < min) {\n min = bfsV.distTo(i) + bfsW.distTo(i);\n a = i;\n }\n }\n return a;\n }",
"private int getParentIdx(int pos) {\n return (pos - 1) / 2;\n }",
"public Taxon getAncestor(final TaxonRank rank) {\n\t\tif (rank == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tTaxon parent = this;\n\t\twhile (parent != null && parent.getRank() != rank) {\n\t\t\tparent = parent.getParent();\n\t\t}\n\t\treturn parent;\n\t}",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n BreadthFirstDirectedPaths bfdV = new BreadthFirstDirectedPaths(G, v);\n BreadthFirstDirectedPaths bfdW = new BreadthFirstDirectedPaths(G, w);\n int distance = Integer.MAX_VALUE;\n int commonAncestor = -1;\n for (int i = 0; i < G.V(); i++) {\n if (bfdV.hasPathTo(i) && bfdW.hasPathTo(i)) {\n int local = bfdV.distTo(i) + bfdW.distTo(i);\n if (local < distance) {\n distance = local;\n commonAncestor = i;\n }\n }\n }\n return commonAncestor;\n }",
"private int parent(int i) {\n double d = (double) i;\n d = Math.floor((d - 1) / 2);\n return (int) d;\n\n }",
"public T getRecursive(int index) {\n return getRecursive(index, sentinel.next);\n }",
"private int getIndexChild(BTreeNode<T> parent, BTreeNode<T> child) {\n for (int i = 0; i < 6; i++) {\n if (parent.getChild(i) == child) {\n return i;\n }\n }\n return -1;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n\n\n validateIterableVertices(v);\n validateIterableVertices(w);\n\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n Stack<Integer> candidates = new Stack<>();\n\n for (int p = 0; p < dg.V(); p++) {\n if (bfs1.hasPathTo(p) && bfs2.hasPathTo(p)) {\n candidates.push(p);\n }\n }\n\n int shortesAncestor = -1;\n int shortesPath = Integer.MAX_VALUE;\n\n while (!candidates.isEmpty()) {\n int c = candidates.pop();\n if (shortesPath > bfs1.distTo(c) + bfs2.distTo(c)) {\n shortesPath = bfs1.distTo(c) + bfs2.distTo(c);\n shortesAncestor = c;\n }\n }\n\n return shortesAncestor;\n }",
"private int leftChildIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }",
"public int getParent(int v){\n\t\t\treturn parent[v];\n\t\t}",
"public java.lang.Integer getParentId();",
"public FileIndex getParent()\n {\n return( parent );\n }",
"public int\tgetIndexOfChild(Object parent, Object child) {\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getIndexOfChild(child);\n }",
"public ChildType getChildAt( int index );",
"public V getParent(V vertex);",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"private static int rightChildIndex(int index) {\n\t\treturn (index * 2) + 2;\n\t}",
"private IConfigBuilder _getTopLevelBuilder(int index) {\n // Next handle the sequence component (if any). Gemini uses a\n // \"dummy\" node as the root of the sequence\n // If this doesn't yet exist, return false\n final ISPSeqComponent top = _obs.getSeqComponent();\n if (top == null) return null;\n\n // Get all the seq builders that are children of top. If there\n // are none, return false\n final List<ISPSeqComponent> seqCompList = top.getSeqComponents();\n if (seqCompList == null) return null;\n\n // If the requested builder is out of range, return false\n final int size = seqCompList.size();\n if (index >= size) return null;\n\n final ISPSeqComponent seqComp = seqCompList.get(index);\n\n // Now try to get a builder\n final IConfigBuilder cb = (IConfigBuilder) seqComp.getClientData(IConfigBuilder.USER_OBJ_KEY);\n\n // Ignore nodes like SeqDataProc that don't have a config builder\n return (cb == null) ? _getTopLevelBuilder(++_seqBuilderIndex) : cb;\n }",
"private boolean hasParent(int index) {\n return index > 1;\n }",
"private int rightChild(int index) {\n return index * 2 + 1;\n }",
"private int rightChildIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }",
"public int getUnitRoot(int index) {\n return _elements[index].getRoot();\n }",
"protected final int findIndexOfTreeItemAt(\n org.eclipse.draw2d.geometry.Point pt) {\n int index = -1;\n TreeItem item = findTreeItemAt(pt);\n if (item != null) {\n index = getHost().getChildren().indexOf(item.getData());\n if (index >= 0 && !isInUpperHalf(item.getBounds(), pt))\n index++;\n }\n return index;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n return calcLengthAndAncestor(v, w)._2;\n }",
"public TriangleElt3D getNeighbour(int index) {\n\t\tswitch (index) {\n\t\tcase 0:\n\t\t\treturn this.eltZero;\n\t\tcase 1:\n\t\t\treturn this.eltOne;\n\t\tcase 2:\n\t\t\treturn this.eltTwo;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}",
"public int getAccessibleIndexInParent() {\n try {\n return unoAccessibleContext.getAccessibleIndexInParent();\n } catch (com.sun.star.uno.RuntimeException e) {\n return -1;\n } \n }"
] |
[
"0.7107928",
"0.702097",
"0.6950569",
"0.6888697",
"0.6888697",
"0.6830976",
"0.679162",
"0.67496014",
"0.66930676",
"0.65646505",
"0.6471033",
"0.6390223",
"0.63870704",
"0.6361367",
"0.63077456",
"0.62471247",
"0.61983496",
"0.61911935",
"0.6151477",
"0.6144228",
"0.6140132",
"0.6105104",
"0.6073518",
"0.60630363",
"0.60590696",
"0.60574526",
"0.6049635",
"0.6047037",
"0.60441595",
"0.6039354",
"0.59534246",
"0.59438425",
"0.593743",
"0.5937315",
"0.59111917",
"0.59070987",
"0.5898542",
"0.58523595",
"0.58306223",
"0.58155423",
"0.5776677",
"0.57595974",
"0.5707721",
"0.57019454",
"0.57013535",
"0.5697978",
"0.5697739",
"0.5695902",
"0.569102",
"0.5690699",
"0.5684853",
"0.56820214",
"0.56820214",
"0.56789607",
"0.56755894",
"0.5672024",
"0.56713194",
"0.56677055",
"0.5660349",
"0.56521475",
"0.5644784",
"0.5628633",
"0.56253046",
"0.5583492",
"0.5560734",
"0.55576444",
"0.55362505",
"0.5535269",
"0.5506801",
"0.5490511",
"0.5490343",
"0.54873955",
"0.54862607",
"0.54540706",
"0.5452639",
"0.5446034",
"0.5439473",
"0.5431663",
"0.5389891",
"0.5385105",
"0.53838897",
"0.5379646",
"0.53738075",
"0.53415036",
"0.5335522",
"0.53265345",
"0.5314467",
"0.5309121",
"0.5305102",
"0.52908623",
"0.5290056",
"0.5275701",
"0.526927",
"0.5263621",
"0.5259547",
"0.5248052",
"0.52399963",
"0.5232583",
"0.5222232",
"0.52213407"
] |
0.7412239
|
0
|
Returns true if given shape is one of this shape's ancestors.
|
public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }",
"public boolean contains(Shape shape)\n {\n // checks if the child is in the children list\n return children.contains(shape);\n }",
"public boolean isInFrontOf(Shape other)\n {\n return parent != null && parent.isInFrontOf(this, other);\n }",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"boolean hasParent();",
"boolean hasParent();",
"public boolean isParent();",
"public boolean isConnectedWith(Shapes shape){\n if(this.endShapes.length == 2){\n if(endShapes[0].equals(shape) || endShapes[1].equals(shape)){\n return true;\n }\n return false; \n }else{\n return false;\n }\n }",
"public boolean isAncestor(VSOPClass c) {\n\t\tif (this == c)\n\t\t\treturn true;\n\t\tif (c.superClass == null)\n\t\t\treturn false;\n\n\t\treturn isAncestor(c.superClass);\n\t}",
"public boolean hasAncestorOfType( Type type ) {\n return hasAncestorOfType(EnumSet.of(type));\n }",
"public boolean hasAncestorOfType( Set<Type> types ) {\n PlanNode node = this.parent;\n while (node != null) {\n if (types.contains(node.getType())) return true;\n node = node.getParent();\n }\n return false;\n }",
"public boolean hasParent() {\n return getParent() != null;\n }",
"public boolean isAncestor(PBmmSchema schema, String typePart1, String typePart2) {\n PBmmClass classDefinition = schema.getClassDefinition(typePart1);\n List<String> ancestors = classDefinition.getAncestorTypeNames();\n if (ancestors.contains(typePart2)) { //direct ancestor\n return true;\n }\n for (String ancestor:ancestors) {\n if (isAncestor(schema, typePart1, ancestor)) { //recursive check\n return true;\n }\n }\n return false;\n }",
"@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tboolean isIn = false;\n\t\tif (_shape != null) {\n\t\t\tisIn = _shape.contains(pnt);\n\t\t}\n\t\treturn isIn;\n\t}",
"private boolean isEmpty(RMShape aShape)\n{\n // If shape timeline is non-null and not-empty, return false\n if(aShape.getTimeline()!=null && !aShape.getTimeline().isEmpty())\n return false;\n \n // Iterate over children and return false if any are not empty\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n if(!isEmpty(aShape.getChild(i)))\n return false;\n \n // Return true since shape anim and children are all empty\n return true;\n}",
"public boolean hasParent() {\n return internalGroup.hasParent();\n }",
"public boolean intersects(Shape otherShape)\n {\n if (rotation == 0.0 && otherShape.rotation == 0.0)\n {\n return RectF.intersects(getBounds(), otherShape.getBounds());\n }\n else\n {\n updateRotatedCorners();\n otherShape.updateRotatedCorners();\n if (checkOutside(rotatedCorners, otherShape.rotatedCorners))\n {\n return false;\n }\n if (checkOutside(otherShape.rotatedCorners, rotatedCorners))\n {\n return false;\n }\n return true;\n }\n }",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"boolean hasIsBoundaryNodeOf();",
"public Boolean isParentable();",
"boolean isSliceParent();",
"public boolean hasParent() {\r\n if (parent == null) \r\n return false;\r\n \r\n return true;\r\n }",
"public static boolean isAncestor(int shal, int deep, int[][] spar, int[] dep) {\n return dep[shal] <= dep[deep] && ancestor(deep, dep[deep] - dep[shal], spar) == shal;\n }",
"public boolean isRoot() { return getAncestorCount()<2; }",
"public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}",
"public boolean containsRelations();",
"boolean hasParentalStatus();",
"public boolean areIntersecting() {\n return intersection != null;\n }",
"public boolean intersects(Shape other) {\n boolean result = false;\n ArrayList<Vector3D> points = getPoints();\n for (Vector3D point : points) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n points = other.getPoints();\n for (Vector3D point : points) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n return result;\n }",
"boolean isDrawInterior(DrawContext dc, Object shape);",
"public final boolean isTouching(Shape shape) {\n\t\t// TODO: write this function.\n\t\treturn false;\n\t}",
"public boolean isTree() {\n\t\tif (vertices.size() == 0 || vertices.size() == 1) return true;\n\t\tSet<String> visited = new HashSet<String>();\n\t\treturn !isCyclicUtil(vertices.iterator().next(), visited, null) && visited.size() == vertices.size();\n\t}",
"public List <RMShape> getShapesToAncestor(RMShape aShape)\n{\n // Iterate and add up this shape and parents until given ancestor is added (or we run out)\n List ancestors = new ArrayList();\n for(RMShape shape=this; shape!=null; shape=shape.getParent()) {\n ancestors.add(shape);\n if(shape==aShape)\n break;\n }\n \n // Return ancestors\n return ancestors;\n}",
"public boolean hasContainingParentId() {\n return fieldSetFlags()[1];\n }",
"@Override\r\n public boolean isWellKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isWellKnown();\r\n }",
"boolean isSuperclass(Concept x, Concept y);",
"public boolean overlaps(Shape2D s)\r\n {\r\n if (isPhasing)\r\n return false;\r\n \r\n return super.overlaps(s);\r\n }",
"public boolean hasContainingParentType() {\n return fieldSetFlags()[2];\n }",
"public RMShape getAncestorInCommon(RMShape aShape)\n{\n // If shape is our descendant, return this shape\n if(isDescendant(aShape))\n return this;\n \n // Iterate up shape's ancestors until one has this shape as descendant\n for(RMShape shape=aShape; shape!=null; shape=shape.getParent())\n if(shape.isDescendant(this))\n return shape;\n \n // Return null since common ancestor not found\n return null;\n}",
"public boolean hasAncestorOfType( Type firstType,\n Type... additionalTypes ) {\n return hasAncestorOfType(EnumSet.of(firstType, additionalTypes));\n }",
"public boolean isChildOf( InteractionClass other )\n\t{\n\t\t// look up our tree to see if the given class is one of our parents\n\t\tInteractionClass currentParent = this;\n\t\twhile( currentParent != null )\n\t\t{\n\t\t\tif( currentParent == other )\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isParentOf(FcgLevel other) {\n\t\tif (isSource()) {\n\t\t\treturn other.getDistance() == 1;\n\t\t}\n\n\t\tif (direction != other.direction) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// e.g., row 2 - row 1 = 1\n\t\treturn other.getDistance() - getDistance() == 1;\n\t}",
"boolean isLeaf();",
"boolean isLeaf();",
"boolean isLeaf();",
"boolean isLeaf();",
"public boolean hasSinglePath() {\n switch (children.size()) {\n case 0:\n return true;\n case 1:\n return children.get(0).hasSinglePath();\n default:\n return false;\n }\n }",
"public boolean containsIncomingRelations();",
"public boolean isObject() {\n\t\t// Object is the class that has itself as superclass\n\t\treturn getSuperClass() == this;\n\t}",
"public static boolean visibleInParents(Node node) {\n // TODO: Add overflow check (if overflow support will be added).\n List<Node> parentList = new ArrayList<>();\n for (Node parent = node.parent(); parent != null; parent = parent.parent()) {\n parentList.add(parent);\n }\n\n if (!parentList.isEmpty()) {\n var pos = new Vector2f(0, 0);\n var rect = new Vector2f(0, 0);\n var absolutePosition = node.box().borderBoxPosition();\n\n Vector2fc currentSize = node.box().contentSize();\n Vector2fc currentPos = node.box().contentPosition();\n\n float lx = absolutePosition.x;\n float rx = absolutePosition.x + currentSize.x();\n float ty = absolutePosition.y;\n float by = absolutePosition.y + currentSize.y();\n\n // check top parent\n\n Vector2f parentPaddingBoxSize = node.parent().box().paddingBoxSize();\n if (currentPos.x() > parentPaddingBoxSize.x\n || currentPos.x() + currentSize.x() < 0\n || currentPos.y() > parentPaddingBoxSize.y\n || currentPos.y() + currentSize.y() < 0) {\n return false;\n }\n if (parentList.size() != 1) {\n // check from bottom parent to top parent\n for (int i = parentList.size() - 1; i >= 1; i--) {\n Node parent = parentList.get(i);\n pos.add(parent.box().contentPosition());\n rect.set(pos).add(parent.box().contentSize());\n\n if (lx > rect.x || rx < pos.x || ty > rect.y || by < pos.y) {\n return false;\n }\n }\n }\n }\n return true;\n }",
"public boolean isDeepChildOf(Panel ancestor) {\r\n Panel p = this.parent;\r\n while (p!=null) {\r\n if (p == ancestor)\r\n return true;\r\n p = p.parent;\r\n }\r\n return false;\r\n }",
"protected boolean hasParentSteps(CoreOperation operation) {\n for (Expression exp : operation.getArguments()) {\n if (exp instanceof LocationPath) {\n return hasParentSteps((LocationPath) exp);\n } else if (exp instanceof CoreOperation) {\n return hasParentSteps((CoreOperation) exp);\n } else {\n logDebug(\"{} is not a location Path or a core operation to check for parent steps\", operation);\n }\n }\n return false;\n }",
"public boolean testPoint(Point p){\n\t\tif(parents.contains(p)) return false;\n\t\treturn true;\n\t}",
"public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }",
"protected boolean parentExists() {\n\n\t\tIRodinElement parentElement = getParent();\n\t\tif (parentElement == null)\n\t\t\treturn true;\n\t\treturn parentElement.exists();\n\t}",
"public boolean isLeaf();",
"public boolean isLeaf();",
"public boolean isLeaf();",
"public boolean isLeaf();",
"boolean hasNested();",
"public boolean isInterior() {\n\t\tif (this.eltZero != null && this.eltOne != null && this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public static boolean isPathInParent(IPath path) {\r\n\t\t// first see if any segments are \"..\" at all\r\n\t\tfor (int i = 0; i < path.segmentCount(); i++) {\r\n\t\t\tif (path.segment(i).equals(\"..\")) { //$NON-NLS-1$\r\n\t\t\t\t// comprehensive check, canonicalizing\r\n\t\t\t\tpath = new Path(path.toString());\r\n\t\t\t\tif (path.segmentCount() > 0 && path.segment(0).equals(\"..\")) { //$NON-NLS-1$\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }",
"boolean hasEnclosingInstance(ClassType encl);",
"protected boolean isFullyContained(Widget widget) {\r\n // Calling getPreferredBounds forces the bounds to be calculated if it\r\n // has not already been calculated. For example when the Widget was\r\n // just created and therefore has not had a chance to be displayed.\r\n Rectangle area = widget.getClientArea();\r\n\r\n boolean retVal = false;\r\n if (area != null) {\r\n Rectangle sceneArea = widget.convertLocalToScene(area);\r\n\r\n Rectangle localArea = scene.convertSceneToLocal(sceneArea);\r\n Rectangle myArea = scene.getClientArea();\r\n retVal = myArea.contains(localArea);\r\n }\r\n\r\n return retVal;\r\n }",
"public abstract boolean isParent(T anItem);",
"public boolean isChild();",
"boolean isDrawOutline(DrawContext dc, Object shape);",
"private boolean check_only_call_relatives(Element element){\n\t\tArrayList<Element> relatives = new ArrayList<Element>();\n\t\tfor(Element elem_called : element.getRefFromThis()){\n\t\t\t//if they are brothers\n\t\t\tif(element.getParentName() != null && elem_called.getParentName() != null && element.getParentName().equals(elem_called.getParentName())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\n\t\t\t//if they are son - father\n\t\t\tif(element.getParentName() != null && element.getParentName().equals(elem_called.getIdentifier())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\t\t\t\n\t\t}\n\t\tif (relatives.size() == element.getRefFromThis().size()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isRoot(Span span) {\n\t\tif (span instanceof SpanWrapper) {\n\t\t\tspan = ((SpanWrapper) span).getDelegate();\n\t\t}\n\t\tif (span instanceof io.jaegertracing.internal.JaegerSpan) {\n\t\t\tfinal io.jaegertracing.internal.JaegerSpan jaegerSpan = (io.jaegertracing.internal.JaegerSpan) span;\n\t\t\treturn jaegerSpan.context().getParentId() == 0;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasContainingParentLevel() {\n return fieldSetFlags()[3];\n }",
"@Override\r\n public boolean isAncestor(final FileName ancestor) {\r\n if (!ancestor.getRootURI().equals(getRootURI())) {\r\n return false;\r\n }\r\n return checkName(ancestor.getPath(), getPath(), NameScope.DESCENDENT);\r\n }",
"public abstract boolean isInterior();",
"boolean hasIsVertexOf();",
"abstract boolean isLeaf();",
"boolean hasChildren();",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public Boolean isThisParent(Flow f){\n\t\treturn false;\n\t}",
"boolean isNested();",
"public boolean hasTopLevelNode(IAstTopLevelNode node);",
"boolean hasParentalStatusView();",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }",
"public boolean inGoalRegion() {\n return position >= GOAL_POSITION;\n }",
"@Pure\n public boolean is_class_relation() {\n return parent_ppt_name.endsWith(\":::CLASS\");\n }",
"boolean hasRecursive();",
"public boolean isSubclassOf(ClassReference other) {\n\t\t//TODO: Review this code thoroughly, it hasn't been looked at in a while\n\t\tif (this.equals(other) || this.equals(NULL) || other.equals(NULL)) {\n\t\t\treturn true;\n\t\t}\n\t\tboolean isPrimitive = (primitive != Primitive.REFERENCE && other.primitive != Primitive.REFERENCE);\n\t\tboolean isReference = (primitive == Primitive.REFERENCE && other.primitive == Primitive.REFERENCE);\n\t\tif (isPrimitive && isReference) {\n\t\t\treturn false;\n\t\t} else if (isPrimitive) {\n\t\t\tif (other.primitive == Primitive.INT && INT_TYPES.contains(primitive)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (isReference) {\n\t\t\tQueue<ClassReference> tests = new LinkedList<>();\n\t\t\ttests.add(this);\n\t\t\twhile (!tests.isEmpty()) {\n\t\t\t\tClassReference test = tests.poll();\n\t\t\t\tif (!test.equals(OBJECT)) {\n\t\t\t\t\tJavaClass testClass = ClassStore.findClass(test);\n\t\t\t\t\tif (testClass != null) {\n\t\t\t\t\t\tClassReference superType = testClass.superType;\n\t\t\t\t\t\tif (superType.equals(other)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttests.add(superType);\n\t\t\t\t\t\tfor (ClassReference interfaceType : testClass.interfaces) {\n\t\t\t\t\t\t\tif (interfaceType.equals(other)) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttests.add(interfaceType);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override public boolean equals(Object o) {\r\n\t\tif (o instanceof Shape) {\r\n\t\t\treturn this.area() == ((Shape)o).area();\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"protected abstract boolean isShapeSimple();",
"public abstract boolean isInWidgetTree();",
"public boolean homogenousSubtree() {\r\n\t\tswitch(children.size()) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn true;\r\n\t\t\tcase 1:\r\n\t\t\t\treturn (this.type == children.get(0).type && children.get(0).homogenousSubtree());\r\n\t\t\tcase 2:\r\n\t\t\t\treturn \t((this.type == children.get(0).type) && children.get(0).homogenousSubtree() &&\r\n\t\t\t\t\t\t (this.type == children.get(1).type) && children.get(1).homogenousSubtree());\r\n\t\t\tdefault:\r\n\t\t\t\tlogger.fatal(\"A DependencyNode must not have more than 3 childnodes.\");\r\n\t\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\t\t\t\r\n\t}",
"public boolean isLeaf()\n\t{\n\t\treturn left == null && right == null;\n\t}",
"public abstract boolean isRoot(Position<E> p);",
"@Override\r\n\tpublic boolean isLeaf() {\n\t\treturn (left==null)&&(right==null);\r\n\t}",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"public boolean superSelectable() { return getClass()==RMParentShape.class; }",
"boolean hasParent(CtElement candidate);",
"public boolean isLeaf() {\n return ((getRight() - getLeft()) == 1);\n }",
"public boolean IsParent(KDNode parent) {\n\t\t\n\t\tKDNode ptr = this;\n\t\twhile(ptr != null) {\n\t\t\tif(ptr == parent) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tptr = ptr.parent_ptr;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"Collection<? extends Boundary> getIsBoundaryNodeOf();",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }"
] |
[
"0.7334439",
"0.686528",
"0.67117536",
"0.66195685",
"0.62510675",
"0.62510675",
"0.61142504",
"0.6113042",
"0.60656214",
"0.60545033",
"0.60141444",
"0.58144146",
"0.58132017",
"0.580853",
"0.57171506",
"0.5696118",
"0.5687026",
"0.5682468",
"0.5662624",
"0.5649692",
"0.5649644",
"0.5642607",
"0.56213814",
"0.5599336",
"0.5598285",
"0.5588149",
"0.5584166",
"0.5571979",
"0.5568519",
"0.5567802",
"0.55517894",
"0.5538768",
"0.55039394",
"0.54970604",
"0.54952794",
"0.54860526",
"0.54633605",
"0.54606616",
"0.54601717",
"0.5449936",
"0.54459286",
"0.5443101",
"0.54370195",
"0.54370195",
"0.54370195",
"0.54370195",
"0.542528",
"0.54194844",
"0.5417287",
"0.541669",
"0.5404917",
"0.5385317",
"0.536232",
"0.53581935",
"0.53418696",
"0.5298809",
"0.5298809",
"0.5298809",
"0.5298809",
"0.5293971",
"0.5293888",
"0.5291494",
"0.5288216",
"0.5283765",
"0.52811295",
"0.5278374",
"0.5276017",
"0.5275301",
"0.5270662",
"0.526176",
"0.52533627",
"0.5252837",
"0.5250883",
"0.52263314",
"0.5223754",
"0.5223684",
"0.52208185",
"0.52046025",
"0.5196918",
"0.5191339",
"0.5189368",
"0.51825404",
"0.5180307",
"0.5180039",
"0.5178807",
"0.51750314",
"0.51668125",
"0.51655257",
"0.5165351",
"0.51465505",
"0.5145963",
"0.5145423",
"0.5138858",
"0.51382846",
"0.5136286",
"0.51354694",
"0.51230097",
"0.5109569",
"0.5108789",
"0.5094824"
] |
0.7678861
|
0
|
Returns true if given shape is one of this shape's descendants.
|
public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean contains(Shape shape)\n {\n // checks if the child is in the children list\n return children.contains(shape);\n }",
"private boolean isEmpty(RMShape aShape)\n{\n // If shape timeline is non-null and not-empty, return false\n if(aShape.getTimeline()!=null && !aShape.getTimeline().isEmpty())\n return false;\n \n // Iterate over children and return false if any are not empty\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n if(!isEmpty(aShape.getChild(i)))\n return false;\n \n // Return true since shape anim and children are all empty\n return true;\n}",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"public boolean isConnectedWith(Shapes shape){\n if(this.endShapes.length == 2){\n if(endShapes[0].equals(shape) || endShapes[1].equals(shape)){\n return true;\n }\n return false; \n }else{\n return false;\n }\n }",
"boolean hasChildren();",
"public boolean hasSinglePath() {\n switch (children.size()) {\n case 0:\n return true;\n case 1:\n return children.get(0).hasSinglePath();\n default:\n return false;\n }\n }",
"boolean hasIsBoundaryNodeOf();",
"@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tboolean isIn = false;\n\t\tif (_shape != null) {\n\t\t\tisIn = _shape.contains(pnt);\n\t\t}\n\t\treturn isIn;\n\t}",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"boolean isDrawOutline(DrawContext dc, Object shape);",
"public boolean containsChild() {\n return !(getChildList().isEmpty());\n }",
"boolean hasChildNodes();",
"public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}",
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }",
"@Override\r\n public boolean isWellKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isWellKnown();\r\n }",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"public final boolean isTouching(Shape shape) {\n\t\t// TODO: write this function.\n\t\treturn false;\n\t}",
"boolean hasParent();",
"boolean hasParent();",
"boolean hasIsNodeOf();",
"protected abstract boolean isShapeSimple();",
"public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }",
"public boolean isChild();",
"public boolean hasChilds() {\n return childs != null && !childs.isEmpty();\n }",
"public boolean isTree() {\n\t\tif (vertices.size() == 0 || vertices.size() == 1) return true;\n\t\tSet<String> visited = new HashSet<String>();\n\t\treturn !isCyclicUtil(vertices.iterator().next(), visited, null) && visited.size() == vertices.size();\n\t}",
"boolean isDrawInterior(DrawContext dc, Object shape);",
"@objid (\"808c086e-1dec-11e2-8cad-001ec947c8cc\")\n public final boolean hasChildren() {\n return !this.children.isEmpty();\n }",
"@Override\r\n public boolean isClef ()\r\n {\r\n return ShapeSet.Clefs.contains(getShape());\r\n }",
"public boolean homogenousSubtree() {\r\n\t\tswitch(children.size()) {\r\n\t\t\tcase 0:\r\n\t\t\t\treturn true;\r\n\t\t\tcase 1:\r\n\t\t\t\treturn (this.type == children.get(0).type && children.get(0).homogenousSubtree());\r\n\t\t\tcase 2:\r\n\t\t\t\treturn \t((this.type == children.get(0).type) && children.get(0).homogenousSubtree() &&\r\n\t\t\t\t\t\t (this.type == children.get(1).type) && children.get(1).homogenousSubtree());\r\n\t\t\tdefault:\r\n\t\t\t\tlogger.fatal(\"A DependencyNode must not have more than 3 childnodes.\");\r\n\t\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\t\t\t\r\n\t}",
"public boolean isChildOf( InteractionClass other )\n\t{\n\t\t// look up our tree to see if the given class is one of our parents\n\t\tInteractionClass currentParent = this;\n\t\twhile( currentParent != null )\n\t\t{\n\t\t\tif( currentParent == other )\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean getIsOutOfLineFODescendant() {\n return isOutOfLineFODescendant;\n }",
"public boolean containsRelations();",
"public boolean isInFrontOf(Shape other)\n {\n return parent != null && parent.isInFrontOf(this, other);\n }",
"public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }",
"public boolean isAncestor(PBmmSchema schema, String typePart1, String typePart2) {\n PBmmClass classDefinition = schema.getClassDefinition(typePart1);\n List<String> ancestors = classDefinition.getAncestorTypeNames();\n if (ancestors.contains(typePart2)) { //direct ancestor\n return true;\n }\n for (String ancestor:ancestors) {\n if (isAncestor(schema, typePart1, ancestor)) { //recursive check\n return true;\n }\n }\n return false;\n }",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"public boolean hasAncestorOfType( Set<Type> types ) {\n PlanNode node = this.parent;\n while (node != null) {\n if (types.contains(node.getType())) return true;\n node = node.getParent();\n }\n return false;\n }",
"@Override\r\n\tpublic boolean hasChildren() {\n\t\tSystem.out.println(\"this children is=\"+this.children);\r\n\t\tif(this.children==null||this.children.isEmpty()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn !this.children.isEmpty();\r\n\t}",
"public boolean HasChildren() {\n\t\treturn left_ptr != null && right_ptr != null;\n\t}",
"public boolean intersects(Shape otherShape)\n {\n if (rotation == 0.0 && otherShape.rotation == 0.0)\n {\n return RectF.intersects(getBounds(), otherShape.getBounds());\n }\n else\n {\n updateRotatedCorners();\n otherShape.updateRotatedCorners();\n if (checkOutside(rotatedCorners, otherShape.rotatedCorners))\n {\n return false;\n }\n if (checkOutside(otherShape.rotatedCorners, rotatedCorners))\n {\n return false;\n }\n return true;\n }\n }",
"Collection<? extends Boundary> getIsBoundaryNodeOf();",
"public boolean hasRecursive() {\n return recursiveBuilder_ != null || recursive_ != null;\n }",
"boolean isLeaf();",
"boolean isLeaf();",
"boolean isLeaf();",
"boolean isLeaf();",
"public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}",
"public boolean isLeaf() {\n return children.size() == 0;\n }",
"public boolean isLeaf() {\n return children.size() == 0;\n }",
"boolean hasNested();",
"public boolean hasAncestorOfType( Type type ) {\n return hasAncestorOfType(EnumSet.of(type));\n }",
"public boolean isLeaf() {\n\t\treturn children.isEmpty();\n\t}",
"public boolean intersects(Shape other) {\n boolean result = false;\n ArrayList<Vector3D> points = getPoints();\n for (Vector3D point : points) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n if (other.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n points = other.getPoints();\n for (Vector3D point : points) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n if (this.contains(point)) {\n System.out.println(this.part.name + \" contains \" + other.part.name + \" : \" + point);\n\n result = true;\n }\n }\n }\n }\n\n return result;\n }",
"@Override\n\tpublic boolean hasChildren() {\n\t\treturn this.children!=null && this.children.length>0 ;\n\t}",
"@Override\n\tpublic boolean hasChildren() {\n\t\treturn this.children!=null && this.children.length>0 ;\n\t}",
"@Override\r\n \tpublic boolean hasChildren() {\n \t\treturn getChildren().length > 0;\r\n \t}",
"protected final boolean isLeaf() {\n return (getChildIds().isEmpty());\n }",
"public boolean isDescendantOf(Actor actor) {\n if (actor == null)\n throw new IllegalArgumentException(\"actor cannot be null.\");\n\n if(actor instanceof Group){\n Group group=(Group)actor;\n return internalGroup.isDescendantOf(group.internalGroup);\n }\n\n return internalGroup.isDescendantOf(actor.internalActor);\n }",
"public boolean isLeaf() {\r\n return (_children == null) || (_children.size() == 0);\r\n }",
"protected boolean isFullyContained(Widget widget) {\r\n // Calling getPreferredBounds forces the bounds to be calculated if it\r\n // has not already been calculated. For example when the Widget was\r\n // just created and therefore has not had a chance to be displayed.\r\n Rectangle area = widget.getClientArea();\r\n\r\n boolean retVal = false;\r\n if (area != null) {\r\n Rectangle sceneArea = widget.convertLocalToScene(area);\r\n\r\n Rectangle localArea = scene.convertSceneToLocal(sceneArea);\r\n Rectangle myArea = scene.getClientArea();\r\n retVal = myArea.contains(localArea);\r\n }\r\n\r\n return retVal;\r\n }",
"public boolean isLeaf()\r\n {\r\n return ! (isComposite(boundable1) || isComposite(boundable2));\r\n }",
"boolean hasRecursive();",
"public boolean hasAnnotatedBusiness(){\r\n\t\tList bus = this.rootDoc.selectNodes(\"a-business\") ;\r\n\t\t\r\n\t\treturn !bus.isEmpty() ;\r\n\t}",
"public boolean hasNeighbours() {\n\t\tif (this.eltZero != null || this.eltOne != null || this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isFull() {\n\t\t\r\n\t\tif(isLeaf()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (left == null || right == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (left.isLeaf() && right.isLeaf()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn (left.isFull() && right.isFull());\t\r\n\t}",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }",
"private boolean isNxNShape() {\n return this.matrix.size() == this.n &&\n this.matrix.stream()\n .allMatch(row -> row.size() == this.n);\n }",
"public boolean overlaps(Shape2D s)\r\n {\r\n if (isPhasing)\r\n return false;\r\n \r\n return super.overlaps(s);\r\n }",
"public boolean isChild(){\r\n return(leftleaf == null) && (rightleaf == null)); \r\n }",
"public boolean IsTree() {\r\n\t\treturn this.IsConnected() && !this.IsCyclic();\r\n\t}",
"public boolean isNotEmpty(){\n return root != null;\n }",
"boolean hasDepth();",
"boolean hasDepth();",
"boolean isOneToMany();",
"public boolean isParent();",
"public final boolean hasChild ()\r\n {\r\n return _value.hasChild();\r\n }",
"public boolean canLayout(ILayoutContext context) {\n\t\tPictogramElement pe = context.getPictogramElement();\r\n\t\tif (!(pe instanceof ContainerShape))\r\n\t\t\treturn false;\r\n\t\tEList<EObject> businessObjects = pe.getLink().getBusinessObjects();\r\n\t\treturn businessObjects.size() == 1 && businessObjects.get(0) instanceof Statement;\r\n\t}",
"public boolean hasContainingParentType() {\n return fieldSetFlags()[2];\n }",
"boolean isOccupiedByAnimal(Vector2d position);",
"public abstract boolean isNodeTypeCollection();",
"private boolean containsShapeList(List<List<Shape>> lst, String name) {\n for (List<Shape> shapeList : lst) {\n if (name.equals(shapeList.get(0).getName())) {\n return true;\n }\n }\n return false;\n }",
"public boolean hasSubTaxa() {\n\t\treturn !children.isEmpty();\n\t}",
"boolean hasIsPartOf();",
"public boolean isFull() {\n return head - tail == 1 || (head == 0 && tail == size - 1);\n }",
"abstract boolean isLeaf();",
"boolean isSuperclass(Concept x, Concept y);",
"public boolean isRoot() { return getAncestorCount()<2; }",
"public boolean isBinary() {\n boolean result = true;\n Queue<Node<T>> data = new LinkedList<>();\n data.offer(this.root);\n while (!data.isEmpty()) {\n Node<T> element = data.poll();\n if (!(element.leaves().size() <= 2)) {\n result = false;\n break;\n }\n for (Node<T> child : element.leaves()) {\n data.offer(child);\n }\n }\n return result;\n }",
"public boolean isInterior() {\n\t\tif (this.eltZero != null && this.eltOne != null && this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public static boolean isRelationshipElementType(IElementType type) {\r\n\t\tboolean result = false;\r\n\t\tEClass eclass = type.getEClass();\r\n\t\tif (UMLPackage.Literals.RELATIONSHIP.isSuperTypeOf(eclass)\r\n\t\t\t\t|| UMLPackage.Literals.CONNECTOR.isSuperTypeOf(eclass)) {\r\n\t\t\tresult = true;\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"boolean isSubclass(Concept x, Concept y);",
"public boolean hasRecursive() {\n return recursive_ != null;\n }",
"boolean contains(Polygon p);",
"public boolean isLeaf();",
"public boolean isLeaf();",
"public boolean isLeaf();",
"public boolean isLeaf();",
"@Override public boolean equals(Object o) {\r\n\t\tif (o instanceof Shape) {\r\n\t\t\treturn this.area() == ((Shape)o).area();\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public Boolean isParentable();"
] |
[
"0.75364155",
"0.66517836",
"0.6545941",
"0.6331969",
"0.6146958",
"0.60230297",
"0.59427416",
"0.5925455",
"0.5874738",
"0.5829448",
"0.58236367",
"0.5810053",
"0.5781496",
"0.57766676",
"0.5745249",
"0.5743592",
"0.5729254",
"0.57193214",
"0.57177913",
"0.57177913",
"0.57072407",
"0.5702489",
"0.5700675",
"0.5680116",
"0.566107",
"0.5658809",
"0.5643297",
"0.56423825",
"0.5630413",
"0.5619579",
"0.5599131",
"0.5579886",
"0.5579707",
"0.5573831",
"0.55678356",
"0.55660677",
"0.5555589",
"0.5538009",
"0.5531489",
"0.5524113",
"0.55013925",
"0.54912287",
"0.54736483",
"0.5462662",
"0.5462662",
"0.5462662",
"0.5462662",
"0.545423",
"0.54490787",
"0.54490787",
"0.5443761",
"0.543531",
"0.543191",
"0.54079247",
"0.5398656",
"0.5398656",
"0.53902227",
"0.53702754",
"0.536395",
"0.53534746",
"0.5351305",
"0.5350366",
"0.5348752",
"0.534867",
"0.534861",
"0.5348595",
"0.5334699",
"0.53314924",
"0.5323444",
"0.53208756",
"0.53191394",
"0.5316122",
"0.5314892",
"0.5314892",
"0.5311327",
"0.5301847",
"0.5297949",
"0.52896374",
"0.5287832",
"0.52704185",
"0.5270413",
"0.52664727",
"0.5264528",
"0.5260827",
"0.52601093",
"0.52525437",
"0.5249549",
"0.5234469",
"0.5231934",
"0.52315766",
"0.5228963",
"0.5228319",
"0.52279216",
"0.5225515",
"0.5220912",
"0.5220912",
"0.5220912",
"0.5220912",
"0.52178246",
"0.5214949"
] |
0.76350087
|
0
|
Returns first ancestor that the given shape and this shape have in common.
|
public RMShape getAncestorInCommon(RMShape aShape)
{
// If shape is our descendant, return this shape
if(isDescendant(aShape))
return this;
// Iterate up shape's ancestors until one has this shape as descendant
for(RMShape shape=aShape; shape!=null; shape=shape.getParent())
if(shape.isDescendant(this))
return shape;
// Return null since common ancestor not found
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List <RMShape> getShapesToAncestor(RMShape aShape)\n{\n // Iterate and add up this shape and parents until given ancestor is added (or we run out)\n List ancestors = new ArrayList();\n for(RMShape shape=this; shape!=null; shape=shape.getParent()) {\n ancestors.add(shape);\n if(shape==aShape)\n break;\n }\n \n // Return ancestors\n return ancestors;\n}",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"public FObj findNearestAncestorFObj() {\n FONode par = parent;\n while (par != null && !(par instanceof FObj)) {\n par = par.parent;\n }\n return (FObj) par;\n }",
"Node commonAncestor(Node one, Node two);",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public RMShape getAncestor(int anIndex) { return anIndex==0? getParent() : getParent().getAncestor(anIndex-1); }",
"public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }",
"@NativeType(\"hwloc_obj_t\")\n public static hwloc_obj hwloc_get_common_ancestor_obj(@NativeType(\"hwloc_topology_t\") long topology, @NativeType(\"hwloc_obj_t\") hwloc_obj obj1, @NativeType(\"hwloc_obj_t\") hwloc_obj obj2) {\n while (obj1.address() != obj2.address()) {\n while (obj1.depth() > obj2.depth()) {\n obj1 = Objects.requireNonNull(obj1.parent());\n }\n while (obj2.depth() > obj1.depth()) {\n obj2 = Objects.requireNonNull(obj2.parent());\n }\n if (obj1.address() != obj2.address() && obj1.depth() == obj2.depth()) {\n obj1 = Objects.requireNonNull(obj1.parent());\n obj2 = Objects.requireNonNull(obj2.parent());\n }\n }\n return obj1;\n }",
"TreeNode commonAncestor(TreeNode p, TreeNode q) {\n\t// find depths of the two nodes \n\tint depthP = depth(p);\n\tint depthQ = depth(q);\n\t// find difference in depths \n\tint diffDepths = depthP - depthQ;\n\t// q is more shallow\n\tTreeNode first = diffDepths > 0 ? q : p; \n\t// p is more deep\n\tTreeNode second = diffDepths > 0 ? p : q; \n\t// Bring the second one up \n\tsecond = goUpBy(second, Math.abs(delta));\n\n\t// FIND INTERSECTING PATH BY GOING UP ONE AT A TIME\n\t// WHILE THEY ARE NOT THE SAME AND BOTH NOT NULL \n\twhile (first != second && first != null && second != null) {\n\t\tfirst = first.parent;\n\t\tsecond = second.parent; \n\t}\n\t// if either is null, no common, therefore return null\n\t// else we can return one of the two bc they are the same\n\treturn first == null || second == null ? null : first; \n\n}",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"TreeNode commonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n\tResult r = commonAncestorHelper(root, p, q);\n\t// if whatever is returned is an ancestor\n\t// we return that node\n\t// else return null, there is no ancestor that exists\n\tif (r.isAncestor) {\n\t\treturn r.node\n\t}\n\treturn null; \n}",
"protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }",
"public List <RMShape> getShapesToDescendant(RMShape aShape)\n{\n List list = aShape.getShapesToAncestor(this); Collections.reverse(list); return list;\n}",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public TopoDS_Shape Ancestor( TopoDS_Edge E) {\n TopoDS_Shape ret = new TopoDS_Shape(OCCwrapJavaJNI.BRepAlgo_NormalProjection_Ancestor(swigCPtr, this, TopoDS_Edge.getCPtr(E), E), true);\n return ret;\n }",
"public <T extends RMShape> T getParent(Class<T> aClass)\n{\n for(RMShape s=getParent(); s!=null; s=s.getParent()) if(aClass.isInstance(s)) return (T)s;\n return null; // Return null since parent of class wasn't found\n}",
"public UIElement getCommonParent(UIElement first, UIElement second) {\n if (first == second) {\n return first;\n }\n Set<UIElement> trace = new HashSet<>();\n for (UIElement e = first; e != null; e = e.getParent()) {\n trace.add(e);\n }\n for (UIElement e = second; e != null; e = e.getParent()) {\n if (trace.contains(e)) {\n return e;\n }\n }\n return null;\n }",
"TreeNode findFirstCommonAncestor(TreeNode other) {\n\t\tSet<TreeNode> ancestors = buildOtherAncestor(other,\n\t\t\t\tnew HashSet<TreeNode>());\n\t\treturn firstNodeInSet(ancestors);\n\t}",
"public int ancestor(int v, int w) {\n Paths sapComponents = sap(v, w);\n return sapComponents == null ? NO_ANCESTOR : sapComponents.ancestor();\n }",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n TreeNode cur = root;\n while (true) {\n if (cur.val > p.val && cur.val > q.val) cur = cur.left;\n else if (cur.val < p.val && cur.val < q.val) cur = cur.right;\n else return cur;\n }\n}",
"public List <RMShape> getShapesToShape(RMShape aShape)\n{\n // If shape is null or ancestor, return shapes to ancestor\n if(aShape==null || isAncestor(aShape))\n return getShapesToAncestor(aShape);\n \n // If shape is a descendant, return shapes to descendant\n if(isDescendant(aShape))\n return getShapesToDescendant(aShape);\n\n // Get common ancestor (if none, just return null)\n RMShape commonAncestor = getAncestorInCommon(aShape);\n if(commonAncestor==null)\n return null;\n \n // Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape\n List shapes = getShapesToAncestor(commonAncestor);\n shapes.remove(shapes.size()-1);\n shapes.addAll(commonAncestor.getShapesToDescendant(aShape));\n\n // Return shapes\n return shapes;\n}",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) throw new IllegalArgumentException();\n for (Integer x : v) {\n if (x == null) throw new IllegalArgumentException();\n }\n for (Integer x : w) {\n if (x == null) throw new IllegalArgumentException();\n }\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(wordGraph, v);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(wordGraph, w);\n int ancestor = -1;\n int len = -1;\n for (int i = 0; i < wordGraph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i) + path2.distTo(i);\n ancestor = i;\n }\n if (path1.distTo(i) + path2.distTo(i) < len) {\n len = path1.distTo(i) + path2.distTo(i);\n ancestor = i;\n }\n }\n }\n return ancestor;\n }",
"public static VSOPClass commonAncestor(VSOPClass c1, VSOPClass c2) {\n\t\tStack<VSOPClass> s1 = new Stack<>();\n\t\twhile (c1 != null) {\n\t\t\ts1.push(c1);\n\t\t\tc1 = c1.superClass;\n\t\t}\n\n\t\tStack<VSOPClass> s2 = new Stack<>();\n\t\twhile (c2 != null) {\n\t\t\ts2.push(c2);\n\t\t\tc2 = c2.superClass;\n\t\t}\n\n\t\tVSOPClass common = null;\n\t\twhile (!s1.isEmpty() && !s2.isEmpty() && s1.peek() == s2.peek()) {\n\t\t\tcommon = s1.pop();\n\t\t\ts2.pop();\n\t\t}\n\n\t\treturn common;\n\t}",
"Result commonAncestorHelper(TreeNode root, TreeNode p, TreeNode q) {\n\tif (root == null) return new Result(null, false);\n\n\n\t// they are the same node, and is the root\n\tif (root == p && root == q) {\n\t\treturn new Result(root, true);\n\t}\n\t// searching left subtree\n\tResult rx = commonAncestorHelper(root.left, p, q);\n\t// found a common ancestor \n\tif (rx.isAncestor) { \n\t\treturn rx; \n\t}\n\n\t// searching right subtree\n\tResult ry = commonAncestorHelper(root.right, p, q);\n\tif (ry.isAncestor) {\n\t\treturn ry; \n\t}\n\n\tif (rx.node != null && ry.node != null) {\n\t\treturn new Result(root, true); // common ancestor \n\t} else if (root == p || root == q) {\n\t\t// we're currently at p or q\n\t\t// found one of those nodes in subtree, then ancestor\n\t\t// flag TRUE\n\t\tboolean isAncestor = rx.node != null || ry.node != null; \n\t\treturn new Result(root, isAncestor)\n\t} else {\n\t\treturn new Result(rx.node != null ? rx.node : ry.node, false);\n\t}\n\n\n}",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n\t\tif (v == null || w == null)\n\t\t\tthrow new IllegalArgumentException();\n\t\tBreadthFirstDirectedPaths bfsv = new BreadthFirstDirectedPaths(G, v);\n\t\tBreadthFirstDirectedPaths bfsw = new BreadthFirstDirectedPaths(G, w);\n\t\tint dv, dw, ancestor = -1, dsap = INFINITY;\n\t\tfor(int vertex = 0; vertex < G.V(); vertex++) {\n\t\t\tdv = bfsv.distTo(vertex);\n\t\t\tdw = bfsw.distTo(vertex);\n\t\t\tif (dv != INFINITY && dw != INFINITY && (dv + dw < dsap)) {\n\t\t\t\tancestor = vertex;\n\t\t\t\tdsap = dv + dw;\n\t\t\t} \n\t\t}\n\t\treturn (dsap == INFINITY) ? -1 : ancestor;\n\t}",
"Object getParent();",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n Paths sapComponents = sap(v, w);\n return sapComponents == null ? NO_ANCESTOR : sapComponents.ancestor();\n }",
"public int ancestor(int v, int w) {\n\t\tBreadthFirstDirectedPaths bfsv = new BreadthFirstDirectedPaths(G, v);\n\t\tBreadthFirstDirectedPaths bfsw = new BreadthFirstDirectedPaths(G, w);\n\t\tint dv, dw, ancestor = -1, dsap = INFINITY;\n\t\tfor(int vertex = 0; vertex < G.V(); vertex++) {\n\t\t\tdv = bfsv.distTo(vertex);\n\t\t\tdw = bfsw.distTo(vertex);\n\t\t\tif (dv != INFINITY && dw != INFINITY && (dv + dw < dsap)) {\n\t\t\t\tancestor = vertex;\n\t\t\t\tdsap = dv + dw;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn (dsap == INFINITY) ? -1 : ancestor;\n\t}",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n BreadthFirstDirectedPaths bfdV = new BreadthFirstDirectedPaths(G, v);\n BreadthFirstDirectedPaths bfdW = new BreadthFirstDirectedPaths(G, w);\n int distance = Integer.MAX_VALUE;\n int commonAncestor = -1;\n for (int i = 0; i < G.V(); i++) {\n if (bfdV.hasPathTo(i) && bfdW.hasPathTo(i)) {\n int local = bfdV.distTo(i) + bfdW.distTo(i);\n if (local < distance) {\n distance = local;\n commonAncestor = i;\n }\n }\n }\n return commonAncestor;\n }",
"public JDialog getAncestor() {\n return ancestor;\n }",
"public abstract Node getBoundingNode();",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n if (root.val < p.val && root.val < q.val) return lowestCommonAncestor(root.right, p, q);\n else if (root.val > p.val && root.val > q.val) return lowestCommonAncestor(root.left, p, q);\n return root;\n}",
"public BinaryTreeNode getCommonAncestor(BinaryTreeNode head, BinaryTreeNode node1, BinaryTreeNode node2) {\n if (head == null || node1 == null || node2 == null) {\n return null;\n }\n\n List<BinaryTreeNode> nodes = findAncestor(head, node1, node2);\n if (nodes.contains(node1) && nodes.contains(node2)) {\n return nodes.get(nodes.size() -1);\n }\n\n return null;\n }",
"@Test\n\tpublic void lowestCommonAncestorTest1()\n\t{\n\t\tNodeList n1=xmlDocument.getElementsByTagName(\"b\");\n\t\tNodeList n2=xmlDocument.getElementsByTagName(\"i\");\n\t\tassertEquals(\"p\",Manipulator.lowestCommonAncesstor(n1.item(0),n2.item(0)).getNodeName());\n\t}",
"public int ancestor(int v, int w) {\n BreadthFirstDirectedPaths bfdV = new BreadthFirstDirectedPaths(G, v);\n BreadthFirstDirectedPaths bfdW = new BreadthFirstDirectedPaths(G, w);\n int distance = Integer.MAX_VALUE;\n int commonAncestor = -1;\n for (int i = 0; i < G.V(); i++) {\n if (bfdV.hasPathTo(i) && bfdW.hasPathTo(i)) {\n int local = bfdV.distTo(i) + bfdW.distTo(i);\n if (local < distance) {\n distance = local;\n commonAncestor = i;\n }\n }\n }\n return commonAncestor;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null)\n throw new NullPointerException();\n for (int i : v) inBound(i);\n for (int i : w) inBound(i);\n length(v,w);\n return ancestor;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w){\n if(v == null || w == null)\n throw new NullPointerException(\"null arguments\");\n shortestPath(v,w);\n return ca;\n }",
"public int ancestor(int v, int w){\n shortestPath(v,w);\n return ca;\n }",
"public RMParentShape getParent() { return _parent; }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n\n\n validateIterableVertices(v);\n validateIterableVertices(w);\n\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n Stack<Integer> candidates = new Stack<>();\n\n for (int p = 0; p < dg.V(); p++) {\n if (bfs1.hasPathTo(p) && bfs2.hasPathTo(p)) {\n candidates.push(p);\n }\n }\n\n int shortesAncestor = -1;\n int shortesPath = Integer.MAX_VALUE;\n\n while (!candidates.isEmpty()) {\n int c = candidates.pop();\n if (shortesPath > bfs1.distTo(c) + bfs2.distTo(c)) {\n shortesPath = bfs1.distTo(c) + bfs2.distTo(c);\n shortesAncestor = c;\n }\n }\n\n return shortesAncestor;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) {\n throw new NullPointerException();\n }\n BreadthFirstDirectedPaths bfdpv = new BreadthFirstDirectedPaths(g, v);\n BreadthFirstDirectedPaths bfdpw = new BreadthFirstDirectedPaths(g, w);\n int anc = -1;\n int minLen = Integer.MAX_VALUE;\n for (int x = 0; x < g.V(); x++) {\n if (bfdpv.hasPathTo(x) && bfdpw.hasPathTo(x)) {\n int len = bfdpv.distTo(x) + bfdpw.distTo(x);\n if (len < minLen) {\n minLen = len;\n anc = x;\n }\n }\n }\n return anc;\n }",
"public TreeNode lowestCommonAncestor2(TreeNode root, TreeNode p, TreeNode q) {\r\n\t\t if(root == null || p == root || q == root)\r\n\t return root;\r\n\t \r\n\t TreeNode left = lowestCommonAncestor(root.left, p, q);\r\n\t TreeNode right = lowestCommonAncestor(root.right, p, q);\r\n\t \r\n\t if(left == null && right != null) { // both on right\r\n\t return right;\r\n\t }\r\n\t if(right == null && left != null) { // both on left\r\n\t return left;\r\n\t }\r\n\t if(right == null && left == null) { // not in left and right\r\n\t return null;\r\n\t }\r\n\t return root; // right != null && left != null, one in left, one in right\r\n\t }",
"private static PhyloTreeNode findLeastCommonAncestor(PhyloTreeNode node1, PhyloTreeNode node2) {\n if(node1 == null || node2 == null) {\n return null;\n }\n else{\n String label1 = node1.getLabel();\n String label2 = node2.getLabel();\n if(label1.contains(label2) && (label2.contains(\"+\") || label1.equals(label2)))\n return node1;\n else if(label2.contains(label1) && (label2.contains(\"+\") || label2.equals(label1)))\n return node2;\n else{\n return findLeastCommonAncestor(node1.getParent(), node2.getParent());\n }\n }\n }",
"public TreeNode lowestCommonAncestor(TreeNode root,\n TreeNode one, TreeNode two) {\n if(root == null) return null;\n if(root.key == one.key || root.key == two.key) return root;\n \n TreeNode left = lowestCommonAncestor(root.left, one, two);\n TreeNode right = lowestCommonAncestor(root.right, one, two);\n \n if(left != null && right != null) return root;\n return left == null ? right : left;\n }",
"public int ancestor(int v, int w) {\n bfsV = new BreadthFirstDirectedPaths(graph, v);\n bfsW = new BreadthFirstDirectedPaths(graph, w);\n distance = Integer.MAX_VALUE;\n for (int i = 0; i < graph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n if (distance >= (bfsV.distTo(i) + bfsW.distTo(i))) {\n distance = bfsV.distTo(i) + bfsW.distTo(i);\n ancestor = i;\n }\n }\n }\n return ancestor;\n }",
"public int ancestor(int v, int w) {\n BreadthFirstDirectedPaths path1 = new BreadthFirstDirectedPaths(wordGraph, v);\n BreadthFirstDirectedPaths path2 = new BreadthFirstDirectedPaths(wordGraph, w);\n int ancestor = -1;\n int len = -1;\n for (int i = 0; i < wordGraph.V(); i++) {\n if (path1.hasPathTo(i) && path2.hasPathTo(i)) {\n if (len == -1) {\n len = path1.distTo(i) + path2.distTo(i);\n ancestor = i;\n }\n if (path1.distTo(i) + path2.distTo(i) < len) {\n len = path1.distTo(i) + path2.distTo(i);\n ancestor = i;\n }\n }\n }\n return ancestor;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (v == null || w == null) throw new IllegalArgumentException(\"Null argument\");\n for (Integer each : v) {\n if (each == null) throw new IllegalArgumentException(\"Null argument\");\n }\n for (Integer each : w) {\n if (each == null) throw new IllegalArgumentException(\"Null argument\");\n }\n int candidate = Integer.MAX_VALUE;\n ancestorMultiple = Integer.MAX_VALUE;\n bfsV = new BreadthFirstDirectedPathsFast(digraph, v);\n bfsW = new BreadthFirstDirectedPathsFast(digraph, w);\n for (int i = 0; i < digraph.V(); ++i) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n int distV = bfsV.distTo(i);\n int distW = bfsW.distTo(i);\n if (distV + distW < candidate) {\n candidate = distV + distW;\n ancestorMultiple = i;\n }\n }\n }\n return ancestorMultiple == Integer.MAX_VALUE ? -1 : ancestorMultiple;\n }",
"public boolean isInFrontOf(Shape other)\n {\n return parent != null && parent.isInFrontOf(this, other);\n }",
"public TreeNode lowestCommonAncestor_selfAC(TreeNode root, TreeNode one, TreeNode two) {\n\t\tif (root == null) { \n\t\t\treturn null;\n\t\t}\n\t\tif (one == null) {\n\t\t\treturn two;\n\t\t}\n\t\tif (two == null) {\n\t\t\treturn one;\n\t\t}\n\t\treturn helper(root, one, two);\n\t}",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n if (root == null) return null;\n if (root == q || root == p) return root;\n if (root.val > Math.max(p.val, q.val)) {\n return lowestCommonAncestor(root.left, p, q);\n } \n if (root.val < Math.min(p.val, q.val)) {\n return lowestCommonAncestor(root.right, p, q);\n }\n if (root.val > q.val && root.val < p.val || root.val > p.val && root.val < q.val) {//else\n return root;\n }\n \n return null;//never\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n int shortestPath = Integer.MAX_VALUE;\n Deque<Integer> ancestors = new ArrayDeque<>();\n int ancestor = -1;\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer a : ancestors) {\n if ((bfsV.distTo(a) + bfsW.distTo(a)) < shortestPath) {\n shortestPath = (bfsV.distTo(a) + bfsW.distTo(a));\n ancestor = a;\n }\n }\n return ancestor;\n }",
"public int ancestor(int v, int w){\n\t BreadthFirstDirectedPaths BFSv =new BreadthFirstDirectedPaths(D,v);\n\t BreadthFirstDirectedPaths BFSw =new BreadthFirstDirectedPaths(D,w);\n\t \n\t int distance = Integer.MAX_VALUE;\n\t int ancestor = -1;\n\t for (int vertex = 0 ; vertex < D.V();vertex++)\n\t\t if ((BFSv.hasPathTo(vertex))\n\t\t\t\t &&(BFSw.hasPathTo(vertex))\n\t\t\t\t &&(BFSv.distTo(vertex)+BFSw.distTo(vertex))<distance)\n\t\t {\n\t\t\t ancestor = vertex;\n\t\t\t distance = BFSv.distTo(vertex)+BFSw.distTo(vertex);\n\t\t }\n\n\t\t return ancestor;\n }",
"public TreeNode lowestCommonAncestor2(TreeNode root, TreeNode p, TreeNode q) {\n \n //base\n if(root == null || p == root || q == root){\n return root;\n }\n \n //Logic\n TreeNode left = lowestCommonAncestor2(root.left, p, q);\n TreeNode right = lowestCommonAncestor2(root.right, p, q);\n \n if(left != null && right != null){\n return root; \n }\n else if(left != null){\n return left;\n }\n else \n return right;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w){\n\t return 0;\n }",
"private SchemaComponent findOutermostParentElement(){\n SchemaComponent element = null;\n //go up the tree and look for the last instance of <element>\n\tSchemaComponent sc = getParent();\n while(sc != null){\n if(sc instanceof Element){\n element = sc;\n }\n\t sc = sc.getParent();\n }\n return element;\n }",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n if(root == null || root == p || root == q){\n return root;\n }\n TreeNode left = lowestCommonAncestor(root.left, p, q);\n TreeNode right = lowestCommonAncestor(root.right, p, q);\n if(left != null && right != null) return root;\n if(left != null) return left;\n if(right != null) return right;\n return null;\n }",
"@Test\n\tpublic void lowestCommonAncestorTest3()\n\t{\n\t\tNodeList n1=xmlDocument.getElementsByTagName(\"b\");\n\t\tNodeList n2=xmlDocument.getElementsByTagName(\"p\");\n\t\tassertEquals(\"#document\",Manipulator.lowestCommonAncesstor(n1.item(0),n2.item(0)).getNodeName());\n\t}",
"public int ancestor(int v, int w) {\n\n if (v < 0 || v >= dg.V() || w < 0 || w >= dg.V())\n throw new IllegalArgumentException(\"vertex is not between 0 and \" + (dg.V() - 1));\n\n BreadthFirstDirectedPaths bfs1 = new BreadthFirstDirectedPaths(dg, v);\n BreadthFirstDirectedPaths bfs2 = new BreadthFirstDirectedPaths(dg, w);\n\n Stack<Integer> candidates = new Stack<>();\n\n for (int p = 0; p < dg.V(); p++) {\n if (bfs1.hasPathTo(p) && bfs2.hasPathTo(p)) {\n candidates.push(p);\n }\n }\n\n int shortesAncestor = -1;\n int shortesPath = Integer.MAX_VALUE;\n\n while (!candidates.isEmpty()) {\n int c = candidates.pop();\n if (shortesPath > bfs1.distTo(c) + bfs2.distTo(c)) {\n shortesPath = bfs1.distTo(c) + bfs2.distTo(c);\n shortesAncestor = c;\n }\n }\n\n return shortesAncestor;\n\n }",
"private TreeNode getAncestorNode(LayoutEntity layout, Map<Long, TreeNode> ancestorNodeMap) {\n TreeNode ancestor = ancestorNodeMap.get(layout.getIndex().getId());\n if (Objects.isNull(ancestor)) {\n ancestor = new TreeNode(layout.getIndex(), Lists.newArrayList(layout));\n ancestor.layout = layout;\n ancestor.layoutNodes.forEach(LayoutNode::setSpanned);\n ancestorNodeMap.put(layout.getIndex().getId(), ancestor);\n }\n return ancestor;\n }",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\r\n\t if (root == null || root == p || root == q) \r\n\t \treturn root;\r\n\t \r\n\t TreeNode left = lowestCommonAncestor(root.left, p, q);\r\n\t TreeNode right = lowestCommonAncestor(root.right, p, q);\r\n\t \r\n\t return left == null ? right : right == null ? left : root;\r\n\t}",
"public int ancestor(int v, int w) {\n int[] res = shortest(v, w);\n return res[1];\n }",
"public TreeNode lowestCommonAncestor1(TreeNode root, TreeNode p, TreeNode q) {\n\t\tif(root == null || root == p || root == q) return root;\n\t\tboolean pOnLeft = exists(root.left, p);\n\t\tboolean pOnRight = exists(root.right, p);\n\n\t\tboolean qOnLeft = exists(root.left, q);\n\t\tboolean qOnRight = exists(root.right, q);\n\n\n\t\tif((pOnLeft & qOnRight) || (qOnLeft & pOnRight)) {System.out.println(\"LCA found...\"); return root;}\n\t\telse if(pOnLeft & qOnLeft) {System.out.println(\"Inside left...\"); return lowestCommonAncestor(root.left, p, q);}\n\t\telse if(pOnRight & qOnRight) {System.out.println(\"Inside right...\"); return lowestCommonAncestor(root.right, p, q);}\n\t\treturn null;\n\t}",
"protected int findAncestor(int ancestorID) {\n int found = 1;\n FONode temp = getParent();\n while (temp != null) {\n if (temp.getNameId() == ancestorID) {\n return found;\n }\n found += 1;\n temp = temp.getParent();\n }\n return -1;\n }",
"public int ancestor(int v, int w) {\n inBound(v);\n inBound(w);\n length(v,w);\n return ancestor;\n }",
"public Set<Shape> overlappingShapes(Shape shape) { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Shape>();\n Set<Shape> set = new HashSet<Shape>(); \n Iterator<Shape> its = myrc.geom_to_bundles.keySet().iterator();\n while (its.hasNext()) {\n Shape its_shape = its.next();\n\tif (Utils.genericIntersects(shape, its_shape)) set.add(its_shape);\n }\n Iterator<Line2D> itl = myrc.line_to_bundles.keySet().iterator();\n while (itl.hasNext()) {\n Line2D line = itl.next(); \n\t if (line.contains(shape.getBounds())) set.add(line);\n }\n return set;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\r\n for (Integer vTmp : v) {\r\n if (vTmp < 0 || vTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n for (Integer wTmp : w) {\r\n if (wTmp < 0 || wTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n int shortestDistIndex = -1;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n if (shortestDist > bfdp1.distTo(i) + bfdp2.distTo(i)) {\r\n shortestDist = bfdp1.distTo(i) + bfdp2.distTo(i);\r\n shortestDistIndex = i;\r\n }\r\n }\r\n }\r\n return shortestDistIndex;\r\n }",
"public int ancestor(int v, int w) {\n if (v < 0 || v >= digraph.V() || w < 0 || w >= digraph.V())\n throw new IllegalArgumentException(\"Null argument\");\n int candidate = Integer.MAX_VALUE;\n ancestor = Integer.MAX_VALUE;\n bfsV = new BreadthFirstDirectedPathsFast(digraph, v);\n bfsW = new BreadthFirstDirectedPathsFast(digraph, w);\n for (int i = 0; i < digraph.V(); ++i) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n int distV = bfsV.distTo(i);\n int distW = bfsW.distTo(i);\n if (distV + distW < candidate) {\n candidate = distV + distW;\n ancestor = i;\n }\n }\n }\n return ancestor == Integer.MAX_VALUE ? -1 : ancestor;\n }",
"public CourseComponent getAncestor(EnumSet<BlockType> types) {\n if (types.contains(type))\n return this;\n IBlock ancestor = parent;\n if (ancestor == null)\n return null;\n do {\n if (types.contains(ancestor.getType()))\n return (CourseComponent) ancestor;\n } while ((ancestor = ancestor.getParent()) != null);\n return null;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n int min = Integer.MAX_VALUE;\n int a = -1;\n for (int i = 0; i < digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i) && bfsV.distTo(i) + bfsW.distTo(i) < min) {\n min = bfsV.distTo(i) + bfsW.distTo(i);\n a = i;\n }\n }\n return a;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n int[] res = shortest(v, w);\n return res[1];\n }",
"public abstract Optional<TypeName> parent();",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n int[] ret = new int[2];\n sap(v, w, ret);\n return ret[0];\n }",
"public int ancestor(int v, int w) {\n BreadthFirstDirectedPaths bfdpv = new BreadthFirstDirectedPaths(g, v);\n BreadthFirstDirectedPaths bfdpw = new BreadthFirstDirectedPaths(g, w);\n int anc = -1;\n int minLen = Integer.MAX_VALUE;\n for (int x = 0; x < g.V(); x++) {\n if (bfdpv.hasPathTo(x) && bfdpw.hasPathTo(x)) {\n int len = bfdpv.distTo(x) + bfdpw.distTo(x);\n if (len < minLen) {\n minLen = len;\n anc = x;\n }\n }\n }\n return anc;\n }",
"public int ancestor(int v, int w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int closestAncestor = -1;\n int shortestPath = Integer.MAX_VALUE;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n if ((bfsV.distTo(integer) + bfsW.distTo(integer)) < shortestPath) {\n shortestPath = (bfsV.distTo(integer) + bfsW.distTo(integer));\n closestAncestor = integer;\n }\n }\n return closestAncestor;\n }",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode one, TreeNode two) {\n\t\t// Assumptions: root is not null, one and two guaranteed to be in the tree and not null.\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\t\t// if root is one or two, we can ignore the later recursions.\n\t\tif (root == one || root == two) {\n\t\t\treturn root;\n\t\t}\n\t\tTreeNode ll = lowestCommonAncestor(root.left, one, two);\n\t\tTreeNode lr = lowestCommonAncestor(root.right, one, two);\n\t\tif (ll != null && lr != null) {\n\t\t\treturn root;\n\t\t}\n\t\treturn ll == null ? lr : ll;\n\t}",
"public int getParent();",
"public tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier commonSuperType(tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier c) {\n \n\tif (this.conformsTo(c)) { return c; }\n\tif (c.conformsTo(this)) { return this; }\n Set thisParents = new HashSet(); ;\n thisParents.add(this);\n Set cParents = new HashSet(); ;\n cParents.add(c);\n \n //the transitive closure of the Classifier and all of its parents\n Set thisTC = new HashSet();\n Set cTC = new HashSet();\n \n while(!(thisParents.isEmpty() && cParents.isEmpty())){\n thisTC.addAll(thisParents);\n cTC.addAll(cParents);\n \n Set thisParentsTemp = new HashSet();\n Iterator thisParentsIt = thisParents.iterator();\n while(thisParentsIt.hasNext()){\n tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier aThisParent = (tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier) thisParentsIt.next();\n if(cTC.contains(aThisParent)){\n return aThisParent;\n }\n thisParentsTemp.addAll(aThisParent.getParents());\n }\n thisParents=thisParentsTemp;\n \n Set cParentsTemp = new HashSet();\n Iterator cParentsIt = cParents.iterator();\n while(cParentsIt.hasNext()){\n tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier aCParent = (tudresden.ocl20.core.jmi.ocl.commonmodel.Classifier) cParentsIt.next();\n if(thisTC.contains(aCParent)){\n return aCParent;\n }\n cParentsTemp.addAll(aCParent.getParents());\n }\n cParents=cParentsTemp;\n }\n return null; //should only occure if c is a collection type\n }",
"public int ancestor(int v, int w) {\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n int min = Integer.MAX_VALUE;\n int a = -1;\n for (int i = 0; i < digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i) && bfsV.distTo(i) + bfsW.distTo(i) < min) {\n min = bfsV.distTo(i) + bfsW.distTo(i);\n a = i;\n }\n }\n return a;\n }",
"public TreeNode lowestCommonAncestor_1(TreeNode root, TreeNode p, TreeNode q){\n Deque<TreeNode> stack = new ArrayDeque<>();\n Map<TreeNode, TreeNode> parent = new HashMap<>();\n parent.put(root, null);\n stack.push(root);\n\n // Iterate until we find both the nodes p and q\n while(!parent.containsKey(p) || !parent.containsKey(q)){\n TreeNode node = stack.pop();\n if (node.left != null){\n parent.put(node.left, node);\n stack.push(node.left);\n }\n if (node.right != null){\n parent.put(node.right, node);\n stack.push(node.right);\n }\n }\n // Ancestors set() for node p\n Set<TreeNode> ancestors = new HashSet<>();\n // Process all ancestors for node p using parent pointers.\n while(p!=null){\n ancestors.add(p);\n p = parent.get(p);\n }\n // The first ancestors of q which appears in\n // p's ancestor set() is their lowest common ancestor\n while(!ancestors.contains(q))\n q = parent.get(q);\n return q;\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n int nopath = -1;\n int length = Integer.MAX_VALUE;\n for (int i1 : v) {\n for (int i2 : w) {\n int ancestor = ancestor(i1, i2);\n if (length >= length(i1, i2)) {\n length = distance;\n nopath = ancestor;\n }\n }\n }\n distance = length;\n return nopath;\n }",
"public int ancestor(int v, int w) {\n int[] ret = new int[2];\n ArrayList<Integer> vl = new ArrayList<Integer>(1);\n vl.add(v);\n ArrayList<Integer> wl = new ArrayList<Integer>(1);\n wl.add(w);\n sap(vl, wl, ret);\n return ret[0];\n }",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n \n if(root.val > p.val && root.val >q.val)\n return lowestCommonAncestor(root.left,p,q);\n \n if(root.val < p.val && root.val <q.val)\n return lowestCommonAncestor(root.right,p,q);\n \n else\n return root;\n \n }",
"public int indexOf(Shape shape)\n {\n // returns the index of the child\n return children.indexOf(shape);\n }",
"public int ancestor(int v, int w) {\r\n if (v < 0 || w < 0 || v >= G.V() || w >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n int shortestDistIndex = -1;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n if (shortestDist > bfdp1.distTo(i) + bfdp2.distTo(i)) {\r\n shortestDist = bfdp1.distTo(i) + bfdp2.distTo(i);\r\n shortestDistIndex = i;\r\n }\r\n }\r\n }\r\n return shortestDistIndex;\r\n }",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n\n int BOTH_DONE = 0;\n int LEFT_DONE = 1;\n int BOTH_PENDING = 2;\n\n Stack<Pair<TreeNode, Integer>> stack = new Stack<>();\n TreeNode LCA = null;\n stack.push(new Pair<>(root, BOTH_PENDING));\n\n while (!stack.isEmpty()) {\n Pair<TreeNode, Integer> topPair = stack.peek();\n if (topPair.second != BOTH_DONE) {\n //mark LCA on first entry, on back track , if reprocess then we'd send LCA incorrectly because\n //same p or q will be repeated when back tracking for example from left path\n if ((topPair.second == BOTH_PENDING) && (topPair.first == p || topPair.first == q)) {\n //node matched\n if (LCA != null) {\n return LCA;\n } else {\n LCA = topPair.first;\n }\n }\n\n //move left or right based on the state of the node\n TreeNode child;\n if (topPair.second == LEFT_DONE) {\n child = topPair.first.right;\n } else {\n child = topPair.first.left;\n }\n stack.pop();\n stack.push(new Pair<>(topPair.first, topPair.second - 1));\n if (child != null)\n stack.push(new Pair<>(child, BOTH_PENDING));\n\n } else {\n //if both childs visited, pop the element and move the LCA to the prior node which\n //was parent of the current node with LCA\n if (LCA == topPair.first) {\n stack.pop();\n LCA = stack.peek().first;\n } else {\n stack.pop();\n }\n }\n }\n return null;\n }",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n \n if(root == null) {\n return root;\n }\n \n if(p.val > root.val && q.val > root.val) {\n return lowestCommonAncestor(root.right, p, q);\n }\n else if(p.val < root.val && q.val < root.val) {\n return lowestCommonAncestor(root.left, p, q);\n }\n else {\n return root;\n }\n \n }",
"IShape getStartShape();",
"Shape getShape();",
"IGLProperty getParent();",
"public ConnectorFigure getPrimaryShape() {\r\n\t\treturn (ConnectorFigure) primaryShape;\r\n\t}",
"public PlanNode findAncestor( Set<Type> typesToFind ) {\n PlanNode node = this;\n PlanNode parent = null;\n while ((parent = node.getParent()) != null) {\n if (typesToFind.contains(parent.getType())) return parent;\n node = parent;\n }\n return null;\n }",
"@Test(expected=NullPointerException.class)\n\tpublic void lowestCommonAncestorTest2()\n\t{\n\t\tNodeList n1=xmlDocument.getElementsByTagName(\"c\");\n\t\tNodeList n2=xmlDocument.getElementsByTagName(\"i\");\n\t\tManipulator.lowestCommonAncesstor(n1.item(0),n2.item(0));\n\t}",
"private Node<?> findClosestAncestor(ZQuadTree<?> tree, long quad) {\n assert ZQuad.isAncestor(this.quad, quad);\n if (this.size <= tree.splitThreshold || this.quad == quad) {\n return this;\n } else {\n Node<?>[] children = (Node<?>[]) data;\n for (int i = 0; i < kJunctionChildCount; i++) {\n Node<?> child = children[i];\n if (child != null && ZQuad.isAncestor(child.quad, quad))\n return child.findClosestAncestor(tree, quad);\n }\n return kEmpty;\n }\n }",
"public static void findClosestSharedParentBST() {\n \n // initialize graph (adjacency list) as a BST\n int[][] bst = {\n {1,2}, // vertex 0 ....\n {3,4},\n {5,6},\n {7,8},\n {},\n {},\n {},\n {9},\n {},\n {} // vertex 9\n }; \n // Given 2 Nodes in a BST, find their closest shared parent\n Graph g = new Graph(bst);\n g.dijsktra(g.getVertices().get(0));\n List<Vertex> path1 = g.getShortestPath(g.getVertices().get(1));\n List<Vertex> path2 = g.getShortestPath(g.getVertices().get(9));\n\n // parent will be the last item in each path before the diverge\n // EX: [1,2,3], [1,2,4,5]. - searched for 3 and 5. parent is 2.\n // EX: [1,2], [1,2,4,5]. - searched for 2 and 5. parent is 2.\n int min = Math.min(path1.size(), path2.size()) -1;\n int parentidx = 0;\n for (int i = 0; i <= min; i++) {\n if (path1.get(i) == path2.get(i)) {\n parentidx = i;\n } else {\n break;\n }\n }\n System.out.println(\"shared parent: \" + path1.get(parentidx));\n }",
"protected Coordinates intersectionFromClosestPoints() {\n if (closestPointA != null && closestPointB != null\n && geometry.almostEqual(closestPointA, closestPointB)) {\n return closestPointA;\n } else {\n return null;\n }\n }",
"public Taxon getAncestor(final TaxonRank rank) {\n\t\tif (rank == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tTaxon parent = this;\n\t\twhile (parent != null && parent.getRank() != rank) {\n\t\t\tparent = parent.getParent();\n\t\t}\n\t\treturn parent;\n\t}",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) throws java.lang.NullPointerException, java.lang.IndexOutOfBoundsException \n\t {\n\t\t if(null==v || null==w) throw new java.lang.NullPointerException(\"null argument to ancestor, v=\"+v+\" w=\"+w);\n\t\t \n\t\t return getAncestors(v,w).mAncestor;\n\t\t \n\t }",
"abstract public Container<?> getParent();",
"public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n \t\n \t\n \tStack<TreeNode> stack = new Stack<TreeNode>();\n \t\n \tMap<TreeNode,TreeNode> parentsMap = new HashMap<TreeNode, TreeNode>();\n \t\n \tstack.add(root);\n \tparentsMap.put(root, null);\n \t\n \t/*\n \t * loop until both p and q are in the map\n \t */\n \twhile( !parentsMap.containsKey(p) || !parentsMap.containsKey(q)) {\n \t\tTreeNode currentNode = stack.pop();\n \t\tif(currentNode.left != null) {\n \t\t\tstack.add(currentNode.left);\n \t\t\tparentsMap.put(currentNode.left, currentNode);\n \t\t}\n \t\tif(currentNode.right != null) {\n \t\t\tstack.add(currentNode.right);\n \t\t\tparentsMap.put(currentNode.right, currentNode);\n \t\t}\n \t}\n \t\n \t// set to get the p parents\n \tSet<TreeNode> pParents = new HashSet<TreeNode>();\n \t\n \t// backtrack the p parents till null \n \twhile(p != null) {\n \t\tpParents.add(p);\n \t\tp = parentsMap.get(p);\n \t}\n \t\n \t// backtrack the q parents till we find the common ancestor\n \twhile(!pParents.contains(q)) {\n \t\tq = parentsMap.get(q);\n \t}\n \treturn q;\n \t\n }",
"public ProductContainer getParent();"
] |
[
"0.720897",
"0.6812536",
"0.646053",
"0.6442378",
"0.6427616",
"0.6414011",
"0.63554084",
"0.63490796",
"0.6229732",
"0.6085964",
"0.608131",
"0.6054768",
"0.6027556",
"0.5969834",
"0.5969713",
"0.5962076",
"0.592062",
"0.59147894",
"0.5845475",
"0.58092237",
"0.58083117",
"0.5787629",
"0.5769295",
"0.5731782",
"0.5724036",
"0.5704102",
"0.5680656",
"0.5674545",
"0.56560636",
"0.5649162",
"0.56470674",
"0.56353503",
"0.56000733",
"0.559428",
"0.5589434",
"0.55755985",
"0.55752546",
"0.55696726",
"0.55532175",
"0.5550836",
"0.553808",
"0.5504092",
"0.5501456",
"0.5487377",
"0.5463068",
"0.54605556",
"0.54531527",
"0.5442853",
"0.5437247",
"0.5436369",
"0.5436341",
"0.54305637",
"0.54270625",
"0.5426507",
"0.54200596",
"0.54188716",
"0.5418833",
"0.539567",
"0.53885156",
"0.53829604",
"0.53743273",
"0.53583795",
"0.5354637",
"0.5349058",
"0.534278",
"0.5334234",
"0.53274614",
"0.5315149",
"0.531353",
"0.53088504",
"0.530854",
"0.5303503",
"0.52990836",
"0.5296572",
"0.52923274",
"0.5267854",
"0.52624357",
"0.52531075",
"0.5241354",
"0.5239432",
"0.5233426",
"0.52313703",
"0.5224586",
"0.5221849",
"0.52150035",
"0.5208612",
"0.5199875",
"0.51954544",
"0.51822567",
"0.5179976",
"0.5169138",
"0.51669383",
"0.5166562",
"0.516301",
"0.5154525",
"0.5149926",
"0.5142357",
"0.51415694",
"0.51404977",
"0.51356965"
] |
0.84026414
|
0
|
Returns a list of shapes from this shape to a given ancestor, inclusive.
|
public List <RMShape> getShapesToAncestor(RMShape aShape)
{
// Iterate and add up this shape and parents until given ancestor is added (or we run out)
List ancestors = new ArrayList();
for(RMShape shape=this; shape!=null; shape=shape.getParent()) {
ancestors.add(shape);
if(shape==aShape)
break;
}
// Return ancestors
return ancestors;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List <RMShape> getShapesToDescendant(RMShape aShape)\n{\n List list = aShape.getShapesToAncestor(this); Collections.reverse(list); return list;\n}",
"public List <RMShape> getShapesToShape(RMShape aShape)\n{\n // If shape is null or ancestor, return shapes to ancestor\n if(aShape==null || isAncestor(aShape))\n return getShapesToAncestor(aShape);\n \n // If shape is a descendant, return shapes to descendant\n if(isDescendant(aShape))\n return getShapesToDescendant(aShape);\n\n // Get common ancestor (if none, just return null)\n RMShape commonAncestor = getAncestorInCommon(aShape);\n if(commonAncestor==null)\n return null;\n \n // Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape\n List shapes = getShapesToAncestor(commonAncestor);\n shapes.remove(shapes.size()-1);\n shapes.addAll(commonAncestor.getShapesToDescendant(aShape));\n\n // Return shapes\n return shapes;\n}",
"public abstract ArrayList<Shape> getShapes();",
"public abstract List<ResolvedReferenceType> getDirectAncestors();",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"public RMShape getAncestorInCommon(RMShape aShape)\n{\n // If shape is our descendant, return this shape\n if(isDescendant(aShape))\n return this;\n \n // Iterate up shape's ancestors until one has this shape as descendant\n for(RMShape shape=aShape; shape!=null; shape=shape.getParent())\n if(shape.isDescendant(this))\n return shape;\n \n // Return null since common ancestor not found\n return null;\n}",
"List<IShape> getVisibleShapes();",
"Liste<? extends Binarbre<E>> ancestors();",
"public Set<Shape> overlappingShapes(Shape shape) { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Shape>();\n Set<Shape> set = new HashSet<Shape>(); \n Iterator<Shape> its = myrc.geom_to_bundles.keySet().iterator();\n while (its.hasNext()) {\n Shape its_shape = its.next();\n\tif (Utils.genericIntersects(shape, its_shape)) set.add(its_shape);\n }\n Iterator<Line2D> itl = myrc.line_to_bundles.keySet().iterator();\n while (itl.hasNext()) {\n Line2D line = itl.next(); \n\t if (line.contains(shape.getBounds())) set.add(line);\n }\n return set;\n }",
"public Set<Shape> entityShapesInternal(Set<String> superset) {\n Set<String> filtered = filterEntities(superset); Set<Shape> shapes = new HashSet<Shape>();\n\tIterator<String> it = filtered.iterator();\n\twhile (it.hasNext()) {\n\t String node_coord = entity_to_sxy.get(it.next());\n\t if (node_coord != null) {\n\t Shape shape = node_to_geom.get(node_coord);\n\t if (shape != null) shapes.add(shape);\n\t }\n\t}\n return shapes;\n }",
"public List getAncestors() {\n\t\treturn new ArrayList();\n\t}",
"public java.util.List getOrderedAncestors();",
"public RMShape getAncestor(int anIndex) { return anIndex==0? getParent() : getParent().getAncestor(anIndex-1); }",
"public native Point [] getAllocationVertices(Actor ancestor);",
"public Set<Shape> allShapes() { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Shape>();\n else return myrc.all_shapes; \n }",
"public ArrayList<String> getAncestorClasses() {\n\t\treturn ancestorClasses;\n\t}",
"public List<Shape> getDrawShapes();",
"default List<SemanticRegion<T>> children() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n if (equals(r.parent())) {\n result.add(r);\n }\n }\n return result;\n }",
"public static List<Shape> getListOfShapes() {\n\t\treturn listOfShapes;\n\t}",
"@JsonIgnore\n public List<String> getAncestorTypeNames() {\n if(ancestorDefs != null && !ancestorDefs.isEmpty()) {\n return ancestorDefs.values().stream().map(type -> type.asTypeString()).collect(Collectors.toList());\n } else if (ancestors != null) {\n return ancestors;\n } else {\n return new ArrayList<>();\n }\n }",
"public List getAncestors() {\n\t\tif (this.ancestors == null) {\n\t\t\tancestors = new ArrayList();\n\t\t\tTeachersDomainStandardsNode myParent = parent;\n\t\t\twhile (myParent != null && myParent.getLevel() > 0) {\n\t\t\t\tancestors.add(myParent);\n\t\t\t\tmyParent = myParent.getParent();\n\t\t\t}\n\t\t}\n\t\treturn ancestors;\n\t}",
"default List<SemanticRegion<T>> allChildren() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n result.add(r);\n }\n return result;\n }",
"public List <RMShape> getChildren() { return Collections.emptyList(); }",
"Set<Concept> getSuperclasses(Concept concept);",
"public Shape[] getShapes() {\n return (Shape[]) shapes.clone();\n }",
"public interface Ancestors extends Serializable, Comparable<Ancestors> {\n\n\t/**\n\t * @return the tree path of the node. This contains the path in the form of indexes. e.g. 50.1.2.2\n\t */\n\tTreePath getTreePath();\n\n\t/**\n\t * @return the ancestor matrices. This contains all path matrix from root path matrix to this path matrix.\n\t */\n\tList<PathMatrix> getAncestorMatrices();\n\n\t/**\n\t * @return the reference path matrix\n\t */\n\tPathMatrix getPathMatrix();\n}",
"List<IEvent> getEventList(IShape shape);",
"public Iterator<Shape> iterator(){\n\t\treturn shapes.iterator();\n\t}",
"Iterator getAncestorAxisIterator(Object contextNode) throws UnsupportedAxisException;",
"public List<AlfClass> getParents() {\t\r\n\t\tList<AlfClass> parents = new ArrayList<AlfClass>(this.strongParents);\r\n\t\tparents.addAll(this.weakParents);\r\n\t\treturn Collections.unmodifiableList(parents);\r\n\t}",
"public List getParents()\n {\n \tList result = new ArrayList();\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n\n \tif (instance != null)\n \t{\n \t if (instance.isRepresentative(this.refMofId())&&\n \t instance.hasRefObject(this.refMofId()))\n \t {\n \t if (getGeneralization().isEmpty() && !(this instanceof Interface) && !(this instanceof Enumeration))\n \t {\n \t \tresult.add(OclLibraryHelper.getInstance(this).\n \t\t\t\t\t\t\t\t\t\t\tgetAny());\n \t return result;\n \t \t }\n \t } \t \n \t \n\t \tif (equals(OclLibraryHelper.getInstance(this).getVoid()))\n\t \t{\n\t \t\tModel topPackage = ModelHelper.\n\t \t\t\t\t\t\t \t\tgetInstance(\n\t \t\t\t\t\t\t \t\t\t\t(Uml15Package) this.refOutermostPackage()).\n\t \t\t\t\t\t\t \t\t\t\t\t\tgetTopPackage();\n\t \t\tresult.addAll(((NamespaceImpl)topPackage).getAllClassesWithoutSpez());\n\t \t\treturn result;\n\t \t}\n \t} \n \tIterator it = getGeneralization().iterator();\n\n \twhile(it.hasNext())\n \t{\n \t Generalization g = (Generalization)it.next(); \n \t result.add(g.getParent());\n \t}\n \treturn result;\n }",
"public Set<Category> getAncestors(Annotatable ann, Set<String> categories);",
"public List getRoots(List source) {\n\t\tList result = new ArrayList();\r\n\t\tIterator it = source.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap item = (Map) it.next();\r\n\t\t\tif (!this.isHaveParent(source, item)) {\r\n\t\t\t\tresult.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"Iterator getAncestorOrSelfAxisIterator(Object contextNode) throws UnsupportedAxisException;",
"public Collection getAncestorClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;",
"@Override\n public Shape[][] getInitialArray() {\n return allShapes;\n }",
"public ArrayList<BackupImage> getAncestors(BackupInfo backupInfo, TableName table)\n throws IOException {\n ArrayList<BackupImage> ancestors = getAncestors(backupInfo);\n ArrayList<BackupImage> tableAncestors = new ArrayList<>();\n for (BackupImage image : ancestors) {\n if (image.hasTable(table)) {\n tableAncestors.add(image);\n if (image.getType() == BackupType.FULL) {\n break;\n }\n }\n }\n return tableAncestors;\n }",
"@Override\n public Set<LocationHierarchy> findEnclosingLocationHierarchies(LocationHierarchyLevel entity) {\n Set<LocationHierarchy> onLevel = new HashSet<>();\n onLevel.addAll(locationHierarchyService.findByLevel(entity));\n return onLevel;\n }",
"@Override\n\tpublic Vector<Shape> getShapes() {\n\t\treturn this.shapes;\n\t}",
"public abstract Collection<IRelation> getStartingRelations(String elementUri);",
"static List<Shape> createShapeArray(){\n return Arrays.asList(new Rectangle(new Point(0,0),new Point(0,4),new Point(2,4), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,2),new Point(2,2), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,3),new Point(2,3), new Point(2,0)),\n new Circle(new Point(0,0),new Point(0,1)),\n new Circle(new Point(1,0),new Point(1,4)),\n new Circle(new Point(1,0),new Point(0,2)),\n new Triangle(new Point(0,0),new Point(0,2),new Point(2,0)),\n new Triangle(new Point(0,0),new Point(0,4),new Point(4,0)),\n new Triangle(new Point(0,0),new Point(0,1),new Point(1,0)));\n\n }",
"@Override\n public List<Obstacle> getObstacals() {\n List<Obstacle> obstacles = new ArrayList<Obstacle>();\n for (Spatial s : obstacleNode.getChildren()) {\n if (s instanceof Vehicle) {\n Vehicle v = (Vehicle) s;\n obstacles.add(v.toObstacle());\n }\n }\n return obstacles;\n }",
"public abstract Graph getParents(String childVertexHash);",
"public ArrayList<BackupImage> getAncestors(BackupInfo backupInfo) throws IOException {\n LOG.debug(\"Getting the direct ancestors of the current backup {}\", backupInfo.getBackupId());\n\n ArrayList<BackupImage> ancestors = new ArrayList<>();\n\n // full backup does not have ancestor\n if (backupInfo.getType() == BackupType.FULL) {\n LOG.debug(\"Current backup is a full backup, no direct ancestor for it.\");\n return ancestors;\n }\n\n // get all backup history list in descending order\n ArrayList<BackupInfo> allHistoryList = getBackupHistory(true);\n for (BackupInfo backup : allHistoryList) {\n\n BackupImage.Builder builder = BackupImage.newBuilder();\n\n BackupImage image = builder.withBackupId(backup.getBackupId()).withType(backup.getType())\n .withRootDir(backup.getBackupRootDir()).withTableList(backup.getTableNames())\n .withStartTime(backup.getStartTs()).withCompleteTime(backup.getCompleteTs()).build();\n\n // Only direct ancestors for a backup are required and not entire history of backup for this\n // table resulting in verifying all of the previous backups which is unnecessary and backup\n // paths need not be valid beyond the lifetime of a backup.\n //\n // RootDir is way of grouping a single backup including one full and many incremental backups\n if (!image.getRootDir().equals(backupInfo.getBackupRootDir())) {\n continue;\n }\n\n // add the full backup image as an ancestor until the last incremental backup\n if (backup.getType().equals(BackupType.FULL)) {\n // check the backup image coverage, if previous image could be covered by the newer ones,\n // then no need to add\n if (!BackupManifest.canCoverImage(ancestors, image)) {\n ancestors.add(image);\n }\n } else {\n // found last incremental backup, if previously added full backup ancestor images can cover\n // it, then this incremental ancestor is not the dependent of the current incremental\n // backup, that is to say, this is the backup scope boundary of current table set.\n // Otherwise, this incremental backup ancestor is the dependent ancestor of the ongoing\n // incremental backup\n if (BackupManifest.canCoverImage(ancestors, image)) {\n LOG.debug(\"Met the backup boundary of the current table set:\");\n for (BackupImage image1 : ancestors) {\n LOG.debug(\" BackupID={}, BackupDir={}\", image1.getBackupId(), image1.getRootDir());\n }\n } else {\n Path logBackupPath =\n HBackupFileSystem.getBackupPath(backup.getBackupRootDir(), backup.getBackupId());\n LOG.debug(\n \"Current backup has an incremental backup ancestor, \"\n + \"touching its image manifest in {}\" + \" to construct the dependency.\",\n logBackupPath.toString());\n BackupManifest lastIncrImgManifest = new BackupManifest(conf, logBackupPath);\n BackupImage lastIncrImage = lastIncrImgManifest.getBackupImage();\n ancestors.add(lastIncrImage);\n\n LOG.debug(\"Last dependent incremental backup image: {BackupID={}\" + \"BackupDir={}}\",\n lastIncrImage.getBackupId(), lastIncrImage.getRootDir());\n }\n }\n }\n LOG.debug(\"Got {} ancestors for the current backup.\", ancestors.size());\n return ancestors;\n }",
"public Set<Restaurant> getSurroundingRestaurants(){\n\n Set<Restaurant> retval = new HashSet<>();\n for (Restaurant r : restaurants){\n retval.add(r);\n }\n return retval;\n }",
"public Object getShapes() {\r\n if (shapes != null) {\r\n return shapes;\r\n }\r\n ValueBinding vb = getValueBinding(\"shapes\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }",
"@Override\r\n\tpublic Vector getShapes() {\r\n\t\treturn shapes;\r\n\t}",
"public List<Node> findPath(Node start);",
"@Override\r\n\tpublic ArrayList<IShape> addChildren() {\r\n\t\tArrayList<IShape> iShapes = new ArrayList<IShape>();\r\n\t\tif (getSize() != \"Small\") {\r\n\t\t\tif (getSize().equals(\"Large\")) {\r\n\t\t\t\t// Explode Sound Large\r\n\t\t\t\tSoundManager.getSoundManager().explodeLarge();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Medium\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, getChildren()));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (getSize().equals(\"Medium\")) {\r\n\t\t\t\t// Explode Sound Medium\r\n\t\t\t\tSoundManager.getSoundManager().explode();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Small\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, 0));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\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\tSoundManager.getSoundManager().explodeSmall();\r\n\t\t}\r\n\t\treturn iShapes;\r\n\t}",
"public abstract List<AStarNode> getNeighbours();",
"@Test\r\n public void testGetEnclosingShapes() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n assertEquals(expectedOutput, screen.getEnclosingShapes(new Point(5, 5)));\r\n }",
"ILinkedList sublist(int fromIndex, int toIndex);",
"public List<Shape> recognize() {\n\t\tm_output = new ArrayList<Shape>();\n\t\tif (m_input.size() <= 0)\n\t\t\treturn m_output;\n\t\tCollections.sort(m_input, new TimePeriodComparator());\n\n\t\t// find dashed lines\n\t\tDashLineRecognizer dlr = new DashLineRecognizer(m_input);\n\t\tm_output = dlr.recognize();\n\n\t\t// find dashed rectangles/diamonds\n\t\tDashBoundaryRecognizer dbr = new DashBoundaryRecognizer(m_output);\n\t\tm_output = dbr.recognize();\n\n\t\t// find dashed ellipses\n\t\tDashEllipseRecognizer der = new DashEllipseRecognizer(m_output);\n\t\tm_output = der.recognize();\n\n\t\t// needed b/c DashEllipseRecognizer removes dashed lines\n\t\tdlr = new DashLineRecognizer(m_output);\n\t\tm_output = dlr.recognize();\n\n\t\t// find stars\n\t\tStarRecognizer sr = new StarRecognizer(m_output);\n\t\tm_output = sr.recognize();\n\n\t\tCollections.sort(m_output, new TimePeriodComparator());\n\t\treturn m_output;\n\t}",
"public ArrayList findShapes() {\n ArrayList shapes = new ArrayList<>();\n\n // open database connection\n DatabaseConnection connection = new DatabaseConnection();\n\n if (connection.openConnection()) {\n\n // if a connection was successfully setup, execute the SELECT statement.\n ResultSet resultset = connection.executeSQLSelectStatement(\n \"SELECT *\\n\" +\n \"FROM shape_objects\\n\" +\n \"JOIN shape ON shape_objects.shape = shape.shape_id\\n\");\n\n // check if result is not null\n if (resultset != null) {\n try {\n while (resultset.next()) {\n\n int idFromDb = resultset.getInt(\"id\");\n double heightFromDb = resultset.getDouble(\"height\");\n double radiusFromDb = resultset.getDouble(\"radius\");\n double lengthFromDb = resultset.getDouble(\"width\");\n double widthFromDb = resultset.getDouble(\"length\");\n String shapeNameFromDb = resultset.getString(\"name\");\n\n\n if (Objects.equals(shapeNameFromDb, \"cilinder\")) {\n Cilinder newCilinder = new Cilinder(idFromDb, shapeNameFromDb, heightFromDb, radiusFromDb);\n shapes.add(newCilinder);\n }\n\n if (Objects.equals(shapeNameFromDb, \"sphere\")) {\n Sphere newSphere = new Sphere(idFromDb, shapeNameFromDb, radiusFromDb);\n shapes.add(newSphere);\n }\n\n if (Objects.equals(shapeNameFromDb, \"cubic\")) {\n Cubic newCubic = new Cubic(idFromDb, shapeNameFromDb, lengthFromDb, widthFromDb, heightFromDb);\n shapes.add(newCubic);\n }\n }\n } catch (SQLException e) {\n shapes.clear();\n }\n }\n\n // close database connection\n connection.closeConnection();\n }\n\n return shapes;\n }",
"public Set<Profile> getRelatives() {\n\t\tSet<Profile> parents = new HashSet<>();\n\t\tparents.add(_parent1);\n\t\tparents.add(_parent2);\n\t\treturn parents;\n\t}",
"public RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent)\n{\n RMShape clone = rpgShape(anRptOwner, aParent);\n rpgBindings(anRptOwner, clone);\n return clone;\n}",
"@Override\r\n\tpublic List<List<Node<T>>> getPathsFromRootToAnyLeaf() {\r\n\t\tList<Node<T>> listaHojas = new LinkedList<Node<T>>();// Lista con todas\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// las hojas\r\n\t\t// del arbol\r\n\t\tlistaHojas = listaHojas(raiz, listaHojas);// Hojas\r\n\t\tList<List<Node<T>>> listaFinal = new LinkedList<List<Node<T>>>();// Lista\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// con\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// todos\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// los\r\n\t\t// caminos de la\r\n\t\t// raiz a las hojas\r\n\t\tfor (int i = 1; i <= listaHojas.size(); i++) {\r\n\t\t\tList<Node<T>> lista = new LinkedList<Node<T>>();\r\n\t\t\tlistaFinal.add(completaCamino(listaHojas.get(i), lista));// Crea\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// los\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// caminos\r\n\t\t}\r\n\t\treturn listaFinal;\r\n\t}",
"public abstract List<AbstractRelationshipTemplate> getIngoingRelations();",
"public void getShops() {\r\n for (int i = 0; i < e.length; i++) { //go through inherited edges array\r\n if (e[i] != null) {\r\n CoffeeShop temp = (CoffeeShop) e[i].getEnd();\r\n allShops.add(temp);\r\n }\r\n }\r\n }",
"public SortedSet<WLightpathUnregenerated> getInOutOrTraversingLigtpaths () { return n.getAssociatedRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }",
"public FObj findNearestAncestorFObj() {\n FONode par = parent;\n while (par != null && !(par instanceof FObj)) {\n par = par.parent;\n }\n return (FObj) par;\n }",
"public Iterator<IEventType<T>> getDeepSuperTypes();",
"public ArrayList<Location> getLine(Location from, Location to) {\n // Add delta X and add delta Y (if vertical, delta x = 0, if horizontal, delta y = 0)\n if (to == null) {\n return new ArrayList();\n } // In the future need a way to get all the points up to the border so that it draws a complete line.\n\n ArrayList<Location> result = new ArrayList();\n int deltaX = (from.getX() - to.getX())/getPixelSize(); // Amount of \"pixels\" between two the locations (x-wise) if delta = 10, 2 pixels so increase by 5 each time //<>//\n int deltaY = (from.getY() - to.getY())/getPixelSize();\n\n // Ensures that the deltaX and deltaY are valid (might not need this because we already know the location is valid)\n //if (deltaX % getPixelSize() != 0 || deltaY % getPixelSize() != 0) { throw new IllegalArgumentException(); }\n\n int currentX = from.getX();\n int currentY = from.getY();\n\n // Code from: https://stackoverflow.com/questions/13988805/fastest-way-to-get-sign-in-java\n int xSign = (int) Math.signum(deltaX);\n int ySign = (int) Math.signum(deltaY);\n\n for (int i=0; i<Math.abs(deltaX + deltaY); i++) { // This should include \"to\". deltaX + deltaY will be the amount of blocks to go up/horizontal because one should always be 0.\n currentX -= xSign * getPixelSize();\n currentY -= ySign * getPixelSize();\n Location loc = getLocation(currentX, currentY);\n\n result.add(loc);\n if (loc == null) {\n return result;\n }\n }\n\n return result;\n }",
"private ArrayList<Chromosome> selectParentsTournament() {\n ArrayList<Chromosome> parents = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n ArrayList<Chromosome> matingPool = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n\n // Run tournaments to select parents - for each parent\n for (int parentIdx = 0; parentIdx < Defines.crossoverParentCt; parentIdx++) {\n\n // Run tournaments - get random contestants (run.getPaTournamentSize())\n for (int tournIdx = 0; tournIdx < Defines.tournamentSize; tournIdx++) {\n int contestantID = Defines.randNum(0, this.chromosomes.size() - 1);\n matingPool.add(this.chromosomes.get(contestantID));\n }\n Collections.sort(matingPool);\n parents.add(matingPool.get(0));\n }\n\n return parents;\n }",
"public static Set<ARGState> getAllStatesOnPathsTo(ARGState pLastElement) {\n\n Set<ARGState> result = new HashSet<ARGState>();\n Deque<ARGState> waitList = new ArrayDeque<ARGState>();\n\n result.add(pLastElement);\n waitList.add(pLastElement);\n\n while (!waitList.isEmpty()) {\n ARGState currentElement = waitList.poll();\n for (ARGState parent : currentElement.getParents()) {\n if (result.add(parent)) {\n waitList.push(parent);\n }\n }\n }\n\n return result;\n }",
"private List<IShape> splitGroup(ShapeComponent component)\n\t{\n\t\tvar shapes = new ArrayList<IShape>();\n\n\t\tif (component instanceof ShapeGroup)\n\t\t{\n\t\t\tshapes.addAll(component.getShapes());\n\t\t}\n\n\t\treturn shapes;\n\t}",
"public List<Painter> findAllPainters();",
"List<IShape> getShapesAtTick(int tick);",
"public java.util.ArrayList<Species> getAllSpecies() {\n ArrayList<Species> answer = new ArrayList<Species>();\n getAllDescendantSpecies(overallRoot, answer);\n return answer;\n \n }",
"public List topologicalSort( Vertex startat ){\r\n return this.topologicalsorting.traverse( startat );\r\n }",
"public Floor[] getFloors(int startHeightOffset, int endHeightOffset) {\n/* 6401 */ if (this.floors == null) {\n/* 6402 */ return emptyFloors;\n/* */ }\n/* 6404 */ List<Floor> toReturn = new ArrayList<>();\n/* 6405 */ for (Floor floor : this.floors) {\n/* */ \n/* */ \n/* */ \n/* 6409 */ if (floor.getHeightOffset() >= startHeightOffset && floor.getHeightOffset() <= endHeightOffset)\n/* 6410 */ toReturn.add(floor); \n/* */ } \n/* 6412 */ return toReturn.<Floor>toArray(new Floor[toReturn.size()]);\n/* */ }",
"NodeVector getMatchingAncestors(\n XPathContext xctxt, int node, boolean stopAtFirstFound)\n throws javax.xml.transform.TransformerException\n {\n\n NodeSetDTM ancestors = new NodeSetDTM(xctxt.getDTMManager());\n XPath countMatchPattern = getCountMatchPattern(xctxt, node);\n DTM dtm = xctxt.getDTM(node);\n\n while (DTM.NULL != node)\n {\n if ((null != m_fromMatchPattern)\n && (m_fromMatchPattern.getMatchScore(xctxt, node)\n != XPath.MATCH_SCORE_NONE))\n {\n\n // The following if statement gives level=\"single\" different \n // behavior from level=\"multiple\", which seems incorrect according \n // to the XSLT spec. For now we are leaving this in to replicate \n // the same behavior in XT, but, for all intents and purposes we \n // think this is a bug, or there is something about level=\"single\" \n // that we still don't understand.\n if (!stopAtFirstFound)\n break;\n }\n\n if (null == countMatchPattern)\n System.out.println(\n \"Programmers error! countMatchPattern should never be null!\");\n\n if (countMatchPattern.getMatchScore(xctxt, node)\n != XPath.MATCH_SCORE_NONE)\n {\n ancestors.addElement(node);\n\n if (stopAtFirstFound)\n break;\n }\n\n node = dtm.getParent(node);\n }\n\n return ancestors;\n }",
"public abstract List<Node> getChildNodes();",
"public List<Node> getRootElements() {\n List<Node> subRoots = tree.find(\"s\", \"neb\", \"objc\");\n List<Node> directRoots = this.tree.getChildren().stream()\n .filter(x -> !x.getPosGroup().equals(\"$.\") && !x.getPosGroup().equals(\"$,\") && !x.getPosGroup().equals(\"$(\"))\n .collect(Collectors.toList());\n\n subRoots.addAll(directRoots);\n\n return subRoots;\n }",
"@VisibleForTesting\n List<ExecNode<?>> calculatePipelinedAncestors(ExecNode<?> node) {\n List<ExecNode<?>> ret = new ArrayList<>();\n AbstractExecNodeExactlyOnceVisitor ancestorVisitor =\n new AbstractExecNodeExactlyOnceVisitor() {\n @Override\n protected void visitNode(ExecNode<?> node) {\n boolean hasAncestor = false;\n\n if (!boundaries.contains(node)) {\n List<InputProperty> inputProperties = node.getInputProperties();\n for (int i = 0; i < inputProperties.size(); i++) {\n // we only go through PIPELINED edges\n if (inputProperties\n .get(i)\n .getDamBehavior()\n .stricterOrEqual(safeDamBehavior)) {\n continue;\n }\n hasAncestor = true;\n node.getInputEdges().get(i).getSource().accept(this);\n }\n }\n\n if (!hasAncestor) {\n ret.add(node);\n }\n }\n };\n node.accept(ancestorVisitor);\n return ret;\n }",
"@Override\r\n public final HowToInherit[] nodeAttrsToInherit( final Model from )\r\n {\r\n final Iterator<String> attrs = from.getNodeAttributes();\r\n final List<HowToInherit> attrsToInherit = new LinkedList<HowToInherit>();\r\n \r\n while( attrs.hasNext() ) {\r\n final String attr = attrs.next();\r\n final HowToInherit how = filterNodeAttr( from, attr );\r\n if( how != DONT_INHERIT ) attrsToInherit.add( how );\r\n }\r\n\r\n return attrsToInherit.toArray( AttributeInheritancePolicy.emptyArray );\r\n }",
"public JDialog getAncestor() {\n return ancestor;\n }",
"Iterable<Vertex> computePathToGraph(Loc start, Vertex end) throws GraphException;",
"public Queue<Point> getPoints() {\n\tQueue<Point> iter = new Queue<Point>();\n\tfor (Shape s : this.shapes) {\n\t for (Point p : s.getPoints())\n\t\titer.enqueue(p);\n\t}\n\n\treturn iter;\n }",
"public static Automaton.List rangeOf(Automaton automaton,\n\t\t\tAutomaton.Int _start, Automaton.Int _end) {\n\t\t// FIXME: there is a bug here for big integer values.\n\t\tint start = _start.intValue();\n\t\tint end = _end.intValue();\n\t\tint[] children = new int[end - start];\n\t\tfor (int i = 0; i < children.length; ++i, ++start) {\n\t\t\tchildren[i] = automaton.add(new Automaton.Int(start));\n\t\t}\n\t\treturn new Automaton.List(children);\n\t}",
"public ArrayList<Double> branch(BGStem parent) {\n\t\t\n\t\t// Store the node coordinates\n\t\tArrayList <Double> node = new ArrayList<Double>();\n\t\t\n\t\t// Calculate\n\t\tnode.add(parent.getLength() * Math.cos(parent.getDirection()) + parent.getX());\n\t\tnode.add(parent.getLength() * Math.sin(parent.getDirection()) + parent.getY());\n\t\t\n\t\treturn node;\n\t}",
"Set<Concept> getSubclasses(Concept concept);",
"public <T extends RMShape> T getParent(Class<T> aClass)\n{\n for(RMShape s=getParent(); s!=null; s=s.getParent()) if(aClass.isInstance(s)) return (T)s;\n return null; // Return null since parent of class wasn't found\n}",
"@Override\n\tpublic Vector<Handle> handles() {\n Vector<Handle> handles = new Vector<Handle>();\n handles.addElement(new GroupHandle(this, RelativeLocator.northWest()));\n handles.addElement(new GroupHandle(this, RelativeLocator.northEast()));\n handles.addElement(new GroupHandle(this, RelativeLocator.southWest()));\n handles.addElement(new GroupHandle(this, RelativeLocator.southEast()));\n return handles;\n }",
"protected List getAllowedAncestors() {\n return ALLOWED_ANCESTORS;\n }",
"public static List<Field> getAllFieldsFromAncestor(Class<?> clazz) {\n List<Field> fields = new ArrayList<>();\n for(Class<?> now = clazz; null != now; now = now.getSuperclass()) {\n Field[] nowFields = now.getDeclaredFields();\n // add from last to head\n for(int i = nowFields.length - 1; i >= 0; i--) {\n fields.add(nowFields[i]);\n }\n }\n // remember to reverse the fields got\n Collections.reverse(fields);\n return fields;\n }",
"List<Area> list();",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public List<State> getChildren();",
"public ArrayList<QuadTreeNode<E>> getIntersecting(Circle range) {\n\t\tif (!divided) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<QuadTreeNode<E>> intersecting = new ArrayList<QuadTreeNode<E>>();\n\t\t\n\t\tfor (QuadTreeNode<E> n : nodes) {\n\t\t\tif (n.intersects(range)) {\n\t\t\t\tintersecting.add(n);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn intersecting;\n\t}",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public List<RealObject> getChildren();",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"public static FeatureList getFeatPropLeafParentFeats(CurationSet cur,\n FeatureProperty prop) {\n FeatureList leaves = getFeatPropLeafFeatures(cur,prop);\n FeatureList parents = new FeatureList(); // by default checks for unique\n for (int i=0; i<leaves.size(); i++)\n parents.add(leaves.getFeature(i).getRefFeature());\n return parents;\n }",
"ShapeGroup(){\n children = new ArrayList<IShape>();\n }",
"public abstract List<AbstractRelationshipTemplate> getOutgoingRelations();",
"@Nonnull\n Iterable<? extends T> getChildren();",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public List<Pair<Integer, Integer>> preparePath(Pair<Integer, Integer> goal) {\n var path = new LinkedList<Pair<Integer, Integer>>();\n path.add(goal);\n var parent = goal.getParent();\n while(parent != null) {\n path.addFirst(parent);\n parent = parent.getParent();\n }\n path.removeLast();\n return path;\n }",
"public ArrayList<PhysicsShape> getShapes() {\n\t\treturn shapes;\n\t}"
] |
[
"0.6704708",
"0.6490253",
"0.5695181",
"0.565425",
"0.5556896",
"0.5358339",
"0.5356748",
"0.5327501",
"0.53228515",
"0.53125423",
"0.529426",
"0.5284348",
"0.52220076",
"0.5197149",
"0.51535875",
"0.5121406",
"0.511125",
"0.5035796",
"0.50276756",
"0.5015518",
"0.5007118",
"0.49895474",
"0.49559915",
"0.49211854",
"0.48573646",
"0.4842672",
"0.4833304",
"0.48225576",
"0.4816903",
"0.47819266",
"0.47628877",
"0.47310427",
"0.46724412",
"0.46697748",
"0.4668016",
"0.4658902",
"0.46190968",
"0.46097043",
"0.4608052",
"0.46021944",
"0.4591288",
"0.45753843",
"0.45583332",
"0.455403",
"0.45473066",
"0.4547017",
"0.45458215",
"0.45175156",
"0.45066962",
"0.4485989",
"0.44745368",
"0.44671768",
"0.446296",
"0.4458587",
"0.44511122",
"0.4417855",
"0.4408024",
"0.4405616",
"0.43898252",
"0.43883982",
"0.43766728",
"0.4366647",
"0.4364393",
"0.43629777",
"0.43454003",
"0.43404028",
"0.43388683",
"0.43304116",
"0.4321145",
"0.4320666",
"0.4318098",
"0.43157953",
"0.43120378",
"0.43116924",
"0.43059936",
"0.43029734",
"0.4301839",
"0.42879933",
"0.42868155",
"0.42843145",
"0.42809",
"0.42803684",
"0.42757782",
"0.42745394",
"0.42707804",
"0.4269493",
"0.42649382",
"0.42630035",
"0.42627406",
"0.425242",
"0.42413688",
"0.42412758",
"0.4241235",
"0.42336994",
"0.42260993",
"0.42193773",
"0.42187643",
"0.42160496",
"0.42085898",
"0.42047828"
] |
0.72780913
|
0
|
Returns a list of shape's from this shape to given descendant, inclusive.
|
public List <RMShape> getShapesToDescendant(RMShape aShape)
{
List list = aShape.getShapesToAncestor(this); Collections.reverse(list); return list;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List <RMShape> getShapesToAncestor(RMShape aShape)\n{\n // Iterate and add up this shape and parents until given ancestor is added (or we run out)\n List ancestors = new ArrayList();\n for(RMShape shape=this; shape!=null; shape=shape.getParent()) {\n ancestors.add(shape);\n if(shape==aShape)\n break;\n }\n \n // Return ancestors\n return ancestors;\n}",
"public List <RMShape> getShapesToShape(RMShape aShape)\n{\n // If shape is null or ancestor, return shapes to ancestor\n if(aShape==null || isAncestor(aShape))\n return getShapesToAncestor(aShape);\n \n // If shape is a descendant, return shapes to descendant\n if(isDescendant(aShape))\n return getShapesToDescendant(aShape);\n\n // Get common ancestor (if none, just return null)\n RMShape commonAncestor = getAncestorInCommon(aShape);\n if(commonAncestor==null)\n return null;\n \n // Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape\n List shapes = getShapesToAncestor(commonAncestor);\n shapes.remove(shapes.size()-1);\n shapes.addAll(commonAncestor.getShapesToDescendant(aShape));\n\n // Return shapes\n return shapes;\n}",
"Iterator<CtElement> descendantIterator();",
"public LinkedList<PlanNode> getPathTo( PlanNode descendant ) {\n assert descendant != null;\n LinkedList<PlanNode> stack = new LinkedList<PlanNode>();\n PlanNode node = descendant;\n while (node != this) {\n stack.addFirst(node);\n node = node.getParent();\n assert node != null : \"The supplied node is not a descendant of this node\";\n }\n stack.addFirst(this);\n return stack;\n }",
"public Path descendant(Path subpath) {\n String[] newParts = new String[parts.length + subpath.parts.length];\n for (int i = 0; i < parts.length; i++) {\n newParts[i] = parts[i];\n }\n for (int i = 0; i < subpath.parts.length; i++) {\n newParts[parts.length + i] = subpath.parts[i];\n }\n return new Path(newParts, subpath.index);\n }",
"public List <RMShape> getChildren() { return Collections.emptyList(); }",
"public String getDescendant() {\n return descendant;\n }",
"public abstract ArrayList<Shape> getShapes();",
"public Path getDescendant(\n List<XRISegment> suffix\n ) {\n \tPath result = this;\n \tfor(XRISegment component : suffix) {\n \t\tresult = result.getChild(component);\n \t}\n return result;\n }",
"public Collection getDescendantClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;",
"@Override\n public List<Obstacle> getObstacals() {\n List<Obstacle> obstacles = new ArrayList<Obstacle>();\n for (Spatial s : obstacleNode.getChildren()) {\n if (s instanceof Vehicle) {\n Vehicle v = (Vehicle) s;\n obstacles.add(v.toObstacle());\n }\n }\n return obstacles;\n }",
"public List<Shape> getDrawShapes();",
"List<IShape> getVisibleShapes();",
"public Vector<GraphicalLatticeElement> getChildren() {\n\t\tVector<GraphicalLatticeElement> children = new Vector<GraphicalLatticeElement>();\n\t\tif (childrenEdges != null)\n\t\t\tfor (int i = 0; i < childrenEdges.size(); i++) {\n\t\t\t\tEdge edge = childrenEdges.elementAt(i);\n\t\t\t\tchildren.add(edge);\n\t\t\t\tchildren.add(edge.getDestination());\n\t\t\t}\n\t\t\n\t\treturn children;\n\t}",
"public abstract List<ResolvedReferenceType> getDirectAncestors();",
"List<Tile> getAdjacentTiles();",
"public Collection<ChildType> getChildren();",
"public abstract Collection<IRelation> getStartingRelations(String elementUri);",
"public Collection<BaseGenerator> \n getChildren() \n {\n return Collections.unmodifiableCollection(pChildren.values());\n }",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"public abstract List<Node> getChildNodes();",
"public abstract List<AbstractRelationshipTemplate> getOutgoingRelations();",
"NodeSet<F> getLeaves(OWLClassExpression c, P p, R start, boolean direct);",
"@Nonnull\n Iterable<? extends T> getChildren();",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"public List<IContentNode> getChilds(int start, int limit);",
"ILinkedList sublist(int fromIndex, int toIndex);",
"public Set<Restaurant> getSurroundingRestaurants(){\n\n Set<Restaurant> retval = new HashSet<>();\n for (Restaurant r : restaurants){\n retval.add(r);\n }\n return retval;\n }",
"public Path getDescendant(\n String... suffix\n ) {\n \tPath result = this;\n \tfor(String component : suffix) {\n \t\tresult = result.getChild(component);\n \t}\n return result;\n }",
"protected abstract int[] getPathElements();",
"public List<RealObject> getChildren();",
"public abstract Collection<IRelation> getEndingRelations(String elementUri);",
"public ListNode[] getChildren(){\n\t\tListNode[] ret = new ListNode[length()];\n\t\tListNode temp = firstNode;\n\t\tfor(int i = 0; i < ret.length && temp != null; i++){\n\t\t\tret[i] = temp;\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\n\t\treturn ret;\n\t}",
"abstract public Collection<? extends IZipNode> getChildren();",
"Liste<? extends Binarbre<E>> ancestors();",
"public Node[] getChildren(){\n return children.values().toArray(new Node[0]);\n }",
"List<Shape> getAllElements() throws IllegalStateException{\n if (!initialized){\n throw new IllegalStateException(\"Arrow wasn't initialized\");\n }\n\n return List.of(mainLine, firstWing, secondWing, weightText);\n }",
"public abstract List<AbstractRelationshipTemplate> getIngoingRelations();",
"public Set<Shape> entityShapesInternal(Set<String> superset) {\n Set<String> filtered = filterEntities(superset); Set<Shape> shapes = new HashSet<Shape>();\n\tIterator<String> it = filtered.iterator();\n\twhile (it.hasNext()) {\n\t String node_coord = entity_to_sxy.get(it.next());\n\t if (node_coord != null) {\n\t Shape shape = node_to_geom.get(node_coord);\n\t if (shape != null) shapes.add(shape);\n\t }\n\t}\n return shapes;\n }",
"public Collection getAncestorClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;",
"protected abstract List<T> getChildren();",
"public Iterator trip() {\n\t\tStack path = new Stack();\n\t\ttry {\n\t\t\t// initializes path to the stack of nodes from starting point to end\n\t\t\t// point\n\t\t\tpath = path(BusLines, BusLines.getNode(start), BusLines.getNode(dest));\n\n\t\t\t// checks if there is a path, otherwise return null\n\t\t\tif (path == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn path.iterator();\n\t\t\t}\n\t\t} catch (GraphException e) {\n\t\t\tSystem.out.println(\"Error: the path does not exists.\");\n\t\t}\n\t\treturn null;\n\n\t}",
"public abstract List<AStarNode> getNeighbours();",
"public ResultMap<BaseNode> listChildren();",
"default List<SemanticRegion<T>> allChildren() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n result.add(r);\n }\n return result;\n }",
"@Override\n\tpublic List getBoundaryShape(Ball b) {\n\t List shapes = new ArrayList();\n\t double x2 = x+width*GameBoard.PixelsPerL - 1;\n\t double y2 = y+height*GameBoard.PixelsPerL - 1;\n\t \n\t if (b.equals(firingBall)) {\n\t //leave out section of top and corner cirle so ball being fired\n\t //can exit\n\t shapes.add(new LineSegment(x, y, x2-GameBoard.PixelsPerL, y));\n\t } else {\n\t shapes.add(new Circle(x2, y, 0));\n\t shapes.add(new LineSegment(x, y, x2, y));\n\t }\n\n\t shapes.add(new LineSegment(x, y, x, y2));\n\t shapes.add(new LineSegment(x2, y, x2, y2));\n\t shapes.add(new LineSegment(x, y2, x2, y2));\n\t //0-radius circles at corners\n\t \n\t shapes.add(new Circle(x2, y2, 0));\n\t shapes.add(new Circle(x, y2, 0));\n\t shapes.add(new Circle(x, y, 0));\n\t return shapes;\n\t}",
"public SortedSet<WLightpathUnregenerated> getInOutOrTraversingLigtpaths () { return n.getAssociatedRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }",
"default List<SemanticRegion<T>> children() {\n List<SemanticRegion<T>> result = new LinkedList<>();\n for (SemanticRegion<T> r : this) {\n if (equals(r.parent())) {\n result.add(r);\n }\n }\n return result;\n }",
"Collection<DendrogramNode<T>> getChildren();",
"@JsProperty\n NodeList getChildNodes();",
"public String[] getChildList() {\n if (this.children == null) {\n return this.pointsByChild.keySet().toArray(new String[this.pointsByChild.size()]);\n } else {\n return this.children.clone();\n }\n }",
"public RMShape getAncestorInCommon(RMShape aShape)\n{\n // If shape is our descendant, return this shape\n if(isDescendant(aShape))\n return this;\n \n // Iterate up shape's ancestors until one has this shape as descendant\n for(RMShape shape=aShape; shape!=null; shape=shape.getParent())\n if(shape.isDescendant(this))\n return shape;\n \n // Return null since common ancestor not found\n return null;\n}",
"ArrayList<Expression> getChildren();",
"public List<PafDimMember> getChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = null;\r\n\t\t\r\n\t\t// If no children are found, return empty array list\r\n\t\tif (children == null) {\r\n\t\t\tchildList = new ArrayList<PafDimMember>();\r\n\t\t} else {\r\n\t\t\t// Else, return pointer to children\r\n\t\t\tchildList = children;\r\n\t\t}\r\n\t\treturn childList;\r\n\t}",
"public Item2Vector<Concept> getChildren() { return children; }",
"public abstract Set<Tile> getNeighbors(Tile tile);",
"public Collection<E> getChildEdges(V vertex);",
"public List<State> getChildren();",
"Iterable<Position<E>> children(Position<E> p) throws IllegalArgumentException;",
"public Set<Shape> overlappingShapes(Shape shape) { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Shape>();\n Set<Shape> set = new HashSet<Shape>(); \n Iterator<Shape> its = myrc.geom_to_bundles.keySet().iterator();\n while (its.hasNext()) {\n Shape its_shape = its.next();\n\tif (Utils.genericIntersects(shape, its_shape)) set.add(its_shape);\n }\n Iterator<Line2D> itl = myrc.line_to_bundles.keySet().iterator();\n while (itl.hasNext()) {\n Line2D line = itl.next(); \n\t if (line.contains(shape.getBounds())) set.add(line);\n }\n return set;\n }",
"List<IEvent> getEventList(IShape shape);",
"public Collection<MyNode> getNeighbors(){\r\n return new ArrayList<>(this.neighbors);\r\n }",
"public Shape shapeAt(int index) throws IndexOutOfBoundsException\n {\n // Return the child at index\n return children.get(index);\n }",
"public Vector getChildren() {\n return this.children;\n }",
"MergeHandler[] getChildren();",
"public Iterable<Relationship> getRelationships();",
"Node[] getChildren(Node node);",
"public Human[] getChildren() {\n return children;\n }",
"java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();",
"@Override\r\n\tpublic ArrayList<IShape> addChildren() {\r\n\t\tArrayList<IShape> iShapes = new ArrayList<IShape>();\r\n\t\tif (getSize() != \"Small\") {\r\n\t\t\tif (getSize().equals(\"Large\")) {\r\n\t\t\t\t// Explode Sound Large\r\n\t\t\t\tSoundManager.getSoundManager().explodeLarge();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Medium\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, getChildren()));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (getSize().equals(\"Medium\")) {\r\n\t\t\t\t// Explode Sound Medium\r\n\t\t\t\tSoundManager.getSoundManager().explode();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Small\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, 0));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\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\tSoundManager.getSoundManager().explodeSmall();\r\n\t\t}\r\n\t\treturn iShapes;\r\n\t}",
"public Node[] getChildren() {\n\t\treturn children.toArray(new Node[0]);\n\t}",
"public java.util.List getOrderedAncestors();",
"java.util.List<org.landxml.schema.landXML11.RoadsideDocument.Roadside> getRoadsideList();",
"public void getShops() {\r\n for (int i = 0; i < e.length; i++) { //go through inherited edges array\r\n if (e[i] != null) {\r\n CoffeeShop temp = (CoffeeShop) e[i].getEnd();\r\n allShops.add(temp);\r\n }\r\n }\r\n }",
"public Node[] getChildren(){return children;}",
"public List<AST> getChildNodes ();",
"public native Point [] getAllocationVertices(Actor ancestor);",
"@Override\n public LinkedList<ApfsElement> getChildren() {\n return this.children;\n }",
"public Collection<V> getChildren(V vertex);",
"abstract public List<Command> getChildren();",
"public Iterator<Shape> iterator(){\n\t\treturn shapes.iterator();\n\t}",
"Object[] getChildArray();",
"public ArrayList<LexiNode> getChilds(){\n\t\treturn childs;\n\t}",
"public RMShape getChild(int anIndex) { return null; }",
"public List<Element> getChildElements() {\n return getChildNodes().stream().filter(n -> n instanceof Element)\n .map(n -> (Element) n).collect(Collectors.toUnmodifiableList());\n }",
"private List<IClass> getChildren(IClass cls) {\n\t\tList<IClass> subclasses = new ArrayList<IClass>();\n\t\tCollections.addAll(subclasses, cls.getDirectSubClasses());\n\t\treturn subclasses;\n\t}",
"@NotNull\n @Override\n public TreeElement[] getChildren() {\n return callChildren(this, navigationItem);\n }",
"public Collection getSuperclasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;",
"public LinkedList<Node> getChildren() { \r\n LinkedList<Node> nodes = new LinkedList<>();\r\n for(int i=0;i<=size;i++)\r\n nodes.add(children[i]);\r\n return nodes;\r\n }",
"public List<Tile> getPathSegment() {\n return pathSegment;\n }",
"@Override\r\n\tpublic List<List<Node<T>>> getPathsFromRootToAnyLeaf() {\r\n\t\tList<Node<T>> listaHojas = new LinkedList<Node<T>>();// Lista con todas\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// las hojas\r\n\t\t// del arbol\r\n\t\tlistaHojas = listaHojas(raiz, listaHojas);// Hojas\r\n\t\tList<List<Node<T>>> listaFinal = new LinkedList<List<Node<T>>>();// Lista\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// con\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// todos\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// los\r\n\t\t// caminos de la\r\n\t\t// raiz a las hojas\r\n\t\tfor (int i = 1; i <= listaHojas.size(); i++) {\r\n\t\t\tList<Node<T>> lista = new LinkedList<Node<T>>();\r\n\t\t\tlistaFinal.add(completaCamino(listaHojas.get(i), lista));// Crea\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// los\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// caminos\r\n\t\t}\r\n\t\treturn listaFinal;\r\n\t}",
"public Collection<N> neighbors();",
"public Node[] getChildren() {\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\treturn nextLayer;\n\t}",
"private void addGetChildBindings() {\n\t\tthis.pathBindingClass.addImports(Binding.class, List.class);\n\t\tGMethod children = this.pathBindingClass.getMethod(\"getChildBindings\").returnType(\"List<Binding<?>>\")\n\t\t\t\t.addAnnotation(\"@Override\");\n\t\tchildren.body.line(\"List<Binding<?>> bindings = new java.util.ArrayList<Binding<?>>();\");\n\t\tfor (String foundSubBinding : this.foundSubBindings) {\n\t\t\tchildren.body.line(\"bindings.add(this.{}());\", foundSubBinding);\n\t\t}\n\t\tchildren.body.line(\"return bindings;\");\n\t}",
"public List<BudgetAccountTableRow> getChildren() {\n return this.children;\n }",
"public Collection<BGPPath> getAllPathsTo(int dest) {\n if (!this.inRib.containsKey(dest)) {\n return new LinkedList<BGPPath>();\n }\n return this.inRib.get(dest);\n }",
"public List<Pair<Integer, Integer>> preparePath(Pair<Integer, Integer> goal) {\n var path = new LinkedList<Pair<Integer, Integer>>();\n path.add(goal);\n var parent = goal.getParent();\n while(parent != null) {\n path.addFirst(parent);\n parent = parent.getParent();\n }\n path.removeLast();\n return path;\n }",
"public List getSubHeadings() \n {\n return subHeadings;\n }",
"public SortedSet<WLightpathUnregenerated> getOutgoingLigtpaths () { return n.getOutgoingRoutes(getNet().getWdmLayer().getNe()).stream().map(ee->new WLightpathUnregenerated(ee)).collect(Collectors.toCollection(TreeSet::new)); }",
"public List<Node> findPath(Node start);"
] |
[
"0.59511256",
"0.57569164",
"0.55080134",
"0.5405889",
"0.515174",
"0.5122105",
"0.50835216",
"0.5072572",
"0.5066939",
"0.50636303",
"0.50346565",
"0.5002499",
"0.49727976",
"0.49556625",
"0.49532384",
"0.49240348",
"0.49002394",
"0.48956427",
"0.4873767",
"0.48534146",
"0.4852236",
"0.48507717",
"0.4847437",
"0.48434418",
"0.48403135",
"0.48124003",
"0.4811824",
"0.47977945",
"0.479043",
"0.47902656",
"0.47665054",
"0.47636756",
"0.47594696",
"0.47512946",
"0.47234192",
"0.4720522",
"0.4695142",
"0.4694462",
"0.4692738",
"0.4692589",
"0.46915293",
"0.46613666",
"0.4653617",
"0.46391973",
"0.46359822",
"0.46356177",
"0.4633141",
"0.46315008",
"0.4629902",
"0.46266273",
"0.46142593",
"0.4603172",
"0.45989782",
"0.45951328",
"0.45932224",
"0.45874855",
"0.45850977",
"0.45777622",
"0.45739883",
"0.45581532",
"0.4546126",
"0.45380715",
"0.45168123",
"0.4512277",
"0.45107967",
"0.45085615",
"0.45006758",
"0.4491861",
"0.4491755",
"0.44885176",
"0.44870153",
"0.44855776",
"0.44853196",
"0.4484451",
"0.44799992",
"0.4476147",
"0.44698137",
"0.44630516",
"0.44617262",
"0.44588944",
"0.44468093",
"0.44462153",
"0.44416437",
"0.44405085",
"0.44349244",
"0.44239026",
"0.4421831",
"0.44141743",
"0.44139323",
"0.4410293",
"0.4409853",
"0.44037348",
"0.4397675",
"0.4397002",
"0.43952438",
"0.4385025",
"0.4381",
"0.43785855",
"0.43704075",
"0.43702617"
] |
0.6784456
|
0
|
Returns a list of shapes from this shape to given shape.
|
public List <RMShape> getShapesToShape(RMShape aShape)
{
// If shape is null or ancestor, return shapes to ancestor
if(aShape==null || isAncestor(aShape))
return getShapesToAncestor(aShape);
// If shape is a descendant, return shapes to descendant
if(isDescendant(aShape))
return getShapesToDescendant(aShape);
// Get common ancestor (if none, just return null)
RMShape commonAncestor = getAncestorInCommon(aShape);
if(commonAncestor==null)
return null;
// Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape
List shapes = getShapesToAncestor(commonAncestor);
shapes.remove(shapes.size()-1);
shapes.addAll(commonAncestor.getShapesToDescendant(aShape));
// Return shapes
return shapes;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract ArrayList<Shape> getShapes();",
"public Shape[] getShapes() {\n return (Shape[]) shapes.clone();\n }",
"static List<Shape> createShapeArray(){\n return Arrays.asList(new Rectangle(new Point(0,0),new Point(0,4),new Point(2,4), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,2),new Point(2,2), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,3),new Point(2,3), new Point(2,0)),\n new Circle(new Point(0,0),new Point(0,1)),\n new Circle(new Point(1,0),new Point(1,4)),\n new Circle(new Point(1,0),new Point(0,2)),\n new Triangle(new Point(0,0),new Point(0,2),new Point(2,0)),\n new Triangle(new Point(0,0),new Point(0,4),new Point(4,0)),\n new Triangle(new Point(0,0),new Point(0,1),new Point(1,0)));\n\n }",
"public static List<Shape> getListOfShapes() {\n\t\treturn listOfShapes;\n\t}",
"public List<Shape> getDrawShapes();",
"public List <RMShape> getShapesToAncestor(RMShape aShape)\n{\n // Iterate and add up this shape and parents until given ancestor is added (or we run out)\n List ancestors = new ArrayList();\n for(RMShape shape=this; shape!=null; shape=shape.getParent()) {\n ancestors.add(shape);\n if(shape==aShape)\n break;\n }\n \n // Return ancestors\n return ancestors;\n}",
"public List <RMShape> getShapesToDescendant(RMShape aShape)\n{\n List list = aShape.getShapesToAncestor(this); Collections.reverse(list); return list;\n}",
"public Object getShapes() {\r\n if (shapes != null) {\r\n return shapes;\r\n }\r\n ValueBinding vb = getValueBinding(\"shapes\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }",
"@Override\r\n\tpublic Vector getShapes() {\r\n\t\treturn shapes;\r\n\t}",
"@Override\n\tpublic Vector<Shape> getShapes() {\n\t\treturn this.shapes;\n\t}",
"public Set<Shape> overlappingShapes(Shape shape) { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Shape>();\n Set<Shape> set = new HashSet<Shape>(); \n Iterator<Shape> its = myrc.geom_to_bundles.keySet().iterator();\n while (its.hasNext()) {\n Shape its_shape = its.next();\n\tif (Utils.genericIntersects(shape, its_shape)) set.add(its_shape);\n }\n Iterator<Line2D> itl = myrc.line_to_bundles.keySet().iterator();\n while (itl.hasNext()) {\n Line2D line = itl.next(); \n\t if (line.contains(shape.getBounds())) set.add(line);\n }\n return set;\n }",
"public Set<Shape> allShapes() { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Shape>();\n else return myrc.all_shapes; \n }",
"public Shape getShape();",
"public ArrayList findShapes() {\n ArrayList shapes = new ArrayList<>();\n\n // open database connection\n DatabaseConnection connection = new DatabaseConnection();\n\n if (connection.openConnection()) {\n\n // if a connection was successfully setup, execute the SELECT statement.\n ResultSet resultset = connection.executeSQLSelectStatement(\n \"SELECT *\\n\" +\n \"FROM shape_objects\\n\" +\n \"JOIN shape ON shape_objects.shape = shape.shape_id\\n\");\n\n // check if result is not null\n if (resultset != null) {\n try {\n while (resultset.next()) {\n\n int idFromDb = resultset.getInt(\"id\");\n double heightFromDb = resultset.getDouble(\"height\");\n double radiusFromDb = resultset.getDouble(\"radius\");\n double lengthFromDb = resultset.getDouble(\"width\");\n double widthFromDb = resultset.getDouble(\"length\");\n String shapeNameFromDb = resultset.getString(\"name\");\n\n\n if (Objects.equals(shapeNameFromDb, \"cilinder\")) {\n Cilinder newCilinder = new Cilinder(idFromDb, shapeNameFromDb, heightFromDb, radiusFromDb);\n shapes.add(newCilinder);\n }\n\n if (Objects.equals(shapeNameFromDb, \"sphere\")) {\n Sphere newSphere = new Sphere(idFromDb, shapeNameFromDb, radiusFromDb);\n shapes.add(newSphere);\n }\n\n if (Objects.equals(shapeNameFromDb, \"cubic\")) {\n Cubic newCubic = new Cubic(idFromDb, shapeNameFromDb, lengthFromDb, widthFromDb, heightFromDb);\n shapes.add(newCubic);\n }\n }\n } catch (SQLException e) {\n shapes.clear();\n }\n }\n\n // close database connection\n connection.closeConnection();\n }\n\n return shapes;\n }",
"List<IShape> getVisibleShapes();",
"Shape getShape();",
"List<IEvent> getEventList(IShape shape);",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"IShape getShape(String name);",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"List<IShape> getShapesAtTick(int tick);",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public ArrayList<PhysicsShape> getShapes() {\n\t\treturn shapes;\n\t}",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public abstract int[] getShape();",
"Map<IShape, List<IEvent>> getShapeMap();",
"public Shape getShape() { return shape; }",
"public Iterator<Shape> iterator(){\n\t\treturn shapes.iterator();\n\t}",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"List<String> getShapePanelInput();",
"public Shape getShape() {\n return shape;\n }",
"public int[] getShape() {\n return shape;\n }",
"public Shape getShape() {\n\treturn shape;\n }",
"public Set<Bundle> shapeBundles(Shape shape) { \n RenderContext myrc = (RenderContext) rc;\n if (myrc == null) return new HashSet<Bundle>();\n if (myrc.line_to_bundles.containsKey(shape)) return myrc.line_to_bundles.get(shape);\n else if (myrc.geom_to_bundles.containsKey(shape)) return myrc.geom_to_bundles.get(shape);\n else return new HashSet<Bundle>(); }",
"private String drawAllShapes() {\n\n /*\n Have list of list for each shape and the motions of each shape\n Need to iterate through the frames and for each motion in a frame\n add it to the corresponding shape in the list of lists\n */\n StringBuilder shapeSVG = new StringBuilder();\n Map<Integer, List<Shape>> animationFrames = this.model.getFrames();\n List<List<Shape>> shapeStates = new ArrayList<>();\n for (Integer key : new TreeSet<>(animationFrames.keySet())) {\n List<Shape> singleFrame = animationFrames.get(key);\n for (Shape shape : singleFrame) {\n if (!this.containsShapeList(shapeStates, shape.getName())) {\n List<Shape> shapeMotions = new ArrayList<>();\n shapeMotions.add(singleFrame.get(singleFrame.indexOf(shape)));\n shapeStates.add(shapeMotions);\n } else {\n shapeStates.get(this.findShape(shapeStates, shape.getName()))\n .add(singleFrame.get(singleFrame.indexOf(shape)));\n }\n }\n }\n\n for (List<Shape> shape : shapeStates) {\n shapeSVG.append(this.drawSingleShape(shape.get(0).getName(), shape.get(0).getType(), shape))\n .append(\"\\n\");\n }\n\n return shapeSVG.toString();\n }",
"@Override\n public Shape[][] getInitialArray() {\n return allShapes;\n }",
"IShape getCurrentShape();",
"ShapeType getShapeType();",
"public Shape chooseShape(){\n\t\tif(this.index == this.shapes.length){this.index = 0;}\n\t\treturn this.shapes[index++];\n\t}",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"IShape getStartShape();",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"private List<IShape> splitGroup(ShapeComponent component)\n\t{\n\t\tvar shapes = new ArrayList<IShape>();\n\n\t\tif (component instanceof ShapeGroup)\n\t\t{\n\t\t\tshapes.addAll(component.getShapes());\n\t\t}\n\n\t\treturn shapes;\n\t}",
"public List<Shape> recognize() {\n\t\tm_output = new ArrayList<Shape>();\n\t\tif (m_input.size() <= 0)\n\t\t\treturn m_output;\n\t\tCollections.sort(m_input, new TimePeriodComparator());\n\n\t\t// find dashed lines\n\t\tDashLineRecognizer dlr = new DashLineRecognizer(m_input);\n\t\tm_output = dlr.recognize();\n\n\t\t// find dashed rectangles/diamonds\n\t\tDashBoundaryRecognizer dbr = new DashBoundaryRecognizer(m_output);\n\t\tm_output = dbr.recognize();\n\n\t\t// find dashed ellipses\n\t\tDashEllipseRecognizer der = new DashEllipseRecognizer(m_output);\n\t\tm_output = der.recognize();\n\n\t\t// needed b/c DashEllipseRecognizer removes dashed lines\n\t\tdlr = new DashLineRecognizer(m_output);\n\t\tm_output = dlr.recognize();\n\n\t\t// find stars\n\t\tStarRecognizer sr = new StarRecognizer(m_output);\n\t\tm_output = sr.recognize();\n\n\t\tCollections.sort(m_output, new TimePeriodComparator());\n\t\treturn m_output;\n\t}",
"public Map<Integer, ArrayList<LatLng>> shapeIdList () {\r\n Map<Integer, ArrayList<LatLng>> newList = new HashMap<>();\r\n Cursor getData = getReadableDatabase().rawQuery(\"select shape_id from shapes\", null);\r\n getData.moveToFirst();\r\n while (getData.moveToNext()) {\r\n newList.put(getData.getInt(0), null);\r\n }\r\n return newList;\r\n }",
"public void paintShapeAll(RMShapePainter aPntr)\n{\n // Get graphics\n RMShapePainter pntr = aPntr;\n \n // If clipping, clip to shape\n if(getClipShape()!=null) {\n pntr = pntr.clone();\n pntr.clip(getClipShape());\n }\n \n // Have shape paint only itself\n pntr.sendPaintShape(this);\n \n // Have shape paint children\n paintShapeChildren(pntr);\n \n // Have shape paint over\n paintShapeOver(aPntr);\n \n // If graphics copied, dispose\n if(pntr!=aPntr) pntr.dispose();\n}",
"@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }",
"public Bitmap getShapesImage();",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"public abstract Shape getCopy();",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public void groupShape() {\n\t\tif(currentShape != null && !(groupedShapes.contains(currentShape))) {\n\t\t\tgroupedShapes.add(currentShape);\n\t\t\tnotifyObservers();\n\t\t}\n\t}",
"public static Vector<Edge> getEdgeDest(Shape shapeToFind, Vector<Shape> shapes) {\n\t\tVector<Edge> sources = new Vector<>();\n\t\tfor (Shape shape : shapes) {\n\t\t\tif (shape instanceof Edge) {\n\t\t\t\tif ( ((Edge) shape).getSource().compare(shapeToFind)) {\n\t\t\t\t\tsources.add((Edge) shape);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sources;\n\t}",
"@Override\r\n\tpublic ArrayList<IShape> addChildren() {\r\n\t\tArrayList<IShape> iShapes = new ArrayList<IShape>();\r\n\t\tif (getSize() != \"Small\") {\r\n\t\t\tif (getSize().equals(\"Large\")) {\r\n\t\t\t\t// Explode Sound Large\r\n\t\t\t\tSoundManager.getSoundManager().explodeLarge();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Medium\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, getChildren()));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (getSize().equals(\"Medium\")) {\r\n\t\t\t\t// Explode Sound Medium\r\n\t\t\t\tSoundManager.getSoundManager().explode();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Small\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, 0));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\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\tSoundManager.getSoundManager().explodeSmall();\r\n\t\t}\r\n\t\treturn iShapes;\r\n\t}",
"public Shape getShape() {\n\t\treturn null;\n\t}",
"public static Vector<Edge> getEdgeSource(Shape shapeToFind, Vector<Shape> shapes) {\n\t\tVector<Edge> sources = new Vector<>();\n\t\tfor (Shape shape : shapes) {\n\t\t\tif (shape instanceof Edge) {\n\t\t\t\tif ( ((Edge) shape).getDest().compare(shapeToFind)) {\n\t\t\t\t\tsources.add((Edge) shape);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sources;\n\t}",
"@Override\n\tpublic void getShape() {\n\n\t}",
"public static Vector<Shape> convertAll(Vector<Shape> v)\r\n\t{\r\n\t\tint i = 0;\r\n\t\tVector<Shape> v2 = new Vector<Shape>();\r\n\t\tfor(i=0 ; i<v.size() ; i++)\r\n\t\t{\r\n\t\r\n\t\t\tif(v.get(i) instanceof Rectangle)\r\n\t\t\t{\r\n\t\t\t\tRectangle r = new Rectangle();\r\n\t\t\t\tr = (Rectangle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(r);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\r\n\t\t\tif(v.get(i) instanceof Triangle)\r\n\t\t\t{\r\n\t\t\t\tTriangle t = new Triangle();\r\n\t\t\t\tt = (Triangle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(t);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\r\n\t\t\tif(v.get(i) instanceof Circle)\r\n\t\t\t{\r\n\t\t\t\tCircle c = new Circle();\r\n\t\t\t\tc = (Circle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(c);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\r\n\t\treturn v2;\r\n\t}",
"public List <RMShape> getChildren() { return Collections.emptyList(); }",
"public void union(Shape s);",
"public Queue<Point> getPoints() {\n\tQueue<Point> iter = new Queue<Point>();\n\tfor (Shape s : this.shapes) {\n\t for (Point p : s.getPoints())\n\t\titer.enqueue(p);\n\t}\n\n\treturn iter;\n }",
"Ingredient[] shape(IRecipe recipe);",
"public Shape getShape() {\n return null;\n }",
"public Set<Shape> entityShapesInternal(Set<String> superset) {\n Set<String> filtered = filterEntities(superset); Set<Shape> shapes = new HashSet<Shape>();\n\tIterator<String> it = filtered.iterator();\n\twhile (it.hasNext()) {\n\t String node_coord = entity_to_sxy.get(it.next());\n\t if (node_coord != null) {\n\t Shape shape = node_to_geom.get(node_coord);\n\t if (shape != null) shapes.add(shape);\n\t }\n\t}\n return shapes;\n }",
"IShape getEndShape();",
"public void drawAll(List<? extends Shape> shapes) {\n\t}",
"private void setPathShapes(int left, int top, int width, int height) {\n for (int i = 0; i < paths.size(); ++i) {\n PathWrapper p = paths.get(i);\n IPathFactory f = getPathFactories().get(i);\n p.path.setShape(f.createPath(left, top, width, height));\n }\n }",
"public Group shapes() {\n Group group = new Group();\n\n Rectangle square = new Rectangle();\n square.setHeight(_size * 2.0);\n square.setWidth(_size * 2.0);\n square.setX(-_size);\n square.setY(-_size);\n square.setFill(_fill);\n square.setOpacity(0.2);\n group.getChildren().add(square);\n\n return group;\n }",
"public Shape[] getMarkerShapes()\n{\n if(_markerShapes!=null) return _markerShapes;\n Shape shp0 = new Ellipse(0,0,8,8);\n Shape shp1 = new Polygon(4,0,8,4,4,8,0,4);\n Shape shp2 = new Rect(0,0,8,8);\n Shape shp3 = new Polygon(4,0,8,8,0,8);\n Shape shp4 = new Polygon(0,0,8,0,4,8);\n return _markerShapes = new Shape[] { shp0, shp1, shp2, shp3, shp4 };\n}",
"public String whatShape();",
"String getShapeName();",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"@Override\n protected List<IElementParser<ShapeImpl>> createParserList() {\n List<IElementParser<ShapeImpl>> result = new ArrayList<>();\n result.add(new SubElementPolylineParser());\n result.add(new SubElementClothoidParser());\n result.add(new SubElementNurbsParser());\n return result;\n }",
"void currentFrame(List<IShape> shapes);",
"public ShapeGraphics() {\r\n //A random object to set random measures for the shapes\r\n Random rn = new Random();\r\n //Creating two instances of every shape using the random object and adding them to the list\r\n for (int i = 0; i <2 ; i++) {\r\n MyLine line = new MyLine(rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE), Color.RED);\r\n MyRectangle rec = new MyRectangle (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n MyOval oval = new MyOval (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n list.add(line);\r\n list.add(oval);\r\n list.add(rec);\r\n\r\n }\r\n //Creating cloned shapes of this list and adding them to another array list\r\n ClonedShapes c = new ClonedShapes(list);\r\n clonedList = c.getClonedList();\r\n }",
"public interface ShapeOperations {\n\n /**\n * Computes the difference between this Shape and the input Shape <code>s</code> and puts the\n * result back into this Shape. The difference is the points that are in this Shape but not in\n * the input Shape.\n * \n * @param s the Shape to compute the difference from.\n */\n public void difference(Shape s);\n\n /**\n * Computes the intersection between this Shape and the input Shape <code>s</code> and puts the\n * result back into this Shape. The intersection is the points that are in both this Shape and\n * in the input Shape.\n * \n * @param s the Shape to compute the intersection from.\n */\n public void intersect(Shape s);\n\n /**\n * Computes the union between this Shape and the input Shape <code>s</code> and puts the result\n * back into this Shape. The union is the points that are in either this Shape or in the input\n * Shape.\n * \n * @param s the Shape to compute the union from.\n */\n public void union(Shape s);\n\n}",
"int getShapeId();",
"void setShapeList(List<String> shapes);",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public void buildShape(Shape shape) {\n\t\tbuildShape(shape, -1, false, 0);\n\t}",
"java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"protected abstract void setShapes();",
"public static Shape[] deleteShape(Shape[] shape) {\n double minT = 0;\n double maxC = 0;\n for (Shape i : shape) {\n if (i.getClass().getSimpleName().equals(\"Triangle\")) { //get min\n if (i.getPerimeter() < minT || minT == 0) {\n minT = i.getPerimeter();\n }\n }\n if (i.getClass().getSimpleName().equals(\"Circle\")) { //get max\n if (i.getPerimeter() > maxC) {\n maxC = i.getPerimeter();\n }\n }\n }\n for (int i = 0; i < shape.length; i++) {\n if (shape[i] != null) {\n if (shape[i].getClass().getSimpleName().equals(\"Triangle\")) { //delete min\n if (shape[i].getPerimeter() == minT) {\n shape[i] = null;\n }\n }\n if (shape[i] != null) {\n if (shape[i].getClass().getSimpleName().equals(\"Circle\")) { //delete max\n if (shape[i].getPerimeter() == maxC) {\n shape[i] = null;\n }\n }\n }\n }\n }\n return shape;\n }",
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }",
"void addShape(IShape shape);",
"public Shape getShape() {\n\t\treturn _shape!=null? _shape: new CircleShape(new Vec2f(0,0), 0);\n\t}",
"public abstract Shape createPath();",
"Future<ListShapesResponse> listShapes(\n ListShapesRequest request, AsyncHandler<ListShapesRequest, ListShapesResponse> handler);",
"Shape newShape(GraphicalObject g) throws RemoteException;",
"LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();",
"public File getShapesLocation() {\n\t\treturn shapesLocation;\n\t}",
"private Shape find(String name, ArrayList<Shape> listShapes, ArrayList<Command> commands) {\r\n for (Shape shape : listShapes) {\r\n if (shape.getName().equals(name)) {\r\n return shape;\r\n }\r\n }\r\n throw new IllegalArgumentException(\"Cannot find shape.\");\r\n }",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public void setShapes(Object shapes) {\r\n this.shapes = shapes;\r\n }",
"public ShapeGroup getShapeGroup() {\n return referencedShapeGroup;\n }",
"protected Shape getShape()\n {\n return null;\n }"
] |
[
"0.6857604",
"0.65249705",
"0.6473174",
"0.6446594",
"0.6442779",
"0.6419593",
"0.62383914",
"0.6157112",
"0.6120747",
"0.611128",
"0.6002332",
"0.5994159",
"0.5983638",
"0.5971635",
"0.59190893",
"0.5912229",
"0.590103",
"0.5890519",
"0.58538747",
"0.582845",
"0.57065433",
"0.5663834",
"0.5642256",
"0.56327075",
"0.5619844",
"0.5615335",
"0.5587214",
"0.5573643",
"0.5572366",
"0.5566148",
"0.5551036",
"0.5550875",
"0.55362517",
"0.54968274",
"0.54845047",
"0.5421916",
"0.54154533",
"0.5376366",
"0.5366102",
"0.5316081",
"0.5289352",
"0.5263561",
"0.5262643",
"0.5257359",
"0.5222071",
"0.5216421",
"0.51712334",
"0.51597655",
"0.5109793",
"0.5103404",
"0.50947475",
"0.5050909",
"0.50504076",
"0.5049031",
"0.50378",
"0.50318944",
"0.500793",
"0.50067216",
"0.500485",
"0.5003221",
"0.5003045",
"0.498896",
"0.49733108",
"0.49684367",
"0.49612343",
"0.4959106",
"0.4957952",
"0.4951763",
"0.49348152",
"0.49245474",
"0.48997515",
"0.48977527",
"0.48920134",
"0.4889472",
"0.4886446",
"0.48803872",
"0.48602813",
"0.48437107",
"0.48359624",
"0.48351762",
"0.48348355",
"0.48343083",
"0.48336825",
"0.48318332",
"0.48306695",
"0.48300242",
"0.4827066",
"0.48250738",
"0.48219115",
"0.4817407",
"0.4813698",
"0.48040745",
"0.48018157",
"0.47912675",
"0.47899976",
"0.47852752",
"0.47847146",
"0.47801602",
"0.4775133",
"0.4774239"
] |
0.7261141
|
0
|
Returns the transform to this shape from its parent.
|
public RMTransform getTransform()
{
return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,
getScaleX(), getScaleY(), getSkewX(), getSkewY());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}",
"public AffineTransform getTransform() {\n return new AffineTransform(transform);\n }",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public Matrix getTransform()\n {\n return transform;\n }",
"public Transform getTransform() {return transform;}",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"public Transform getTransformation() {\n Transform t = Transform.newTranslation(position);\n t = t.compose(Transform.newScale(scale));\n t = t.compose(Transform.newXRotation(rotation.x));\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public Transformation getTransform() {\n\t\treturn mk;\n\t}",
"@Override\n\tpublic RectTransform getTransform() {\n\t\treturn (RectTransform) super.getTransform();\n\t}",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"public final Transformation getTransformation() {\n\t\treturn transform;\n\t}",
"public RMParentShape getParent() { return _parent; }",
"public abstract Shape transform(Transformation t);",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"Transform<A, B> getTransform();",
"public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }",
"public ConversionHelper getParent()\n {\n return parent;\n }",
"protected Matrix4 computeTransform() {\n return internalGroup.computeTransform();\n }",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"public CompoundExpression getParent (){\n return _parent;\n }",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"Transforms getTransforms();",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}",
"public Tree transformTree(Tree t) {\n return QPtransform(t);\n }",
"public DrawingComposite getParent() {\n\t\treturn parent;\n\t}",
"protected TacticalBattleProcessor getParent() {\n return parent;\n }",
"public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"public Matrix4 getTransformMatrix() {\n return transformMatrix;\n }",
"Object getParent();",
"protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }",
"public int Parent() { return this.Parent; }",
"public Entity getParent() {\n return parent;\n }",
"public AffineTransform getOldAffineTransform ( )\n {\n return oldAffineTransformation;\n }",
"Spring getParent() {\n return parent;\n }",
"public Path getParent(\n ) {\n return this.parent;\n }",
"@VTID(7)\r\n void getParent();",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public int getTransformTo() {\n\t\treturn transformTo;\n\t}",
"public static Tree QPtransform(Tree t) {\n doTransform(t);\n return t;\n }",
"public Path parent() {\n if (isRoot()) {\n return this;\n } else {\n String[] newParts = new String[parts.length - 1];\n for (int i = 0; i < parts.length - 1; i++) {\n newParts[i] = parts[i];\n }\n return new Path(newParts, true);\n }\n }",
"public PlanNode getParent() {\n return parent;\n }",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"protected LambdaTerm getParent() { return parent; }",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"IGLProperty getParent();",
"Node<T> parent();",
"public Foo getParent() {\n return parent;\n }",
"private SparkTran generateParentTran(SparkPlan sparkPlan, SparkWork sparkWork, BaseWork work) throws Exception {\n if (cloneToWork.containsKey(work)) {\n BaseWork originalWork = cloneToWork.get(work);\n if (workToParentWorkTranMap.containsKey(originalWork)) {\n return workToParentWorkTranMap.get(originalWork);\n }\n }\n\n SparkTran result;\n if (work instanceof MapWork) {\n result = generateMapInput((MapWork)work);\n sparkPlan.addTran(result);\n } else if (work instanceof ReduceWork) {\n List<BaseWork> parentWorks = sparkWork.getParents(work);\n result = generate(sparkWork.getEdgeProperty(parentWorks.get(0), work), cloneToWork.containsKey(work));\n sparkPlan.addTran(result);\n for (BaseWork parentWork : parentWorks) {\n sparkPlan.connect(workToTranMap.get(parentWork), result);\n }\n } else {\n throw new IllegalStateException(\"AssertionError: generateParentTran() only expect MapWork or ReduceWork,\" +\n \" but found \" + work.getClass().getName());\n }\n\n if (cloneToWork.containsKey(work)) {\n workToParentWorkTranMap.put(cloneToWork.get(work), result);\n }\n\n return result;\n }",
"@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}",
"@Override\n public AffineTransform getAffineTransform() {\n return null;\n }",
"@Override\n public DEObject getParent()\n {\n if (subject.getOwner() instanceof DeltaReplacedConstituent)\n return getEngine().locateObject(subject.getOwner().getOwner());\n return getEngine().locateObject(subject.getOwner());\n }",
"@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }",
"godot.wire.Wire.Transform getTransformValue();",
"public StructuredId getParent()\r\n {\r\n return parent;\r\n }",
"public SqlFromSubSelect getParent() {\n return parent;\n }",
"public E getParentEntity() {\n return parentEntity;\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (transformValueBuilder_ == null) {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n } else {\n if (typeCase_ == 14) {\n return transformValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"private AffineTransform createTransform() {\n Dimension size = getSize();\n Rectangle2D.Float panelRect = new Rectangle2D.Float(\n BORDER,\n BORDER,\n size.width - BORDER - BORDER,\n size.height - BORDER - BORDER);\n AffineTransform tr = AffineTransform.getTranslateInstance(panelRect.getCenterX(), panelRect.getCenterY());\n double sx = panelRect.getWidth() / mapBounds.getWidth();\n double sy = panelRect.getHeight() / mapBounds.getHeight();\n double scale = min(sx, sy);\n tr.scale(scale, -scale);\n tr.translate(-mapBounds.getCenterX(), -mapBounds.getCenterY());\n return tr;\n }",
"public SpacialPattern getParent() {\n\t\treturn parent;\n\t}",
"public int getParentLayoutOrientation()\n {\n return parentOrientation;\n }",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"public AffineTransform getAffineTransform() {\n return affineTransform;\n }",
"public Tree<T> getParent()\n {\n return this.parent;\n }",
"public IBuildObject getParent();",
"public void setParent(RMParentShape aShape) { _parent = aShape; }",
"public Figure getFigure() {\n\t\treturn _parentFigure;\n\t}",
"public Node getParent(){\n return parent;\n }",
"public FcgLevel parent() {\n\t\tif (direction == IN_AND_OUT) {\n\t\t\t// undefined--we are the parent of all\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\"To get the parent of the source level you must use the constructor directly\");\n\t\t}\n\n\t\tint newDistance = getDistance() - 1;\n\t\tFcgDirection newDirection = direction;\n\t\tif (newDistance == 0) {\n\t\t\tnewDirection = IN_AND_OUT;\n\t\t}\n\t\treturn new FcgLevel(newDistance, newDirection);\n\t}",
"public abstract OperatorImpl getParent();",
"public PropertySelector getParent() {\n return parent;\n }",
"public void transform(AffineTransform at) {\n\t\tif (_child != null) {\n\t\t\t_child.transform(at);\n\t\t}\n\t}",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public ProductContainer getParent();",
"@Override\n\tpublic Mat GetTranslateMatrix()\n\t{\n\t\treturn mT;\n\t}",
"public godot.wire.Wire.Transform.Builder getTransformValueBuilder() {\n return getTransformValueFieldBuilder().getBuilder();\n }",
"@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }",
"protected final Context getParent()\n {\n return m_parent;\n }",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"public MiniMap getParent() {\n \t\treturn parent;\n \t}",
"@JsProperty\n Element getParentElement();",
"public Concept getParent() { return parent; }",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public final XmlAntTask getParent() {\n\t\treturn parent;\n\t}",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }"
] |
[
"0.74587727",
"0.7083032",
"0.6758167",
"0.6750564",
"0.67113984",
"0.668968",
"0.66611344",
"0.66298336",
"0.66185886",
"0.66075236",
"0.65418947",
"0.6507818",
"0.650737",
"0.6500822",
"0.64833015",
"0.64414173",
"0.6413278",
"0.6365305",
"0.6342168",
"0.6319758",
"0.62146246",
"0.61780894",
"0.60689974",
"0.60575485",
"0.5964379",
"0.58944786",
"0.584348",
"0.5829263",
"0.5829263",
"0.5829263",
"0.58196044",
"0.58125687",
"0.5811721",
"0.5811351",
"0.57973814",
"0.5789122",
"0.5747709",
"0.5745569",
"0.5740281",
"0.57387275",
"0.5722989",
"0.5712046",
"0.5703128",
"0.5699516",
"0.56927526",
"0.5685381",
"0.5674615",
"0.567391",
"0.56423694",
"0.5634721",
"0.56333566",
"0.5633129",
"0.5631356",
"0.56242394",
"0.562345",
"0.56225944",
"0.5614796",
"0.5610246",
"0.56078213",
"0.56025076",
"0.5565054",
"0.55546147",
"0.5537022",
"0.55287325",
"0.552403",
"0.5522963",
"0.55181724",
"0.5512745",
"0.55101067",
"0.5501935",
"0.54986554",
"0.5498118",
"0.54813874",
"0.54728115",
"0.54700494",
"0.54700494",
"0.54655886",
"0.54630554",
"0.5458211",
"0.5452376",
"0.5449309",
"0.54464746",
"0.5445753",
"0.54345477",
"0.5429923",
"0.5426698",
"0.5424629",
"0.54195887",
"0.5417017",
"0.54124886",
"0.5409672",
"0.5404287",
"0.5401246",
"0.53975564",
"0.53967947",
"0.53963006",
"0.53944916",
"0.53944916",
"0.53758377",
"0.5364957"
] |
0.62921447
|
20
|
Returns the transform from this shape to it's parent.
|
public RMTransform getTransformInverse() { return getTransform().invert(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}",
"public AffineTransform getTransform() {\n return new AffineTransform(transform);\n }",
"public Transform getTransformation() {\n Transform t = Transform.newTranslation(position);\n t = t.compose(Transform.newScale(scale));\n t = t.compose(Transform.newXRotation(rotation.x));\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}",
"public Matrix getTransform()\n {\n return transform;\n }",
"public Transform getTransform() {return transform;}",
"public Transformation getTransform() {\n\t\treturn mk;\n\t}",
"public final Transformation getTransformation() {\n\t\treturn transform;\n\t}",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }",
"@Override\n\tpublic RectTransform getTransform() {\n\t\treturn (RectTransform) super.getTransform();\n\t}",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"public CarrierShape parent()\n\t{\n\t\treturn parent;\n\t}",
"public RMParentShape getParent() { return _parent; }",
"public RMTransform getTransform()\n{\n return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,\n getScaleX(), getScaleY(), getSkewX(), getSkewY());\n}",
"public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }",
"Transform<A, B> getTransform();",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"public ConversionHelper getParent()\n {\n return parent;\n }",
"protected Matrix4 computeTransform() {\n return internalGroup.computeTransform();\n }",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"public abstract Shape transform(Transformation t);",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"public Matrix4 getTransformMatrix() {\n return transformMatrix;\n }",
"public CompoundExpression getParent (){\n return _parent;\n }",
"Transforms getTransforms();",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public AffineTransform getOldAffineTransform ( )\n {\n return oldAffineTransformation;\n }",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public DrawingComposite getParent() {\n\t\treturn parent;\n\t}",
"public Tree transformTree(Tree t) {\n return QPtransform(t);\n }",
"public int getTransformTo() {\n\t\treturn transformTo;\n\t}",
"public Path getParent(\n ) {\n return this.parent;\n }",
"public int Parent() { return this.Parent; }",
"public Entity getParent() {\n return parent;\n }",
"Object getParent();",
"Node<T> parent();",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public int getParentLayoutOrientation()\n {\n return parentOrientation;\n }",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public PlanNode getParent() {\n return parent;\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"public AffineTransform getAffineTransform() {\n return affineTransform;\n }",
"public Path parent() {\n if (isRoot()) {\n return this;\n } else {\n String[] newParts = new String[parts.length - 1];\n for (int i = 0; i < parts.length - 1; i++) {\n newParts[i] = parts[i];\n }\n return new Path(newParts, true);\n }\n }",
"@VTID(7)\r\n void getParent();",
"@Override\n public DEObject getParent()\n {\n if (subject.getOwner() instanceof DeltaReplacedConstituent)\n return getEngine().locateObject(subject.getOwner().getOwner());\n return getEngine().locateObject(subject.getOwner());\n }",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"public E getParentEntity() {\n return parentEntity;\n }",
"public Foo getParent() {\n return parent;\n }",
"protected TacticalBattleProcessor getParent() {\n return parent;\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (transformValueBuilder_ == null) {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n } else {\n if (typeCase_ == 14) {\n return transformValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"public static Tree QPtransform(Tree t) {\n doTransform(t);\n return t;\n }",
"IGLProperty getParent();",
"@Override\n public AffineTransform getAffineTransform() {\n return null;\n }",
"Spring getParent() {\n return parent;\n }",
"public Tree<T> getParent()\n {\n return this.parent;\n }",
"public Figure getFigure() {\n\t\treturn _parentFigure;\n\t}",
"private AffineTransform createTransform() {\n Dimension size = getSize();\n Rectangle2D.Float panelRect = new Rectangle2D.Float(\n BORDER,\n BORDER,\n size.width - BORDER - BORDER,\n size.height - BORDER - BORDER);\n AffineTransform tr = AffineTransform.getTranslateInstance(panelRect.getCenterX(), panelRect.getCenterY());\n double sx = panelRect.getWidth() / mapBounds.getWidth();\n double sy = panelRect.getHeight() / mapBounds.getHeight();\n double scale = min(sx, sy);\n tr.scale(scale, -scale);\n tr.translate(-mapBounds.getCenterX(), -mapBounds.getCenterY());\n return tr;\n }",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }",
"godot.wire.Wire.Transform getTransformValue();",
"public StructuredId getParent()\r\n {\r\n return parent;\r\n }",
"private SparkTran generateParentTran(SparkPlan sparkPlan, SparkWork sparkWork, BaseWork work) throws Exception {\n if (cloneToWork.containsKey(work)) {\n BaseWork originalWork = cloneToWork.get(work);\n if (workToParentWorkTranMap.containsKey(originalWork)) {\n return workToParentWorkTranMap.get(originalWork);\n }\n }\n\n SparkTran result;\n if (work instanceof MapWork) {\n result = generateMapInput((MapWork)work);\n sparkPlan.addTran(result);\n } else if (work instanceof ReduceWork) {\n List<BaseWork> parentWorks = sparkWork.getParents(work);\n result = generate(sparkWork.getEdgeProperty(parentWorks.get(0), work), cloneToWork.containsKey(work));\n sparkPlan.addTran(result);\n for (BaseWork parentWork : parentWorks) {\n sparkPlan.connect(workToTranMap.get(parentWork), result);\n }\n } else {\n throw new IllegalStateException(\"AssertionError: generateParentTran() only expect MapWork or ReduceWork,\" +\n \" but found \" + work.getClass().getName());\n }\n\n if (cloneToWork.containsKey(work)) {\n workToParentWorkTranMap.put(cloneToWork.get(work), result);\n }\n\n return result;\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public Node getParent(){\n return parent;\n }",
"public UpTreeNode<E> getParent() {\n\t\t\treturn parent;\n\t\t}",
"public GraphicalLattice getParentLattice() {\n\t\treturn parentLattice;\n\t}",
"@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}",
"public String getParent() {\n return parent;\n }",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"public String getParent() {\n return _parent;\n }",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"public Node<T> getParent() {\n return this.parent;\n }",
"public ParseTreeNode getParent() {\r\n return _parent;\r\n }",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public AffineTransform getGraphicTx() {\n return transformManager.getGraphicTx();\n }",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"@Override\n\tpublic Mat GetTranslateMatrix()\n\t{\n\t\treturn mT;\n\t}",
"public IAVLNode getParent() {\n\t\t\treturn this.parent; // to be replaced by student code\n\t\t}",
"public PApplet getParent() {\n\t\treturn this.parent;\n\t}",
"public MiniMap getParent() {\n \t\treturn parent;\n \t}",
"protected LambdaTerm getParent() { return parent; }",
"public final XmlAntTask getParent() {\n\t\treturn parent;\n\t}",
"public Node getNormalizedNode() {\n\t\treturn transformedNode;\n\t}",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"protected final Context getParent()\n {\n return m_parent;\n }"
] |
[
"0.75178844",
"0.70243955",
"0.69607574",
"0.692201",
"0.6901372",
"0.6880212",
"0.6849169",
"0.6783318",
"0.667769",
"0.66644883",
"0.66607064",
"0.6603337",
"0.6558176",
"0.6546467",
"0.644302",
"0.6380427",
"0.6371416",
"0.63605666",
"0.6348593",
"0.6308331",
"0.6305984",
"0.6160967",
"0.6138991",
"0.6136471",
"0.6135138",
"0.6042031",
"0.59914076",
"0.5984415",
"0.5971836",
"0.5948379",
"0.59380245",
"0.5919145",
"0.5903952",
"0.5903952",
"0.5903952",
"0.5885168",
"0.58841026",
"0.58672184",
"0.58455867",
"0.5813192",
"0.5812202",
"0.58084",
"0.5804934",
"0.5800404",
"0.577974",
"0.5758445",
"0.57060933",
"0.57054794",
"0.56950104",
"0.56897354",
"0.5683025",
"0.566618",
"0.5656615",
"0.56550485",
"0.56481385",
"0.56424606",
"0.56393635",
"0.56393635",
"0.56361246",
"0.56307584",
"0.56280905",
"0.56236446",
"0.5623641",
"0.5614507",
"0.561048",
"0.5606858",
"0.5605099",
"0.56026506",
"0.5586904",
"0.55778974",
"0.55778974",
"0.5575476",
"0.5571895",
"0.556991",
"0.5562211",
"0.55510104",
"0.5544671",
"0.55348784",
"0.55323094",
"0.5504224",
"0.55015576",
"0.55008316",
"0.54950434",
"0.5493655",
"0.54864335",
"0.5484389",
"0.5480248",
"0.54750174",
"0.54724824",
"0.54715276",
"0.5470847",
"0.54645634",
"0.546448",
"0.5464297",
"0.5457768",
"0.5456747",
"0.5453212",
"0.54476",
"0.5447536",
"0.54453534"
] |
0.5490513
|
84
|
Returns the transform from this shape to the given shape.
|
public RMTransform getTransformToShape(RMShape aShape)
{
// If transforming out of shape hierarchy, concat recursive transformToShape call to parents
if(aShape==null)
return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));
// The transform to parent is just our transform, transform to child is just child's inverse transform
if(aShape==getParent())
return getTransform();
if(this==aShape.getParent())
return aShape.getTransformInverse();
if(aShape==this)
return new RMTransform();
// Start with identity transform
RMTransform transform = RMTransform.identity;
// If not one of simple cases above, concat successive transforms from last shape to self
List <RMShape> shapes = getShapesToShape(aShape);
if(shapes!=null)
for(int i=shapes.size()-1; i>0; i--) {
RMShape cs = shapes.get(i), ns = shapes.get(i-1);
RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal
transform = t2.multiply(transform);
}
// Return transform
return transform;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Shape transform(Transformation t);",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"Transform<A, B> getTransform();",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public Shape detransform (Shape shape) {\n return inverse.createTransformedShape (shape);\n }",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }",
"public AffineTransform getTransform() {\n return new AffineTransform(transform);\n }",
"public Matrix getTransform()\n {\n return transform;\n }",
"public Transform getTransformation() {\n Transform t = Transform.newTranslation(position);\n t = t.compose(Transform.newScale(scale));\n t = t.compose(Transform.newXRotation(rotation.x));\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}",
"public Transform getTransform() {return transform;}",
"public Transformation getTransform() {\n\t\treturn mk;\n\t}",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"public final Transformation getTransformation() {\n\t\treturn transform;\n\t}",
"godot.wire.Wire.Transform getTransformValue();",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"@Override\n\tpublic RectTransform getTransform() {\n\t\treturn (RectTransform) super.getTransform();\n\t}",
"TransformationFactory getTransformationFactory();",
"protected Matrix4 computeTransform() {\n return internalGroup.computeTransform();\n }",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public RMTransform getTransform()\n{\n return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,\n getScaleX(), getScaleY(), getSkewX(), getSkewY());\n}",
"public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"public RMPath convertPathToShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformToShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (transformValueBuilder_ == null) {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n } else {\n if (typeCase_ == 14) {\n return transformValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }",
"public Shape transform(DeusVertex v) {\n\t\tif (v.getElementType() == \"Engine\") {\n\t\t\treturn factory.getRegularPolygon(v, 3);\n\t\t} else if (v.getElementType() == \"Process\") {\n\t\t\treturn factory.getRectangle(v);\n\t\t} else if (v.getElementType() == \"Event\") {\n\t\t\treturn factory.getEllipse(v);\n\t\t} else if (v.getElementType() == \"Network\") {\n\t\t\treturn factory.getRegularStar(v, 7);\n\t\t}\n\t\telse\n\t\t\treturn factory.getRegularPolygon(v, 8);\n\t}",
"godot.wire.Wire.Transform2D getTransform2DValue();",
"public int getTransformTo() {\n\t\treturn transformTo;\n\t}",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"Transforms getTransforms();",
"Object transform(Object o);",
"private AffineTransform createTransform() {\n Dimension size = getSize();\n Rectangle2D.Float panelRect = new Rectangle2D.Float(\n BORDER,\n BORDER,\n size.width - BORDER - BORDER,\n size.height - BORDER - BORDER);\n AffineTransform tr = AffineTransform.getTranslateInstance(panelRect.getCenterX(), panelRect.getCenterY());\n double sx = panelRect.getWidth() / mapBounds.getWidth();\n double sy = panelRect.getHeight() / mapBounds.getHeight();\n double scale = min(sx, sy);\n tr.scale(scale, -scale);\n tr.translate(-mapBounds.getCenterX(), -mapBounds.getCenterY());\n return tr;\n }",
"TransformFactory getFactory();",
"godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder();",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"public RMPath convertPathFromShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformFromShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if ((typeCase_ == 14) && (transformValueBuilder_ != null)) {\n return transformValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"public Object transform(Object input) {\n return input;\n }",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"@Override\n PickShape transform(Transform3D t3d) {\n\t// If the bounds is a BoundingBox, then the transformed bounds will\n\t// get bigger. So this is a potential bug, and we'll have to deal with\n\t// if there is a complain.\n\tBounds newBds = (Bounds)bounds.clone();\n\tnewBds.transform(t3d);\n\tPickBounds newPB = new PickBounds(newBds);\n\n\treturn newPB;\n }",
"@Override\n public void generateShape() {\n AffineTransform tx = new AffineTransform();\n tx.rotate(-this.getRotation(), this.getX(), this.getY());\n this.shape = tx.createTransformedShape(new Ellipse2D.Double(\n this.getX() + this.getWidth() / 2 - D / 2,\n this.getY() + this.getHeight() / 2 - D / 2,\n D, D));\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (transform2DValueBuilder_ == null) {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n } else {\n if (typeCase_ == 9) {\n return transform2DValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }\n }",
"public final Shape getTranslated(Vector translation) {\n\t\treturn getCopy().translate(translation);\n\t}",
"public abstract BufferedImage transform();",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"protected abstract Object transform(Object o);",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }",
"Shape getShape();",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public Object transform(Object input) {\n if (input == null) {\n return null;\n }\n try {\n return FactoryUtils.prototypeFactory(input).create();\n\n } catch (IllegalArgumentException ex) {\n throw new TransformerException(\"CloneTransformer\", ex);\n } catch (FactoryException ex) {\n throw new TransformerException(\"CloneTransformer\", ex);\n }\n }",
"public Matrix4 getTransformMatrix() {\n return transformMatrix;\n }",
"public final Shape translate(Vector displacement) {\n\t\treturn transform(new Translation(displacement));\n\t}",
"public abstract Transformation updateTransform(Rectangle selectionBox);",
"public Piece rotate() {\n\t\tif (!isRotatable) {\n\t\t\treturn this;\n\t\t}\n\t\tint m = shape.length;\n\t\tint n = shape[0].length;\n\t\tint[][] newPiece = new int[n][m];\n\t\tfor (int r = 0; r < m; r++) {\n\t for (int c = 0; c < n; c++) {\n\t newPiece[c][m-1-r] = shape[r][c];\n\t }\n\t\t}\n\t\treturn new Piece(value, name, newPiece, isFlippable, isRotatable);\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Transform, godot.wire.Wire.Transform.Builder, godot.wire.Wire.TransformOrBuilder> \n getTransformValueFieldBuilder() {\n if (transformValueBuilder_ == null) {\n if (!(typeCase_ == 14)) {\n type_ = godot.wire.Wire.Transform.getDefaultInstance();\n }\n transformValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Transform, godot.wire.Wire.Transform.Builder, godot.wire.Wire.TransformOrBuilder>(\n (godot.wire.Wire.Transform) type_,\n getParentForChildren(),\n isClean());\n type_ = null;\n }\n typeCase_ = 14;\n onChanged();;\n return transformValueBuilder_;\n }",
"public godot.wire.Wire.Transform.Builder getTransformValueBuilder() {\n return getTransformValueFieldBuilder().getBuilder();\n }",
"public Transform compose(Transform other){\n float[][] ans = new float[4][4];\n for(int row = 0; row < 4; row++){\n for(int col = 0; col < 4; col++){\n for(int i = 0; i < 3; i++){\n ans[row][col] += this.values[row][i] * other.values[i][col];\n }\n }\n ans[row][3] += this.values[row][3];\n }\n return new Transform(ans);\n }",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public AffineTransform getOldAffineTransform ( )\n {\n return oldAffineTransformation;\n }",
"public Shape getShape() { return shape; }",
"IShape getCurrentShape();",
"public Tree transformTree(Tree t) {\n return QPtransform(t);\n }",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"public Geometry transformGeometry(Geometry originalGeometry)\r\n\t\t\tthrows TransformException {\r\n\t\treturn coordinateTransformer.transform(originalGeometry);\r\n\t}",
"public Shape getShape();",
"public godot.wire.Wire.Transform2D.Builder getTransform2DValueBuilder() {\n return getTransform2DValueFieldBuilder().getBuilder();\n }",
"@Override\n\tpublic GAffineTransform getTransform(GeoConicND conic, Coords M,\n\t\t\tCoords[] ev) {\n\t\ttransform.setTransform(ev[0].getX(), ev[0].getY(), ev[1].getX(),\n\t\t\t\tev[1].getY(), M.getX(), M.getY());\n\n\t\treturn transform;\n\t}",
"@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }",
"public abstract Shape getCopy();",
"public GJEllipseShape2D transform(GJAffineTransform2D trans);",
"public void setTransform(Transform transform);",
"public interface LinopTransform extends Transform {\r\n public double[][] getMat();\r\n}",
"godot.wire.Wire.Transform2DOrBuilder getTransform2DValueOrBuilder();",
"public RMSize convertVectorFromShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformFromShape(shape).transformVector(size);\n}",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"public Shape getShape() {\n return shape;\n }",
"public interface Transformer {\n\t/**\n\t * Transform a source object dynamically.\n\t * \n\t * This iteratively calls {@link #transform(Object, Class) transform}\n\t * \n\t * @param <S>\n\t * the source type.\n\t * @param <T>\n\t * the target type.\n\t * @param source\n\t * The source object.\n\t * @return The target object or <em>null</em> if no applicable rule has been\n\t * found.\n\t * @see #getTransformationRules()\n\t */\n\tpublic <S, T> T transform(S source);\n\n\t/**\n\t * Transform a source object using a specific type of rule.\n\t * \n\t * @param <S>\n\t * the source type.\n\t * @param <T>\n\t * the target type.\n\t * @param source\n\t * The source object.\n\t * @param with\n\t * The type of rule to be used.\n\t * @return The target object or <em>null</em> if no applicable rule has been\n\t * found.\n\t */\n\tpublic <S, T> T transform(S source, Class<? extends Rule<S, T>> with);\n\n\t/**\n\t * Get the list of rule definitions related to this transformation instance.\n\t * \n\t * @return An ordered collection of transformation rule definitions.\n\t */\n\tpublic Set<Class<? extends Rule<?, ?>>> getTransformationRules();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic Context getContext();\n}",
"public String getTransformType();",
"public RMSize convertVectorToShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformToShape(shape).transformVector(size);\n}",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"public interface Transform<INPUT, OUTPUT> {\n\n\tOUTPUT transform(INPUT input);\n\t\n}",
"public T transform(T item) {\n T result = item;\n for (SimpleTransformation<T> transformation : transformations) {\n result = transformation.transform(result);\n }\n\n return result;\n }",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public final Shape getRotated(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().rotate(fromPoint, toPoint, anchorPoint);\n\t}",
"public interface Transformation {\n Bitmap transform(Bitmap var1);\n\n String key();\n}",
"public Transform apply(Transform transform) {\n\n setPosition(transform.getTransformedPosition());\n setRotation(transform.getTransformedRotation());\n setScale(transform.getScale());\n\n return this;\n }",
"@Override\n\tpublic Mat GetTranslateMatrix()\n\t{\n\t\treturn mT;\n\t}",
"public RMRect convertRectToShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(getX(), getY()); return rect; }\n return getTransformToShape(shape).transform(rect);\n}",
"public final Shape rotate(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn transform(new Rotation(fromPoint, toPoint, anchorPoint));\n\t}",
"public static Tree QPtransform(Tree t) {\n doTransform(t);\n return t;\n }"
] |
[
"0.724336",
"0.7031482",
"0.6951694",
"0.66035205",
"0.65536016",
"0.6524571",
"0.6404406",
"0.6328597",
"0.6300844",
"0.6241629",
"0.6232333",
"0.62218857",
"0.62020105",
"0.61299926",
"0.6117257",
"0.6020268",
"0.58916694",
"0.5875687",
"0.5863113",
"0.58150077",
"0.58115894",
"0.5806032",
"0.58019835",
"0.5742269",
"0.57402927",
"0.5716964",
"0.56791556",
"0.5623662",
"0.5617431",
"0.559452",
"0.55763155",
"0.55534685",
"0.55422854",
"0.5511382",
"0.5507056",
"0.5490226",
"0.5483943",
"0.5476407",
"0.5475534",
"0.54740745",
"0.5454508",
"0.5401482",
"0.53722495",
"0.53714424",
"0.52974063",
"0.5291939",
"0.52762914",
"0.52705544",
"0.5261635",
"0.5260202",
"0.525517",
"0.5247485",
"0.5242239",
"0.5231806",
"0.5227916",
"0.5213873",
"0.5196169",
"0.5172911",
"0.5161911",
"0.5159598",
"0.51570415",
"0.5157019",
"0.51562285",
"0.51524687",
"0.51507217",
"0.51322496",
"0.51262826",
"0.5125425",
"0.5124661",
"0.5116607",
"0.5101578",
"0.5099851",
"0.5091964",
"0.5056225",
"0.5036712",
"0.50270355",
"0.50093997",
"0.5001786",
"0.49876758",
"0.4978299",
"0.49757817",
"0.49697685",
"0.4964455",
"0.49635425",
"0.49576735",
"0.49453562",
"0.4940686",
"0.4932036",
"0.49276283",
"0.49119613",
"0.4907006",
"0.48910025",
"0.4879868",
"0.48690706",
"0.4860428",
"0.4847669",
"0.4823586",
"0.48011336",
"0.47889057",
"0.47863805"
] |
0.68845224
|
3
|
Returns the transform from the given shape to this shape.
|
public RMTransform getTransformFromShape(RMShape aShape)
{
// The transform from parent is just our inverse transform, transform from child is just child's transform
if(aShape==getParent())
return getTransformInverse();
if(aShape!=null && this==aShape.getParent())
return aShape.getTransform();
// Return the inverse of transform to shape
return getTransformToShape(aShape).invert();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Shape transform(Transformation t);",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"Transform<A, B> getTransform();",
"public Shape detransform (Shape shape) {\n return inverse.createTransformedShape (shape);\n }",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public Matrix getTransform()\n {\n return transform;\n }",
"public AffineTransform getTransform() {\n return new AffineTransform(transform);\n }",
"public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}",
"public Transform getTransform() {return transform;}",
"public Transform getTransformation() {\n Transform t = Transform.newTranslation(position);\n t = t.compose(Transform.newScale(scale));\n t = t.compose(Transform.newXRotation(rotation.x));\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"public Transformation getTransform() {\n\t\treturn mk;\n\t}",
"public final Transformation getTransformation() {\n\t\treturn transform;\n\t}",
"@Override\n\tpublic RectTransform getTransform() {\n\t\treturn (RectTransform) super.getTransform();\n\t}",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"protected Matrix4 computeTransform() {\n return internalGroup.computeTransform();\n }",
"godot.wire.Wire.Transform getTransformValue();",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"TransformationFactory getTransformationFactory();",
"public RMTransform getTransform()\n{\n return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,\n getScaleX(), getScaleY(), getSkewX(), getSkewY());\n}",
"public AffineTransform getTransform()\n/* */ {\n/* 194 */ return this.transform;\n/* */ }",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"public RMPath convertPathToShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformToShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform getTransformValue() {\n if (transformValueBuilder_ == null) {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n } else {\n if (typeCase_ == 14) {\n return transformValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"public Shape transform(DeusVertex v) {\n\t\tif (v.getElementType() == \"Engine\") {\n\t\t\treturn factory.getRegularPolygon(v, 3);\n\t\t} else if (v.getElementType() == \"Process\") {\n\t\t\treturn factory.getRectangle(v);\n\t\t} else if (v.getElementType() == \"Event\") {\n\t\t\treturn factory.getEllipse(v);\n\t\t} else if (v.getElementType() == \"Network\") {\n\t\t\treturn factory.getRegularStar(v, 7);\n\t\t}\n\t\telse\n\t\t\treturn factory.getRegularPolygon(v, 8);\n\t}",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"public RMPath convertPathFromShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformFromShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder();",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"godot.wire.Wire.Transform2D getTransform2DValue();",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"Object transform(Object o);",
"TransformFactory getFactory();",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }",
"@java.lang.Override\n public godot.wire.Wire.TransformOrBuilder getTransformValueOrBuilder() {\n if ((typeCase_ == 14) && (transformValueBuilder_ != null)) {\n return transformValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 14) {\n return (godot.wire.Wire.Transform) type_;\n }\n return godot.wire.Wire.Transform.getDefaultInstance();\n }\n }",
"public int getTransformTo() {\n\t\treturn transformTo;\n\t}",
"Transforms getTransforms();",
"private AffineTransform createTransform() {\n Dimension size = getSize();\n Rectangle2D.Float panelRect = new Rectangle2D.Float(\n BORDER,\n BORDER,\n size.width - BORDER - BORDER,\n size.height - BORDER - BORDER);\n AffineTransform tr = AffineTransform.getTranslateInstance(panelRect.getCenterX(), panelRect.getCenterY());\n double sx = panelRect.getWidth() / mapBounds.getWidth();\n double sy = panelRect.getHeight() / mapBounds.getHeight();\n double scale = min(sx, sy);\n tr.scale(scale, -scale);\n tr.translate(-mapBounds.getCenterX(), -mapBounds.getCenterY());\n return tr;\n }",
"public Transform compose(Transform other){\n float[][] ans = new float[4][4];\n for(int row = 0; row < 4; row++){\n for(int col = 0; col < 4; col++){\n for(int i = 0; i < 3; i++){\n ans[row][col] += this.values[row][i] * other.values[i][col];\n }\n }\n ans[row][3] += this.values[row][3];\n }\n return new Transform(ans);\n }",
"@Override\n PickShape transform(Transform3D t3d) {\n\t// If the bounds is a BoundingBox, then the transformed bounds will\n\t// get bigger. So this is a potential bug, and we'll have to deal with\n\t// if there is a complain.\n\tBounds newBds = (Bounds)bounds.clone();\n\tnewBds.transform(t3d);\n\tPickBounds newPB = new PickBounds(newBds);\n\n\treturn newPB;\n }",
"public abstract Transformation updateTransform(Rectangle selectionBox);",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"public Object transform(Object input) {\n return input;\n }",
"protected abstract Object transform(Object o);",
"@Override\n public void generateShape() {\n AffineTransform tx = new AffineTransform();\n tx.rotate(-this.getRotation(), this.getX(), this.getY());\n this.shape = tx.createTransformedShape(new Ellipse2D.Double(\n this.getX() + this.getWidth() / 2 - D / 2,\n this.getY() + this.getHeight() / 2 - D / 2,\n D, D));\n }",
"public final Shape getTranslated(Vector translation) {\n\t\treturn getCopy().translate(translation);\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (transform2DValueBuilder_ == null) {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n } else {\n if (typeCase_ == 9) {\n return transform2DValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Transform, godot.wire.Wire.Transform.Builder, godot.wire.Wire.TransformOrBuilder> \n getTransformValueFieldBuilder() {\n if (transformValueBuilder_ == null) {\n if (!(typeCase_ == 14)) {\n type_ = godot.wire.Wire.Transform.getDefaultInstance();\n }\n transformValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Transform, godot.wire.Wire.Transform.Builder, godot.wire.Wire.TransformOrBuilder>(\n (godot.wire.Wire.Transform) type_,\n getParentForChildren(),\n isClean());\n type_ = null;\n }\n typeCase_ = 14;\n onChanged();;\n return transformValueBuilder_;\n }",
"public abstract BufferedImage transform();",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"Shape getShape();",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"public Tree transformTree(Tree t) {\n return QPtransform(t);\n }",
"public Transform getRotationTransformation() {\n Transform t = Transform.newXRotation(rotation.x);\n t = t.compose(Transform.newYRotation(rotation.y));\n t = t.compose(Transform.newZRotation(rotation.z));\n return t;\n }",
"@java.lang.Override\n public godot.wire.Wire.Transform2D getTransform2DValue() {\n if (typeCase_ == 9) {\n return (godot.wire.Wire.Transform2D) type_;\n }\n return godot.wire.Wire.Transform2D.getDefaultInstance();\n }",
"public final Shape translate(Vector displacement) {\n\t\treturn transform(new Translation(displacement));\n\t}",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public Object transform(Object input) {\n if (input == null) {\n return null;\n }\n try {\n return FactoryUtils.prototypeFactory(input).create();\n\n } catch (IllegalArgumentException ex) {\n throw new TransformerException(\"CloneTransformer\", ex);\n } catch (FactoryException ex) {\n throw new TransformerException(\"CloneTransformer\", ex);\n }\n }",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"public Piece rotate() {\n\t\tif (!isRotatable) {\n\t\t\treturn this;\n\t\t}\n\t\tint m = shape.length;\n\t\tint n = shape[0].length;\n\t\tint[][] newPiece = new int[n][m];\n\t\tfor (int r = 0; r < m; r++) {\n\t for (int c = 0; c < n; c++) {\n\t newPiece[c][m-1-r] = shape[r][c];\n\t }\n\t\t}\n\t\treturn new Piece(value, name, newPiece, isFlippable, isRotatable);\n\t}",
"public Shape getShape() { return shape; }",
"public godot.wire.Wire.Transform.Builder getTransformValueBuilder() {\n return getTransformValueFieldBuilder().getBuilder();\n }",
"public Matrix4 getTransformMatrix() {\n return transformMatrix;\n }",
"public void setTransform(Transform transform);",
"public interface Transformer {\n\t/**\n\t * Transform a source object dynamically.\n\t * \n\t * This iteratively calls {@link #transform(Object, Class) transform}\n\t * \n\t * @param <S>\n\t * the source type.\n\t * @param <T>\n\t * the target type.\n\t * @param source\n\t * The source object.\n\t * @return The target object or <em>null</em> if no applicable rule has been\n\t * found.\n\t * @see #getTransformationRules()\n\t */\n\tpublic <S, T> T transform(S source);\n\n\t/**\n\t * Transform a source object using a specific type of rule.\n\t * \n\t * @param <S>\n\t * the source type.\n\t * @param <T>\n\t * the target type.\n\t * @param source\n\t * The source object.\n\t * @param with\n\t * The type of rule to be used.\n\t * @return The target object or <em>null</em> if no applicable rule has been\n\t * found.\n\t */\n\tpublic <S, T> T transform(S source, Class<? extends Rule<S, T>> with);\n\n\t/**\n\t * Get the list of rule definitions related to this transformation instance.\n\t * \n\t * @return An ordered collection of transformation rule definitions.\n\t */\n\tpublic Set<Class<? extends Rule<?, ?>>> getTransformationRules();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic Context getContext();\n}",
"public Geometry transformGeometry(Geometry originalGeometry)\r\n\t\t\tthrows TransformException {\r\n\t\treturn coordinateTransformer.transform(originalGeometry);\r\n\t}",
"@Override\n\t\tpublic GLGroupTransform transforms() { return transforms; }",
"@Override\n\tpublic GAffineTransform getTransform(GeoConicND conic, Coords M,\n\t\t\tCoords[] ev) {\n\t\ttransform.setTransform(ev[0].getX(), ev[0].getY(), ev[1].getX(),\n\t\t\t\tev[1].getY(), M.getX(), M.getY());\n\n\t\treturn transform;\n\t}",
"IShape getCurrentShape();",
"public AffineTransform getOldAffineTransform ( )\n {\n return oldAffineTransformation;\n }",
"public RMSize convertVectorFromShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformFromShape(shape).transformVector(size);\n}",
"public GJEllipseShape2D transform(GJAffineTransform2D trans);",
"public T transform(T item) {\n T result = item;\n for (SimpleTransformation<T> transformation : transformations) {\n result = transformation.transform(result);\n }\n\n return result;\n }",
"public Transform apply(Transform transform) {\n\n setPosition(transform.getTransformedPosition());\n setRotation(transform.getTransformedRotation());\n setScale(transform.getScale());\n\n return this;\n }",
"public Shape getShape();",
"public interface Transformation {\n Bitmap transform(Bitmap var1);\n\n String key();\n}",
"public interface Transform<INPUT, OUTPUT> {\n\n\tOUTPUT transform(INPUT input);\n\t\n}",
"public RMSize convertVectorToShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformToShape(shape).transformVector(size);\n}",
"public interface LinopTransform extends Transform {\r\n public double[][] getMat();\r\n}",
"public RMRect convertRectToShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(getX(), getY()); return rect; }\n return getTransformToShape(shape).transform(rect);\n}",
"public abstract Shape getCopy();",
"public godot.wire.Wire.Transform2D.Builder getTransform2DValueBuilder() {\n return getTransform2DValueFieldBuilder().getBuilder();\n }",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"public Shape getShape() {\n return shape;\n }",
"godot.wire.Wire.Transform2DOrBuilder getTransform2DValueOrBuilder();",
"public String getTransformType();",
"public static Tree QPtransform(Tree t) {\n doTransform(t);\n return t;\n }",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public final Shape getRotated(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().rotate(fromPoint, toPoint, anchorPoint);\n\t}",
"public RMRect convertRectFromShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(-getX(), -getY()); return rect; }\n return getTransformFromShape(shape).transform(rect);\n}",
"@Override\n\tpublic Mat GetTranslateMatrix()\n\t{\n\t\treturn mT;\n\t}"
] |
[
"0.7281638",
"0.7053799",
"0.69505",
"0.6670526",
"0.66214824",
"0.649244",
"0.6337403",
"0.6251607",
"0.62051934",
"0.6183372",
"0.6168953",
"0.61573875",
"0.6094364",
"0.6056182",
"0.6054764",
"0.59056705",
"0.58667827",
"0.58382547",
"0.5823564",
"0.57988316",
"0.5752849",
"0.5752166",
"0.57467043",
"0.5667008",
"0.5654492",
"0.5651111",
"0.5619466",
"0.558977",
"0.55366033",
"0.5498103",
"0.54799676",
"0.54636383",
"0.54576075",
"0.54359245",
"0.54287803",
"0.5427838",
"0.541469",
"0.54120076",
"0.5408958",
"0.5399604",
"0.5389485",
"0.5376281",
"0.53565705",
"0.53467137",
"0.528205",
"0.5276083",
"0.5248129",
"0.52292085",
"0.5226409",
"0.5226222",
"0.52027327",
"0.51869756",
"0.5157853",
"0.51329297",
"0.5132909",
"0.5130021",
"0.5121664",
"0.511784",
"0.5115997",
"0.51028657",
"0.5086347",
"0.5076259",
"0.50673527",
"0.5063125",
"0.50606096",
"0.5052498",
"0.50477636",
"0.504601",
"0.50448835",
"0.50400937",
"0.50396234",
"0.503696",
"0.5025194",
"0.50224715",
"0.5021086",
"0.5001967",
"0.49744004",
"0.49704772",
"0.49614584",
"0.4949588",
"0.49404326",
"0.49262786",
"0.49180406",
"0.49166107",
"0.49027398",
"0.48980272",
"0.48761037",
"0.48663396",
"0.4861658",
"0.4858266",
"0.48539677",
"0.4847546",
"0.48475182",
"0.48374364",
"0.4824165",
"0.47952724",
"0.47778565",
"0.47685647",
"0.47650242",
"0.47570863"
] |
0.71591437
|
1
|
Converts the given point to the given shape's coords (returns it for convenience).
|
public RMPoint convertPointToShape(RMPoint point, RMShape shape)
{
if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }
return getTransformToShape(shape).transform(point);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}",
"public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}",
"private ECPoint convertECPoint(java.security.spec.ECPoint point) {\n return domainParams.getCurve().createPoint(point.getAffineX(), point.getAffineY());\n }",
"public Point location( Solid shape ) {\n Double ex = x;\n Double wy = y;\n Double ze = z;\n\n Double lastWidth = 0.0;\n\n for ( Thing item : thingsOnThis) {\n ex = Math.max( ex, item.point.x() );\n wy = Math.max( wy, item.point.y() );\n ze = Math.max( ze, item.point.z() );\n\n lastWidth = item.solid.width();\n }\n Thing thing = new Thing();\n thing.point = new Point( x, wy + lastWidth, z + height );\n thing.solid = shape;\n\n thingsOnThis.add( thing );\n\n return thing.point;\n }",
"public abstract Point location( Solid shape ) throws DataException, FeatureException, InvalidXMLException,\n LocationException, MountingException, ReferenceException\n ;",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public Point2D getLocation();",
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"public DecimalPosition getNearestPoint(DecimalPosition point) {\n // Fist check end point\n int endXCorrection = width() > 0 ? 1 : 0;\n int endYCorrection = height() > 0 ? 1 : 0;\n\n if (point.getX() <= start.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(start.copy());\n } else if (point.getX() >= end.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(end.sub(endXCorrection, endYCorrection));\n } else if (point.getX() <= start.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(start.getX(), end.getY() - endYCorrection);\n } else if (point.getX() >= end.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(end.getX() - endXCorrection, start.getY());\n }\n\n // Do projection\n if (point.getX() <= start.getX()) {\n return new DecimalPosition(start.getX(), point.getY());\n } else if (point.getX() >= end.getX()) {\n return new DecimalPosition(end.getX() - endXCorrection, point.getY());\n } else if (point.getY() <= start.getY()) {\n return new DecimalPosition(point.getX(), start.getY());\n } else if (point.getY() >= end.getY()) {\n return new DecimalPosition(point.getX(), end.getY() - endYCorrection);\n }\n\n throw new IllegalArgumentException(\"The point is inside the rectangle. Point: \" + point + \" rectangel: \" + this);\n }",
"public GuiPoint coordinateToGui(Vector2f point) {\r\n\t\tint coordX = (int) Math.round(point.getX() * zoomFactor);\r\n\t\tint coordY = (int) Math.round(point.getY() * zoomFactor);\r\n\r\n\t\tint guiX = coordX + origin.x;\r\n\t\tint guiY = coordY + origin.y;\r\n\t\tGuiPoint pos = new GuiPoint(guiX, guiY);\r\n\r\n\t\treturn pos;\r\n\t}",
"public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }",
"public Tuple2d getProjectedPoint(final Tuple3d point) {\n return new Tuple2d(TupleMath.dot(point, this.projectionX), TupleMath.dot(point, this.projectionY));\n }",
"public Vector2df guiToCoordinate(GuiPoint point) {\r\n\t\tint guiX = point.x;\r\n\t\tint guiY = point.y;\r\n\t\tfloat zoom = 1.0f / zoomFactor;\r\n\t\tint coordX = Math.round((guiX - origin.x) * zoom);\r\n\t\tint coordY = Math.round((guiY - origin.y) * zoom);\r\n\t\tVector2df pos = new Vector2df(coordX, coordY);\r\n\t\treturn pos;\r\n\t}",
"public X location(Point p) {\n component.setLocation(p);\n return (X) this;\n }",
"public Coords bound(final Coords point)\r\n {\r\n int xx = point.getX();\r\n int yy = point.getY();\r\n if(xx < x)\r\n {\r\n xx = x;\r\n }\r\n if(xx > x + width)\r\n {\r\n xx = x + width;\r\n }\r\n if(yy < y)\r\n {\r\n yy = y;\r\n }\r\n if(yy > y + height)\r\n {\r\n yy = y + height;\r\n }\r\n return new Coords(xx, yy);\r\n }",
"public abstract Point2D getPosition();",
"public static double[] getPointFromGeom(String pointString){\n\t\tString sub = pointString.substring(6, pointString.length()-1);\n\t\tString[] split = sub.split(\" \");\n\t\tdouble[] point = new double[2];\n\t\tpoint[0] = Double.parseDouble(split[0]);\n\t\tpoint[1] = Double.parseDouble(split[1]);\n\t\treturn point;\n\t}",
"public native GLatLng getPoint(GInfoWindow self)/*-{\r\n\t\treturn self.getPoint();\r\n\t}-*/;",
"public Point getPoint() {\n return point;\n }",
"protected IPoint scalePointIntoPixels(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() * getPixelsPerX();\n\t\tdouble newY = point.getY() * getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"public Point3 getPoint(int pointNr);",
"public Point getPoint(final Point otherPoint)\n\t\t{\n\n\t\t\t//to get the edge point on the shape\n\t\t\tif(shape.equals(\"poly\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn getCentrePoint();\n\n\t\t\tfinal Point cp = getCentrePoint();\n\t\t\tfinal int rise = otherPoint.y-cp.y;\n\t\t\tfinal int run = otherPoint.x-cp.x;\n\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tif(rise == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.x >= cp.x)\n\t\t\t\t\t\treturn new Point(coords[0]+coords[2]+4,coords[1]+(coords[3]/2));\n\t\t\t\t\treturn new Point(coords[0]-2,coords[1]+(coords[3]/2));\n\t\t\t\t}\n\t\t\t\telse if(run == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.y >= cp.y)\n\t\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]+coords[3]+4);\n\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]-2);\n\t\t\t\t}else\n\t\t\t\t{\n\n\t\t\t\t\tfinal double m = (double)rise / (double)run;\n\t\t\t\t\tfinal double mx = (double)run / (double)rise;\n\n\t\t\t\t\tif(otherPoint.x >= cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\n\t\t\t\t\t}else if(otherPoint.x < cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else if(otherPoint.x < cp.x)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}else if(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tif(rise != 0 && run != 0)\n\t\t\t\t{\n\t\t\t\t\tfinal double ratio = (coords[2] / Math.sqrt(rise*rise+run*run));\n\n\t\t\t\t\treturn new Point(cp.x+(int)(run*ratio),cp.y+(int)(rise*ratio));\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif(rise == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(run > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x+coords[2],cp.y);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x-coords[2],cp.y);\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(rise > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y+coords[2]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y-coords[2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t\t//return cp;\n\t\t}",
"private static final int[] getPoint(int point) {\n int[] ret = new int[2];\n if (point >= firstPoint && point <= endPoint) {\n ret = getPoint(ruteData[point + 2]);//ruteData[point + 2]);\n }\n return ret;\n }",
"public Point getLocation();",
"public Point getPoint()\n\t{\n\t\treturn point;\n\t}",
"public double getPoint() {\r\n return point;\r\n }",
"public double getPoint() {\r\n return point;\r\n }",
"public Point getPoint(){\n\t\treturn _point;\n\t}",
"public Point scaleToGraphCanvasCoords(int x, int y);",
"public Point scaleToGraphCanvasCoords(double x, double y);",
"public Point2D.Double fromOriginal(Point2D point){\n return new Point2D.Double(\n point.getX() * scale + offsetX,\n point.getY() * scale + offsetY);\n }",
"public Point getCoordinate() {\n return this.coordinate;\n }",
"@SuppressWarnings(\"unchecked\")\n public AnimatorType position(PointF point)\n {\n addTransformer(new PositionTransformer(getShape(), point));\n return (AnimatorType) this;\n }",
"@Override\r\n\tpublic Point getPoint(String pointRecord) {\r\n\r\n\t\ttry {\r\n\t\t\tString fieldSeparator = \" \";\r\n\r\n\t\t\t// parse data from vector\r\n\t\t\tStringTokenizer st = new StringTokenizer(pointRecord);\r\n\t\t\tPoint point = new Point();\r\n\t\t\tString[] data = new String[5];\r\n\t\t\tint i = 0;\r\n\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\tdata[i] = st.nextToken(fieldSeparator);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t// set point data\r\n\t\t\tpoint.setName(data[0]);\r\n\t\t\tpoint.setFirstCoordinate(Integer.parseInt(data[1]));\r\n\t\t\tpoint.setSecondCoordinate(Integer.parseInt(data[2]));\r\n\t\t\tpoint.setThirdCoordinate(Integer.parseInt(data[3]));\r\n\t\t\tpoint.setFourthCoordinate(Integer.parseInt(data[4]));\r\n\r\n\t\t\treturn point;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Invalid record : \" + pointRecord + \" . This record will be ignored.\");\r\n\t\t\tLogger.getLogger().severe(\"Invalid record : \" + pointRecord + \" . This record will be ignored.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Point getXY()\n\t{\n\t\tPoint newPoint = new Point(x,y);\t\t\t\t\t\t// Create new Point object \n\t\treturn newPoint; \t\t\t\t\t\t\t\t\t\t// Return point's x and y coordinates\n\t}",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"Point getPosition();",
"Point getPosition();",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"static int readPointF(LittleEndianInputStream leis, Point2D point) {\n double x = leis.readFloat();\n double y = leis.readFloat();\n point.setLocation(x,y);\n return 2*LittleEndianConsts.INT_SIZE;\n }",
"public KDPoint getPoint() {\n\t\treturn new KDPoint(this.loc.lat,this.loc.lng,0.0);\n\t}",
"public Tuple3d getClosestPoint(final Tuple3d point) {\n // A' = A - (A . n) * n\n final Vector3d aprime = new Vector3d(point);\n final double adotn = TupleMath.dot(point, this.normal);\n final Vector3d scaledNormal = new Vector3d(this.normal);\n scaledNormal.scale(adotn);\n aprime.subtract(scaledNormal);\n\n return aprime;\n }",
"Point createPoint();",
"public Position2D get2DPoint(Position3D point3D) {\r\n\t\tif(this.onPlane(point3D)) {\r\n\t\t\t\r\n\t\t\tVector3D dirOfPoint = this.pos.getDirection(point3D);\r\n\t\t\tVector3D xDir = this.vecX.proj(dirOfPoint);\r\n\t\t\tVector3D yDir = this.vecY.proj(dirOfPoint);\r\n\t\t\t\r\n\t\t\tPosition2D point2D = new Position2D();\r\n\t\t\t\r\n\t\t\tif (xDir.dot(this.vecX) > 0) {\r\n\t\t\t\tpoint2D.setX(xDir.getLength());\r\n\t\t\t} else {\r\n\t\t\t\tpoint2D.setX(-xDir.getLength());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (yDir.dot(this.vecY) > 0) {\r\n\t\t\t\tpoint2D.setY(yDir.getLength());\r\n\t\t\t} else {\r\n\t\t\t\tpoint2D.setY(-yDir.getLength());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn point2D;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Point getPoint() {\n return this.mPoint;\n }",
"public Point getPosition();",
"Optional<Point> getCoordinate(int id);",
"public Point3D getPoint() {\r\n\t\treturn point;\r\n\t}",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"public Vec4 expectPoint() {\n if(!isPoint()) throw new IllegalArgumentException(\"expected point: \" + this);\n return this;\n }",
"@Override\n public Location getLocation(MapPoint point) {\n if (point == null) return null;\n\n World world = worlds.get(point.getWorld());\n\n float yaw = point.getYaw();\n float pitch = point.getPitch();\n\n //Account for the fact that NaN yaw/pitch indicate that they shouldn't be changed / are not present\n if (Float.isNaN(yaw)) yaw = 0;\n if (Float.isNaN(pitch)) pitch = 0;\n\n return new Location(world, point.getX(), point.getY(), point.getZ(), yaw, pitch);\n }",
"public DecimalPosition getNearestPointInclusive(DecimalPosition point) {\n if (point.getX() <= start.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(start.copy());\n } else if (point.getX() >= end.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(end.copy());\n } else if (point.getX() <= start.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(start.getX(), end.getY());\n } else if (point.getX() >= end.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(end.getX(), start.getY());\n }\n\n // Do projection\n if (point.getX() <= start.getX()) {\n return new DecimalPosition(start.getX(), point.getY());\n } else if (point.getX() >= end.getX()) {\n return new DecimalPosition(end.getX(), point.getY());\n } else if (point.getY() <= start.getY()) {\n return new DecimalPosition(point.getX(), start.getY());\n } else if (point.getY() >= end.getY()) {\n return new DecimalPosition(point.getX(), end.getY());\n }\n\n throw new IllegalArgumentException(\"The point is inside the rectangle\");\n }",
"public SoPickedPoint(final SoPath _path, final SoState _state,\n final SbVec3f objSpacePoint)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int i, n;\n\n // Make a copy of the path since it most likely comes from the\n // current traversal path in an action, which will be changed soon.\n path = _path.copy();\n path.ref();\n\n // Save state so we can get matrices when we need them later\n state = _state;\n\n // Transform the object space point by the current modeling matrix\n // to get the world space point\n SoModelMatrixElement.get(state).multVecMatrix(objSpacePoint, worldPoint);\n\n // Make room in the detail list for one detail per node in the\n // path. Set all the detail pointers to NULL.\n n = ( SoFullPath.cast(path)).getLength();\n details.set(n - 1, null); // Allocates space\n for (i = n - 2; i >= 0; --i)\n details.set(i, null);\n\n // Initialize material index to 0, the most common value\n materialIndex = 0;\n\n // Set on-geometry flag based on current pick style\n onGeometry = (SoPickStyleElement.get(state) !=\n SoPickStyleElement.Style.BOUNDING_BOX);\n\n // Save the viewportRegion, we'll need it later:\n vpRegion.copyFrom(SoViewportRegionElement.get(state));\n}",
"public Point2D(Point2D point){\n \n //on peut faire point.x et point.y puisqu'on est dans la classe\n this.x = point.x;\n this.y = point.y;\n }",
"public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }",
"public static Point2D.Double getCenter(Shape shape) {\n\t\tRectangle bounds = shape.getBounds();\n\t\tdouble x = bounds.getX() + bounds.getWidth()/2;\n\t\tdouble y = bounds.getY() + bounds.getHeight()/2;\n\t\treturn new Point2D.Double(x,y);\n\t}",
"public Drawable getPoint(final PointData data, final Shape shape) {\n\t\t\treturn new AbstractDrawable() {\n\t\t\t\t/** Version id for serialization. */\n\t\t\t\tprivate static final long serialVersionUID = -1136689797647794969L;\n\n\t\t\t\tpublic void draw(DrawingContext context) {\n\t\t\t\t\tRasterRenderer renderer = RasterRenderer.this;\n\n\t\t\t\t\tAxis axisX = data.axes.get(0);\n\t\t\t\t\tAxis axisY = data.axes.get(1);\n\t\t\t\t\tAxisRenderer axisXRenderer = data.axisRenderers.get(0);\n\t\t\t\t\tAxisRenderer axisYRenderer = data.axisRenderers.get(1);\n\t\t\t\t\tRow row = data.row;\n\n\t\t\t\t\tint colX = renderer.getXColumn();\n\t\t\t\t\tif (colX < 0 || colX >= row.size() || !row.isColumnNumeric(colX)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint colY = renderer.getYColumn();\n\t\t\t\t\tif (colY < 0 || colY >= row.size() || !row.isColumnNumeric(colY)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint colValue = renderer.getValueColumn();\n\t\t\t\t\tif (colValue < 0 || colValue >= row.size() || !row.isColumnNumeric(colValue)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tdouble valueX = ((Number) row.get(colX)).doubleValue();\n\t\t\t\t\tdouble valueY = ((Number) row.get(colY)).doubleValue();\n\t\t\t\t\tNumber value = (Number) row.get(colValue);\n\n\t\t\t\t\t// Pixel dimensions\n\t\t\t\t\tdouble xMin = axisXRenderer\n\t\t\t\t\t\t.getPosition(axisX, valueX - 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.X);\n\t\t\t\t\tdouble xMax = axisXRenderer\n\t\t\t\t\t\t.getPosition(axisX, valueX + 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.X);\n\t\t\t\t\tdouble width = Math.abs(xMax - xMin) + 1.0;\n\t\t\t\t\tdouble yMin = axisYRenderer\n\t\t\t\t\t\t.getPosition(axisY, valueY - 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.Y);\n\t\t\t\t\tdouble yMax = axisYRenderer\n\t\t\t\t\t\t.getPosition(axisY, valueY + 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.Y);\n\t\t\t\t\tdouble height = Math.abs(yMax - yMin) + 1.0;\n\n\t\t\t\t\t// Create shape for pixel\n\t\t\t\t\t// The origin of all shapes is (boxX, boxY)\n\t\t\t\t\tRectangle2D shapeBounds = shape.getBounds2D();\n\t\t\t\t\tAffineTransform tx = new AffineTransform();\n\t\t\t\t\ttx.scale(width/shapeBounds.getWidth(), height/shapeBounds.getHeight());\n\t\t\t\t\ttx.translate(-shapeBounds.getMinX(), -shapeBounds.getMinY());\n\t\t\t\t\tShape pixel = tx.createTransformedShape(shape);\n\n\t\t\t\t\t// Paint pixel\n\t\t\t\t\tGraphics2D graphics = context.getGraphics();\n\t\t\t\t\tColorMapper colorMapper = plot.getColors();\n\t\t\t\t\tPaint paint;\n\t\t\t\t\tif (colorMapper instanceof ContinuousColorMapper) {\n\t\t\t\t\t\tpaint = ((ContinuousColorMapper) colorMapper)\n\t\t\t\t\t\t\t.get(value.doubleValue());\n\t\t\t\t\t} else if (colorMapper != null) {\n\t\t\t\t\t\tInteger index = value.intValue();\n\t\t\t\t\t\tpaint = colorMapper.get(index);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpaint = Color.BLACK;\n\t\t\t\t\t}\n\t\t\t\t\tGraphicsUtils.fillPaintedShape(\n\t\t\t\t\t\tgraphics, pixel, paint, pixel.getBounds2D());\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public Integer getPoint() {\n return point;\n }",
"private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}",
"public Point toOuterPoint(Point punto){\r\n \treturn punto.add(coord);\r\n// return new Point(punto.getRow() + coord.getRow(), punto.getCol() + coord.getCol());\r\n }",
"public Point2D userToDeviceSpace(\n Point2D point\n )\n {return ctm.transform(point, null);}",
"public T setPoint(@NonNull PointF point) {\n return setPoint(point.x, point.y);\n }",
"public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }",
"@Override\n public double getScale(LatLonPoint point) {\n return 1 / Math.cos(Math.toRadians(point.getLat()));\n }",
"public PointInSpace getPointInSpace() {\n return point;\n }",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"private P clonePoint(P point)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// clone\n\t\t\treturn (P) point.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}",
"public void setXY(Point2D aPoint) { setXY(aPoint.getX(), aPoint.getY()); }",
"@PropertyMapped\n\tpublic int getPoint() {\n\t\treturn point;\t\t\n\t}",
"@Override\r\n\t\tpublic Geom_element getGeom() {\n\t\t\treturn this.point;\r\n\t\t}",
"@Pure\n\tPT getGraphPoint();",
"public double getCoord(int index) {\n\t\treturn point[index];\n\t}",
"public GeoPoint(Geometry geometry, Point3D point) {\n\tsuper();\n\tthis.geometry = geometry;\n\tthis.point = point;\n}",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public static GeoPoint convertToPoint(Double lat, Double lon) {\n Double latitude = lat * 1E6;\n Double longitude = lon * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public static ECPoint compressPoint(ECPoint point) {\n return getPointWithCompression(point, true);\n }",
"public Coordinate getLocation();",
"public Point getCarLocation() {\r\n\r\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n builder.setTables(FTS_VIRTUAL_TABLE_CAR);\r\n builder.setProjectionMap(mColumnMapCar);\r\n\r\n Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(),\r\n null, null, null, null, null, null);\r\n\r\n if (cursor == null) {\r\n return null;\r\n } else if (!cursor.moveToFirst()) {\r\n cursor.close();\r\n return null;\r\n }\r\n\r\n String point_str = cursor.getString(1);\r\n\r\n point_str = point_str.trim();\r\n String[] coordinates = point_str.split(\",\");\r\n String lon = coordinates[0];\r\n String lat = coordinates[1];\r\n\r\n double flon = Float.valueOf(lon);\r\n double flat = Float.valueOf(lat);\r\n\r\n return (new Point(flon, flat));\r\n }",
"static public PointGeo rad2deg(IPointGeo aPoint) {\n\t\treturn new PointGeo(Math.toDegrees(aPoint.getLatitude()),\n\t\t\t\tMath.toDegrees(aPoint.getLongitude()),aPoint.getAltitude());\n\t}",
"public static GeoPoint convertToPoint(Location loc) {\n Double latitude = loc.getLatitude() * 1E6;\n Double longitude = loc.getLongitude() * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public Point getLocation() {\r\n\t\tint[] p = value.getIntArray();\r\n\t\tif (p.length < 2) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Location parameters must contain at least 2 values\");\r\n\t\t}\r\n\t\treturn (new Point(p[0], p[1]));\r\n\t}",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public java.awt.geom.Point2D.Double transformedPoint(double x, double y)\n {\n double[] position = {x,y}; \n getGraphicsState().getCurrentTransformationMatrix().createAffineTransform().transform(position, 0, position, 0, 1);\n position[1] = fixY(position[1]);\n\n\t_pageAffineTransform.transform(position,0, position, 0, 1);\n return new Point2D.Double(position[0],position[1]);\n }",
"public void setLocation(Point2D p);",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"public Point2D.Double toOriginal(Point2D point){\n return new Point2D.Double(\n (point.getX() - offsetX) / scale,\n (point.getY() - offsetY) / scale);\n }",
"public Point3D getLocation() {\n\t\treturn p;\n\t}",
"public TextureCoord2D texFor (final Point3 point) {\n\n if (point == null)throw new IllegalArgumentException(\"The Point cannot be null!\");\n\n\n double teta = Math.acos(point.y);\n double phi = Math.atan2(point.x, point.z);\n\n return new TextureCoord2D(phi / (Math.PI*2), -teta/Math.PI);\n }",
"Shape getShape();",
"public abstract void setPoint(Point p);",
"Point getPointByNodeId(Integer nodeId);",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n PointF scaled = new PointF();\n scaled.x = -1000F + (point.x / previewSize.getWidth()) * 2000F;\n scaled.y = -1000F + (point.y / previewSize.getHeight()) * 2000F;\n\n // Apply rotation to this point.\n // https://academo.org/demos/rotation-about-point/\n PointF rotated = new PointF();\n double theta = ((double) displayToSensor) * Math.PI / 180;\n rotated.x = (float) (scaled.x * Math.cos(theta) - scaled.y * Math.sin(theta));\n rotated.y = (float) (scaled.x * Math.sin(theta) + scaled.y * Math.cos(theta));\n LOG.i(\"scaled:\", scaled, \"rotated:\", rotated);\n return rotated;\n }",
"void getPosRelPoint(double px, double py, double pz, DVector3 result);",
"public RMPoint getXY() { return new RMPoint(getX(), getY()); }",
"public Object getObjectAtLocation(Point p);",
"static public PointGeo deg2rad(IPointGeo aPoint) {\n\t\treturn new PointGeo(Math.toRadians(aPoint.getLatitude()),\n\t\t\t\tMath.toRadians(aPoint.getLongitude()),aPoint.getAltitude());\n\t}"
] |
[
"0.6882076",
"0.65991956",
"0.6375329",
"0.63374734",
"0.61320853",
"0.612618",
"0.60554564",
"0.6004448",
"0.59098476",
"0.580422",
"0.57247233",
"0.56704265",
"0.5659635",
"0.5657872",
"0.5627257",
"0.5623043",
"0.5531871",
"0.548892",
"0.5483474",
"0.5474662",
"0.5470546",
"0.544999",
"0.5428292",
"0.54254246",
"0.54100865",
"0.539874",
"0.5396577",
"0.5391931",
"0.5385871",
"0.5383959",
"0.5383959",
"0.5379489",
"0.536204",
"0.535833",
"0.535573",
"0.5355346",
"0.53548735",
"0.53545517",
"0.5345715",
"0.533641",
"0.530793",
"0.530793",
"0.53052753",
"0.52877015",
"0.5272552",
"0.5265064",
"0.5264074",
"0.52511024",
"0.52451885",
"0.52339184",
"0.5232274",
"0.5231268",
"0.5205709",
"0.5205632",
"0.51907253",
"0.51859826",
"0.5180351",
"0.5174488",
"0.51733327",
"0.5172658",
"0.51721853",
"0.5166013",
"0.5157949",
"0.513986",
"0.5136089",
"0.51336837",
"0.5133435",
"0.51244164",
"0.5123725",
"0.5107729",
"0.5102159",
"0.50945204",
"0.50929356",
"0.5080601",
"0.5072006",
"0.50689185",
"0.5068202",
"0.5066483",
"0.50590295",
"0.50498897",
"0.504798",
"0.5046793",
"0.50467265",
"0.50230956",
"0.5019555",
"0.5003434",
"0.500331",
"0.4990978",
"0.49874565",
"0.49822953",
"0.49703184",
"0.49656826",
"0.495532",
"0.49467155",
"0.494454",
"0.49410203",
"0.49364582",
"0.49355716",
"0.49307635",
"0.49285555"
] |
0.65618527
|
2
|
Converts the given point to the given shape's coords (returns it for convenience).
|
public RMPoint convertPointFromShape(RMPoint point, RMShape shape)
{
if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }
return getTransformFromShape(shape).transform(point);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}",
"public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}",
"private ECPoint convertECPoint(java.security.spec.ECPoint point) {\n return domainParams.getCurve().createPoint(point.getAffineX(), point.getAffineY());\n }",
"public Point location( Solid shape ) {\n Double ex = x;\n Double wy = y;\n Double ze = z;\n\n Double lastWidth = 0.0;\n\n for ( Thing item : thingsOnThis) {\n ex = Math.max( ex, item.point.x() );\n wy = Math.max( wy, item.point.y() );\n ze = Math.max( ze, item.point.z() );\n\n lastWidth = item.solid.width();\n }\n Thing thing = new Thing();\n thing.point = new Point( x, wy + lastWidth, z + height );\n thing.solid = shape;\n\n thingsOnThis.add( thing );\n\n return thing.point;\n }",
"public abstract Point location( Solid shape ) throws DataException, FeatureException, InvalidXMLException,\n LocationException, MountingException, ReferenceException\n ;",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public Point2D getLocation();",
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"public DecimalPosition getNearestPoint(DecimalPosition point) {\n // Fist check end point\n int endXCorrection = width() > 0 ? 1 : 0;\n int endYCorrection = height() > 0 ? 1 : 0;\n\n if (point.getX() <= start.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(start.copy());\n } else if (point.getX() >= end.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(end.sub(endXCorrection, endYCorrection));\n } else if (point.getX() <= start.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(start.getX(), end.getY() - endYCorrection);\n } else if (point.getX() >= end.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(end.getX() - endXCorrection, start.getY());\n }\n\n // Do projection\n if (point.getX() <= start.getX()) {\n return new DecimalPosition(start.getX(), point.getY());\n } else if (point.getX() >= end.getX()) {\n return new DecimalPosition(end.getX() - endXCorrection, point.getY());\n } else if (point.getY() <= start.getY()) {\n return new DecimalPosition(point.getX(), start.getY());\n } else if (point.getY() >= end.getY()) {\n return new DecimalPosition(point.getX(), end.getY() - endYCorrection);\n }\n\n throw new IllegalArgumentException(\"The point is inside the rectangle. Point: \" + point + \" rectangel: \" + this);\n }",
"public GuiPoint coordinateToGui(Vector2f point) {\r\n\t\tint coordX = (int) Math.round(point.getX() * zoomFactor);\r\n\t\tint coordY = (int) Math.round(point.getY() * zoomFactor);\r\n\r\n\t\tint guiX = coordX + origin.x;\r\n\t\tint guiY = coordY + origin.y;\r\n\t\tGuiPoint pos = new GuiPoint(guiX, guiY);\r\n\r\n\t\treturn pos;\r\n\t}",
"public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }",
"public Tuple2d getProjectedPoint(final Tuple3d point) {\n return new Tuple2d(TupleMath.dot(point, this.projectionX), TupleMath.dot(point, this.projectionY));\n }",
"public Vector2df guiToCoordinate(GuiPoint point) {\r\n\t\tint guiX = point.x;\r\n\t\tint guiY = point.y;\r\n\t\tfloat zoom = 1.0f / zoomFactor;\r\n\t\tint coordX = Math.round((guiX - origin.x) * zoom);\r\n\t\tint coordY = Math.round((guiY - origin.y) * zoom);\r\n\t\tVector2df pos = new Vector2df(coordX, coordY);\r\n\t\treturn pos;\r\n\t}",
"public X location(Point p) {\n component.setLocation(p);\n return (X) this;\n }",
"public Coords bound(final Coords point)\r\n {\r\n int xx = point.getX();\r\n int yy = point.getY();\r\n if(xx < x)\r\n {\r\n xx = x;\r\n }\r\n if(xx > x + width)\r\n {\r\n xx = x + width;\r\n }\r\n if(yy < y)\r\n {\r\n yy = y;\r\n }\r\n if(yy > y + height)\r\n {\r\n yy = y + height;\r\n }\r\n return new Coords(xx, yy);\r\n }",
"public abstract Point2D getPosition();",
"public static double[] getPointFromGeom(String pointString){\n\t\tString sub = pointString.substring(6, pointString.length()-1);\n\t\tString[] split = sub.split(\" \");\n\t\tdouble[] point = new double[2];\n\t\tpoint[0] = Double.parseDouble(split[0]);\n\t\tpoint[1] = Double.parseDouble(split[1]);\n\t\treturn point;\n\t}",
"public native GLatLng getPoint(GInfoWindow self)/*-{\r\n\t\treturn self.getPoint();\r\n\t}-*/;",
"public Point getPoint() {\n return point;\n }",
"protected IPoint scalePointIntoPixels(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() * getPixelsPerX();\n\t\tdouble newY = point.getY() * getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"public Point3 getPoint(int pointNr);",
"public Point getPoint(final Point otherPoint)\n\t\t{\n\n\t\t\t//to get the edge point on the shape\n\t\t\tif(shape.equals(\"poly\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn getCentrePoint();\n\n\t\t\tfinal Point cp = getCentrePoint();\n\t\t\tfinal int rise = otherPoint.y-cp.y;\n\t\t\tfinal int run = otherPoint.x-cp.x;\n\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tif(rise == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.x >= cp.x)\n\t\t\t\t\t\treturn new Point(coords[0]+coords[2]+4,coords[1]+(coords[3]/2));\n\t\t\t\t\treturn new Point(coords[0]-2,coords[1]+(coords[3]/2));\n\t\t\t\t}\n\t\t\t\telse if(run == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.y >= cp.y)\n\t\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]+coords[3]+4);\n\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]-2);\n\t\t\t\t}else\n\t\t\t\t{\n\n\t\t\t\t\tfinal double m = (double)rise / (double)run;\n\t\t\t\t\tfinal double mx = (double)run / (double)rise;\n\n\t\t\t\t\tif(otherPoint.x >= cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\n\t\t\t\t\t}else if(otherPoint.x < cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else if(otherPoint.x < cp.x)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}else if(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tif(rise != 0 && run != 0)\n\t\t\t\t{\n\t\t\t\t\tfinal double ratio = (coords[2] / Math.sqrt(rise*rise+run*run));\n\n\t\t\t\t\treturn new Point(cp.x+(int)(run*ratio),cp.y+(int)(rise*ratio));\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif(rise == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(run > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x+coords[2],cp.y);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x-coords[2],cp.y);\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(rise > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y+coords[2]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y-coords[2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t\t//return cp;\n\t\t}",
"private static final int[] getPoint(int point) {\n int[] ret = new int[2];\n if (point >= firstPoint && point <= endPoint) {\n ret = getPoint(ruteData[point + 2]);//ruteData[point + 2]);\n }\n return ret;\n }",
"public Point getLocation();",
"public Point getPoint()\n\t{\n\t\treturn point;\n\t}",
"public double getPoint() {\r\n return point;\r\n }",
"public double getPoint() {\r\n return point;\r\n }",
"public Point getPoint(){\n\t\treturn _point;\n\t}",
"public Point scaleToGraphCanvasCoords(int x, int y);",
"public Point scaleToGraphCanvasCoords(double x, double y);",
"public Point2D.Double fromOriginal(Point2D point){\n return new Point2D.Double(\n point.getX() * scale + offsetX,\n point.getY() * scale + offsetY);\n }",
"@SuppressWarnings(\"unchecked\")\n public AnimatorType position(PointF point)\n {\n addTransformer(new PositionTransformer(getShape(), point));\n return (AnimatorType) this;\n }",
"@Override\r\n\tpublic Point getPoint(String pointRecord) {\r\n\r\n\t\ttry {\r\n\t\t\tString fieldSeparator = \" \";\r\n\r\n\t\t\t// parse data from vector\r\n\t\t\tStringTokenizer st = new StringTokenizer(pointRecord);\r\n\t\t\tPoint point = new Point();\r\n\t\t\tString[] data = new String[5];\r\n\t\t\tint i = 0;\r\n\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\tdata[i] = st.nextToken(fieldSeparator);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t// set point data\r\n\t\t\tpoint.setName(data[0]);\r\n\t\t\tpoint.setFirstCoordinate(Integer.parseInt(data[1]));\r\n\t\t\tpoint.setSecondCoordinate(Integer.parseInt(data[2]));\r\n\t\t\tpoint.setThirdCoordinate(Integer.parseInt(data[3]));\r\n\t\t\tpoint.setFourthCoordinate(Integer.parseInt(data[4]));\r\n\r\n\t\t\treturn point;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Invalid record : \" + pointRecord + \" . This record will be ignored.\");\r\n\t\t\tLogger.getLogger().severe(\"Invalid record : \" + pointRecord + \" . This record will be ignored.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Point getCoordinate() {\n return this.coordinate;\n }",
"public Point getXY()\n\t{\n\t\tPoint newPoint = new Point(x,y);\t\t\t\t\t\t// Create new Point object \n\t\treturn newPoint; \t\t\t\t\t\t\t\t\t\t// Return point's x and y coordinates\n\t}",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"Point getPosition();",
"Point getPosition();",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"static int readPointF(LittleEndianInputStream leis, Point2D point) {\n double x = leis.readFloat();\n double y = leis.readFloat();\n point.setLocation(x,y);\n return 2*LittleEndianConsts.INT_SIZE;\n }",
"public KDPoint getPoint() {\n\t\treturn new KDPoint(this.loc.lat,this.loc.lng,0.0);\n\t}",
"public Tuple3d getClosestPoint(final Tuple3d point) {\n // A' = A - (A . n) * n\n final Vector3d aprime = new Vector3d(point);\n final double adotn = TupleMath.dot(point, this.normal);\n final Vector3d scaledNormal = new Vector3d(this.normal);\n scaledNormal.scale(adotn);\n aprime.subtract(scaledNormal);\n\n return aprime;\n }",
"Point createPoint();",
"public Position2D get2DPoint(Position3D point3D) {\r\n\t\tif(this.onPlane(point3D)) {\r\n\t\t\t\r\n\t\t\tVector3D dirOfPoint = this.pos.getDirection(point3D);\r\n\t\t\tVector3D xDir = this.vecX.proj(dirOfPoint);\r\n\t\t\tVector3D yDir = this.vecY.proj(dirOfPoint);\r\n\t\t\t\r\n\t\t\tPosition2D point2D = new Position2D();\r\n\t\t\t\r\n\t\t\tif (xDir.dot(this.vecX) > 0) {\r\n\t\t\t\tpoint2D.setX(xDir.getLength());\r\n\t\t\t} else {\r\n\t\t\t\tpoint2D.setX(-xDir.getLength());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (yDir.dot(this.vecY) > 0) {\r\n\t\t\t\tpoint2D.setY(yDir.getLength());\r\n\t\t\t} else {\r\n\t\t\t\tpoint2D.setY(-yDir.getLength());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn point2D;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Point getPoint() {\n return this.mPoint;\n }",
"public Point getPosition();",
"public Point3D getPoint() {\r\n\t\treturn point;\r\n\t}",
"Optional<Point> getCoordinate(int id);",
"public Vec4 expectPoint() {\n if(!isPoint()) throw new IllegalArgumentException(\"expected point: \" + this);\n return this;\n }",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"@Override\n public Location getLocation(MapPoint point) {\n if (point == null) return null;\n\n World world = worlds.get(point.getWorld());\n\n float yaw = point.getYaw();\n float pitch = point.getPitch();\n\n //Account for the fact that NaN yaw/pitch indicate that they shouldn't be changed / are not present\n if (Float.isNaN(yaw)) yaw = 0;\n if (Float.isNaN(pitch)) pitch = 0;\n\n return new Location(world, point.getX(), point.getY(), point.getZ(), yaw, pitch);\n }",
"public DecimalPosition getNearestPointInclusive(DecimalPosition point) {\n if (point.getX() <= start.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(start.copy());\n } else if (point.getX() >= end.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(end.copy());\n } else if (point.getX() <= start.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(start.getX(), end.getY());\n } else if (point.getX() >= end.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(end.getX(), start.getY());\n }\n\n // Do projection\n if (point.getX() <= start.getX()) {\n return new DecimalPosition(start.getX(), point.getY());\n } else if (point.getX() >= end.getX()) {\n return new DecimalPosition(end.getX(), point.getY());\n } else if (point.getY() <= start.getY()) {\n return new DecimalPosition(point.getX(), start.getY());\n } else if (point.getY() >= end.getY()) {\n return new DecimalPosition(point.getX(), end.getY());\n }\n\n throw new IllegalArgumentException(\"The point is inside the rectangle\");\n }",
"public SoPickedPoint(final SoPath _path, final SoState _state,\n final SbVec3f objSpacePoint)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int i, n;\n\n // Make a copy of the path since it most likely comes from the\n // current traversal path in an action, which will be changed soon.\n path = _path.copy();\n path.ref();\n\n // Save state so we can get matrices when we need them later\n state = _state;\n\n // Transform the object space point by the current modeling matrix\n // to get the world space point\n SoModelMatrixElement.get(state).multVecMatrix(objSpacePoint, worldPoint);\n\n // Make room in the detail list for one detail per node in the\n // path. Set all the detail pointers to NULL.\n n = ( SoFullPath.cast(path)).getLength();\n details.set(n - 1, null); // Allocates space\n for (i = n - 2; i >= 0; --i)\n details.set(i, null);\n\n // Initialize material index to 0, the most common value\n materialIndex = 0;\n\n // Set on-geometry flag based on current pick style\n onGeometry = (SoPickStyleElement.get(state) !=\n SoPickStyleElement.Style.BOUNDING_BOX);\n\n // Save the viewportRegion, we'll need it later:\n vpRegion.copyFrom(SoViewportRegionElement.get(state));\n}",
"public Point2D(Point2D point){\n \n //on peut faire point.x et point.y puisqu'on est dans la classe\n this.x = point.x;\n this.y = point.y;\n }",
"public Point(Point point) {\n super(point.getReferenceX(), point.getReferenceY());\n this.x = point.x;\n this.y = point.y;\n this.setHeight(point.getHeight());\n }",
"public Drawable getPoint(final PointData data, final Shape shape) {\n\t\t\treturn new AbstractDrawable() {\n\t\t\t\t/** Version id for serialization. */\n\t\t\t\tprivate static final long serialVersionUID = -1136689797647794969L;\n\n\t\t\t\tpublic void draw(DrawingContext context) {\n\t\t\t\t\tRasterRenderer renderer = RasterRenderer.this;\n\n\t\t\t\t\tAxis axisX = data.axes.get(0);\n\t\t\t\t\tAxis axisY = data.axes.get(1);\n\t\t\t\t\tAxisRenderer axisXRenderer = data.axisRenderers.get(0);\n\t\t\t\t\tAxisRenderer axisYRenderer = data.axisRenderers.get(1);\n\t\t\t\t\tRow row = data.row;\n\n\t\t\t\t\tint colX = renderer.getXColumn();\n\t\t\t\t\tif (colX < 0 || colX >= row.size() || !row.isColumnNumeric(colX)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint colY = renderer.getYColumn();\n\t\t\t\t\tif (colY < 0 || colY >= row.size() || !row.isColumnNumeric(colY)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint colValue = renderer.getValueColumn();\n\t\t\t\t\tif (colValue < 0 || colValue >= row.size() || !row.isColumnNumeric(colValue)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tdouble valueX = ((Number) row.get(colX)).doubleValue();\n\t\t\t\t\tdouble valueY = ((Number) row.get(colY)).doubleValue();\n\t\t\t\t\tNumber value = (Number) row.get(colValue);\n\n\t\t\t\t\t// Pixel dimensions\n\t\t\t\t\tdouble xMin = axisXRenderer\n\t\t\t\t\t\t.getPosition(axisX, valueX - 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.X);\n\t\t\t\t\tdouble xMax = axisXRenderer\n\t\t\t\t\t\t.getPosition(axisX, valueX + 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.X);\n\t\t\t\t\tdouble width = Math.abs(xMax - xMin) + 1.0;\n\t\t\t\t\tdouble yMin = axisYRenderer\n\t\t\t\t\t\t.getPosition(axisY, valueY - 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.Y);\n\t\t\t\t\tdouble yMax = axisYRenderer\n\t\t\t\t\t\t.getPosition(axisY, valueY + 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.Y);\n\t\t\t\t\tdouble height = Math.abs(yMax - yMin) + 1.0;\n\n\t\t\t\t\t// Create shape for pixel\n\t\t\t\t\t// The origin of all shapes is (boxX, boxY)\n\t\t\t\t\tRectangle2D shapeBounds = shape.getBounds2D();\n\t\t\t\t\tAffineTransform tx = new AffineTransform();\n\t\t\t\t\ttx.scale(width/shapeBounds.getWidth(), height/shapeBounds.getHeight());\n\t\t\t\t\ttx.translate(-shapeBounds.getMinX(), -shapeBounds.getMinY());\n\t\t\t\t\tShape pixel = tx.createTransformedShape(shape);\n\n\t\t\t\t\t// Paint pixel\n\t\t\t\t\tGraphics2D graphics = context.getGraphics();\n\t\t\t\t\tColorMapper colorMapper = plot.getColors();\n\t\t\t\t\tPaint paint;\n\t\t\t\t\tif (colorMapper instanceof ContinuousColorMapper) {\n\t\t\t\t\t\tpaint = ((ContinuousColorMapper) colorMapper)\n\t\t\t\t\t\t\t.get(value.doubleValue());\n\t\t\t\t\t} else if (colorMapper != null) {\n\t\t\t\t\t\tInteger index = value.intValue();\n\t\t\t\t\t\tpaint = colorMapper.get(index);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpaint = Color.BLACK;\n\t\t\t\t\t}\n\t\t\t\t\tGraphicsUtils.fillPaintedShape(\n\t\t\t\t\t\tgraphics, pixel, paint, pixel.getBounds2D());\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public static Point2D.Double getCenter(Shape shape) {\n\t\tRectangle bounds = shape.getBounds();\n\t\tdouble x = bounds.getX() + bounds.getWidth()/2;\n\t\tdouble y = bounds.getY() + bounds.getHeight()/2;\n\t\treturn new Point2D.Double(x,y);\n\t}",
"public Integer getPoint() {\n return point;\n }",
"private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}",
"public Point toOuterPoint(Point punto){\r\n \treturn punto.add(coord);\r\n// return new Point(punto.getRow() + coord.getRow(), punto.getCol() + coord.getCol());\r\n }",
"public T setPoint(@NonNull PointF point) {\n return setPoint(point.x, point.y);\n }",
"public Point2D userToDeviceSpace(\n Point2D point\n )\n {return ctm.transform(point, null);}",
"public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }",
"@Override\n public double getScale(LatLonPoint point) {\n return 1 / Math.cos(Math.toRadians(point.getLat()));\n }",
"public PointInSpace getPointInSpace() {\n return point;\n }",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"private P clonePoint(P point)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// clone\n\t\t\treturn (P) point.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}",
"public void setXY(Point2D aPoint) { setXY(aPoint.getX(), aPoint.getY()); }",
"@PropertyMapped\n\tpublic int getPoint() {\n\t\treturn point;\t\t\n\t}",
"@Override\r\n\t\tpublic Geom_element getGeom() {\n\t\t\treturn this.point;\r\n\t\t}",
"public GeoPoint(Geometry geometry, Point3D point) {\n\tsuper();\n\tthis.geometry = geometry;\n\tthis.point = point;\n}",
"@Pure\n\tPT getGraphPoint();",
"public double getCoord(int index) {\n\t\treturn point[index];\n\t}",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public static GeoPoint convertToPoint(Double lat, Double lon) {\n Double latitude = lat * 1E6;\n Double longitude = lon * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public static ECPoint compressPoint(ECPoint point) {\n return getPointWithCompression(point, true);\n }",
"public Coordinate getLocation();",
"public Point getCarLocation() {\r\n\r\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n builder.setTables(FTS_VIRTUAL_TABLE_CAR);\r\n builder.setProjectionMap(mColumnMapCar);\r\n\r\n Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(),\r\n null, null, null, null, null, null);\r\n\r\n if (cursor == null) {\r\n return null;\r\n } else if (!cursor.moveToFirst()) {\r\n cursor.close();\r\n return null;\r\n }\r\n\r\n String point_str = cursor.getString(1);\r\n\r\n point_str = point_str.trim();\r\n String[] coordinates = point_str.split(\",\");\r\n String lon = coordinates[0];\r\n String lat = coordinates[1];\r\n\r\n double flon = Float.valueOf(lon);\r\n double flat = Float.valueOf(lat);\r\n\r\n return (new Point(flon, flat));\r\n }",
"static public PointGeo rad2deg(IPointGeo aPoint) {\n\t\treturn new PointGeo(Math.toDegrees(aPoint.getLatitude()),\n\t\t\t\tMath.toDegrees(aPoint.getLongitude()),aPoint.getAltitude());\n\t}",
"public static GeoPoint convertToPoint(Location loc) {\n Double latitude = loc.getLatitude() * 1E6;\n Double longitude = loc.getLongitude() * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public Point getLocation() {\r\n\t\tint[] p = value.getIntArray();\r\n\t\tif (p.length < 2) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Location parameters must contain at least 2 values\");\r\n\t\t}\r\n\t\treturn (new Point(p[0], p[1]));\r\n\t}",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public java.awt.geom.Point2D.Double transformedPoint(double x, double y)\n {\n double[] position = {x,y}; \n getGraphicsState().getCurrentTransformationMatrix().createAffineTransform().transform(position, 0, position, 0, 1);\n position[1] = fixY(position[1]);\n\n\t_pageAffineTransform.transform(position,0, position, 0, 1);\n return new Point2D.Double(position[0],position[1]);\n }",
"public void setLocation(Point2D p);",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"public Point2D.Double toOriginal(Point2D point){\n return new Point2D.Double(\n (point.getX() - offsetX) / scale,\n (point.getY() - offsetY) / scale);\n }",
"public Point3D getLocation() {\n\t\treturn p;\n\t}",
"public TextureCoord2D texFor (final Point3 point) {\n\n if (point == null)throw new IllegalArgumentException(\"The Point cannot be null!\");\n\n\n double teta = Math.acos(point.y);\n double phi = Math.atan2(point.x, point.z);\n\n return new TextureCoord2D(phi / (Math.PI*2), -teta/Math.PI);\n }",
"Shape getShape();",
"public abstract void setPoint(Point p);",
"Point getPointByNodeId(Integer nodeId);",
"@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n PointF scaled = new PointF();\n scaled.x = -1000F + (point.x / previewSize.getWidth()) * 2000F;\n scaled.y = -1000F + (point.y / previewSize.getHeight()) * 2000F;\n\n // Apply rotation to this point.\n // https://academo.org/demos/rotation-about-point/\n PointF rotated = new PointF();\n double theta = ((double) displayToSensor) * Math.PI / 180;\n rotated.x = (float) (scaled.x * Math.cos(theta) - scaled.y * Math.sin(theta));\n rotated.y = (float) (scaled.x * Math.sin(theta) + scaled.y * Math.cos(theta));\n LOG.i(\"scaled:\", scaled, \"rotated:\", rotated);\n return rotated;\n }",
"void getPosRelPoint(double px, double py, double pz, DVector3 result);",
"public RMPoint getXY() { return new RMPoint(getX(), getY()); }",
"public Object getObjectAtLocation(Point p);",
"static public PointGeo deg2rad(IPointGeo aPoint) {\n\t\treturn new PointGeo(Math.toRadians(aPoint.getLatitude()),\n\t\t\t\tMath.toRadians(aPoint.getLongitude()),aPoint.getAltitude());\n\t}"
] |
[
"0.68800974",
"0.66012156",
"0.65598583",
"0.6374236",
"0.6134304",
"0.6127089",
"0.6057152",
"0.6004368",
"0.5909116",
"0.58024853",
"0.5723834",
"0.56745017",
"0.5659838",
"0.5658262",
"0.56265324",
"0.56245506",
"0.5531993",
"0.5489958",
"0.5486365",
"0.5472782",
"0.54707533",
"0.54485065",
"0.5428728",
"0.54273576",
"0.541023",
"0.53971654",
"0.5396639",
"0.539126",
"0.5386132",
"0.53841287",
"0.53841287",
"0.5380052",
"0.5361185",
"0.5357781",
"0.53575295",
"0.5357476",
"0.5355963",
"0.5355206",
"0.5344469",
"0.5334666",
"0.53065383",
"0.53065383",
"0.5304236",
"0.52877736",
"0.52726305",
"0.5266776",
"0.52651745",
"0.52513623",
"0.5245245",
"0.52323586",
"0.5232195",
"0.5232163",
"0.52066165",
"0.5205733",
"0.51926875",
"0.51868826",
"0.5182056",
"0.51772344",
"0.51770073",
"0.517075",
"0.5169685",
"0.516606",
"0.5159127",
"0.51387316",
"0.51370996",
"0.51356465",
"0.5134299",
"0.51262546",
"0.51237494",
"0.510692",
"0.5103806",
"0.509717",
"0.50943387",
"0.50778556",
"0.5070937",
"0.5069826",
"0.5068139",
"0.5063391",
"0.5059998",
"0.50528777",
"0.50472164",
"0.50469327",
"0.50467354",
"0.5024834",
"0.5018573",
"0.50027925",
"0.50026965",
"0.49925768",
"0.49865416",
"0.4982962",
"0.49696854",
"0.4966878",
"0.49522984",
"0.49488094",
"0.49430507",
"0.4941858",
"0.4935409",
"0.49348027",
"0.49305448",
"0.49289963"
] |
0.63357043
|
4
|
Converts the given size (as a vector) to the given shape's coords (returns it for convenience).
|
public RMSize convertVectorToShape(RMSize size, RMShape shape)
{
if(shape==_parent && !isRSS()) return size;
return getTransformToShape(shape).transformVector(size);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMSize convertVectorFromShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformFromShape(shape).transformVector(size);\n}",
"static Shape concaveArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size, 0.0);\n \t\tpath.lineTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"private Shape creatTickDirection(Shape shape, float length, int size) {\n\t\tGeometryPath geom = new GeometryPath(shape);\n\t\tint div = size;\n\t\tif (length - div > 0 && length + 2 * div < geom.lengthOfPath()) {\n\t\t\tGeneralPath path = new GeneralPath();\n\t\t\tPoint2D p1 = geom.pointAtLength(length + 2 * div);\n\t\t\tPoint2D pl = geom.orthoLeftPointAtLength(length - div, div);\n\t\t\tPoint2D pr = geom.orthoRightPointAtLength(length - div, div);\n\t\t\tpath.moveTo(p1.getX(), p1.getY());\n\t\t\tpath.lineTo(pr.getX(), pr.getY());\n\t\t\tpath.lineTo(pl.getX(), pl.getY());\n\t\t\tpath.closePath();\n\t\t\treturn path;\n\t\t}\n\t\treturn null;\n\t}",
"public UIShape(Color color, Vec2f position, Shape parent, String type, Vec2i size) {\n\t\tsuper(color, position, parent, type, size);\n\t}",
"public static ToIntFunction<IntTuple> colexicographicalIndexer(\r\n IntTuple size)\r\n {\r\n Objects.requireNonNull(size, \"The size is null\");\r\n IntTuple sizeProducts =\r\n IntTupleFunctions.exclusiveScan(\r\n size, 1, (a, b) -> a * b, null);\r\n return indices -> IntTuples.dot(indices, sizeProducts); \r\n }",
"public Vector2f getSize() {return new Vector2f(sizeX, sizeX);}",
"public abstract Vector getPosition(Rectangle selectionBox);",
"public Point2D adjustSize(Point2D size){\n return size.multiply(facteurSize);\n }",
"public static ToIntFunction<IntTuple> lexicographicalIndexer(\r\n IntTuple size)\r\n {\r\n Objects.requireNonNull(size, \"The size is null\");\r\n IntTuple reversedProducts =\r\n IntTupleFunctions.exclusiveScan(\r\n IntTuples.reversed(size), 1, (a, b) -> a * b, null);\r\n IntTuple sizeProducts = IntTuples.reverse(reversedProducts, null);\r\n return indices -> IntTuples.dot(indices, sizeProducts); \r\n }",
"public int[] phoneMoveRandom(PlayActivity.GameState[][] game, int size) {\n Random random = new Random();\n int x = random.nextInt(size);\n int y = random.nextInt(size);\n // If the square is already taken, then a new will be randomized.\n while ((game[x][y] == PlayActivity.GameState.X) || (game[x][y] == PlayActivity.GameState.O)) {\n x = random.nextInt(size);\n y = random.nextInt(size);\n }\n int[] vec = new int[3];\n vec[1] = x;\n vec[2] = y;\n\n // Determine squarenumber to be changed and is reported back in the format:\n // vec[0] = squarenumber\n // vec[1] = x\n // vec[2] = y\n vec[0] = ((y * size) + x);\n return vec;\n }",
"public Point location( Solid shape ) {\n Double ex = x;\n Double wy = y;\n Double ze = z;\n\n Double lastWidth = 0.0;\n\n for ( Thing item : thingsOnThis) {\n ex = Math.max( ex, item.point.x() );\n wy = Math.max( wy, item.point.y() );\n ze = Math.max( ze, item.point.z() );\n\n lastWidth = item.solid.width();\n }\n Thing thing = new Thing();\n thing.point = new Point( x, wy + lastWidth, z + height );\n thing.solid = shape;\n\n thingsOnThis.add( thing );\n\n return thing.point;\n }",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public abstract Vector getDrawPosition(Rectangle selectionBox);",
"public UniformInBoxPointSequence2D(int size, double width, double height) {\n super((List<T>) generateRandomPoints(size, width, height));\n }",
"public static Tuple size(int size) {\n return size(size, null);\n }",
"static Shape openArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\treturn path;\n \t}",
"private static StructureElement createCenteredSquare(int size) {\r\n\t\treturn new StructureElement(createSquareMask(size), size / 2, size / 2);\r\n\t}",
"Vector getPos();",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"static Shape closedArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"public abstract void moveShape(double lon, double lat);",
"public Point getSize();",
"public Vector getLocation();",
"Shape getShape();",
"public void updateShape(final Point pos)\n\t\t{\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tobj = new Rectangle(pos.x-(coords[2]/2)-3,pos.y-(coords[3]/2)-3,coords[2]+3,coords[3]+3);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[2]/2)-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[3]/2)-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tobj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t}",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public abstract int[] getShape();",
"private int coordinateConvertFrom(int i, int j) {\n return size * (i - 1) + j;\n }",
"protected Vector createVector(Number sequence, String seqName, int size) {\n BigDecimal nextSequence;\n BigDecimal increment = new BigDecimal(1);\n\n if (sequence instanceof BigDecimal) {\n nextSequence = (BigDecimal)sequence;\n } else {\n nextSequence = new BigDecimal(sequence.doubleValue());\n }\n\n Vector sequencesForName = new Vector(size);\n\n nextSequence = nextSequence.subtract(new BigDecimal(size));\n\n // Check for incorrect values return to validate that the sequence is setup correctly.\n // PRS 36451 intvalue would wrap\n if (nextSequence.doubleValue() < -1) {\n throw ValidationException.sequenceSetupIncorrectly(seqName);\n }\n\n for (int index = size; index > 0; index--) {\n nextSequence = nextSequence.add(increment);\n sequencesForName.addElement(nextSequence);\n }\n return sequencesForName;\n }",
"public Shape(ShapeType shape, Color color, int width, int height, int posX, int posY) {\n\t\tsuper(posX, posY, width, height);\n\t\tthis.shape = shape;\n\t\tthis.color = color;\n\t}",
"Vector getSize();",
"public abstract int[] getCoords();",
"@Override\r\n\tpublic void accept(ShapeElementVisitor visitor) {\n\t\tvisitor.visit(this);\r\n\t}",
"public Point_XY toPixel(Point_XY center, int size)\n {\n int x = (int)(size * (r + q/2.));\n int y = (int)(q * size * Math.sqrt(3) / 2);\n return new Point_XY(x + center.x(), y + center.y());\n }",
"public Vector2ic getSize(){\n return size.toImmutable();\n }",
"public GCross(double size) {\n\t\t// Your code starts here\n\t\t\n\t\t// Your code ends here\n\t}",
"int getShapeId();",
"public Coordinates unitVector(Coordinates vector);",
"int[] shape(){\n int[] dimensions = new int[2];\n dimensions[0] = this.rows;\n dimensions[1] = this.cols;\n return dimensions;\n }",
"public Square(double xPosition,double yPosition,String color,boolean isVisible,double size) {\r\n super(xPosition, yPosition, color, isVisible);\r\n this.size = size;\r\n }",
"public Layer(Vector2i position, Vector2i size) {\n\t\tthis.viewport = new Viewport(position, size, this::render);\n\t}",
"public static Point2D.Double getCenter(Shape shape) {\n\t\tRectangle bounds = shape.getBounds();\n\t\tdouble x = bounds.getX() + bounds.getWidth()/2;\n\t\tdouble y = bounds.getY() + bounds.getHeight()/2;\n\t\treturn new Point2D.Double(x,y);\n\t}",
"public Vector2D toVector2D ( );",
"public boolean setShapeSize(DimensionF shapeSize) {\n if (ObjectUtils.equals(this.shapeSize, shapeSize))\n return false;\n this.shapeSize = shapeSize;\n return true;\n }",
"public abstract double[] getVector(int[] location);",
"IShape getShape(String name);",
"public Shape cloverShape(String node_coord, float size) {\n Point2D point = nodeToPoint(node_coord);\n return Utils.createClover((float) point.getX(), (float) point.getY(), size, size);\n }",
"public static Vector<Shape> convertAll(Vector<Shape> v)\r\n\t{\r\n\t\tint i = 0;\r\n\t\tVector<Shape> v2 = new Vector<Shape>();\r\n\t\tfor(i=0 ; i<v.size() ; i++)\r\n\t\t{\r\n\t\r\n\t\t\tif(v.get(i) instanceof Rectangle)\r\n\t\t\t{\r\n\t\t\t\tRectangle r = new Rectangle();\r\n\t\t\t\tr = (Rectangle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(r);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\r\n\t\t\tif(v.get(i) instanceof Triangle)\r\n\t\t\t{\r\n\t\t\t\tTriangle t = new Triangle();\r\n\t\t\t\tt = (Triangle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(t);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\r\n\t\t\tif(v.get(i) instanceof Circle)\r\n\t\t\t{\r\n\t\t\t\tCircle c = new Circle();\r\n\t\t\t\tc = (Circle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(c);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\r\n\t\treturn v2;\r\n\t}",
"public Shape(ShapeType shape, Color color, int width, int height, int posX, int posY, String name) {\n\t\tsuper(posX, posY, width, height, name);\n\t\tthis.shape = shape;\n\t\tthis.color = color;\n\t}",
"@Override\n public Position getSize() {\n return new Position(this.w, this.h);\n }",
"public Coordinates unitVector(Coordinates vector, Coordinates origin);",
"public double[][] getVectorWithOnes(int size) {\n\t\tdouble[][] identityMatrix = new double[size][1];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tidentityMatrix[i][0] = 1;\n\t\t}\n\t\treturn identityMatrix;\n\t}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }",
"public int[] getShape() {\n return shape;\n }",
"@NonNull\n private Size applyCropRegionCoordinates(@NonNull Size referenceSize,\n @NonNull PointF referencePoint) {\n Rect cropRect = builder.get(CaptureRequest.SCALER_CROP_REGION);\n // For now we don't care about x and y position. Rect should not be null, but let's be safe.\n int cropRectWidth = cropRect == null ? referenceSize.getWidth() : cropRect.width();\n int cropRectHeight = cropRect == null ? referenceSize.getHeight() : cropRect.height();\n // The stream is always centered inside the crop region, and one of the dimensions\n // should always match. We just increase the other one.\n referencePoint.x += (cropRectWidth - referenceSize.getWidth()) / 2F;\n referencePoint.y += (cropRectHeight - referenceSize.getHeight()) / 2F;\n return new Size(cropRectWidth, cropRectHeight);\n }",
"public final Shape getScaled(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().scale(fromPoint, toPoint, anchorPoint);\n\t}",
"public Coordinates scaleVector(Coordinates vector, double factor);",
"public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);",
"public nvo_coords.CoordsType getVector() {\n return vector;\n }",
"public abstract Vector getAnchorPoint(Rectangle selectionBox);",
"public void position(Double ...coords) throws ArgumentOutOfBoundsException;",
"public static Tuple size(int size, Comparable value) {\n Tuple result = new Tuple();\n\n for (int i = 0; i < size; i++)\n result.add(value);\n\n return result;\n }",
"List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);",
"public static XPropertySet createAndInsertShape(XComponent xDrawDoc,\n\t\t\tXShapes xShapes, Point aPos, Size aSize, String sShapeType)\n\t\t\tthrows java.lang.Exception {\n\t\tXShape xShape = createShape(xDrawDoc, aPos, aSize, sShapeType);\n\t\txShapes.add(xShape);\n\t\tXPropertySet xPropSet = (XPropertySet) UnoRuntime.queryInterface(\n\t\t\t\tXPropertySet.class, xShape);\n\t\treturn xPropSet;\n\t}",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"Dimension getSize();",
"Dimension getSize();",
"public XYPoint getMapSize();",
"public static float getScale(CWPoint center, float distance, Point size) {\r\n\t\tfloat scaleLatO = distance * 2 / size.y;\r\n\t\tfloat scaleLonO = distance * 2 / size.x;\r\n\t\tfloat scaleO = (scaleLatO < scaleLonO ? scaleLonO : scaleLatO);\r\n\t\treturn scaleO;\r\n\t}",
"@Override\n public void generateShape() {\n AffineTransform tx = new AffineTransform();\n tx.rotate(-this.getRotation(), this.getX(), this.getY());\n this.shape = tx.createTransformedShape(new Ellipse2D.Double(\n this.getX() + this.getWidth() / 2 - D / 2,\n this.getY() + this.getHeight() / 2 - D / 2,\n D, D));\n }",
"public void setSize(int size){\n\t\tthis.shipSize = size;\n\t}",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"public position convertToPosition(){\n\t\tdouble x = r * Math.cos(theta);\n\t\tdouble y = r * Math.sin(theta);\n\t\treturn new position(x, y);\n\t}",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public int[] boxCoords(Vector3d v) {\r\n\t\t/* Check the bounds are valid */\r\n\t\tint x = (int)(v.x/box[0]);\r\n\t\tint y = (int)(v.y/box[1]);\r\n\t\tint z = (int)(v.z/box[2]);\r\n\t\tx = (x >= boxes[0] ? boxes[0]-1 : x);\r\n\t\ty = (y >= boxes[1] ? boxes[1]-1 : y);\r\n\t\tz = (z >= boxes[2] ? boxes[2]-1 : z);\r\n\t\tif (x < 0) x = 0;\r\n\t\tif (y < 0) y = 0;\r\n\t\tif (z < 0) z = 0;\r\n\t\treturn new int[] {x, y, z};\t\r\n\t}",
"public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}",
"@NonNull\n private Size applyActiveArrayCoordinates(@NonNull Size referenceSize,\n @NonNull PointF referencePoint) {\n Rect cropRect = builder.get(CaptureRequest.SCALER_CROP_REGION);\n referencePoint.x += cropRect == null ? 0 : cropRect.left;\n referencePoint.y += cropRect == null ? 0 : cropRect.top;\n // Finally, get the active rect width and height from characteristics.\n Rect activeRect = characteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE);\n if (activeRect == null) { // Should never happen\n activeRect = new Rect(0, 0, referenceSize.getWidth(),\n referenceSize.getHeight());\n }\n return new Size(activeRect.width(), activeRect.height());\n }",
"public boolean verifShipCoordinates( IPlayer iPlayer, String startCoord,String endCoord, int size) {\n\t\tif (goodCoordinatesForm(startCoord) && goodCoordinatesForm(endCoord) ) {\r\n\r\n\t\t\tCoordinates coord1 = new Coordinates(startCoord);\r\n\t\t\tCoordinates coord2 = new Coordinates(endCoord);\r\n\t\t\tcoordinatesShipConverter(coord1, coord2);\r\n\t\t\tif (inMap(iPlayer,coord1) && inMap(iPlayer,coord2) ) {\r\n\t\t\t\tif (nonDiagonal(coord1,coord2)) {\r\n\t\t\t\t\tif(goodSize(coord1,coord2, size)) {\r\n\t\t\t\t\t\tif (isEmpty(iPlayer, coord1, coord2)) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse { System.out.println(\"Another ship is already on it\");\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\telse { System.out.println(\"The size of the ship isn't good, try again it should be \"+ size + \" coordinates large\");\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\telse {System.out.println(\"The ship is in diagonal, try again it should be like A-2\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse { System.out.println(\"Coordinates out of map, try again it should be between 0 and 10, and A to J\" );// can't do this.height.. because cannot do a static reference to a non static..\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse { System.out.println(\"Wrong coordinates writing, try again it should be like A-2\");\r\n\t\t}\r\n\t\t// is this presentation very clear ?\r\n\t\t\r\n\treturn false;\r\n\t\r\n\t}",
"public Shape getShape();",
"private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\n }",
"public void drawShape(Shape shape);",
"public int[][] place(){\r\n\t\treturn coords(pos);\r\n\t}",
"godot.wire.Wire.Vector2OrBuilder getSizeOrBuilder();",
"public final Vector2f getSize() {\r\n return size;\r\n }",
"public void drawSquare(double size) {\r\n\t\t\r\n\t\t//if the size is a negative number, throw an error\r\n\t\tif (size <= 0) {\r\n\t\t\tthrow new RuntimeException(\"Errordaniel - invalid size\");\r\n\t\t}\r\n\r\n\t\t//by the saved word 'super' we call to 'tailDown' function in 'SimpleTurtle' class from that we inherit her\r\n\t\t//take the turtle tail down so he will leave traces\r\n\t\tsuper.tailDown();\r\n\r\n\t\t//a square has 4 sides so the turtle should be rotated after 3 sides.\r\n\t\tfor (int i = 0; i < 3; i++) {\r\n\t\t\tmoveForward(size);\r\n\t\t\tsuper.turnRight(90);\r\n\t\t}\r\n\r\n\t\t//paint the last side\r\n\t\tmoveForward(size);\r\n\t}",
"public Vector2i getSize() {\n return new Vector2i(getWidth(), getHeight());\n }",
"public Vertex2d[] square_vertex(int x, int y, int sizelen, spritecomponent s) {\r\n\t\tsizelen = sizelen * 2;\r\n\t\tfloat sizex = convert_coordinate(sizelen, width);\r\n\t\tfloat sizey = convert_coordinate(sizelen, height);\r\n\t\tx = x * 2;\r\n\t\ty = y * 2;\r\n\t\tx = x - (width);\r\n\t\ty = y - (height - sizelen);\r\n\t\tVertex2d new_coords = convert_coordinates(x, y);\r\n\r\n\t\tfloat xp = new_coords.x;\r\n\t\tfloat yp = new_coords.y;\r\n\t\tVertex2d[] data = new Vertex2d[] { new Vertex2d(xp, yp, s.x, s.y),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp, s.ex, s.y),\r\n\t\t\t\tnew Vertex2d(xp, yp - sizey, s.x, s.ey),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp - sizey, s.ex, s.ey),\r\n\t\t\t\tnew Vertex2d(xp, yp - sizey, s.x, s.ey),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp, s.ex, s.y) };\r\n\t\treturn data;\r\n\t}",
"@Override\n\tpublic int getShapeId()\n\t{\n\t\treturn shapeId;\n\t}",
"void drawShape(Shape s) {\n }",
"public Vector2D getPosition ();",
"private void fillVector()\r\n {\r\n // The x and y coordinates of a point\r\n int xPoint;\r\n int yPoint;\r\n \r\n // The x and y coordinates of a point with the displacement of the plot \r\n // origin from the component origin taken into consideration\r\n int xPointOffset, yPointOffset;\r\n \r\n // The point to be stored in the vector\r\n SPlotPoint plotPoint;\r\n\r\n\r\n // Get the max of the data types to figure out how to scale plot\r\n maxX_ = (new Double(xData_.getMax())).intValue();\r\n maxY_ = (new Double(yData_.getMax())).intValue();\r\n \r\n // Want max axes to be max of 200. Need to calculate the scaling factor\r\n xFactor_ = maxX_/MAX_AXIS_LENGTH;\r\n yFactor_ = maxY_/MAX_AXIS_LENGTH;\r\n \r\n // Extract x and y values, generate SPlotPoints and store in vector\r\n for (int i = 0; i < xSize_; i++)\r\n {\r\n xPoint = (int)(xData_.getValue(i) / xFactor_);\r\n yPoint = (int)(yData_.getValue(i) / yFactor_); \r\n\r\n\r\n // The xy coordinates where to plot the point (after taking the \r\n // offset btn the plot origin and the component origin into account\r\n xPointOffset = xPoint+OFFSET;\r\n yPointOffset = yPoint+OFFSET;\r\n \r\n // Generate SPlotPoints and store in vector\r\n plotPoint = new SPlotPoint(xPointOffset,\r\n yPointOffset);\r\n \r\n // Set the id of the scatter plot point (corresponds to the row\r\n // number in the .dbf\r\n // Must add one to compensate for geodata starting at 1 and vector\r\n // index starting at 0\r\n plotPoint.setId(i+1);\r\n \r\n pointVector_.addElement(plotPoint);\r\n }\r\n }",
"int givePropSize(List<Integer[]> coordsInProp) throws Exception;",
"public static DoubleVector CreateDoubleVector(int size,double value) {\n\t\tDoubleVector result = new DoubleVector();\n\t\t\n\t\tfor (int j = 0; j < size ; j++) {\n\t\t\tresult.setValue(j,value) ;\n\t\t}\n\t\treturn result ;\n\t}",
"public double[] getReducedVector( double[] vector, int size )\n {\n double[] result = new double[ size ];\n double pvalue = (double) vector.length / (double) size;\n\n for( int i=0; i<size; i++ )\n {\n result[ i ] = vector[ (int) ( i * pvalue ) ];\n }\n\n return result;\n }",
"@java.lang.Override\n public godot.wire.Wire.Vector3 getSize() {\n return size_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : size_;\n }",
"public void selectSize(String size) {\n\t\ttry {\n\t\t\tString xpathSizeElement = \"//div[@id='e1-22']/div[@class='pnl-b pad-bottom']/div/a/span[@class='cbx' and text()='\"\n\t\t\t\t\t+ size + \"'] /preceding-sibling::input\";\n\n\t\t\tWebElement inputSizeElement = driver.findElement(By.xpath(xpathSizeElement));\n\t\t\tinputSizeElement.click();\n\n\t\t\t// Print the number of results\n\t\t\tString resultsMessage = String.format(\"---The results number is: %s\", spn_ResultsNumber.getText());\n\t\t\tSystem.out.println(resultsMessage);\n\t\t} catch (Exception | AssertionError e) {\n\t\t\tString errorMessage = String.format(\"An error ocurred while selecting the size\", e.getMessage());\n\t\t\tthrow new Error(errorMessage);\n\t\t}\n\t}",
"Dimension[] getSizes();",
"godot.wire.Wire.Vector3OrBuilder getSizeOrBuilder();",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}"
] |
[
"0.67105424",
"0.5159635",
"0.5143089",
"0.5105912",
"0.5069721",
"0.5031602",
"0.49932143",
"0.4990214",
"0.49839815",
"0.49640867",
"0.49627593",
"0.49444193",
"0.49275142",
"0.4890807",
"0.4886067",
"0.48762736",
"0.48701626",
"0.48454225",
"0.48372743",
"0.47923157",
"0.47895107",
"0.47884768",
"0.47630587",
"0.47149694",
"0.47140142",
"0.47120255",
"0.47051057",
"0.47035083",
"0.47019905",
"0.46976867",
"0.4692025",
"0.4610232",
"0.46029064",
"0.4601776",
"0.45985708",
"0.45869255",
"0.45684606",
"0.45562753",
"0.45290592",
"0.45225886",
"0.45113975",
"0.44880798",
"0.44856453",
"0.44696635",
"0.44672006",
"0.4465372",
"0.446034",
"0.4454332",
"0.4445714",
"0.44377404",
"0.44375998",
"0.44339877",
"0.44132823",
"0.44076768",
"0.44045973",
"0.4396444",
"0.4396129",
"0.4394572",
"0.43849665",
"0.43817294",
"0.4374985",
"0.43663755",
"0.43659157",
"0.43640408",
"0.43639135",
"0.43628418",
"0.43626097",
"0.43626097",
"0.4359842",
"0.4357435",
"0.43543208",
"0.43488917",
"0.43430233",
"0.43429258",
"0.4336587",
"0.4335214",
"0.4333912",
"0.43328008",
"0.43326277",
"0.43268475",
"0.4326827",
"0.43130252",
"0.43107244",
"0.4287613",
"0.4283222",
"0.42781502",
"0.42721504",
"0.42689073",
"0.42659178",
"0.4261821",
"0.4260904",
"0.42564458",
"0.4250945",
"0.4244776",
"0.42404485",
"0.42402402",
"0.4236249",
"0.42361864",
"0.42298928",
"0.42297965"
] |
0.66241664
|
1
|
Converts the given size (as a vector) from the given shape's coords (returns it for convenience).
|
public RMSize convertVectorFromShape(RMSize size, RMShape shape)
{
if(shape==_parent && !isRSS()) return size;
return getTransformFromShape(shape).transformVector(size);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMSize convertVectorToShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformToShape(shape).transformVector(size);\n}",
"public Vector2f getSize() {return new Vector2f(sizeX, sizeX);}",
"protected Vector createVector(Number sequence, String seqName, int size) {\n BigDecimal nextSequence;\n BigDecimal increment = new BigDecimal(1);\n\n if (sequence instanceof BigDecimal) {\n nextSequence = (BigDecimal)sequence;\n } else {\n nextSequence = new BigDecimal(sequence.doubleValue());\n }\n\n Vector sequencesForName = new Vector(size);\n\n nextSequence = nextSequence.subtract(new BigDecimal(size));\n\n // Check for incorrect values return to validate that the sequence is setup correctly.\n // PRS 36451 intvalue would wrap\n if (nextSequence.doubleValue() < -1) {\n throw ValidationException.sequenceSetupIncorrectly(seqName);\n }\n\n for (int index = size; index > 0; index--) {\n nextSequence = nextSequence.add(increment);\n sequencesForName.addElement(nextSequence);\n }\n return sequencesForName;\n }",
"Vector getSize();",
"public Vector2ic getSize(){\n return size.toImmutable();\n }",
"public Point2D adjustSize(Point2D size){\n return size.multiply(facteurSize);\n }",
"public Vector2D toVector2D ( );",
"static Shape concaveArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size, 0.0);\n \t\tpath.lineTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);",
"public Coordinates scaleVector(Coordinates vector, double factor);",
"private Shape creatTickDirection(Shape shape, float length, int size) {\n\t\tGeometryPath geom = new GeometryPath(shape);\n\t\tint div = size;\n\t\tif (length - div > 0 && length + 2 * div < geom.lengthOfPath()) {\n\t\t\tGeneralPath path = new GeneralPath();\n\t\t\tPoint2D p1 = geom.pointAtLength(length + 2 * div);\n\t\t\tPoint2D pl = geom.orthoLeftPointAtLength(length - div, div);\n\t\t\tPoint2D pr = geom.orthoRightPointAtLength(length - div, div);\n\t\t\tpath.moveTo(p1.getX(), p1.getY());\n\t\t\tpath.lineTo(pr.getX(), pr.getY());\n\t\t\tpath.lineTo(pl.getX(), pl.getY());\n\t\t\tpath.closePath();\n\t\t\treturn path;\n\t\t}\n\t\treturn null;\n\t}",
"public UniformInBoxPointSequence2D(int size, double width, double height) {\n super((List<T>) generateRandomPoints(size, width, height));\n }",
"public static ToIntFunction<IntTuple> lexicographicalIndexer(\r\n IntTuple size)\r\n {\r\n Objects.requireNonNull(size, \"The size is null\");\r\n IntTuple reversedProducts =\r\n IntTupleFunctions.exclusiveScan(\r\n IntTuples.reversed(size), 1, (a, b) -> a * b, null);\r\n IntTuple sizeProducts = IntTuples.reverse(reversedProducts, null);\r\n return indices -> IntTuples.dot(indices, sizeProducts); \r\n }",
"public static Tuple size(int size) {\n return size(size, null);\n }",
"public Coordinates unitVector(Coordinates vector);",
"public abstract Vector getPosition(Rectangle selectionBox);",
"public Coordinates unitVector(Coordinates vector, Coordinates origin);",
"public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }",
"public static ToIntFunction<IntTuple> colexicographicalIndexer(\r\n IntTuple size)\r\n {\r\n Objects.requireNonNull(size, \"The size is null\");\r\n IntTuple sizeProducts =\r\n IntTupleFunctions.exclusiveScan(\r\n size, 1, (a, b) -> a * b, null);\r\n return indices -> IntTuples.dot(indices, sizeProducts); \r\n }",
"private int coordinateConvertFrom(int i, int j) {\n return size * (i - 1) + j;\n }",
"godot.wire.Wire.Vector2OrBuilder getSizeOrBuilder();",
"public UIShape(Color color, Vec2f position, Shape parent, String type, Vec2i size) {\n\t\tsuper(color, position, parent, type, size);\n\t}",
"public abstract double[] getVector(int[] location);",
"public final Shape getScaled(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().scale(fromPoint, toPoint, anchorPoint);\n\t}",
"Vector getPos();",
"static Shape closedArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"static Shape openArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\treturn path;\n \t}",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public double[] getReducedVector( double[] vector, int size )\n {\n double[] result = new double[ size ];\n double pvalue = (double) vector.length / (double) size;\n\n for( int i=0; i<size; i++ )\n {\n result[ i ] = vector[ (int) ( i * pvalue ) ];\n }\n\n return result;\n }",
"public Point getSize();",
"public static PVector fromScreen( PVector in ) {\n\t\tfloat x = PApplet.norm( in.x, 0, screenSize[0] );\n\t\tfloat y = PApplet.norm( in.y, 0, screenSize[1] );\n\t\treturn new PVector( x, y );\n\t}",
"public abstract Vector getDrawPosition(Rectangle selectionBox);",
"public static Vector<Shape> convertAll(Vector<Shape> v)\r\n\t{\r\n\t\tint i = 0;\r\n\t\tVector<Shape> v2 = new Vector<Shape>();\r\n\t\tfor(i=0 ; i<v.size() ; i++)\r\n\t\t{\r\n\t\r\n\t\t\tif(v.get(i) instanceof Rectangle)\r\n\t\t\t{\r\n\t\t\t\tRectangle r = new Rectangle();\r\n\t\t\t\tr = (Rectangle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(r);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\r\n\t\t\tif(v.get(i) instanceof Triangle)\r\n\t\t\t{\r\n\t\t\t\tTriangle t = new Triangle();\r\n\t\t\t\tt = (Triangle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(t);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\r\n\t\t\tif(v.get(i) instanceof Circle)\r\n\t\t\t{\r\n\t\t\t\tCircle c = new Circle();\r\n\t\t\t\tc = (Circle)(v.get(i));\r\n\t\r\n\t\t\t\tPolygonDyn obj = new PolygonDyn(c);\r\n\t\t\t\tv2.add(obj);\r\n\t\t\t}\t\t\r\n\t\t}\r\n\t\r\n\t\treturn v2;\r\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Vector2 getSize() {\n return size_ == null ? godot.wire.Wire.Vector2.getDefaultInstance() : size_;\n }",
"public double[][] getVectorWithOnes(int size) {\n\t\tdouble[][] identityMatrix = new double[size][1];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tidentityMatrix[i][0] = 1;\n\t\t}\n\t\treturn identityMatrix;\n\t}",
"public void updateShape(final Point pos)\n\t\t{\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tobj = new Rectangle(pos.x-(coords[2]/2)-3,pos.y-(coords[3]/2)-3,coords[2]+3,coords[3]+3);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[2]/2)-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[3]/2)-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tobj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t}",
"public static DoubleVector CreateDoubleVector(int size,double value) {\n\t\tDoubleVector result = new DoubleVector();\n\t\t\n\t\tfor (int j = 0; j < size ; j++) {\n\t\t\tresult.setValue(j,value) ;\n\t\t}\n\t\treturn result ;\n\t}",
"public godot.wire.Wire.Vector2 getSize() {\n if (sizeBuilder_ == null) {\n return size_ == null ? godot.wire.Wire.Vector2.getDefaultInstance() : size_;\n } else {\n return sizeBuilder_.getMessage();\n }\n }",
"public int[] phoneMoveRandom(PlayActivity.GameState[][] game, int size) {\n Random random = new Random();\n int x = random.nextInt(size);\n int y = random.nextInt(size);\n // If the square is already taken, then a new will be randomized.\n while ((game[x][y] == PlayActivity.GameState.X) || (game[x][y] == PlayActivity.GameState.O)) {\n x = random.nextInt(size);\n y = random.nextInt(size);\n }\n int[] vec = new int[3];\n vec[1] = x;\n vec[2] = y;\n\n // Determine squarenumber to be changed and is reported back in the format:\n // vec[0] = squarenumber\n // vec[1] = x\n // vec[2] = y\n vec[0] = ((y * size) + x);\n return vec;\n }",
"godot.wire.Wire.Vector2 getSize();",
"godot.wire.Wire.Vector3OrBuilder getSizeOrBuilder();",
"private static StructureElement createCenteredSquare(int size) {\r\n\t\treturn new StructureElement(createSquareMask(size), size / 2, size / 2);\r\n\t}",
"public godot.wire.Wire.Vector2OrBuilder getSizeOrBuilder() {\n if (sizeBuilder_ != null) {\n return sizeBuilder_.getMessageOrBuilder();\n } else {\n return size_ == null ?\n godot.wire.Wire.Vector2.getDefaultInstance() : size_;\n }\n }",
"public final Vector2f getSize() {\r\n return size;\r\n }",
"public Vector2i getSize() {\n return new Vector2i(getWidth(), getHeight());\n }",
"@java.lang.Override\n public godot.wire.Wire.Vector3 getSize() {\n return size_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : size_;\n }",
"public nvo_coords.CoordsType getVector() {\n return vector;\n }",
"static Vec scale(Vec v, double s) {\n return new Vec(v.x * s, v.y * s);\n }",
"public static PVector toServos( PVector in ){\n\t\tfloat x = in.x * 180;\n\t\tfloat y = in.y * 180;\n\t\treturn new PVector( x, y );\n\t}",
"Dimension[] getSizes();",
"int givePropSize(List<Integer[]> coordsInProp) throws Exception;",
"godot.wire.Wire.Vector3 getSize();",
"@Test\n public void getLengthVector2d(){\n Vector2d newVec = new Vector2d(0,1);\n vector.add(newVec);\n\n assertTrue(newVec.getLength() == 1);\n }",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"public godot.wire.Wire.Vector3 getSize() {\n if (sizeBuilder_ == null) {\n return size_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : size_;\n } else {\n return sizeBuilder_.getMessage();\n }\n }",
"public static PVector fromCanvas( PVector in) {\n\t\treturn fromCanvas( in, 0 );\n\t}",
"public godot.wire.Wire.Vector3OrBuilder getSizeOrBuilder() {\n if (sizeBuilder_ != null) {\n return sizeBuilder_.getMessageOrBuilder();\n } else {\n return size_ == null ?\n godot.wire.Wire.Vector3.getDefaultInstance() : size_;\n }\n }",
"public final Shape scale(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn transform(new Scalation(fromPoint, toPoint, anchorPoint));\n\t}",
"public RMRect convertedRectFromShape(RMRect aRect, RMShape aShape)\n{\n return convertRectFromShape(new RMRect(aRect), aShape);\n}",
"Dimension getSize();",
"Dimension getSize();",
"public static float getScale(CWPoint center, float distance, Point size) {\r\n\t\tfloat scaleLatO = distance * 2 / size.y;\r\n\t\tfloat scaleLonO = distance * 2 / size.x;\r\n\t\tfloat scaleO = (scaleLatO < scaleLonO ? scaleLonO : scaleLatO);\r\n\t\treturn scaleO;\r\n\t}",
"public void setSize(int size){\n\t\tthis.shipSize = size;\n\t}",
"public Square(double xPosition,double yPosition,String color,boolean isVisible,double size) {\r\n super(xPosition, yPosition, color, isVisible);\r\n this.size = size;\r\n }",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"public RMRect convertedRectToShape(RMRect aRect, RMShape aShape)\n{\n return convertRectToShape(new RMRect(aRect), aShape);\n}",
"float getSize(float[] sizes);",
"public Builder mergeSize(godot.wire.Wire.Vector3 value) {\n if (sizeBuilder_ == null) {\n if (size_ != null) {\n size_ =\n godot.wire.Wire.Vector3.newBuilder(size_).mergeFrom(value).buildPartial();\n } else {\n size_ = value;\n }\n onChanged();\n } else {\n sizeBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public abstract int[] getShape();",
"public abstract Vector4fc normalize(float length);",
"public Builder<V, E> vectorSize(int vectorSize) {\n this.vectorSize = vectorSize;\n return this;\n }",
"private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\n }",
"public Layer(Vector2i position, Vector2i size) {\n\t\tthis.viewport = new Viewport(position, size, this::render);\n\t}",
"public Shape(ShapeType shape, Color color, int width, int height, int posX, int posY) {\n\t\tsuper(posX, posY, width, height);\n\t\tthis.shape = shape;\n\t\tthis.color = color;\n\t}",
"public Vector getLocation();",
"Shape getShape();",
"void vectorFromWorld(double px, double py, double pz, DVector3 result);",
"public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}",
"public static Geometry deserialize(Slice shape)\n {\n if (shape == null) {\n return null;\n }\n\n BasicSliceInput input = shape.getInput();\n int geometryType = input.readByte();\n if (geometryType != GeometryUtils.GeometryTypeName.GEOMETRY_COLLECTION.code()) {\n return readGeometry(input);\n }\n\n if (input.available() == 0) {\n return GEOMETRY_FACTORY.createGeometryCollection();\n }\n\n // GeometryCollection: geometry-type|len-of-shape1|bytes-of-shape1|len-of-shape2|bytes-of-shape2...\n List<Geometry> geometries = new ArrayList<>();\n while (input.available() > 0) {\n int length = input.readInt();\n geometries.add(readGeometry(input.readSlice(length).getInput()));\n }\n\n return GEOMETRY_FACTORY.createGeometryCollection(geometries.toArray(new Geometry[0]));\n }",
"public Shape cloverShape(String node_coord, float size) {\n Point2D point = nodeToPoint(node_coord);\n return Utils.createClover((float) point.getX(), (float) point.getY(), size, size);\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector3, godot.wire.Wire.Vector3.Builder, godot.wire.Wire.Vector3OrBuilder> \n getSizeFieldBuilder() {\n if (sizeBuilder_ == null) {\n sizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector3, godot.wire.Wire.Vector3.Builder, godot.wire.Wire.Vector3OrBuilder>(\n getSize(),\n getParentForChildren(),\n isClean());\n size_ = null;\n }\n return sizeBuilder_;\n }",
"public void selectSize(String size) {\n\t\ttry {\n\t\t\tString xpathSizeElement = \"//div[@id='e1-22']/div[@class='pnl-b pad-bottom']/div/a/span[@class='cbx' and text()='\"\n\t\t\t\t\t+ size + \"'] /preceding-sibling::input\";\n\n\t\t\tWebElement inputSizeElement = driver.findElement(By.xpath(xpathSizeElement));\n\t\t\tinputSizeElement.click();\n\n\t\t\t// Print the number of results\n\t\t\tString resultsMessage = String.format(\"---The results number is: %s\", spn_ResultsNumber.getText());\n\t\t\tSystem.out.println(resultsMessage);\n\t\t} catch (Exception | AssertionError e) {\n\t\t\tString errorMessage = String.format(\"An error ocurred while selecting the size\", e.getMessage());\n\t\t\tthrow new Error(errorMessage);\n\t\t}\n\t}",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector2, godot.wire.Wire.Vector2.Builder, godot.wire.Wire.Vector2OrBuilder> \n getSizeFieldBuilder() {\n if (sizeBuilder_ == null) {\n sizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector2, godot.wire.Wire.Vector2.Builder, godot.wire.Wire.Vector2OrBuilder>(\n getSize(),\n getParentForChildren(),\n isClean());\n size_ = null;\n }\n return sizeBuilder_;\n }",
"private static Vector emptyVector (int size)\n\t{\n\t\tVector v = new Vector ();\n\t\tfor (int i=0; i <= size; i++)\n\t\t{\n\t\t\tv.add (i, \"\");\n\t\t}\n\t\treturn v;\n\n\t}",
"public GCross(double size) {\n\t\t// Your code starts here\n\t\t\n\t\t// Your code ends here\n\t}",
"public double adjustSize(double sizePoint){\n return sizePoint*facteurSize;\n }",
"public Builder mergeSize(godot.wire.Wire.Vector2 value) {\n if (sizeBuilder_ == null) {\n if (size_ != null) {\n size_ =\n godot.wire.Wire.Vector2.newBuilder(size_).mergeFrom(value).buildPartial();\n } else {\n size_ = value;\n }\n onChanged();\n } else {\n sizeBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public Vector2D toRect()\n {\n return new Vector2D(this.x * Math.cos(this.y), this.x * Math.sin(this.y));\n }",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public static Tuple size(int size, Comparable value) {\n Tuple result = new Tuple();\n\n for (int i = 0; i < size; i++)\n result.add(value);\n\n return result;\n }",
"int[] shape(){\n int[] dimensions = new int[2];\n dimensions[0] = this.rows;\n dimensions[1] = this.cols;\n return dimensions;\n }",
"public boolean setShapeSize(DimensionF shapeSize) {\n if (ObjectUtils.equals(this.shapeSize, shapeSize))\n return false;\n this.shapeSize = shapeSize;\n return true;\n }",
"public XYPoint getMapSize();",
"public Vector2d simDrawWrapped(String str, double size, double limit) {\n List<String> lst = split(str, limit * mcFont().FONT_HEIGHT / size);\n return new Vector2d(lst.size() == 1 ? strLen(str, size) : limit, size * lst.size());\n }",
"public abstract float getSquareSize();",
"public Shape getRotatedBounds(final Point2D pos,\n final int hpos, final int vpos, final double theta) {\n final AffineTransform at = AffineTransform.getTranslateInstance(\n pos.getX(), pos.getY());\n at.rotate(theta);\n at.translate(getHorizontalOffset(hpos), getVerticalOffset(vpos, true));\n return at.createTransformedShape(bbox);\n }",
"public static IntegerVarArray make(int size, PrimArray from, int sourceOffset, int count, int destOffset) {\n\t\treturn new IntegerVarArray(size, from, sourceOffset, count, destOffset);\n\t}",
"public int getVectorSize() { throw new RuntimeException(\"Stub!\"); }",
"public Vector3f getDimensions();"
] |
[
"0.69238985",
"0.5134506",
"0.5050323",
"0.5018364",
"0.48899573",
"0.48853767",
"0.48821846",
"0.47848722",
"0.47427043",
"0.4691796",
"0.46914145",
"0.46824372",
"0.4661876",
"0.46598852",
"0.46418178",
"0.4641011",
"0.4640981",
"0.4639678",
"0.46325466",
"0.4626547",
"0.46169838",
"0.4611749",
"0.4596929",
"0.45893976",
"0.4563204",
"0.4561107",
"0.45556584",
"0.45436963",
"0.45390776",
"0.4537021",
"0.451131",
"0.4471024",
"0.44696668",
"0.44674635",
"0.44665366",
"0.44613102",
"0.44504791",
"0.44359538",
"0.44357798",
"0.44352552",
"0.44263873",
"0.44032022",
"0.43948954",
"0.43667555",
"0.43552405",
"0.4346094",
"0.43452576",
"0.4341847",
"0.43337235",
"0.4333297",
"0.43294743",
"0.43276775",
"0.43274724",
"0.43230072",
"0.43175235",
"0.43053868",
"0.42739892",
"0.42420223",
"0.4241519",
"0.42393196",
"0.42393196",
"0.42371953",
"0.42356357",
"0.423156",
"0.42277235",
"0.42256454",
"0.4217735",
"0.4196237",
"0.419471",
"0.41807494",
"0.41710576",
"0.41708836",
"0.41707012",
"0.41636616",
"0.41623414",
"0.41608173",
"0.41538453",
"0.41532916",
"0.41462022",
"0.41443196",
"0.41426098",
"0.41423413",
"0.413296",
"0.41315088",
"0.4130152",
"0.41197887",
"0.41071722",
"0.4105795",
"0.409533",
"0.40891987",
"0.40762857",
"0.40705362",
"0.40681365",
"0.40677476",
"0.40640548",
"0.40588075",
"0.40570137",
"0.4056609",
"0.4054016",
"0.40530053"
] |
0.7164742
|
0
|
Converts the given rect to the given shape's coords (returns it for convenience).
|
public RMRect convertRectToShape(RMRect rect, RMShape shape)
{
if(shape==_parent && !isRSS()) { rect.offset(getX(), getY()); return rect; }
return getTransformToShape(shape).transform(rect);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMRect convertedRectToShape(RMRect aRect, RMShape aShape)\n{\n return convertRectToShape(new RMRect(aRect), aShape);\n}",
"public RMRect convertedRectFromShape(RMRect aRect, RMShape aShape)\n{\n return convertRectFromShape(new RMRect(aRect), aShape);\n}",
"public RMRect convertRectFromShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(-getX(), -getY()); return rect; }\n return getTransformFromShape(shape).transform(rect);\n}",
"public static Rectangle toRectangle(int[] rect) {\r\n\t\tRectangle result = new Rectangle(rect[0], rect[1], rect[2], rect[3]);\r\n\t\treturn result;\r\n\t}",
"public abstract Vector getDrawPosition(Rectangle selectionBox);",
"public Vector2D toRect()\n {\n return new Vector2D(this.x * Math.cos(this.y), this.x * Math.sin(this.y));\n }",
"Rectangle getBoundingBox(Rectangle rect);",
"godot.wire.Wire.Rect2 getRect2Value();",
"public void getRect(RectF rectF) {\n float[] fArr = this.coords;\n rectF.set(fArr[0], fArr[1], fArr[2], fArr[7]);\n }",
"private Geometry rectangleToGeometry(Rectangle2D r) {\n return createRectangle(r.getMinX(), r.getMinY(), r.getWidth(),\n r.getHeight());\n }",
"public Rectangle2D translateRectangle( Figure f, Rectangle2D r, Point2D dir);",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public RectangleAdapter(Shapes rect) {\n super(rect);\n //this.rect = (Rectangle)rect;\n }",
"public void setRect(RectF rectF) {\n float[] fArr = this.coords;\n float f = rectF.left;\n fArr[0] = f;\n float f2 = rectF.top;\n fArr[1] = f2;\n float f3 = rectF.right;\n fArr[2] = f3;\n fArr[3] = f2;\n fArr[4] = f3;\n float f4 = rectF.bottom;\n fArr[5] = f4;\n fArr[6] = f;\n fArr[7] = f4;\n }",
"public void fillRectangle(RectangleShape rectangle);",
"godot.wire.Wire.Rect2OrBuilder getRect2ValueOrBuilder();",
"public void strokeRectangle(RectangleShape rectangle);",
"org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto getRect();",
"public Iterable<Point2D> range(RectHV rect) {\n Queue<Point2D> pointsInRect = new Queue<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"rects cannot be null\");\n Queue<Point2D> pts = new Queue<Point2D>();\n range(pts, rect, root, inftyBbox);\n return pts;\n }",
"public Shape getRectangle() {\n return rectangle;\n }",
"public RectangleShape(int xCoord, int yCoord, int widthOfRect, int heightOfRect)\n {\n System.out.println(\"setting x to: \"+ xCoord+\" & setting y to: \"+ yCoord);\n x = xCoord;\n y = yCoord;\n width = widthOfRect;\n height = heightOfRect;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\n \"Null pointer provided instead of a query rectangle\");\n ptsInside = new SET<Point2D>();\n searchForPoints(root, rect);\n return ptsInside;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"Rectangle is null or invalid\");\n points = new ArrayList<>();\n if (root == null) return points;\n searchRange(root, rect);\n return points;\n }",
"public Iterable<Point2D> range(RectHV rect) \n\t {\n\t\t if(rect==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t LinkedQueue<Point2D> insidePoints = new LinkedQueue<Point2D>();\n\t\t range(root,rect.xmin(),rect.ymin(),rect.xmax(),rect.ymax(),insidePoints,true);\n\t\t return insidePoints;\n\t }",
"public abstract Vector getPosition(Rectangle selectionBox);",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"private Optional<Rectangle> resolveGenePosition(String chromosome, String startPos,\n String endPos, String strand) {\n if (Strings.isNullOrEmpty(strand)) {\n strand = \"1\";\n }\n Float s = FloatValidator.getInstance().validate(strand);\n Float y1;\n Float y2;\n if (s > 0.0) {\n y1 = FloatValidator.getInstance().validate(startPos);\n y2 = FloatValidator.getInstance().validate(endPos);\n } else {\n y1 = FloatValidator.getInstance().validate(endPos) * s;\n y2 = FloatValidator.getInstance().validate(startPos) * s;\n }\n\n // convert X & Y chromosome to numeric values (X=22, Y= 23)\n if (chromosome.toUpperCase().equals(\"X\")) {\n chromosome = \"23\";\n } else if (chromosome.toUpperCase().equals(\"Y\")) {\n chromosome = \"24\";\n }\n Float x1 = FloatValidator.getInstance().validate(chromosome);\n\n if (null == x1 || null == y1 || null == y2) {\n return Optional.empty();\n }\n Float x2 = x1; // pseudo rectangle\n return Optional.of(Geometries.rectangle(x1, y1, x2, y2));\n }",
"public Iterable<Point2D> range(RectHV rect)\n {\n Stack<Point2D> pointsInRect = new Stack<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }",
"Rectangle getRect(){\n \treturn new Rectangle(x,y,70,25);\n }",
"public Rectangle get_rect() {\n\t\treturn new Rectangle(\n\t\t\t\torigin_x+component_x, \n\t\t\t\torigin_y+component_y-component_height+3, \n\t\t\t\tcomponent_width, \n\t\t\t\tcomponent_height\n\t\t\t);\n\t}",
"public ConstRect(final Rectangle2D rect)\r\n {\r\n x = (int) Math.round(rect.getX());\r\n y = (int) Math.round(rect.getY());\r\n width = (int) Math.round(rect.getWidth());\r\n height = (int) Math.round(rect.getHeight());\r\n }",
"public Iterable<Point2D> range(RectHV rect) {\n\t\tif (rect == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tQueue<Point2D> queue = new Queue<Point2D>();\n\t\tStack<Node> stack = new Stack<>();\n\t\tstack.push(root);\n\t\twhile (!stack.isEmpty()) {\n\t\t\tNode nCur = stack.pop();\n\t\t\tPoint2D pCur = nCur.point;\n\t\t\tif (rect.contains(pCur)) {\n\t\t\t\tqueue.enqueue(pCur);\n\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t}\n\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (nCur.bDirection == USING_X) {\n\t\t\t\t\tif (nCur.x < rect.xmin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.x > rect.xmax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (nCur.y < rect.ymin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.y > rect.ymax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn queue;\n\t}",
"@Override\n public COSBase getCOSObject()\n {\n return rectArray;\n }",
"public void drawRect(float[] rect) {\n\t\trect(rect[0], rect[1], rect[2], rect[3]);\n\t}",
"public Rectangle union(Rectangle rect) {\n\t\tint left = Math.min(this.x, rect.x);\n\t\tint top = Math.min(this.y, rect.y);\n\t\tint right = Math.max(this.x + this.width, rect.x + rect.width);\n\t\tint bottom = Math.max(this.y + this.height, rect.y + rect.height);\n\t\treturn new Rectangle(left, top, right - left, bottom - top);\n\t}",
"private static void storeRectangle(Roi roi, MetadataStore store,\n int roiNum, int shape)\n {\n Rectangle bounds = roi.getBounds();\n store.setRectangleX(new Double(bounds.x), roiNum, shape);\n store.setRectangleY(new Double(bounds.y), roiNum, shape);\n store.setRectangleWidth(new Double(bounds.width), roiNum, shape);\n store.setRectangleHeight(new Double(bounds.height), roiNum, shape);\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n List<Point2D> list = new LinkedList<>();\n range(rect, new RectHV(0.0, 0.0, 1.0, 1.0), list, this.root);\n return list;\n }",
"public Rectangle getRectangle() {\r\n return new Rectangle((int) x, (int) y, cwidth, cheight);\r\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }",
"public void a(View view, Rect rect) {\n int[] iArr = new int[2];\n view.getLocationOnScreen(iArr);\n rect.set(iArr[0], iArr[1], iArr[0] + view.getWidth(), iArr[1] + view.getHeight());\n }",
"private Rect convertRectToCamera2(Rect crop_rect, Rect rect) {\n double left_f = (rect.left + 1000) / 2000.0;\n double top_f = (rect.top + 1000) / 2000.0;\n double right_f = (rect.right + 1000) / 2000.0;\n double bottom_f = (rect.bottom + 1000) / 2000.0;\n int left = (int) (crop_rect.left + left_f * (crop_rect.width() - 1));\n int right = (int) (crop_rect.left + right_f * (crop_rect.width() - 1));\n int top = (int) (crop_rect.top + top_f * (crop_rect.height() - 1));\n int bottom = (int) (crop_rect.top + bottom_f * (crop_rect.height() - 1));\n left = Math.max(left, crop_rect.left);\n right = Math.max(right, crop_rect.left);\n top = Math.max(top, crop_rect.top);\n bottom = Math.max(bottom, crop_rect.top);\n left = Math.min(left, crop_rect.right);\n right = Math.min(right, crop_rect.right);\n top = Math.min(top, crop_rect.bottom);\n bottom = Math.min(bottom, crop_rect.bottom);\n\n return new Rect(left, top, right, bottom);\n }",
"@Override\n public void setRectangle() {\n switch (direction){\n case 0:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 2:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 1:\n rectangle.setLocation((int)x+13,(int)y+8);\n break;\n case 3:\n rectangle.setLocation((int)x+2,(int)y+8);\n break;\n }\n\n }",
"public abstract int[] getCoords();",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException();\n if (root == null) return new ArrayList<>();\n\n return rangeSubMethod(rect, root);\n }",
"public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }",
"@Override\n\tpublic Rectangle2D getRectangle() {\n\t\treturn rect;\n\t}",
"@SuppressWarnings(\"unused\")\n public static RectF resetRectToOrigin(RectF rect) {\n // Create a new rect\n RectF newRect = new RectF(rect);\n // Reset to origin and return it\n newRect.offset(-newRect.left, -newRect.top);\n return newRect;\n }",
"private Rectangle2D getRectangle(Point2D e) {\n // QUADRANTS (where startPos = (0, 0))\n // 3 | 2\n // ---|---\n // 4 | 1\n\n double aspectRatio = (double) this.panel.getWidth() / (double) this.panel.getHeight();\n double width = Math.abs(e.getX() - this.startPos.getX());\n double height = Math.abs(e.getY() - this.startPos.getY());\n double x, y;\n\n // Ensure zoom box maintains same aspect ratio as image panel\n if (width / aspectRatio < height) {\n height = width / aspectRatio;\n } else {\n width = height * aspectRatio;\n }\n\n // Check which quadrant we are in\n // Then set the top left coordinate, whilst fixing one coordinate to the start position\n\n // Quadrant 1:\n if (this.startPos.getX() < e.getX() && this.startPos.getY() < e.getY()) {\n x = this.startPos.getX();\n y = this.startPos.getY();\n\n // Quadrant 2:\n } else if (this.startPos.getX() < e.getX() && this.startPos.getY() > e.getY()) {\n x = this.startPos.getX();\n y = this.startPos.getY() - height;\n\n // Quadrant 3:\n } else if (this.startPos.getX() > e.getX() && this.startPos.getY() > e.getY()) {\n x = this.startPos.getX() - width;\n y = this.startPos.getY() - height;\n\n // Quadrant 4:\n } else if (this.startPos.getX() > e.getX() && this.startPos.getY() < e.getY()) {\n x = this.startPos.getX() - width;\n y = this.startPos.getY();\n } else {\n\n // Width and/or height are 0, don't draw a box\n return null;\n }\n\n return new Rectangle2D.Double(x, y, width, height);\n }",
"public Rect(int xPos,int yPos,int rectWidth,int rectHeight,Color rectColor) {\n \tsuper(rectColor);\n \tx = xPos;\n \ty = yPos;\n \twidth = rectWidth;\n \theight = rectHeight;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n checkNull(rect);\n LinkedList<Point2D> pointList = new LinkedList<Point2D>();\n\n range(rect, root, pointList);\n\n return pointList;\n }",
"public Rectangle toRectangle()\r\n {\r\n return new Rectangle(x, y, width, height);\r\n }",
"public static S2LatLngRect getBoundingLatLngRect(final GeoRectangle geoRectangle) {\n final GeoPoint minPoint = geoRectangle.getBottomLeft();\n final GeoPoint maxPoint = geoRectangle.getTopRight();\n\n if (minPoint != null && maxPoint != null) {\n final S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());\n final S2LatLng maxLatLng = S2LatLng.fromDegrees(maxPoint.getLatitude(), maxPoint.getLongitude());\n return new S2LatLngRect(minLatLng, maxLatLng);\n } else {\n throw new IllegalArgumentException(\"min and max points must exist!!!\");\n }\n }",
"public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> result = new SET<Point2D>();\n if (root == null) {\n return result;\n }\n\n range(root, rect, result);\n return result;\n }",
"public void drawRect(float[] rect) {\n\t\tparent.rect(rect[0], rect[1], rect[2], rect[3]);\n\t}",
"public void roundedRect(ShapeRenderer sr, float x, float y, float width, float height, float radius) {\n if(radius <= 0) {\n sr.rect(x, y, width, height);\n } else {\n // Central rectangle\n sr.rect(x + radius, y + radius, width - 2 * radius, height - 2 * radius);\n\n // Four side rectangles, in clockwise order\n sr.rect(x + radius, y, width - 2 * radius, radius);\n sr.rect(x + width - radius, y + radius, radius, height - 2 * radius);\n sr.rect(x + radius, y + height - radius, width - 2 * radius, radius);\n sr.rect(x, y + radius, radius, height - 2 * radius);\n\n // Four arches, clockwise too\n sr.arc(x + radius, y + radius, radius, 180f, 90f);\n sr.arc(x + width - radius, y + radius, radius, 270f, 90f);\n sr.arc(x + width - radius, y + height - radius, radius, 0f, 90f);\n sr.arc(x + radius, y + height - radius, radius, 90f, 90f);\n }\n }",
"public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }",
"public position convertToPosition(){\n\t\tdouble x = r * Math.cos(theta);\n\t\tdouble y = r * Math.sin(theta);\n\t\treturn new position(x, y);\n\t}",
"public Rectangle getShape(){\n return myRectangle;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }",
"private Rectangle integerise(Rectangle2D rect) {\n\t\tint x0 = (int) Math.ceil(rect.getMinX());\n\t\tint y0 = (int) Math.ceil(rect.getMinY());\n\t\tint x1 = (int) Math.floor(rect.getMaxX());\n\t\tint y1 = (int) Math.floor(rect.getMaxY());\n\t\treturn new Rectangle(x0, y0, (x1 - x0), (y1 - y0));\n\t}",
"RectangleLatLng getBounds();",
"public static Vector2D getRandInPoint(Bounds rect)\n\t{\n\t\tfloat x = getRandomFloat(rect.getX(), rect.getX() + rect.getWidth());\n\t\tfloat y = getRandomFloat(rect.getY(), rect.getY() + rect.getHeight());\n\t\treturn new Vector2D(x, y);\n\t}",
"public void updateShape(final Point pos)\n\t\t{\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tobj = new Rectangle(pos.x-(coords[2]/2)-3,pos.y-(coords[3]/2)-3,coords[2]+3,coords[3]+3);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[2]/2)-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[3]/2)-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tobj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t}",
"public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (isEmpty())\n return null;\n IntersectingPoints ip = new IntersectingPoints(rect);\n return new KdTreeIterable(ip.intersecting, ip.lenIntersecting);\n }",
"public boolean intersects(Circle2D circle, Rectangle2D rect) {\n\t\tfinal double radiusSquared = circle.getRadius() * circle.getRadius();\n\n\t\t/* translate coordinates, placing circle at origin */\n\t\tfinal Rectangle2D.Double r = new Rectangle2D.Double(rect.getX()\n\t\t\t\t- circle.getCenterX(), rect.getY() - circle.getCenterY(), rect\n\t\t\t\t.getWidth(), rect.getHeight());\n\n\t\tif (r.getMaxX() < 0) {\n\t\t\t/* rectangle to left of circle center */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle in lower left corner */\n\t\t\t\treturn ((r.getMaxX() * r.getMaxX() + r.getMaxY() * r.getMaxY()) < radiusSquared);\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle in upper left corner */\n\t\t\t\treturn ((r.getMaxX() * r.getMaxX() + r.getMinY() * r.getMinY()) < radiusSquared);\n\t\t\t} else {\n\t\t\t\t/* rectangle due west of circle */\n\t\t\t\treturn (Math.abs(r.getMaxX()) < circle.getRadius());\n\t\t\t}\n\t\t} else if (r.getMinX() > 0) {\n\t\t\t/* rectangle to right of circle center */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle in lower right corner */\n\t\t\t\treturn ((r.getMinX() * r.getMinX() + r.getMaxY() * r.getMaxY()) < radiusSquared);\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle in upper right corner */\n\t\t\t\treturn ((r.getMinX() * r.getMinX() + r.getMinY() * r.getMinY()) <= radiusSquared);\n\t\t\t} else {\n\t\t\t\t/* rectangle due east of circle */\n\t\t\t\treturn (r.getMinX() <= circle.getRadius());\n\t\t\t}\n\t\t} else {\n\t\t\t/* rectangle on circle vertical centerline */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle due south of circle */\n\t\t\t\treturn (Math.abs(r.getMaxY()) < circle.getRadius());\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle due north of circle */\n\t\t\t\treturn (r.getMinY() <= circle.getRadius());\n\t\t\t} else {\n\t\t\t\t/* rectangle contains circle center point */\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}",
"public Iterable<Point2D> range(RectHV rect) {\n\n\t\tif (rect == null)\n\t\t\tthrow new NullPointerException(\"Rectangle can not be null\");\n\n\t\tQueue<Point2D> rangeQueue = new Queue<Point2D>();\n\t\trange(rect, rangeQueue, root);\n\t\treturn rangeQueue;\n\n\t}",
"private Geometry createRectangle(double x, double y, double w, double h) {\n Coordinate[] coords = {\n new Coordinate(x, y), new Coordinate(x, y + h),\n new Coordinate(x + w, y + h), new Coordinate(x + w, y),\n new Coordinate(x, y)\n };\n LinearRing lr = geometry.getFactory().createLinearRing(coords);\n\n return geometry.getFactory().createPolygon(lr, null);\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"range: RectHV is null\");\n Queue<Point2D> q = new Queue<>();\n rangeSearch(root, rect, q);\n return q;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn (\"rect(\" + corner.x + \", \" + corner.y + \", \" + size.x + \", \"\n\t\t\t\t+ size.y + \")\");\n\t}",
"public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }",
"public RectangleFromGeometricObject(double width, double height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t}",
"public Rectangle(Rectangle rect) {\n\t\tsuper(rect.getX(),rect.getY(),rect.getWidth(),rect.getHeight(),rect.getColour());\n\t}",
"@ApiModelProperty(value = \"Rectangle area where searched original text.\")\n public Rectangle getRect() {\n return rect;\n }",
"public Location convToImageCoords(Location loc) {\n return new Location((int)convUnits(loc.getxCoord(), canvas.getWidth(), getMaxX()),\n (int)convUnits(loc.getyCoord(), canvas.getHeight(), getMaxY()),\n loc.getLevel(), loc.getBuilding());\n }",
"Rectangle getBounds();",
"public ConstRect(final ConstRect rect)\r\n {\r\n x = rect.x;\r\n y = rect.y;\r\n width = rect.width;\r\n height = rect.height;\r\n }",
"public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Utils.parallelize(getPointDetails().stream(), useParallelStreaming)\n\t\t\t\t.filter(p->rect.contains(p.location))\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public Shape getRotatedBounds(final Point2D pos,\n final int hpos, final int vpos, final double theta) {\n final AffineTransform at = AffineTransform.getTranslateInstance(\n pos.getX(), pos.getY());\n at.rotate(theta);\n at.translate(getHorizontalOffset(hpos), getVerticalOffset(vpos, true));\n return at.createTransformedShape(bbox);\n }",
"protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}",
"void storeObject(RectangleLatLng rectangle, String id);",
"public void drawRect(int x, int y, int width, int height);",
"public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public void strokeRectangle(int x, int y, int width, int height);",
"public boolean intersects(Rectangle rect){\n\t\tRectangle rectIntersect = (Rectangle) rect.clone();\n\t\trectIntersect.translate(-x, -y);\n\t\treturn rectangle.intersects(rectIntersect);\n\t}",
"public Rectangle getRectangle();",
"public Rectangle2D getRectangle() {\n return Util.getRectangle(getLocation(), size);\n }",
"public Rectangle getShape() \n\t{\n\t\treturn box;\n\t}",
"public Coordinates getCoordinates()\r\n {\r\n return new Coordinates(r.getX(), r.getY());\r\n }",
"public List<Point> rangeSearch(Rectangle rect) {\n\t\tif (rect == null) {\n System.out.println(\"Rectangle can't be null\");\n\t\t\tSystem.exit(0);\n }\n List<Point> rangePoints = new List<>();\n if (!isEmpty()) {\n range(head, rect, rangePoints);\n }\n return rangePoints;\n\t}",
"private HexaPoint getHitboxCoord(int pos) {\n int x = 0;\n int y = 0;\n int z = 0;\n int coordX = this.coordPion.getX();\n int coordY = this.coordPion.getY();\n int coordZ = this.coordPion.getZ();\n switch (pos) {\n case 0:\n x = coordX;\n y = coordY + 1;\n z = coordZ - 1;\n break;\n case 1:\n x = coordX + 1;\n y = coordY;\n z = coordZ - 1;\n break;\n case 2:\n x = coordX + 1;\n y = coordY - 1;\n z = coordZ;\n break;\n case 3:\n x = coordX;\n y = coordY - 1;\n z = coordZ + 1;\n break;\n case 4:\n x = coordX - 1;\n y = coordY;\n z = coordZ + 1;\n break;\n case 5:\n x = coordX - 1;\n y = coordY + 1;\n z = coordZ;\n break;\n }\n return new HexaPoint(x, y, z);\n }",
"public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}",
"public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}",
"public QuadtreeNode(Rectangle rect) {\n this.rectangle = rect;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }"
] |
[
"0.6249041",
"0.6093723",
"0.5972085",
"0.57727003",
"0.56071043",
"0.55877894",
"0.54214627",
"0.5379538",
"0.5355569",
"0.53543746",
"0.5322162",
"0.5273385",
"0.5171778",
"0.5125832",
"0.5115838",
"0.507811",
"0.50412667",
"0.50289667",
"0.5026886",
"0.5021035",
"0.5011264",
"0.49892452",
"0.49764362",
"0.4976203",
"0.49733207",
"0.4958228",
"0.49572003",
"0.49502566",
"0.49453282",
"0.49256665",
"0.4922397",
"0.49104747",
"0.4905779",
"0.48949727",
"0.48945516",
"0.48731485",
"0.48718855",
"0.48651433",
"0.48637435",
"0.4863731",
"0.48522094",
"0.48457006",
"0.48358423",
"0.48355865",
"0.4828467",
"0.4823033",
"0.48165795",
"0.4808219",
"0.48031774",
"0.47962454",
"0.47953895",
"0.47944632",
"0.47910228",
"0.47909287",
"0.47826135",
"0.4777304",
"0.47770095",
"0.47706485",
"0.4758448",
"0.47543982",
"0.47480434",
"0.4746337",
"0.47391784",
"0.4735719",
"0.470997",
"0.47057244",
"0.46935818",
"0.46739596",
"0.4669101",
"0.4668373",
"0.46679223",
"0.4666072",
"0.46441475",
"0.46435997",
"0.46428755",
"0.4632078",
"0.46228924",
"0.46227607",
"0.4619138",
"0.46185562",
"0.46095598",
"0.46070316",
"0.46029645",
"0.45986617",
"0.45857832",
"0.45818275",
"0.45669302",
"0.45638353",
"0.45613408",
"0.4558846",
"0.45480135",
"0.45451722",
"0.45369032",
"0.45345384",
"0.4532658",
"0.45288962",
"0.452425",
"0.45208102",
"0.45178512",
"0.45080808"
] |
0.616735
|
1
|
Converts the given rect from the given shape's coords (returns it for convenience).
|
public RMRect convertRectFromShape(RMRect rect, RMShape shape)
{
if(shape==_parent && !isRSS()) { rect.offset(-getX(), -getY()); return rect; }
return getTransformFromShape(shape).transform(rect);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMRect convertedRectToShape(RMRect aRect, RMShape aShape)\n{\n return convertRectToShape(new RMRect(aRect), aShape);\n}",
"public RMRect convertedRectFromShape(RMRect aRect, RMShape aShape)\n{\n return convertRectFromShape(new RMRect(aRect), aShape);\n}",
"public RMRect convertRectToShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(getX(), getY()); return rect; }\n return getTransformToShape(shape).transform(rect);\n}",
"public static Rectangle toRectangle(int[] rect) {\r\n\t\tRectangle result = new Rectangle(rect[0], rect[1], rect[2], rect[3]);\r\n\t\treturn result;\r\n\t}",
"godot.wire.Wire.Rect2 getRect2Value();",
"private Geometry rectangleToGeometry(Rectangle2D r) {\n return createRectangle(r.getMinX(), r.getMinY(), r.getWidth(),\n r.getHeight());\n }",
"public Vector2D toRect()\n {\n return new Vector2D(this.x * Math.cos(this.y), this.x * Math.sin(this.y));\n }",
"Rectangle getBoundingBox(Rectangle rect);",
"godot.wire.Wire.Rect2OrBuilder getRect2ValueOrBuilder();",
"public Rectangle2D translateRectangle( Figure f, Rectangle2D r, Point2D dir);",
"public RectangleAdapter(Shapes rect) {\n super(rect);\n //this.rect = (Rectangle)rect;\n }",
"public void getRect(RectF rectF) {\n float[] fArr = this.coords;\n rectF.set(fArr[0], fArr[1], fArr[2], fArr[7]);\n }",
"public Rectangle toRectangle()\r\n {\r\n return new Rectangle(x, y, width, height);\r\n }",
"private Rect convertRectToCamera2(Rect crop_rect, Rect rect) {\n double left_f = (rect.left + 1000) / 2000.0;\n double top_f = (rect.top + 1000) / 2000.0;\n double right_f = (rect.right + 1000) / 2000.0;\n double bottom_f = (rect.bottom + 1000) / 2000.0;\n int left = (int) (crop_rect.left + left_f * (crop_rect.width() - 1));\n int right = (int) (crop_rect.left + right_f * (crop_rect.width() - 1));\n int top = (int) (crop_rect.top + top_f * (crop_rect.height() - 1));\n int bottom = (int) (crop_rect.top + bottom_f * (crop_rect.height() - 1));\n left = Math.max(left, crop_rect.left);\n right = Math.max(right, crop_rect.left);\n top = Math.max(top, crop_rect.top);\n bottom = Math.max(bottom, crop_rect.top);\n left = Math.min(left, crop_rect.right);\n right = Math.min(right, crop_rect.right);\n top = Math.min(top, crop_rect.bottom);\n bottom = Math.min(bottom, crop_rect.bottom);\n\n return new Rect(left, top, right, bottom);\n }",
"org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto getRect();",
"Rectangle getRect(){\n \treturn new Rectangle(x,y,70,25);\n }",
"private Rectangle integerise(Rectangle2D rect) {\n\t\tint x0 = (int) Math.ceil(rect.getMinX());\n\t\tint y0 = (int) Math.ceil(rect.getMinY());\n\t\tint x1 = (int) Math.floor(rect.getMaxX());\n\t\tint y1 = (int) Math.floor(rect.getMaxY());\n\t\treturn new Rectangle(x0, y0, (x1 - x0), (y1 - y0));\n\t}",
"private static void storeRectangle(Roi roi, MetadataStore store,\n int roiNum, int shape)\n {\n Rectangle bounds = roi.getBounds();\n store.setRectangleX(new Double(bounds.x), roiNum, shape);\n store.setRectangleY(new Double(bounds.y), roiNum, shape);\n store.setRectangleWidth(new Double(bounds.width), roiNum, shape);\n store.setRectangleHeight(new Double(bounds.height), roiNum, shape);\n }",
"public void fillRectangle(RectangleShape rectangle);",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"private Optional<Rectangle> resolveGenePosition(String chromosome, String startPos,\n String endPos, String strand) {\n if (Strings.isNullOrEmpty(strand)) {\n strand = \"1\";\n }\n Float s = FloatValidator.getInstance().validate(strand);\n Float y1;\n Float y2;\n if (s > 0.0) {\n y1 = FloatValidator.getInstance().validate(startPos);\n y2 = FloatValidator.getInstance().validate(endPos);\n } else {\n y1 = FloatValidator.getInstance().validate(endPos) * s;\n y2 = FloatValidator.getInstance().validate(startPos) * s;\n }\n\n // convert X & Y chromosome to numeric values (X=22, Y= 23)\n if (chromosome.toUpperCase().equals(\"X\")) {\n chromosome = \"23\";\n } else if (chromosome.toUpperCase().equals(\"Y\")) {\n chromosome = \"24\";\n }\n Float x1 = FloatValidator.getInstance().validate(chromosome);\n\n if (null == x1 || null == y1 || null == y2) {\n return Optional.empty();\n }\n Float x2 = x1; // pseudo rectangle\n return Optional.of(Geometries.rectangle(x1, y1, x2, y2));\n }",
"public abstract Vector getDrawPosition(Rectangle selectionBox);",
"public Rectangle union(Rectangle rect) {\n\t\tint left = Math.min(this.x, rect.x);\n\t\tint top = Math.min(this.y, rect.y);\n\t\tint right = Math.max(this.x + this.width, rect.x + rect.width);\n\t\tint bottom = Math.max(this.y + this.height, rect.y + rect.height);\n\t\treturn new Rectangle(left, top, right - left, bottom - top);\n\t}",
"public RectangleFromGeometricObject(double width, double height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t}",
"@java.lang.SuppressWarnings({\"ReferenceEquality\"})\n private void mergeRect(org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto value) {\n value.getClass();\n if (rect_ != null &&\n rect_ != org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto.getDefaultInstance()) {\n rect_ =\n org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto.newBuilder(rect_).mergeFrom(value).buildPartial();\n } else {\n rect_ = value;\n }\n bitField0_ |= 0x00000001;\n }",
"public ConstRect(final Rectangle2D rect)\r\n {\r\n x = (int) Math.round(rect.getX());\r\n y = (int) Math.round(rect.getY());\r\n width = (int) Math.round(rect.getWidth());\r\n height = (int) Math.round(rect.getHeight());\r\n }",
"private Geometry createRectangle(double x, double y, double w, double h) {\n Coordinate[] coords = {\n new Coordinate(x, y), new Coordinate(x, y + h),\n new Coordinate(x + w, y + h), new Coordinate(x + w, y),\n new Coordinate(x, y)\n };\n LinearRing lr = geometry.getFactory().createLinearRing(coords);\n\n return geometry.getFactory().createPolygon(lr, null);\n }",
"@SuppressWarnings(\"unused\")\n public static RectF resetRectToOrigin(RectF rect) {\n // Create a new rect\n RectF newRect = new RectF(rect);\n // Reset to origin and return it\n newRect.offset(-newRect.left, -newRect.top);\n return newRect;\n }",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public Shape getRectangle() {\n return rectangle;\n }",
"@java.lang.Override\n public godot.wire.Wire.Rect2 getRect2Value() {\n if (rect2ValueBuilder_ == null) {\n if (typeCase_ == 7) {\n return (godot.wire.Wire.Rect2) type_;\n }\n return godot.wire.Wire.Rect2.getDefaultInstance();\n } else {\n if (typeCase_ == 7) {\n return rect2ValueBuilder_.getMessage();\n }\n return godot.wire.Wire.Rect2.getDefaultInstance();\n }\n }",
"public Rectangle get_rect() {\n\t\treturn new Rectangle(\n\t\t\t\torigin_x+component_x, \n\t\t\t\torigin_y+component_y-component_height+3, \n\t\t\t\tcomponent_width, \n\t\t\t\tcomponent_height\n\t\t\t);\n\t}",
"public Rectangle getRectangle() {\r\n return new Rectangle((int) x, (int) y, cwidth, cheight);\r\n }",
"public void strokeRectangle(RectangleShape rectangle);",
"private RectHV rightRect(RectHV rect, Node h) {\n\t\tif(h.isVertical) { // right rect\r\n\t\t\treturn new RectHV(h.p.x(), rect.ymin(), rect.xmax(), rect.ymax());\r\n\t\t} else { // top rect\r\n\t\t\treturn new RectHV(rect.xmin(), h.p.y(), rect.xmax(), rect.ymax());\r\n\t\t}\r\n\t}",
"protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}",
"public Shape getRotatedBounds(final Point2D pos,\n final int hpos, final int vpos, final double theta) {\n final AffineTransform at = AffineTransform.getTranslateInstance(\n pos.getX(), pos.getY());\n at.rotate(theta);\n at.translate(getHorizontalOffset(hpos), getVerticalOffset(vpos, true));\n return at.createTransformedShape(bbox);\n }",
"Rectangle mapDestRect(Long id, Rectangle destRect, int sourceIndex)\n\tthrows RemoteException;",
"public void setRect(RectF rectF) {\n float[] fArr = this.coords;\n float f = rectF.left;\n fArr[0] = f;\n float f2 = rectF.top;\n fArr[1] = f2;\n float f3 = rectF.right;\n fArr[2] = f3;\n fArr[3] = f2;\n fArr[4] = f3;\n float f4 = rectF.bottom;\n fArr[5] = f4;\n fArr[6] = f;\n fArr[7] = f4;\n }",
"@Override\n\tpublic Rectangle2D getRectangle() {\n\t\treturn rect;\n\t}",
"public PDRectangle createRetranslatedRectangle()\n {\n PDRectangle retval = new PDRectangle();\n retval.setUpperRightX( getWidth() );\n retval.setUpperRightY( getHeight() );\n return retval;\n }",
"@java.lang.Override\n public godot.wire.Wire.Rect2 getRect2Value() {\n if (typeCase_ == 7) {\n return (godot.wire.Wire.Rect2) type_;\n }\n return godot.wire.Wire.Rect2.getDefaultInstance();\n }",
"public RectangleShape(int xCoord, int yCoord, int widthOfRect, int heightOfRect)\n {\n System.out.println(\"setting x to: \"+ xCoord+\" & setting y to: \"+ yCoord);\n x = xCoord;\n y = yCoord;\n width = widthOfRect;\n height = heightOfRect;\n }",
"public Rect(int xPos,int yPos,int rectWidth,int rectHeight,Color rectColor) {\n \tsuper(rectColor);\n \tx = xPos;\n \ty = yPos;\n \twidth = rectWidth;\n \theight = rectHeight;\n }",
"public void updateShape(final Point pos)\n\t\t{\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tobj = new Rectangle(pos.x-(coords[2]/2)-3,pos.y-(coords[3]/2)-3,coords[2]+3,coords[3]+3);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[2]/2)-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[3]/2)-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tobj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t}",
"public static S2LatLngRect getBoundingLatLngRect(final GeoRectangle geoRectangle) {\n final GeoPoint minPoint = geoRectangle.getBottomLeft();\n final GeoPoint maxPoint = geoRectangle.getTopRight();\n\n if (minPoint != null && maxPoint != null) {\n final S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());\n final S2LatLng maxLatLng = S2LatLng.fromDegrees(maxPoint.getLatitude(), maxPoint.getLongitude());\n return new S2LatLngRect(minLatLng, maxLatLng);\n } else {\n throw new IllegalArgumentException(\"min and max points must exist!!!\");\n }\n }",
"public Rectangle getRectangle(String key) {\n\t\tRectangle defaultValue = (Rectangle) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tRectangle result = new Rectangle();\n\t\ttry {\n\t\t\tint x, y, w, h;\n\t\t\tString token;\n\t\t\tStringTokenizer st = new StringTokenizer(sp, \" \", false);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\t// the value is not correctly formated => remove it\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\tx = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\ty = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\tw = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\th = Integer.parseInt(token);\n\t\t\tresult.setBounds(x, y, w, h);\n\t\t\treturn result;\n\t\t} catch (NumberFormatException e) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t}",
"public Rectangle getRectangle();",
"public void roundedRect(ShapeRenderer sr, float x, float y, float width, float height, float radius) {\n if(radius <= 0) {\n sr.rect(x, y, width, height);\n } else {\n // Central rectangle\n sr.rect(x + radius, y + radius, width - 2 * radius, height - 2 * radius);\n\n // Four side rectangles, in clockwise order\n sr.rect(x + radius, y, width - 2 * radius, radius);\n sr.rect(x + width - radius, y + radius, radius, height - 2 * radius);\n sr.rect(x + radius, y + height - radius, width - 2 * radius, radius);\n sr.rect(x, y + radius, radius, height - 2 * radius);\n\n // Four arches, clockwise too\n sr.arc(x + radius, y + radius, radius, 180f, 90f);\n sr.arc(x + width - radius, y + radius, radius, 270f, 90f);\n sr.arc(x + width - radius, y + height - radius, radius, 0f, 90f);\n sr.arc(x + radius, y + height - radius, radius, 90f, 90f);\n }\n }",
"public Rectangle getShape(){\n return myRectangle;\n }",
"public Rectangle(Rectangle rect) {\n\t\tsuper(rect.getX(),rect.getY(),rect.getWidth(),rect.getHeight(),rect.getColour());\n\t}",
"public ConstRect(final ConstRect rect)\r\n {\r\n x = rect.x;\r\n y = rect.y;\r\n width = rect.width;\r\n height = rect.height;\r\n }",
"private Rectangle2D getRectangle(Point2D e) {\n // QUADRANTS (where startPos = (0, 0))\n // 3 | 2\n // ---|---\n // 4 | 1\n\n double aspectRatio = (double) this.panel.getWidth() / (double) this.panel.getHeight();\n double width = Math.abs(e.getX() - this.startPos.getX());\n double height = Math.abs(e.getY() - this.startPos.getY());\n double x, y;\n\n // Ensure zoom box maintains same aspect ratio as image panel\n if (width / aspectRatio < height) {\n height = width / aspectRatio;\n } else {\n width = height * aspectRatio;\n }\n\n // Check which quadrant we are in\n // Then set the top left coordinate, whilst fixing one coordinate to the start position\n\n // Quadrant 1:\n if (this.startPos.getX() < e.getX() && this.startPos.getY() < e.getY()) {\n x = this.startPos.getX();\n y = this.startPos.getY();\n\n // Quadrant 2:\n } else if (this.startPos.getX() < e.getX() && this.startPos.getY() > e.getY()) {\n x = this.startPos.getX();\n y = this.startPos.getY() - height;\n\n // Quadrant 3:\n } else if (this.startPos.getX() > e.getX() && this.startPos.getY() > e.getY()) {\n x = this.startPos.getX() - width;\n y = this.startPos.getY() - height;\n\n // Quadrant 4:\n } else if (this.startPos.getX() > e.getX() && this.startPos.getY() < e.getY()) {\n x = this.startPos.getX() - width;\n y = this.startPos.getY();\n } else {\n\n // Width and/or height are 0, don't draw a box\n return null;\n }\n\n return new Rectangle2D.Double(x, y, width, height);\n }",
"public Builder setRect2Value(\n godot.wire.Wire.Rect2.Builder builderForValue) {\n if (rect2ValueBuilder_ == null) {\n type_ = builderForValue.build();\n onChanged();\n } else {\n rect2ValueBuilder_.setMessage(builderForValue.build());\n }\n typeCase_ = 7;\n return this;\n }",
"protected Rectangle convertFromPixelToCharacter(SelectionLayer layer, Rectangle rectangleInPixel)\n {\n return layer.getComponent().convertFromPixelToCharacter(rectangleInPixel);\n }",
"public Rectangle modelToView(JTextComponent t, int pos)\n/* */ throws BadLocationException\n/* */ {\n/* 331 */ return modelToView(t, pos, Position.Bias.Forward);\n/* */ }",
"public Rectangle2D getRectangle() {\n return Util.getRectangle(getLocation(), size);\n }",
"Rectangle getBounds();",
"public X computeRect(Rectangle visibleRect) {\n component.computeVisibleRect(visibleRect);\n return (X) this;\n }",
"private static Rect readRect(String s) {\n\t\tScanner line = new Scanner(s);\n\n\t\tint x = line.nextInt();\n\t\tint y = line.nextInt();\n\t\tint vx = line.nextInt();\n\t\tint vy = line.nextInt();\n\t\tboolean isFilled = line.nextBoolean();\n\t\tint width = line.nextInt();\n\t\tint height = line.nextInt();\n\t\tColor colour = Color.rgb(line.nextInt(), line.nextInt(), line.nextInt());\n\t\tint insertionTime = line.nextInt();\n\t\tboolean willPulse = line.nextBoolean();\n\t\tline.close();\n\n\t\treturn new Rect(insertionTime, x, y, vx, vy, width, height, colour, isFilled, willPulse);\n\t}",
"public Rectangle2D getBounds(final Point2D pos, final int hpos, final int vpos) {\n return new Rectangle2D.Double(pos.getX() + getHorizontalOffset(hpos) + bbox.getX(),\n pos.getY() + getVerticalOffset(vpos, true) + bbox.getY(),\n bbox.getWidth(), bbox.getHeight());\n }",
"@Override\n\tpublic String toString() {\n\t\treturn (\"rect(\" + corner.x + \", \" + corner.y + \", \" + size.x + \", \"\n\t\t\t\t+ size.y + \")\");\n\t}",
"public void a(View view, Rect rect) {\n int[] iArr = new int[2];\n view.getLocationOnScreen(iArr);\n rect.set(iArr[0], iArr[1], iArr[0] + view.getWidth(), iArr[1] + view.getHeight());\n }",
"@java.lang.Override\n public godot.wire.Wire.Rect2OrBuilder getRect2ValueOrBuilder() {\n if ((typeCase_ == 7) && (rect2ValueBuilder_ != null)) {\n return rect2ValueBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 7) {\n return (godot.wire.Wire.Rect2) type_;\n }\n return godot.wire.Wire.Rect2.getDefaultInstance();\n }\n }",
"@Override\n public COSBase getCOSObject()\n {\n return rectArray;\n }",
"private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }",
"boolean hasRect2Value();",
"public abstract void clipRect(int x, int y, int width, int height);",
"Rectangle getCollisionRectangle();",
"Rectangle getCollisionRectangle();",
"public void setBounds(Rectangle2D aRect)\n{\n setBounds(aRect.getX(), aRect.getY(), aRect.getWidth(), aRect.getHeight());\n}",
"public RMPath convertPathToShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformToShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"private void setRect(org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto value) {\n value.getClass();\n rect_ = value;\n bitField0_ |= 0x00000001;\n }",
"RectangleLatLng getBounds();",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Rect2OrBuilder getRect2ValueOrBuilder() {\n if (typeCase_ == 7) {\n return (godot.wire.Wire.Rect2) type_;\n }\n return godot.wire.Wire.Rect2.getDefaultInstance();\n }",
"protected void computeRect(Raster[] sources,\n WritableRaster dest,\n Rectangle destRect) {\n // Retrieve format tags.\n RasterFormatTag[] formatTags = getFormatTags();\n\n RasterAccessor src = new RasterAccessor(sources[0], destRect, \n formatTags[0],\n getSourceImage(0).getColorModel());\n RasterAccessor dst = new RasterAccessor(dest, destRect, \n formatTags[1],\n getColorModel());\n\n if(dst.isBinary()) {\n byte[] dstBits = dst.getBinaryDataArray();\n System.arraycopy(src.getBinaryDataArray(), 0,\n dstBits, 0, dstBits.length);\n\n dst.copyBinaryDataToRaster();\n\n\t return;\n }\n\n /* Find out what kind of data type is used to store the image */\n switch ( dst.getDataType() ) {\n case DataBuffer.TYPE_BYTE:\n byteAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getByteDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getByteDataArrays());\n break;\n\n case DataBuffer.TYPE_SHORT:\n shortAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getShortDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getShortDataArrays());\n break;\n\n case DataBuffer.TYPE_USHORT:\n ushortAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getShortDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getShortDataArrays());\n break;\n\n case DataBuffer.TYPE_INT:\n intAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getIntDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getIntDataArrays());\n break;\n\n case DataBuffer.TYPE_FLOAT:\n floatAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getFloatDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getFloatDataArrays());\n break;\n\n case DataBuffer.TYPE_DOUBLE:\n doubleAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getDoubleDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getDoubleDataArrays());\n break;\n }\n if (dst.needsClamping()) {\n dst.clampDataArrays();\n }\n dst.copyDataToRaster();\n }",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public Rectangle getRectangle() {\n if (isFacingRight) {\n return new Rectangle(getX() + R_HORIZ_OFF, getY() + VERT_OFF, SIDE_LEN, SIDE_LEN);\n } else {\n return new Rectangle(getX() + L_HORIZ_OFF, getY() + VERT_OFF, SIDE_LEN, SIDE_LEN);\n }\n }",
"private GRect makeRect(int x, int y) {\r\n\t\treturn (new GRect(x, y, RECT_WIDTH, RECT_HEIGHT));\r\n\t}",
"public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }",
"@ApiModelProperty(value = \"Rectangle area where searched original text.\")\n public Rectangle getRect() {\n return rect;\n }",
"public MyRectangle getRectangle() {\n\t\treturn new MyRectangle(x, y, width, height);\n\t}",
"public Iterable<Point2D> range(RectHV rect) {\n\t\tif (rect == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tQueue<Point2D> queue = new Queue<Point2D>();\n\t\tStack<Node> stack = new Stack<>();\n\t\tstack.push(root);\n\t\twhile (!stack.isEmpty()) {\n\t\t\tNode nCur = stack.pop();\n\t\t\tPoint2D pCur = nCur.point;\n\t\t\tif (rect.contains(pCur)) {\n\t\t\t\tqueue.enqueue(pCur);\n\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t}\n\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (nCur.bDirection == USING_X) {\n\t\t\t\t\tif (nCur.x < rect.xmin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.x > rect.xmax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (nCur.y < rect.ymin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.y > rect.ymax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn queue;\n\t}",
"public CustomRectangle(int x1, int y1, int x2, int y2) {\n this.x1 = Integer.toString(x1);\n this.y1 = Integer.toString(y1);\n this.x2 = Integer.toString(x2);\n this.y2 = Integer.toString(y2);\n }",
"public static Vector2D getRandInPoint(Bounds rect)\n\t{\n\t\tfloat x = getRandomFloat(rect.getX(), rect.getX() + rect.getWidth());\n\t\tfloat y = getRandomFloat(rect.getY(), rect.getY() + rect.getHeight());\n\t\treturn new Vector2D(x, y);\n\t}",
"public abstract Rectangle getSnapshotSquareBounds();",
"public RMSize convertVectorFromShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformFromShape(shape).transformVector(size);\n}",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"@SuppressWarnings(\"unused\")\n public static RectF inflateRect(RectF source, float value, boolean holdOrigin) {\n // Create a copy of the rect\n RectF dest = new RectF(source);\n // Reduce the width and the height\n dest.right -= value * 2;\n dest.bottom -= value * 2;\n // Translate if needed\n if (!holdOrigin) {\n dest.offset(value, value);\n }\n // Return\n return dest;\n }",
"public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}",
"public PDRectangle getRectDifference() {\n/* 615 */ COSBase base = getCOSObject().getDictionaryObject(COSName.RD);\n/* 616 */ if (base instanceof COSArray)\n/* */ {\n/* 618 */ return new PDRectangle((COSArray)base);\n/* */ }\n/* 620 */ return null;\n/* */ }",
"public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"rects cannot be null\");\n Queue<Point2D> pts = new Queue<Point2D>();\n range(pts, rect, root, inftyBbox);\n return pts;\n }",
"public void drawRect(float[] rect) {\n\t\trect(rect[0], rect[1], rect[2], rect[3]);\n\t}",
"public Rectangle getAWTRectangle() {\n\t\tRectangle r = null;\n\t\tif (width >= 0) {\n\t\t\tif (height >= 0) {\n\t\t\t\tr = new Rectangle(this.origin.getX0(), this.origin\n\t\t\t\t\t\t.getY0(), width, height);\n\t\t\t} else {\n\t\t\t\t// width >= 0 && height < 0\n\t\t\t\tr = new Rectangle(this.origin.getX0(), this.origin\n\t\t\t\t\t\t.getY0()\n\t\t\t\t\t\t+ height, width, -height);\n\t\t\t}\n\t\t} else {\n\t\t\tif (height >= 0) {\n\t\t\t\tr = new Rectangle(this.origin.getX0() + width, this.origin\n\t\t\t\t\t\t.getY0(), -width, height);\n\t\t\t} else {\n\t\t\t\t// width < 0 && height < 0\n\t\t\t\tr = new Rectangle(this.origin.getX0() + width, this.origin\n\t\t\t\t\t\t.getY0()\n\t\t\t\t\t\t+ height, -width, -height);\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}",
"protected abstract Geometry decode(Object o);"
] |
[
"0.69010633",
"0.6876541",
"0.68666023",
"0.6002168",
"0.5676816",
"0.56281734",
"0.55549526",
"0.5541708",
"0.5449041",
"0.5443593",
"0.52518564",
"0.51909673",
"0.5181023",
"0.5145028",
"0.51370674",
"0.51151305",
"0.5037037",
"0.5024932",
"0.4946225",
"0.49379668",
"0.4915109",
"0.4910813",
"0.49101543",
"0.48959458",
"0.4894244",
"0.4872216",
"0.48705846",
"0.48561656",
"0.48392507",
"0.4834922",
"0.4829567",
"0.48231187",
"0.48222262",
"0.48066103",
"0.4784742",
"0.47628954",
"0.47348645",
"0.47341084",
"0.47313273",
"0.47239366",
"0.47156945",
"0.47153926",
"0.4713892",
"0.4697942",
"0.4694602",
"0.46904662",
"0.46897233",
"0.46550006",
"0.4654307",
"0.46463102",
"0.46200752",
"0.46054557",
"0.459909",
"0.45923868",
"0.4581936",
"0.45780718",
"0.4578068",
"0.4553698",
"0.45464137",
"0.45303324",
"0.45220459",
"0.45178458",
"0.4512177",
"0.45116442",
"0.45104682",
"0.45021665",
"0.449642",
"0.44917077",
"0.44877505",
"0.44816053",
"0.44816053",
"0.4480557",
"0.4480479",
"0.44752884",
"0.44743186",
"0.44730517",
"0.446129",
"0.4457327",
"0.4455998",
"0.4455998",
"0.4455998",
"0.44550374",
"0.4451376",
"0.4419247",
"0.4418462",
"0.44183236",
"0.44143918",
"0.44128653",
"0.4403509",
"0.43978444",
"0.43909127",
"0.43902576",
"0.43884432",
"0.43872252",
"0.43868113",
"0.4385492",
"0.4380528",
"0.43775466",
"0.43739524",
"0.4371269"
] |
0.6805477
|
3
|
Returns the given point converted to the given shape's coords.
|
public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)
{
return convertPointToShape(new RMPoint(aPoint), aShape);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"private ECPoint convertECPoint(java.security.spec.ECPoint point) {\n return domainParams.getCurve().createPoint(point.getAffineX(), point.getAffineY());\n }",
"public abstract Point location( Solid shape ) throws DataException, FeatureException, InvalidXMLException,\n LocationException, MountingException, ReferenceException\n ;",
"public Point location( Solid shape ) {\n Double ex = x;\n Double wy = y;\n Double ze = z;\n\n Double lastWidth = 0.0;\n\n for ( Thing item : thingsOnThis) {\n ex = Math.max( ex, item.point.x() );\n wy = Math.max( wy, item.point.y() );\n ze = Math.max( ze, item.point.z() );\n\n lastWidth = item.solid.width();\n }\n Thing thing = new Thing();\n thing.point = new Point( x, wy + lastWidth, z + height );\n thing.solid = shape;\n\n thingsOnThis.add( thing );\n\n return thing.point;\n }",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}",
"public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}",
"public Point2D getLocation();",
"public abstract Point2D getPosition();",
"public Point3 getPoint(int pointNr);",
"public DecimalPosition getNearestPoint(DecimalPosition point) {\n // Fist check end point\n int endXCorrection = width() > 0 ? 1 : 0;\n int endYCorrection = height() > 0 ? 1 : 0;\n\n if (point.getX() <= start.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(start.copy());\n } else if (point.getX() >= end.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(end.sub(endXCorrection, endYCorrection));\n } else if (point.getX() <= start.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(start.getX(), end.getY() - endYCorrection);\n } else if (point.getX() >= end.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(end.getX() - endXCorrection, start.getY());\n }\n\n // Do projection\n if (point.getX() <= start.getX()) {\n return new DecimalPosition(start.getX(), point.getY());\n } else if (point.getX() >= end.getX()) {\n return new DecimalPosition(end.getX() - endXCorrection, point.getY());\n } else if (point.getY() <= start.getY()) {\n return new DecimalPosition(point.getX(), start.getY());\n } else if (point.getY() >= end.getY()) {\n return new DecimalPosition(point.getX(), end.getY() - endYCorrection);\n }\n\n throw new IllegalArgumentException(\"The point is inside the rectangle. Point: \" + point + \" rectangel: \" + this);\n }",
"Point getPosition();",
"Point getPosition();",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"Optional<Point> getCoordinate(int id);",
"public static Point2D.Double getCenter(Shape shape) {\n\t\tRectangle bounds = shape.getBounds();\n\t\tdouble x = bounds.getX() + bounds.getWidth()/2;\n\t\tdouble y = bounds.getY() + bounds.getHeight()/2;\n\t\treturn new Point2D.Double(x,y);\n\t}",
"public Drawable getPoint(final PointData data, final Shape shape) {\n\t\t\treturn new AbstractDrawable() {\n\t\t\t\t/** Version id for serialization. */\n\t\t\t\tprivate static final long serialVersionUID = -1136689797647794969L;\n\n\t\t\t\tpublic void draw(DrawingContext context) {\n\t\t\t\t\tRasterRenderer renderer = RasterRenderer.this;\n\n\t\t\t\t\tAxis axisX = data.axes.get(0);\n\t\t\t\t\tAxis axisY = data.axes.get(1);\n\t\t\t\t\tAxisRenderer axisXRenderer = data.axisRenderers.get(0);\n\t\t\t\t\tAxisRenderer axisYRenderer = data.axisRenderers.get(1);\n\t\t\t\t\tRow row = data.row;\n\n\t\t\t\t\tint colX = renderer.getXColumn();\n\t\t\t\t\tif (colX < 0 || colX >= row.size() || !row.isColumnNumeric(colX)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint colY = renderer.getYColumn();\n\t\t\t\t\tif (colY < 0 || colY >= row.size() || !row.isColumnNumeric(colY)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint colValue = renderer.getValueColumn();\n\t\t\t\t\tif (colValue < 0 || colValue >= row.size() || !row.isColumnNumeric(colValue)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tdouble valueX = ((Number) row.get(colX)).doubleValue();\n\t\t\t\t\tdouble valueY = ((Number) row.get(colY)).doubleValue();\n\t\t\t\t\tNumber value = (Number) row.get(colValue);\n\n\t\t\t\t\t// Pixel dimensions\n\t\t\t\t\tdouble xMin = axisXRenderer\n\t\t\t\t\t\t.getPosition(axisX, valueX - 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.X);\n\t\t\t\t\tdouble xMax = axisXRenderer\n\t\t\t\t\t\t.getPosition(axisX, valueX + 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.X);\n\t\t\t\t\tdouble width = Math.abs(xMax - xMin) + 1.0;\n\t\t\t\t\tdouble yMin = axisYRenderer\n\t\t\t\t\t\t.getPosition(axisY, valueY - 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.Y);\n\t\t\t\t\tdouble yMax = axisYRenderer\n\t\t\t\t\t\t.getPosition(axisY, valueY + 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.Y);\n\t\t\t\t\tdouble height = Math.abs(yMax - yMin) + 1.0;\n\n\t\t\t\t\t// Create shape for pixel\n\t\t\t\t\t// The origin of all shapes is (boxX, boxY)\n\t\t\t\t\tRectangle2D shapeBounds = shape.getBounds2D();\n\t\t\t\t\tAffineTransform tx = new AffineTransform();\n\t\t\t\t\ttx.scale(width/shapeBounds.getWidth(), height/shapeBounds.getHeight());\n\t\t\t\t\ttx.translate(-shapeBounds.getMinX(), -shapeBounds.getMinY());\n\t\t\t\t\tShape pixel = tx.createTransformedShape(shape);\n\n\t\t\t\t\t// Paint pixel\n\t\t\t\t\tGraphics2D graphics = context.getGraphics();\n\t\t\t\t\tColorMapper colorMapper = plot.getColors();\n\t\t\t\t\tPaint paint;\n\t\t\t\t\tif (colorMapper instanceof ContinuousColorMapper) {\n\t\t\t\t\t\tpaint = ((ContinuousColorMapper) colorMapper)\n\t\t\t\t\t\t\t.get(value.doubleValue());\n\t\t\t\t\t} else if (colorMapper != null) {\n\t\t\t\t\t\tInteger index = value.intValue();\n\t\t\t\t\t\tpaint = colorMapper.get(index);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpaint = Color.BLACK;\n\t\t\t\t\t}\n\t\t\t\t\tGraphicsUtils.fillPaintedShape(\n\t\t\t\t\t\tgraphics, pixel, paint, pixel.getBounds2D());\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public Tuple2d getProjectedPoint(final Tuple3d point) {\n return new Tuple2d(TupleMath.dot(point, this.projectionX), TupleMath.dot(point, this.projectionY));\n }",
"public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }",
"Point createPoint();",
"public GuiPoint coordinateToGui(Vector2f point) {\r\n\t\tint coordX = (int) Math.round(point.getX() * zoomFactor);\r\n\t\tint coordY = (int) Math.round(point.getY() * zoomFactor);\r\n\r\n\t\tint guiX = coordX + origin.x;\r\n\t\tint guiY = coordY + origin.y;\r\n\t\tGuiPoint pos = new GuiPoint(guiX, guiY);\r\n\r\n\t\treturn pos;\r\n\t}",
"public native GLatLng getPoint(GInfoWindow self)/*-{\r\n\t\treturn self.getPoint();\r\n\t}-*/;",
"public Point getPosition();",
"public Vector2df guiToCoordinate(GuiPoint point) {\r\n\t\tint guiX = point.x;\r\n\t\tint guiY = point.y;\r\n\t\tfloat zoom = 1.0f / zoomFactor;\r\n\t\tint coordX = Math.round((guiX - origin.x) * zoom);\r\n\t\tint coordY = Math.round((guiY - origin.y) * zoom);\r\n\t\tVector2df pos = new Vector2df(coordX, coordY);\r\n\t\treturn pos;\r\n\t}",
"private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}",
"public static double[] getPointFromGeom(String pointString){\n\t\tString sub = pointString.substring(6, pointString.length()-1);\n\t\tString[] split = sub.split(\" \");\n\t\tdouble[] point = new double[2];\n\t\tpoint[0] = Double.parseDouble(split[0]);\n\t\tpoint[1] = Double.parseDouble(split[1]);\n\t\treturn point;\n\t}",
"public Point getPoint(final Point otherPoint)\n\t\t{\n\n\t\t\t//to get the edge point on the shape\n\t\t\tif(shape.equals(\"poly\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn getCentrePoint();\n\n\t\t\tfinal Point cp = getCentrePoint();\n\t\t\tfinal int rise = otherPoint.y-cp.y;\n\t\t\tfinal int run = otherPoint.x-cp.x;\n\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tif(rise == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.x >= cp.x)\n\t\t\t\t\t\treturn new Point(coords[0]+coords[2]+4,coords[1]+(coords[3]/2));\n\t\t\t\t\treturn new Point(coords[0]-2,coords[1]+(coords[3]/2));\n\t\t\t\t}\n\t\t\t\telse if(run == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.y >= cp.y)\n\t\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]+coords[3]+4);\n\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]-2);\n\t\t\t\t}else\n\t\t\t\t{\n\n\t\t\t\t\tfinal double m = (double)rise / (double)run;\n\t\t\t\t\tfinal double mx = (double)run / (double)rise;\n\n\t\t\t\t\tif(otherPoint.x >= cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\n\t\t\t\t\t}else if(otherPoint.x < cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else if(otherPoint.x < cp.x)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}else if(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tif(rise != 0 && run != 0)\n\t\t\t\t{\n\t\t\t\t\tfinal double ratio = (coords[2] / Math.sqrt(rise*rise+run*run));\n\n\t\t\t\t\treturn new Point(cp.x+(int)(run*ratio),cp.y+(int)(rise*ratio));\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif(rise == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(run > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x+coords[2],cp.y);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x-coords[2],cp.y);\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(rise > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y+coords[2]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y-coords[2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t\t//return cp;\n\t\t}",
"static int readPointF(LittleEndianInputStream leis, Point2D point) {\n double x = leis.readFloat();\n double y = leis.readFloat();\n point.setLocation(x,y);\n return 2*LittleEndianConsts.INT_SIZE;\n }",
"public Point getLocation();",
"public Point scaleToGraphCanvasCoords(int x, int y);",
"public Point scaleToGraphCanvasCoords(double x, double y);",
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"public Coords bound(final Coords point)\r\n {\r\n int xx = point.getX();\r\n int yy = point.getY();\r\n if(xx < x)\r\n {\r\n xx = x;\r\n }\r\n if(xx > x + width)\r\n {\r\n xx = x + width;\r\n }\r\n if(yy < y)\r\n {\r\n yy = y;\r\n }\r\n if(yy > y + height)\r\n {\r\n yy = y + height;\r\n }\r\n return new Coords(xx, yy);\r\n }",
"Point getPointByNodeId(Integer nodeId);",
"Shape getShape();",
"public Point getPoint() {\n return point;\n }",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"protodef.b_math.coord getCoordInfo();",
"public double getPoint() {\r\n return point;\r\n }",
"public double getPoint() {\r\n return point;\r\n }",
"public static GeoPoint convertToPoint(Double lat, Double lon) {\n Double latitude = lat * 1E6;\n Double longitude = lon * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public DecimalPosition getNearestPointInclusive(DecimalPosition point) {\n if (point.getX() <= start.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(start.copy());\n } else if (point.getX() >= end.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(end.copy());\n } else if (point.getX() <= start.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(start.getX(), end.getY());\n } else if (point.getX() >= end.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(end.getX(), start.getY());\n }\n\n // Do projection\n if (point.getX() <= start.getX()) {\n return new DecimalPosition(start.getX(), point.getY());\n } else if (point.getX() >= end.getX()) {\n return new DecimalPosition(end.getX(), point.getY());\n } else if (point.getY() <= start.getY()) {\n return new DecimalPosition(point.getX(), start.getY());\n } else if (point.getY() >= end.getY()) {\n return new DecimalPosition(point.getX(), end.getY());\n }\n\n throw new IllegalArgumentException(\"The point is inside the rectangle\");\n }",
"public Point2D.Double fromOriginal(Point2D point){\n return new Point2D.Double(\n point.getX() * scale + offsetX,\n point.getY() * scale + offsetY);\n }",
"private static final int[] getPoint(int point) {\n int[] ret = new int[2];\n if (point >= firstPoint && point <= endPoint) {\n ret = getPoint(ruteData[point + 2]);//ruteData[point + 2]);\n }\n return ret;\n }",
"public Point getCoordinate() {\n return this.coordinate;\n }",
"public double getCoord(int index) {\n\t\treturn point[index];\n\t}",
"@Pure\n\tPT getGraphPoint();",
"public Point getPoint(){\n\t\treturn _point;\n\t}",
"public Point getPoint()\n\t{\n\t\treturn point;\n\t}",
"public X location(Point p) {\n component.setLocation(p);\n return (X) this;\n }",
"protected IPoint scalePointIntoPixels(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() * getPixelsPerX();\n\t\tdouble newY = point.getY() * getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"public Tuple3d getClosestPoint(final Tuple3d point) {\n // A' = A - (A . n) * n\n final Vector3d aprime = new Vector3d(point);\n final double adotn = TupleMath.dot(point, this.normal);\n final Vector3d scaledNormal = new Vector3d(this.normal);\n scaledNormal.scale(adotn);\n aprime.subtract(scaledNormal);\n\n return aprime;\n }",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"public GeoPointND getStartPoint();",
"void getPosRelPoint(double px, double py, double pz, DVector3 result);",
"@Generated\n @Selector(\"position\")\n @ByValue\n public native CGPoint position();",
"public Position2D get2DPoint(Position3D point3D) {\r\n\t\tif(this.onPlane(point3D)) {\r\n\t\t\t\r\n\t\t\tVector3D dirOfPoint = this.pos.getDirection(point3D);\r\n\t\t\tVector3D xDir = this.vecX.proj(dirOfPoint);\r\n\t\t\tVector3D yDir = this.vecY.proj(dirOfPoint);\r\n\t\t\t\r\n\t\t\tPosition2D point2D = new Position2D();\r\n\t\t\t\r\n\t\t\tif (xDir.dot(this.vecX) > 0) {\r\n\t\t\t\tpoint2D.setX(xDir.getLength());\r\n\t\t\t} else {\r\n\t\t\t\tpoint2D.setX(-xDir.getLength());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (yDir.dot(this.vecY) > 0) {\r\n\t\t\t\tpoint2D.setY(yDir.getLength());\r\n\t\t\t} else {\r\n\t\t\t\tpoint2D.setY(-yDir.getLength());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn point2D;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Object getObjectAtLocation(Point p);",
"@Override\r\n\tpublic Point getPoint(String pointRecord) {\r\n\r\n\t\ttry {\r\n\t\t\tString fieldSeparator = \" \";\r\n\r\n\t\t\t// parse data from vector\r\n\t\t\tStringTokenizer st = new StringTokenizer(pointRecord);\r\n\t\t\tPoint point = new Point();\r\n\t\t\tString[] data = new String[5];\r\n\t\t\tint i = 0;\r\n\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\tdata[i] = st.nextToken(fieldSeparator);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t// set point data\r\n\t\t\tpoint.setName(data[0]);\r\n\t\t\tpoint.setFirstCoordinate(Integer.parseInt(data[1]));\r\n\t\t\tpoint.setSecondCoordinate(Integer.parseInt(data[2]));\r\n\t\t\tpoint.setThirdCoordinate(Integer.parseInt(data[3]));\r\n\t\t\tpoint.setFourthCoordinate(Integer.parseInt(data[4]));\r\n\r\n\t\t\treturn point;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Invalid record : \" + pointRecord + \" . This record will be ignored.\");\r\n\t\t\tLogger.getLogger().severe(\"Invalid record : \" + pointRecord + \" . This record will be ignored.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Point getXY()\n\t{\n\t\tPoint newPoint = new Point(x,y);\t\t\t\t\t\t// Create new Point object \n\t\treturn newPoint; \t\t\t\t\t\t\t\t\t\t// Return point's x and y coordinates\n\t}",
"public KDPoint getPoint() {\n\t\treturn new KDPoint(this.loc.lat,this.loc.lng,0.0);\n\t}",
"public abstract Proximity2DResult getNearestVertex(Geometry geom,\n\t\t\tPoint inputPoint);",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public Point getPoint() {\n return this.mPoint;\n }",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"public Integer getPoint() {\n return point;\n }",
"@Override\n public double getScale(LatLonPoint point) {\n return 1 / Math.cos(Math.toRadians(point.getLat()));\n }",
"public static GeoPoint convertToPoint(Location loc) {\n Double latitude = loc.getLatitude() * 1E6;\n Double longitude = loc.getLongitude() * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"Collection<Point> getAllCoordinates();",
"@Override\r\n\t\tpublic Geom_element getGeom() {\n\t\t\treturn this.point;\r\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n public AnimatorType position(PointF point)\n {\n addTransformer(new PositionTransformer(getShape(), point));\n return (AnimatorType) this;\n }",
"public TextureCoord2D texFor (final Point3 point) {\n\n if (point == null)throw new IllegalArgumentException(\"The Point cannot be null!\");\n\n\n double teta = Math.acos(point.y);\n double phi = Math.atan2(point.x, point.z);\n\n return new TextureCoord2D(phi / (Math.PI*2), -teta/Math.PI);\n }",
"public Point toOuterPoint(Point punto){\r\n \treturn punto.add(coord);\r\n// return new Point(punto.getRow() + coord.getRow(), punto.getCol() + coord.getCol());\r\n }",
"public Vec4 expectPoint() {\n if(!isPoint()) throw new IllegalArgumentException(\"expected point: \" + this);\n return this;\n }",
"public double[] getHitGeoCoord();",
"public SoPickedPoint(final SoPath _path, final SoState _state,\n final SbVec3f objSpacePoint)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int i, n;\n\n // Make a copy of the path since it most likely comes from the\n // current traversal path in an action, which will be changed soon.\n path = _path.copy();\n path.ref();\n\n // Save state so we can get matrices when we need them later\n state = _state;\n\n // Transform the object space point by the current modeling matrix\n // to get the world space point\n SoModelMatrixElement.get(state).multVecMatrix(objSpacePoint, worldPoint);\n\n // Make room in the detail list for one detail per node in the\n // path. Set all the detail pointers to NULL.\n n = ( SoFullPath.cast(path)).getLength();\n details.set(n - 1, null); // Allocates space\n for (i = n - 2; i >= 0; --i)\n details.set(i, null);\n\n // Initialize material index to 0, the most common value\n materialIndex = 0;\n\n // Set on-geometry flag based on current pick style\n onGeometry = (SoPickStyleElement.get(state) !=\n SoPickStyleElement.Style.BOUNDING_BOX);\n\n // Save the viewportRegion, we'll need it later:\n vpRegion.copyFrom(SoViewportRegionElement.get(state));\n}",
"public Point getPoint(EastNorth p) {\n if(null == p)\n return new Point();\n double x = (p.east()-center.east())/scale + getWidth()/2;\n double y = (center.north()-p.north())/scale + getHeight()/2;\n return new Point((int)x,(int)y);\n }",
"public Coordinate getLocation();",
"public abstract int[] getCoords();",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public GeoPoint(Geometry geometry, Point3D point) {\n\tsuper();\n\tthis.geometry = geometry;\n\tthis.point = point;\n}",
"public Point3D getPoint() {\r\n\t\treturn point;\r\n\t}",
"public position convertToPosition(){\n\t\tdouble x = r * Math.cos(theta);\n\t\tdouble y = r * Math.sin(theta);\n\t\treturn new position(x, y);\n\t}",
"public Coordinate getPosition();",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"public Vector2Dd formVector(Point2Dd pt) {\r\n return (new Vector2Dd(x-pt.x, y-pt.y));\r\n }",
"public static GeoPoint convertToPoint(String lat, String lon) {\n Double latitude = Double.parseDouble(lat) * 1E6;\n Double longitude = Double.parseDouble(lon) * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public SbVec3f\ngetObjectPoint() {\n\treturn getObjectPoint(null);\n}",
"public int getXY(int x, int y);",
"@PropertyMapped\n\tpublic int getPoint() {\n\t\treturn point;\t\t\n\t}",
"Coordinate createCoordinate();",
"public String getCoordsForLP() {\n String x = coords[0] < 0 ? \"neg\" + Math.abs(coords[0]) :\n Integer.toString(Math.abs(coords[0]));\n String y = coords[1] < 0 ? \"neg\" + Math.abs(coords[1]) :\n Integer.toString(Math.abs(coords[1]));\n return x + \"_\" + y;\n }",
"public Point getLocation() {\r\n\t\tint[] p = value.getIntArray();\r\n\t\tif (p.length < 2) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Location parameters must contain at least 2 values\");\r\n\t\t}\r\n\t\treturn (new Point(p[0], p[1]));\r\n\t}",
"IntPoint getLocation();",
"public Point getTestPoint() {\n WKTReader reader = new WKTReader();\n try {\n Point point = (Point) reader.read(TEST_POINT_WKT);\n point.setSRID(getTestSrid());\n return point;\n } catch (ParseException e) {\n throw new RuntimeException(e);\n }\n }",
"public java.awt.geom.Point2D.Double transformedPoint(double x, double y)\n {\n double[] position = {x,y}; \n getGraphicsState().getCurrentTransformationMatrix().createAffineTransform().transform(position, 0, position, 0, 1);\n position[1] = fixY(position[1]);\n\n\t_pageAffineTransform.transform(position,0, position, 0, 1);\n return new Point2D.Double(position[0],position[1]);\n }"
] |
[
"0.66310346",
"0.660088",
"0.63951457",
"0.6232674",
"0.6031423",
"0.5900513",
"0.5853758",
"0.5758195",
"0.5740033",
"0.56968707",
"0.5676",
"0.56490105",
"0.55795985",
"0.55152315",
"0.5423138",
"0.5423138",
"0.54177326",
"0.54169214",
"0.5391808",
"0.5383362",
"0.5383262",
"0.53750604",
"0.5370771",
"0.5370529",
"0.53626275",
"0.53338665",
"0.5331245",
"0.5316086",
"0.5315306",
"0.5312518",
"0.5305983",
"0.5293203",
"0.5284149",
"0.527035",
"0.522544",
"0.5201103",
"0.51989573",
"0.5188716",
"0.5186108",
"0.5174713",
"0.51746494",
"0.5174219",
"0.5174219",
"0.5159554",
"0.5138626",
"0.51384145",
"0.5130701",
"0.51280224",
"0.5122347",
"0.5119651",
"0.51185155",
"0.51124233",
"0.5109141",
"0.5098952",
"0.5096298",
"0.5091382",
"0.50867504",
"0.5082869",
"0.5077777",
"0.50687224",
"0.5066013",
"0.5046842",
"0.50366294",
"0.50286114",
"0.50252485",
"0.5020616",
"0.5011945",
"0.5009564",
"0.5007239",
"0.5003242",
"0.4993411",
"0.49849",
"0.4984115",
"0.49685013",
"0.49652478",
"0.49623927",
"0.49587387",
"0.49579796",
"0.4952893",
"0.49525523",
"0.49365446",
"0.49356383",
"0.49342456",
"0.4931072",
"0.4926824",
"0.49227262",
"0.49059445",
"0.49053264",
"0.4898607",
"0.48966613",
"0.48957437",
"0.48941344",
"0.4891498",
"0.48891115",
"0.48865604",
"0.48713264",
"0.48678926",
"0.4866264",
"0.4858947",
"0.48572052"
] |
0.7130277
|
0
|
Returns the given point converted from the given shape's coords.
|
public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)
{
return convertPointFromShape(new RMPoint(aPoint), aShape);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"private ECPoint convertECPoint(java.security.spec.ECPoint point) {\n return domainParams.getCurve().createPoint(point.getAffineX(), point.getAffineY());\n }",
"public abstract Point location( Solid shape ) throws DataException, FeatureException, InvalidXMLException,\n LocationException, MountingException, ReferenceException\n ;",
"protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}",
"public Point location( Solid shape ) {\n Double ex = x;\n Double wy = y;\n Double ze = z;\n\n Double lastWidth = 0.0;\n\n for ( Thing item : thingsOnThis) {\n ex = Math.max( ex, item.point.x() );\n wy = Math.max( wy, item.point.y() );\n ze = Math.max( ze, item.point.z() );\n\n lastWidth = item.solid.width();\n }\n Thing thing = new Thing();\n thing.point = new Point( x, wy + lastWidth, z + height );\n thing.solid = shape;\n\n thingsOnThis.add( thing );\n\n return thing.point;\n }",
"public static GeoPoint convertToPoint(Double lat, Double lon) {\n Double latitude = lat * 1E6;\n Double longitude = lon * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public static Point2D.Double getCenter(Shape shape) {\n\t\tRectangle bounds = shape.getBounds();\n\t\tdouble x = bounds.getX() + bounds.getWidth()/2;\n\t\tdouble y = bounds.getY() + bounds.getHeight()/2;\n\t\treturn new Point2D.Double(x,y);\n\t}",
"public abstract Point2D getPosition();",
"public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}",
"Optional<Point> getCoordinate(int id);",
"Point createPoint();",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public Drawable getPoint(final PointData data, final Shape shape) {\n\t\t\treturn new AbstractDrawable() {\n\t\t\t\t/** Version id for serialization. */\n\t\t\t\tprivate static final long serialVersionUID = -1136689797647794969L;\n\n\t\t\t\tpublic void draw(DrawingContext context) {\n\t\t\t\t\tRasterRenderer renderer = RasterRenderer.this;\n\n\t\t\t\t\tAxis axisX = data.axes.get(0);\n\t\t\t\t\tAxis axisY = data.axes.get(1);\n\t\t\t\t\tAxisRenderer axisXRenderer = data.axisRenderers.get(0);\n\t\t\t\t\tAxisRenderer axisYRenderer = data.axisRenderers.get(1);\n\t\t\t\t\tRow row = data.row;\n\n\t\t\t\t\tint colX = renderer.getXColumn();\n\t\t\t\t\tif (colX < 0 || colX >= row.size() || !row.isColumnNumeric(colX)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint colY = renderer.getYColumn();\n\t\t\t\t\tif (colY < 0 || colY >= row.size() || !row.isColumnNumeric(colY)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tint colValue = renderer.getValueColumn();\n\t\t\t\t\tif (colValue < 0 || colValue >= row.size() || !row.isColumnNumeric(colValue)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tdouble valueX = ((Number) row.get(colX)).doubleValue();\n\t\t\t\t\tdouble valueY = ((Number) row.get(colY)).doubleValue();\n\t\t\t\t\tNumber value = (Number) row.get(colValue);\n\n\t\t\t\t\t// Pixel dimensions\n\t\t\t\t\tdouble xMin = axisXRenderer\n\t\t\t\t\t\t.getPosition(axisX, valueX - 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.X);\n\t\t\t\t\tdouble xMax = axisXRenderer\n\t\t\t\t\t\t.getPosition(axisX, valueX + 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.X);\n\t\t\t\t\tdouble width = Math.abs(xMax - xMin) + 1.0;\n\t\t\t\t\tdouble yMin = axisYRenderer\n\t\t\t\t\t\t.getPosition(axisY, valueY - 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.Y);\n\t\t\t\t\tdouble yMax = axisYRenderer\n\t\t\t\t\t\t.getPosition(axisY, valueY + 0.5, true, false)\n\t\t\t\t\t\t.get(PointND.Y);\n\t\t\t\t\tdouble height = Math.abs(yMax - yMin) + 1.0;\n\n\t\t\t\t\t// Create shape for pixel\n\t\t\t\t\t// The origin of all shapes is (boxX, boxY)\n\t\t\t\t\tRectangle2D shapeBounds = shape.getBounds2D();\n\t\t\t\t\tAffineTransform tx = new AffineTransform();\n\t\t\t\t\ttx.scale(width/shapeBounds.getWidth(), height/shapeBounds.getHeight());\n\t\t\t\t\ttx.translate(-shapeBounds.getMinX(), -shapeBounds.getMinY());\n\t\t\t\t\tShape pixel = tx.createTransformedShape(shape);\n\n\t\t\t\t\t// Paint pixel\n\t\t\t\t\tGraphics2D graphics = context.getGraphics();\n\t\t\t\t\tColorMapper colorMapper = plot.getColors();\n\t\t\t\t\tPaint paint;\n\t\t\t\t\tif (colorMapper instanceof ContinuousColorMapper) {\n\t\t\t\t\t\tpaint = ((ContinuousColorMapper) colorMapper)\n\t\t\t\t\t\t\t.get(value.doubleValue());\n\t\t\t\t\t} else if (colorMapper != null) {\n\t\t\t\t\t\tInteger index = value.intValue();\n\t\t\t\t\t\tpaint = colorMapper.get(index);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpaint = Color.BLACK;\n\t\t\t\t\t}\n\t\t\t\t\tGraphicsUtils.fillPaintedShape(\n\t\t\t\t\t\tgraphics, pixel, paint, pixel.getBounds2D());\n\t\t\t\t}\n\t\t\t};\n\t\t}",
"public Point3 getPoint(int pointNr);",
"Point getPointByNodeId(Integer nodeId);",
"public DecimalPosition getNearestPoint(DecimalPosition point) {\n // Fist check end point\n int endXCorrection = width() > 0 ? 1 : 0;\n int endYCorrection = height() > 0 ? 1 : 0;\n\n if (point.getX() <= start.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(start.copy());\n } else if (point.getX() >= end.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(end.sub(endXCorrection, endYCorrection));\n } else if (point.getX() <= start.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(start.getX(), end.getY() - endYCorrection);\n } else if (point.getX() >= end.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(end.getX() - endXCorrection, start.getY());\n }\n\n // Do projection\n if (point.getX() <= start.getX()) {\n return new DecimalPosition(start.getX(), point.getY());\n } else if (point.getX() >= end.getX()) {\n return new DecimalPosition(end.getX() - endXCorrection, point.getY());\n } else if (point.getY() <= start.getY()) {\n return new DecimalPosition(point.getX(), start.getY());\n } else if (point.getY() >= end.getY()) {\n return new DecimalPosition(point.getX(), end.getY() - endYCorrection);\n }\n\n throw new IllegalArgumentException(\"The point is inside the rectangle. Point: \" + point + \" rectangel: \" + this);\n }",
"Point getPosition();",
"Point getPosition();",
"public Point2D getLocation();",
"public static GeoPoint convertToPoint(String lat, String lon) {\n Double latitude = Double.parseDouble(lat) * 1E6;\n Double longitude = Double.parseDouble(lon) * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public static GeoPoint convertToPoint(Location loc) {\n Double latitude = loc.getLatitude() * 1E6;\n Double longitude = loc.getLongitude() * 1E6;\n return new GeoPoint(latitude.intValue(), longitude.intValue());\n }",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"public Point getPoint(final Point otherPoint)\n\t\t{\n\n\t\t\t//to get the edge point on the shape\n\t\t\tif(shape.equals(\"poly\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn getCentrePoint();\n\n\t\t\tfinal Point cp = getCentrePoint();\n\t\t\tfinal int rise = otherPoint.y-cp.y;\n\t\t\tfinal int run = otherPoint.x-cp.x;\n\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tif(rise == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.x >= cp.x)\n\t\t\t\t\t\treturn new Point(coords[0]+coords[2]+4,coords[1]+(coords[3]/2));\n\t\t\t\t\treturn new Point(coords[0]-2,coords[1]+(coords[3]/2));\n\t\t\t\t}\n\t\t\t\telse if(run == 0)\n\t\t\t\t{\n\t\t\t\t\tif(otherPoint.y >= cp.y)\n\t\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]+coords[3]+4);\n\t\t\t\t\treturn new Point(coords[0]+(coords[2]/2),coords[1]-2);\n\t\t\t\t}else\n\t\t\t\t{\n\n\t\t\t\t\tfinal double m = (double)rise / (double)run;\n\t\t\t\t\tfinal double mx = (double)run / (double)rise;\n\n\t\t\t\t\tif(otherPoint.x >= cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\n\t\t\t\t\t}else if(otherPoint.x < cp.x && otherPoint.y >= cp.y)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]+coords[3]+4);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else if(otherPoint.x < cp.x)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(-1*m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]-2,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal int yPoint = (int)(m*(coords[2]/2))+cp.y;\n\t\t\t\t\t\tfinal Point yInter = new Point(coords[0]+coords[2]+4,yPoint);\n\n\t\t\t\t\t\tfinal int xPoint = (int)(-1*mx*(coords[3]/2))+cp.x;\n\t\t\t\t\t\tfinal Point xInter = new Point(xPoint,coords[1]-2);\n\n\t\t\t\t\t\tif(dist(xInter,cp) < dist(yInter,cp))\n\t\t\t\t\t\t\treturn xInter;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn yInter;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}else if(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tif(rise != 0 && run != 0)\n\t\t\t\t{\n\t\t\t\t\tfinal double ratio = (coords[2] / Math.sqrt(rise*rise+run*run));\n\n\t\t\t\t\treturn new Point(cp.x+(int)(run*ratio),cp.y+(int)(rise*ratio));\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tif(rise == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(run > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x+coords[2],cp.y);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x-coords[2],cp.y);\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tif(rise > 0)\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y+coords[2]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\treturn new Point(cp.x,cp.y-coords[2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t\t//return cp;\n\t\t}",
"public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}",
"public Point getPosition();",
"public Point2D.Double fromOriginal(Point2D point){\n return new Point2D.Double(\n point.getX() * scale + offsetX,\n point.getY() * scale + offsetY);\n }",
"protodef.b_math.coord getCoordInfo();",
"public SoPickedPoint(final SoPath _path, final SoState _state,\n final SbVec3f objSpacePoint)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int i, n;\n\n // Make a copy of the path since it most likely comes from the\n // current traversal path in an action, which will be changed soon.\n path = _path.copy();\n path.ref();\n\n // Save state so we can get matrices when we need them later\n state = _state;\n\n // Transform the object space point by the current modeling matrix\n // to get the world space point\n SoModelMatrixElement.get(state).multVecMatrix(objSpacePoint, worldPoint);\n\n // Make room in the detail list for one detail per node in the\n // path. Set all the detail pointers to NULL.\n n = ( SoFullPath.cast(path)).getLength();\n details.set(n - 1, null); // Allocates space\n for (i = n - 2; i >= 0; --i)\n details.set(i, null);\n\n // Initialize material index to 0, the most common value\n materialIndex = 0;\n\n // Set on-geometry flag based on current pick style\n onGeometry = (SoPickStyleElement.get(state) !=\n SoPickStyleElement.Style.BOUNDING_BOX);\n\n // Save the viewportRegion, we'll need it later:\n vpRegion.copyFrom(SoViewportRegionElement.get(state));\n}",
"public Point getPoint(String key) {\n\t\tPoint defaultValue = (Point) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tPoint result = new Point();\n\t\ttry {\n\t\t\tint x, y;\n\t\t\tString token;\n\t\t\tStringTokenizer st = new StringTokenizer(sp, \" \", false);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\t// the value is not correctly formated => remove it\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\tx = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\ty = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\tresult.setLocation(x, y);\n\t\t\treturn result;\n\t\t} catch (NumberFormatException e) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t}",
"private static SbVec4f \ngenerateCoord(Object userData,\n final SbVec3f point,\n final SbVec3f normal )\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureCoordinateBundle tcb = (SoTextureCoordinateBundle ) userData;\n\n final SbVec4f result = new SbVec4f();\n\n // The S and T coordinates of the result are the dot products of\n // the point with sVector and tVector. Since this computation is\n // done very frequently (during primitive generation for picking\n // on vertex-based shapes), we can avoid some operations that\n // result in 0 by doing the dot products explicitly.\n int sDim = tcb.coordS, tDim = tcb.coordT;\n\n\n result.setValue(point.getValueRead()[sDim] * tcb.sVector.getValueRead()[sDim] + tcb.sVector.getValueRead()[3],\n point.getValueRead()[tDim] * tcb.tVector.getValueRead()[tDim] + tcb.tVector.getValueRead()[3],\n 0.0f,\n 1.0f);\n\n return result;\n}",
"public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }",
"public Object getObjectAtLocation(Point p);",
"static int readPointF(LittleEndianInputStream leis, Point2D point) {\n double x = leis.readFloat();\n double y = leis.readFloat();\n point.setLocation(x,y);\n return 2*LittleEndianConsts.INT_SIZE;\n }",
"public Tuple2d getProjectedPoint(final Tuple3d point) {\n return new Tuple2d(TupleMath.dot(point, this.projectionX), TupleMath.dot(point, this.projectionY));\n }",
"Shape getShape();",
"public GeoPointND getStartPoint();",
"public native GLatLng getPoint(GInfoWindow self)/*-{\r\n\t\treturn self.getPoint();\r\n\t}-*/;",
"public Point getLocation();",
"public DecimalPosition getNearestPointInclusive(DecimalPosition point) {\n if (point.getX() <= start.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(start.copy());\n } else if (point.getX() >= end.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(end.copy());\n } else if (point.getX() <= start.getX() && point.getY() >= end.getY()) {\n return new DecimalPosition(start.getX(), end.getY());\n } else if (point.getX() >= end.getX() && point.getY() <= start.getY()) {\n return new DecimalPosition(end.getX(), start.getY());\n }\n\n // Do projection\n if (point.getX() <= start.getX()) {\n return new DecimalPosition(start.getX(), point.getY());\n } else if (point.getX() >= end.getX()) {\n return new DecimalPosition(end.getX(), point.getY());\n } else if (point.getY() <= start.getY()) {\n return new DecimalPosition(point.getX(), start.getY());\n } else if (point.getY() >= end.getY()) {\n return new DecimalPosition(point.getX(), end.getY());\n }\n\n throw new IllegalArgumentException(\"The point is inside the rectangle\");\n }",
"public Vector2df guiToCoordinate(GuiPoint point) {\r\n\t\tint guiX = point.x;\r\n\t\tint guiY = point.y;\r\n\t\tfloat zoom = 1.0f / zoomFactor;\r\n\t\tint coordX = Math.round((guiX - origin.x) * zoom);\r\n\t\tint coordY = Math.round((guiY - origin.y) * zoom);\r\n\t\tVector2df pos = new Vector2df(coordX, coordY);\r\n\t\treturn pos;\r\n\t}",
"public Point2D nodeToPoint(String node_coord) { return node_coord_lu.get(node_coord); }",
"public GuiPoint coordinateToGui(Vector2f point) {\r\n\t\tint coordX = (int) Math.round(point.getX() * zoomFactor);\r\n\t\tint coordY = (int) Math.round(point.getY() * zoomFactor);\r\n\r\n\t\tint guiX = coordX + origin.x;\r\n\t\tint guiY = coordY + origin.y;\r\n\t\tGuiPoint pos = new GuiPoint(guiX, guiY);\r\n\r\n\t\treturn pos;\r\n\t}",
"public static Point convertPoint(Component source, int x, int y,\n\t\t\tObject object) {\n\t\tSystem.out.println(\"ERROR!\");new Exception().printStackTrace();throw new UnsupportedOperationException(\"Broken!\");\n\t}",
"public Point2D translatePoint( Figure f, Point2D p, Point2D dir);",
"@Override\r\n\tpublic Point getPoint(String pointRecord) {\r\n\r\n\t\ttry {\r\n\t\t\tString fieldSeparator = \" \";\r\n\r\n\t\t\t// parse data from vector\r\n\t\t\tStringTokenizer st = new StringTokenizer(pointRecord);\r\n\t\t\tPoint point = new Point();\r\n\t\t\tString[] data = new String[5];\r\n\t\t\tint i = 0;\r\n\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\tdata[i] = st.nextToken(fieldSeparator);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t// set point data\r\n\t\t\tpoint.setName(data[0]);\r\n\t\t\tpoint.setFirstCoordinate(Integer.parseInt(data[1]));\r\n\t\t\tpoint.setSecondCoordinate(Integer.parseInt(data[2]));\r\n\t\t\tpoint.setThirdCoordinate(Integer.parseInt(data[3]));\r\n\t\t\tpoint.setFourthCoordinate(Integer.parseInt(data[4]));\r\n\r\n\t\t\treturn point;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Invalid record : \" + pointRecord + \" . This record will be ignored.\");\r\n\t\t\tLogger.getLogger().severe(\"Invalid record : \" + pointRecord + \" . This record will be ignored.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }",
"public position convertToPosition(){\n\t\tdouble x = r * Math.cos(theta);\n\t\tdouble y = r * Math.sin(theta);\n\t\treturn new position(x, y);\n\t}",
"public abstract Proximity2DResult getNearestVertex(Geometry geom,\n\t\t\tPoint inputPoint);",
"@Pure\n\tPT getGraphPoint();",
"public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }",
"public Point getPoint(EastNorth p) {\n if(null == p)\n return new Point();\n double x = (p.east()-center.east())/scale + getWidth()/2;\n double y = (center.north()-p.north())/scale + getHeight()/2;\n return new Point((int)x,(int)y);\n }",
"public static double[] getPointFromGeom(String pointString){\n\t\tString sub = pointString.substring(6, pointString.length()-1);\n\t\tString[] split = sub.split(\" \");\n\t\tdouble[] point = new double[2];\n\t\tpoint[0] = Double.parseDouble(split[0]);\n\t\tpoint[1] = Double.parseDouble(split[1]);\n\t\treturn point;\n\t}",
"void getPosRelPoint(double px, double py, double pz, DVector3 result);",
"public void updateShape(final Point pos)\n\t\t{\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tobj = new Rectangle(pos.x-(coords[2]/2)-3,pos.y-(coords[3]/2)-3,coords[2]+3,coords[3]+3);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[2]/2)-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[3]/2)-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tobj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t}",
"public Point scaleToGraphCanvasCoords(double x, double y);",
"public Point scaleToGraphCanvasCoords(int x, int y);",
"public abstract Vector3D getPointForSurfaceCoordinates(double u, double v);",
"public double getCoord(int index) {\n\t\treturn point[index];\n\t}",
"public Point getTestPoint() {\n WKTReader reader = new WKTReader();\n try {\n Point point = (Point) reader.read(TEST_POINT_WKT);\n point.setSRID(getTestSrid());\n return point;\n } catch (ParseException e) {\n throw new RuntimeException(e);\n }\n }",
"public GJPoint2D point(double t) {\n\t\tint index = (int) Math.floor(t);\n\t\t\n\t\t// Special case of last point\n\t\tif (index == this.segments.size() - 1 && Math.abs(t - index) < GJShape2D.ACCURACY)\n\t\t\treturn this.lastPoint();\n\t\t\t\n\t\t// extract curve segment\n\t\tGJSmoothCurve2D curve = segmentCurve(index);\n\t\tif (curve == null) {\n\t\t\tthrow new RuntimeException(\"Can not manage position for MOVE Path segments\");\n\t\t}\n\t\t\n\t\t// convert from global to local coordinates\n\t\tdouble t0 = curve.t0();\n\t\tdouble t1 = curve.t1();\n\t\tdouble t2 = (t - index) * (t1 - t0) + t0;\n\t\t\n\t\t// delegate processing to sub-curve instance\n\t\treturn curve.point(t2);\n\t}",
"public KDPoint getPoint() {\n\t\treturn new KDPoint(this.loc.lat,this.loc.lng,0.0);\n\t}",
"private Point derivePoint(int[] minMaxLatLon, Point edge, GeoPoint p){\n \tint y = (int)((minMaxLatLon[1] - p.getLatitude()) /\n \t\t\t((double)(minMaxLatLon[1] - minMaxLatLon[0])) *\n \t\t\t(edge.getY()));\n \t\n \tint x = (int)((p.getLongitude() - minMaxLatLon[2]) /\n \t\t\t((double)(minMaxLatLon[3] - minMaxLatLon[2])) *\n \t\t\t(edge.getX()));\n \t\n \treturn new Point(x, y);\n }",
"Coordinate createCoordinate();",
"public String coordToAddress(Coord loc);",
"public Position2D get2DPoint(Position3D point3D) {\r\n\t\tif(this.onPlane(point3D)) {\r\n\t\t\t\r\n\t\t\tVector3D dirOfPoint = this.pos.getDirection(point3D);\r\n\t\t\tVector3D xDir = this.vecX.proj(dirOfPoint);\r\n\t\t\tVector3D yDir = this.vecY.proj(dirOfPoint);\r\n\t\t\t\r\n\t\t\tPosition2D point2D = new Position2D();\r\n\t\t\t\r\n\t\t\tif (xDir.dot(this.vecX) > 0) {\r\n\t\t\t\tpoint2D.setX(xDir.getLength());\r\n\t\t\t} else {\r\n\t\t\t\tpoint2D.setX(-xDir.getLength());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (yDir.dot(this.vecY) > 0) {\r\n\t\t\t\tpoint2D.setY(yDir.getLength());\r\n\t\t\t} else {\r\n\t\t\t\tpoint2D.setY(-yDir.getLength());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn point2D;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@Generated\n @Selector(\"position\")\n @ByValue\n public native CGPoint position();",
"public SbVec3f\ngetObjectPoint() {\n\treturn getObjectPoint(null);\n}",
"public IPoint getFirstPoint()\n {\n Object[] verticesArray = this.getVertices().toArray();\n IPoint firstPoint = (IPoint)verticesArray[0];\n\n return firstPoint;\n }",
"public static PointF viewToPoint(View view) {\n return new PointF(Math.round(view.getX()), Math.round(view.getY()));\n }",
"public Tuple3d getClosestPoint(final Tuple3d point) {\n // A' = A - (A . n) * n\n final Vector3d aprime = new Vector3d(point);\n final double adotn = TupleMath.dot(point, this.normal);\n final Vector3d scaledNormal = new Vector3d(this.normal);\n scaledNormal.scale(adotn);\n aprime.subtract(scaledNormal);\n\n return aprime;\n }",
"protodef.b_math.coordOrBuilder getCoordInfoOrBuilder();",
"public abstract Proximity2DResult getNearestCoordinate(Geometry geom,\n\t\t\tPoint inputPoint, boolean bTestPolygonInterior,\n\t\t\tboolean bCalculateLeftRightSide);",
"private HexaPoint getHitboxCoord(int pos) {\n int x = 0;\n int y = 0;\n int z = 0;\n int coordX = this.coordPion.getX();\n int coordY = this.coordPion.getY();\n int coordZ = this.coordPion.getZ();\n switch (pos) {\n case 0:\n x = coordX;\n y = coordY + 1;\n z = coordZ - 1;\n break;\n case 1:\n x = coordX + 1;\n y = coordY;\n z = coordZ - 1;\n break;\n case 2:\n x = coordX + 1;\n y = coordY - 1;\n z = coordZ;\n break;\n case 3:\n x = coordX;\n y = coordY - 1;\n z = coordZ + 1;\n break;\n case 4:\n x = coordX - 1;\n y = coordY;\n z = coordZ + 1;\n break;\n case 5:\n x = coordX - 1;\n y = coordY + 1;\n z = coordZ;\n break;\n }\n return new HexaPoint(x, y, z);\n }",
"public double getPoint() {\r\n return point;\r\n }",
"public double getPoint() {\r\n return point;\r\n }",
"public Point getCentrePoint()\n\t\t{\n\t\t\tif(shape.equals(\"circle\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn new Point((int)((Ellipse2D)obj).getCenterX(),(int)((Ellipse2D)obj).getCenterY());\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tint xtot = 0;\n\t\t\t\tint ytot = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i % 2) == 0)\n\t\t\t\t\t\txtot += coords[i];\n\t\t\t\t\telse\n\t\t\t\t\t\tytot += coords[i];\n\t\t\t\t}\n\t\t\t\treturn new Point((xtot*2)/coords.length,(ytot*2)/coords.length);\n\t\t\t}else\n\t\t\t{\n\t\t\t\treturn new Point((int)((Rectangle)obj).getCenterX(),(int)((Rectangle)obj).getCenterY());\n\t\t\t}\n\t\t}",
"public Point getLocation() {\r\n\t\tint[] p = value.getIntArray();\r\n\t\tif (p.length < 2) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Location parameters must contain at least 2 values\");\r\n\t\t}\r\n\t\treturn (new Point(p[0], p[1]));\r\n\t}",
"public NurbsPoint getPoint(double s, double t) {\n double step2 = 0.001;\n\n if (s < u[0] + step2) s = u[0] + step2;\n if (s > u[nr_of_segments - 1] - step2) s = u[nr_of_segments - 1] - step2;\n if (t < v[0] + step2) t = v[0] + step2;\n if (t > v[points_per_segment - 1] - step2) t = v[points_per_segment - 1] - step2;\n\n return get_point_on_surface(s, t);\n }",
"public X location(Point p) {\n component.setLocation(p);\n return (X) this;\n }",
"Point2D getPlotCoordinates(Point2D drawCoordinates) {\n double x = minX + ((drawCoordinates.getX() - drawOffsetX) / drawWidth) * plotWidth;\n double y = minY + ((drawCoordinates.getY() - drawOffsetY) / drawHeight) * plotHeight;\n\n return new Point2D.Double(x, y);\n }",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public Point getPoint() {\n return point;\n }",
"public Vec4 expectPoint() {\n if(!isPoint()) throw new IllegalArgumentException(\"expected point: \" + this);\n return this;\n }",
"public Point2D getPoint(int index) {\n return(_pts[index]);\n }",
"public void jGeometry2DrawPoint(JGeometry jGeometry, String str, int id, String name, String color) {\n switch (jGeometry.getType()) {\n // it is a point\n case JGeometry.GTYPE_POINT:\n\t\t\t\tlistPoints.add(new DrawPoint());\n\t\t\t\tlistPoints.get(listPoints.size()-1).p2d = jGeometry.getJavaPoint();\n\t\t\t\tlistPoints.get(listPoints.size()-1).id = id;\n\t\t\t\tlistPoints.get(listPoints.size()-1).name = name;\n\t\t\t\tlistPoints.get(listPoints.size()-1).color = Color.decode(color);\n\t\t\t\tbreak;\n // it is something else (we do not know how to convert)\n default:\n System.err.println(\"Neznami typ geometrie: \" + jGeometry.getType()); \n }\n }",
"public Coordinate getPosition();",
"Point getPoint(String var)\n{\n if (var == null) return null;\n\n Object val = value_map.get(var);\n if (val == null) return null;\n if (val instanceof Point) return ((Point) val);\n else if (val instanceof Rectangle) {\n Rectangle r = (Rectangle) val;\n return new Point(r.x + r.width/2,r.y + r.height/2);\n }\n else if (val instanceof Component) {\n BudaRoot br = BudaRoot.findBudaRoot((Component) val);\n BudaBubbleArea bba = BudaRoot.findBudaBubbleArea(((Component) val));\n Rectangle r = BudaRoot.findBudaLocation(((Component) val));\n Point pt = new Point(r.x + r.width/2,r.y + r.height/2);\n pt = SwingUtilities.convertPoint(bba,pt,br);\n return pt;\n }\n\n return null;\n}",
"public GeoPoint(Geometry geometry, Point3D point) {\n\tsuper();\n\tthis.geometry = geometry;\n\tthis.point = point;\n}",
"public static GeoPoint transformPyLonlat(String points){\n\t\tString getUrl = MAP_URL+\"&latlon=\"+points;\n\t//\t//System.out.println(getUrl);\n\t\ttry {\n\t\t\tString resultjson = HttpUtil.sendGet(getUrl);\n\t\t if(resultjson==null||resultjson.equals(\"\")){\n\t\t \treturn null;\n\t\t }\n\t\t \n\t\t\tJSONObject jsonobj = JSONObject.parseObject(resultjson).getJSONObject(\"result\");\n\t\t\tJSONObject jsonmessage = JSONObject.parseObject(jsonobj.toString()).getJSONObject(\"pois\");\n\t\t\tJSONObject item =JSONObject.parseObject(jsonmessage.toString()).getJSONObject(\"item\");\n\t\t\tfloat lon = item.getFloatValue(\"lon\");\n\t\t\tfloat lan = item.getFloatValue(\"lat\");\n\t\t\treturn new GeoPoint(lan,lon);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public Point getPos(){\n return new Point(getUserFriendlyXPos(),getUserFriendlyYPos());\n }",
"protected Point PTtoXY(double pressure, double temperature) {\n Coordinate xy = world.map(WxMath.getSkewTXY(pressure, temperature));\n\n return new Point((int) Math.round(xy.x), (int) Math.round(xy.y));\n }",
"protected boolean isPoint( SimpleFeature feature )\n \t{\n \t\t// A better way to do this ?\n \t\treturn( feature.getType().getGeometryDescriptor().getType().getBinding() == com.vividsolutions.jts.geom.Point.class );\n \t}",
"public CoordPoint convertTouchCoordinates(CoordPoint coors) {\n float xtmp = coors.px * ((float) mCanvas.getWidth() / mIndoorMap.getRight());\n float ytmp = coors.py * ((float) mCanvas.getHeight() / mIndoorMap.getBottom());\n return new CoordPoint(xtmp, ytmp);\n }",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"public Point getPoint(){\n\t\treturn _point;\n\t}",
"public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }",
"public Point getCoordinate() {\n return this.coordinate;\n }",
"public Point getCarLocation() {\r\n\r\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n builder.setTables(FTS_VIRTUAL_TABLE_CAR);\r\n builder.setProjectionMap(mColumnMapCar);\r\n\r\n Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(),\r\n null, null, null, null, null, null);\r\n\r\n if (cursor == null) {\r\n return null;\r\n } else if (!cursor.moveToFirst()) {\r\n cursor.close();\r\n return null;\r\n }\r\n\r\n String point_str = cursor.getString(1);\r\n\r\n point_str = point_str.trim();\r\n String[] coordinates = point_str.split(\",\");\r\n String lon = coordinates[0];\r\n String lat = coordinates[1];\r\n\r\n double flon = Float.valueOf(lon);\r\n double flat = Float.valueOf(lat);\r\n\r\n return (new Point(flon, flat));\r\n }"
] |
[
"0.70256525",
"0.6488134",
"0.6392767",
"0.583238",
"0.5791116",
"0.5570079",
"0.5522927",
"0.5500706",
"0.53833103",
"0.53806865",
"0.53798693",
"0.53787917",
"0.5361105",
"0.5341607",
"0.52683496",
"0.52665496",
"0.5262378",
"0.5254701",
"0.5247845",
"0.5247845",
"0.5234897",
"0.5218366",
"0.5210223",
"0.51588875",
"0.5154015",
"0.51483256",
"0.5121081",
"0.50837785",
"0.50801307",
"0.5073764",
"0.50605583",
"0.5017712",
"0.50092244",
"0.5008479",
"0.4987746",
"0.49824783",
"0.4974852",
"0.49647182",
"0.496158",
"0.49570122",
"0.49502817",
"0.4941565",
"0.4941321",
"0.4940454",
"0.49230742",
"0.49205723",
"0.49150082",
"0.4913764",
"0.49134374",
"0.4904261",
"0.4895669",
"0.48806378",
"0.48732248",
"0.48683324",
"0.48567533",
"0.4846059",
"0.48406714",
"0.48285055",
"0.48168337",
"0.48164055",
"0.4810716",
"0.48016623",
"0.47993454",
"0.47961944",
"0.4793559",
"0.47909197",
"0.47865045",
"0.47834003",
"0.4755063",
"0.47518864",
"0.47489622",
"0.47467092",
"0.4738813",
"0.47381198",
"0.472996",
"0.47295144",
"0.47295144",
"0.47256616",
"0.4716254",
"0.47066614",
"0.4700359",
"0.46946847",
"0.46925235",
"0.46882764",
"0.46881396",
"0.4677033",
"0.46698007",
"0.46683076",
"0.4662536",
"0.4657588",
"0.46533176",
"0.46487787",
"0.4643096",
"0.4636897",
"0.46327406",
"0.46316043",
"0.46300662",
"0.4629111",
"0.46280497",
"0.46272582"
] |
0.6682844
|
1
|
Returns the rect encompassing the given rect converted to the given shape's coords.
|
public RMRect convertedRectToShape(RMRect aRect, RMShape aShape)
{
return convertRectToShape(new RMRect(aRect), aShape);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMRect convertRectToShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(getX(), getY()); return rect; }\n return getTransformToShape(shape).transform(rect);\n}",
"public RMRect convertRectFromShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(-getX(), -getY()); return rect; }\n return getTransformFromShape(shape).transform(rect);\n}",
"Rectangle getBoundingBox(Rectangle rect);",
"public RMRect convertedRectFromShape(RMRect aRect, RMShape aShape)\n{\n return convertRectFromShape(new RMRect(aRect), aShape);\n}",
"public static Rectangle toRectangle(int[] rect) {\r\n\t\tRectangle result = new Rectangle(rect[0], rect[1], rect[2], rect[3]);\r\n\t\treturn result;\r\n\t}",
"godot.wire.Wire.Rect2 getRect2Value();",
"private Geometry rectangleToGeometry(Rectangle2D r) {\n return createRectangle(r.getMinX(), r.getMinY(), r.getWidth(),\n r.getHeight());\n }",
"public Rectangle union(Rectangle rect) {\n\t\tint left = Math.min(this.x, rect.x);\n\t\tint top = Math.min(this.y, rect.y);\n\t\tint right = Math.max(this.x + this.width, rect.x + rect.width);\n\t\tint bottom = Math.max(this.y + this.height, rect.y + rect.height);\n\t\treturn new Rectangle(left, top, right - left, bottom - top);\n\t}",
"public Vector2D toRect()\n {\n return new Vector2D(this.x * Math.cos(this.y), this.x * Math.sin(this.y));\n }",
"public static S2LatLngRect getBoundingLatLngRect(final GeoRectangle geoRectangle) {\n final GeoPoint minPoint = geoRectangle.getBottomLeft();\n final GeoPoint maxPoint = geoRectangle.getTopRight();\n\n if (minPoint != null && maxPoint != null) {\n final S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());\n final S2LatLng maxLatLng = S2LatLng.fromDegrees(maxPoint.getLatitude(), maxPoint.getLongitude());\n return new S2LatLngRect(minLatLng, maxLatLng);\n } else {\n throw new IllegalArgumentException(\"min and max points must exist!!!\");\n }\n }",
"Rectangle getBounds();",
"public void fillRectangle(RectangleShape rectangle);",
"godot.wire.Wire.Rect2OrBuilder getRect2ValueOrBuilder();",
"RectangleLatLng getBounds();",
"org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto getRect();",
"private Geometry createRectangle(double x, double y, double w, double h) {\n Coordinate[] coords = {\n new Coordinate(x, y), new Coordinate(x, y + h),\n new Coordinate(x + w, y + h), new Coordinate(x + w, y),\n new Coordinate(x, y)\n };\n LinearRing lr = geometry.getFactory().createLinearRing(coords);\n\n return geometry.getFactory().createPolygon(lr, null);\n }",
"Rectangle getRect(){\n \treturn new Rectangle(x,y,70,25);\n }",
"public Rectangle2D translateRectangle( Figure f, Rectangle2D r, Point2D dir);",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public Rectangle get_rect() {\n\t\treturn new Rectangle(\n\t\t\t\torigin_x+component_x, \n\t\t\t\torigin_y+component_y-component_height+3, \n\t\t\t\tcomponent_width, \n\t\t\t\tcomponent_height\n\t\t\t);\n\t}",
"Rectangle getCollisionRectangle();",
"Rectangle getCollisionRectangle();",
"public Shape getRectangle() {\n return rectangle;\n }",
"public Rectangle toRectangle()\r\n {\r\n return new Rectangle(x, y, width, height);\r\n }",
"private Optional<Rectangle> resolveGenePosition(String chromosome, String startPos,\n String endPos, String strand) {\n if (Strings.isNullOrEmpty(strand)) {\n strand = \"1\";\n }\n Float s = FloatValidator.getInstance().validate(strand);\n Float y1;\n Float y2;\n if (s > 0.0) {\n y1 = FloatValidator.getInstance().validate(startPos);\n y2 = FloatValidator.getInstance().validate(endPos);\n } else {\n y1 = FloatValidator.getInstance().validate(endPos) * s;\n y2 = FloatValidator.getInstance().validate(startPos) * s;\n }\n\n // convert X & Y chromosome to numeric values (X=22, Y= 23)\n if (chromosome.toUpperCase().equals(\"X\")) {\n chromosome = \"23\";\n } else if (chromosome.toUpperCase().equals(\"Y\")) {\n chromosome = \"24\";\n }\n Float x1 = FloatValidator.getInstance().validate(chromosome);\n\n if (null == x1 || null == y1 || null == y2) {\n return Optional.empty();\n }\n Float x2 = x1; // pseudo rectangle\n return Optional.of(Geometries.rectangle(x1, y1, x2, y2));\n }",
"public Rectangle getRectangle();",
"public RectangleAdapter(Shapes rect) {\n super(rect);\n //this.rect = (Rectangle)rect;\n }",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public Shape getRotatedBounds(final Point2D pos,\n final int hpos, final int vpos, final double theta) {\n final AffineTransform at = AffineTransform.getTranslateInstance(\n pos.getX(), pos.getY());\n at.rotate(theta);\n at.translate(getHorizontalOffset(hpos), getVerticalOffset(vpos, true));\n return at.createTransformedShape(bbox);\n }",
"@Override\n\tpublic Rectangle2D getRectangle() {\n\t\treturn rect;\n\t}",
"private Rectangle2D getRectangle(Point2D e) {\n // QUADRANTS (where startPos = (0, 0))\n // 3 | 2\n // ---|---\n // 4 | 1\n\n double aspectRatio = (double) this.panel.getWidth() / (double) this.panel.getHeight();\n double width = Math.abs(e.getX() - this.startPos.getX());\n double height = Math.abs(e.getY() - this.startPos.getY());\n double x, y;\n\n // Ensure zoom box maintains same aspect ratio as image panel\n if (width / aspectRatio < height) {\n height = width / aspectRatio;\n } else {\n width = height * aspectRatio;\n }\n\n // Check which quadrant we are in\n // Then set the top left coordinate, whilst fixing one coordinate to the start position\n\n // Quadrant 1:\n if (this.startPos.getX() < e.getX() && this.startPos.getY() < e.getY()) {\n x = this.startPos.getX();\n y = this.startPos.getY();\n\n // Quadrant 2:\n } else if (this.startPos.getX() < e.getX() && this.startPos.getY() > e.getY()) {\n x = this.startPos.getX();\n y = this.startPos.getY() - height;\n\n // Quadrant 3:\n } else if (this.startPos.getX() > e.getX() && this.startPos.getY() > e.getY()) {\n x = this.startPos.getX() - width;\n y = this.startPos.getY() - height;\n\n // Quadrant 4:\n } else if (this.startPos.getX() > e.getX() && this.startPos.getY() < e.getY()) {\n x = this.startPos.getX() - width;\n y = this.startPos.getY();\n } else {\n\n // Width and/or height are 0, don't draw a box\n return null;\n }\n\n return new Rectangle2D.Double(x, y, width, height);\n }",
"public Rectangle2D getRectangle() {\n return Util.getRectangle(getLocation(), size);\n }",
"public Rectangle getRectangle() {\r\n return new Rectangle((int) x, (int) y, cwidth, cheight);\r\n }",
"public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}",
"public abstract Rectangle getSnapshotSquareBounds();",
"public Rectangle getBounds();",
"public Rectangle getBounds();",
"public void getRect(RectF rectF) {\n float[] fArr = this.coords;\n rectF.set(fArr[0], fArr[1], fArr[2], fArr[7]);\n }",
"@java.lang.SuppressWarnings({\"ReferenceEquality\"})\n private void mergeRect(org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto value) {\n value.getClass();\n if (rect_ != null &&\n rect_ != org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto.getDefaultInstance()) {\n rect_ =\n org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto.newBuilder(rect_).mergeFrom(value).buildPartial();\n } else {\n rect_ = value;\n }\n bitField0_ |= 0x00000001;\n }",
"public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }",
"private Rectangle integerise(Rectangle2D rect) {\n\t\tint x0 = (int) Math.ceil(rect.getMinX());\n\t\tint y0 = (int) Math.ceil(rect.getMinY());\n\t\tint x1 = (int) Math.floor(rect.getMaxX());\n\t\tint y1 = (int) Math.floor(rect.getMaxY());\n\t\treturn new Rectangle(x0, y0, (x1 - x0), (y1 - y0));\n\t}",
"public abstract Vector getDrawPosition(Rectangle selectionBox);",
"public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }",
"public interface CompositeShapeInt\n{\n /**\n Add a shape to this composite shape.\n @param aShape the shape to add\n */\n void add(Shape aShape);\n\n /**\n Returns an integer Rectangle that completely encloses the Shape.\n Note that there is no guarantee that the returned Rectangle is the\n smallest bounding box that encloses the Shape, only that the Shape\n lies entirely within the indicated Rectangle.\n */\n Rectangle getBounds();\n\n /**\n Draws this CompositeShape at the relative position to the top left corner of the bounding box.\n @param g2 the graphics context\n */\n void draw (Graphics2D g);\n\n}",
"public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}",
"Rectangle getCollisionBox();",
"public Shape getBounds(final Point2D pos,\n final int hpos, final int vpos, final Orientation o) {\n Shape res;\n switch(o) {\n case HORIZONTAL:\n res = getBounds(pos, hpos, vpos);\n break;\n case DIAGONAL:\n res = getRotatedBounds(pos, hpos, vpos, ROT_D);\n break;\n case VERTICAL:\n res = getRotatedBounds(pos, hpos, vpos, ROT_V);\n break;\n default:\n throw new AssertionError();\n }\n return res;\n }",
"public Rectangle getAWTRectangle() {\n\t\tRectangle r = null;\n\t\tif (width >= 0) {\n\t\t\tif (height >= 0) {\n\t\t\t\tr = new Rectangle(this.origin.getX0(), this.origin\n\t\t\t\t\t\t.getY0(), width, height);\n\t\t\t} else {\n\t\t\t\t// width >= 0 && height < 0\n\t\t\t\tr = new Rectangle(this.origin.getX0(), this.origin\n\t\t\t\t\t\t.getY0()\n\t\t\t\t\t\t+ height, width, -height);\n\t\t\t}\n\t\t} else {\n\t\t\tif (height >= 0) {\n\t\t\t\tr = new Rectangle(this.origin.getX0() + width, this.origin\n\t\t\t\t\t\t.getY0(), -width, height);\n\t\t\t} else {\n\t\t\t\t// width < 0 && height < 0\n\t\t\t\tr = new Rectangle(this.origin.getX0() + width, this.origin\n\t\t\t\t\t\t.getY0()\n\t\t\t\t\t\t+ height, -width, -height);\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}",
"public Iterable<Point2D> range(RectHV rect) {\n\t\tif (rect == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tQueue<Point2D> queue = new Queue<Point2D>();\n\t\tStack<Node> stack = new Stack<>();\n\t\tstack.push(root);\n\t\twhile (!stack.isEmpty()) {\n\t\t\tNode nCur = stack.pop();\n\t\t\tPoint2D pCur = nCur.point;\n\t\t\tif (rect.contains(pCur)) {\n\t\t\t\tqueue.enqueue(pCur);\n\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t}\n\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (nCur.bDirection == USING_X) {\n\t\t\t\t\tif (nCur.x < rect.xmin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.x > rect.xmax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (nCur.y < rect.ymin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.y > rect.ymax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn queue;\n\t}",
"private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }",
"public void strokeRectangle(RectangleShape rectangle);",
"@ApiModelProperty(value = \"Rectangle area where searched original text.\")\n public Rectangle getRect() {\n return rect;\n }",
"public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }",
"public RectangleFromGeometricObject(double width, double height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t}",
"public Shape getBgetBoundingBox() {\r\n\t\t\r\n\t\tEllipse2D elilipse = new Ellipse2D.Double(0, 0, imageWidth, imageHeight);\r\n\t\tAffineTransform at = new AffineTransform(); \r\n\t\tat.translate(locationX, locationY);\r\n\t\tat.rotate(Math.toRadians(angle*sizeAngles));\r\n\t\t at.scale(0.5, 0.5);\r\n\t\tat.translate(-imageWidth/2, -imageHeight/2);\r\n\t\t\r\n\t\tShape rotatedRect = at.createTransformedShape(elilipse);\r\n\t\treturn rotatedRect;\r\n\t}",
"public Rectangle2D getBounds(final Point2D pos, final int hpos, final int vpos) {\n return new Rectangle2D.Double(pos.getX() + getHorizontalOffset(hpos) + bbox.getX(),\n pos.getY() + getVerticalOffset(vpos, true) + bbox.getY(),\n bbox.getWidth(), bbox.getHeight());\n }",
"public Rectangle getRectangle(String key) {\n\t\tRectangle defaultValue = (Rectangle) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tRectangle result = new Rectangle();\n\t\ttry {\n\t\t\tint x, y, w, h;\n\t\t\tString token;\n\t\t\tStringTokenizer st = new StringTokenizer(sp, \" \", false);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\t// the value is not correctly formated => remove it\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\tx = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\ty = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\tw = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\th = Integer.parseInt(token);\n\t\t\tresult.setBounds(x, y, w, h);\n\t\t\treturn result;\n\t\t} catch (NumberFormatException e) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t}",
"public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }",
"public X computeRect(Rectangle visibleRect) {\n component.computeVisibleRect(visibleRect);\n return (X) this;\n }",
"private RectHV rightRect(RectHV rect, Node h) {\n\t\tif(h.isVertical) { // right rect\r\n\t\t\treturn new RectHV(h.p.x(), rect.ymin(), rect.xmax(), rect.ymax());\r\n\t\t} else { // top rect\r\n\t\t\treturn new RectHV(rect.xmin(), h.p.y(), rect.xmax(), rect.ymax());\r\n\t\t}\r\n\t}",
"BaseBounds computeShapeBounds(BaseBounds bounds, BaseTransform tx,\n com.sun.javafx.geom.Shape s)\n {\n if (impl_mode == NGShape.Mode.EMPTY) {\n return bounds.makeEmpty();\n }\n\n float[] bbox = {\n Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY,\n Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY,\n };\n boolean includeShape = (impl_mode != NGShape.Mode.STROKE);\n boolean includeStroke = (impl_mode != NGShape.Mode.FILL);\n if (includeStroke && (getStrokeType() == StrokeType.INSIDE)) {\n includeShape = true;\n includeStroke = false;\n }\n\n if (includeStroke) {\n final StrokeType type = getStrokeType();\n double sw = Utils.clampMin(getStrokeWidth(), MIN_STROKE_WIDTH);\n StrokeLineCap cap = getStrokeLineCap();\n StrokeLineJoin join = convertLineJoin(getStrokeLineJoin());\n float miterlimit =\n (float) Utils.clampMin(getStrokeMiterLimit(), MIN_STROKE_MITER_LIMIT);\n // Note that we ignore dashing for computing bounds and testing\n // point containment, both to save time in bounds calculations\n // and so that animated dashing does not keep perturbing the bounds...\n Toolkit.getToolkit().accumulateStrokeBounds(\n s,\n bbox, type, sw,\n cap, join, miterlimit, tx);\n // Account for \"minimum pen size\" by expanding by 0.5 device\n // pixels all around...\n bbox[0] -= 0.5;\n bbox[1] -= 0.5;\n bbox[2] += 0.5;\n bbox[3] += 0.5;\n } else if (includeShape) {\n com.sun.javafx.geom.Shape.accumulate(bbox, s, tx);\n }\n\n if (bbox[2] < bbox[0] || bbox[3] < bbox[1]) {\n // They are probably +/-INFINITY which would yield NaN if subtracted\n // Let's just return a \"safe\" empty bbox..\n return bounds.makeEmpty();\n }\n bounds = bounds.deriveWithNewBounds(bbox[0], bbox[1], 0.0f,\n bbox[2], bbox[3], 0.0f);\n return bounds;\n }",
"public Rectangle getShape(){\n return myRectangle;\n }",
"public Rectangle getRectangle() {\n if (isFacingRight) {\n return new Rectangle(getX() + R_HORIZ_OFF, getY() + VERT_OFF, SIDE_LEN, SIDE_LEN);\n } else {\n return new Rectangle(getX() + L_HORIZ_OFF, getY() + VERT_OFF, SIDE_LEN, SIDE_LEN);\n }\n }",
"public Rectangle getBounds(){\r\n return new Rectangle(x, y, w, w);\r\n }",
"default Rectangle2D constrainRectangle( Figure f, Rectangle2D r) {\n return translateRectangle(f, r, DIRECTION_NEAREST);\n }",
"public Rectangle getBounds() {\n\t\treturn new Rectangle((int) xPos, (int) yPos, (int) width, (int) height);\n\t}",
"public Rect union(Rect r) {\n int minX = min(this.x1, r.x1);\n int minY = min(this.y1, r.y1);\n int maxX = max(this.x2, r.x2);\n int maxY = max(this.y2, r.y2);\n return new Rect(minX, minY, maxX, maxY);\n }",
"public Rectangle getBound(){\n \tint x = (int)location.getX();\n \tint y = (int)location.getY();\n \t\n \tif(isExploded == false)\n \t\treturn new Rectangle(x, y, image.getWidth(null), image.getHeight(null));\n \telse\n \t\treturn new Rectangle(x,y, 1,1);\n }",
"@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}",
"private Rectangle computeGrabRect() {\n\t\tint grabWidth = (int) ((double) magnifierSize.width / zoom);\n\t\tint grabHeight = (int) ((double) magnifierSize.height / zoom);\n\t\t// upper left corner is current point\n\t\treturn new Rectangle(point.x-grabWidth/2, point.y-grabHeight/2, grabWidth, grabHeight);\n\t}",
"protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }",
"BaseBounds computeBounds(BaseBounds bounds, BaseTransform tx,\n double upad, double dpad,\n double x, double y,\n double w, double h)\n {\n // if the w or h is < 0 then bounds is empty\n if (w < 0.0f || h < 0.0f) return bounds.makeEmpty();\n\n double x0 = x;\n double y0 = y;\n double x1 = w;\n double y1 = h;\n double _dpad = dpad;\n if (tx.isTranslateOrIdentity()) {\n x1 += x0;\n y1 += y0;\n if (tx.getType() == BaseTransform.TYPE_TRANSLATION) {\n final double dx = tx.getMxt();\n final double dy = tx.getMyt();\n x0 += dx;\n y0 += dy;\n x1 += dx;\n y1 += dy;\n }\n _dpad += upad;\n } else {\n x0 -= upad;\n y0 -= upad;\n x1 += upad*2;\n y1 += upad*2;\n // Each corner is transformed by an equation similar to:\n // x' = x * mxx + y * mxy + mxt\n // y' = x * myx + y * myy + myt\n // Since all of the corners are translated by mxt,myt we\n // can ignore them when doing the min/max calculations\n // and add them in once when we are done. We then have\n // to do min/max operations on 4 points defined as:\n // x' = x * mxx + y * mxy\n // y' = x * myx + y * myy\n // Furthermore, the four corners that we will be transforming\n // are not four independent coordinates, they are in a\n // rectangular formation. To that end, if we translated\n // the transform to x,y and scaled it by width,height then\n // we could compute the min/max of the unit rectangle 0,0,1x1.\n // The transform would then be adjusted as follows:\n // First, the translation to x,y only affects the mxt,myt\n // components of the transform which we can hold off on adding\n // until we are done with the min/max. The adjusted translation\n // components would be:\n // mxt' = x * mxx + y * mxy + mxt\n // myt' = x * myx + y * myy + myt\n // Second, the scale affects the components as follows:\n // mxx' = mxx * width\n // mxy' = mxy * height\n // myx' = myx * width\n // myy' = myy * height\n // The min/max of that rectangle then degenerates to:\n // x00' = 0 * mxx' + 0 * mxy' = 0\n // y00' = 0 * myx' + 0 * myy' = 0\n // x01' = 0 * mxx' + 1 * mxy' = mxy'\n // y01' = 0 * myx' + 1 * myy' = myy'\n // x10' = 1 * mxx' + 0 * mxy' = mxx'\n // y10' = 1 * myx' + 0 * myy' = myx'\n // x11' = 1 * mxx' + 1 * mxy' = mxx' + mxy'\n // y11' = 1 * myx' + 1 * myy' = myx' + myy'\n double mxx = tx.getMxx();\n double mxy = tx.getMxy();\n double myx = tx.getMyx();\n double myy = tx.getMyy();\n // Computed translated translation components\n final double mxt = (x0 * mxx + y0 * mxy + tx.getMxt());\n final double myt = (x0 * myx + y0 * myy + tx.getMyt());\n // Scale non-translation components by w/h\n mxx *= x1;\n mxy *= y1;\n myx *= x1;\n myy *= y1;\n x0 = (Math.min(Math.min(0,mxx),Math.min(mxy,mxx+mxy)))+mxt;\n y0 = (Math.min(Math.min(0,myx),Math.min(myy,myx+myy)))+myt;\n x1 = (Math.max(Math.max(0,mxx),Math.max(mxy,mxx+mxy)))+mxt;\n y1 = (Math.max(Math.max(0,myx),Math.max(myy,myx+myy)))+myt;\n }\n x0 -= _dpad;\n y0 -= _dpad;\n x1 += _dpad;\n y1 += _dpad;\n\n bounds = bounds.deriveWithNewBounds((float)x0, (float)y0, 0.0f,\n (float)x1, (float)y1, 0.0f);\n return bounds;\n }",
"static boolean intersectsRect(R2Vector a, R2Vector b, R2Rect rect) {\n // First check whether the bound of AB intersects \"rect\".\n R2Rect bound = R2Rect.fromPointPair(a, b);\n if (!rect.intersects(bound)) {\n return false;\n }\n\n // Otherwise AB intersects \"rect\" if and only if all four vertices of \"rect\"\n // do not lie on the same side of the extended line AB. We test this by\n // finding the two vertices of \"rect\" with minimum and maximum projections\n // onto the normal of AB, and computing their dot products with the edge\n // normal.\n R2Vector n = R2Vector.sub(b, a).ortho();\n int i = (n.x >= 0) ? 1 : 0;\n int j = (n.y >= 0) ? 1 : 0;\n double max = n.dotProd(R2Vector.sub(rect.getVertex(i, j), a));\n double min = n.dotProd(R2Vector.sub(rect.getVertex(1 - i, 1 - j), a));\n return (max >= 0) && (min <= 0);\n }",
"private static void storeRectangle(Roi roi, MetadataStore store,\n int roiNum, int shape)\n {\n Rectangle bounds = roi.getBounds();\n store.setRectangleX(new Double(bounds.x), roiNum, shape);\n store.setRectangleY(new Double(bounds.y), roiNum, shape);\n store.setRectangleWidth(new Double(bounds.width), roiNum, shape);\n store.setRectangleHeight(new Double(bounds.height), roiNum, shape);\n }",
"boolean hasRect2Value();",
"public Iterable<Point2D> range(RectHV rect) \n\t {\n\t\t if(rect==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t LinkedQueue<Point2D> insidePoints = new LinkedQueue<Point2D>();\n\t\t range(root,rect.xmin(),rect.ymin(),rect.xmax(),rect.ymax(),insidePoints,true);\n\t\t return insidePoints;\n\t }",
"public Iterable<Point2D> range(RectHV rect) {\n Queue<Point2D> pointsInRect = new Queue<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }",
"public Rectangle2D getRectangle() {\n return rectangle;\n }",
"public MyRectangle getRectangle() {\n\t\treturn new MyRectangle(x, y, width, height);\n\t}",
"public RMRect getBounds() { return new RMRect(getX(), getY(), getWidth(), getHeight()); }",
"Rect getCollisionShape()\n {\n return new Rect(x+2,y+2,x +(width-2), y+(height-2));\n }",
"public Rectangle getHitBox()\n\t{\n\t\treturn new Rectangle(x, y, width, height);\n\t}",
"public boolean intersects(Circle2D circle, Rectangle2D rect) {\n\t\tfinal double radiusSquared = circle.getRadius() * circle.getRadius();\n\n\t\t/* translate coordinates, placing circle at origin */\n\t\tfinal Rectangle2D.Double r = new Rectangle2D.Double(rect.getX()\n\t\t\t\t- circle.getCenterX(), rect.getY() - circle.getCenterY(), rect\n\t\t\t\t.getWidth(), rect.getHeight());\n\n\t\tif (r.getMaxX() < 0) {\n\t\t\t/* rectangle to left of circle center */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle in lower left corner */\n\t\t\t\treturn ((r.getMaxX() * r.getMaxX() + r.getMaxY() * r.getMaxY()) < radiusSquared);\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle in upper left corner */\n\t\t\t\treturn ((r.getMaxX() * r.getMaxX() + r.getMinY() * r.getMinY()) < radiusSquared);\n\t\t\t} else {\n\t\t\t\t/* rectangle due west of circle */\n\t\t\t\treturn (Math.abs(r.getMaxX()) < circle.getRadius());\n\t\t\t}\n\t\t} else if (r.getMinX() > 0) {\n\t\t\t/* rectangle to right of circle center */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle in lower right corner */\n\t\t\t\treturn ((r.getMinX() * r.getMinX() + r.getMaxY() * r.getMaxY()) < radiusSquared);\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle in upper right corner */\n\t\t\t\treturn ((r.getMinX() * r.getMinX() + r.getMinY() * r.getMinY()) <= radiusSquared);\n\t\t\t} else {\n\t\t\t\t/* rectangle due east of circle */\n\t\t\t\treturn (r.getMinX() <= circle.getRadius());\n\t\t\t}\n\t\t} else {\n\t\t\t/* rectangle on circle vertical centerline */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle due south of circle */\n\t\t\t\treturn (Math.abs(r.getMaxY()) < circle.getRadius());\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle due north of circle */\n\t\t\t\treturn (r.getMinY() <= circle.getRadius());\n\t\t\t} else {\n\t\t\t\t/* rectangle contains circle center point */\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}",
"Rectangle getBounds() {\n return new Rectangle(getLocation(), getSize());\n }",
"public RMPath getPathInBounds() { return getPath().getPathInRect(getBoundsInside()); }",
"public abstract Rectangle getSnapshotBounds();",
"public abstract Cell getOverlappedCell(Rectangle rect);",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"rects cannot be null\");\n Queue<Point2D> pts = new Queue<Point2D>();\n range(pts, rect, root, inftyBbox);\n return pts;\n }",
"protected void computeRect(Raster[] sources,\n WritableRaster dest,\n Rectangle destRect) {\n // Retrieve format tags.\n RasterFormatTag[] formatTags = getFormatTags();\n\n RasterAccessor src = new RasterAccessor(sources[0], destRect, \n formatTags[0],\n getSourceImage(0).getColorModel());\n RasterAccessor dst = new RasterAccessor(dest, destRect, \n formatTags[1],\n getColorModel());\n\n if(dst.isBinary()) {\n byte[] dstBits = dst.getBinaryDataArray();\n System.arraycopy(src.getBinaryDataArray(), 0,\n dstBits, 0, dstBits.length);\n\n dst.copyBinaryDataToRaster();\n\n\t return;\n }\n\n /* Find out what kind of data type is used to store the image */\n switch ( dst.getDataType() ) {\n case DataBuffer.TYPE_BYTE:\n byteAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getByteDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getByteDataArrays());\n break;\n\n case DataBuffer.TYPE_SHORT:\n shortAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getShortDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getShortDataArrays());\n break;\n\n case DataBuffer.TYPE_USHORT:\n ushortAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getShortDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getShortDataArrays());\n break;\n\n case DataBuffer.TYPE_INT:\n intAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getIntDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getIntDataArrays());\n break;\n\n case DataBuffer.TYPE_FLOAT:\n floatAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getFloatDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getFloatDataArrays());\n break;\n\n case DataBuffer.TYPE_DOUBLE:\n doubleAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getDoubleDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getDoubleDataArrays());\n break;\n }\n if (dst.needsClamping()) {\n dst.clampDataArrays();\n }\n dst.copyDataToRaster();\n }",
"public void roundedRect(ShapeRenderer sr, float x, float y, float width, float height, float radius) {\n if(radius <= 0) {\n sr.rect(x, y, width, height);\n } else {\n // Central rectangle\n sr.rect(x + radius, y + radius, width - 2 * radius, height - 2 * radius);\n\n // Four side rectangles, in clockwise order\n sr.rect(x + radius, y, width - 2 * radius, radius);\n sr.rect(x + width - radius, y + radius, radius, height - 2 * radius);\n sr.rect(x + radius, y + height - radius, width - 2 * radius, radius);\n sr.rect(x, y + radius, radius, height - 2 * radius);\n\n // Four arches, clockwise too\n sr.arc(x + radius, y + radius, radius, 180f, 90f);\n sr.arc(x + width - radius, y + radius, radius, 270f, 90f);\n sr.arc(x + width - radius, y + height - radius, radius, 0f, 90f);\n sr.arc(x + radius, y + height - radius, radius, 90f, 90f);\n }\n }",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"@Override\n\tpublic GRectangle getBounds() {\n\t\tif (isEmpty()) {\n\t\t\treturn new GRectangle();\n\t\t} else {\n\t\t\tGPoint p0 = points.get(0);\n\t\t\tdouble minX = p0.getX();\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = p0.getY();\n\t\t\tdouble maxY = minY;\n\t\t\tfor (int i = 1; i < size(); i++) {\n\t\t\t\tGPoint p1 = points.get(i);\n\t\t\t\tminX = Math.min(minX, p1.getX());\n\t\t\t\tmaxX = Math.max(maxX, p1.getX());\n\t\t\t\tminY = Math.min(minY, p1.getY());\n\t\t\t\tmaxY = Math.max(maxY, p1.getY());\n\t\t\t}\n\t\t\treturn new GRectangle(minX, maxX, minY, maxY);\n\t\t}\n\t}",
"public Iterable<Point2D> range(RectHV rect)\n {\n Stack<Point2D> pointsInRect = new Stack<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }",
"public ConstRect(final Rectangle2D rect)\r\n {\r\n x = (int) Math.round(rect.getX());\r\n y = (int) Math.round(rect.getY());\r\n width = (int) Math.round(rect.getWidth());\r\n height = (int) Math.round(rect.getHeight());\r\n }",
"public RMRect bounds() { return new RMRect(x(), y(), width(), height()); }",
"private Rect convertRectToCamera2(Rect crop_rect, Rect rect) {\n double left_f = (rect.left + 1000) / 2000.0;\n double top_f = (rect.top + 1000) / 2000.0;\n double right_f = (rect.right + 1000) / 2000.0;\n double bottom_f = (rect.bottom + 1000) / 2000.0;\n int left = (int) (crop_rect.left + left_f * (crop_rect.width() - 1));\n int right = (int) (crop_rect.left + right_f * (crop_rect.width() - 1));\n int top = (int) (crop_rect.top + top_f * (crop_rect.height() - 1));\n int bottom = (int) (crop_rect.top + bottom_f * (crop_rect.height() - 1));\n left = Math.max(left, crop_rect.left);\n right = Math.max(right, crop_rect.left);\n top = Math.max(top, crop_rect.top);\n bottom = Math.max(bottom, crop_rect.top);\n left = Math.min(left, crop_rect.right);\n right = Math.min(right, crop_rect.right);\n top = Math.min(top, crop_rect.bottom);\n bottom = Math.min(bottom, crop_rect.bottom);\n\n return new Rect(left, top, right, bottom);\n }",
"public Rectangle getBounds() {\n return new Rectangle(x, y, 32, 32);\n }"
] |
[
"0.6391489",
"0.6325824",
"0.6324324",
"0.6320076",
"0.5658123",
"0.56452036",
"0.5598291",
"0.55457914",
"0.5487766",
"0.5461018",
"0.5427582",
"0.5427143",
"0.5426394",
"0.54107714",
"0.53551906",
"0.5354469",
"0.53222436",
"0.53004545",
"0.528472",
"0.528472",
"0.528472",
"0.5238278",
"0.5226863",
"0.5226863",
"0.52197075",
"0.5213071",
"0.51824677",
"0.5153115",
"0.5101557",
"0.508595",
"0.5085249",
"0.5080938",
"0.50746197",
"0.5066536",
"0.50586504",
"0.5034776",
"0.5030027",
"0.502871",
"0.502871",
"0.50253206",
"0.5015992",
"0.5013081",
"0.49953365",
"0.4976431",
"0.49736708",
"0.4953899",
"0.49501774",
"0.4946946",
"0.4935518",
"0.4934196",
"0.49312177",
"0.49245456",
"0.49235466",
"0.4922858",
"0.48989224",
"0.48957017",
"0.489317",
"0.48894522",
"0.48619658",
"0.48616678",
"0.48556757",
"0.4848326",
"0.4845931",
"0.4840591",
"0.48372528",
"0.48340476",
"0.4833629",
"0.48277265",
"0.48229274",
"0.47958314",
"0.47870168",
"0.47772616",
"0.47655404",
"0.47586",
"0.4758434",
"0.47485337",
"0.47396046",
"0.4734504",
"0.47305682",
"0.4729449",
"0.4727117",
"0.47224957",
"0.47196442",
"0.4709616",
"0.47068408",
"0.46990067",
"0.46942407",
"0.46936494",
"0.46898344",
"0.4688953",
"0.46826684",
"0.46609098",
"0.4648638",
"0.4645591",
"0.464358",
"0.4641593",
"0.4636781",
"0.46236628",
"0.4615957",
"0.46138638"
] |
0.6331523
|
1
|
Returns the rect encompassing the given rect converted from the given shape's coords.
|
public RMRect convertedRectFromShape(RMRect aRect, RMShape aShape)
{
return convertRectFromShape(new RMRect(aRect), aShape);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Rectangle getBoundingBox(Rectangle rect);",
"public RMRect convertRectToShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(getX(), getY()); return rect; }\n return getTransformToShape(shape).transform(rect);\n}",
"public RMRect convertedRectToShape(RMRect aRect, RMShape aShape)\n{\n return convertRectToShape(new RMRect(aRect), aShape);\n}",
"public RMRect convertRectFromShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(-getX(), -getY()); return rect; }\n return getTransformFromShape(shape).transform(rect);\n}",
"godot.wire.Wire.Rect2 getRect2Value();",
"public static Rectangle toRectangle(int[] rect) {\r\n\t\tRectangle result = new Rectangle(rect[0], rect[1], rect[2], rect[3]);\r\n\t\treturn result;\r\n\t}",
"public Rectangle union(Rectangle rect) {\n\t\tint left = Math.min(this.x, rect.x);\n\t\tint top = Math.min(this.y, rect.y);\n\t\tint right = Math.max(this.x + this.width, rect.x + rect.width);\n\t\tint bottom = Math.max(this.y + this.height, rect.y + rect.height);\n\t\treturn new Rectangle(left, top, right - left, bottom - top);\n\t}",
"private Geometry rectangleToGeometry(Rectangle2D r) {\n return createRectangle(r.getMinX(), r.getMinY(), r.getWidth(),\n r.getHeight());\n }",
"godot.wire.Wire.Rect2OrBuilder getRect2ValueOrBuilder();",
"Rectangle getBounds();",
"public static S2LatLngRect getBoundingLatLngRect(final GeoRectangle geoRectangle) {\n final GeoPoint minPoint = geoRectangle.getBottomLeft();\n final GeoPoint maxPoint = geoRectangle.getTopRight();\n\n if (minPoint != null && maxPoint != null) {\n final S2LatLng minLatLng = S2LatLng.fromDegrees(minPoint.getLatitude(), minPoint.getLongitude());\n final S2LatLng maxLatLng = S2LatLng.fromDegrees(maxPoint.getLatitude(), maxPoint.getLongitude());\n return new S2LatLngRect(minLatLng, maxLatLng);\n } else {\n throw new IllegalArgumentException(\"min and max points must exist!!!\");\n }\n }",
"public void fillRectangle(RectangleShape rectangle);",
"RectangleLatLng getBounds();",
"private Geometry createRectangle(double x, double y, double w, double h) {\n Coordinate[] coords = {\n new Coordinate(x, y), new Coordinate(x, y + h),\n new Coordinate(x + w, y + h), new Coordinate(x + w, y),\n new Coordinate(x, y)\n };\n LinearRing lr = geometry.getFactory().createLinearRing(coords);\n\n return geometry.getFactory().createPolygon(lr, null);\n }",
"public Vector2D toRect()\n {\n return new Vector2D(this.x * Math.cos(this.y), this.x * Math.sin(this.y));\n }",
"private Optional<Rectangle> resolveGenePosition(String chromosome, String startPos,\n String endPos, String strand) {\n if (Strings.isNullOrEmpty(strand)) {\n strand = \"1\";\n }\n Float s = FloatValidator.getInstance().validate(strand);\n Float y1;\n Float y2;\n if (s > 0.0) {\n y1 = FloatValidator.getInstance().validate(startPos);\n y2 = FloatValidator.getInstance().validate(endPos);\n } else {\n y1 = FloatValidator.getInstance().validate(endPos) * s;\n y2 = FloatValidator.getInstance().validate(startPos) * s;\n }\n\n // convert X & Y chromosome to numeric values (X=22, Y= 23)\n if (chromosome.toUpperCase().equals(\"X\")) {\n chromosome = \"23\";\n } else if (chromosome.toUpperCase().equals(\"Y\")) {\n chromosome = \"24\";\n }\n Float x1 = FloatValidator.getInstance().validate(chromosome);\n\n if (null == x1 || null == y1 || null == y2) {\n return Optional.empty();\n }\n Float x2 = x1; // pseudo rectangle\n return Optional.of(Geometries.rectangle(x1, y1, x2, y2));\n }",
"Rectangle getRect(){\n \treturn new Rectangle(x,y,70,25);\n }",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto getRect();",
"Rectangle getCollisionRectangle();",
"Rectangle getCollisionRectangle();",
"public Rectangle get_rect() {\n\t\treturn new Rectangle(\n\t\t\t\torigin_x+component_x, \n\t\t\t\torigin_y+component_y-component_height+3, \n\t\t\t\tcomponent_width, \n\t\t\t\tcomponent_height\n\t\t\t);\n\t}",
"public Rectangle toRectangle()\r\n {\r\n return new Rectangle(x, y, width, height);\r\n }",
"@java.lang.SuppressWarnings({\"ReferenceEquality\"})\n private void mergeRect(org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto value) {\n value.getClass();\n if (rect_ != null &&\n rect_ != org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto.getDefaultInstance()) {\n rect_ =\n org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto.newBuilder(rect_).mergeFrom(value).buildPartial();\n } else {\n rect_ = value;\n }\n bitField0_ |= 0x00000001;\n }",
"public Rectangle2D translateRectangle( Figure f, Rectangle2D r, Point2D dir);",
"public Rectangle getRectangle();",
"public Shape getRotatedBounds(final Point2D pos,\n final int hpos, final int vpos, final double theta) {\n final AffineTransform at = AffineTransform.getTranslateInstance(\n pos.getX(), pos.getY());\n at.rotate(theta);\n at.translate(getHorizontalOffset(hpos), getVerticalOffset(vpos, true));\n return at.createTransformedShape(bbox);\n }",
"public Shape getRectangle() {\n return rectangle;\n }",
"public abstract Rectangle getSnapshotSquareBounds();",
"public Rectangle getBounds();",
"public Rectangle getBounds();",
"public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }",
"private Rectangle2D getRectangle(Point2D e) {\n // QUADRANTS (where startPos = (0, 0))\n // 3 | 2\n // ---|---\n // 4 | 1\n\n double aspectRatio = (double) this.panel.getWidth() / (double) this.panel.getHeight();\n double width = Math.abs(e.getX() - this.startPos.getX());\n double height = Math.abs(e.getY() - this.startPos.getY());\n double x, y;\n\n // Ensure zoom box maintains same aspect ratio as image panel\n if (width / aspectRatio < height) {\n height = width / aspectRatio;\n } else {\n width = height * aspectRatio;\n }\n\n // Check which quadrant we are in\n // Then set the top left coordinate, whilst fixing one coordinate to the start position\n\n // Quadrant 1:\n if (this.startPos.getX() < e.getX() && this.startPos.getY() < e.getY()) {\n x = this.startPos.getX();\n y = this.startPos.getY();\n\n // Quadrant 2:\n } else if (this.startPos.getX() < e.getX() && this.startPos.getY() > e.getY()) {\n x = this.startPos.getX();\n y = this.startPos.getY() - height;\n\n // Quadrant 3:\n } else if (this.startPos.getX() > e.getX() && this.startPos.getY() > e.getY()) {\n x = this.startPos.getX() - width;\n y = this.startPos.getY() - height;\n\n // Quadrant 4:\n } else if (this.startPos.getX() > e.getX() && this.startPos.getY() < e.getY()) {\n x = this.startPos.getX() - width;\n y = this.startPos.getY();\n } else {\n\n // Width and/or height are 0, don't draw a box\n return null;\n }\n\n return new Rectangle2D.Double(x, y, width, height);\n }",
"public Rectangle2D getRectangle() {\n return Util.getRectangle(getLocation(), size);\n }",
"public RectangleAdapter(Shapes rect) {\n super(rect);\n //this.rect = (Rectangle)rect;\n }",
"public Rectangle getRectangle() {\r\n return new Rectangle((int) x, (int) y, cwidth, cheight);\r\n }",
"public Shape getBounds(final Point2D pos,\n final int hpos, final int vpos, final Orientation o) {\n Shape res;\n switch(o) {\n case HORIZONTAL:\n res = getBounds(pos, hpos, vpos);\n break;\n case DIAGONAL:\n res = getRotatedBounds(pos, hpos, vpos, ROT_D);\n break;\n case VERTICAL:\n res = getRotatedBounds(pos, hpos, vpos, ROT_V);\n break;\n default:\n throw new AssertionError();\n }\n return res;\n }",
"public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}",
"public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}",
"public Rect union(Rect r) {\n int minX = min(this.x1, r.x1);\n int minY = min(this.y1, r.y1);\n int maxX = max(this.x2, r.x2);\n int maxY = max(this.y2, r.y2);\n return new Rect(minX, minY, maxX, maxY);\n }",
"Rectangle getCollisionBox();",
"public Rectangle2D getBounds(final Point2D pos, final int hpos, final int vpos) {\n return new Rectangle2D.Double(pos.getX() + getHorizontalOffset(hpos) + bbox.getX(),\n pos.getY() + getVerticalOffset(vpos, true) + bbox.getY(),\n bbox.getWidth(), bbox.getHeight());\n }",
"public Rectangle getAWTRectangle() {\n\t\tRectangle r = null;\n\t\tif (width >= 0) {\n\t\t\tif (height >= 0) {\n\t\t\t\tr = new Rectangle(this.origin.getX0(), this.origin\n\t\t\t\t\t\t.getY0(), width, height);\n\t\t\t} else {\n\t\t\t\t// width >= 0 && height < 0\n\t\t\t\tr = new Rectangle(this.origin.getX0(), this.origin\n\t\t\t\t\t\t.getY0()\n\t\t\t\t\t\t+ height, width, -height);\n\t\t\t}\n\t\t} else {\n\t\t\tif (height >= 0) {\n\t\t\t\tr = new Rectangle(this.origin.getX0() + width, this.origin\n\t\t\t\t\t\t.getY0(), -width, height);\n\t\t\t} else {\n\t\t\t\t// width < 0 && height < 0\n\t\t\t\tr = new Rectangle(this.origin.getX0() + width, this.origin\n\t\t\t\t\t\t.getY0()\n\t\t\t\t\t\t+ height, -width, -height);\n\t\t\t}\n\t\t}\n\t\treturn r;\n\t}",
"public RectangleFromGeometricObject(double width, double height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t}",
"public Rectangle getRectangle(String key) {\n\t\tRectangle defaultValue = (Rectangle) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tRectangle result = new Rectangle();\n\t\ttry {\n\t\t\tint x, y, w, h;\n\t\t\tString token;\n\t\t\tStringTokenizer st = new StringTokenizer(sp, \" \", false);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\t// the value is not correctly formated => remove it\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\tx = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\ty = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\tw = Integer.parseInt(token);\n\t\t\tif (!st.hasMoreTokens()) {\n\t\t\t\tinternal.remove(key);\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\ttoken = st.nextToken();\n\t\t\th = Integer.parseInt(token);\n\t\t\tresult.setBounds(x, y, w, h);\n\t\t\treturn result;\n\t\t} catch (NumberFormatException e) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t}",
"@Override\n\tpublic Rectangle2D getRectangle() {\n\t\treturn rect;\n\t}",
"public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }",
"private Rectangle integerise(Rectangle2D rect) {\n\t\tint x0 = (int) Math.ceil(rect.getMinX());\n\t\tint y0 = (int) Math.ceil(rect.getMinY());\n\t\tint x1 = (int) Math.floor(rect.getMaxX());\n\t\tint y1 = (int) Math.floor(rect.getMaxY());\n\t\treturn new Rectangle(x0, y0, (x1 - x0), (y1 - y0));\n\t}",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public interface CompositeShapeInt\n{\n /**\n Add a shape to this composite shape.\n @param aShape the shape to add\n */\n void add(Shape aShape);\n\n /**\n Returns an integer Rectangle that completely encloses the Shape.\n Note that there is no guarantee that the returned Rectangle is the\n smallest bounding box that encloses the Shape, only that the Shape\n lies entirely within the indicated Rectangle.\n */\n Rectangle getBounds();\n\n /**\n Draws this CompositeShape at the relative position to the top left corner of the bounding box.\n @param g2 the graphics context\n */\n void draw (Graphics2D g);\n\n}",
"BaseBounds computeShapeBounds(BaseBounds bounds, BaseTransform tx,\n com.sun.javafx.geom.Shape s)\n {\n if (impl_mode == NGShape.Mode.EMPTY) {\n return bounds.makeEmpty();\n }\n\n float[] bbox = {\n Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY,\n Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY,\n };\n boolean includeShape = (impl_mode != NGShape.Mode.STROKE);\n boolean includeStroke = (impl_mode != NGShape.Mode.FILL);\n if (includeStroke && (getStrokeType() == StrokeType.INSIDE)) {\n includeShape = true;\n includeStroke = false;\n }\n\n if (includeStroke) {\n final StrokeType type = getStrokeType();\n double sw = Utils.clampMin(getStrokeWidth(), MIN_STROKE_WIDTH);\n StrokeLineCap cap = getStrokeLineCap();\n StrokeLineJoin join = convertLineJoin(getStrokeLineJoin());\n float miterlimit =\n (float) Utils.clampMin(getStrokeMiterLimit(), MIN_STROKE_MITER_LIMIT);\n // Note that we ignore dashing for computing bounds and testing\n // point containment, both to save time in bounds calculations\n // and so that animated dashing does not keep perturbing the bounds...\n Toolkit.getToolkit().accumulateStrokeBounds(\n s,\n bbox, type, sw,\n cap, join, miterlimit, tx);\n // Account for \"minimum pen size\" by expanding by 0.5 device\n // pixels all around...\n bbox[0] -= 0.5;\n bbox[1] -= 0.5;\n bbox[2] += 0.5;\n bbox[3] += 0.5;\n } else if (includeShape) {\n com.sun.javafx.geom.Shape.accumulate(bbox, s, tx);\n }\n\n if (bbox[2] < bbox[0] || bbox[3] < bbox[1]) {\n // They are probably +/-INFINITY which would yield NaN if subtracted\n // Let's just return a \"safe\" empty bbox..\n return bounds.makeEmpty();\n }\n bounds = bounds.deriveWithNewBounds(bbox[0], bbox[1], 0.0f,\n bbox[2], bbox[3], 0.0f);\n return bounds;\n }",
"public void getRect(RectF rectF) {\n float[] fArr = this.coords;\n rectF.set(fArr[0], fArr[1], fArr[2], fArr[7]);\n }",
"public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }",
"public X computeRect(Rectangle visibleRect) {\n component.computeVisibleRect(visibleRect);\n return (X) this;\n }",
"public Shape getBgetBoundingBox() {\r\n\t\t\r\n\t\tEllipse2D elilipse = new Ellipse2D.Double(0, 0, imageWidth, imageHeight);\r\n\t\tAffineTransform at = new AffineTransform(); \r\n\t\tat.translate(locationX, locationY);\r\n\t\tat.rotate(Math.toRadians(angle*sizeAngles));\r\n\t\t at.scale(0.5, 0.5);\r\n\t\tat.translate(-imageWidth/2, -imageHeight/2);\r\n\t\t\r\n\t\tShape rotatedRect = at.createTransformedShape(elilipse);\r\n\t\treturn rotatedRect;\r\n\t}",
"public Iterable<Point2D> range(RectHV rect) {\n\t\tif (rect == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tQueue<Point2D> queue = new Queue<Point2D>();\n\t\tStack<Node> stack = new Stack<>();\n\t\tstack.push(root);\n\t\twhile (!stack.isEmpty()) {\n\t\t\tNode nCur = stack.pop();\n\t\t\tPoint2D pCur = nCur.point;\n\t\t\tif (rect.contains(pCur)) {\n\t\t\t\tqueue.enqueue(pCur);\n\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t}\n\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (nCur.bDirection == USING_X) {\n\t\t\t\t\tif (nCur.x < rect.xmin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.x > rect.xmax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (nCur.y < rect.ymin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.y > rect.ymax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn queue;\n\t}",
"private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }",
"public Rectangle getBounds() {\n\t\treturn new Rectangle((int) xPos, (int) yPos, (int) width, (int) height);\n\t}",
"public void strokeRectangle(RectangleShape rectangle);",
"public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }",
"public Rectangle getBounds(){\r\n return new Rectangle(x, y, w, w);\r\n }",
"public Rectangle getRectangle() {\n if (isFacingRight) {\n return new Rectangle(getX() + R_HORIZ_OFF, getY() + VERT_OFF, SIDE_LEN, SIDE_LEN);\n } else {\n return new Rectangle(getX() + L_HORIZ_OFF, getY() + VERT_OFF, SIDE_LEN, SIDE_LEN);\n }\n }",
"default Rectangle2D constrainRectangle( Figure f, Rectangle2D r) {\n return translateRectangle(f, r, DIRECTION_NEAREST);\n }",
"public Rectangle getBound(){\n \tint x = (int)location.getX();\n \tint y = (int)location.getY();\n \t\n \tif(isExploded == false)\n \t\treturn new Rectangle(x, y, image.getWidth(null), image.getHeight(null));\n \telse\n \t\treturn new Rectangle(x,y, 1,1);\n }",
"private RectHV rightRect(RectHV rect, Node h) {\n\t\tif(h.isVertical) { // right rect\r\n\t\t\treturn new RectHV(h.p.x(), rect.ymin(), rect.xmax(), rect.ymax());\r\n\t\t} else { // top rect\r\n\t\t\treturn new RectHV(rect.xmin(), h.p.y(), rect.xmax(), rect.ymax());\r\n\t\t}\r\n\t}",
"static boolean intersectsRect(R2Vector a, R2Vector b, R2Rect rect) {\n // First check whether the bound of AB intersects \"rect\".\n R2Rect bound = R2Rect.fromPointPair(a, b);\n if (!rect.intersects(bound)) {\n return false;\n }\n\n // Otherwise AB intersects \"rect\" if and only if all four vertices of \"rect\"\n // do not lie on the same side of the extended line AB. We test this by\n // finding the two vertices of \"rect\" with minimum and maximum projections\n // onto the normal of AB, and computing their dot products with the edge\n // normal.\n R2Vector n = R2Vector.sub(b, a).ortho();\n int i = (n.x >= 0) ? 1 : 0;\n int j = (n.y >= 0) ? 1 : 0;\n double max = n.dotProd(R2Vector.sub(rect.getVertex(i, j), a));\n double min = n.dotProd(R2Vector.sub(rect.getVertex(1 - i, 1 - j), a));\n return (max >= 0) && (min <= 0);\n }",
"@ApiModelProperty(value = \"Rectangle area where searched original text.\")\n public Rectangle getRect() {\n return rect;\n }",
"@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}",
"boolean hasRect2Value();",
"private static void storeRectangle(Roi roi, MetadataStore store,\n int roiNum, int shape)\n {\n Rectangle bounds = roi.getBounds();\n store.setRectangleX(new Double(bounds.x), roiNum, shape);\n store.setRectangleY(new Double(bounds.y), roiNum, shape);\n store.setRectangleWidth(new Double(bounds.width), roiNum, shape);\n store.setRectangleHeight(new Double(bounds.height), roiNum, shape);\n }",
"private Rectangle computeGrabRect() {\n\t\tint grabWidth = (int) ((double) magnifierSize.width / zoom);\n\t\tint grabHeight = (int) ((double) magnifierSize.height / zoom);\n\t\t// upper left corner is current point\n\t\treturn new Rectangle(point.x-grabWidth/2, point.y-grabHeight/2, grabWidth, grabHeight);\n\t}",
"public abstract Rectangle getSnapshotBounds();",
"protected void computeRect(Raster[] sources,\n WritableRaster dest,\n Rectangle destRect) {\n // Retrieve format tags.\n RasterFormatTag[] formatTags = getFormatTags();\n\n RasterAccessor src = new RasterAccessor(sources[0], destRect, \n formatTags[0],\n getSourceImage(0).getColorModel());\n RasterAccessor dst = new RasterAccessor(dest, destRect, \n formatTags[1],\n getColorModel());\n\n if(dst.isBinary()) {\n byte[] dstBits = dst.getBinaryDataArray();\n System.arraycopy(src.getBinaryDataArray(), 0,\n dstBits, 0, dstBits.length);\n\n dst.copyBinaryDataToRaster();\n\n\t return;\n }\n\n /* Find out what kind of data type is used to store the image */\n switch ( dst.getDataType() ) {\n case DataBuffer.TYPE_BYTE:\n byteAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getByteDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getByteDataArrays());\n break;\n\n case DataBuffer.TYPE_SHORT:\n shortAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getShortDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getShortDataArrays());\n break;\n\n case DataBuffer.TYPE_USHORT:\n ushortAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getShortDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getShortDataArrays());\n break;\n\n case DataBuffer.TYPE_INT:\n intAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getIntDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getIntDataArrays());\n break;\n\n case DataBuffer.TYPE_FLOAT:\n floatAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getFloatDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getFloatDataArrays());\n break;\n\n case DataBuffer.TYPE_DOUBLE:\n doubleAbsolute(dst.getNumBands(),\n dst.getWidth(),\n dst.getHeight(),\n src.getScanlineStride(),\n src.getPixelStride(),\n src.getBandOffsets(),\n src.getDoubleDataArrays(),\n dst.getScanlineStride(),\n dst.getPixelStride(),\n dst.getBandOffsets(),\n dst.getDoubleDataArrays());\n break;\n }\n if (dst.needsClamping()) {\n dst.clampDataArrays();\n }\n dst.copyDataToRaster();\n }",
"public abstract Vector getDrawPosition(Rectangle selectionBox);",
"BaseBounds computeBounds(BaseBounds bounds, BaseTransform tx,\n double upad, double dpad,\n double x, double y,\n double w, double h)\n {\n // if the w or h is < 0 then bounds is empty\n if (w < 0.0f || h < 0.0f) return bounds.makeEmpty();\n\n double x0 = x;\n double y0 = y;\n double x1 = w;\n double y1 = h;\n double _dpad = dpad;\n if (tx.isTranslateOrIdentity()) {\n x1 += x0;\n y1 += y0;\n if (tx.getType() == BaseTransform.TYPE_TRANSLATION) {\n final double dx = tx.getMxt();\n final double dy = tx.getMyt();\n x0 += dx;\n y0 += dy;\n x1 += dx;\n y1 += dy;\n }\n _dpad += upad;\n } else {\n x0 -= upad;\n y0 -= upad;\n x1 += upad*2;\n y1 += upad*2;\n // Each corner is transformed by an equation similar to:\n // x' = x * mxx + y * mxy + mxt\n // y' = x * myx + y * myy + myt\n // Since all of the corners are translated by mxt,myt we\n // can ignore them when doing the min/max calculations\n // and add them in once when we are done. We then have\n // to do min/max operations on 4 points defined as:\n // x' = x * mxx + y * mxy\n // y' = x * myx + y * myy\n // Furthermore, the four corners that we will be transforming\n // are not four independent coordinates, they are in a\n // rectangular formation. To that end, if we translated\n // the transform to x,y and scaled it by width,height then\n // we could compute the min/max of the unit rectangle 0,0,1x1.\n // The transform would then be adjusted as follows:\n // First, the translation to x,y only affects the mxt,myt\n // components of the transform which we can hold off on adding\n // until we are done with the min/max. The adjusted translation\n // components would be:\n // mxt' = x * mxx + y * mxy + mxt\n // myt' = x * myx + y * myy + myt\n // Second, the scale affects the components as follows:\n // mxx' = mxx * width\n // mxy' = mxy * height\n // myx' = myx * width\n // myy' = myy * height\n // The min/max of that rectangle then degenerates to:\n // x00' = 0 * mxx' + 0 * mxy' = 0\n // y00' = 0 * myx' + 0 * myy' = 0\n // x01' = 0 * mxx' + 1 * mxy' = mxy'\n // y01' = 0 * myx' + 1 * myy' = myy'\n // x10' = 1 * mxx' + 0 * mxy' = mxx'\n // y10' = 1 * myx' + 0 * myy' = myx'\n // x11' = 1 * mxx' + 1 * mxy' = mxx' + mxy'\n // y11' = 1 * myx' + 1 * myy' = myx' + myy'\n double mxx = tx.getMxx();\n double mxy = tx.getMxy();\n double myx = tx.getMyx();\n double myy = tx.getMyy();\n // Computed translated translation components\n final double mxt = (x0 * mxx + y0 * mxy + tx.getMxt());\n final double myt = (x0 * myx + y0 * myy + tx.getMyt());\n // Scale non-translation components by w/h\n mxx *= x1;\n mxy *= y1;\n myx *= x1;\n myy *= y1;\n x0 = (Math.min(Math.min(0,mxx),Math.min(mxy,mxx+mxy)))+mxt;\n y0 = (Math.min(Math.min(0,myx),Math.min(myy,myx+myy)))+myt;\n x1 = (Math.max(Math.max(0,mxx),Math.max(mxy,mxx+mxy)))+mxt;\n y1 = (Math.max(Math.max(0,myx),Math.max(myy,myx+myy)))+myt;\n }\n x0 -= _dpad;\n y0 -= _dpad;\n x1 += _dpad;\n y1 += _dpad;\n\n bounds = bounds.deriveWithNewBounds((float)x0, (float)y0, 0.0f,\n (float)x1, (float)y1, 0.0f);\n return bounds;\n }",
"protected Rectangle unionBounds(Rectangle r, Rectangle bds)\n {\n if (bds != null) {\n if (r == null) {\n r = new Rectangle(bds);\n }\n else {\n r.union(bds);\n }\n }\n\n return r;\n }",
"public Rectangle getShape(){\n return myRectangle;\n }",
"Rect getCollisionShape()\n {\n return new Rect(x+2,y+2,x +(width-2), y+(height-2));\n }",
"protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }",
"Rectangle getBounds() {\n return new Rectangle(getLocation(), getSize());\n }",
"public RMRect getBounds() { return new RMRect(getX(), getY(), getWidth(), getHeight()); }",
"public MyRectangle getRectangle() {\n\t\treturn new MyRectangle(x, y, width, height);\n\t}",
"public Iterable<Point2D> range(RectHV rect) \n\t {\n\t\t if(rect==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t LinkedQueue<Point2D> insidePoints = new LinkedQueue<Point2D>();\n\t\t range(root,rect.xmin(),rect.ymin(),rect.xmax(),rect.ymax(),insidePoints,true);\n\t\t return insidePoints;\n\t }",
"@Override\n\tpublic GRectangle getBounds() {\n\t\tif (isEmpty()) {\n\t\t\treturn new GRectangle();\n\t\t} else {\n\t\t\tGPoint p0 = points.get(0);\n\t\t\tdouble minX = p0.getX();\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = p0.getY();\n\t\t\tdouble maxY = minY;\n\t\t\tfor (int i = 1; i < size(); i++) {\n\t\t\t\tGPoint p1 = points.get(i);\n\t\t\t\tminX = Math.min(minX, p1.getX());\n\t\t\t\tmaxX = Math.max(maxX, p1.getX());\n\t\t\t\tminY = Math.min(minY, p1.getY());\n\t\t\t\tmaxY = Math.max(maxY, p1.getY());\n\t\t\t}\n\t\t\treturn new GRectangle(minX, maxX, minY, maxY);\n\t\t}\n\t}",
"public void roundedRect(ShapeRenderer sr, float x, float y, float width, float height, float radius) {\n if(radius <= 0) {\n sr.rect(x, y, width, height);\n } else {\n // Central rectangle\n sr.rect(x + radius, y + radius, width - 2 * radius, height - 2 * radius);\n\n // Four side rectangles, in clockwise order\n sr.rect(x + radius, y, width - 2 * radius, radius);\n sr.rect(x + width - radius, y + radius, radius, height - 2 * radius);\n sr.rect(x + radius, y + height - radius, width - 2 * radius, radius);\n sr.rect(x, y + radius, radius, height - 2 * radius);\n\n // Four arches, clockwise too\n sr.arc(x + radius, y + radius, radius, 180f, 90f);\n sr.arc(x + width - radius, y + radius, radius, 270f, 90f);\n sr.arc(x + width - radius, y + height - radius, radius, 0f, 90f);\n sr.arc(x + radius, y + height - radius, radius, 90f, 90f);\n }\n }",
"public RMRect bounds() { return new RMRect(x(), y(), width(), height()); }",
"public abstract Cell getOverlappedCell(Rectangle rect);",
"public Iterable<Point2D> range(RectHV rect) {\n Queue<Point2D> pointsInRect = new Queue<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }",
"public Rectangle getBounds() {\n return new Rectangle(x, y, 32, 32);\n }",
"public RMPath getPathInBounds() { return getPath().getPathInRect(getBoundsInside()); }",
"public void fillRectangle(int x, int y, int width, int height);",
"public Rectangle getHitBox()\n\t{\n\t\treturn new Rectangle(x, y, width, height);\n\t}",
"public Rect(int xPos,int yPos,int rectWidth,int rectHeight,Color rectColor) {\n \tsuper(rectColor);\n \tx = xPos;\n \ty = yPos;\n \twidth = rectWidth;\n \theight = rectHeight;\n }",
"public boolean intersects(Circle2D circle, Rectangle2D rect) {\n\t\tfinal double radiusSquared = circle.getRadius() * circle.getRadius();\n\n\t\t/* translate coordinates, placing circle at origin */\n\t\tfinal Rectangle2D.Double r = new Rectangle2D.Double(rect.getX()\n\t\t\t\t- circle.getCenterX(), rect.getY() - circle.getCenterY(), rect\n\t\t\t\t.getWidth(), rect.getHeight());\n\n\t\tif (r.getMaxX() < 0) {\n\t\t\t/* rectangle to left of circle center */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle in lower left corner */\n\t\t\t\treturn ((r.getMaxX() * r.getMaxX() + r.getMaxY() * r.getMaxY()) < radiusSquared);\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle in upper left corner */\n\t\t\t\treturn ((r.getMaxX() * r.getMaxX() + r.getMinY() * r.getMinY()) < radiusSquared);\n\t\t\t} else {\n\t\t\t\t/* rectangle due west of circle */\n\t\t\t\treturn (Math.abs(r.getMaxX()) < circle.getRadius());\n\t\t\t}\n\t\t} else if (r.getMinX() > 0) {\n\t\t\t/* rectangle to right of circle center */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle in lower right corner */\n\t\t\t\treturn ((r.getMinX() * r.getMinX() + r.getMaxY() * r.getMaxY()) < radiusSquared);\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle in upper right corner */\n\t\t\t\treturn ((r.getMinX() * r.getMinX() + r.getMinY() * r.getMinY()) <= radiusSquared);\n\t\t\t} else {\n\t\t\t\t/* rectangle due east of circle */\n\t\t\t\treturn (r.getMinX() <= circle.getRadius());\n\t\t\t}\n\t\t} else {\n\t\t\t/* rectangle on circle vertical centerline */\n\t\t\tif (r.getMaxY() < 0) {\n\t\t\t\t/* rectangle due south of circle */\n\t\t\t\treturn (Math.abs(r.getMaxY()) < circle.getRadius());\n\t\t\t} else if (r.getMinY() > 0) {\n\t\t\t\t/* rectangle due north of circle */\n\t\t\t\treturn (r.getMinY() <= circle.getRadius());\n\t\t\t} else {\n\t\t\t\t/* rectangle contains circle center point */\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}",
"public RectangleShape(int xCoord, int yCoord, int widthOfRect, int heightOfRect)\n {\n System.out.println(\"setting x to: \"+ xCoord+\" & setting y to: \"+ yCoord);\n x = xCoord;\n y = yCoord;\n width = widthOfRect;\n height = heightOfRect;\n }",
"public Rectangle getBounds() {\n return new Rectangle(x, y, DIAMETER, DIAMETER); // returns a rectangle with its dimensions\r\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"rects cannot be null\");\n Queue<Point2D> pts = new Queue<Point2D>();\n range(pts, rect, root, inftyBbox);\n return pts;\n }"
] |
[
"0.624948",
"0.6206994",
"0.6205546",
"0.61812437",
"0.55679053",
"0.549548",
"0.5476639",
"0.5441834",
"0.5378152",
"0.53768283",
"0.53666943",
"0.53531224",
"0.53056276",
"0.52859765",
"0.5272203",
"0.52480423",
"0.52430004",
"0.5236617",
"0.5236617",
"0.5236617",
"0.52312684",
"0.5193457",
"0.5193457",
"0.51418",
"0.51388764",
"0.5056528",
"0.50459385",
"0.50216496",
"0.4994332",
"0.49879056",
"0.4982857",
"0.49689534",
"0.49689534",
"0.49648538",
"0.49631137",
"0.4957932",
"0.49351543",
"0.49283192",
"0.49187705",
"0.49176875",
"0.4904762",
"0.49003035",
"0.48969662",
"0.48864472",
"0.48819673",
"0.48818168",
"0.48744926",
"0.4870582",
"0.487032",
"0.48622388",
"0.4843834",
"0.4837514",
"0.4836206",
"0.48322508",
"0.4830622",
"0.48245916",
"0.48139426",
"0.4792547",
"0.47899973",
"0.47858354",
"0.47731405",
"0.47656488",
"0.47641692",
"0.47591487",
"0.47524205",
"0.47499117",
"0.47484803",
"0.47360015",
"0.473509",
"0.4711394",
"0.46901697",
"0.46892068",
"0.46847084",
"0.46740508",
"0.46728772",
"0.46680227",
"0.4666836",
"0.4659397",
"0.4655646",
"0.46505457",
"0.4649916",
"0.4645065",
"0.46365148",
"0.46325243",
"0.45961854",
"0.4592623",
"0.45827267",
"0.4581836",
"0.45816147",
"0.45814836",
"0.45724285",
"0.4562597",
"0.45527697",
"0.4551344",
"0.45370787",
"0.45362487",
"0.45349717",
"0.4531618",
"0.4526921",
"0.45266604"
] |
0.62312794
|
1
|
Returns the given path converted to the given shape's coords.
|
public RMPath convertPathToShape(RMPath aPath, RMShape aShape)
{
RMTransform transform = getTransformToShape(aShape);
if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }
return aPath;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMPath convertPathFromShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformFromShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"public abstract Shape createPath();",
"public interface Path {\n\tVector2D [] getPointsAsArray();\n\n\tList<Vector2D> getPointsAsList();\n}",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();",
"org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D[] getPathArray();",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public void setPathOrigin(int x, int y);",
"public Position[] getPath() {\n\t\treturn path;\n\t}",
"private ShapeDrawable addPointToShapeDrawablePath(float x, float y, android.graphics.Path path){\n path.lineTo(x,y);\n\n // make local copy of path and store in new ShapeDrawable\n android.graphics.Path currPath = new android.graphics.Path(path);\n\n ShapeDrawable shapeDrawable = new ShapeDrawable();\n float[] color = {40,100,100};\n shapeDrawable.getPaint().setColor(Color.HSVToColor(color));//Color.MAGENTA);\n shapeDrawable.getPaint().setStyle(Paint.Style.STROKE);\n shapeDrawable.getPaint().setStrokeWidth(10);\n shapeDrawable.getPaint().setStrokeJoin(Paint.Join.ROUND);\n shapeDrawable.getPaint().setStrokeCap(Paint.Cap.ROUND);\n shapeDrawable.getPaint().setPathEffect(new CornerPathEffect(30));\n shapeDrawable.getPaint().setAntiAlias(true); // set anti alias so it smooths\n shapeDrawable.setIntrinsicHeight(displayManager.getHeight());\n shapeDrawable.setIntrinsicWidth(displayManager.getWidth());\n shapeDrawable.setBounds(0, 0, displayManager.getWidth(), displayManager.getHeight());\n\n shapeDrawable.setShape(new PathShape(currPath,displayManager.getWidth(),displayManager.getHeight()));\n\n return shapeDrawable;\n}",
"Path getLocation();",
"public PathOverlay drawPath(Path path);",
"public String getAsSVGPath() {\n\n\t\tString d=\"M \"+topleft.x +\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+bottomright.y+\" \"\n\t\t\t\t+\"L \"+topleft.x +\",\"+bottomright.y+\" z\";\n\n\n\t\treturn d;\n\t}",
"Path getPath();",
"IShape getShape(String name);",
"public void pathTo(int x1, int y1, int x2, int y2, int x3, int y3);",
"public Path getPath();",
"public T getPath() {\n\tif (path == null) path = newSplinePath2D();\n\tint cpsize = cplist.size();\n\tif (cpsize > 0) {\n\t CPoint[] array = new CPoint[cpsize];\n\t cplist.toArray(array);\n\t appendAux(array);\n\t cplist.clear();\n\t}\n\treturn path;\n }",
"public RMPath getPathInBounds() { return getPath().getPathInRect(getBoundsInside()); }",
"protected Shape decodeArrowPath(int width, int height) {\r\n\t\tdouble w = OTabbedPaneArrowButtonPainter.arrowWidth;\r\n\t\tdouble h = OTabbedPaneArrowButtonPainter.arrowHeight - 1;\r\n\r\n\t\tdouble x = (((this.decodeX(2.0f) - this.decodeX(1.0f)) / 2.0) - (w / 2.0)) + 0.5;\r\n\t\tdouble y = (((this.decodeY(2.0f) - this.decodeY(1.0f)) / 2.0) - (h / 2.0)) + 1.5;\r\n\r\n\t\tthis.path.reset();\r\n\t\tthis.path.moveTo(x, y + (h / 2.0));\r\n\t\tthis.path.lineTo(x + w, y);\r\n\t\tthis.path.lineTo(x + w, y + h);\r\n\t\tthis.path.closePath();\r\n\r\n\t\treturn this.path;\r\n\t}",
"public RMPath getMaskPath()\n{\n RMPath path = null;\n \n // If this shape draws anything, start with its path\n if(getStroke()!= null || getFill()!=null)\n path = getPathInBounds();\n \n // If this shape has children, add paths of children\n if(getChildCount()>0) {\n \n // Create list for paths\n List paths = new ArrayList();\n if(path!=null)\n paths.add(path);\n \n // Iterate over children and add their paths\n for(int i=0, iMax=getChildCount(); i<iMax; i++) {\n RMPath childPath = getChild(i).getMaskPath();\n if(childPath != null) {\n RMPath p2 = childPath.clone();\n p2.transformBy(getChild(i).getTransform());\n paths.add(p2);\n }\n }\n \n // Join paths\n if(paths.size() > 0)\n path = RMPathUtils.join(paths, RMPathUtils.JOIN_OP_ADD);\n }\n \n // Return path\n return path;\n}",
"String getRealPath(String path);",
"private Shape createPath(final Geometry geom) {\n return new LiteShape(geom, true, maxDistance);\n }",
"private ShapeDrawable addPointToShapeDrawablePath_quad(float x, float y, float x_next, float y_next, android.graphics.Path path){\n path.quadTo(x,y,(x_next+x)/2,(y_next+y)/2);\n\n // make local copy of path and store in new ShapeDrawable\n android.graphics.Path currPath = new android.graphics.Path(path);\n\n ShapeDrawable shapeDrawable = new ShapeDrawable();\n //shapeDrawable.getPaint().setColor(Color.MAGENTA);\n float[] color = {40,100,100};\n shapeDrawable.getPaint().setColor(Color.HSVToColor(color));\n shapeDrawable.getPaint().setStyle(Paint.Style.STROKE);\n shapeDrawable.getPaint().setStrokeWidth(10);\n shapeDrawable.getPaint().setStrokeJoin(Paint.Join.ROUND);\n shapeDrawable.getPaint().setStrokeCap(Paint.Cap.ROUND);\n shapeDrawable.getPaint().setPathEffect(new CornerPathEffect(30));\n shapeDrawable.getPaint().setAntiAlias(true); // set anti alias so it smooths\n shapeDrawable.setIntrinsicHeight(displayManager.getHeight());\n shapeDrawable.setIntrinsicWidth(displayManager.getWidth());\n shapeDrawable.setBounds(0, 0, displayManager.getWidth(), displayManager.getHeight());\n\n shapeDrawable.setShape(new PathShape(currPath,displayManager.getWidth(),displayManager.getHeight()));\n\n return shapeDrawable;\n }",
"public float[][] getPath() {\n/* 825 */ COSBase base = getCOSObject().getDictionaryObject(COSName.PATH);\n/* 826 */ if (base instanceof COSArray) {\n/* */ \n/* 828 */ COSArray array = (COSArray)base;\n/* 829 */ float[][] pathArray = new float[array.size()][];\n/* 830 */ for (int i = 0; i < array.size(); i++) {\n/* */ \n/* 832 */ COSBase base2 = array.getObject(i);\n/* 833 */ if (base2 instanceof COSArray) {\n/* */ \n/* 835 */ pathArray[i] = ((COSArray)array.getObject(i)).toFloatArray();\n/* */ }\n/* */ else {\n/* */ \n/* 839 */ pathArray[i] = new float[0];\n/* */ } \n/* */ } \n/* 842 */ return pathArray;\n/* */ } \n/* 844 */ return (float[][])null;\n/* */ }",
"private ArrayList<PathItem> parsePath(String path) {\n\t\tArrayList<PathItem> pathItems = new ArrayList<PathItem>();\n\t\tString[] items = path.split(\"~\\\\\\\\\");\n\t\tString[] item;\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\titem = items[i].split(\"~\");\n\t\t\tif (item.length >= 2)\n\t\t\t\tpathItems.add(new PathItem(item[0], item[1]));\n\t\t}\n\t\treturn pathItems;\n\t}",
"public Path2D.Double getBoundsAsPath() {\n\t\t\n\t\tRectangle2D.Double rect = getTextBounds();\n\t\tDouble w = rect.getWidth();\n\t\tDouble h = rect.getHeight();\n\t\t\n\t\tPath2D.Double bounds = new Path2D.Double();\n\t\tbounds.moveTo(0, 0);\n\t\tbounds.lineTo(w, 0);\n\t\tbounds.lineTo(w, h);\n\t\tbounds.lineTo(0, h);\n\t\tbounds.lineTo(0, 0);\n\t\t\n\t\treturn bounds;\n\t}",
"IPath getPath();",
"PathSegments getPath();",
"public interface Paths {\n String svg_path=\"M 1024.00,0.00\\n\"+\n \"C 1024.00,0.00 1024.00,1024.00 1024.00,1024.00\\n\"+\n \"1024.00,1024.00 0.00,1024.00 0.00,1024.00\\n\"+\n \"0.00,1024.00 0.00,0.00 0.00,0.00\\n\"+\n \"0.00,0.00 1024.00,0.00 1024.00,0.00 Z\\n\"+\n \"M 471.00,82.00\\n\"+\n \"C 471.00,82.00 436.00,86.46 436.00,86.46\\n\"+\n \"402.29,92.53 363.11,105.02 332.00,119.31\\n\"+\n \"212.66,174.10 124.94,279.73 93.13,407.00\\n\"+\n \"93.13,407.00 84.32,449.00 84.32,449.00\\n\"+\n \"84.32,449.00 83.71,459.00 83.71,459.00\\n\"+\n \"83.71,459.00 82.04,468.00 82.04,468.00\\n\"+\n \"82.04,468.00 82.04,477.00 82.04,477.00\\n\"+\n \"81.41,483.79 80.02,482.44 80.00,493.00\\n\"+\n \"80.00,493.00 80.00,531.00 80.00,531.00\\n\"+\n \"80.02,541.55 81.41,540.19 81.91,547.00\\n\"+\n \"83.59,569.87 87.15,592.72 92.74,615.00\\n\"+\n \"100.84,647.21 115.95,687.81 132.22,716.80\\n\"+\n \"132.22,716.80 151.28,747.23 151.28,747.23\\n\"+\n \"151.28,747.23 165.74,768.69 165.74,768.69\\n\"+\n \"165.74,768.69 170.22,773.74 170.22,773.74\\n\"+\n \"170.22,773.74 180.37,787.49 180.37,787.49\\n\"+\n \"180.37,787.49 189.63,797.04 189.63,797.04\\n\"+\n \"189.63,797.04 195.01,804.24 195.01,804.24\\n\"+\n \"195.01,804.24 221.76,830.99 221.76,830.99\\n\"+\n \"221.76,830.99 228.24,835.74 228.24,835.74\\n\"+\n \"228.24,835.74 235.76,842.99 235.76,842.99\\n\"+\n \"235.76,842.99 249.49,853.14 249.49,853.14\\n\"+\n \"249.49,853.14 255.31,858.26 255.31,858.26\\n\"+\n \"255.31,858.26 271.58,869.13 271.58,869.13\\n\"+\n \"291.22,882.33 311.33,894.77 333.00,904.45\\n\"+\n \"333.00,904.45 341.00,907.55 341.00,907.55\\n\"+\n \"367.84,919.54 388.74,925.41 417.00,932.47\\n\"+\n \"417.00,932.47 449.00,938.71 449.00,938.71\\n\"+\n \"449.00,938.71 457.00,939.29 457.00,939.29\\n\"+\n \"462.41,939.99 463.86,940.92 470.00,941.08\\n\"+\n \"470.00,941.08 480.00,941.08 480.00,941.08\\n\"+\n \"487.10,941.88 487.04,942.99 496.00,943.00\\n\"+\n \"496.00,943.00 532.00,943.00 532.00,943.00\\n\"+\n \"540.96,942.99 540.90,941.88 548.00,941.00\\n\"+\n \"548.00,941.00 558.00,941.00 558.00,941.00\\n\"+\n \"558.00,941.00 567.00,939.29 567.00,939.29\\n\"+\n \"567.00,939.29 575.00,938.71 575.00,938.71\\n\"+\n \"600.22,935.42 641.23,924.46 665.00,915.29\\n\"+\n \"704.92,899.89 742.59,878.10 776.69,852.26\\n\"+\n \"776.69,852.26 793.76,837.74 793.76,837.74\\n\"+\n \"793.76,837.74 800.24,832.99 800.24,832.99\\n\"+\n \"800.24,832.99 815.67,817.67 815.67,817.67\\n\"+\n \"815.67,817.67 830.99,802.24 830.99,802.24\\n\"+\n \"830.99,802.24 836.37,795.04 836.37,795.04\\n\"+\n \"836.37,795.04 843.63,787.49 843.63,787.49\\n\"+\n \"843.63,787.49 853.78,773.74 853.78,773.74\\n\"+\n \"853.78,773.74 858.80,768.26 858.80,768.26\\n\"+\n \"858.80,768.26 865.22,758.47 865.22,758.47\\n\"+\n \"865.22,758.47 883.32,731.61 883.32,731.61\\n\"+\n \"912.11,682.93 931.69,628.01 939.70,572.00\\n\"+\n \"939.70,572.00 940.29,564.00 940.29,564.00\\n\"+\n \"940.29,564.00 941.83,554.00 941.83,554.00\\n\"+\n \"941.83,554.00 943.09,532.00 943.09,532.00\\n\"+\n \"943.09,532.00 944.00,520.00 944.00,520.00\\n\"+\n \"944.09,461.78 934.76,408.42 913.76,354.00\\n\"+\n \"913.76,354.00 903.46,328.00 903.46,328.00\\n\"+\n \"903.46,328.00 888.10,299.00 888.10,299.00\\n\"+\n \"848.42,227.81 787.58,169.24 716.00,130.54\\n\"+\n \"697.75,120.67 678.43,112.81 659.00,105.63\\n\"+\n \"633.52,96.22 601.90,88.14 575.00,84.30\\n\"+\n \"575.00,84.30 567.00,83.71 567.00,83.71\\n\"+\n \"557.81,82.51 560.60,82.12 550.00,82.00\\n\"+\n \"550.00,82.00 530.00,80.14 530.00,80.14\\n\"+\n \"530.00,80.14 487.00,80.14 487.00,80.14\\n\"+\n \"478.45,81.70 480.15,81.95 471.00,82.00 Z\\n\"+\n \"M 621.75,530.91\\n\"+\n \"C 622.02,527.46 613.08,514.77 610.99,510.91\\n\"+\n \"610.99,510.91 582.50,458.00 582.50,458.00\\n\"+\n \"582.50,458.00 574.45,440.00 574.45,440.00\\n\"+\n \"574.45,440.00 562.02,415.00 562.02,415.00\\n\"+\n \"562.02,415.00 558.45,406.00 558.45,406.00\\n\"+\n \"558.45,406.00 547.55,384.00 547.55,384.00\\n\"+\n \"547.55,384.00 544.45,376.00 544.45,376.00\\n\"+\n \"544.45,376.00 537.55,362.00 537.55,362.00\\n\"+\n \"537.55,362.00 534.45,354.00 534.45,354.00\\n\"+\n \"534.45,354.00 519.54,322.00 519.54,322.00\\n\"+\n \"519.54,322.00 513.96,306.00 513.96,306.00\\n\"+\n \"513.96,306.00 490.85,254.00 490.85,254.00\\n\"+\n \"487.38,245.70 482.11,237.17 482.00,228.00\\n\"+\n \"482.00,228.00 482.00,224.00 482.00,224.00\\n\"+\n \"482.15,213.62 490.05,209.14 496.26,213.13\\n\"+\n \"504.24,218.27 512.34,230.36 517.45,238.42\\n\"+\n \"517.45,238.42 565.14,314.91 565.14,314.91\\n\"+\n \"565.14,314.91 597.99,367.28 597.99,367.28\\n\"+\n \"597.99,367.28 627.99,417.28 627.99,417.28\\n\"+\n \"627.99,417.28 633.72,427.83 633.72,427.83\\n\"+\n \"633.72,427.83 642.04,442.99 642.04,442.99\\n\"+\n \"642.04,442.99 647.01,451.09 647.01,451.09\\n\"+\n \"647.01,451.09 662.50,482.00 662.50,482.00\\n\"+\n \"665.34,487.69 671.71,498.69 670.27,504.91\\n\"+\n \"668.95,510.57 661.64,511.99 657.23,514.72\\n\"+\n \"657.23,514.72 636.00,526.23 636.00,526.23\\n\"+\n \"636.00,526.23 629.08,529.26 629.08,529.26\\n\"+\n \"624.38,531.87 623.04,535.59 618.00,538.00\\n\"+\n \"619.10,535.68 621.58,532.97 621.75,530.91 Z\\n\"+\n \"M 436.60,334.30\\n\"+\n \"C 436.60,334.30 449.66,322.96 449.66,322.96\\n\"+\n \"449.66,322.96 454.84,315.00 454.84,315.00\\n\"+\n \"458.55,309.64 464.74,303.48 471.00,301.36\\n\"+\n \"483.14,297.26 496.23,303.73 504.96,312.09\\n\"+\n \"507.66,314.67 511.26,318.44 512.30,322.09\\n\"+\n \"513.68,326.94 513.16,338.17 511.62,343.00\\n\"+\n \"511.62,343.00 508.00,352.00 508.00,352.00\\n\"+\n \"497.67,351.97 498.41,349.50 489.97,344.58\\n\"+\n \"489.97,344.58 465.96,330.58 465.96,330.58\\n\"+\n \"463.47,329.14 453.27,323.10 450.91,325.36\\n\"+\n \"449.58,326.64 451.17,328.37 452.10,329.27\\n\"+\n \"454.46,331.55 459.05,334.01 462.00,335.50\\n\"+\n \"462.00,335.50 492.91,352.99 492.91,352.99\\n\"+\n \"496.07,354.74 503.04,358.49 503.71,362.18\\n\"+\n \"504.12,364.49 503.07,371.74 501.40,373.40\\n\"+\n \"500.07,374.73 498.69,374.72 497.00,375.00\\n\"+\n \"497.00,375.00 498.00,384.00 498.00,384.00\\n\"+\n \"489.25,387.43 489.12,391.54 488.00,400.00\\n\"+\n \"488.00,400.00 484.56,402.29 484.56,402.29\\n\"+\n \"484.56,402.29 476.00,415.76 476.00,415.76\\n\"+\n \"474.01,415.99 471.15,416.11 469.28,415.76\\n\"+\n \"469.28,415.76 450.91,405.14 450.91,405.14\\n\"+\n \"450.91,405.14 431.28,393.99 431.28,393.99\\n\"+\n \"428.52,392.33 417.78,384.60 414.91,387.36\\n\"+\n \"413.58,388.64 415.17,390.37 416.10,391.27\\n\"+\n \"418.75,393.84 423.68,396.31 426.99,398.00\\n\"+\n \"426.99,398.00 436.04,403.42 436.04,403.42\\n\"+\n \"436.04,403.42 459.09,416.86 459.09,416.86\\n\"+\n \"464.58,420.20 469.84,421.09 466.87,429.00\\n\"+\n \"464.69,434.81 460.98,439.65 458.04,445.01\\n\"+\n \"458.04,445.01 434.58,486.04 434.58,486.04\\n\"+\n \"434.58,486.04 412.58,524.04 412.58,524.04\\n\"+\n \"412.58,524.04 406.75,535.74 406.75,535.74\\n\"+\n \"406.75,535.74 403.11,540.22 403.11,540.22\\n\"+\n \"403.11,540.22 399.78,546.77 399.78,546.77\\n\"+\n \"399.78,546.77 390.27,562.01 390.27,562.01\\n\"+\n \"390.27,562.01 377.78,584.77 377.78,584.77\\n\"+\n \"377.78,584.77 355.78,622.77 355.78,622.77\\n\"+\n \"352.15,628.93 347.72,634.90 346.00,642.00\\n\"+\n \"346.00,642.00 342.00,642.00 342.00,642.00\\n\"+\n \"327.89,641.76 309.68,627.91 297.00,621.34\\n\"+\n \"292.74,619.14 282.33,612.37 282.23,607.00\\n\"+\n \"282.16,602.98 286.67,598.03 288.56,594.40\\n\"+\n \"288.56,594.40 293.73,585.99 293.73,585.99\\n\"+\n \"293.73,585.99 309.28,558.77 309.28,558.77\\n\"+\n \"309.28,558.77 322.22,535.23 322.22,535.23\\n\"+\n \"322.22,535.23 331.85,522.00 331.85,522.00\\n\"+\n \"331.85,522.00 360.15,472.00 360.15,472.00\\n\"+\n \"360.15,472.00 378.42,441.00 378.42,441.00\\n\"+\n \"378.42,441.00 399.85,404.00 399.85,404.00\\n\"+\n \"399.85,404.00 404.19,396.00 404.19,396.00\\n\"+\n \"404.19,396.00 412.07,386.00 412.07,386.00\\n\"+\n \"417.87,375.86 412.46,368.80 422.00,368.00\\n\"+\n \"419.91,356.08 424.78,360.59 428.99,351.99\\n\"+\n \"432.09,345.64 427.65,342.70 436.00,342.00\\n\"+\n \"436.00,340.05 435.83,335.96 436.60,334.30 Z\\n\"+\n \"M 497.00,467.00\\n\"+\n \"C 497.00,467.00 566.00,467.00 566.00,467.00\\n\"+\n \"566.00,467.00 577.46,468.74 577.46,468.74\\n\"+\n \"577.46,468.74 589.72,489.83 589.72,489.83\\n\"+\n \"589.72,489.83 600.58,509.96 600.58,509.96\\n\"+\n \"600.58,509.96 609.14,524.91 609.14,524.91\\n\"+\n \"609.14,524.91 615.84,535.28 615.84,535.28\\n\"+\n \"615.84,535.28 618.75,542.68 618.75,542.68\\n\"+\n \"618.75,542.68 633.00,569.00 633.00,569.00\\n\"+\n \"627.03,570.70 618.38,570.00 612.00,570.00\\n\"+\n \"612.00,570.00 575.00,570.00 575.00,570.00\\n\"+\n \"575.00,570.00 454.00,570.00 454.00,570.00\\n\"+\n \"454.00,570.00 413.00,570.00 413.00,570.00\\n\"+\n \"407.25,570.00 401.16,571.61 398.00,566.00\\n\"+\n \"398.00,566.00 408.22,549.23 408.22,549.23\\n\"+\n \"408.22,549.23 411.73,543.99 411.73,543.99\\n\"+\n \"411.73,543.99 415.53,536.16 415.53,536.16\\n\"+\n \"415.53,536.16 423.49,522.17 423.49,522.17\\n\"+\n \"423.49,522.17 445.49,484.17 445.49,484.17\\n\"+\n \"445.49,484.17 454.00,468.00 454.00,468.00\\n\"+\n \"454.00,468.00 497.00,467.00 497.00,467.00 Z\\n\"+\n \"M 702.17,542.80\\n\"+\n \"C 702.17,542.80 690.97,518.40 690.97,518.40\\n\"+\n \"690.97,518.40 685.92,508.73 685.92,508.73\\n\"+\n \"685.92,508.73 681.54,501.83 681.54,501.83\\n\"+\n \"681.54,501.83 678.58,494.04 678.58,494.04\\n\"+\n \"678.58,494.04 669.98,476.71 669.98,476.71\\n\"+\n \"668.90,474.57 667.26,470.96 669.00,468.74\\n\"+\n \"670.65,466.63 675.55,467.00 678.00,467.00\\n\"+\n \"678.00,467.00 771.00,467.00 771.00,467.00\\n\"+\n \"781.99,467.02 780.02,468.61 780.00,479.00\\n\"+\n \"780.00,479.00 780.00,540.00 780.00,540.00\\n\"+\n \"780.00,547.62 780.84,564.52 779.00,571.00\\n\"+\n \"779.00,571.00 755.00,570.00 755.00,570.00\\n\"+\n \"755.00,570.00 714.00,570.00 714.00,570.00\\n\"+\n \"712.50,563.82 705.24,548.95 702.17,542.80 Z\\n\"+\n \"M 244.00,544.00\\n\"+\n \"C 244.00,544.00 244.00,491.00 244.00,491.00\\n\"+\n \"244.00,491.00 244.00,475.00 244.00,475.00\\n\"+\n \"244.00,475.00 245.60,469.02 245.60,469.02\\n\"+\n \"245.60,469.02 253.00,468.00 253.00,468.00\\n\"+\n \"253.00,468.00 316.00,468.00 316.00,468.00\\n\"+\n \"316.00,468.00 348.00,469.00 348.00,469.00\\n\"+\n \"348.00,469.00 332.15,498.00 332.15,498.00\\n\"+\n \"332.15,498.00 320.46,519.00 320.46,519.00\\n\"+\n \"320.46,519.00 313.40,533.58 313.40,533.58\\n\"+\n \"313.40,533.58 305.83,546.80 305.83,546.80\\n\"+\n \"305.83,546.80 295.75,563.57 295.75,563.57\\n\"+\n \"295.75,563.57 291.45,569.18 291.45,569.18\\n\"+\n \"291.45,569.18 284.00,570.00 284.00,570.00\\n\"+\n \"284.00,570.00 245.00,571.00 245.00,571.00\\n\"+\n \"245.00,571.00 244.00,544.00 244.00,544.00 Z\\n\"+\n \"M 661.20,520.16\\n\"+\n \"C 665.01,518.10 669.48,513.82 674.00,513.69\\n\"+\n \"681.26,513.49 682.77,525.02 684.72,529.96\\n\"+\n \"685.98,533.16 687.84,534.10 689.23,536.51\\n\"+\n \"689.23,536.51 696.79,554.00 696.79,554.00\\n\"+\n \"702.32,565.71 706.00,565.74 706.00,580.00\\n\"+\n \"702.00,581.07 691.45,588.05 687.27,590.48\\n\"+\n \"677.93,595.93 672.90,598.00 662.00,598.00\\n\"+\n \"660.73,593.28 659.36,593.20 657.39,589.19\\n\"+\n \"657.39,589.19 654.74,583.08 654.74,583.08\\n\"+\n \"654.74,583.08 650.68,577.53 650.68,577.53\\n\"+\n \"650.68,577.53 640.75,561.49 640.75,561.49\\n\"+\n \"638.20,556.85 631.85,545.01 628.00,542.00\\n\"+\n \"628.00,542.00 628.00,536.00 628.00,536.00\\n\"+\n \"638.41,533.51 651.47,525.40 661.20,520.16 Z\\n\"+\n \"M 692.01,597.78\\n\"+\n \"C 692.01,597.78 700.77,593.28 700.77,593.28\\n\"+\n \"702.28,592.35 703.63,591.04 705.32,590.24\\n\"+\n \"707.11,589.89 710.07,590.01 712.00,590.24\\n\"+\n \"713.02,593.79 722.45,606.09 725.33,610.47\\n\"+\n \"725.33,610.47 749.32,646.47 749.32,646.47\\n\"+\n \"749.32,646.47 752.72,652.77 752.72,652.77\\n\"+\n \"752.72,652.77 761.84,667.20 761.84,667.20\\n\"+\n \"767.44,677.57 774.05,684.01 772.83,697.00\\n\"+\n \"772.00,705.79 771.20,707.97 765.00,714.14\\n\"+\n \"757.05,722.05 757.74,721.35 747.00,722.09\\n\"+\n \"743.86,722.30 742.31,722.92 739.00,722.68\\n\"+\n \"736.09,722.46 727.83,722.05 725.76,720.75\\n\"+\n \"718.69,716.32 714.23,704.93 710.57,697.60\\n\"+\n \"710.57,697.60 683.66,634.91 683.66,634.91\\n\"+\n \"680.50,626.27 674.27,614.84 674.00,606.00\\n\"+\n \"682.86,604.87 685.11,601.59 692.01,597.78 Z\\n\"+\n \"M 256.13,712.00\\n\"+\n \"C 256.13,712.00 264.84,685.00 264.84,685.00\\n\"+\n \"264.84,685.00 273.95,642.00 273.95,642.00\\n\"+\n \"273.95,642.00 277.26,627.00 277.26,627.00\\n\"+\n \"277.26,627.00 278.99,620.65 278.99,620.65\\n\"+\n \"278.99,620.65 284.00,618.00 284.00,618.00\\n\"+\n \"291.29,628.23 310.06,636.13 321.09,642.80\\n\"+\n \"327.01,646.39 330.75,645.36 334.00,652.00\\n\"+\n \"334.00,652.00 320.96,664.24 320.96,664.24\\n\"+\n \"320.96,664.24 315.04,668.38 315.04,668.38\\n\"+\n \"315.04,668.38 281.67,701.67 281.67,701.67\\n\"+\n \"281.67,701.67 263.48,719.19 263.48,719.19\\n\"+\n \"263.48,719.19 256.13,720.00 256.13,720.00\\n\"+\n \"256.13,720.00 256.13,712.00 256.13,712.00 Z\";\n}",
"public void setPath(Position[] path) {\n\t\tif(path != null)\n\t\t\tthis.path = path;\n\t}",
"public IPathItem getPath(String path){\r\n return pathsMap.get(path);\r\n }",
"Shape getShape();",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public String getPath() \r\n\t{\r\n\t\tStringBuilder pathBuilder = new StringBuilder();\r\n\t\tfor(Cell c: path)\r\n\t\t\tpathBuilder.append(\" (\" + c.getRow() + ',' + c.getColumn() + ')');\r\n\t\t\r\n\t\treturn pathBuilder.toString();\r\n\t}",
"private static void createPath(Path path) {\r\n\t\tString tempStr = \"\";\r\n\t\tint finished = 1;\r\n\t\tint tempId = -1;\r\n\t\tList<GeoCoordinate> polyline = new ArrayList<GeoCoordinate>();\r\n\t\tList<Place> placeList = new ArrayList<Place>();\r\n\t\tContainerNII pathNii = new ContainerNII();\r\n\t\tPlace place;\r\n\t\t\r\n\t\twhile (finished == 1){\r\n\t\t\t\r\n\t\t\tplace = new Place();\r\n\t\t\tcreatePlace(place);\r\n\t\t\tplaceList.add(place);\r\n\t\t\tfinished = checkContinue(\"place\");\r\n\t\t}\r\n\t\tpath.setPlaces(placeList);\r\n\t\t\r\n\t\tif ((tempId = insertInteger(\"path id: \")) != -1)\r\n\t\t\tpath.setId(tempId);\t\r\n\t\t\r\n\t\tinsertNIIValues(pathNii, \"path\");\r\n\t\tpath.setNii(pathNii);\r\n\t\t\r\n\t\tif ((tempStr = insertString(\"path length: \")) != null)\r\n\t\t\tpath.setLength(tempStr);\r\n\t\t\r\n\t\tinsertPolyline(polyline, strPath);\r\n\t\tpath.setPolyline(polyline);\r\n\t\t\r\n\t\tif ((tempStr = insertString(\"path duration: \")) != null)\r\n\t\t\tpath.setDuration(tempStr);\r\n\t\t\r\n\t}",
"private void drawPath(Graphics2D g2d, Shape path, Color c) {\n\t\tif (path == null)\n\t\t\treturn;\n\t\tg2d.setColor(c);\n\t\tg2d.draw(path);\n\t\tGeometryPath geom = new GeometryPath(path);\n\n\t\tShape s1 = creatTickDirection(path, geom.lengthOfPath() / 2, 4);\n\t\tShape s2 = creatTickDirection(path, geom.lengthOfPath() / 4, 3);\n\t\tShape s3 = creatTickDirection(path, geom.lengthOfPath() * 3 / 4, 3);\n\t\tif (s1 != null)\n\t\t\tg2d.fill(s1);\n\t\tif (s2 != null)\n\t\t\tg2d.fill(s2);\n\t\tif (s3 != null)\n\t\t\tg2d.fill(s3);\n\n\t}",
"public final native void setPath(JsArray<LatLng> value) /*-{\n\t\tthis.setPath(value);\n\t}-*/;",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"public void pathTo(int x, int y);",
"public ArrayList<Point> getPath() {\n\t\treturn path;\n\t\t\n\t}",
"Pair<Vertex, Double> closestVertexToPath(Loc pos);",
"public String getPath(String from, String to, String pathAlgo);",
"org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D getPathArray(int i);",
"public void convertToInstructions(List<Instruction> instructions,\n RShape shape) {\n // Recurse through any children of current shape\n for (int i = 0; i < shape.countChildren(); i++) {\n RShape s = shape.children[i];\n convertToInstructions(instructions, s);\n }\n\n // Generate Instruction objects for every path of shape\n for (int i = 0; i < shape.countPaths(); i++) {\n // Get the first point of this path\n RPath p = shape.paths[i];\n RPoint[] points = p.getPoints();\n RPoint p1 = points[0];\n\n // Move to that point\n instructions.add(new Instruction(Instruction.MOVE_ABS, p1.x, p1.y));\n\n // Draw lines to any subsequent points\n for (int k = 0; k < points.length - 1; k++) {\n RPoint p2 = points[k];\n instructions.add(new Instruction(Instruction.LINE_ABS, p2.x,\n p2.y));\n }\n }\n }",
"public static Polygon rotate(Shape shape, double theta) {\n\t\tPoint2D.Double center = getCenter(shape);\n\t\tArrayList<Point> points = new ArrayList<Point>();\n\t\t\n\t\tAffineTransform at = new AffineTransform();\n\t\tat.rotate(theta, center.x, center.y);\n\t\t\n\t\tfor (PathIterator pathI = shape.getPathIterator(at); !pathI.isDone(); pathI.next()) {\n\t\t\tdouble [] values = new double[6];\n\t\t\tpathI.currentSegment(values);\n\t\t\tpoints.add(new Point((int)values[0],(int)values[1]));\n\t\t}\n\t\t\n\t\tint [] xArray = new int[points.size()-1];\n\n\t\tint [] yArray = new int[points.size()-1];\n\t\t\n\t\tfor (int i = 0; i < points.size()-1; i +=1 ) {\n\t\t\txArray[i] = points.get(i).x;\n\t\t\tyArray[i] = points.get(i).y;\n\t\t}\n\t\tPolygon rshape = new Polygon(xArray,yArray,xArray.length);\n\t\treturn rshape;\n\t}",
"public Point2D getLocation();",
"public String path(String path1, String path2);",
"public GeneralPath toGeneralPath()\n {\n float x1 = getLowerLeftX();\n float y1 = getLowerLeftY();\n float x2 = getUpperRightX();\n float y2 = getUpperRightY();\n GeneralPath path = new GeneralPath();\n path.moveTo(x1, y1);\n path.lineTo(x2, y1);\n path.lineTo(x2, y2);\n path.lineTo(x1, y2);\n path.closePath();\n return path;\n }",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"List<Point> getPath(int grid[][], Point src, Point dest);",
"public Shape getPath()\n {\n if (getRadius() < 0.0001) return super.getPath();\n return new RoundRect(0, 0, getWidth(), getHeight(), getRadius());\n }",
"static public IPath convertToWorkspacePath(IPath cpath) {\r\n \treturn convertToWorkspacePath(cpath, false);\r\n }",
"static Shape concaveArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size, 0.0);\n \t\tpath.lineTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"public PathOverlay drawPath(Path path, Color color);",
"Path createPath();",
"public PathOverlay drawPath(Path path, boolean markers);",
"public static String unixPath(String path) {\n String convert = path.replace(\"\\\\\", \"/\");\n return convert;\n }",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"static public void shape(Shape2D shape, float dx, float dy){\n if (shape!=null) {\n if (shape instanceof Polygon) {\n polygon((Polygon) shape, dx, dy);\n } else if (shape instanceof Circle) {\n circle((Circle) shape, dx, dy);\n } else if (shape instanceof Rectangle) {\n rectangle((Rectangle) shape, dx, dy);\n } else if (shape instanceof Polypoint) {\n polypoint((Polypoint) shape, dx, dy);\n } else if (shape instanceof Polyline) {\n polyline((Polyline) shape, dx, dy);\n } else if (shape instanceof Edge) {\n edge((Edge) shape, dx, dy);\n } else if (shape instanceof Chain) {\n chain((Chain) shape, dx, dy);\n } else if (shape instanceof Shape2DCollection) { // includes subclass DotsAndLines\n collection((Shape2DCollection) shape, dx, dy);\n } else {\n throw new RuntimeException(\"unknown shape \" + shape.getClass());\n }\n }\n }",
"public abstract ScaledPathArray getPathList();",
"CtPath getPath();",
"public MapObject addPath(Coord... path) {\n if(internalNative != null) {\n long key = internalNative.beginPath();\n for(Coord c : path) {\n internalNative.addToPath(key, c.getLatitude(), c.getLongitude());\n }\n key = internalNative.finishPath(key);\n MapObject o = new MapObject();\n o.mapKey = key;\n markers.add(o);\n return o;\n } else {\n if(internalLightweightCmp != null) {\n LinesLayer ll = new LinesLayer();\n ll.addLineSegment(path);\n\n internalLightweightCmp.addLayer(ll);\n MapObject o = new MapObject();\n o.lines = ll;\n markers.add(o);\n return o;\n } else {\n // TODO: Browser component \n return null;\n }\n }\n }",
"public static ArrayList<LatLng> decodePolyPoints(String encodedPath){\n int len = encodedPath.length();\n\n final ArrayList<LatLng> path = new ArrayList<LatLng>();\n int index = 0;\n int lat = 0;\n int lng = 0;\n\n while (index < len) {\n int result = 1;\n int shift = 0;\n int b;\n do {\n b = encodedPath.charAt(index++) - 63 - 1;\n result += b << shift;\n shift += 5;\n } while (b >= 0x1f);\n lat += (result & 1) != 0 ? ~(result >> 1) : (result >> 1);\n\n result = 1;\n shift = 0;\n do {\n b = encodedPath.charAt(index++) - 63 - 1;\n result += b << shift;\n shift += 5;\n } while (b >= 0x1f);\n lng += (result & 1) != 0 ? ~(result >> 1) : (result >> 1);\n\n path.add(new LatLng(lat * 1e-5, lng * 1e-5));\n }\n\n return path;\n }",
"private void findPath1(List<Coordinate> path) {\n\n // records the start coordinate in a specific sequence.\n ArrayList<Coordinate> starts = new ArrayList<>();\n // records the end coordinate in a specific sequence.\n ArrayList<Coordinate> ends = new ArrayList<>();\n // records the total cost of the path in a specific sequence.\n ArrayList<Integer> cost = new ArrayList<>();\n\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(o1);\n graph.printPath(d1);\n starts.add(o1);\n ends.add(d1);\n cost.add(graph.getPathCost(d1));\n }\n }\n int index = getMinIndex(cost);\n\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(starts.get(index));\n graph.printPath(ends.get(index));\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n setSuccess(path);\n }",
"public static Polygon rotate(Shape shape, double theta, double x, double y) {\n\t\tArrayList<Point> points = new ArrayList<Point>();\n\t\t\n\t\tAffineTransform at = new AffineTransform();\n\t\tat.rotate(theta, x, y);\n\t\t\n\t\tfor (PathIterator pathI = shape.getPathIterator(at); !pathI.isDone(); pathI.next()) {\n\t\t\tdouble [] values = new double[6];\n\t\t\tpathI.currentSegment(values);\n\t\t\tpoints.add(new Point((int)values[0],(int)values[1]));\n\t\t}\n\t\t\n\t\tint [] xArray = new int[points.size()-1];\n\n\t\tint [] yArray = new int[points.size()-1];\n\t\t\n\t\tfor (int i = 0; i < points.size()-1; i +=1 ) {\n\t\t\txArray[i] = points.get(i).x;\n\t\t\tyArray[i] = points.get(i).y;\n\t\t}\n\t\tPolygon rshape = new Polygon(xArray,yArray,xArray.length);\n\t\treturn rshape;\n\t}",
"public List <RMShape> getShapesToShape(RMShape aShape)\n{\n // If shape is null or ancestor, return shapes to ancestor\n if(aShape==null || isAncestor(aShape))\n return getShapesToAncestor(aShape);\n \n // If shape is a descendant, return shapes to descendant\n if(isDescendant(aShape))\n return getShapesToDescendant(aShape);\n\n // Get common ancestor (if none, just return null)\n RMShape commonAncestor = getAncestorInCommon(aShape);\n if(commonAncestor==null)\n return null;\n \n // Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape\n List shapes = getShapesToAncestor(commonAncestor);\n shapes.remove(shapes.size()-1);\n shapes.addAll(commonAncestor.getShapesToDescendant(aShape));\n\n // Return shapes\n return shapes;\n}",
"public Path2D asAwtShape() {\n\t\t// creates the awt path\n\t\tPath2D.Double path = new Path2D.Double();\n\t\t\n\t\t// iterate on the path segments\n\t\tfor (Segment seg : this.segments) {\n\t\t\tseg.updatePath(path);\n\t\t}\n\t\t\n\t\t// returns the updated path\n\t\treturn path;\n\t}",
"static Path absolute(final Path path) {\n return path.toAbsolutePath().normalize();\n }",
"public Path getPath() {\n return p;\n }",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"public Tile[] getPath() {\n\t\tTile[] path = new Tile[tilePath.size()];\n\t\treturn tilePath.toArray(path);\n\t}",
"public boolean isPathCrossing(String path) {\n // keep track of x and y position \n int x = 0;\n int y = 0;\n // Hashset to hold cordinates \n HashSet<String> known = new HashSet<String>();\n // add original\n known.add(\"0,0\");\n // go through each char in the string\n for(int i = 0; i < path.length(); ++i){\n if(path.charAt(i) == 'N') ++x;\n \n else if(path.charAt(i) == 'S') --x;\n \n else if(path.charAt(i) == 'W') --y;\n \n else if(path.charAt(i) == 'E') ++y;\n \n String loc = x + \",\" + y;\n // if it is already there, return true\n if(known.contains(loc)) return true;\n // otherwise add and keep going\n known.add(loc);\n }\n // no known cordinates were found so return false\n return false;\n }",
"private void generatePath(List<Coordinate> source, List<Coordinate> path) {\n for (int i = 0; i < source.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = source.get(i);\n Coordinate end = source.get(i + 1);\n graph.dijkstra(start);\n graph.printPath(end);\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n }\n }",
"public position convertToPosition(){\n\t\tdouble x = r * Math.cos(theta);\n\t\tdouble y = r * Math.sin(theta);\n\t\treturn new position(x, y);\n\t}",
"IShape getCurrentShape();",
"public Location getNeighbouringPath(String enteredPath) {\r\n\t\t\treturn this.getPlayer().getCurrentLocation().getPaths().get(enteredPath);\r\n\t\t}",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public final XPath constructPath(){\r\n \tif(path == null){\r\n \t\tpath = new XPath(getPathArray());\r\n \t}\r\n\t\treturn path;\r\n }",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"public static void printPosition(double[][] path, double[][] trajectory) {\n\t\tSystem.out.println(\"X: \\t Y:\");\n\t\tfor(double[] u: path)\n\t\t\tSystem.out.println((u[0]- trajectory[0][0]) + \"\\t\" + (u[1]-trajectory[0][1]));\n\t}",
"private GeneralPath buildPath() {\n path = new GeneralPath();\n path.moveTo(p1.x, p1.y);\n path.lineTo(p2.x, p2.y);\n path.lineTo(p3.x, p3.y);\n path.closePath();\n assert path != null;\n return path;\n }",
"public static Future<Path> pathfind(PathFinder path, int sx, int sy, int tx, int ty) {\r\n\t\tgetNextID();\r\n\t\t\r\n\t\tFuture<Path> f = pool.submit(new Callable<Path>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Path call() throws Exception {\r\n\t\t\t\treturn path.findPath(new Mover() {}, sx, sy, tx, ty);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\treturn f;\r\n\t}",
"public Path getPath(){\n return this.path;\n }",
"public Shape getShape();",
"static Path getInputPath(Configuration conf) {\n String in = conf.get(MRUtils.INPUT_PATH);\n if (in == null) {\n return null;\n }\n return new Path(in);\n }",
"static Shape openArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\treturn path;\n \t}",
"private Square[] returnPath(Vertex v, GameBoard b) {\n // because we're starting at the end point,\n // we need build the path in 'reverse'\n Stack<Square> path = new Stack<Square>();\n\n // while we're not at the start point\n while ( v.dist != 0 ) {\n path.push(vertexToSquare(v,b));\n v = v.path;\n }\n\n // place the locations in the proper order\n Square[] road = new Square[path.size()];\n for ( int i = 0; i < path.size(); i++ )\n road[i] = path.pop();\n\n return road;\n }",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"public abstract void moveShape(double lon, double lat);",
"org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D addNewPath();",
"List<String> getShapePanelInput();",
"void setPathArray(int i, org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D path);",
"public static final String normalizePath(String path) {\n\t\t// Normalize the slashes and add leading slash if necessary\n\t\tString normalized = path;\n\t\tif (normalized.indexOf('\\\\') >= 0) {\n\t\t\tnormalized = normalized.replace('\\\\', '/');\n\t\t}\n\n\t\tif (!normalized.startsWith(\"/\")) {\n\t\t\tnormalized = \"/\" + normalized;\n\t\t}\n\n\t\t// Resolve occurrences of \"//\" in the normalized path\n\t\twhile (true) {\n\t\t\tint index = normalized.indexOf(\"//\");\n\t\t\tif (index < 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tnormalized = normalized.substring(0, index)\n\t\t\t\t\t+ normalized.substring(index + 1);\n\t\t}\n\n\t\t// Resolve occurrences of \"%20\" in the normalized path\n\t\twhile (true) {\n\t\t\tint index = normalized.indexOf(\"%20\");\n\t\t\tif (index < 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tnormalized = normalized.substring(0, index) + \" \"\n\t\t\t\t\t+ normalized.substring(index + 3);\n\t\t}\n\n\t\t// Resolve occurrences of \"/./\" in the normalized path\n\t\twhile (true) {\n\t\t\tint index = normalized.indexOf(\"/./\");\n\t\t\tif (index < 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tnormalized = normalized.substring(0, index)\n\t\t\t\t\t+ normalized.substring(index + 2);\n\t\t}\n\n\t\twhile (true) {\n\t\t\tint index = normalized.indexOf(\"/../\");\n\t\t\tif (index < 0)\n\t\t\t\tbreak;\n\t\t\tif (index == 0) {\n\t\t\t\treturn (null); // Trying to go outside our context\n\t\t\t}\n\t\t\tint index2 = normalized.lastIndexOf('/', index - 1);\n\t\t\tnormalized = normalized.substring(0, index2)\n\t\t\t\t\t+ normalized.substring(index + 3);\n\t\t}\n\n\t\t// Return the normalized path that we have completed\n\t\treturn (normalized);\n\t}",
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }"
] |
[
"0.6336763",
"0.5556961",
"0.5165361",
"0.5014127",
"0.49549472",
"0.49418798",
"0.492645",
"0.49000278",
"0.4885716",
"0.48660585",
"0.48386848",
"0.48077425",
"0.4804087",
"0.48029184",
"0.47442502",
"0.47292772",
"0.47234595",
"0.46958667",
"0.46905643",
"0.46554014",
"0.4653384",
"0.46206337",
"0.46162054",
"0.4614031",
"0.46139044",
"0.46012416",
"0.45988902",
"0.4559908",
"0.4555063",
"0.4536377",
"0.45173407",
"0.45118186",
"0.449994",
"0.44968665",
"0.44945627",
"0.44878712",
"0.44667995",
"0.44512603",
"0.44340193",
"0.4422102",
"0.4400528",
"0.44000265",
"0.43986046",
"0.43977812",
"0.43912902",
"0.43670866",
"0.43660724",
"0.43438655",
"0.43420383",
"0.43367875",
"0.43283582",
"0.4328196",
"0.4314705",
"0.43126556",
"0.43086165",
"0.43043488",
"0.4299951",
"0.42999476",
"0.42985284",
"0.42958465",
"0.42836863",
"0.42756602",
"0.42685682",
"0.4266092",
"0.42648837",
"0.42616478",
"0.42543074",
"0.42536962",
"0.42504787",
"0.42421368",
"0.42417386",
"0.4234832",
"0.42318767",
"0.4228525",
"0.42179346",
"0.41980433",
"0.41972774",
"0.4190557",
"0.41892797",
"0.41781777",
"0.41708568",
"0.41708568",
"0.41708568",
"0.41708568",
"0.41708568",
"0.41661602",
"0.416149",
"0.41586223",
"0.41552836",
"0.41429663",
"0.41325197",
"0.41316184",
"0.41281694",
"0.4123312",
"0.41211456",
"0.4119309",
"0.41182816",
"0.41176212",
"0.41158283",
"0.4115628"
] |
0.6246042
|
1
|
Returns the given path converted from the given shape's coords.
|
public RMPath convertPathFromShape(RMPath aPath, RMShape aShape)
{
RMTransform transform = getTransformFromShape(aShape);
if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }
return aPath;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMPath convertPathToShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformToShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"public abstract Shape createPath();",
"Path getPath();",
"public String getPath(String from, String to, String pathAlgo);",
"private Shape createPath(final Geometry geom) {\n return new LiteShape(geom, true, maxDistance);\n }",
"String getRealPath(String path);",
"public Path getPath();",
"public GeneralPath toGeneralPath()\n {\n float x1 = getLowerLeftX();\n float y1 = getLowerLeftY();\n float x2 = getUpperRightX();\n float y2 = getUpperRightY();\n GeneralPath path = new GeneralPath();\n path.moveTo(x1, y1);\n path.lineTo(x2, y1);\n path.lineTo(x2, y2);\n path.lineTo(x1, y2);\n path.closePath();\n return path;\n }",
"Path createPath();",
"public String getAsSVGPath() {\n\n\t\tString d=\"M \"+topleft.x +\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+bottomright.y+\" \"\n\t\t\t\t+\"L \"+topleft.x +\",\"+bottomright.y+\" z\";\n\n\n\t\treturn d;\n\t}",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"IPath getPath();",
"protected Shape decodeArrowPath(int width, int height) {\r\n\t\tdouble w = OTabbedPaneArrowButtonPainter.arrowWidth;\r\n\t\tdouble h = OTabbedPaneArrowButtonPainter.arrowHeight - 1;\r\n\r\n\t\tdouble x = (((this.decodeX(2.0f) - this.decodeX(1.0f)) / 2.0) - (w / 2.0)) + 0.5;\r\n\t\tdouble y = (((this.decodeY(2.0f) - this.decodeY(1.0f)) / 2.0) - (h / 2.0)) + 1.5;\r\n\r\n\t\tthis.path.reset();\r\n\t\tthis.path.moveTo(x, y + (h / 2.0));\r\n\t\tthis.path.lineTo(x + w, y);\r\n\t\tthis.path.lineTo(x + w, y + h);\r\n\t\tthis.path.closePath();\r\n\r\n\t\treturn this.path;\r\n\t}",
"public T getPath() {\n\tif (path == null) path = newSplinePath2D();\n\tint cpsize = cplist.size();\n\tif (cpsize > 0) {\n\t CPoint[] array = new CPoint[cpsize];\n\t cplist.toArray(array);\n\t appendAux(array);\n\t cplist.clear();\n\t}\n\treturn path;\n }",
"public RMPath getMaskPath()\n{\n RMPath path = null;\n \n // If this shape draws anything, start with its path\n if(getStroke()!= null || getFill()!=null)\n path = getPathInBounds();\n \n // If this shape has children, add paths of children\n if(getChildCount()>0) {\n \n // Create list for paths\n List paths = new ArrayList();\n if(path!=null)\n paths.add(path);\n \n // Iterate over children and add their paths\n for(int i=0, iMax=getChildCount(); i<iMax; i++) {\n RMPath childPath = getChild(i).getMaskPath();\n if(childPath != null) {\n RMPath p2 = childPath.clone();\n p2.transformBy(getChild(i).getTransform());\n paths.add(p2);\n }\n }\n \n // Join paths\n if(paths.size() > 0)\n path = RMPathUtils.join(paths, RMPathUtils.JOIN_OP_ADD);\n }\n \n // Return path\n return path;\n}",
"java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();",
"public String path(String path1, String path2);",
"public PathOverlay drawPath(Path path);",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"PathSegments getPath();",
"IShape getShape(String name);",
"public interface Path {\n\tVector2D [] getPointsAsArray();\n\n\tList<Vector2D> getPointsAsList();\n}",
"org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D[] getPathArray();",
"Path getLocation();",
"public String getPath() \r\n\t{\r\n\t\tStringBuilder pathBuilder = new StringBuilder();\r\n\t\tfor(Cell c: path)\r\n\t\t\tpathBuilder.append(\" (\" + c.getRow() + ',' + c.getColumn() + ')');\r\n\t\t\r\n\t\treturn pathBuilder.toString();\r\n\t}",
"public RMPath getPathInBounds() { return getPath().getPathInRect(getBoundsInside()); }",
"public Path2D.Double getBoundsAsPath() {\n\t\t\n\t\tRectangle2D.Double rect = getTextBounds();\n\t\tDouble w = rect.getWidth();\n\t\tDouble h = rect.getHeight();\n\t\t\n\t\tPath2D.Double bounds = new Path2D.Double();\n\t\tbounds.moveTo(0, 0);\n\t\tbounds.lineTo(w, 0);\n\t\tbounds.lineTo(w, h);\n\t\tbounds.lineTo(0, h);\n\t\tbounds.lineTo(0, 0);\n\t\t\n\t\treturn bounds;\n\t}",
"static public IPath convertToWorkspacePath(IPath cpath) {\r\n \treturn convertToWorkspacePath(cpath, false);\r\n }",
"private ShapeDrawable addPointToShapeDrawablePath(float x, float y, android.graphics.Path path){\n path.lineTo(x,y);\n\n // make local copy of path and store in new ShapeDrawable\n android.graphics.Path currPath = new android.graphics.Path(path);\n\n ShapeDrawable shapeDrawable = new ShapeDrawable();\n float[] color = {40,100,100};\n shapeDrawable.getPaint().setColor(Color.HSVToColor(color));//Color.MAGENTA);\n shapeDrawable.getPaint().setStyle(Paint.Style.STROKE);\n shapeDrawable.getPaint().setStrokeWidth(10);\n shapeDrawable.getPaint().setStrokeJoin(Paint.Join.ROUND);\n shapeDrawable.getPaint().setStrokeCap(Paint.Cap.ROUND);\n shapeDrawable.getPaint().setPathEffect(new CornerPathEffect(30));\n shapeDrawable.getPaint().setAntiAlias(true); // set anti alias so it smooths\n shapeDrawable.setIntrinsicHeight(displayManager.getHeight());\n shapeDrawable.setIntrinsicWidth(displayManager.getWidth());\n shapeDrawable.setBounds(0, 0, displayManager.getWidth(), displayManager.getHeight());\n\n shapeDrawable.setShape(new PathShape(currPath,displayManager.getWidth(),displayManager.getHeight()));\n\n return shapeDrawable;\n}",
"private GeneralPath buildPath() {\n path = new GeneralPath();\n path.moveTo(p1.x, p1.y);\n path.lineTo(p2.x, p2.y);\n path.lineTo(p3.x, p3.y);\n path.closePath();\n assert path != null;\n return path;\n }",
"CtPath getPath();",
"public static String convertPath(String path) {\n String clean = path.replaceAll(\"[^a-zA-Z0-9.-\\\\/]\", \"_\");\n String convert = clean.replace(\"\\\\\", \"/\");\n return convert;\n }",
"static Shape concaveArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size, 0.0);\n \t\tpath.lineTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"private static void createPath(Path path) {\r\n\t\tString tempStr = \"\";\r\n\t\tint finished = 1;\r\n\t\tint tempId = -1;\r\n\t\tList<GeoCoordinate> polyline = new ArrayList<GeoCoordinate>();\r\n\t\tList<Place> placeList = new ArrayList<Place>();\r\n\t\tContainerNII pathNii = new ContainerNII();\r\n\t\tPlace place;\r\n\t\t\r\n\t\twhile (finished == 1){\r\n\t\t\t\r\n\t\t\tplace = new Place();\r\n\t\t\tcreatePlace(place);\r\n\t\t\tplaceList.add(place);\r\n\t\t\tfinished = checkContinue(\"place\");\r\n\t\t}\r\n\t\tpath.setPlaces(placeList);\r\n\t\t\r\n\t\tif ((tempId = insertInteger(\"path id: \")) != -1)\r\n\t\t\tpath.setId(tempId);\t\r\n\t\t\r\n\t\tinsertNIIValues(pathNii, \"path\");\r\n\t\tpath.setNii(pathNii);\r\n\t\t\r\n\t\tif ((tempStr = insertString(\"path length: \")) != null)\r\n\t\t\tpath.setLength(tempStr);\r\n\t\t\r\n\t\tinsertPolyline(polyline, strPath);\r\n\t\tpath.setPolyline(polyline);\r\n\t\t\r\n\t\tif ((tempStr = insertString(\"path duration: \")) != null)\r\n\t\t\tpath.setDuration(tempStr);\r\n\t\t\r\n\t}",
"public Path2D asAwtShape() {\n\t\t// creates the awt path\n\t\tPath2D.Double path = new Path2D.Double();\n\t\t\n\t\t// iterate on the path segments\n\t\tfor (Segment seg : this.segments) {\n\t\t\tseg.updatePath(path);\n\t\t}\n\t\t\n\t\t// returns the updated path\n\t\treturn path;\n\t}",
"public static String unixPath(String path) {\n String convert = path.replace(\"\\\\\", \"/\");\n return convert;\n }",
"public IPathItem getPath(String path){\r\n return pathsMap.get(path);\r\n }",
"public abstract String getPath();",
"public abstract String getPath();",
"static Shape closedArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\tpath.closePath();\n \t\treturn path;\n \t}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public float[][] getPath() {\n/* 825 */ COSBase base = getCOSObject().getDictionaryObject(COSName.PATH);\n/* 826 */ if (base instanceof COSArray) {\n/* */ \n/* 828 */ COSArray array = (COSArray)base;\n/* 829 */ float[][] pathArray = new float[array.size()][];\n/* 830 */ for (int i = 0; i < array.size(); i++) {\n/* */ \n/* 832 */ COSBase base2 = array.getObject(i);\n/* 833 */ if (base2 instanceof COSArray) {\n/* */ \n/* 835 */ pathArray[i] = ((COSArray)array.getObject(i)).toFloatArray();\n/* */ }\n/* */ else {\n/* */ \n/* 839 */ pathArray[i] = new float[0];\n/* */ } \n/* */ } \n/* 842 */ return pathArray;\n/* */ } \n/* 844 */ return (float[][])null;\n/* */ }",
"private ShapeDrawable addPointToShapeDrawablePath_quad(float x, float y, float x_next, float y_next, android.graphics.Path path){\n path.quadTo(x,y,(x_next+x)/2,(y_next+y)/2);\n\n // make local copy of path and store in new ShapeDrawable\n android.graphics.Path currPath = new android.graphics.Path(path);\n\n ShapeDrawable shapeDrawable = new ShapeDrawable();\n //shapeDrawable.getPaint().setColor(Color.MAGENTA);\n float[] color = {40,100,100};\n shapeDrawable.getPaint().setColor(Color.HSVToColor(color));\n shapeDrawable.getPaint().setStyle(Paint.Style.STROKE);\n shapeDrawable.getPaint().setStrokeWidth(10);\n shapeDrawable.getPaint().setStrokeJoin(Paint.Join.ROUND);\n shapeDrawable.getPaint().setStrokeCap(Paint.Cap.ROUND);\n shapeDrawable.getPaint().setPathEffect(new CornerPathEffect(30));\n shapeDrawable.getPaint().setAntiAlias(true); // set anti alias so it smooths\n shapeDrawable.setIntrinsicHeight(displayManager.getHeight());\n shapeDrawable.setIntrinsicWidth(displayManager.getWidth());\n shapeDrawable.setBounds(0, 0, displayManager.getWidth(), displayManager.getHeight());\n\n shapeDrawable.setShape(new PathShape(currPath,displayManager.getWidth(),displayManager.getHeight()));\n\n return shapeDrawable;\n }",
"public PathExpressionIF createPathExpression();",
"public Path getPath(String path,String nombreArchivo);",
"public void setPathOrigin(int x, int y);",
"public SelectionPathV2 selectionPath(String sourceJP, String targetJP, boolean validatePath) {\n\n alreadyFound = false;\n // Verify if the join point exist\n // final JoinPointType source = getJoinPoint(joinPointList, sourceJP);\n var source = langSpec.getJoinPoint(sourceJP);\n var selPath = new SelectionPathV2(source, targetJP);\n\n if (source == null) {\n if (!validatePath) {\n // System.out.println(\"SEL PATH 1: \" + selPath);\n return selPath;\n }\n throw new RuntimeException(\n \"The source join point type '\" + sourceJP + \"' does not exist in the join point model.\");\n }\n Stack<Select> path = new Stack<>();\n final Select selected = select(source, targetJP);\n if (selected != null) {\n\n path.push(selected);\n selPath.setPath(path);\n // System.out.println(\"SEL PATH 2: \" + selPath);\n return selPath;\n } else {\n\n path = selectWithMiddlePath(targetJP, source, selPath);\n if (!path.isEmpty()) {\n selPath.setPath(path);\n }\n }\n // System.out.println(\"SEL PATH 3: \" + selPath);\n return selPath;\n\n }",
"public static Polygon rotate(Shape shape, double theta) {\n\t\tPoint2D.Double center = getCenter(shape);\n\t\tArrayList<Point> points = new ArrayList<Point>();\n\t\t\n\t\tAffineTransform at = new AffineTransform();\n\t\tat.rotate(theta, center.x, center.y);\n\t\t\n\t\tfor (PathIterator pathI = shape.getPathIterator(at); !pathI.isDone(); pathI.next()) {\n\t\t\tdouble [] values = new double[6];\n\t\t\tpathI.currentSegment(values);\n\t\t\tpoints.add(new Point((int)values[0],(int)values[1]));\n\t\t}\n\t\t\n\t\tint [] xArray = new int[points.size()-1];\n\n\t\tint [] yArray = new int[points.size()-1];\n\t\t\n\t\tfor (int i = 0; i < points.size()-1; i +=1 ) {\n\t\t\txArray[i] = points.get(i).x;\n\t\t\tyArray[i] = points.get(i).y;\n\t\t}\n\t\tPolygon rshape = new Polygon(xArray,yArray,xArray.length);\n\t\treturn rshape;\n\t}",
"public Shape getPath()\n {\n if (getRadius() < 0.0001) return super.getPath();\n return new RoundRect(0, 0, getWidth(), getHeight(), getRadius());\n }",
"private Shape creatTickDirection(Shape shape, float length, int size) {\n\t\tGeometryPath geom = new GeometryPath(shape);\n\t\tint div = size;\n\t\tif (length - div > 0 && length + 2 * div < geom.lengthOfPath()) {\n\t\t\tGeneralPath path = new GeneralPath();\n\t\t\tPoint2D p1 = geom.pointAtLength(length + 2 * div);\n\t\t\tPoint2D pl = geom.orthoLeftPointAtLength(length - div, div);\n\t\t\tPoint2D pr = geom.orthoRightPointAtLength(length - div, div);\n\t\t\tpath.moveTo(p1.getX(), p1.getY());\n\t\t\tpath.lineTo(pr.getX(), pr.getY());\n\t\t\tpath.lineTo(pl.getX(), pl.getY());\n\t\t\tpath.closePath();\n\t\t\treturn path;\n\t\t}\n\t\treturn null;\n\t}",
"public Position[] getPath() {\n\t\treturn path;\n\t}",
"@Nonnull\n Path getPath();",
"public interface Paths {\n String svg_path=\"M 1024.00,0.00\\n\"+\n \"C 1024.00,0.00 1024.00,1024.00 1024.00,1024.00\\n\"+\n \"1024.00,1024.00 0.00,1024.00 0.00,1024.00\\n\"+\n \"0.00,1024.00 0.00,0.00 0.00,0.00\\n\"+\n \"0.00,0.00 1024.00,0.00 1024.00,0.00 Z\\n\"+\n \"M 471.00,82.00\\n\"+\n \"C 471.00,82.00 436.00,86.46 436.00,86.46\\n\"+\n \"402.29,92.53 363.11,105.02 332.00,119.31\\n\"+\n \"212.66,174.10 124.94,279.73 93.13,407.00\\n\"+\n \"93.13,407.00 84.32,449.00 84.32,449.00\\n\"+\n \"84.32,449.00 83.71,459.00 83.71,459.00\\n\"+\n \"83.71,459.00 82.04,468.00 82.04,468.00\\n\"+\n \"82.04,468.00 82.04,477.00 82.04,477.00\\n\"+\n \"81.41,483.79 80.02,482.44 80.00,493.00\\n\"+\n \"80.00,493.00 80.00,531.00 80.00,531.00\\n\"+\n \"80.02,541.55 81.41,540.19 81.91,547.00\\n\"+\n \"83.59,569.87 87.15,592.72 92.74,615.00\\n\"+\n \"100.84,647.21 115.95,687.81 132.22,716.80\\n\"+\n \"132.22,716.80 151.28,747.23 151.28,747.23\\n\"+\n \"151.28,747.23 165.74,768.69 165.74,768.69\\n\"+\n \"165.74,768.69 170.22,773.74 170.22,773.74\\n\"+\n \"170.22,773.74 180.37,787.49 180.37,787.49\\n\"+\n \"180.37,787.49 189.63,797.04 189.63,797.04\\n\"+\n \"189.63,797.04 195.01,804.24 195.01,804.24\\n\"+\n \"195.01,804.24 221.76,830.99 221.76,830.99\\n\"+\n \"221.76,830.99 228.24,835.74 228.24,835.74\\n\"+\n \"228.24,835.74 235.76,842.99 235.76,842.99\\n\"+\n \"235.76,842.99 249.49,853.14 249.49,853.14\\n\"+\n \"249.49,853.14 255.31,858.26 255.31,858.26\\n\"+\n \"255.31,858.26 271.58,869.13 271.58,869.13\\n\"+\n \"291.22,882.33 311.33,894.77 333.00,904.45\\n\"+\n \"333.00,904.45 341.00,907.55 341.00,907.55\\n\"+\n \"367.84,919.54 388.74,925.41 417.00,932.47\\n\"+\n \"417.00,932.47 449.00,938.71 449.00,938.71\\n\"+\n \"449.00,938.71 457.00,939.29 457.00,939.29\\n\"+\n \"462.41,939.99 463.86,940.92 470.00,941.08\\n\"+\n \"470.00,941.08 480.00,941.08 480.00,941.08\\n\"+\n \"487.10,941.88 487.04,942.99 496.00,943.00\\n\"+\n \"496.00,943.00 532.00,943.00 532.00,943.00\\n\"+\n \"540.96,942.99 540.90,941.88 548.00,941.00\\n\"+\n \"548.00,941.00 558.00,941.00 558.00,941.00\\n\"+\n \"558.00,941.00 567.00,939.29 567.00,939.29\\n\"+\n \"567.00,939.29 575.00,938.71 575.00,938.71\\n\"+\n \"600.22,935.42 641.23,924.46 665.00,915.29\\n\"+\n \"704.92,899.89 742.59,878.10 776.69,852.26\\n\"+\n \"776.69,852.26 793.76,837.74 793.76,837.74\\n\"+\n \"793.76,837.74 800.24,832.99 800.24,832.99\\n\"+\n \"800.24,832.99 815.67,817.67 815.67,817.67\\n\"+\n \"815.67,817.67 830.99,802.24 830.99,802.24\\n\"+\n \"830.99,802.24 836.37,795.04 836.37,795.04\\n\"+\n \"836.37,795.04 843.63,787.49 843.63,787.49\\n\"+\n \"843.63,787.49 853.78,773.74 853.78,773.74\\n\"+\n \"853.78,773.74 858.80,768.26 858.80,768.26\\n\"+\n \"858.80,768.26 865.22,758.47 865.22,758.47\\n\"+\n \"865.22,758.47 883.32,731.61 883.32,731.61\\n\"+\n \"912.11,682.93 931.69,628.01 939.70,572.00\\n\"+\n \"939.70,572.00 940.29,564.00 940.29,564.00\\n\"+\n \"940.29,564.00 941.83,554.00 941.83,554.00\\n\"+\n \"941.83,554.00 943.09,532.00 943.09,532.00\\n\"+\n \"943.09,532.00 944.00,520.00 944.00,520.00\\n\"+\n \"944.09,461.78 934.76,408.42 913.76,354.00\\n\"+\n \"913.76,354.00 903.46,328.00 903.46,328.00\\n\"+\n \"903.46,328.00 888.10,299.00 888.10,299.00\\n\"+\n \"848.42,227.81 787.58,169.24 716.00,130.54\\n\"+\n \"697.75,120.67 678.43,112.81 659.00,105.63\\n\"+\n \"633.52,96.22 601.90,88.14 575.00,84.30\\n\"+\n \"575.00,84.30 567.00,83.71 567.00,83.71\\n\"+\n \"557.81,82.51 560.60,82.12 550.00,82.00\\n\"+\n \"550.00,82.00 530.00,80.14 530.00,80.14\\n\"+\n \"530.00,80.14 487.00,80.14 487.00,80.14\\n\"+\n \"478.45,81.70 480.15,81.95 471.00,82.00 Z\\n\"+\n \"M 621.75,530.91\\n\"+\n \"C 622.02,527.46 613.08,514.77 610.99,510.91\\n\"+\n \"610.99,510.91 582.50,458.00 582.50,458.00\\n\"+\n \"582.50,458.00 574.45,440.00 574.45,440.00\\n\"+\n \"574.45,440.00 562.02,415.00 562.02,415.00\\n\"+\n \"562.02,415.00 558.45,406.00 558.45,406.00\\n\"+\n \"558.45,406.00 547.55,384.00 547.55,384.00\\n\"+\n \"547.55,384.00 544.45,376.00 544.45,376.00\\n\"+\n \"544.45,376.00 537.55,362.00 537.55,362.00\\n\"+\n \"537.55,362.00 534.45,354.00 534.45,354.00\\n\"+\n \"534.45,354.00 519.54,322.00 519.54,322.00\\n\"+\n \"519.54,322.00 513.96,306.00 513.96,306.00\\n\"+\n \"513.96,306.00 490.85,254.00 490.85,254.00\\n\"+\n \"487.38,245.70 482.11,237.17 482.00,228.00\\n\"+\n \"482.00,228.00 482.00,224.00 482.00,224.00\\n\"+\n \"482.15,213.62 490.05,209.14 496.26,213.13\\n\"+\n \"504.24,218.27 512.34,230.36 517.45,238.42\\n\"+\n \"517.45,238.42 565.14,314.91 565.14,314.91\\n\"+\n \"565.14,314.91 597.99,367.28 597.99,367.28\\n\"+\n \"597.99,367.28 627.99,417.28 627.99,417.28\\n\"+\n \"627.99,417.28 633.72,427.83 633.72,427.83\\n\"+\n \"633.72,427.83 642.04,442.99 642.04,442.99\\n\"+\n \"642.04,442.99 647.01,451.09 647.01,451.09\\n\"+\n \"647.01,451.09 662.50,482.00 662.50,482.00\\n\"+\n \"665.34,487.69 671.71,498.69 670.27,504.91\\n\"+\n \"668.95,510.57 661.64,511.99 657.23,514.72\\n\"+\n \"657.23,514.72 636.00,526.23 636.00,526.23\\n\"+\n \"636.00,526.23 629.08,529.26 629.08,529.26\\n\"+\n \"624.38,531.87 623.04,535.59 618.00,538.00\\n\"+\n \"619.10,535.68 621.58,532.97 621.75,530.91 Z\\n\"+\n \"M 436.60,334.30\\n\"+\n \"C 436.60,334.30 449.66,322.96 449.66,322.96\\n\"+\n \"449.66,322.96 454.84,315.00 454.84,315.00\\n\"+\n \"458.55,309.64 464.74,303.48 471.00,301.36\\n\"+\n \"483.14,297.26 496.23,303.73 504.96,312.09\\n\"+\n \"507.66,314.67 511.26,318.44 512.30,322.09\\n\"+\n \"513.68,326.94 513.16,338.17 511.62,343.00\\n\"+\n \"511.62,343.00 508.00,352.00 508.00,352.00\\n\"+\n \"497.67,351.97 498.41,349.50 489.97,344.58\\n\"+\n \"489.97,344.58 465.96,330.58 465.96,330.58\\n\"+\n \"463.47,329.14 453.27,323.10 450.91,325.36\\n\"+\n \"449.58,326.64 451.17,328.37 452.10,329.27\\n\"+\n \"454.46,331.55 459.05,334.01 462.00,335.50\\n\"+\n \"462.00,335.50 492.91,352.99 492.91,352.99\\n\"+\n \"496.07,354.74 503.04,358.49 503.71,362.18\\n\"+\n \"504.12,364.49 503.07,371.74 501.40,373.40\\n\"+\n \"500.07,374.73 498.69,374.72 497.00,375.00\\n\"+\n \"497.00,375.00 498.00,384.00 498.00,384.00\\n\"+\n \"489.25,387.43 489.12,391.54 488.00,400.00\\n\"+\n \"488.00,400.00 484.56,402.29 484.56,402.29\\n\"+\n \"484.56,402.29 476.00,415.76 476.00,415.76\\n\"+\n \"474.01,415.99 471.15,416.11 469.28,415.76\\n\"+\n \"469.28,415.76 450.91,405.14 450.91,405.14\\n\"+\n \"450.91,405.14 431.28,393.99 431.28,393.99\\n\"+\n \"428.52,392.33 417.78,384.60 414.91,387.36\\n\"+\n \"413.58,388.64 415.17,390.37 416.10,391.27\\n\"+\n \"418.75,393.84 423.68,396.31 426.99,398.00\\n\"+\n \"426.99,398.00 436.04,403.42 436.04,403.42\\n\"+\n \"436.04,403.42 459.09,416.86 459.09,416.86\\n\"+\n \"464.58,420.20 469.84,421.09 466.87,429.00\\n\"+\n \"464.69,434.81 460.98,439.65 458.04,445.01\\n\"+\n \"458.04,445.01 434.58,486.04 434.58,486.04\\n\"+\n \"434.58,486.04 412.58,524.04 412.58,524.04\\n\"+\n \"412.58,524.04 406.75,535.74 406.75,535.74\\n\"+\n \"406.75,535.74 403.11,540.22 403.11,540.22\\n\"+\n \"403.11,540.22 399.78,546.77 399.78,546.77\\n\"+\n \"399.78,546.77 390.27,562.01 390.27,562.01\\n\"+\n \"390.27,562.01 377.78,584.77 377.78,584.77\\n\"+\n \"377.78,584.77 355.78,622.77 355.78,622.77\\n\"+\n \"352.15,628.93 347.72,634.90 346.00,642.00\\n\"+\n \"346.00,642.00 342.00,642.00 342.00,642.00\\n\"+\n \"327.89,641.76 309.68,627.91 297.00,621.34\\n\"+\n \"292.74,619.14 282.33,612.37 282.23,607.00\\n\"+\n \"282.16,602.98 286.67,598.03 288.56,594.40\\n\"+\n \"288.56,594.40 293.73,585.99 293.73,585.99\\n\"+\n \"293.73,585.99 309.28,558.77 309.28,558.77\\n\"+\n \"309.28,558.77 322.22,535.23 322.22,535.23\\n\"+\n \"322.22,535.23 331.85,522.00 331.85,522.00\\n\"+\n \"331.85,522.00 360.15,472.00 360.15,472.00\\n\"+\n \"360.15,472.00 378.42,441.00 378.42,441.00\\n\"+\n \"378.42,441.00 399.85,404.00 399.85,404.00\\n\"+\n \"399.85,404.00 404.19,396.00 404.19,396.00\\n\"+\n \"404.19,396.00 412.07,386.00 412.07,386.00\\n\"+\n \"417.87,375.86 412.46,368.80 422.00,368.00\\n\"+\n \"419.91,356.08 424.78,360.59 428.99,351.99\\n\"+\n \"432.09,345.64 427.65,342.70 436.00,342.00\\n\"+\n \"436.00,340.05 435.83,335.96 436.60,334.30 Z\\n\"+\n \"M 497.00,467.00\\n\"+\n \"C 497.00,467.00 566.00,467.00 566.00,467.00\\n\"+\n \"566.00,467.00 577.46,468.74 577.46,468.74\\n\"+\n \"577.46,468.74 589.72,489.83 589.72,489.83\\n\"+\n \"589.72,489.83 600.58,509.96 600.58,509.96\\n\"+\n \"600.58,509.96 609.14,524.91 609.14,524.91\\n\"+\n \"609.14,524.91 615.84,535.28 615.84,535.28\\n\"+\n \"615.84,535.28 618.75,542.68 618.75,542.68\\n\"+\n \"618.75,542.68 633.00,569.00 633.00,569.00\\n\"+\n \"627.03,570.70 618.38,570.00 612.00,570.00\\n\"+\n \"612.00,570.00 575.00,570.00 575.00,570.00\\n\"+\n \"575.00,570.00 454.00,570.00 454.00,570.00\\n\"+\n \"454.00,570.00 413.00,570.00 413.00,570.00\\n\"+\n \"407.25,570.00 401.16,571.61 398.00,566.00\\n\"+\n \"398.00,566.00 408.22,549.23 408.22,549.23\\n\"+\n \"408.22,549.23 411.73,543.99 411.73,543.99\\n\"+\n \"411.73,543.99 415.53,536.16 415.53,536.16\\n\"+\n \"415.53,536.16 423.49,522.17 423.49,522.17\\n\"+\n \"423.49,522.17 445.49,484.17 445.49,484.17\\n\"+\n \"445.49,484.17 454.00,468.00 454.00,468.00\\n\"+\n \"454.00,468.00 497.00,467.00 497.00,467.00 Z\\n\"+\n \"M 702.17,542.80\\n\"+\n \"C 702.17,542.80 690.97,518.40 690.97,518.40\\n\"+\n \"690.97,518.40 685.92,508.73 685.92,508.73\\n\"+\n \"685.92,508.73 681.54,501.83 681.54,501.83\\n\"+\n \"681.54,501.83 678.58,494.04 678.58,494.04\\n\"+\n \"678.58,494.04 669.98,476.71 669.98,476.71\\n\"+\n \"668.90,474.57 667.26,470.96 669.00,468.74\\n\"+\n \"670.65,466.63 675.55,467.00 678.00,467.00\\n\"+\n \"678.00,467.00 771.00,467.00 771.00,467.00\\n\"+\n \"781.99,467.02 780.02,468.61 780.00,479.00\\n\"+\n \"780.00,479.00 780.00,540.00 780.00,540.00\\n\"+\n \"780.00,547.62 780.84,564.52 779.00,571.00\\n\"+\n \"779.00,571.00 755.00,570.00 755.00,570.00\\n\"+\n \"755.00,570.00 714.00,570.00 714.00,570.00\\n\"+\n \"712.50,563.82 705.24,548.95 702.17,542.80 Z\\n\"+\n \"M 244.00,544.00\\n\"+\n \"C 244.00,544.00 244.00,491.00 244.00,491.00\\n\"+\n \"244.00,491.00 244.00,475.00 244.00,475.00\\n\"+\n \"244.00,475.00 245.60,469.02 245.60,469.02\\n\"+\n \"245.60,469.02 253.00,468.00 253.00,468.00\\n\"+\n \"253.00,468.00 316.00,468.00 316.00,468.00\\n\"+\n \"316.00,468.00 348.00,469.00 348.00,469.00\\n\"+\n \"348.00,469.00 332.15,498.00 332.15,498.00\\n\"+\n \"332.15,498.00 320.46,519.00 320.46,519.00\\n\"+\n \"320.46,519.00 313.40,533.58 313.40,533.58\\n\"+\n \"313.40,533.58 305.83,546.80 305.83,546.80\\n\"+\n \"305.83,546.80 295.75,563.57 295.75,563.57\\n\"+\n \"295.75,563.57 291.45,569.18 291.45,569.18\\n\"+\n \"291.45,569.18 284.00,570.00 284.00,570.00\\n\"+\n \"284.00,570.00 245.00,571.00 245.00,571.00\\n\"+\n \"245.00,571.00 244.00,544.00 244.00,544.00 Z\\n\"+\n \"M 661.20,520.16\\n\"+\n \"C 665.01,518.10 669.48,513.82 674.00,513.69\\n\"+\n \"681.26,513.49 682.77,525.02 684.72,529.96\\n\"+\n \"685.98,533.16 687.84,534.10 689.23,536.51\\n\"+\n \"689.23,536.51 696.79,554.00 696.79,554.00\\n\"+\n \"702.32,565.71 706.00,565.74 706.00,580.00\\n\"+\n \"702.00,581.07 691.45,588.05 687.27,590.48\\n\"+\n \"677.93,595.93 672.90,598.00 662.00,598.00\\n\"+\n \"660.73,593.28 659.36,593.20 657.39,589.19\\n\"+\n \"657.39,589.19 654.74,583.08 654.74,583.08\\n\"+\n \"654.74,583.08 650.68,577.53 650.68,577.53\\n\"+\n \"650.68,577.53 640.75,561.49 640.75,561.49\\n\"+\n \"638.20,556.85 631.85,545.01 628.00,542.00\\n\"+\n \"628.00,542.00 628.00,536.00 628.00,536.00\\n\"+\n \"638.41,533.51 651.47,525.40 661.20,520.16 Z\\n\"+\n \"M 692.01,597.78\\n\"+\n \"C 692.01,597.78 700.77,593.28 700.77,593.28\\n\"+\n \"702.28,592.35 703.63,591.04 705.32,590.24\\n\"+\n \"707.11,589.89 710.07,590.01 712.00,590.24\\n\"+\n \"713.02,593.79 722.45,606.09 725.33,610.47\\n\"+\n \"725.33,610.47 749.32,646.47 749.32,646.47\\n\"+\n \"749.32,646.47 752.72,652.77 752.72,652.77\\n\"+\n \"752.72,652.77 761.84,667.20 761.84,667.20\\n\"+\n \"767.44,677.57 774.05,684.01 772.83,697.00\\n\"+\n \"772.00,705.79 771.20,707.97 765.00,714.14\\n\"+\n \"757.05,722.05 757.74,721.35 747.00,722.09\\n\"+\n \"743.86,722.30 742.31,722.92 739.00,722.68\\n\"+\n \"736.09,722.46 727.83,722.05 725.76,720.75\\n\"+\n \"718.69,716.32 714.23,704.93 710.57,697.60\\n\"+\n \"710.57,697.60 683.66,634.91 683.66,634.91\\n\"+\n \"680.50,626.27 674.27,614.84 674.00,606.00\\n\"+\n \"682.86,604.87 685.11,601.59 692.01,597.78 Z\\n\"+\n \"M 256.13,712.00\\n\"+\n \"C 256.13,712.00 264.84,685.00 264.84,685.00\\n\"+\n \"264.84,685.00 273.95,642.00 273.95,642.00\\n\"+\n \"273.95,642.00 277.26,627.00 277.26,627.00\\n\"+\n \"277.26,627.00 278.99,620.65 278.99,620.65\\n\"+\n \"278.99,620.65 284.00,618.00 284.00,618.00\\n\"+\n \"291.29,628.23 310.06,636.13 321.09,642.80\\n\"+\n \"327.01,646.39 330.75,645.36 334.00,652.00\\n\"+\n \"334.00,652.00 320.96,664.24 320.96,664.24\\n\"+\n \"320.96,664.24 315.04,668.38 315.04,668.38\\n\"+\n \"315.04,668.38 281.67,701.67 281.67,701.67\\n\"+\n \"281.67,701.67 263.48,719.19 263.48,719.19\\n\"+\n \"263.48,719.19 256.13,720.00 256.13,720.00\\n\"+\n \"256.13,720.00 256.13,712.00 256.13,712.00 Z\";\n}",
"static Shape openArrow(double size) {\n \t\tPath2D path = new Path2D.Double();\n \t\tpath.moveTo(-size*1.7, -size/2.0);\n \t\tpath.lineTo(0.0, 0.0);\n \t\tpath.lineTo(-size*1.7,size/2.0);\n \t\treturn path;\n \t}",
"private void drawPath(Graphics2D g2d, Shape path, Color c) {\n\t\tif (path == null)\n\t\t\treturn;\n\t\tg2d.setColor(c);\n\t\tg2d.draw(path);\n\t\tGeometryPath geom = new GeometryPath(path);\n\n\t\tShape s1 = creatTickDirection(path, geom.lengthOfPath() / 2, 4);\n\t\tShape s2 = creatTickDirection(path, geom.lengthOfPath() / 4, 3);\n\t\tShape s3 = creatTickDirection(path, geom.lengthOfPath() * 3 / 4, 3);\n\t\tif (s1 != null)\n\t\t\tg2d.fill(s1);\n\t\tif (s2 != null)\n\t\t\tg2d.fill(s2);\n\t\tif (s3 != null)\n\t\t\tg2d.fill(s3);\n\n\t}",
"public List <RMShape> getShapesToShape(RMShape aShape)\n{\n // If shape is null or ancestor, return shapes to ancestor\n if(aShape==null || isAncestor(aShape))\n return getShapesToAncestor(aShape);\n \n // If shape is a descendant, return shapes to descendant\n if(isDescendant(aShape))\n return getShapesToDescendant(aShape);\n\n // Get common ancestor (if none, just return null)\n RMShape commonAncestor = getAncestorInCommon(aShape);\n if(commonAncestor==null)\n return null;\n \n // Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape\n List shapes = getShapesToAncestor(commonAncestor);\n shapes.remove(shapes.size()-1);\n shapes.addAll(commonAncestor.getShapesToDescendant(aShape));\n\n // Return shapes\n return shapes;\n}",
"private void generatePath(List<Coordinate> source, List<Coordinate> path) {\n for (int i = 0; i < source.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = source.get(i);\n Coordinate end = source.get(i + 1);\n graph.dijkstra(start);\n graph.printPath(end);\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n }\n }",
"public String getPath();",
"public String getPath();",
"public String getPath();",
"public PathOverlay drawPath(Path path, Color color);",
"abstract public List<S> getPath();",
"public PathOverlay drawPath(Path path, boolean markers);",
"public Path subPath(int pos) {\n int len = Math.max(Math.min(parts.length - pos, parts.length), 0);\n String[] newParts = new String[len];\n for (int i = 0; i < len; i++) {\n newParts[i] = parts[i + pos];\n }\n return new Path(newParts, index || len == 0);\n }",
"public void pathTo(int x1, int y1, int x2, int y2, int x3, int y3);",
"public static final String normalizePath(String path) {\n\t\t// Normalize the slashes and add leading slash if necessary\n\t\tString normalized = path;\n\t\tif (normalized.indexOf('\\\\') >= 0) {\n\t\t\tnormalized = normalized.replace('\\\\', '/');\n\t\t}\n\n\t\tif (!normalized.startsWith(\"/\")) {\n\t\t\tnormalized = \"/\" + normalized;\n\t\t}\n\n\t\t// Resolve occurrences of \"//\" in the normalized path\n\t\twhile (true) {\n\t\t\tint index = normalized.indexOf(\"//\");\n\t\t\tif (index < 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tnormalized = normalized.substring(0, index)\n\t\t\t\t\t+ normalized.substring(index + 1);\n\t\t}\n\n\t\t// Resolve occurrences of \"%20\" in the normalized path\n\t\twhile (true) {\n\t\t\tint index = normalized.indexOf(\"%20\");\n\t\t\tif (index < 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tnormalized = normalized.substring(0, index) + \" \"\n\t\t\t\t\t+ normalized.substring(index + 3);\n\t\t}\n\n\t\t// Resolve occurrences of \"/./\" in the normalized path\n\t\twhile (true) {\n\t\t\tint index = normalized.indexOf(\"/./\");\n\t\t\tif (index < 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tnormalized = normalized.substring(0, index)\n\t\t\t\t\t+ normalized.substring(index + 2);\n\t\t}\n\n\t\twhile (true) {\n\t\t\tint index = normalized.indexOf(\"/../\");\n\t\t\tif (index < 0)\n\t\t\t\tbreak;\n\t\t\tif (index == 0) {\n\t\t\t\treturn (null); // Trying to go outside our context\n\t\t\t}\n\t\t\tint index2 = normalized.lastIndexOf('/', index - 1);\n\t\t\tnormalized = normalized.substring(0, index2)\n\t\t\t\t\t+ normalized.substring(index + 3);\n\t\t}\n\n\t\t// Return the normalized path that we have completed\n\t\treturn (normalized);\n\t}",
"public String simplifyPath2(String path) {\n\t\tString[] strs = path.split(\"/\");\n\t\tLinkedList<String> l = new LinkedList<String>();\n\n\t\tfor (String s : strs) {\n\t\t\tif (s.equals(\"..\")) {\n\t\t\t\tif (!l.isEmpty())\n\t\t\t\t\tl.removeLast();\n\t\t\t} else if (s.equals(\"\") || s.equals(\".\"))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\tl.addLast(s);\n\n\t\t}\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String s : l) {\n\t\t\tsb.append('/');\n\t\t\tsb.append(s);\n\t\t}\n\t\tif (l.size() == 0)\n\t\t\tsb.append('/');\n\t\treturn sb.toString();\n\t}",
"public List<Shape> path()\n\t{\n\t\t// Output path list\n\t\tList<Shape> path = new ArrayList<>();\n\n\t\t// Add the callee to the list\n\t\tpath.add(this);\n\n\t\t// Go up the full hierarchy and add the shapes to the\n\t\t// path\n\t\tShape currentShape = parent;\n\n\t\twhile(currentShape!=null)\n\t\t{\n\t\t\tpath.add(currentShape);\n\t\t\tcurrentShape = currentShape.parent;\n\t\t}\n\n\t\t// Reverse the list to put it into the required order\n\t\tCollections.reverse(path);\n\n\t\treturn path;\n\t}",
"List<Point> getPath(int grid[][], Point src, Point dest);",
"public Path2D getPath(boolean closed) {\n if (closed) {\n return path;\n } else {\n return pathOpen;\n }\n }",
"public final XPath constructPath(){\r\n \tif(path == null){\r\n \t\tpath = new XPath(getPathArray());\r\n \t}\r\n\t\treturn path;\r\n }",
"Shape getShape();",
"public void convertToInstructions(List<Instruction> instructions,\n RShape shape) {\n // Recurse through any children of current shape\n for (int i = 0; i < shape.countChildren(); i++) {\n RShape s = shape.children[i];\n convertToInstructions(instructions, s);\n }\n\n // Generate Instruction objects for every path of shape\n for (int i = 0; i < shape.countPaths(); i++) {\n // Get the first point of this path\n RPath p = shape.paths[i];\n RPoint[] points = p.getPoints();\n RPoint p1 = points[0];\n\n // Move to that point\n instructions.add(new Instruction(Instruction.MOVE_ABS, p1.x, p1.y));\n\n // Draw lines to any subsequent points\n for (int k = 0; k < points.length - 1; k++) {\n RPoint p2 = points[k];\n instructions.add(new Instruction(Instruction.LINE_ABS, p2.x,\n p2.y));\n }\n }\n }",
"private Square[] returnPath(Vertex v, GameBoard b) {\n // because we're starting at the end point,\n // we need build the path in 'reverse'\n Stack<Square> path = new Stack<Square>();\n\n // while we're not at the start point\n while ( v.dist != 0 ) {\n path.push(vertexToSquare(v,b));\n v = v.path;\n }\n\n // place the locations in the proper order\n Square[] road = new Square[path.size()];\n for ( int i = 0; i < path.size(); i++ )\n road[i] = path.pop();\n\n return road;\n }",
"Pair<Vertex, Double> closestVertexToPath(Loc pos);",
"public abstract ScaledPathArray getPathList();",
"static Path getInputPath(Configuration conf) {\n String in = conf.get(MRUtils.INPUT_PATH);\n if (in == null) {\n return null;\n }\n return new Path(in);\n }",
"private String computeAirPath(Position source, Position destination) {\n\n\t\t\t\tboolean toRight = false;\n\t\t\t\tboolean toBottom = false;\n\n\t\t\t\tint xSteps = source.getColumn() - destination.getColumn();\n\t\t\t\tint ySteps = source.getRow() - destination.getRow();\n\n\t\t\t\tif (xSteps < 0) {\n\t\t\t\t\ttoRight = true;\n\t\t\t\t}\n\n\t\t\t\tif (ySteps < 0) {\n\t\t\t\t\ttoBottom = true;\n\t\t\t\t}\n\n\t\t\t\tString path = \"\";\n\n\t\t\t\tfor (int i = 0; i < Math.abs(xSteps); i++) {\n\t\t\t\t\tif (toRight) {\n\t\t\t\t\t\tpath += \"\\u2192 \"; // right\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpath += \"\\u2190 \"; // left\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < Math.abs(ySteps); i++) {\n\t\t\t\t\tif (toBottom) {\n\t\t\t\t\t\tpath += \"\\u2193 \"; // down\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpath += \"\\u2191 \"; // up\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (Math.abs(xSteps) + Math.abs(ySteps) == 0) {\n\t\t\t\t\tpath = \"in place\";\n\t\t\t\t}\n\n\t\t\t\treturn path;\n\t\t\t}",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"protected StringBuilder convertPath(final String path) {\n\t\tStringBuilder pathBuffer = new StringBuilder(\"/app:company_home\");\n\t\tString[] parts = path.split(\"/\");\n\n\t\tString subpath;\n\n\t\tfor(String part : parts) {\n\t\t\tsubpath = part.trim();\n\n\t\t\tif(subpath.length() > 0) {\n\t\t\t\tpathBuffer.append(\"/cm:\").append(ISO9075.encode(subpath));\n\t\t\t}\n\t\t}\n\n\t\treturn pathBuffer;\n\t}",
"@Override\n\t\tpublic String getRealPath(String path) {\n\t\t\treturn null;\n\t\t}",
"public String simplifyPath(String path) {\n String[] s = path.split(\"/\");\n StringBuilder sb = new StringBuilder(\"/\");\n for(String S:s){\n if(S.equals(\"\")||S.equals(\".\")){\n continue;\n }\n else if(S.equals(\"..\")){\n if(sb.charAt(sb.length()-1) != '/')\n {\n sb.deleteCharAt(sb.length()-1);\n }\n else{\n sb.delete(sb.length()-2, sb.length()-1);\n }\n\n }\n else{\n sb.append(S);\n sb.append('/');\n }\n }\n sb.deleteCharAt(sb.length()-1);\n return sb.toString();\n }",
"static public void shape(Shape2D shape, float dx, float dy){\n if (shape!=null) {\n if (shape instanceof Polygon) {\n polygon((Polygon) shape, dx, dy);\n } else if (shape instanceof Circle) {\n circle((Circle) shape, dx, dy);\n } else if (shape instanceof Rectangle) {\n rectangle((Rectangle) shape, dx, dy);\n } else if (shape instanceof Polypoint) {\n polypoint((Polypoint) shape, dx, dy);\n } else if (shape instanceof Polyline) {\n polyline((Polyline) shape, dx, dy);\n } else if (shape instanceof Edge) {\n edge((Edge) shape, dx, dy);\n } else if (shape instanceof Chain) {\n chain((Chain) shape, dx, dy);\n } else if (shape instanceof Shape2DCollection) { // includes subclass DotsAndLines\n collection((Shape2DCollection) shape, dx, dy);\n } else {\n throw new RuntimeException(\"unknown shape \" + shape.getClass());\n }\n }\n }",
"protected CombinedPath buildShapeForDrawing(float width, float height) {\n\t\tGeneralPath pol = new GeneralPath();\n\t\tfloat halfStroke= strokeWidth/2f;\n\t\tpol.moveTo(width-halfStroke, halfStroke);\n\t\tpol.lineTo(halfStroke, halfStroke);\n\t\tpol.lineTo(halfStroke, height-halfStroke);\n\t\tpol.lineTo(width-halfStroke, height-halfStroke);\n\t\treturn new CombinedPath(pol);\n\t}",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"String getExternalPath(String path);",
"Path getPath(String name) throws IOException;",
"public static Polygon rotate(Shape shape, double theta, double x, double y) {\n\t\tArrayList<Point> points = new ArrayList<Point>();\n\t\t\n\t\tAffineTransform at = new AffineTransform();\n\t\tat.rotate(theta, x, y);\n\t\t\n\t\tfor (PathIterator pathI = shape.getPathIterator(at); !pathI.isDone(); pathI.next()) {\n\t\t\tdouble [] values = new double[6];\n\t\t\tpathI.currentSegment(values);\n\t\t\tpoints.add(new Point((int)values[0],(int)values[1]));\n\t\t}\n\t\t\n\t\tint [] xArray = new int[points.size()-1];\n\n\t\tint [] yArray = new int[points.size()-1];\n\t\t\n\t\tfor (int i = 0; i < points.size()-1; i +=1 ) {\n\t\t\txArray[i] = points.get(i).x;\n\t\t\tyArray[i] = points.get(i).y;\n\t\t}\n\t\tPolygon rshape = new Polygon(xArray,yArray,xArray.length);\n\t\treturn rshape;\n\t}",
"public final BusPath createFromParcel(Parcel parcel) {\n return new BusPath(parcel);\n }",
"public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }",
"public static Path<?> getPath(Path<?> path, String propertyPath) {\n\tif (StringUtils.isEmpty(propertyPath))\n\t return path;\n\n\tString name = StringUtils.substringBefore(propertyPath, PropertyUtils.PROPERTY_SEPARATOR);\n\tPath<?> p = path.get(name);\n\n\treturn getPath(p,\n\t\tStringUtils.substringAfter(propertyPath, PropertyUtils.PROPERTY_SEPARATOR));\n\n }",
"public Path getPath() {\n return p;\n }",
"public String simplifyPath(String path) {\n String resString=\"\";\n String[] steRes=path.split(\"/|\\\\.\");\n if (steRes.length==0)\n return \"/\";\n return '/'+steRes[steRes.length-1];\n }",
"public static byte[] preparePath(final byte[] path) {\n String p = MetaData.normPath(string(path));\n if(Strings.endsWith(p, '/')) p = p.substring(0, p.length() - 1);\n return concat(SLASH, token(p));\n }",
"public String toPathString() {\n return path();\n }"
] |
[
"0.6454269",
"0.5783533",
"0.5157646",
"0.5134142",
"0.5063705",
"0.5041081",
"0.50266457",
"0.49042845",
"0.48992085",
"0.48897618",
"0.48157746",
"0.48029247",
"0.48007342",
"0.47558236",
"0.47507963",
"0.47327343",
"0.47245702",
"0.46966895",
"0.46829435",
"0.46602935",
"0.46602935",
"0.46602935",
"0.46602935",
"0.46602935",
"0.4658066",
"0.46468824",
"0.46105957",
"0.45985186",
"0.4594881",
"0.45925656",
"0.45892856",
"0.45788714",
"0.4573131",
"0.4563842",
"0.4538127",
"0.45347804",
"0.45323703",
"0.45188075",
"0.45049027",
"0.4499769",
"0.44942668",
"0.4474056",
"0.44652954",
"0.44652954",
"0.4459496",
"0.44468033",
"0.44401816",
"0.442463",
"0.44213876",
"0.44025457",
"0.43938798",
"0.43917298",
"0.43830717",
"0.43777508",
"0.4374399",
"0.43707234",
"0.4366148",
"0.43513215",
"0.43454263",
"0.43359798",
"0.43314484",
"0.43303555",
"0.4325756",
"0.4325756",
"0.4325756",
"0.43120822",
"0.43079424",
"0.42886692",
"0.42777818",
"0.42774183",
"0.4272423",
"0.4272014",
"0.4268261",
"0.42664203",
"0.4263637",
"0.42618987",
"0.42588618",
"0.42550758",
"0.42532033",
"0.42495722",
"0.42491895",
"0.42457858",
"0.4241008",
"0.4235315",
"0.42340705",
"0.42325327",
"0.42278624",
"0.42259148",
"0.42144093",
"0.4205228",
"0.41985813",
"0.41970536",
"0.41875586",
"0.41872874",
"0.41864187",
"0.41835225",
"0.41811502",
"0.41769332",
"0.41735485",
"0.41731927"
] |
0.66035837
|
0
|
Transforms the given shape to this shape's coords.
|
public void convertToShape(RMShape aShape)
{
// Get center point in shape coords
RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);
// Coalesce transforms up the parent chain
for(RMShape s=_parent; s!=aShape; s=s._parent) {
setRoll(getRoll() + s.getRoll());
setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());
setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());
}
// Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate
convertPointFromShape(cp, _parent);
RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);
offsetXY(v.width, v.height);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Shape transform(Transformation t);",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public abstract void moveShape(double lon, double lat);",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"@Override\n public void generateShape() {\n AffineTransform tx = new AffineTransform();\n tx.rotate(-this.getRotation(), this.getX(), this.getY());\n this.shape = tx.createTransformedShape(new Ellipse2D.Double(\n this.getX() + this.getWidth() / 2 - D / 2,\n this.getY() + this.getHeight() / 2 - D / 2,\n D, D));\n }",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"protected void setShape(Shape shape) {\n\t\tif (shape != null) {\n\t\t\t_shape = shape;\n\t\t\tthis.setLocation(shape.getLocation());\n\t\t\tthis.setDimensions(shape.getDimensions());\n\t\t}\n\t}",
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"public Shape detransform (Shape shape) {\n return inverse.createTransformedShape (shape);\n }",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"@Override\r\n\tpublic void accept(ShapeElementVisitor visitor) {\n\t\tvisitor.visit(this);\r\n\t}",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"public RMPath convertPathToShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformToShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"public void buildShape(Shape shape) {\n\t\tbuildShape(shape, -1, false, 0);\n\t}",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"public RMPath convertPathFromShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformFromShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"public RMPoint getXYP() { return convertPointToShape(new RMPoint(), _parent); }",
"public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }",
"public Shape getShape() { return shape; }",
"IShape getCurrentShape();",
"@Override\n public void reshape(Shape other) {\n Triangle triangle = (Triangle) other;\n this.a = CloneUtil.clone(triangle.getA());\n this.b = CloneUtil.clone(triangle.getB());\n this.c = CloneUtil.clone(triangle.getC());\n this.toBeFilled = other.toBeFilled;\n this.stroke = other.stroke;\n this.color = new Color(other.color.getRGB());\n // System.out.println(\"Reshape after: \" + this.toString());\n }",
"Shape getShape();",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }",
"public void setShape (Tetromino shape)\n\t{\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tfor (int j=0; j<2; j++)\n\t\t\t{\n\t\t\t\tcoords[i][j]=coordsTable[shape.ordinal()][i][j];\n\t\t\t}\n\t\t}\n\t\tdetailShape = shape;\n\t}",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public GJEllipseShape2D transform(GJAffineTransform2D trans);",
"private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }",
"public void setShape(Info shape) {\n \n }",
"public void setShape(ShapeType shape) {\n\t\tthis.shape = shape;\n\t}",
"public Geometry transformGeometry(Geometry originalGeometry)\r\n\t\t\tthrows TransformException {\r\n\t\treturn coordinateTransformer.transform(originalGeometry);\r\n\t}",
"public void fillShape(Shape shape);",
"private void panelMouseDragged(java.awt.event.MouseEvent evt)\n throws Exception{\n \n /*Store the point where the mouse is dragged*/\n Point dragPoint = null;\n\n if (this.selectedShape != null)\n {\n /*Change mouse was dragged to true*/\n mouseIsDragged = true;\n\n /*Store the dragged point*/\n dragPoint = evt.getPoint();\n\n /*Now translate the Shape by calling the method*/\n /*Both ShapeConcept and ShapeLinking use the same method*/\n selectedShape.translateShape(dragPoint.x - offsetX, dragPoint.y - offsetY);\n repaint();\n }//end if\n}",
"public void drawShape(Shape shape);",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public Point location( Solid shape ) {\n Double ex = x;\n Double wy = y;\n Double ze = z;\n\n Double lastWidth = 0.0;\n\n for ( Thing item : thingsOnThis) {\n ex = Math.max( ex, item.point.x() );\n wy = Math.max( wy, item.point.y() );\n ze = Math.max( ze, item.point.z() );\n\n lastWidth = item.solid.width();\n }\n Thing thing = new Thing();\n thing.point = new Point( x, wy + lastWidth, z + height );\n thing.solid = shape;\n\n thingsOnThis.add( thing );\n\n return thing.point;\n }",
"public Shape getShape() {\n return shape;\n }",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"@Override\r\n public void setShape (Shape shape)\r\n {\r\n setShape(shape, Evaluation.ALGORITHM);\r\n }",
"@Override\n\tpublic int getShapeId()\n\t{\n\t\treturn shapeId;\n\t}",
"public void setToCoordinates(int toX, int toY);",
"public Shape(ShapeType shape, Color color, int width, int height, int posX, int posY) {\n\t\tsuper(posX, posY, width, height);\n\t\tthis.shape = shape;\n\t\tthis.color = color;\n\t}",
"protected Vector3D getRefCompCenterRelParent(AbstractShape shape) {\n Vector3D centerPoint;\n if (shape.hasBounds()) {\n centerPoint = shape.getBounds().getCenterPointLocal();\n centerPoint.transform(shape.getLocalMatrix()); //macht den punkt in self space\n } else {\n Vector3D localObjCenter = shape.getCenterPointGlobal();\n localObjCenter.transform(shape.getGlobalInverseMatrix()); //to localobj space\n localObjCenter.transform(shape.getLocalMatrix()); //to parent relative space\n centerPoint = localObjCenter;\n }\n return centerPoint;\n }",
"public void updateShape(final Point pos)\n\t\t{\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tobj = new Rectangle(pos.x-(coords[2]/2)-3,pos.y-(coords[3]/2)-3,coords[2]+3,coords[3]+3);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[2]/2)-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[3]/2)-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tobj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t}",
"private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-robot.getY(), goal.getX()-robot.getX()));\r\n\r\n\t\t// deviation of start point's x-axis from (0,0)\r\n\t\tthis.deviation = this.robot;\r\n\r\n\t\tthis.robot = new Robot(GA_PathPlanning.Transform(robot, -deviation.x, -deviation.y));\r\n\t\tthis.robot = new Robot(Rotate(robot, -angle));\r\n\t\t \r\n\t\tthis.goal = GA_PathPlanning.Transform(goal, -deviation.x, -deviation.y);\r\n\t\tthis.goal = GA_PathPlanning.Rotate(goal, -angle);\r\n\t\t\r\n\t\tfor(int i=0;i<obstacles.length;i++)\r\n\t\t{\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Transform(obstacles[i], -deviation.x, -deviation.y));\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Rotate(obstacles[i], -angle));\r\n\t\t}\r\n\t\t// make start point as (0,0)\r\n\t\t// transform xy-axis to axis of the straight line between start and goal\r\n\t\t\r\n\t\t\r\n\t}",
"public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"protected abstract void calcOrigin();",
"public interface Shape {\n\t/**\n\t * Calculates and returns the area of the object\n\t * @return\n\t */\n\tpublic abstract double getArea();\n\t\n\t/**\n\t * Returns the Color of the object.\n\t * @return\n\t */\n\tpublic abstract Color getColor();\n\t\n\t/**\n\t * Sets the Color of the object.\n\t * @param color\n\t */\n\tpublic abstract void setColor(Color color);\n\t\n\t/**\n\t * Returns true if the object is filled with color, otherwise false.\n\t * @return\n\t */\n\tpublic abstract boolean getFilled();\n\t\n\t/**\n\t * Sets the filled state of the object.\n\t * @param filled\n\t */\n\tpublic abstract void setFilled(boolean filled);\n\t\n\t/**\n\t * Moves the shape by the x and y amounts specified in the Point.\n\t * @param point\n\t */\n\tpublic abstract void move(Point point);\t\n}",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public position convertToPosition(){\n\t\tdouble x = r * Math.cos(theta);\n\t\tdouble y = r * Math.sin(theta);\n\t\treturn new position(x, y);\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}",
"public void setMyShape(int shapeIndex){this.myShape = shapeIndex;}",
"@Override\n public void updateAtTime(IShape shape, int time) {\n int currentSx = formula(time, this.startTime, this.endTime, this.fromSx, this.toSx);\n int currentSy = formula(time, this.startTime, this.endTime, this.fromSy, this.toSy);\n\n shape.setScale(currentSx, currentSy);\n }",
"@Override\r\n\tpublic void transformComponent(AffineTransform transform, Set<JVGShape> locked) {\n\t}",
"protected void internalMove(IMoveShapeContext context) {\n \t\tShape shapeToMove = context.getShape();\n \t\tContainerShape oldContainerShape = context.getSourceContainer();\n \t\tContainerShape newContainerShape = context.getTargetContainer();\n \n \t\tint x = context.getX();\n \t\tint y = context.getY();\n \n \t\tif (oldContainerShape != newContainerShape) {\n \t\t\t// the following is a workaround due to an MMR bug\n \t\t\tif (oldContainerShape != null) {\n \t\t\t\tCollection<Shape> children = oldContainerShape.getChildren();\n \t\t\t\tif (children != null) {\n \t\t\t\t\tchildren.remove(shapeToMove);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tshapeToMove.setContainer(newContainerShape);\n \t\t\tif (shapeToMove.getGraphicsAlgorithm() != null) {\n \t\t\t\tGraphiti.getGaService().setLocation(shapeToMove.getGraphicsAlgorithm(), x, y,\n \t\t\t\t\t\tavoidNegativeCoordinates());\n \t\t\t}\n \t\t} else { // move within the same container\n \t\t\tif (shapeToMove.getGraphicsAlgorithm() != null) {\n \t\t\t\tGraphiti.getGaService().setLocation(shapeToMove.getGraphicsAlgorithm(), x, y,\n \t\t\t\t\t\tavoidNegativeCoordinates());\n \t\t\t}\n \t\t}\n \t}",
"public IconBuilder shape(IconShape shape) {\n\t\tthis.shape = shape;\n\t\treturn this;\n\t}",
"private void updateShapeOffset() {\n int offsetX = scroller.getOffsetX();\n int offsetY = scroller.getOffsetY();\n shape.setOffset(offsetX, offsetY);\n }",
"public Shape getShape();",
"public void setFromCoordinates(int fromX, int fromY);",
"public Shape getShape() {\n\treturn shape;\n }",
"public AlienShip(Point[] inShape, Point inPosition, double inRotation) {\r\n\t\tsuper(inShape, inPosition, inRotation);\r\n\t}",
"public void setPathOrigin(int x, int y);",
"public EpsShape(Shape shape) {\n\t\tthis(shape,false);\n\t}",
"public void setShape( final FireShapes shape ) {\r\n\t\tthis.shape = shape;\r\n\t}",
"public void assignShape() {\n\t\t\n\t}",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"public int[] getShape() {\n return shape;\n }",
"public final Shape translate(Vector displacement) {\n\t\treturn transform(new Translation(displacement));\n\t}",
"public void copyShape(RMShape aShape)\n{\n // Copy bounds\n setBounds(aShape._x, aShape._y, aShape._width, aShape._height);\n \n // Copy roll, scale, skew\n if(aShape.isRSS()) {\n setRoll(aShape.getRoll());\n setScaleXY(aShape.getScaleX(), aShape.getScaleY());\n setSkewXY(aShape.getSkewX(), aShape.getSkewY());\n }\n \n // Copy Stroke, Fill, Effect\n if(!RMUtils.equals(getStroke(), aShape.getStroke())) setStroke(RMUtils.clone(aShape.getStroke()));\n if(!RMUtils.equals(getFill(), aShape.getFill())) setFill(RMUtils.clone(aShape.getFill()));\n if(!RMUtils.equals(getEffect(), aShape.getEffect())) setEffect(RMUtils.clone(aShape.getEffect()));\n \n // Copy Opacity and Visible\n setOpacity(aShape.getOpacity());\n setVisible(aShape.isVisible());\n \n // Copy Name, Url, Hover, Locked\n setName(aShape.getName());\n setURL(aShape.getURL());\n setHover(aShape.getHover());\n setLocked(aShape.isLocked());\n \n // Copy LayoutInfo\n setLayoutInfo(aShape.getLayoutInfo());\n \n // Copy timeline (if this goes back, then RMAnimPathShape(shape) needs to go back to clearing it\n //if(aShape.getTimeline()!=null) setTimeline(aShape.getTimeline().clone(this));\n \n // Copy bindings\n while(getBindingCount()>0) removeBinding(0);\n for(int i=0, iMax=aShape.getBindingCount(); i<iMax; i++)\n addBinding(aShape.getBinding(i).clone());\n}",
"@Override\n\tpublic void getShape() {\n\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 }",
"public RMSize convertVectorFromShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformFromShape(shape).transformVector(size);\n}",
"@Override\n PickShape transform(Transform3D t3d) {\n\t// If the bounds is a BoundingBox, then the transformed bounds will\n\t// get bigger. So this is a potential bug, and we'll have to deal with\n\t// if there is a complain.\n\tBounds newBds = (Bounds)bounds.clone();\n\tnewBds.transform(t3d);\n\tPickBounds newPB = new PickBounds(newBds);\n\n\treturn newPB;\n }",
"public abstract Shape createPath();",
"public Shape(ShapeType shape, Color color, int width, int height, int posX, int posY, String name) {\n\t\tsuper(posX, posY, width, height, name);\n\t\tthis.shape = shape;\n\t\tthis.color = color;\n\t}",
"public LiteShape(Geometry geom, AffineTransform at, boolean generalize) {\n if( geom!=null)\n this.geometry =getGeometryFactory().createGeometry(geom);\n this.affineTransform = at;\n this.generalize = generalize;\n if (at==null){\n \tyScale=xScale=1;\n \treturn;\n }\n xScale = (float) Math.sqrt(\n (at.getScaleX() * at.getScaleX())\n + (at.getShearX() * at.getShearX()));\n yScale = (float) Math.sqrt(\n (at.getScaleY() * at.getScaleY())\n + (at.getShearY() * at.getShearY()));\n }",
"@Override\r\n public Object clone() {\r\n\r\n Coordinate c = new Coordinate( this );\r\n return c;\r\n }",
"public abstract Transformation updateTransform(Rectangle selectionBox);",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"public ShapeAction(CustomFrame the_frame, Node the_shape, String the_name)\n {\n super(the_name);\n my_frame = the_frame;\n Transform3D t3D = new Transform3D();\n TransformGroup tg = new TransformGroup(t3D);\n tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n tg.setCapability(TransformGroup.ENABLE_PICK_REPORTING);\n tg.addChild(the_shape);\n bg.addChild(tg);\n bg.setCapability(BranchGroup.ALLOW_DETACH);\n bg.compile();\n }",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public abstract int[] getCoords();",
"@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}",
"IShape getStartShape();",
"public void strokeShape(Shape shape);",
"public final Shape rotate(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn transform(new Rotation(fromPoint, toPoint, anchorPoint));\n\t}",
"@Override\r\n public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {\n GL2 gl = drawable.getGL().getGL2();\r\n\r\n //evita a divisão por zero\r\n if (height == 0) {\r\n height = 1;\r\n }\r\n //calcula a proporção da janela (aspect ratio) da nova janela\r\n float aspect = (float) width / height;\r\n\r\n //seta o viewport para abranger a janela inteira\r\n gl.glViewport(0, 0, width, height);\r\n\r\n //ativa a matriz de projeção\r\n gl.glMatrixMode(GL2.GL_PROJECTION);\r\n gl.glLoadIdentity(); //lê a matriz identidade\r\n\r\n //Projeção ortogonal\r\n //true: aspect >= 1 configura a altura de -1 para 1 : com largura maior\r\n //false: aspect < 1 configura a largura de -1 para 1 : com altura maior\r\n if (width >= height) {\r\n gl.glOrtho(xMin * aspect, xMax * aspect, yMin, yMax, zMin, zMax);\r\n } else {\r\n gl.glOrtho(xMin, xMax, yMin / aspect, yMax / aspect, zMin, zMax);\r\n }\r\n\r\n //ativa a matriz de modelagem\r\n gl.glMatrixMode(GL2.GL_MODELVIEW);\r\n gl.glLoadIdentity(); //lê a matriz identidade\r\n System.out.println(\"Reshape: \" + width + \", \" + height);\r\n }",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"public void setShapeMasked(boolean shapeMasked) {\n boolean oldShapeMasked = this.shapeMasked;\n this.shapeMasked = shapeMasked;\n propertyChangeSupport.firePropertyChange(\"shapeMasked\", oldShapeMasked, shapeMasked);\n }",
"public RMSize convertVectorToShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformToShape(shape).transformVector(size);\n}",
"public int[] getCoords() {\n return coords;\n }"
] |
[
"0.61257917",
"0.59546906",
"0.5893673",
"0.5867235",
"0.56917423",
"0.56113166",
"0.56070054",
"0.5602706",
"0.5584897",
"0.55824",
"0.54724354",
"0.53939855",
"0.53878796",
"0.5372075",
"0.53447276",
"0.5317551",
"0.52694416",
"0.52018356",
"0.51965135",
"0.5135372",
"0.51211685",
"0.5095067",
"0.50549597",
"0.5031817",
"0.50307894",
"0.50285625",
"0.50043976",
"0.49696633",
"0.49673635",
"0.49552646",
"0.49541897",
"0.49518928",
"0.494964",
"0.4946504",
"0.49406487",
"0.49062237",
"0.4887474",
"0.4886724",
"0.48823273",
"0.48739803",
"0.48604286",
"0.48571023",
"0.48529926",
"0.4842521",
"0.48417503",
"0.4836973",
"0.48334056",
"0.4826215",
"0.4816711",
"0.48152864",
"0.48139334",
"0.48130566",
"0.48051608",
"0.4793921",
"0.4788517",
"0.4758644",
"0.4745247",
"0.47429958",
"0.47288477",
"0.47043082",
"0.46954027",
"0.46936563",
"0.46900895",
"0.46842012",
"0.46818048",
"0.4678693",
"0.46729994",
"0.4671646",
"0.46639484",
"0.46575996",
"0.46568584",
"0.46531096",
"0.46420005",
"0.46045485",
"0.45970345",
"0.4593746",
"0.45843",
"0.45690858",
"0.4555258",
"0.4545535",
"0.4530732",
"0.4530647",
"0.451995",
"0.45145616",
"0.4514135",
"0.45134282",
"0.44983914",
"0.44952112",
"0.44817248",
"0.44810203",
"0.44732454",
"0.44731936",
"0.44718635",
"0.4471778",
"0.44641536",
"0.4459964",
"0.44534442",
"0.44489664",
"0.4448483",
"0.44413203"
] |
0.5571337
|
10
|
Transforms the given shape from this shape's coords.
|
public void convertFromShape(RMShape aShape)
{
// Get center point in parent coords
RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);
// Coalesce transforms down the shape chain
for(RMShape s=_parent; s!=aShape; s=s._parent) {
setRoll(getRoll() - s.getRoll());
setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());
setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());
}
// Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate
convertPointFromShape(cp, aShape);
RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);
offsetXY(v.width, v.height);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Shape transform(Transformation t);",
"public Shape detransform (Shape shape) {\n return inverse.createTransformedShape (shape);\n }",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}",
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public RMPath convertPathToShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformToShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"@Override\n public void generateShape() {\n AffineTransform tx = new AffineTransform();\n tx.rotate(-this.getRotation(), this.getX(), this.getY());\n this.shape = tx.createTransformedShape(new Ellipse2D.Double(\n this.getX() + this.getWidth() / 2 - D / 2,\n this.getY() + this.getHeight() / 2 - D / 2,\n D, D));\n }",
"public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}",
"public final Shape getTransformed(Transformation t) {\n\t\treturn getCopy().transform(t);\n\t}",
"public abstract void moveShape(double lon, double lat);",
"public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}",
"public RMPath convertPathFromShape(RMPath aPath, RMShape aShape)\n{\n RMTransform transform = getTransformFromShape(aShape);\n if(!transform.isIdentity()) { aPath = aPath.clone(); aPath.transformBy(transform); }\n return aPath;\n}",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}",
"public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}",
"@Override\n public void reshape(Shape other) {\n Triangle triangle = (Triangle) other;\n this.a = CloneUtil.clone(triangle.getA());\n this.b = CloneUtil.clone(triangle.getB());\n this.c = CloneUtil.clone(triangle.getC());\n this.toBeFilled = other.toBeFilled;\n this.stroke = other.stroke;\n this.color = new Color(other.color.getRGB());\n // System.out.println(\"Reshape after: \" + this.toString());\n }",
"public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }",
"public GJEllipseShape2D transform(GJAffineTransform2D trans);",
"@Override\r\n\tpublic void accept(ShapeElementVisitor visitor) {\n\t\tvisitor.visit(this);\r\n\t}",
"public Geometry transformGeometry(Geometry originalGeometry)\r\n\t\t\tthrows TransformException {\r\n\t\treturn coordinateTransformer.transform(originalGeometry);\r\n\t}",
"protected void setShape(Shape shape) {\n\t\tif (shape != null) {\n\t\t\t_shape = shape;\n\t\t\tthis.setLocation(shape.getLocation());\n\t\t\tthis.setDimensions(shape.getDimensions());\n\t\t}\n\t}",
"public void buildShape(Shape shape) {\n\t\tbuildShape(shape, -1, false, 0);\n\t}",
"public Transform getTransform () {\n\t\torg.jbox2d.common.Transform trans = body.getTransform();\n\t\ttransform.vals[Transform.POS_X] = trans.p.x;\n\t\ttransform.vals[Transform.POS_Y] = trans.p.y;\n\t\ttransform.vals[Transform.COS] = trans.q.c;\n\t\ttransform.vals[Transform.SIN] = trans.q.s;\n\t\treturn transform;\n\t}",
"public Shape transform(DeusVertex v) {\n\t\tif (v.getElementType() == \"Engine\") {\n\t\t\treturn factory.getRegularPolygon(v, 3);\n\t\t} else if (v.getElementType() == \"Process\") {\n\t\t\treturn factory.getRectangle(v);\n\t\t} else if (v.getElementType() == \"Event\") {\n\t\t\treturn factory.getEllipse(v);\n\t\t} else if (v.getElementType() == \"Network\") {\n\t\t\treturn factory.getRegularStar(v, 7);\n\t\t}\n\t\telse\n\t\t\treturn factory.getRegularPolygon(v, 8);\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}",
"private void panelMouseDragged(java.awt.event.MouseEvent evt)\n throws Exception{\n \n /*Store the point where the mouse is dragged*/\n Point dragPoint = null;\n\n if (this.selectedShape != null)\n {\n /*Change mouse was dragged to true*/\n mouseIsDragged = true;\n\n /*Store the dragged point*/\n dragPoint = evt.getPoint();\n\n /*Now translate the Shape by calling the method*/\n /*Both ShapeConcept and ShapeLinking use the same method*/\n selectedShape.translateShape(dragPoint.x - offsetX, dragPoint.y - offsetY);\n repaint();\n }//end if\n}",
"public abstract Transformation updateTransform(Rectangle selectionBox);",
"public final Shape rotate(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn transform(new Rotation(fromPoint, toPoint, anchorPoint));\n\t}",
"public void setShape(Info shape) {\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 updateAtTime(IShape shape, int time) {\n int currentSx = formula(time, this.startTime, this.endTime, this.fromSx, this.toSx);\n int currentSy = formula(time, this.startTime, this.endTime, this.fromSy, this.toSy);\n\n shape.setScale(currentSx, currentSy);\n }",
"@Override\r\n\tpublic void transformComponent(AffineTransform transform, Set<JVGShape> locked) {\n\t}",
"IShape getCurrentShape();",
"protected abstract Object transform(Object o);",
"public void setTransform(float a11, float a12, float a21, float a22, float x, float y);",
"public void updateShape(final Point pos)\n\t\t{\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tobj = new Rectangle(pos.x-(coords[2]/2)-3,pos.y-(coords[3]/2)-3,coords[2]+3,coords[3]+3);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[2]/2)-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tobj = new Ellipse2D.Double(pos.x-(coords[2]/2)-4,pos.y-(coords[3]/2)-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tobj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t}",
"public final Shape translate(Vector displacement) {\n\t\treturn transform(new Translation(displacement));\n\t}",
"Shape getShape();",
"public RMRect convertRectToShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(getX(), getY()); return rect; }\n return getTransformToShape(shape).transform(rect);\n}",
"private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-robot.getY(), goal.getX()-robot.getX()));\r\n\r\n\t\t// deviation of start point's x-axis from (0,0)\r\n\t\tthis.deviation = this.robot;\r\n\r\n\t\tthis.robot = new Robot(GA_PathPlanning.Transform(robot, -deviation.x, -deviation.y));\r\n\t\tthis.robot = new Robot(Rotate(robot, -angle));\r\n\t\t \r\n\t\tthis.goal = GA_PathPlanning.Transform(goal, -deviation.x, -deviation.y);\r\n\t\tthis.goal = GA_PathPlanning.Rotate(goal, -angle);\r\n\t\t\r\n\t\tfor(int i=0;i<obstacles.length;i++)\r\n\t\t{\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Transform(obstacles[i], -deviation.x, -deviation.y));\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Rotate(obstacles[i], -angle));\r\n\t\t}\r\n\t\t// make start point as (0,0)\r\n\t\t// transform xy-axis to axis of the straight line between start and goal\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n PickShape transform(Transform3D t3d) {\n\t// If the bounds is a BoundingBox, then the transformed bounds will\n\t// get bigger. So this is a potential bug, and we'll have to deal with\n\t// if there is a complain.\n\tBounds newBds = (Bounds)bounds.clone();\n\tnewBds.transform(t3d);\n\tPickBounds newPB = new PickBounds(newBds);\n\n\treturn newPB;\n }",
"private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }",
"public void copyShape(RMShape aShape)\n{\n // Copy bounds\n setBounds(aShape._x, aShape._y, aShape._width, aShape._height);\n \n // Copy roll, scale, skew\n if(aShape.isRSS()) {\n setRoll(aShape.getRoll());\n setScaleXY(aShape.getScaleX(), aShape.getScaleY());\n setSkewXY(aShape.getSkewX(), aShape.getSkewY());\n }\n \n // Copy Stroke, Fill, Effect\n if(!RMUtils.equals(getStroke(), aShape.getStroke())) setStroke(RMUtils.clone(aShape.getStroke()));\n if(!RMUtils.equals(getFill(), aShape.getFill())) setFill(RMUtils.clone(aShape.getFill()));\n if(!RMUtils.equals(getEffect(), aShape.getEffect())) setEffect(RMUtils.clone(aShape.getEffect()));\n \n // Copy Opacity and Visible\n setOpacity(aShape.getOpacity());\n setVisible(aShape.isVisible());\n \n // Copy Name, Url, Hover, Locked\n setName(aShape.getName());\n setURL(aShape.getURL());\n setHover(aShape.getHover());\n setLocked(aShape.isLocked());\n \n // Copy LayoutInfo\n setLayoutInfo(aShape.getLayoutInfo());\n \n // Copy timeline (if this goes back, then RMAnimPathShape(shape) needs to go back to clearing it\n //if(aShape.getTimeline()!=null) setTimeline(aShape.getTimeline().clone(this));\n \n // Copy bindings\n while(getBindingCount()>0) removeBinding(0);\n for(int i=0, iMax=aShape.getBindingCount(); i<iMax; i++)\n addBinding(aShape.getBinding(i).clone());\n}",
"public RMSize convertVectorFromShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformFromShape(shape).transformVector(size);\n}",
"public GJEllipseShape2D reverse();",
"public Shape getShape() { return shape; }",
"public void drawShape(Shape shape);",
"public final Shape scale(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn transform(new Scalation(fromPoint, toPoint, anchorPoint));\n\t}",
"public void fillShape(Shape shape);",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"public RMSize convertVectorToShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformToShape(shape).transformVector(size);\n}",
"public void transform(float a11, float a12, float a21, float a22, float x, float y);",
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }",
"private void applyTransform() {\n GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F);\n GlStateManager.translate(offsetX, offsetY - 26, offsetZ);\n }",
"public Piece rotate() {\n\t\tif (!isRotatable) {\n\t\t\treturn this;\n\t\t}\n\t\tint m = shape.length;\n\t\tint n = shape[0].length;\n\t\tint[][] newPiece = new int[n][m];\n\t\tfor (int r = 0; r < m; r++) {\n\t for (int c = 0; c < n; c++) {\n\t newPiece[c][m-1-r] = shape[r][c];\n\t }\n\t\t}\n\t\treturn new Piece(value, name, newPiece, isFlippable, isRotatable);\n\t}",
"Transform<A, B> getTransform();",
"public RMRect convertRectFromShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(-getX(), -getY()); return rect; }\n return getTransformFromShape(shape).transform(rect);\n}",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"Object transform(Object o);",
"public final Shape getRotated(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().rotate(fromPoint, toPoint, anchorPoint);\n\t}",
"public void changePolyOriginal() {\n this.changePoly(this.aorg, this.borg, this.corg, this.dorg, this.yorg);\n }",
"public void setShape (Tetromino shape)\n\t{\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tfor (int j=0; j<2; j++)\n\t\t\t{\n\t\t\t\tcoords[i][j]=coordsTable[shape.ordinal()][i][j];\n\t\t\t}\n\t\t}\n\t\tdetailShape = shape;\n\t}",
"public RMRect convertedRectToShape(RMRect aRect, RMShape aShape)\n{\n return convertRectToShape(new RMRect(aRect), aShape);\n}",
"private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }",
"@Override\r\n public void setShape (Shape shape)\r\n {\r\n setShape(shape, Evaluation.ALGORITHM);\r\n }",
"private Point[] transformCoordinateSystem(Point[] objectPosition, Point newCenter) {\n\t\tPoint[] transformedObjectPosition = objectPosition;\n\t\tfor(int i = 0; i < objectPosition.length; i++) {\n\t\t\t// Move location to coordinate system with center in origo \n\t\t\ttransformedObjectPosition[i].set(new double[] {\n\t\t\t\tobjectPosition[i].x - newCenter.x,\n\t\t\t\tobjectPosition[i].y - newCenter.y\n\t\t\t});\n\t\t}\n\t\t\n\t\treturn transformedObjectPosition;\n\t}",
"private AffineTransform createTransform() {\n Dimension size = getSize();\n Rectangle2D.Float panelRect = new Rectangle2D.Float(\n BORDER,\n BORDER,\n size.width - BORDER - BORDER,\n size.height - BORDER - BORDER);\n AffineTransform tr = AffineTransform.getTranslateInstance(panelRect.getCenterX(), panelRect.getCenterY());\n double sx = panelRect.getWidth() / mapBounds.getWidth();\n double sy = panelRect.getHeight() / mapBounds.getHeight();\n double scale = min(sx, sy);\n tr.scale(scale, -scale);\n tr.translate(-mapBounds.getCenterX(), -mapBounds.getCenterY());\n return tr;\n }",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public Point[] transformPosition(Point[] objectPosition, double fieldWidth, double fieldHeight) {\n\t\t// Set field center point from sizes.\n\t\tthis.center.set(new double[] { fieldWidth/2, fieldHeight/2 });\n\t\t\n\t\t// Find centroid - geometric center of car.\n\t\tPoint carCenter = this.findCenter(objectPosition);\n\n\t\t// Find length of line between center and perceived location.\n\t\tdouble UV = this.lineLength(carCenter, center);\n\t\tdouble TV = sourceHeight;\n\t\t\n\t\t// Find the angle from the camera to the perceived location.\n\t\tdouble theta = Math.atan2(UV, TV);\n\t\t\n\t\t// Calculate error from perceived location and actual z-location.\n\t\tdouble AC = objHeight;\n\t\tdouble BC = Math.tan(theta) * AC;\n\t\t\n\t\t// Find length from center to z-axis transformed car location.\n\t\tdouble newLength = UV - BC;\n\t\t\n\t\t// Move coordinate system to move center to origo.\n\t\tPoint[] transformedObjectPosition = Arrays.copyOf(\n\t\t\tthis.transformCoordinateSystem(objectPosition, this.center),\n\t\t\tobjectPosition.length\n\t\t);\n\t\t\n\t\t// Create scalar and relocate the location of object (perceived loc / actual loc).\n\t\tdouble scalar = newLength / UV;\n\t\tfor(int i = 0; i < transformedObjectPosition.length; i++) {\n\t\t\ttransformedObjectPosition[i].set(new double[] {\n\t\t\t\ttransformedObjectPosition[i].x * scalar,\n\t\t\t\ttransformedObjectPosition[i].y * scalar\t\t\t\t\t\n\t\t\t});\n\t\t}\n\t\t\n\t\t// Return to old coordinate system.\n\t\ttransformedObjectPosition = this.inverseTransformCoordinateSystem(transformedObjectPosition, this.center);\n\t\t\n\t\t// Find center of triangle\n\t\tPoint objectCenter = this.findCenter(new MatOfPoint2f(transformedObjectPosition));\n\t\t\n\t\t// Transform to coordinate system with triangle center as origo.\n\t\ttransformedObjectPosition = this.transformCoordinateSystem(transformedObjectPosition, objectCenter);\n\t\t\n\t\t// Scale according to real-life factors\n\t\tfor(int i = 0; i < transformedObjectPosition.length; i++) {\n\t\t\ttransformedObjectPosition[i].set(new double[] {\n\t\t\t\ttransformedObjectPosition[i].x * Config.Client.triangleScale,\n\t\t\t\ttransformedObjectPosition[i].y * Config.Client.triangleScale\n\t\t\t});\n\t\t}\n\t\t\n\t\t// Return the inverse trasnform result.\n\t\treturn this.inverseTransformCoordinateSystem(transformedObjectPosition, objectCenter);\n\t}",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"public void setShape(ShapeType shape) {\n\t\tthis.shape = shape;\n\t}",
"public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}",
"public ShapeAction(CustomFrame the_frame, Node the_shape, String the_name)\n {\n super(the_name);\n my_frame = the_frame;\n Transform3D t3D = new Transform3D();\n TransformGroup tg = new TransformGroup(t3D);\n tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n tg.setCapability(TransformGroup.ENABLE_PICK_REPORTING);\n tg.addChild(the_shape);\n bg.addChild(tg);\n bg.setCapability(BranchGroup.ALLOW_DETACH);\n bg.compile();\n }",
"public LiteShape(Geometry geom, AffineTransform at, boolean generalize) {\n if( geom!=null)\n this.geometry =getGeometryFactory().createGeometry(geom);\n this.affineTransform = at;\n this.generalize = generalize;\n if (at==null){\n \tyScale=xScale=1;\n \treturn;\n }\n xScale = (float) Math.sqrt(\n (at.getScaleX() * at.getScaleX())\n + (at.getShearX() * at.getShearX()));\n yScale = (float) Math.sqrt(\n (at.getScaleY() * at.getScaleY())\n + (at.getShearY() * at.getShearY()));\n }",
"public final Shape getScaled(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().scale(fromPoint, toPoint, anchorPoint);\n\t}",
"public void setToCoordinates(int toX, int toY);",
"protected void internalMove(IMoveShapeContext context) {\n \t\tShape shapeToMove = context.getShape();\n \t\tContainerShape oldContainerShape = context.getSourceContainer();\n \t\tContainerShape newContainerShape = context.getTargetContainer();\n \n \t\tint x = context.getX();\n \t\tint y = context.getY();\n \n \t\tif (oldContainerShape != newContainerShape) {\n \t\t\t// the following is a workaround due to an MMR bug\n \t\t\tif (oldContainerShape != null) {\n \t\t\t\tCollection<Shape> children = oldContainerShape.getChildren();\n \t\t\t\tif (children != null) {\n \t\t\t\t\tchildren.remove(shapeToMove);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tshapeToMove.setContainer(newContainerShape);\n \t\t\tif (shapeToMove.getGraphicsAlgorithm() != null) {\n \t\t\t\tGraphiti.getGaService().setLocation(shapeToMove.getGraphicsAlgorithm(), x, y,\n \t\t\t\t\t\tavoidNegativeCoordinates());\n \t\t\t}\n \t\t} else { // move within the same container\n \t\t\tif (shapeToMove.getGraphicsAlgorithm() != null) {\n \t\t\t\tGraphiti.getGaService().setLocation(shapeToMove.getGraphicsAlgorithm(), x, y,\n \t\t\t\t\t\tavoidNegativeCoordinates());\n \t\t\t}\n \t\t}\n \t}",
"public Shape getShape();",
"@Override\n public Shape getShape() {\n myPencil.moveTo(getStartPoint().getX(), getStartPoint().getY());\n myPencil.lineTo(getEndPoint().getX(), getEndPoint().getY());\n setStartPoint(getEndPoint());\n \n return myPencil;\n }",
"public IconBuilder shape(IconShape shape) {\n\t\tthis.shape = shape;\n\t\treturn this;\n\t}",
"public abstract Shape createPath();",
"public RMRect convertedRectFromShape(RMRect aRect, RMShape aShape)\n{\n return convertRectFromShape(new RMRect(aRect), aShape);\n}",
"IShape getShape(String name);",
"public Shape getShape() {\n return shape;\n }",
"public AlienShip(Point[] inShape, Point inPosition, double inRotation) {\r\n\t\tsuper(inShape, inPosition, inRotation);\r\n\t}",
"public AffineTransform getTransform()\r\n\t{\r\n\t\treturn _g2.getTransform();\r\n\t}",
"protected abstract void calcOrigin();",
"@Override\r\n public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {\n GL2 gl = drawable.getGL().getGL2();\r\n\r\n //evita a divisão por zero\r\n if (height == 0) {\r\n height = 1;\r\n }\r\n //calcula a proporção da janela (aspect ratio) da nova janela\r\n float aspect = (float) width / height;\r\n\r\n //seta o viewport para abranger a janela inteira\r\n gl.glViewport(0, 0, width, height);\r\n\r\n //ativa a matriz de projeção\r\n gl.glMatrixMode(GL2.GL_PROJECTION);\r\n gl.glLoadIdentity(); //lê a matriz identidade\r\n\r\n //Projeção ortogonal\r\n //true: aspect >= 1 configura a altura de -1 para 1 : com largura maior\r\n //false: aspect < 1 configura a largura de -1 para 1 : com altura maior\r\n if (width >= height) {\r\n gl.glOrtho(xMin * aspect, xMax * aspect, yMin, yMax, zMin, zMax);\r\n } else {\r\n gl.glOrtho(xMin, xMax, yMin / aspect, yMax / aspect, zMin, zMax);\r\n }\r\n\r\n //ativa a matriz de modelagem\r\n gl.glMatrixMode(GL2.GL_MODELVIEW);\r\n gl.glLoadIdentity(); //lê a matriz identidade\r\n System.out.println(\"Reshape: \" + width + \", \" + height);\r\n }",
"@Override\n\tpublic RectTransform getTransform() {\n\t\treturn (RectTransform) super.getTransform();\n\t}",
"public void transform(Matrix m)\n { \n\t \tfor(int i= 0 ; i < this.vertex.length ; i++)\n\t \t{\n\t \t\tthis.vertex[i] = this.vertex[i].transform(m);\n\t \t}\n\t \n }",
"public static Polygon rotate(Shape shape, double theta) {\n\t\tPoint2D.Double center = getCenter(shape);\n\t\tArrayList<Point> points = new ArrayList<Point>();\n\t\t\n\t\tAffineTransform at = new AffineTransform();\n\t\tat.rotate(theta, center.x, center.y);\n\t\t\n\t\tfor (PathIterator pathI = shape.getPathIterator(at); !pathI.isDone(); pathI.next()) {\n\t\t\tdouble [] values = new double[6];\n\t\t\tpathI.currentSegment(values);\n\t\t\tpoints.add(new Point((int)values[0],(int)values[1]));\n\t\t}\n\t\t\n\t\tint [] xArray = new int[points.size()-1];\n\n\t\tint [] yArray = new int[points.size()-1];\n\t\t\n\t\tfor (int i = 0; i < points.size()-1; i +=1 ) {\n\t\t\txArray[i] = points.get(i).x;\n\t\t\tyArray[i] = points.get(i).y;\n\t\t}\n\t\tPolygon rshape = new Polygon(xArray,yArray,xArray.length);\n\t\treturn rshape;\n\t}",
"public static Polygon rotate(Shape shape, double theta, double x, double y) {\n\t\tArrayList<Point> points = new ArrayList<Point>();\n\t\t\n\t\tAffineTransform at = new AffineTransform();\n\t\tat.rotate(theta, x, y);\n\t\t\n\t\tfor (PathIterator pathI = shape.getPathIterator(at); !pathI.isDone(); pathI.next()) {\n\t\t\tdouble [] values = new double[6];\n\t\t\tpathI.currentSegment(values);\n\t\t\tpoints.add(new Point((int)values[0],(int)values[1]));\n\t\t}\n\t\t\n\t\tint [] xArray = new int[points.size()-1];\n\n\t\tint [] yArray = new int[points.size()-1];\n\t\t\n\t\tfor (int i = 0; i < points.size()-1; i +=1 ) {\n\t\t\txArray[i] = points.get(i).x;\n\t\t\tyArray[i] = points.get(i).y;\n\t\t}\n\t\tPolygon rshape = new Polygon(xArray,yArray,xArray.length);\n\t\treturn rshape;\n\t}",
"public void strokeShape(Shape shape);",
"godot.wire.Wire.Transform2D getTransform2DValue();",
"public void setTransform(Transform transform);",
"public AffineTransform getTransform() {\n return new AffineTransform(transform);\n }"
] |
[
"0.6742067",
"0.61668235",
"0.5952274",
"0.59485346",
"0.59343374",
"0.5754316",
"0.5721836",
"0.57127947",
"0.5673916",
"0.56629074",
"0.56263846",
"0.55877084",
"0.5571561",
"0.55660033",
"0.55559725",
"0.54275274",
"0.5421215",
"0.5407756",
"0.5386518",
"0.53703755",
"0.531605",
"0.5300623",
"0.52936584",
"0.5242147",
"0.5149527",
"0.5085408",
"0.50491256",
"0.5020844",
"0.5009999",
"0.49985632",
"0.49815282",
"0.49811238",
"0.49611706",
"0.4960359",
"0.4951803",
"0.49409187",
"0.49398756",
"0.4936268",
"0.49122742",
"0.49028182",
"0.48980448",
"0.4875808",
"0.4870465",
"0.48564327",
"0.48520568",
"0.48298103",
"0.4781387",
"0.47773576",
"0.47760642",
"0.47715348",
"0.4755171",
"0.47514588",
"0.4734252",
"0.4733989",
"0.47282633",
"0.47247216",
"0.4716595",
"0.4715305",
"0.47017136",
"0.46951744",
"0.46910894",
"0.46804598",
"0.46738788",
"0.4671905",
"0.4670361",
"0.4665315",
"0.4646681",
"0.46355718",
"0.4634025",
"0.46256",
"0.46019992",
"0.46005437",
"0.46000195",
"0.45997098",
"0.45922753",
"0.4591906",
"0.45903057",
"0.45749736",
"0.45707783",
"0.456707",
"0.4558057",
"0.45545024",
"0.45487827",
"0.45484832",
"0.45409113",
"0.45284286",
"0.45246944",
"0.4522457",
"0.45140246",
"0.45105565",
"0.45104182",
"0.45035857",
"0.4503106",
"0.4502513",
"0.45002988",
"0.44898897",
"0.4485805",
"0.44837284",
"0.4480087",
"0.44764438"
] |
0.6305103
|
1
|
Returns whether shape minimum width is set.
|
public boolean isMinWidthSet() { return get("MinWidth")!=null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isSetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(WIDTH$20) != null;\n }\n }",
"boolean hasWidth();",
"boolean hasWidth();",
"boolean hasWidth();",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSetImgWidth() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGWIDTH_ISSET_ID);\n }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@java.lang.Override\n public boolean hasWidth() {\n return instance.hasWidth();\n }",
"public float getMinWidth() {\r\n return width.min;\r\n }",
"public boolean isPrefWidthSet() { return get(\"PrefWidth\")!=null; }",
"abstract public int getMinWidth();",
"public double getMinWidth() { return getMinWidth(-1); }",
"boolean isSetWagerMinimum();",
"public boolean isMinHeightSet() { return get(\"MinHeight\")!=null; }",
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"public boolean minSize(){\n\t\tboolean result; \n\t\tif(keys.size() < (MAXKEYS/2) -1){\n\t\t\tresult = true;\n\t\t}\n\t\telse{ \n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t}",
"boolean isNilWagerMinimum();",
"public final boolean minimum(){\r\n\t\treturn minimum;\r\n\t}",
"public boolean isSetRFFreqMin() {\n return (this.rfFreqMin != null ? this.rfFreqMin.isSetValue() : false);\n }",
"@java.lang.Override\n public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public double getMinWidth(double aValue) { Double w = (Double)get(\"MinWidth\"); return w!=null? w : 0; }",
"public int getMinWidth() {\n checkWidget();\n return minWidth;\n }",
"public boolean isShapeMasked() {\n return this.shapeMasked;\n }",
"public boolean isSetHorzBwMin() {\n return (this.horzBwMin != null ? this.horzBwMin.isSetValue() : false);\n }",
"public Integer getBodyMinWidth() {\r\n return getAttributeAsInt(\"bodyMinWidth\");\r\n }",
"@Override\n public int getMinimumWidth() {\n return patternDrawable.getMinimumWidth();\n }",
"public boolean isSetFreqMin() {\n return (this.freqMin != null ? this.freqMin.isSetValue() : false);\n }",
"public void setMinWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getMinWidth()) return;\n firePropertyChange(\"MinWidth\", put(\"MinWidth\", w), w, -1);\n}",
"public boolean isSetVertBwMin() {\n return (this.vertBwMin != null ? this.vertBwMin.isSetValue() : false);\n }",
"public boolean hasMinRequirements() {\n\t\t// FIXME MIN input\n\t\treturn true;\n\t}",
"public boolean isMinimalClassSizeFulfilled() {\n return minimalClassSize != Integer.MAX_VALUE && minimalClassSizeFulfilled;\n }",
"public boolean isSetSmallCircle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SMALLCIRCLE$2) != 0;\n }\n }",
"public void setMinWidth(int width) {\n setMinSize(width, minHeight);\n }",
"public int getMinSize() {\n return minSize;\n }",
"public boolean setWidth(double width){\n if (width <= 0.0) return false;\n this.width = width;\n return true;\n }",
"public boolean meetsMinimumLength(){\n\n return alg.meetsMinimumLength(input.getText().toString());\n }",
"public boolean isFillWidth() { return _scroller.isFillWidth(); }",
"public boolean isNormalSize() {\n\t\treturn isLenWithin(5, 10);\n\t}",
"private Dimension checkMin(Dimension preferredSize, Dimension minimumSize) {\n\t\tif (minimumSize == null) {\n\t\t\treturn preferredSize;\n\t\t}\n\t\treturn new Dimension(Math.max(preferredSize.width, minimumSize.width),\n\t\t\t\tMath.max(preferredSize.height, minimumSize.height));\n\t}",
"public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}",
"public boolean isSetRFChannelFreqMin() {\n return (this.rfChannelFreqMin != null ? this.rfChannelFreqMin.isSetValue() : false);\n }",
"@Override\n public Dimension getMinimumSize() {\n final Dimension size;\n synchronized (getDelegateLock()) {\n size = getDelegate().getMinimumSize();\n }\n return validateSize(size);\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean isSetRotationRateMin() {\n return (this.rotationRateMin != null ? this.rotationRateMin.isSetValue() : false);\n }",
"private boolean tooSmallforThisPaddock(PaddockCoordinates coor) {\n return ((coor.getX() + coor.getWidth() > this.width)\n || (coor.getY() + coor.getHeight() > this.height));\n }",
"@Override\n\tpublic Point getMinSize() {\n\t\treturn Parameter.SPRITE_MIN_SIZE;\n\t}",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"@Override\n\tpublic boolean canResizeShape(IResizeShapeContext context) {\n\t\treturn false;\n\t}",
"@Override\r\n public Dimension getMinimumSize() {\r\n \t// get current minimum size\r\n \tDimension d = isMinimumSizeSet() ? super.getMinimumSize() : new Dimension(0,0);\r\n // forward\r\n return isExpanded() ?\r\n (isMinimumSizeSet() ? new Dimension(d.width, minimumCollapsedHeight>d.height ? minimumCollapsedHeight : d.height) : new Dimension(0,minimumCollapsedHeight)) :\r\n (isMinimumSizeSet() ? new Dimension(d.width,minimumCollapsedHeight) : new Dimension(0,minimumCollapsedHeight));\r\n }",
"private boolean isMinHeap() {\r\n return isMinHeap(1);\r\n }",
"boolean isSetFractionalMinimum();",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(10, 10);\n\t}",
"public static boolean isResizable() {\n return clientAccessor().isResizableMode();\n }",
"private int computePreferredMinimumSize(boolean width,\r\n\t\t\tint availablePerpendicular) {\r\n\t\tint minSize;\r\n\t\tint hint = availablePerpendicular == INFINITE ? SWT.DEFAULT\r\n\t\t\t\t: availablePerpendicular;\r\n\t\tif (width) {\r\n\t\t\tminSize = folder.getTabFolder().computeSize(SWT.DEFAULT, hint).x;\r\n\t\t} else {\r\n\t\t\tminSize = folder.getTabFolder().computeSize(hint, SWT.DEFAULT).y;\r\n\t\t}\r\n\t\treturn minSize;\r\n\t}",
"public void setMinWidth(float minWidth) {\n this.minWidth = minWidth;\n }",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public boolean isSetMinHitCount() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MINHITCOUNT_ISSET_ID);\r\n }",
"public boolean isCorrectSize(int height, int width);",
"public boolean isSizeFixed() {\n return !(this.size.width < 0 && this.size.height < 0);\n }",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"public Dimension getMinimumSize() {\r\n\t\treturn (this.getPreferredSize());\r\n\t}",
"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}",
"@Test\r\n\tpublic void testWidth() {\r\n\t\tassertEquals(WIDTH, validRectangle.width());\r\n\t}",
"private boolean isNxNShape() {\n return this.matrix.size() == this.n &&\n this.matrix.stream()\n .allMatch(row -> row.size() == this.n);\n }",
"private boolean isFullWest()\r\n\t{\r\n\t\treturn (westElem == maxSize);\r\n\t}",
"public boolean isAlwaysNonEmpty() {\n final RexWindowBound lower;\n final RexWindowBound upper;\n if (lowerBound == null) {\n if (upperBound == null) {\n lower = RexWindowBounds.UNBOUNDED_PRECEDING;\n } else {\n lower = RexWindowBounds.CURRENT_ROW;\n }\n } else if (lowerBound instanceof SqlLiteral) {\n lower = RexWindowBounds.create(lowerBound, null);\n } else {\n return false;\n }\n if (upperBound == null) {\n upper = RexWindowBounds.CURRENT_ROW;\n } else if (upperBound instanceof SqlLiteral) {\n upper = RexWindowBounds.create(upperBound, null);\n } else {\n return false;\n }\n return isAlwaysNonEmpty(lower, upper);\n }",
"public Boolean isSizeFlexEligible() {\n return this.sizeFlexEligible;\n }",
"public boolean isSizeFixed ( ) {\r\n\t\treturn (radius_mag_dependent == false);\r\n\t}",
"@Test\n\t\tpublic void isWidth() {\n\t\t\tint expected = 7;\n\t\t\tint actual = game.getWidthAcross();\n\t\t\t\n\t\t\tassertEquals(expected, actual);\n\t\t}",
"public boolean isScaleAhead() {\r\n\t\treturn robotStartPos == scalePos;\r\n\t}",
"@Override\r\n public boolean isClef ()\r\n {\r\n return ShapeSet.Clefs.contains(getShape());\r\n }",
"public boolean outWidth(int maxW, int minW) {\n return center.getX() + this.r > maxW || center.getX() - this.r < minW;\n }",
"public boolean isSetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(BORDER$22) != null;\n }\n }",
"public Integer getMinLength() {\n\t\treturn minLength;\n\t}",
"short getFitWidth();",
"public boolean isLowerLimit() {\n if (m_lowerLimit != null) {\n return m_lowerLimit.get();\n } else {\n return false;\n }\n }",
"public boolean isSetWeight() {\n\t\treturn this.weight != null;\n\t}",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"@objid (\"7f09cb82-1dec-11e2-8cad-001ec947c8cc\")\n public boolean allowsResize() {\n return true;\n }",
"public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}",
"public final boolean searchMinimum(){\r\n\t\tif (!initialized()) minimum=true;\r\n\t\treturn minimum;\r\n\t}",
"final boolean isXMajorAxis() {\n return isStatusBitsNonZero(X_MAJOR_AXIS_BIT);\n }",
"public boolean isSquare() {\r\n \tif (getLength() == getWidth()) {\r\n \t\treturn(true);\r\n \t} else {\r\n \t\treturn(false);\r\n \t}\r\n }",
"public int getMinimumWidth() {\n return LEFT_MARGIN + (mMaxDurationLength + CONTEXT_PADDING) * mContextCount;\n }",
"public void setMinWidth(final Integer value) {\n minWidth = value.intValue();\n }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\tif(!(width>0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: height>0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tgetDelegate().setWidth(width);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// pos: getHeight()==height\r\n\t\tif(!(getWidth()==width))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getWidth()==width\");\r\n\r\n\t}",
"public boolean isFixedWidth() throws PDFNetException {\n/* 561 */ return IsFixedWidth(this.a);\n/* */ }",
"final int getMinimumSize(int axis) {\n if (min == UNSET) {\n min = constrain(calculateMinimumSize(axis));\n }\n return min;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"public final int getWidth(){\n return width_;\n }",
"public boolean isSetMinTemperatureC()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MINTEMPERATUREC$10) != 0;\n }\n }",
"public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }",
"int minColSizeAboveZero() {\n int min = Integer.MAX_VALUE;\n for (IntSet col : this.cols) {\n if (col.size() > 0 && col.size() < min) {\n min = col.size();\n }\n }\n return min;\n }",
"public boolean setShapeSize(DimensionF shapeSize) {\n if (ObjectUtils.equals(this.shapeSize, shapeSize))\n return false;\n this.shapeSize = shapeSize;\n return true;\n }",
"public boolean leftJustified(){\n return justification.equals(FormatAlignment.LEFT_JUSTIFY);\n }",
"public boolean isSetMajor() {\n\t\treturn this.major != null;\n\t}"
] |
[
"0.7368552",
"0.71543646",
"0.71543646",
"0.71543646",
"0.68027294",
"0.67608696",
"0.6746935",
"0.66071475",
"0.65973806",
"0.6582311",
"0.65601337",
"0.6525918",
"0.6510056",
"0.6328822",
"0.62639016",
"0.6224452",
"0.62164956",
"0.6203482",
"0.61815155",
"0.61286485",
"0.6118357",
"0.6109389",
"0.61016154",
"0.6061294",
"0.6041671",
"0.598933",
"0.5931058",
"0.59263724",
"0.59003896",
"0.58831877",
"0.58686554",
"0.5858519",
"0.58500123",
"0.5835879",
"0.5824651",
"0.57849056",
"0.5777253",
"0.5724431",
"0.57123166",
"0.5708346",
"0.56769145",
"0.5676209",
"0.5665278",
"0.5665278",
"0.565367",
"0.5642738",
"0.5627876",
"0.55873257",
"0.5581591",
"0.5578798",
"0.5578525",
"0.5576109",
"0.5554484",
"0.5534279",
"0.553392",
"0.55304784",
"0.55274487",
"0.55270267",
"0.55065495",
"0.5500074",
"0.54975206",
"0.54975206",
"0.54975206",
"0.54975206",
"0.54864043",
"0.54703325",
"0.5460658",
"0.54591686",
"0.544747",
"0.5443203",
"0.5423824",
"0.5415544",
"0.5396792",
"0.53830403",
"0.53816664",
"0.53776515",
"0.5373992",
"0.53735185",
"0.5366006",
"0.5365044",
"0.5356163",
"0.53536314",
"0.53494304",
"0.53479075",
"0.5343004",
"0.5341264",
"0.5321353",
"0.53172547",
"0.53149796",
"0.53052086",
"0.5305125",
"0.5299018",
"0.528894",
"0.5288524",
"0.52794826",
"0.5277351",
"0.52668154",
"0.5266787",
"0.5260803",
"0.5258522"
] |
0.7920383
|
0
|
Returns the shape minimum width.
|
public double getMinWidth() { return getMinWidth(-1); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public float getMinWidth() {\r\n return width.min;\r\n }",
"abstract public int getMinWidth();",
"public int getMinWidth() {\n checkWidget();\n return minWidth;\n }",
"public double getMinWidth(double aValue) { Double w = (Double)get(\"MinWidth\"); return w!=null? w : 0; }",
"@Override\n public int getMinimumWidth() {\n return patternDrawable.getMinimumWidth();\n }",
"public int getMinimumWidth() {\n return LEFT_MARGIN + (mMaxDurationLength + CONTEXT_PADDING) * mContextCount;\n }",
"public final int getWidth() {\r\n return (int) size.x();\r\n }",
"public Integer getBodyMinWidth() {\r\n return getAttributeAsInt(\"bodyMinWidth\");\r\n }",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(10, 10);\n\t}",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"public double getWidth() {\r\n \tif (this.x1 >= this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t} else if (this.x1 < this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t}\r\n \treturn(width);\r\n }",
"public double getWidth();",
"public double getWidth();",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"public float getWidth();",
"public SVGLength getWidth() {\n return width;\n }",
"public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}",
"Length getWidth();",
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public Dimension getMinimumSize() {\r\n\t\treturn (this.getPreferredSize());\r\n\t}",
"public double getWidth() {\n\t\treturn mx-nx;\n\t}",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public final int getWidth(){\n return width_;\n }",
"final public double getWidth()\n\t{\n\t\treturn width;\n\t}",
"double getWidth();",
"double getWidth();",
"public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }",
"public double getWidth()\r\n {\r\n return width;\r\n }",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public double getWidth () {\n return width;\n }",
"String getWidth();",
"String getWidth();",
"public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn width;\n\t}",
"public int getWidth() {\n return ((int) this.rectangle.getWidth());\n }",
"public double getWidth() {\r\n\t\treturn width;\r\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public double getWidth()\n {\n return width;\n }",
"public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"@Override\n public Dimension getMinimumSize() {\n final Dimension size;\n synchronized (getDelegateLock()) {\n size = getDelegate().getMinimumSize();\n }\n return validateSize(size);\n }",
"public float getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n return width_;\n }",
"protected double getMinWidthImpl()\n {\n Insets ins = getInsetsAll();\n double minW = _scroller.getMinWidth();\n return minW + ins.getWidth();\n }",
"public float getWidth()\n {\n return getBounds().width();\n }",
"public float getWidth() {\n\t\treturn width;\n\t}",
"public Integer getWidth() {\n\t\t\treturn width;\n\t\t}",
"public double getWidth() {\r\n return width;\r\n }",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"public final int getWidth() {\r\n return width;\r\n }",
"public float getWidth() {\n return width;\n }",
"public static double getOrigWidth() {\n\t\treturn 0.7792094349861145;\n\t}",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public static double getOrigWidth() {\n\t\treturn 0.7400000095367432;\n\t}",
"public static double getOrigWidth() {\n\t\treturn 0.7400000095367432;\n\t}"
] |
[
"0.80766696",
"0.7617924",
"0.7307746",
"0.725746",
"0.7185901",
"0.7119806",
"0.69743586",
"0.69428074",
"0.6933746",
"0.6928389",
"0.6880572",
"0.6833933",
"0.6833933",
"0.6772746",
"0.6753213",
"0.6746635",
"0.6746596",
"0.67434",
"0.67412555",
"0.67241067",
"0.67198604",
"0.6696592",
"0.669612",
"0.669612",
"0.669612",
"0.6682625",
"0.6682625",
"0.6671974",
"0.6669022",
"0.6666027",
"0.66626203",
"0.66626203",
"0.6659776",
"0.66388226",
"0.6634929",
"0.6629814",
"0.6628992",
"0.6628992",
"0.66274256",
"0.6626089",
"0.6625985",
"0.66256",
"0.66256",
"0.66256",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.66209596",
"0.6618092",
"0.66166395",
"0.66166395",
"0.66166395",
"0.6616466",
"0.6613366",
"0.66086245",
"0.660771",
"0.66072756",
"0.6604078",
"0.65952903",
"0.65948546",
"0.65754235",
"0.6571276",
"0.65709865",
"0.65657395",
"0.6561756",
"0.65547013",
"0.65530485",
"0.6552968",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.65513813",
"0.65458596",
"0.65458596",
"0.6545625",
"0.6545625"
] |
0.77122617
|
1
|
Returns the shape minimum width.
|
public double getMinWidth(double aValue) { Double w = (Double)get("MinWidth"); return w!=null? w : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public float getMinWidth() {\r\n return width.min;\r\n }",
"public double getMinWidth() { return getMinWidth(-1); }",
"abstract public int getMinWidth();",
"public int getMinWidth() {\n checkWidget();\n return minWidth;\n }",
"@Override\n public int getMinimumWidth() {\n return patternDrawable.getMinimumWidth();\n }",
"public int getMinimumWidth() {\n return LEFT_MARGIN + (mMaxDurationLength + CONTEXT_PADDING) * mContextCount;\n }",
"public final int getWidth() {\r\n return (int) size.x();\r\n }",
"public Integer getBodyMinWidth() {\r\n return getAttributeAsInt(\"bodyMinWidth\");\r\n }",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(10, 10);\n\t}",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"public double getWidth() {\r\n \tif (this.x1 >= this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t} else if (this.x1 < this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t}\r\n \treturn(width);\r\n }",
"public double getWidth();",
"public double getWidth();",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"public float getWidth();",
"public SVGLength getWidth() {\n return width;\n }",
"public short getWidth() {\n\n\t\treturn getShort(ADACDictionary.X_DIMENSIONS);\n\t}",
"Length getWidth();",
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public Dimension getMinimumSize() {\r\n\t\treturn (this.getPreferredSize());\r\n\t}",
"public double getWidth() {\n\t\treturn mx-nx;\n\t}",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public final int getWidth(){\n return width_;\n }",
"final public double getWidth()\n\t{\n\t\treturn width;\n\t}",
"double getWidth();",
"double getWidth();",
"public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }",
"public double getWidth()\r\n {\r\n return width;\r\n }",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public double getWidth () {\n return width;\n }",
"String getWidth();",
"String getWidth();",
"public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn width;\n\t}",
"public int getWidth() {\n return ((int) this.rectangle.getWidth());\n }",
"public double getWidth() {\r\n\t\treturn width;\r\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public double getWidth()\n {\n return width;\n }",
"public double getWidth() {\r\n\r\n\t\treturn w;\r\n\r\n\t}",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"@Override\n public Dimension getMinimumSize() {\n final Dimension size;\n synchronized (getDelegateLock()) {\n size = getDelegate().getMinimumSize();\n }\n return validateSize(size);\n }",
"public float getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n return width_;\n }",
"protected double getMinWidthImpl()\n {\n Insets ins = getInsetsAll();\n double minW = _scroller.getMinWidth();\n return minW + ins.getWidth();\n }",
"public float getWidth()\n {\n return getBounds().width();\n }",
"public float getWidth() {\n\t\treturn width;\n\t}",
"public Integer getWidth() {\n\t\t\treturn width;\n\t\t}",
"public double getWidth() {\r\n return width;\r\n }",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"public final int getWidth() {\r\n return width;\r\n }",
"public float getWidth() {\n return width;\n }",
"public static double getOrigWidth() {\n\t\treturn 0.7792094349861145;\n\t}",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public static double getOrigWidth() {\n\t\treturn 0.7400000095367432;\n\t}",
"public static double getOrigWidth() {\n\t\treturn 0.7400000095367432;\n\t}"
] |
[
"0.80766696",
"0.77122617",
"0.7617924",
"0.7307746",
"0.7185901",
"0.7119806",
"0.69743586",
"0.69428074",
"0.6933746",
"0.6928389",
"0.6880572",
"0.6833933",
"0.6833933",
"0.6772746",
"0.6753213",
"0.6746635",
"0.6746596",
"0.67434",
"0.67412555",
"0.67241067",
"0.67198604",
"0.6696592",
"0.669612",
"0.669612",
"0.669612",
"0.6682625",
"0.6682625",
"0.6671974",
"0.6669022",
"0.6666027",
"0.66626203",
"0.66626203",
"0.6659776",
"0.66388226",
"0.6634929",
"0.6629814",
"0.6628992",
"0.6628992",
"0.66274256",
"0.6626089",
"0.6625985",
"0.66256",
"0.66256",
"0.66256",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.6621514",
"0.66209596",
"0.6618092",
"0.66166395",
"0.66166395",
"0.66166395",
"0.6616466",
"0.6613366",
"0.66086245",
"0.660771",
"0.66072756",
"0.6604078",
"0.65952903",
"0.65948546",
"0.65754235",
"0.6571276",
"0.65709865",
"0.65657395",
"0.6561756",
"0.65547013",
"0.65530485",
"0.6552968",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.6552929",
"0.65513813",
"0.65458596",
"0.65458596",
"0.6545625",
"0.6545625"
] |
0.725746
|
4
|
Sets the shape minimum width.
|
public void setMinWidth(double aWidth)
{
double w = aWidth<=0? 0 : aWidth; if(w==getMinWidth()) return;
firePropertyChange("MinWidth", put("MinWidth", w), w, -1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setMinWidth(int width) {\n setMinSize(width, minHeight);\n }",
"public void setMinWidth(float minWidth) {\n this.minWidth = minWidth;\n }",
"public void setMinWidth(final Integer value) {\n minWidth = value.intValue();\n }",
"public void setMinimumSize( int width, int height ) {\n checkWidget();\n Point point = parent.fixPoint( width, height );\n minimumWidth = point.x;\n minimumHeight = point.y;\n }",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"public void setMinWidth(float minWidth) {\n mMinWidth = convertDpToPx(minWidth);\n }",
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public void setMinimumSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setMinimumSize( size.x, size.y );\n }",
"public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setWidth(int w) {\n this.width = w;\n }",
"public void setWidth(int w){ widthRadius = w; }",
"public void setWidth(float width) {\n this.xRadius = width/2f;\n }",
"public void setWidth(int w) {\n this.W = w;\n }",
"protected void setLineWidth(int width) {\r\n\t\tif (primaryShape instanceof Shape) {\r\n\t\t\t((Shape) primaryShape).setLineWidth(width);\r\n\t\t}\r\n\t}",
"public float getMinWidth() {\r\n return width.min;\r\n }",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setMinSize(Point size) {\n if (size == null) {\n setMinSize(0, 0);\n } else {\n setMinSize(size.x, size.y);\n }\n }",
"public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }",
"public double getMinWidth() { return getMinWidth(-1); }",
"public void setWidth(int w) {\n\t\twidth = w;\n\t}",
"public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }",
"private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }",
"void setFitWidth(short width);",
"abstract public int getMinWidth();",
"void setContentMinWidth(String minWidth);",
"public X minimumSize(Dimension min) {\n component.setMinimumSize(min);\n return (X) this;\n }",
"void setWidth(int width);",
"void setWidth(int width);",
"private void setBorderWidth(int width) {\n this.borderWidth = width;\n Rectangle r = (Rectangle) this.getChildren().get(0);\n r.setStrokeWidth(width);\n }",
"@Override\n public int getMinimumWidth() {\n return patternDrawable.getMinimumWidth();\n }",
"public void setLineWidth(int width)\n {\n if (width > 0)\n lineWidth = width;\n else \n lineWidth = 1;\n }",
"public void setMinimum(Number min) {\n ((ADocument) getDocument()).setMinimum(min);\n }",
"public void setBodyMinWidth(Integer bodyMinWidth) {\r\n setAttribute(\"bodyMinWidth\", bodyMinWidth, true);\r\n }",
"public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"private void setMinWidth(RectF rect, Matrix matrix) {\n\t\tRectF srcRect = new RectF(getDrawableRect());\n\n\t\tif (rect == null || matrix == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tfloat dw = srcRect.width();\n\t\tfloat dh = srcRect.height();\n\t\tfloat rw = rect.width();\n\t\tfloat rh = rect.height();\n\n\t\tif (dw < 1 || dh < 1 || rw < 1 || rh < 1) {\n\t\t\treturn;\n\t\t}\n\n\t\tRectF dstRect = new RectF();\n\t\tmatrix.setTranslate(dw * -.5f, dh * -.5f);\n\t\tmatrix.postRotate(rotation);\n\t\tmatrix.mapRect(dstRect, srcRect);\n\n\t\tfloat xr = rw / dstRect.width();\n\t\tfloat yr = rh / dstRect.height();\n\t\tfloat scale;\n\n\t\tif (scaleType == ImageView.ScaleType.CENTER) {\n\t\t\tscale = 1f;\n\t\t} else if (scaleType == ImageView.ScaleType.CENTER_INSIDE) {\n\t\t\tscale = Math.min(xr, yr);\n\t\t} else if (scaleType == ImageView.ScaleType.CENTER_CROP) {\n\t\t\tscale = Math.max(xr, yr);\n\t\t} else {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}\n\n\t\tmatrix.postScale(scale, scale);\n\t\tmatrix.postTranslate(\n\t\t\t\tMath.round(rect.left + rw * .5f),\n\t\t\t\tMath.round(rect.top + rh * .5f));\n\n\t\tmatrix.mapRect(dstRect, srcRect);\n\n\t\tminWidth = dstRect.width();\n\t}",
"@JsProperty\n public void setWidth(int width);",
"@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }",
"public void setWidth(int width) {\n this.width = width;\n }",
"@Override\r\n\tpublic int setWidth() {\n\t\treturn 0;\r\n\t}",
"public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }",
"@Override\n\tpublic void setWidth(float width) {\n\n\t}",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"public void setWidth(final String value)\n {\n width = value;\n }",
"public void setOutlinePickWidth(int outlinePickWidth)\n {\n if (outlinePickWidth < 0)\n {\n String message = Logging.getMessage(\"generic.ArgumentOutOfRange\", \"width < 0\");\n Logging.logger().severe(message);\n throw new IllegalArgumentException(message);\n }\n\n this.outlinePickWidth = outlinePickWidth;\n }",
"public Builder setWidth(int value) {\n \n width_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"public double getMinWidth(double aValue) { Double w = (Double)get(\"MinWidth\"); return w!=null? w : 0; }",
"public int getMinWidth() {\n checkWidget();\n return minWidth;\n }",
"public void setWidth(int width) {\n\t\tw = width;\n\t}",
"public void SetWidth(double width) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetWidth(swigCPtr, this, width);\n }",
"@Override\n\tpublic void setBoxWidth(int l) {\n\t\tmaxwid = l;\n\t}",
"@Override\n\tpublic void setWidth(int newWidth) {\n\t\tint width = (int) (newWidth * 0.5);\n\t\tif (width > mainContainer.getMinWidth()) {\n\t\t\tscreenWidth = width;\n\t\t\tmainContainer.setPrefWidth(screenWidth);\n\t\t}\n\t\tcenterScreenX(newWidth);\n\t}",
"public void setWidth(Integer width)\n {\n getStateHelper().put(PropertyKeys.width, width);\n }",
"public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}",
"public void setPrefWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getPrefWidth()) return;\n firePropertyChange(\"PrefWidth\", put(\"PrefWidth\", w), w, -1);\n}",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;",
"public void setWidth(int width) {\n if(width < 0) throw new NegativeSizeException(\"Negative width\");\n \tthis.width = width;\n }",
"public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }",
"public void setMinsize(int minsize) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}",
"@Generated\n @Selector(\"setMinimumRadius:\")\n public native void setMinimumRadius(@NFloat double value);",
"@Override\n public void setLineWidth(double width) {\n graphicsEnvironmentImpl.setLineWidth(canvas, width);\n }",
"private void setTargetWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetWidth = width;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\tif(!(width>0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: height>0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tgetDelegate().setWidth(width);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// pos: getHeight()==height\r\n\t\tif(!(getWidth()==width))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getWidth()==width\");\r\n\r\n\t}",
"public void setLineWidth(Integer width) {\n style.setBorderWidth(width);\n }",
"public boolean isMinWidthSet() { return get(\"MinWidth\")!=null; }",
"public void setNodeBorderWidth(Float value) {\n nodeBorderWidth = value;\n }",
"public void setNormalOvalStrokeWidth(int width) {\n this.mNormalOvalStrokeWidth = width;\n }",
"public void setNodeStrokeSourceWidth(double value) {\n _nodeStrokeSourceWidth = value;\n }",
"public void setWidth( int width ) {\n\t\t_width = width;\n\t}",
"public void adjustWidth() {\n int width = Short.MIN_VALUE;\n\n for (final TextBox tb : getAllTextBox()) {\n final int tbWidth = tb.getTextDim().width;\n\n if (tbWidth > width) width = tbWidth; // get the longer content\n }\n\n if (fullWidthStereotype > width) width = fullWidthStereotype;\n\n Change.push(new BufferBounds(this));\n\n setBounds(new Rectangle(\n bounds.x, bounds.y, width + GraphicView.getGridSize() + 15, bounds.height));\n\n Change.push(new BufferBounds(this));\n }",
"public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }",
"public void setWidth(int n){ // Setter method\n \n width = n; // set the class attribute (variable) radius equal to num\n }",
"public void setMin ( Point min ) {\r\n\r\n\tsetA ( min );\r\n }",
"public void setWidth(int width) {\n\t\tthis.width = width;\n\t}",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(10, 10);\n\t}",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}",
"void setNilWagerMinimum();",
"public void setMinimum(Number min) {\n this.min = min;\n }",
"@Override\n\tpublic int getMinSizeX()\n\t{\n\t\treturn 50;\n\t}",
"public void setarXmin(double xmin) {\n\t\tthis.xmin = xmin;\n\t}",
"public void setRadWidth(int width) {\n radWidth = width;\n }",
"public void setMinMagnitude(double magnitude);",
"public void setMinSize(int width, int height) {\n checkWidget();\n if (width == minWidth && height == minHeight)\n return;\n minWidth = Math.max(0, width);\n minHeight = Math.max(0, height);\n layout(false);\n }",
"public void setWidth(Integer width) {\n\t\tthis.width = width;\n\t\tthis.handleConfig(\"width\", width);\n\t}",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"public void setWidth(int width) {\n this.width = width;\n this.rightEdge = RRConstants.getRightEdge(width);\n }",
"public void setMinWeight(double inMinWeight) {\n minWeight = inMinWeight;\n }",
"public void setEdgeStrokeSourceWidth(double value) {\n _edgeStrokeSourceWidth = value;\n }",
"private void setCurrentWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmCurrentWidth = width;\r\n\t\t}\r\n\t}",
"public void setMinColumnWidth(final int minColWidth) {\n mMinColWidth = minColWidth;\n setColumnCount(COLUMN_COUNT_AUTO);\n }",
"public void _setMin(float min)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMinimum((int) (min * 100));\r\n } else\r\n {\r\n setMinimum((int) min);\r\n }\r\n }"
] |
[
"0.75573784",
"0.7129776",
"0.7063749",
"0.69729114",
"0.6858708",
"0.67343515",
"0.661154",
"0.65909714",
"0.65667975",
"0.65225405",
"0.651849",
"0.6514945",
"0.6497592",
"0.6495067",
"0.64798915",
"0.64505893",
"0.6417646",
"0.6405307",
"0.6327838",
"0.6310143",
"0.6303027",
"0.63007766",
"0.6287891",
"0.62877125",
"0.62428385",
"0.6206958",
"0.62040293",
"0.6191241",
"0.6186773",
"0.6186773",
"0.61656636",
"0.6150951",
"0.6150899",
"0.6149242",
"0.6147842",
"0.6127235",
"0.61270165",
"0.61105895",
"0.60926557",
"0.60918504",
"0.6089893",
"0.6077681",
"0.60767365",
"0.6075546",
"0.6073986",
"0.6059562",
"0.60532284",
"0.6049315",
"0.6027353",
"0.60128677",
"0.5983278",
"0.59821355",
"0.59783757",
"0.5975272",
"0.59727",
"0.59676874",
"0.59615636",
"0.58966166",
"0.58841753",
"0.58827454",
"0.5879923",
"0.58759046",
"0.58759046",
"0.58665264",
"0.5865772",
"0.58533466",
"0.5837554",
"0.58350873",
"0.58334434",
"0.58205676",
"0.58155036",
"0.5809977",
"0.58058685",
"0.5805706",
"0.5802078",
"0.5801859",
"0.5798081",
"0.5793747",
"0.57893294",
"0.5782375",
"0.5778859",
"0.5776852",
"0.5772927",
"0.57628703",
"0.57531375",
"0.5745845",
"0.5745",
"0.572701",
"0.57217526",
"0.5716044",
"0.5694166",
"0.5691804",
"0.5683239",
"0.56705624",
"0.5667877",
"0.5663642",
"0.56635475",
"0.5660009",
"0.5656831",
"0.5652357"
] |
0.7015062
|
3
|
Returns whether shape minimum height is set.
|
public boolean isMinHeightSet() { return get("MinHeight")!=null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasHeight();",
"boolean hasHeight();",
"boolean hasHeight();",
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public boolean isSetHeight() {\n\t\treturn this.height != null;\n\t}",
"public boolean hasHeight() {\n return fieldSetFlags()[6];\n }",
"public boolean isMinWidthSet() { return get(\"MinWidth\")!=null; }",
"public boolean isSetImgHeight() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGHEIGHT_ISSET_ID);\n }",
"public boolean isSetHorzBwMin() {\n return (this.horzBwMin != null ? this.horzBwMin.isSetValue() : false);\n }",
"abstract public int getMinHeight();",
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"@java.lang.Override\n public boolean hasHeight() {\n return instance.hasHeight();\n }",
"public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public int getMinHeight() {\n checkWidget();\n return minHeight;\n }",
"public boolean isPrefHeightSet() { return get(\"PrefHeight\")!=null; }",
"public boolean isSetVertBwMin() {\n return (this.vertBwMin != null ? this.vertBwMin.isSetValue() : false);\n }",
"@VisibleForTesting\n public int getPeekHeightMin() {\n return this.peekHeightMin;\n }",
"public Integer getBodyMinHeight() {\r\n return getAttributeAsInt(\"bodyMinHeight\");\r\n }",
"public boolean isCorrectSize(int height, int width);",
"boolean isSetWagerMinimum();",
"public final boolean minimum(){\r\n\t\treturn minimum;\r\n\t}",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean isSetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(WIDTH$20) != null;\n }\n }",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public boolean isSetHorzBwMax() {\n return (this.horzBwMax != null ? this.horzBwMax.isSetValue() : false);\n }",
"public double getMinHeight(double aValue) { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"boolean hasWidth();",
"boolean hasWidth();",
"boolean hasWidth();",
"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}",
"@java.lang.Override\n public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"@Override\n public int getMinimumHeight() {\n return patternDrawable.getMinimumHeight();\n }",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"private boolean hasReachedBottom() {\n\t\tfor (Segment s:this.getHorizontalProjection().getShapeSegments()){\n\t\t\t\n\t\t\tHeightProfile hs = this.grid.heightAt(s);\n\t\t\t\n\t\t\tfor (int h : hs){\n\t\t\t\t\n\t\t\t\tif (this.bottomLeft.getY() <= h){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isMinimalClassSizeFulfilled() {\n return minimalClassSize != Integer.MAX_VALUE && minimalClassSizeFulfilled;\n }",
"public boolean minSize(){\n\t\tboolean result; \n\t\tif(keys.size() < (MAXKEYS/2) -1){\n\t\t\tresult = true;\n\t\t}\n\t\telse{ \n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t}",
"public boolean isSetImgWidth() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGWIDTH_ISSET_ID);\n }",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"private boolean isMinHeap() {\r\n return isMinHeap(1);\r\n }",
"@Override\r\n public Dimension getMinimumSize() {\r\n \t// get current minimum size\r\n \tDimension d = isMinimumSizeSet() ? super.getMinimumSize() : new Dimension(0,0);\r\n // forward\r\n return isExpanded() ?\r\n (isMinimumSizeSet() ? new Dimension(d.width, minimumCollapsedHeight>d.height ? minimumCollapsedHeight : d.height) : new Dimension(0,minimumCollapsedHeight)) :\r\n (isMinimumSizeSet() ? new Dimension(d.width,minimumCollapsedHeight) : new Dimension(0,minimumCollapsedHeight));\r\n }",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"protected boolean calculateSize()\n\t{\n\t\tp_height = 0;\n\t\tfor (int r = 0; r < m_rows; r++)\n\t\t{\n\t\t\tp_height += m_rowHeight[r];\n\t\t\tif (m_rowHeight[r] > 0)\n\t\t\t\tp_height += m_rowGap;\n\t\t}\n\t\tp_height -= m_rowGap;\t//\tremove last\n\t\tp_width = 0;\n\t\tfor (int c = 0; c < m_cols; c++)\n\t\t{\n\t\t\tp_width += m_colWidth[c];\n\t\t\tif (m_colWidth[c] > 0)\n\t\t\t\tp_width += m_colGap;\n\t\t}\n\t\tp_width -= m_colGap;\t\t//\tremove last\n\t\treturn true;\n\t}",
"public boolean isSquare()\n {\n return width == height;\n }",
"public boolean isSetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(BORDER$22) != null;\n }\n }",
"boolean isNilWagerMinimum();",
"public boolean getMaximized() {\n checkWidget();\n return maximized;\n }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isShapeMasked() {\n return this.shapeMasked;\n }",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"@Override\n\tpublic boolean getZeroHeight() {\n\t\treturn false;\n\t}",
"public void setMinHeight(final Integer value) {\n minHeight = value.intValue();\n }",
"boolean hasFillBehavior();",
"public boolean isFillArea() {\n\t\treturn fillArea;\n\t}",
"public boolean hasMinRequirements() {\n\t\t// FIXME MIN input\n\t\treturn true;\n\t}",
"public boolean isSizeFixed() {\n return !(this.size.width < 0 && this.size.height < 0);\n }",
"public boolean isMaximized() {\n return isElementPresent(By.className(RESTORE_BOX_CLASS));\n }",
"boolean hasMaxSize();",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean isValid() {\n boolean isvalid = true;\n\n if (java.lang.Double.isInfinite(x) || java.lang.Double.isNaN(x) || java.lang.Double.isInfinite(y) || java.lang.Double.isNaN(y) || java.lang.Double.isInfinite(width) || java.lang.Double.isNaN(width) || java.lang.Double.isInfinite(height)\n || java.lang.Double.isNaN(height)) {\n isvalid = false;\n }\n\n return isvalid;\n }",
"public void setMinHeight(float minHeight) {\n this.minHeight = minHeight;\n }",
"public Boolean isSizeFlexEligible() {\n return this.sizeFlexEligible;\n }",
"public boolean isSetVertScanAngleMin() {\n return (this.vertScanAngleMin != null ? this.vertScanAngleMin.isSetValue() : false);\n }",
"public Dimension getMinimumSize() {\r\n\t\treturn (this.getPreferredSize());\r\n\t}",
"public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean isSetSmallCircle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SMALLCIRCLE$2) != 0;\n }\n }",
"@Override\n\tpublic Point getMinSize() {\n\t\treturn Parameter.SPRITE_MIN_SIZE;\n\t}",
"public void setMinHeight(int minHeight) throws InvalidFlightPlanException {\n\t}",
"@Override\n public Dimension getMinimumSize() {\n final Dimension size;\n synchronized (getDelegateLock()) {\n size = getDelegate().getMinimumSize();\n }\n return validateSize(size);\n }",
"public boolean getHorizontalFill() {\n return hfill;\n }",
"boolean hasDimension();",
"boolean isSetSingleBetMinimum();",
"public Dimension getMinimumSize() {\n Dimension size = super.getMinimumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }",
"boolean hasRowLayout();",
"boolean hasMosaicLayout();",
"private boolean isFullWest()\r\n\t{\r\n\t\treturn (westElem == maxSize);\r\n\t}",
"public int getMinSize() {\n return minSize;\n }",
"public boolean isPrefWidthSet() { return get(\"PrefWidth\")!=null; }",
"boolean isSetFractionalMinimum();",
"@java.lang.Override\n public boolean hasWidth() {\n return instance.hasWidth();\n }",
"public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}",
"public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;\n firePropertyChange(\"MinHeight\", put(\"MinHeight\", h), h, -1);\n}",
"public boolean isMaximized() {\n return maximized;\n }",
"boolean isNilSingleBetMinimum();",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"private Dimension checkMin(Dimension preferredSize, Dimension minimumSize) {\n\t\tif (minimumSize == null) {\n\t\t\treturn preferredSize;\n\t\t}\n\t\treturn new Dimension(Math.max(preferredSize.width, minimumSize.width),\n\t\t\t\tMath.max(preferredSize.height, minimumSize.height));\n\t}",
"public boolean outHeight(int maxH, int minH) {\n return center.getY() + this.r > maxH || center.getY() - this.r < minH;\n }",
"public boolean isLayoutNeeded() {\n return this.mLayoutNeeded;\n }",
"public boolean isSizeFixed ( ) {\r\n\t\treturn (radius_mag_dependent == false);\r\n\t}",
"boolean hasGridLayout();",
"@java.lang.Override\n public boolean hasFillBehavior() {\n return fillBehavior_ != null;\n }",
"Integer getDefaultHeight();",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }"
] |
[
"0.6851021",
"0.6851021",
"0.6851021",
"0.6750152",
"0.6749942",
"0.6572637",
"0.6449467",
"0.6446464",
"0.63887966",
"0.6348935",
"0.63149714",
"0.62256813",
"0.6212407",
"0.6193671",
"0.61737984",
"0.6152667",
"0.61147124",
"0.6088745",
"0.60637367",
"0.6050287",
"0.6018535",
"0.5987411",
"0.5986148",
"0.5986148",
"0.5979053",
"0.5932575",
"0.592317",
"0.59219205",
"0.59189314",
"0.59189314",
"0.59189314",
"0.5852567",
"0.58522236",
"0.5811444",
"0.5784773",
"0.5784773",
"0.5784773",
"0.5784773",
"0.576563",
"0.57640755",
"0.57460064",
"0.57204854",
"0.5719258",
"0.56725776",
"0.5661259",
"0.5629084",
"0.56225693",
"0.56167966",
"0.560614",
"0.5600371",
"0.55726916",
"0.55698115",
"0.5558295",
"0.5541128",
"0.5531907",
"0.5525962",
"0.5519875",
"0.5498811",
"0.549785",
"0.5475095",
"0.54704976",
"0.54689205",
"0.5461845",
"0.5456978",
"0.5456978",
"0.5444793",
"0.5439621",
"0.54360676",
"0.54238707",
"0.5419771",
"0.54082036",
"0.5391053",
"0.539004",
"0.5381017",
"0.5378549",
"0.53754807",
"0.53656256",
"0.536226",
"0.53579676",
"0.5345151",
"0.5340662",
"0.53379214",
"0.5319203",
"0.5315634",
"0.53111875",
"0.53101486",
"0.5286963",
"0.5269697",
"0.526752",
"0.52655476",
"0.52654696",
"0.5261557",
"0.5260099",
"0.5259",
"0.52580506",
"0.5255599",
"0.5243427",
"0.5241983",
"0.5236798",
"0.5227549"
] |
0.79566854
|
0
|
Returns the shape minimum height.
|
public double getMinHeight() { Double h = (Double)get("MinHeight"); return h!=null? h : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"abstract public int getMinHeight();",
"public int getMinHeight() {\n checkWidget();\n return minHeight;\n }",
"public double getMinHeight(double aValue) { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public int getLowestNodeHeight()\n {\n if (this.firstNode == null)\n {\n return this.maxHeight;\n }\n else if (this.tailLength == 0)\n {\n return this.firstNodeHeight;\n }\n else\n {\n return Math.min(this.firstNodeHeight, ((Integer)heightOfNodes\n .lastElement()).intValue());\n }\n }",
"public Integer getBodyMinHeight() {\r\n return getAttributeAsInt(\"bodyMinHeight\");\r\n }",
"@Override\n public int getMinimumHeight() {\n return patternDrawable.getMinimumHeight();\n }",
"@VisibleForTesting\n public int getPeekHeightMin() {\n return this.peekHeightMin;\n }",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public double getBaseHeight();",
"public double getHeight();",
"public double getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public Dimension getMinimumSize() {\r\n\t\treturn (this.getPreferredSize());\r\n\t}",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"double getHeight();",
"public float getHeight();",
"public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"long getHeight();",
"public Dimension getMinimumSize() {\n Dimension size = super.getMinimumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }",
"public int getHeight() { return height; }",
"Length getHeight();",
"public int height();",
"public int height();",
"public int height();",
"public int height();",
"public int getHeight() {\n\t\t\treturn 1;\n\t\t}",
"int height();",
"String getHeight();",
"String getHeight();",
"public double getHeight() {\n\t\tdouble height = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn height;\n\t}",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"public int getHeight() {return height;}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public int getHeight(){ return heightRadius; }",
"public int getHeight()\n {\n return height;\n }",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(10, 10);\n\t}",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public int height() {\n\t\treturn 0;\n\t}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public Dimension getMinimumSize()\n\t\t{\n\t\t\treturn getPreferredSize(); // return preferred size\n\t\t}",
"public int getStartHeight() {\r\n return startHeight;\r\n }",
"public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}",
"public int getFirstNodeHeight()\n {\n if (firstNode == null)\n {\n return maxHeight;\n }\n return firstNodeHeight;\n }",
"public int height() {\n if (root == null) {\n return -1;\n } else {\n return getHeight(root, 0);\n }\n }",
"public double getHeight () {\n return height;\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public abstract int getNormalizedHeight();",
"int getHeight() {return height;}",
"public double getHeight() {\n\t\t\treturn height.get();\n\t\t}",
"public double getHeight() {\r\n return height;\r\n }",
"public int getHeight() {\n return height;\n }",
"public final int getHeight(){\n return height_;\n }",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public double getRectHeight() {\n return (hexHeight * 1.5) + 0.5;\n }",
"protected double getMinHeightImpl()\n {\n Insets ins = getInsetsAll();\n double minH = _scroller.getMinHeight();\n return minH + ins.getHeight();\n }",
"public double getHeight() {\n return height;\n }",
"public double getHeight() {\n return height;\n }",
"public int height() {\n return getHeight(root);\n }",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public double slantHeight()\r\n {\r\n double slantHeight = Math.sqrt(Math.pow(height, 2) + Math.pow(radius, 2));\r\n return slantHeight;\r\n }"
] |
[
"0.72943234",
"0.72896737",
"0.70377105",
"0.6950466",
"0.6923338",
"0.68702334",
"0.6800417",
"0.6683467",
"0.6606086",
"0.6562179",
"0.6562179",
"0.6540115",
"0.6540115",
"0.6540115",
"0.6540115",
"0.6540115",
"0.6540115",
"0.65257853",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.647655",
"0.64617306",
"0.64299655",
"0.642214",
"0.63995224",
"0.6396288",
"0.6370613",
"0.6368958",
"0.63663054",
"0.63663054",
"0.63663054",
"0.63663054",
"0.6361379",
"0.6346238",
"0.6345397",
"0.6345397",
"0.6320729",
"0.6308551",
"0.6291059",
"0.62910074",
"0.62893105",
"0.62846154",
"0.6278022",
"0.62723804",
"0.6270323",
"0.62676823",
"0.6265328",
"0.6265328",
"0.6265328",
"0.62553656",
"0.6244073",
"0.62432563",
"0.624251",
"0.623964",
"0.6235059",
"0.62291384",
"0.6225602",
"0.6221661",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6216354",
"0.62152606",
"0.6214451",
"0.6211505",
"0.6211266",
"0.62079006",
"0.6207229",
"0.6207229",
"0.6207229",
"0.6207229",
"0.6204276",
"0.619885",
"0.6198712",
"0.6198712",
"0.61877704",
"0.6180155",
"0.6169064"
] |
0.7876268
|
0
|
Returns the shape minimum height.
|
public double getMinHeight(double aValue) { Double h = (Double)get("MinHeight"); return h!=null? h : 0; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"abstract public int getMinHeight();",
"public int getMinHeight() {\n checkWidget();\n return minHeight;\n }",
"public int getLowestNodeHeight()\n {\n if (this.firstNode == null)\n {\n return this.maxHeight;\n }\n else if (this.tailLength == 0)\n {\n return this.firstNodeHeight;\n }\n else\n {\n return Math.min(this.firstNodeHeight, ((Integer)heightOfNodes\n .lastElement()).intValue());\n }\n }",
"public Integer getBodyMinHeight() {\r\n return getAttributeAsInt(\"bodyMinHeight\");\r\n }",
"@Override\n public int getMinimumHeight() {\n return patternDrawable.getMinimumHeight();\n }",
"@VisibleForTesting\n public int getPeekHeightMin() {\n return this.peekHeightMin;\n }",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public double getBaseHeight();",
"public double getHeight();",
"public double getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public Dimension getMinimumSize() {\r\n\t\treturn (this.getPreferredSize());\r\n\t}",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"double getHeight();",
"public float getHeight();",
"public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"long getHeight();",
"public Dimension getMinimumSize() {\n Dimension size = super.getMinimumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }",
"public int getHeight() { return height; }",
"Length getHeight();",
"public int height();",
"public int height();",
"public int height();",
"public int height();",
"public int getHeight() {\n\t\t\treturn 1;\n\t\t}",
"int height();",
"String getHeight();",
"String getHeight();",
"public double getHeight() {\n\t\tdouble height = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn height;\n\t}",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"public int getHeight() {return height;}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public int getHeight(){ return heightRadius; }",
"public int getHeight()\n {\n return height;\n }",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(10, 10);\n\t}",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public int height() {\n\t\treturn 0;\n\t}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public Dimension getMinimumSize()\n\t\t{\n\t\t\treturn getPreferredSize(); // return preferred size\n\t\t}",
"public int getStartHeight() {\r\n return startHeight;\r\n }",
"public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}",
"public int getFirstNodeHeight()\n {\n if (firstNode == null)\n {\n return maxHeight;\n }\n return firstNodeHeight;\n }",
"public int height() {\n if (root == null) {\n return -1;\n } else {\n return getHeight(root, 0);\n }\n }",
"public double getHeight () {\n return height;\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public abstract int getNormalizedHeight();",
"int getHeight() {return height;}",
"public double getHeight() {\n\t\t\treturn height.get();\n\t\t}",
"public double getHeight() {\r\n return height;\r\n }",
"public int getHeight() {\n return height;\n }",
"public final int getHeight(){\n return height_;\n }",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public static double getOrigHeight() {\n\t\treturn 1.0;\n\t}",
"public double getRectHeight() {\n return (hexHeight * 1.5) + 0.5;\n }",
"protected double getMinHeightImpl()\n {\n Insets ins = getInsetsAll();\n double minH = _scroller.getMinHeight();\n return minH + ins.getHeight();\n }",
"public double getHeight() {\n return height;\n }",
"public double getHeight() {\n return height;\n }",
"public int height() {\n return getHeight(root);\n }",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public double slantHeight()\r\n {\r\n double slantHeight = Math.sqrt(Math.pow(height, 2) + Math.pow(radius, 2));\r\n return slantHeight;\r\n }"
] |
[
"0.7876268",
"0.72943234",
"0.72896737",
"0.6950466",
"0.6923338",
"0.68702334",
"0.6800417",
"0.6683467",
"0.6606086",
"0.6562179",
"0.6562179",
"0.6540115",
"0.6540115",
"0.6540115",
"0.6540115",
"0.6540115",
"0.6540115",
"0.65257853",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.65028125",
"0.647655",
"0.64617306",
"0.64299655",
"0.642214",
"0.63995224",
"0.6396288",
"0.6370613",
"0.6368958",
"0.63663054",
"0.63663054",
"0.63663054",
"0.63663054",
"0.6361379",
"0.6346238",
"0.6345397",
"0.6345397",
"0.6320729",
"0.6308551",
"0.6291059",
"0.62910074",
"0.62893105",
"0.62846154",
"0.6278022",
"0.62723804",
"0.6270323",
"0.62676823",
"0.6265328",
"0.6265328",
"0.6265328",
"0.62553656",
"0.6244073",
"0.62432563",
"0.624251",
"0.623964",
"0.6235059",
"0.62291384",
"0.6225602",
"0.6221661",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6217501",
"0.6216354",
"0.62152606",
"0.6214451",
"0.6211505",
"0.6211266",
"0.62079006",
"0.6207229",
"0.6207229",
"0.6207229",
"0.6207229",
"0.6204276",
"0.619885",
"0.6198712",
"0.6198712",
"0.61877704",
"0.6180155",
"0.6169064"
] |
0.70377105
|
3
|
Sets the shape minimum height.
|
public void setMinHeight(double aHeight)
{
double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;
firePropertyChange("MinHeight", put("MinHeight", h), h, -1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setMinHeight(final Integer value) {\n minHeight = value.intValue();\n }",
"public void setMinHeight(float minHeight) {\n this.minHeight = minHeight;\n }",
"public void setMinimumSize( int width, int height ) {\n checkWidget();\n Point point = parent.fixPoint( width, height );\n minimumWidth = point.x;\n minimumHeight = point.y;\n }",
"public void setMinHeight(int minHeight) throws InvalidFlightPlanException {\n\t}",
"public void setMinHeight(int height) {\n setMinSize(minWidth, height);\n }",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"void setContentMinHeight(String minHeight);",
"public void setMinimumSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setMinimumSize( size.x, size.y );\n }",
"public void setHeight(int h){ heightRadius = h; }",
"public void setHeight(int value) {\n this.height = value;\n }",
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public void setHeight(double value) {\n this.height = value;\n }",
"public void setHeight(int h)\n {\n height = h;\n }",
"public void setHeight(int height);",
"public void setHeight(int height);",
"@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}",
"public void setBodyMinHeight(Integer bodyMinHeight) {\r\n setAttribute(\"bodyMinHeight\", bodyMinHeight, true);\r\n }",
"public int getMinHeight() {\n checkWidget();\n return minHeight;\n }",
"@Override\n public int getMinimumHeight() {\n return patternDrawable.getMinimumHeight();\n }",
"abstract public int getMinHeight();",
"public void setHeight(int h) {\n this.H = h;\n }",
"private void setHeight(long value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n }",
"void setHeight(int height);",
"void setHeight(int height);",
"void setFitHeight(short height);",
"public void setHeight(double h) {\n\t\t\theight.set(clamp(h, HEIGHT_MIN, HEIGHT_MAX));\n\t\t}",
"public void setHeight(int l){\n \theight = l;\n }",
"public void setMinSize(Point size) {\n if (size == null) {\n setMinSize(0, 0);\n } else {\n setMinSize(size.x, size.y);\n }\n }",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"void setHeight(VariableAmount height);",
"public Dimension getMinimumSize() {\n Dimension size = super.getMinimumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }",
"public boolean isMinHeightSet() { return get(\"MinHeight\")!=null; }",
"public void setBestHeight() { setHeight(getBestHeight()); }",
"public void setMinSize(int width, int height) {\n checkWidget();\n if (width == minWidth && height == minHeight)\n return;\n minWidth = Math.max(0, width);\n minHeight = Math.max(0, height);\n layout(false);\n }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }",
"public void setMinimumSize(float width, float height) {\n this.minimumWidth = width;\n this.minimumHeight = height;\n\n this.hudView.setMinimumWidth(Utils.dp2px(activity, this.minimumWidth));\n this.hudView.setMinimumHeight(Utils.dp2px(activity, this.minimumHeight));\n }",
"public void setHeight(double height){\n h=height;\r\n }",
"public void setHeight(int newValue)\n {\n height = newValue;\n }",
"public void setPreferredSize( int width, int height ) {\n checkWidget();\n ideal = true;\n Point point = parent.fixPoint( width, height );\n preferredWidth = Math.max( point.x, MINIMUM_WIDTH );\n preferredHeight = point.y;\n }",
"public void setHeight(float height) {\n this.yRadius = 0.5f * height;\n }",
"@Override\n\tpublic void setHeight(float height) {\n\n\t}",
"public Integer getBodyMinHeight() {\r\n return getAttributeAsInt(\"bodyMinHeight\");\r\n }",
"@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}",
"public double getMinHeight(double aValue) { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}",
"@Override\n\tpublic void setHeightInPoints(float arg0) {\n\t\t\n\t}",
"public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }",
"private void setHeight(float height){\n this.height = height;\n }",
"public void setHeight(double height) {\n this.height = height;\n }",
"public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }",
"public void setMin ( Point min ) {\r\n\r\n\tsetA ( min );\r\n }",
"public void setHeight (int height) {\n if (height < 10) {\n Log.warning(\"Attempted to set a checkbox height of less than 10 pixels.\");\n return;\n }\n\n synchronized (this) {\n this.height = height;\n }\n }",
"public void setHeight(int newValue) {\n seatHeight = newValue;\n }",
"protected final void setSize(float width, float height)\n {\n boolean flag = this.bokoblinWidth > 0.0F && this.bokoblinHeight > 0.0F;\n this.bokoblinWidth = width;\n this.bokoblinHeight = height;\n\n if (!flag)\n {\n this.multiplySize(1.0F);\n }\n }",
"public Dimension getMinimumSize() {\r\n\t\treturn (this.getPreferredSize());\r\n\t}",
"@Override\r\n public Dimension getMinimumSize() {\r\n \t// get current minimum size\r\n \tDimension d = isMinimumSizeSet() ? super.getMinimumSize() : new Dimension(0,0);\r\n // forward\r\n return isExpanded() ?\r\n (isMinimumSizeSet() ? new Dimension(d.width, minimumCollapsedHeight>d.height ? minimumCollapsedHeight : d.height) : new Dimension(0,minimumCollapsedHeight)) :\r\n (isMinimumSizeSet() ? new Dimension(d.width,minimumCollapsedHeight) : new Dimension(0,minimumCollapsedHeight));\r\n }",
"public void setMinimum(Number min) {\n this.min = min;\n }",
"public void setHeight(double height) {\r\n this.height = height;\r\n }",
"@Override\r\n public Dimension getMinimumSize() {\r\n return getPreferredSize();\r\n }",
"@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"public void setHeight(final String value)\n {\n height = value;\n }",
"public void setMin( float min )\n {\n this.min = min;\n show_text();\n }",
"public X minimumSize(Dimension min) {\n component.setMinimumSize(min);\n return (X) this;\n }",
"@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(450, 300);\r\n\t}",
"public void setSize(float width, float height);",
"Integer getDefaultHeight();",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(10, 10);\n\t}",
"public void setHeight(int height) {\n this.height = height;\n }",
"@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 300);\n\t}",
"@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 300);\n\t}",
"public void setHeight(double height) {\n this.height = height;\n }",
"@VisibleForTesting\n public int getPeekHeightMin() {\n return this.peekHeightMin;\n }",
"public void setHeight(Short height) {\r\n this.height = height;\r\n }",
"@Override\n\tpublic Point getMinSize() {\n\t\treturn Parameter.SPRITE_MIN_SIZE;\n\t}",
"public DynamicPart min(float min) {\n this.min = min;\n return this;\n }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void configure(T aView) { aView.setMinSize(120,60); }",
"public void determineMaximumHeight() {\n\t\tthis.setMaximumHeight(maxDepth(root));\n\t}",
"public void setHeight(int height) {\r\n this.height = height;\r\n }",
"@Override\r\n public void setHeight(String height) {\n }",
"public void configure(T aView) { aView.setMinSize(100,60); }",
"public void configure(T aView) { aView.setMinSize(100,60); }",
"@Override\n public Dimension getMinimumSize()\n {\n return getPreferredSize();\n }",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"public void setHeight(int inches) {\n if (inches >= 24 && inches <= 84)\n this.height = inches;\n }",
"public void setMinWidth(int width) {\n setMinSize(width, minHeight);\n }",
"@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 270);\n\t}",
"public void setMinSize(int size) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n minSize = size;\n if (maxSize != 0 && minSize > maxSize) {\n maxSize = minSize;\n log.warn(\"pool max size set to \" + maxSize + \" to stay >= min size\");\n }\n }",
"public void setMaximizing() {\r\n maximizing = true;\r\n }",
"public void configure(T aView) { aView.setMinSize(80,22); }",
"public void setPreferredSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setPreferredSize( size.x, size.y );\n }",
"public void setHeight(int height) {\n if(height < 0) throw new NegativeSizeException(\"Negative height\"); \n \tthis.height = height;\n }",
"public void setBrushSize(float newSize) {\n float pixelAmount = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,\n newSize, getResources().getDisplayMetrics());\n brushSize = newSize;\n Log.i(LOG_TAG, \"Brush size: \" + newSize + \" pizel Amount:\" + pixelAmount);\n drawPaint = new Paint();\n drawPath.setPaint(drawPaint);\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n\n }"
] |
[
"0.70791465",
"0.7055333",
"0.69244087",
"0.6772853",
"0.6618934",
"0.64819574",
"0.6285134",
"0.6213639",
"0.6155847",
"0.60739547",
"0.60685974",
"0.60653645",
"0.5993444",
"0.59777266",
"0.59777266",
"0.5973973",
"0.5939943",
"0.592894",
"0.59254295",
"0.59247833",
"0.5923227",
"0.5900965",
"0.5866339",
"0.5866339",
"0.58575505",
"0.58505446",
"0.5798901",
"0.5793893",
"0.5778904",
"0.57758623",
"0.5759625",
"0.5756911",
"0.5752966",
"0.574992",
"0.5698956",
"0.5686369",
"0.5646188",
"0.56289077",
"0.5620198",
"0.5604915",
"0.5568187",
"0.55245703",
"0.5516002",
"0.54775304",
"0.5467857",
"0.54614365",
"0.543976",
"0.5400899",
"0.539989",
"0.53941756",
"0.5382897",
"0.53780097",
"0.5373731",
"0.53683555",
"0.534459",
"0.5344009",
"0.53432256",
"0.5301326",
"0.53008413",
"0.5293416",
"0.5283355",
"0.528059",
"0.5275503",
"0.5275458",
"0.52695376",
"0.526914",
"0.52649206",
"0.5254377",
"0.5243447",
"0.52418023",
"0.52381754",
"0.5233991",
"0.5233991",
"0.5227257",
"0.5215346",
"0.5194247",
"0.51844114",
"0.51809555",
"0.5171039",
"0.5171039",
"0.5171039",
"0.5171039",
"0.5171039",
"0.5171039",
"0.51689005",
"0.51610744",
"0.51583266",
"0.5154314",
"0.5154314",
"0.5147563",
"0.5146216",
"0.51377827",
"0.5134166",
"0.51114833",
"0.51097214",
"0.51078075",
"0.5104744",
"0.51010734",
"0.5099909",
"0.5098963"
] |
0.6348263
|
6
|
Sets the shape minimum size.
|
public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setMinimumSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setMinimumSize( size.x, size.y );\n }",
"public void setMinSize(Point size) {\n if (size == null) {\n setMinSize(0, 0);\n } else {\n setMinSize(size.x, size.y);\n }\n }",
"public void setMinimumSize( int width, int height ) {\n checkWidget();\n Point point = parent.fixPoint( width, height );\n minimumWidth = point.x;\n minimumHeight = point.y;\n }",
"public void setMinsize(int minsize) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}",
"public void setMinSize(int size) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n minSize = size;\n if (maxSize != 0 && minSize > maxSize) {\n maxSize = minSize;\n log.warn(\"pool max size set to \" + maxSize + \" to stay >= min size\");\n }\n }",
"public X minimumSize(Dimension min) {\n component.setMinimumSize(min);\n return (X) this;\n }",
"public void setMinWidth(int width) {\n setMinSize(width, minHeight);\n }",
"public Point getMinimumSize() {\n checkWidget();\n return parent.fixPoint( minimumWidth, minimumHeight );\n }",
"public Dimension getMinimumSize() {\n\t\treturn new Dimension(10, 10);\n\t}",
"public void setMinWidth(float minWidth) {\n this.minWidth = minWidth;\n }",
"public void setMin ( Point min ) {\r\n\r\n\tsetA ( min );\r\n }",
"public void setMinSplitSize(int size) {\n minSplitSize = size;\n }",
"public void setMinWidth(final Integer value) {\n minWidth = value.intValue();\n }",
"public void setMinimum(Number min) {\n ((ADocument) getDocument()).setMinimum(min);\n }",
"public int getMinSize() {\n return minSize;\n }",
"public static void setMinSplitSize(JobConf conf, long minSize) {\n conf.setLong(\"table.input.split.minSize\", minSize);\n }",
"@Override\n\tpublic Point getMinSize() {\n\t\treturn Parameter.SPRITE_MIN_SIZE;\n\t}",
"public void setMinSpringSize(float minSpringSize) {\r\n\t\tthis.minSpringSize = minSpringSize;\r\n\t\tspringSize = springSize < minSpringSize ? minSpringSize : springSize;\r\n\t}",
"public void setMinimum(Number min) {\n this.min = min;\n }",
"public Dimension getMinimumSize() {\r\n\t\treturn (this.getPreferredSize());\r\n\t}",
"protected \tvoid\t\tcalcMinimumSize(MiSize size)\n\t\t{\n\t\tsuper.calcMinimumSize(size);\n\n\t\tMiDistance labelWidths = 0;\n\t\tMiDistance tickWidth = minNumTicks * ticks.getWidth() + (minNumTicks - 1) * tickSpacing;\n\n\t\tif (label != null)\n\t\t\tlabelWidths = label.getWidth();\n\t\tif (valueDisplay != null)\n\t\t\tlabelWidths += valueDisplay.getWidth();\n\t\tif (tickWidth < labelWidths)\n\t\t\tsize.width += labelWidths;\n\t\telse\n\t\t\tsize.width += tickWidth;\n\n\t\tsize.height += ticks.getHeight();\n\t\t}",
"public boolean setShapeSize(DimensionF shapeSize) {\n if (ObjectUtils.equals(this.shapeSize, shapeSize))\n return false;\n this.shapeSize = shapeSize;\n return true;\n }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"public Dimension getMinimumSize() {\n Dimension size = super.getMinimumSize();\n size.height = super.getPreferredSize().height;\n return size;\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"@Override\n public Dimension getMinimumSize() {\n final Dimension size;\n synchronized (getDelegateLock()) {\n size = getDelegate().getMinimumSize();\n }\n return validateSize(size);\n }",
"public void setMin(int min) {\n this.min = min;\n }",
"public void setMin(int min) {\n this.min = min;\n }",
"public void setMinMagnitude(double magnitude);",
"@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}",
"public void setMin(Vect3d min) {\r\n this.min = min;\r\n }",
"@Override\r\n public Dimension getMinimumSize() {\r\n return getPreferredSize();\r\n }",
"public void setMinVolumeSize(java.lang.Long minVolumeSize) {\r\n this.minVolumeSize = minVolumeSize;\r\n }",
"@Override\n\tpublic int getMinSizeX()\n\t{\n\t\treturn 50;\n\t}",
"public void _setMin(float min)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMinimum((int) (min * 100));\r\n } else\r\n {\r\n setMinimum((int) min);\r\n }\r\n }",
"public void setMinHeight(final Integer value) {\n minHeight = value.intValue();\n }",
"public Dimension getMinimumSize()\n\t\t{\n\t\t\treturn getPreferredSize(); // return preferred size\n\t\t}",
"public void setSize(int size) {\r\n _size = size;\r\n }",
"public void setMinHeight(int minHeight) throws InvalidFlightPlanException {\n\t}",
"public void setMinSize(int width, int height) {\n checkWidget();\n if (width == minWidth && height == minHeight)\n return;\n minWidth = Math.max(0, width);\n minHeight = Math.max(0, height);\n layout(false);\n }",
"public void setMinHeight(float minHeight) {\n this.minHeight = minHeight;\n }",
"public void setSize(int size) {\r\n this.size = size;\r\n }",
"public void setSize(int _size)\r\n {\r\n size = _size;\r\n }",
"public void setSize(Dimension size) {\r\n this.size = size;\r\n }",
"public void setMinWidth(float minWidth) {\n mMinWidth = convertDpToPx(minWidth);\n }",
"public void set_min(byte value) {\n setSIntBEElement(offsetBits_min(), 8, value);\n }",
"public void setSize(double size) \n {\n this.size = size;\n }",
"public void setMin( float min )\n {\n this.min = min;\n show_text();\n }",
"@Override\r\n public Dimension getMinimumSize() {\r\n \t// get current minimum size\r\n \tDimension d = isMinimumSizeSet() ? super.getMinimumSize() : new Dimension(0,0);\r\n // forward\r\n return isExpanded() ?\r\n (isMinimumSizeSet() ? new Dimension(d.width, minimumCollapsedHeight>d.height ? minimumCollapsedHeight : d.height) : new Dimension(0,minimumCollapsedHeight)) :\r\n (isMinimumSizeSet() ? new Dimension(d.width,minimumCollapsedHeight) : new Dimension(0,minimumCollapsedHeight));\r\n }",
"public void setMinWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getMinWidth()) return;\n firePropertyChange(\"MinWidth\", put(\"MinWidth\", w), w, -1);\n}",
"private Dimension checkMin(Dimension preferredSize, Dimension minimumSize) {\n\t\tif (minimumSize == null) {\n\t\t\treturn preferredSize;\n\t\t}\n\t\treturn new Dimension(Math.max(preferredSize.width, minimumSize.width),\n\t\t\t\tMath.max(preferredSize.height, minimumSize.height));\n\t}",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setBestSize() { setSize(getBestWidth(), getBestHeight()); }",
"public void setMinimumValue (double min) {\r\n\t\tminValue = new Double(min);\r\n\t\tvalidateMin = (minValue.compareTo(DOUBLE_ZERO) != 1);\r\n\t}",
"@Override\n public Dimension getMinimumSize()\n {\n return getPreferredSize();\n }",
"public void setMin(int min)\n\t{\n\t\tif (min < 0)\n\t\t\tthrow new IllegalArgumentException(\"min < 0\");\n\t\tthis.min = min;\n\t}",
"@Override\r\n public void setPreferredSize(Dimension preferredSize) {\r\n int min = min(preferredSize.width, preferredSize.height);\r\n super.setPreferredSize(new Dimension(min, min));\r\n }",
"public void setSize(int size){\n this.size = size;\n }",
"public void setMaxSize(int size) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n maxSize = size;\n if (maxSize != 0 && minSize > maxSize) {\n minSize = maxSize;\n log.warn(\"pool min size set to \" + minSize + \" to stay <= max size\");\n }\n }",
"private void setMin(int min) { this.min = new SimplePosition(false,false,min); }",
"public void setMinimumPoint(BlockVector pt) {\r\n setMinMaxPoints(pt, this.getMaximumPoint());\r\n }",
"public void setarXmin(double xmin) {\n\t\tthis.xmin = xmin;\n\t}",
"@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(320, 204);\r\n\t}",
"@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 300);\n\t}",
"@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 300);\n\t}",
"public void setMinimumSize(float width, float height) {\n this.minimumWidth = width;\n this.minimumHeight = height;\n\n this.hudView.setMinimumWidth(Utils.dp2px(activity, this.minimumWidth));\n this.hudView.setMinimumHeight(Utils.dp2px(activity, this.minimumHeight));\n }",
"@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(450, 300);\r\n\t}",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setInitialStepSize(final T initialStepSize) {\n if (initialStepSize.subtract(minStep).getReal() < 0 ||\n initialStepSize.subtract(maxStep).getReal() > 0) {\n initialStep = getField().getOne().negate();\n } else {\n initialStep = initialStepSize;\n }\n }",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setMinWeight(double inMinWeight) {\n minWeight = inMinWeight;\n }",
"public void setSize(int size) {\n\t\t _size = size;\n\t}",
"public void setSizeModifier(Dimension size) {\n\t\tthis.size = size;\n\t}",
"public void setPreferredSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setPreferredSize( size.x, size.y );\n }",
"@Generated\n @Selector(\"setMinimumRadius:\")\n public native void setMinimumRadius(@NFloat double value);",
"public void setMinQuantity(BigDecimal minQuantity) {\n this._minQuantity = minQuantity;\n }",
"public Dimension getMinimumSize()\n {\n return getPreferredSize();\n }",
"public void setSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setSize( size.x, size.y );\n }",
"public Dimension getMinimumSize()\r\n {\r\n return getPreferredSize();\r\n }",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"public void setMinimumValue (Double min) {\r\n\t\tminValue = min;\r\n\t\tvalidateMin = (minValue.compareTo(DOUBLE_ZERO) != 1);\r\n\t}",
"public void setSize(Integer size) {\n this.size = size;\n }",
"public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }",
"@Override\n\tpublic void setSize(float size) {\n\t\tthis.size = size;\n\t\trxs = new int [ Math.max(Math.round(size/calibration[0]), Math.round(size/calibration[1])) + 1 ];\t\t\n\t\treset();\n\t}",
"public void setSize(int size){\n\t\tthis.shipSize = size;\n\t}",
"public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}",
"public void setMinimumValue(double minimumValue)\n {\n this.minimumValue = minimumValue;\n }",
"public DynamicPart min(float min) {\n this.min = min;\n return this;\n }",
"public void setBodyMinWidth(Integer bodyMinWidth) {\r\n setAttribute(\"bodyMinWidth\", bodyMinWidth, true);\r\n }",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"public void setXpeQtyMin(BigDecimal value) {\n setAttributeInternal(XPEQTYMIN, value);\n }",
"public void setMinimalRadius(double minimalRadius) {\n\t\tminimalRadiusProperty().setValue(minimalRadius);\n\t}",
"public void setSizeratio(Number value) {\n setAttributeInternal(SIZERATIO, value);\n }",
"public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}",
"public void setSize(int size);",
"@Override\n protected Point getInitialSize() {\n return new Point(450, 504);\n }"
] |
[
"0.7609948",
"0.7308772",
"0.72962797",
"0.6876542",
"0.68183744",
"0.6805062",
"0.6607376",
"0.63896966",
"0.6387739",
"0.6305157",
"0.6302893",
"0.62911445",
"0.62873125",
"0.6286052",
"0.6281228",
"0.62278545",
"0.62199944",
"0.6214657",
"0.6178472",
"0.6157737",
"0.6133022",
"0.6112432",
"0.6098418",
"0.60449016",
"0.5990616",
"0.59625906",
"0.5959288",
"0.5959288",
"0.5959262",
"0.59502727",
"0.59496164",
"0.5916566",
"0.589959",
"0.5895565",
"0.5886894",
"0.5872827",
"0.58713007",
"0.5866511",
"0.5859389",
"0.58565015",
"0.5843767",
"0.58328944",
"0.5826782",
"0.5826291",
"0.5824816",
"0.5823369",
"0.58168083",
"0.58157915",
"0.5815731",
"0.5810557",
"0.58059895",
"0.577204",
"0.577204",
"0.5763275",
"0.57585746",
"0.5750762",
"0.5749351",
"0.57407594",
"0.57237357",
"0.57193977",
"0.57178634",
"0.5717046",
"0.57165664",
"0.5709662",
"0.5704684",
"0.5704684",
"0.5703729",
"0.570293",
"0.5695339",
"0.5691262",
"0.5691001",
"0.5691001",
"0.5691001",
"0.5691001",
"0.56862634",
"0.56854045",
"0.5684554",
"0.5683487",
"0.5683198",
"0.5679397",
"0.56777686",
"0.5675714",
"0.56738067",
"0.5664901",
"0.5657342",
"0.5651257",
"0.5649925",
"0.56415975",
"0.5640878",
"0.56349695",
"0.56289446",
"0.5626924",
"0.562415",
"0.56218547",
"0.56033117",
"0.5597824",
"0.55967635",
"0.5596171",
"0.5590078",
"0.5584311"
] |
0.69813913
|
3
|
Returns whether shape preferred width is set.
|
public boolean isPrefWidthSet() { return get("PrefWidth")!=null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isSetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(WIDTH$20) != null;\n }\n }",
"public boolean isMinWidthSet() { return get(\"MinWidth\")!=null; }",
"boolean hasWidth();",
"boolean hasWidth();",
"boolean hasWidth();",
"@java.lang.Override\n public boolean hasWidth() {\n return instance.hasWidth();\n }",
"public boolean isSetImgWidth() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGWIDTH_ISSET_ID);\n }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"@java.lang.Override\n public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"@Override\n\tpublic boolean canResizeShape(IResizeShapeContext context) {\n\t\treturn false;\n\t}",
"public boolean setWidth(double width){\n if (width <= 0.0) return false;\n this.width = width;\n return true;\n }",
"public boolean isSuggestAspectRatioEnabled() {\n return mSuggestAspectRatioEnabled;\n }",
"abstract public int getMinWidth();",
"public boolean isCorrectSize(int height, int width);",
"public static boolean isResizable() {\n return clientAccessor().isResizableMode();\n }",
"public boolean isShapeMasked() {\n return this.shapeMasked;\n }",
"@Override\r\n public boolean isWellKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isWellKnown();\r\n }",
"public boolean setShapeSize(DimensionF shapeSize) {\n if (ObjectUtils.equals(this.shapeSize, shapeSize))\n return false;\n this.shapeSize = shapeSize;\n return true;\n }",
"@Test\n\t\tpublic void isWidth() {\n\t\t\tint expected = 7;\n\t\t\tint actual = game.getWidthAcross();\n\t\t\t\n\t\t\tassertEquals(expected, actual);\n\t\t}",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean isMinHeightSet() { return get(\"MinHeight\")!=null; }",
"public boolean isFixedWidth() throws PDFNetException {\n/* 561 */ return IsFixedWidth(this.a);\n/* */ }",
"public double getPrefWidth() { return getPrefWidth(-1); }",
"@Nullable\n public DpProp getWidth() {\n if (mImpl.hasWidth()) {\n return DpProp.fromProto(mImpl.getWidth());\n } else {\n return null;\n }\n }",
"protected boolean calculateSize()\n\t{\n\t\tp_height = 0;\n\t\tfor (int r = 0; r < m_rows; r++)\n\t\t{\n\t\t\tp_height += m_rowHeight[r];\n\t\t\tif (m_rowHeight[r] > 0)\n\t\t\t\tp_height += m_rowGap;\n\t\t}\n\t\tp_height -= m_rowGap;\t//\tremove last\n\t\tp_width = 0;\n\t\tfor (int c = 0; c < m_cols; c++)\n\t\t{\n\t\t\tp_width += m_colWidth[c];\n\t\t\tif (m_colWidth[c] > 0)\n\t\t\t\tp_width += m_colGap;\n\t\t}\n\t\tp_width -= m_colGap;\t\t//\tremove last\n\t\treturn true;\n\t}",
"Integer getDefaultWidth();",
"public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}",
"public double getMinWidth() { return getMinWidth(-1); }",
"public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }",
"public int getDesiredWidth() {\n return mDesiredWidth;\n }",
"short getFitWidth();",
"@objid (\"7f09cb82-1dec-11e2-8cad-001ec947c8cc\")\n public boolean allowsResize() {\n return true;\n }",
"public int getWidth() {\n return width_;\n }",
"public final int getWidth(){\n return width_;\n }",
"public boolean isFillWidth() { return _scroller.isFillWidth(); }",
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public boolean getResized()\n {\n return resized;\n }",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"@Test\r\n\tpublic void testWidth() {\r\n\t\tassertEquals(WIDTH, validRectangle.width());\r\n\t}",
"public boolean isSizeFixed() {\n return !(this.size.width < 0 && this.size.height < 0);\n }",
"public float getMinWidth() {\r\n return width.min;\r\n }",
"public boolean isSizeFixed ( ) {\r\n\t\treturn (radius_mag_dependent == false);\r\n\t}",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"public int getWidth() {\n return width_;\n }",
"public java.lang.String getWidth()\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(WIDTH$20);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"@Override\r\n public boolean isClef ()\r\n {\r\n return ShapeSet.Clefs.contains(getShape());\r\n }",
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public boolean hasPolygonsCount() {\n return polygonsCountBuilder_ != null || polygonsCount_ != null;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public int grWidth() { return width; }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\tif(!(width>0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: height>0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tgetDelegate().setWidth(width);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// pos: getHeight()==height\r\n\t\tif(!(getWidth()==width))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getWidth()==width\");\r\n\r\n\t}",
"public int getWidth()\n {return width;}",
"public int getWidth()\n {\n return width;\n }",
"protected abstract boolean isShapeSimple();",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public abstract int layoutWidth();",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}",
"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 int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public String getWidth() {\r\n if (width != null) {\r\n return width;\r\n }\r\n ValueBinding vb = getValueBinding(\"width\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) :\r\n DEFAULT_WIDTH;\r\n }",
"int getWidth() {return width;}",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"protected boolean isSizeable() {\r\n return sizeable;\r\n }",
"@java.lang.Override\n public boolean hasPolygonsCount() {\n return polygonsCount_ != null;\n }",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public boolean isSetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(BORDER$22) != null;\n }\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"public int getWidth()\n {\n\treturn width;\n }"
] |
[
"0.73125833",
"0.7131746",
"0.69623715",
"0.69623715",
"0.69623715",
"0.6641205",
"0.65967566",
"0.6545454",
"0.6508417",
"0.5969808",
"0.5914661",
"0.5782729",
"0.57542706",
"0.57341635",
"0.57208174",
"0.57048285",
"0.56865686",
"0.5653471",
"0.56452465",
"0.5629265",
"0.5579634",
"0.5569671",
"0.55395615",
"0.55395615",
"0.55173784",
"0.55137795",
"0.55131483",
"0.54844064",
"0.54732674",
"0.546537",
"0.545988",
"0.5431496",
"0.5417686",
"0.5390897",
"0.5389205",
"0.5385558",
"0.5363757",
"0.53519803",
"0.53497994",
"0.53427976",
"0.5333571",
"0.5333571",
"0.531818",
"0.53171206",
"0.53171206",
"0.53100103",
"0.53067726",
"0.5302585",
"0.5299747",
"0.52753776",
"0.527434",
"0.52704394",
"0.526826",
"0.526826",
"0.526826",
"0.526826",
"0.5264124",
"0.52567583",
"0.52441365",
"0.52441365",
"0.52441365",
"0.52344143",
"0.52278304",
"0.5223459",
"0.5218654",
"0.52138484",
"0.52029836",
"0.5202866",
"0.5202797",
"0.5202797",
"0.5202797",
"0.51992404",
"0.51885444",
"0.51835185",
"0.51835185",
"0.5181403",
"0.5178934",
"0.5177077",
"0.51747185",
"0.51689357",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166703",
"0.5166139",
"0.51608026",
"0.51535416",
"0.51535416",
"0.51532185",
"0.5151312",
"0.5149498"
] |
0.7360783
|
0
|
Returns the shape preferred width.
|
public double getPrefWidth() { return getPrefWidth(-1); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public double getWidth();",
"public double getWidth();",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"String getWidth();",
"String getWidth();",
"public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public final int getWidth(){\n return width_;\n }",
"public int getPreferredWidth() \n {\n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getAdvance( m_text ) + HMARGIN;\n }",
"public int getWidth() {\n return width_;\n }",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public String getWidth() {\n return width;\n }",
"public double getWidth()\n {\n return width;\n }",
"public double getWidth()\r\n {\r\n return width;\r\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public double getWidth () {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"Length getWidth();",
"public double getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"@Nullable\n public DpProp getWidth() {\n if (mImpl.hasWidth()) {\n return DpProp.fromProto(mImpl.getWidth());\n } else {\n return null;\n }\n }",
"public Integer getWidth() {\n\t\t\treturn width;\n\t\t}",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public float getWidth();",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() \n\t{\n\t\treturn width;\n\t}",
"public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public double getWidth() {\r\n\t\treturn width;\r\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public int getDesiredWidth() {\n return mDesiredWidth;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"double getWidth();",
"double getWidth();",
"public int getWidth() {\n return type.getWidth();\n }",
"public final int getWidth() {\r\n return width;\r\n }",
"public float getWidth() {\n\treturn widthRatio;\n }",
"long getWidth();",
"public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn width;\n\t}",
"@java.lang.Override\n public long getWidth() {\n return width_;\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] |
[
"0.717539",
"0.71318305",
"0.71318305",
"0.710873",
"0.7106845",
"0.7106845",
"0.7099623",
"0.7067367",
"0.7067367",
"0.70673585",
"0.70592713",
"0.70478415",
"0.70367515",
"0.70367515",
"0.70367515",
"0.70334756",
"0.7028258",
"0.7020721",
"0.69953763",
"0.69938517",
"0.6974143",
"0.6969738",
"0.69659144",
"0.695663",
"0.695663",
"0.695511",
"0.6953679",
"0.6952088",
"0.6952088",
"0.6952088",
"0.69520444",
"0.69520444",
"0.69520444",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69399697",
"0.6937913",
"0.69240695",
"0.6921925",
"0.6917908",
"0.6917908",
"0.69174385",
"0.69168437",
"0.6914728",
"0.691348",
"0.691348",
"0.6911999",
"0.69028234",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.68983656",
"0.6895499",
"0.6893471",
"0.6893471",
"0.68929785",
"0.68891555",
"0.68891555",
"0.68891555",
"0.68884087",
"0.68841517",
"0.68793905",
"0.68793905",
"0.687687",
"0.68724734",
"0.68709016",
"0.68690234",
"0.6866627",
"0.68647474",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373"
] |
0.0
|
-1
|
Returns the shape preferred width.
|
public double getPrefWidth(double aValue)
{
Double v = (Double)get("PrefWidth"); if(v!=null) return v;
return computePrefWidth(-1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public double getWidth();",
"public double getWidth();",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"String getWidth();",
"String getWidth();",
"public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width_;\n }",
"public double getWidth() {\n\t\t\treturn width.get();\n\t\t}",
"public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public final int getWidth(){\n return width_;\n }",
"public int getPreferredWidth() \n {\n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getAdvance( m_text ) + HMARGIN;\n }",
"public int getWidth() {\n return width_;\n }",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public String getWidth() {\n return width;\n }",
"public double getWidth()\n {\n return width;\n }",
"public double getWidth()\r\n {\r\n return width;\r\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public double getWidth () {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public double getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"Length getWidth();",
"public double getWidth() {\r\n return width;\r\n }",
"public int getWidth() {\r\n return width;\r\n }",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"@Nullable\n public DpProp getWidth() {\n if (mImpl.hasWidth()) {\n return DpProp.fromProto(mImpl.getWidth());\n } else {\n return null;\n }\n }",
"public Integer getWidth() {\n\t\t\treturn width;\n\t\t}",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public int getWidth()\n\t{\n\t\treturn width;\n\t}",
"public float getWidth();",
"public int getWidth() {\n\t\treturn width;\r\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() {\n\t\treturn width;\n\t}",
"public int getWidth() \n\t{\n\t\treturn width;\n\t}",
"public int getWidthWeight()\n {\n int ret = 1;\n if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH.value())) {\n ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH.value()));\n }\n return ret;\n }",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn width;\r\n\t}",
"public double getWidth() {\r\n\t\treturn width;\r\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public double getWidth() {\n\t\treturn width;\n\t}",
"public int getDesiredWidth() {\n return mDesiredWidth;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"double getWidth();",
"double getWidth();",
"public int getWidth() {\n return type.getWidth();\n }",
"public final int getWidth() {\r\n return width;\r\n }",
"public float getWidth() {\n\treturn widthRatio;\n }",
"long getWidth();",
"public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn width;\n\t}",
"@java.lang.Override\n public long getWidth() {\n return width_;\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] |
[
"0.717539",
"0.71318305",
"0.71318305",
"0.710873",
"0.7106845",
"0.7106845",
"0.7099623",
"0.7067367",
"0.7067367",
"0.70673585",
"0.70592713",
"0.70478415",
"0.70367515",
"0.70367515",
"0.70367515",
"0.70334756",
"0.7028258",
"0.7020721",
"0.69953763",
"0.69938517",
"0.6974143",
"0.6969738",
"0.69659144",
"0.695663",
"0.695663",
"0.695511",
"0.6953679",
"0.6952088",
"0.6952088",
"0.6952088",
"0.69520444",
"0.69520444",
"0.69520444",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69489133",
"0.69399697",
"0.6937913",
"0.69240695",
"0.6921925",
"0.6917908",
"0.6917908",
"0.69174385",
"0.69168437",
"0.6914728",
"0.691348",
"0.691348",
"0.6911999",
"0.69028234",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.69000155",
"0.68983656",
"0.6895499",
"0.6893471",
"0.6893471",
"0.68929785",
"0.68891555",
"0.68891555",
"0.68891555",
"0.68884087",
"0.68841517",
"0.68793905",
"0.68793905",
"0.687687",
"0.68724734",
"0.68709016",
"0.68690234",
"0.6866627",
"0.68647474",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373",
"0.68643373"
] |
0.0
|
-1
|
Sets the shape preferred width.
|
public void setPrefWidth(double aWidth)
{
double w = aWidth<=0? 0 : aWidth; if(w==getPrefWidth()) return;
firePropertyChange("PrefWidth", put("PrefWidth", w), w, -1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setWidth(int w) {\n this.width = w;\n }",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setWidth(int w) {\n this.W = w;\n }",
"void setWidth(int width);",
"void setWidth(int width);",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setWidth(int w) {\n\t\twidth = w;\n\t}",
"public void setWidth(int w){ widthRadius = w; }",
"@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }",
"public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }",
"public void setWidth(int width) {\n this.width = width;\n }",
"public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"protected void setLineWidth(int width) {\r\n\t\tif (primaryShape instanceof Shape) {\r\n\t\t\t((Shape) primaryShape).setLineWidth(width);\r\n\t\t}\r\n\t}",
"public void setWidth(double width) {\n this.width = width;\n }",
"public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }",
"public void setWidth(final String value)\n {\n width = value;\n }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"public void setWidth(int width) {\n\t\tw = width;\n\t}",
"@JsProperty\n public void setWidth(int width);",
"public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}",
"void setFitWidth(short width);",
"@Override\r\n public void setWidth(String width) {\n }",
"public void setWidth(Integer width)\n {\n getStateHelper().put(PropertyKeys.width, width);\n }",
"@Override\n\tpublic void setWidth(float width) {\n\n\t}",
"private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }",
"public void setWidth(float width) {\n this.xRadius = width/2f;\n }",
"public Builder setWidth(int value) {\n \n width_ = value;\n onChanged();\n return this;\n }",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}",
"public void setWidth( int width ) {\n\t\t_width = width;\n\t}",
"public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }",
"public void setWidth(int width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;",
"public void SetWidth(double width) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetWidth(swigCPtr, this, width);\n }",
"public void setWidth(int n){ // Setter method\n \n width = n; // set the class attribute (variable) radius equal to num\n }",
"public void setWidth(String width) {\r\n this.width = width;\r\n }",
"public void setWidth(Integer width) {\n\t\tthis.width = width;\n\t\tthis.handleConfig(\"width\", width);\n\t}",
"private void setBorderWidth(int width) {\n this.borderWidth = width;\n Rectangle r = (Rectangle) this.getChildren().get(0);\n r.setStrokeWidth(width);\n }",
"public void setWidth(int width) {\n this.width = width;\n this.rightEdge = RRConstants.getRightEdge(width);\n }",
"public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}",
"@Override\r\n\tpublic int setWidth() {\n\t\treturn 0;\r\n\t}",
"public void setRadWidth(int width) {\n radWidth = width;\n }",
"public void setWidth(java.lang.String width)\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(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(WIDTH$20);\n }\n target.setStringValue(width);\n }\n }",
"@Override\n\tpublic void setWidth(int newWidth) {\n\t\tint width = (int) (newWidth * 0.5);\n\t\tif (width > mainContainer.getMinWidth()) {\n\t\t\tscreenWidth = width;\n\t\t\tmainContainer.setPrefWidth(screenWidth);\n\t\t}\n\t\tcenterScreenX(newWidth);\n\t}",
"public void updateWidth() {\n\t\t// Update width\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().updateFamilyWidth();\n\t\t\tthis.setWidth(this.getFamily().getWidth()\n\t\t\t\t\t+ this.getFamily().getNextWidth());\n\t\t} else {\n\t\t\tthis.setWidth(1);\n\t\t}\n\t}",
"public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }",
"public void setLineWidth(int width)\n {\n if (width > 0)\n lineWidth = width;\n else \n lineWidth = 1;\n }",
"@NonNull\n public Builder setWidth(@NonNull DpProp width) {\n if (width.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setWidth doesn't support dynamic values.\");\n }\n mImpl.setWidth(width.toProto());\n mFingerprint.recordPropertyUpdate(\n 1, checkNotNull(width.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"public void setMinWidth(int width) {\n setMinSize(width, minHeight);\n }",
"private void setWindowWidth(int width) {\n this.width = width;\n }",
"public void setRrWidth(int width) {\n rrWidth = width;\n }",
"private void setTargetWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetWidth = width;\r\n\t\t}\r\n\t}",
"public void setWidth(int width) {\n\t\tif (width <= 0)\n\t\t\tthrow new IllegalArgumentException(\"width must be > 0\");\n\n\t\tthis.width = width;\n\t}",
"public void setOutlinePickWidth(int outlinePickWidth)\n {\n if (outlinePickWidth < 0)\n {\n String message = Logging.getMessage(\"generic.ArgumentOutOfRange\", \"width < 0\");\n Logging.logger().severe(message);\n throw new IllegalArgumentException(message);\n }\n\n this.outlinePickWidth = outlinePickWidth;\n }",
"public void adjustWidth() {\n int width = Short.MIN_VALUE;\n\n for (final TextBox tb : getAllTextBox()) {\n final int tbWidth = tb.getTextDim().width;\n\n if (tbWidth > width) width = tbWidth; // get the longer content\n }\n\n if (fullWidthStereotype > width) width = fullWidthStereotype;\n\n Change.push(new BufferBounds(this));\n\n setBounds(new Rectangle(\n bounds.x, bounds.y, width + GraphicView.getGridSize() + 15, bounds.height));\n\n Change.push(new BufferBounds(this));\n }",
"public void setWidth(String string) {\r\n\t\t_width = string;\r\n\t}",
"public void setMinWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getMinWidth()) return;\n firePropertyChange(\"MinWidth\", put(\"MinWidth\", w), w, -1);\n}",
"public void setWidth(int width) {\n if(width < 0) throw new NegativeSizeException(\"Negative width\");\n \tthis.width = width;\n }",
"public Builder setWidth(long value) {\n copyOnWrite();\n instance.setWidth(value);\n return this;\n }",
"public final native void setStrokeWidth(double width) /*-{\n\t\tthis.setStrokeWidth(width);\n\t}-*/;",
"public void setLineWidth(Integer width) {\n style.setBorderWidth(width);\n }",
"@Override\n public void setLineWidth(double width) {\n graphicsEnvironmentImpl.setLineWidth(canvas, width);\n }",
"public abstract Builder setOutputWidth(int value);",
"public void resetPaddleWidthToOriginal(){\n myRectangle.setWidth(PADDLE_LENGTH);\n myLength = PADDLE_LENGTH;\n }",
"public void xsetWidth(org.apache.xmlbeans.XmlString width)\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(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(WIDTH$20);\n }\n target.set(width);\n }\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\tif(!(width>0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: height>0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tgetDelegate().setWidth(width);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// pos: getHeight()==height\r\n\t\tif(!(getWidth()==width))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getWidth()==width\");\r\n\r\n\t}",
"public void setArcwidth(double aw) {\n\t\t\tarcwidth.set(aw);\n\t\t}",
"private void setCurrentWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmCurrentWidth = width;\r\n\t\t}\r\n\t}",
"@BindingAdapter({\"layout_width\"})\n public static void setWidth(View view, int width) {\n view.getLayoutParams().width = Math.round(width * view.getContext().getResources().getDisplayMetrics().density);\n }",
"private void setArrowWidth(float arrowWidth) {\r\n\t\tthis.arrowWidth = arrowWidth;\r\n\t}",
"public void setLineWidth ( int width ) {\r\n\t\tline_width = width;\r\n\t}",
"public void setTrackWidth(int width){\n this.mTrackWidth = Utils.dp2px(mContext, width);\n progressPaint.setStrokeWidth(width);\n updateTheTrack();\n refreshTheView();\n }",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"public void setWidth( int width )\n {\n int charWidth = ChatMenuAPI.getCharacterWidth( getCharacter( ) );\n length = width / charWidth;\n }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"@Override\n\tpublic void setBoxWidth(int l) {\n\t\tmaxwid = l;\n\t}",
"public void setThumbWidth(int width) {\n invalidateRect\n .set(thumbOffset.getPointXToInt() - thumbCurvature, thumbOffset.getPointYToInt(), thumbOffset.getPointXToInt() + thumbWidth, thumbOffset.getPointYToInt() + thumbHeight);\n thumbWidth = width;\n updateThumbPath();\n invalidateRect\n .fuse(thumbOffset.getPointXToInt() - thumbCurvature, thumbOffset.getPointYToInt(), thumbOffset.getPointXToInt() + thumbWidth, thumbOffset.getPointYToInt() + thumbHeight);\n recyclerView.invalidate();\n }",
"public void setCurrentWidth(final int currentWidth);",
"public void setBorderWidth(float borderWidth) {\n mPolygonShapeSpec.setBorderWidth(borderWidth * (getResources().getDisplayMetrics().density));\n updateBorderSpecs();\n }",
"public void setBaseWidth(double baseWidth) {\n this.baseWidth = baseWidth;\n }",
"void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}",
"@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}",
"public void setWidth(double aValue)\n{\n if(_width==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Width\", _width, _width = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}",
"public void setLineWidth(float width)\r\n\t{\r\n\t\t// not implemented\r\n\t\tg.setPenWidth((int) width);\r\n\t}",
"public void setNodeBorderWidth(Float value) {\n nodeBorderWidth = value;\n }",
"public void setWidth(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.width.getAttributeName(), value);\r\n\t}",
"public MediaDeviceDescription setWidth(float width) {\n this.width = width;\n return this;\n }",
"@Override\n public int getWidth() {\n return width;\n }",
"@Override\n public int getWidth() {\n return width;\n }"
] |
[
"0.72775924",
"0.7203003",
"0.7135189",
"0.71344763",
"0.7086439",
"0.7078675",
"0.7078675",
"0.69999844",
"0.6944486",
"0.69093037",
"0.69027215",
"0.6900698",
"0.68780184",
"0.68685627",
"0.68599415",
"0.6855455",
"0.68308604",
"0.6813464",
"0.67707616",
"0.6770557",
"0.67570245",
"0.67332494",
"0.6731116",
"0.67062265",
"0.67020935",
"0.66503215",
"0.66323215",
"0.6618016",
"0.66142476",
"0.6611807",
"0.65889883",
"0.65875375",
"0.6555259",
"0.65351254",
"0.65351254",
"0.653396",
"0.6522505",
"0.6508824",
"0.64998496",
"0.6461378",
"0.64413965",
"0.6441262",
"0.6430742",
"0.64150286",
"0.64008385",
"0.6368541",
"0.6360153",
"0.6314476",
"0.63133794",
"0.6278154",
"0.62624496",
"0.62568915",
"0.6240885",
"0.62402356",
"0.62303865",
"0.6209698",
"0.6188765",
"0.6173871",
"0.6169047",
"0.61140466",
"0.61074597",
"0.6104413",
"0.6084675",
"0.6078497",
"0.6069121",
"0.6068767",
"0.60637385",
"0.60528296",
"0.60336363",
"0.6032542",
"0.60261947",
"0.6022312",
"0.6016038",
"0.60148495",
"0.6005994",
"0.59825915",
"0.5946831",
"0.59397686",
"0.5927415",
"0.5918365",
"0.5868555",
"0.58579206",
"0.5850669",
"0.5844243",
"0.583353",
"0.5826859",
"0.5807727",
"0.57845527",
"0.5781382",
"0.57788736",
"0.5754091",
"0.5753593",
"0.575237",
"0.5745616",
"0.5740365",
"0.5721038",
"0.5720637",
"0.571964",
"0.5699747",
"0.5699747"
] |
0.6360819
|
46
|
Computes the preferred width for given height.
|
protected double computePrefWidth(double aHeight) { return getWidth(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected double computePrefHeight(double aWidth) { return getHeight(); }",
"Integer getDefaultWidth();",
"@Override\n protected double computePrefWidth(final double height) {\n final Side side = getSide();\n if ((side == null) || (side == Side.CENTER_VER) || side.isHorizontal()) {\n return super.computePrefWidth(height);\n }\n return super.computePrefWidth(height) + getGradientWidth();\n }",
"private int squareWidth() {\n return (int) getSize().getWidth() / BOARD_WIDTH;\n }",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"Integer getCurrentWidth();",
"public int width()\n {\n return Math.max(top, bottom);\n }",
"public abstract int getHeight(int pWidth);",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"String getWidth();",
"String getWidth();",
"abstract public int getMinWidth();",
"short getFitWidth();",
"public double getBestWidth() { return getBestWidth(-1); }",
"protected double getPrefWidthImpl(double aH)\n {\n double pw = _chartArea.getPrefWidth();\n if(_yaxis.isVisible()) pw += _yaxis.getPrefWidth();\n return pw;\n }",
"Integer getDefaultHeight();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"double getNewWidth();",
"public int width();",
"long getWidth();",
"public double getWidth();",
"public double getWidth();",
"int getBoundsWidth();",
"public abstract int getWidth();",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"int getHorizontalResolution();",
"public int getCurrentWidth();",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"int width();",
"public int getDesiredWidth() {\n return mDesiredWidth;\n }",
"private double getSuggestedPrefWidth()\n {\n Insets ins = getPadding();\n double prefW = ins.getWidth();\n\n // Add width for line numbers\n if (_showLineNumbers) {\n Font font = _textArea.getFont();\n int lineCount = _textArea.getLineCount();\n double colCount = Math.ceil(Math.log10(lineCount) + .0001);\n double charWidth = Math.ceil(font.charAdvance('0'));\n double colsWidth = colCount * charWidth;\n prefW += colsWidth;\n }\n\n // Add Width for line markers\n if (_showLineMarkers) {\n prefW += LINE_MARKERS_WIDTH;\n }\n\n // Return\n return prefW;\n }",
"short getFitHeight();",
"public static int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"public int getWidth() {\r\n\t\treturn defaultWidth;\r\n\t}",
"int getWidth() {return width;}",
"public byte getWidth();",
"public double getBestWidth(double aValue) { return Math.max(getMinWidth(aValue), getPrefWidth(aValue)); }",
"public Integer getWidth()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.width, null);\n }",
"public int getWidth () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_WIDTH, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1];\r\n}",
"public int getActualWidthInTiles() {\n return getWidth() / getActualTileWidth();\n }",
"BigInteger getWidth();",
"double getWidth();",
"double getWidth();",
"public final int getWidth(){\n return width_;\n }",
"public abstract double getBaseWidth();",
"@Override\n\tpublic float getPrefWidth() {\n\t\treturn windowSize * 1.2f;\n\t}",
"public int getPreferredWidth(RibbonElementPriority state, int availableHeight) {\n int preferredVisibleButtonCount = this.preferredVisibleIconCount.get(state);\n\n BasicRibbonGalleryUI ui = (BasicRibbonGalleryUI) this.getUI();\n return ui.getPreferredWidth(preferredVisibleButtonCount, availableHeight);\n }",
"public abstract int layoutWidth();",
"Length getWidth();",
"protected int measureWidth(int measureSpec) {\n int specMode = MeasureSpec.getMode(measureSpec);\n int specSize = MeasureSpec.getSize(measureSpec);\n int result;\n if (specMode == MeasureSpec.EXACTLY) {\n result = specSize;\n } else {\n result = (int) (2 * radius) + getPaddingLeft() + getPaddingRight() + (int) (2 * strokeWidth);\n if (specMode == MeasureSpec.AT_MOST) {\n result = Math.min(result, specSize);\n }\n }\n return result;\n }",
"public void size(final int theWidth, final int theHeight);",
"@java.lang.Override\n public long getWidth() {\n return width_;\n }",
"public int getWidth()\r\n\t{\r\n\t\treturn WIDTH;\r\n\t}",
"@Override\n public Optional<Integer> uniformWidth() {\n return Optional.empty();\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"public int getWidth()\n {\n return width;\n }",
"@Override\n public int getWidth() {\n return width;\n }",
"@Override\n public int getWidth() {\n return width;\n }",
"public abstract int getExtraWidth(int specifiedWidth);",
"public int getWidth()\n {\n return width;\n }",
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public float getWidth() {\n\treturn widthRatio;\n }",
"public int getWidth(){\n return width;\n }",
"public int getWidth()\n {return width;}",
"public static int resWidth() {\n\t\t\n\t\treturn (int)resolution.getWidth();\n\t\t\n\t}",
"public float getWidth();",
"public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}",
"private int computeSampleSizeLarger(double w, double h) {\n\t\tdouble initialSize = Math.max(w / UPPER_BOUND_WIDTH_PIX, h\n\t\t\t\t/ UPPER_BOUND_HEIGHT_PIX);\n\t\tif (initialSize <= 2.0f) {\n\t\t\treturn 1;\n\t\t} else if (initialSize < 3.0f) {\n\t\t\treturn 2;\n\t\t} else if (initialSize < 4.0f) {\n\t\t\treturn 3;\n\t\t} else if (initialSize < 5.0f) {\n\t\t\treturn 4;\n\t\t} else if (initialSize < 6.0f) {\n\t\t\treturn 5;\n\t\t} else if (initialSize < 7.0f) {\n\t\t\treturn 6;\n\t\t} else if (initialSize < 8.0f) {\n\t\t\treturn 7;\n\t\t} else {\n\t\t\treturn 8;\n\t\t}\n\t}",
"private int getTargetWidth()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mTargetWidth;\r\n\t\t}\r\n\t}",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"@Override\r\n\tpublic int getGameInitialWidth() {\n\t\treturn 320;\r\n\t}",
"void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}",
"public int getWidth() {\n return width_;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }",
"public int getWidth() {\n return width;\n }"
] |
[
"0.66395116",
"0.64575005",
"0.62725925",
"0.61841",
"0.61562806",
"0.6150642",
"0.61457914",
"0.6113358",
"0.61078763",
"0.61066794",
"0.61066794",
"0.61066794",
"0.6081769",
"0.6081769",
"0.60347056",
"0.6029573",
"0.6006061",
"0.5994916",
"0.59933984",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.5981839",
"0.59745157",
"0.5964885",
"0.5955854",
"0.5949018",
"0.5949018",
"0.59287655",
"0.59196484",
"0.5903285",
"0.5903285",
"0.589869",
"0.5872887",
"0.5861672",
"0.5860538",
"0.58488274",
"0.5846743",
"0.5843809",
"0.58394104",
"0.58328146",
"0.58182824",
"0.5806869",
"0.58061194",
"0.58034563",
"0.57967794",
"0.5792025",
"0.5784061",
"0.5782746",
"0.5782746",
"0.5774477",
"0.5769909",
"0.57561785",
"0.57533586",
"0.57438153",
"0.57274246",
"0.5724276",
"0.57130724",
"0.5686281",
"0.56815696",
"0.56814885",
"0.5675071",
"0.5675071",
"0.5675071",
"0.5673393",
"0.5673393",
"0.56693053",
"0.5669053",
"0.56655216",
"0.56615084",
"0.56599915",
"0.5655422",
"0.56518626",
"0.56466633",
"0.56391233",
"0.5637654",
"0.5634948",
"0.56344366",
"0.56344366",
"0.563019",
"0.5622306",
"0.5618172",
"0.5615747",
"0.5615747",
"0.5615747",
"0.5615747",
"0.5615747"
] |
0.7994086
|
0
|
Returns whether shape preferred height is set.
|
public boolean isPrefHeightSet() { return get("PrefHeight")!=null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isMinHeightSet() { return get(\"MinHeight\")!=null; }",
"boolean hasHeight();",
"boolean hasHeight();",
"boolean hasHeight();",
"public boolean isSetHeight() {\n\t\treturn this.height != null;\n\t}",
"public boolean hasHeight() {\n return fieldSetFlags()[6];\n }",
"public boolean isSetImgHeight() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGHEIGHT_ISSET_ID);\n }",
"@java.lang.Override\n public boolean hasHeight() {\n return instance.hasHeight();\n }",
"public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean isCorrectSize(int height, int width);",
"@java.lang.Override\n public boolean hasHeight() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean hasSize() {\n return sizeBuilder_ != null || size_ != null;\n }",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"protected boolean calculateSize()\n\t{\n\t\tp_height = 0;\n\t\tfor (int r = 0; r < m_rows; r++)\n\t\t{\n\t\t\tp_height += m_rowHeight[r];\n\t\t\tif (m_rowHeight[r] > 0)\n\t\t\t\tp_height += m_rowGap;\n\t\t}\n\t\tp_height -= m_rowGap;\t//\tremove last\n\t\tp_width = 0;\n\t\tfor (int c = 0; c < m_cols; c++)\n\t\t{\n\t\t\tp_width += m_colWidth[c];\n\t\t\tif (m_colWidth[c] > 0)\n\t\t\t\tp_width += m_colGap;\n\t\t}\n\t\tp_width -= m_colGap;\t\t//\tremove last\n\t\treturn true;\n\t}",
"public boolean isShouldFillShape() {\n return this.shouldFillShape;\n }",
"public boolean isPrefWidthSet() { return get(\"PrefWidth\")!=null; }",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"boolean hasSize();",
"public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }",
"Integer getDefaultHeight();",
"public boolean isSetWidth()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(WIDTH$20) != null;\n }\n }",
"@Override\n\tpublic boolean getZeroHeight() {\n\t\treturn false;\n\t}",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"@java.lang.Override\n public boolean hasSize() {\n return size_ != null;\n }",
"public boolean getScrollableTracksViewportHeight() {\n return getParent().getHeight() > getPreferredSize().height;\n }",
"public boolean setShapeSize(DimensionF shapeSize) {\n if (ObjectUtils.equals(this.shapeSize, shapeSize))\n return false;\n this.shapeSize = shapeSize;\n return true;\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}",
"@Override\n public int height() {\n IHex posHex = game.getBoard().getHex(getPosition());\n return (isProne() || ((posHex != null) && Compute.isInBuilding(game, this))) ? 0 : 1;\n }",
"public boolean isFillHeight() { return _scroller.isFillHeight(); }",
"@Override\n public int getHeight() {\n colorSpaceType.assertNumElements(buffer.getFlatSize(), height, width);\n return height;\n }",
"boolean hasWidth();",
"boolean hasWidth();",
"boolean hasWidth();",
"public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"private boolean hasReachedBottom() {\n\t\tfor (Segment s:this.getHorizontalProjection().getShapeSegments()){\n\t\t\t\n\t\t\tHeightProfile hs = this.grid.heightAt(s);\n\t\t\t\n\t\t\tfor (int h : hs){\n\t\t\t\t\n\t\t\t\tif (this.bottomLeft.getY() <= h){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public short getHeight() {\n\n\t\treturn getShort(ADACDictionary.Y_DIMENSIONS);\n\t}",
"public boolean hasPolygonsCount() {\n return polygonsCountBuilder_ != null || polygonsCount_ != null;\n }",
"public int getHeight() { return height; }",
"public boolean isSetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(BORDER$22) != null;\n }\n }",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public boolean isSquare()\n {\n return width == height;\n }",
"abstract public int getMinHeight();",
"public boolean hasSize() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"@Override\n public int getHeight() {\n return graphicsEnvironmentImpl.getHeight(canvas);\n }",
"public boolean getResized()\n {\n return resized;\n }",
"boolean hasGridLayout();",
"public int getHeight() {return height;}",
"@java.lang.Override\n public boolean hasPolygonsCount() {\n return polygonsCount_ != null;\n }",
"public double getHeight();",
"public double getHeight();",
"public boolean isSizeFixed() {\n return !(this.size.width < 0 && this.size.height < 0);\n }",
"@Override\n public int getPeekHeight() {\n return HeightMode.DISABLED;\n }",
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public boolean isSetHorzBwMax() {\n return (this.horzBwMax != null ? this.horzBwMax.isSetValue() : false);\n }",
"public Integer getHeight()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.height, null);\n }",
"public int getHeight() {\n return height_;\n }",
"public float getHeight();",
"public int getHeight() {\n return height_;\n }",
"public final int getHeight() {\r\n return height;\r\n }",
"short getFitHeight();",
"@VisibleForTesting\n public int getPeekHeightMin() {\n return this.peekHeightMin;\n }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSetImgWidth() {\n return EncodingUtils.testBit(__isset_bitfield, __IMGWIDTH_ISSET_ID);\n }",
"public int getPreferredHeight() \n { \n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getHeight() + VMARGIN;\n }",
"public final int getHeight(){\n return height_;\n }",
"public abstract int layoutHeight();",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public boolean hasWidth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSizeFixed ( ) {\r\n\t\treturn (radius_mag_dependent == false);\r\n\t}",
"public boolean getMaximized() {\n checkWidget();\n return maximized;\n }",
"public double getHeight() {\r\n return height;\r\n }"
] |
[
"0.6952217",
"0.691132",
"0.691132",
"0.691132",
"0.6908282",
"0.6871552",
"0.67539513",
"0.65512973",
"0.65087336",
"0.64907044",
"0.61645424",
"0.6123095",
"0.605511",
"0.605511",
"0.5985772",
"0.5933713",
"0.5929173",
"0.5789388",
"0.567808",
"0.567808",
"0.567808",
"0.567808",
"0.56732994",
"0.56251276",
"0.5618169",
"0.56144387",
"0.5590168",
"0.5590168",
"0.557668",
"0.55573225",
"0.55086714",
"0.54720324",
"0.547128",
"0.54546744",
"0.54496527",
"0.54496527",
"0.54496527",
"0.54081213",
"0.53983516",
"0.5391487",
"0.5388066",
"0.538687",
"0.53830606",
"0.537602",
"0.537602",
"0.537602",
"0.537602",
"0.537602",
"0.537602",
"0.5370662",
"0.5369511",
"0.53643876",
"0.53642815",
"0.5360419",
"0.5350541",
"0.5350442",
"0.534658",
"0.5339502",
"0.5339502",
"0.53257537",
"0.5321539",
"0.53124046",
"0.53121054",
"0.53115773",
"0.53109986",
"0.53087056",
"0.5302318",
"0.52936584",
"0.52909243",
"0.5285107",
"0.527237",
"0.5271523",
"0.5269925",
"0.52678114",
"0.5264233",
"0.5262484",
"0.52611107",
"0.525717",
"0.525717",
"0.5251321",
"0.5251034",
"0.5251034",
"0.5251034",
"0.5251034",
"0.5251034",
"0.5251034",
"0.5251034",
"0.5251034",
"0.5251034",
"0.5251034",
"0.5251034",
"0.524946",
"0.52494586",
"0.52494586",
"0.52494586",
"0.5249184",
"0.52385163",
"0.5238288",
"0.5234937",
"0.5234403"
] |
0.71859264
|
0
|
Returns the shape preferred height.
|
public double getPrefHeight() { return getPrefHeight(-1); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getPreferredHeight() \n { \n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getHeight() + VMARGIN;\n }",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public double getHeight();",
"public double getHeight();",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public double getHeight() {\n\t\t\treturn height.get();\n\t\t}",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public int getHeight() { return height; }",
"public final int getHeight() {\r\n return height;\r\n }",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height_;\n }",
"public Integer getHeight()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.height, null);\n }",
"public double getHeight() {\r\n return height;\r\n }",
"String getHeight();",
"String getHeight();",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public float getHeight();",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public double getHeight() {\n return height;\n }",
"public double getHeight() {\n return height;\n }",
"public int getHeight() {\n return height_;\n }",
"public double getHeight () {\n return height;\n }",
"public int getHeight() {\r\n return Height;\r\n }",
"public final int getHeight(){\n return height_;\n }",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight() \n\t{\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\tdouble height = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn height;\n\t}",
"public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n\t\treturn getHeight(this);\n\t}",
"public double getHeight() {\r\n\t\treturn height;\r\n\t}",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"public double getBaseHeight();",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"double getHeight();",
"private double getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\t\treturn height;\n\t\t}",
"public int getHeight() {return height;}",
"public int getHeight()\n {\n \treturn height;\n }",
"public String getHeight() {\r\n if (height != null) {\r\n return height;\r\n }\r\n ValueBinding vb = getValueBinding(\"height\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) :\r\n DEFAULT_HEIGHT;\r\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}",
"long getHeight();",
"public int getHeight()\n {\n return this.height;\n }",
"public int getHeight() {\n\treturn height;\n}"
] |
[
"0.7224849",
"0.7178625",
"0.71219206",
"0.71219206",
"0.71094555",
"0.7104804",
"0.7104804",
"0.7104804",
"0.7104804",
"0.7104804",
"0.7104804",
"0.70704967",
"0.706932",
"0.706932",
"0.706932",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70440316",
"0.70429397",
"0.7038094",
"0.7035453",
"0.7034996",
"0.703422",
"0.7018854",
"0.7017669",
"0.7017669",
"0.70158064",
"0.7009327",
"0.70085835",
"0.70073795",
"0.70073795",
"0.70071137",
"0.700524",
"0.6998364",
"0.6997867",
"0.6997867",
"0.6997754",
"0.69976866",
"0.69876194",
"0.69864607",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.69716275",
"0.69716275",
"0.6970639",
"0.6969732",
"0.6965584",
"0.6956501",
"0.6954623",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.69425225",
"0.6942198",
"0.6942198",
"0.6942198",
"0.6942198",
"0.6942198",
"0.6942198",
"0.693138",
"0.6929973",
"0.6927117",
"0.69265634",
"0.6926423",
"0.69158435",
"0.69157445",
"0.6904609",
"0.6902093",
"0.69005114",
"0.68944573"
] |
0.0
|
-1
|
Returns the shape preferred height.
|
public double getPrefHeight(double aValue)
{
Double v = (Double)get("PrefHeight"); if(v!=null) return v;
return computePrefHeight(-1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getPreferredHeight() \n { \n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getHeight() + VMARGIN;\n }",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public double getHeight();",
"public double getHeight();",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public double getHeight() {\n\t\t\treturn height.get();\n\t\t}",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public int getHeight() { return height; }",
"public final int getHeight() {\r\n return height;\r\n }",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height_;\n }",
"public Integer getHeight()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.height, null);\n }",
"public double getHeight() {\r\n return height;\r\n }",
"String getHeight();",
"String getHeight();",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public float getHeight();",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public double getHeight() {\n return height;\n }",
"public double getHeight() {\n return height;\n }",
"public int getHeight() {\n return height_;\n }",
"public double getHeight () {\n return height;\n }",
"public int getHeight() {\r\n return Height;\r\n }",
"public final int getHeight(){\n return height_;\n }",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight() \n\t{\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\tdouble height = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn height;\n\t}",
"public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n\t\treturn getHeight(this);\n\t}",
"public double getHeight() {\r\n\t\treturn height;\r\n\t}",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"public double getBaseHeight();",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public double getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"double getHeight();",
"private double getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight() {\n\t\t\treturn height;\n\t\t}",
"public int getHeight() {return height;}",
"public int getHeight()\n {\n \treturn height;\n }",
"public String getHeight() {\r\n if (height != null) {\r\n return height;\r\n }\r\n ValueBinding vb = getValueBinding(\"height\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) :\r\n DEFAULT_HEIGHT;\r\n }",
"public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}",
"long getHeight();",
"public int getHeight()\n {\n return this.height;\n }",
"public int getHeight() {\n\treturn height;\n}"
] |
[
"0.7224849",
"0.7178625",
"0.71219206",
"0.71219206",
"0.71094555",
"0.7104804",
"0.7104804",
"0.7104804",
"0.7104804",
"0.7104804",
"0.7104804",
"0.70704967",
"0.706932",
"0.706932",
"0.706932",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70665747",
"0.70440316",
"0.70429397",
"0.7038094",
"0.7035453",
"0.7034996",
"0.703422",
"0.7018854",
"0.7017669",
"0.7017669",
"0.70158064",
"0.7009327",
"0.70085835",
"0.70073795",
"0.70073795",
"0.70071137",
"0.700524",
"0.6998364",
"0.6997867",
"0.6997867",
"0.6997754",
"0.69976866",
"0.69876194",
"0.69864607",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.6985225",
"0.69716275",
"0.69716275",
"0.6970639",
"0.6969732",
"0.6965584",
"0.6956501",
"0.6954623",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.6942705",
"0.69425225",
"0.6942198",
"0.6942198",
"0.6942198",
"0.6942198",
"0.6942198",
"0.6942198",
"0.693138",
"0.6929973",
"0.6927117",
"0.69265634",
"0.6926423",
"0.69158435",
"0.69157445",
"0.6904609",
"0.6902093",
"0.69005114",
"0.68944573"
] |
0.0
|
-1
|
Sets the shape preferred height.
|
public void setPrefHeight(double aHeight)
{
double h = aHeight<=0? 0 : aHeight; if(h==getPrefHeight()) return;
firePropertyChange("PrefHeight", put("PrefHeight", h), h, -1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setHeight(int height);",
"public void setHeight(int height);",
"public void setHeight(int value) {\n this.height = value;\n }",
"void setHeight(int height);",
"void setHeight(int height);",
"public void setHeight(double value) {\n this.height = value;\n }",
"public void setHeight(int h)\n {\n height = h;\n }",
"public void setHeight(int h) {\n this.H = h;\n }",
"void setHeight(VariableAmount height);",
"public void setHeight(int newValue)\n {\n height = newValue;\n }",
"public void setHeight(double height) {\n this.height = height;\n }",
"public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }",
"public void setHeight(double height){\n h=height;\r\n }",
"void setFitHeight(short height);",
"public void setHeight(double height) {\r\n this.height = height;\r\n }",
"public void setHeight(int h){ heightRadius = h; }",
"public void setHeight(double height) {\n this.height = height;\n }",
"public void setHeight(int height) {\n this.height = height;\n }",
"@Override\r\n public void setHeight(String height) {\n }",
"@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}",
"private void setHeight(long value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n }",
"public void setHeight(final String value)\n {\n height = value;\n }",
"public void setHeight(int l){\n \theight = l;\n }",
"public void setHeight(int height) {\r\n this.height = height;\r\n }",
"public void setHeight(float height) {\n this.yRadius = 0.5f * height;\n }",
"public void setHeight(int newValue) {\n seatHeight = newValue;\n }",
"public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }",
"@Override\n\tpublic void setHeight(float height) {\n\n\t}",
"public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }",
"public void setHeight(int height) {\n this.height = height;\n }",
"public void setHeight(int height) {\n this.height = height;\n }",
"private void setHeight(float height){\n this.height = height;\n }",
"public void setBestHeight() { setHeight(getBestHeight()); }",
"public void setHeight(Short height) {\r\n this.height = height;\r\n }",
"public final native void setHeight(double height) /*-{\n this.setHeight(height);\n }-*/;",
"@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}",
"public void setHeight(int height) {\n\tthis.height = height;\n\tcalculateHeightRatio();\n }",
"@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(int height) {\r\n\t\tthis.height = height;\r\n\t}",
"public void setHeight (int height) {\n if (height < 10) {\n Log.warning(\"Attempted to set a checkbox height of less than 10 pixels.\");\n return;\n }\n\n synchronized (this) {\n this.height = height;\n }\n }",
"public void setHeight(double height) {\n\t\t this.height = height;\n\t }",
"public void setHeight(double h) {\n\t\t\theight.set(clamp(h, HEIGHT_MIN, HEIGHT_MAX));\n\t\t}",
"default void setHeight(int height) {\n setHeight(VariableAmount.fixed(height));\n }",
"public void setHeight(int newHeight) {\n roomHeight = newHeight;\n }",
"public void setHeight(int height) {\n\t\th = height;\n\t}",
"public abstract Builder setOutputHeight(int value);",
"public void setHeight( int height ) {\n\t\t_height = height;\n\t}",
"public void setHeight(int height) {\n int oldValue = mHeight;\n mHeight = height;\n pcs.firePropertyChange(PROP_HEIGHT, oldValue, mHeight);\n }",
"public void setHeight(int height) {\n if (height > 0) {\n this.height = height;\n }\n }",
"public void setHeight(String height) {\r\n this.height = height;\r\n }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"public void setHeight(Integer height)\n {\n getStateHelper().put(PropertyKeys.height, height);\n }",
"public void setHeight(int height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(int height) {\n\t\tthis.height = height;\n\t}",
"public void setPreferredSize( int width, int height ) {\n checkWidget();\n ideal = true;\n Point point = parent.fixPoint( width, height );\n preferredWidth = Math.max( point.x, MINIMUM_WIDTH );\n preferredHeight = point.y;\n }",
"public void setHeight(String height) {\n this.height = height;\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"public void setHeight(int height) {\n if(height < 0) throw new NegativeSizeException(\"Negative height\"); \n \tthis.height = height;\n }",
"public void setCurrentHeight(final int currentHeight);",
"@BindingAdapter({\"layout_height\"})\n public static void setHeight(View view, int height) {\n view.getLayoutParams().height = Math.round(height * view.getContext().getResources().getDisplayMetrics().density);\n }",
"public Builder setHeight(long value) {\n copyOnWrite();\n instance.setHeight(value);\n return this;\n }",
"public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setHeight(int value) {\n validate(fields()[6], value);\n this.height = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"@Override\n public int getHeight() {\n return graphicsEnvironmentImpl.getHeight(canvas);\n }",
"public void setHeight(int inches) {\n if (inches >= 24 && inches <= 84)\n this.height = inches;\n }",
"@Override\n\tpublic void setHeight(int y) {\n\t\tdelegate.setHeight(y);\n\t}",
"@Override\n public int getHeight() {\n return height;\n }",
"@Override\n public int getHeight() {\n return height;\n }",
"public void setArcheight(double ah) {\n\t\t\tarcheight.set(ah);\n\t\t}",
"@Override\n protected void setHeight(Context context, Integer heightInDp) {\n }",
"public void changeHeight(double y)\r\n {\n }",
"Integer getDefaultHeight();",
"public void changeSize(Integer newLength, Integer newHeight) {\n control.erase();\n width = newLength;\n height = newHeight;\n control.draw();\n }",
"public int getHeight() {return height;}",
"public int getPreferredHeight() \n { \n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getHeight() + VMARGIN;\n }",
"public int getHeight() { return height; }",
"private void setTargetHeight(int height)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetHeight = height;\r\n\t\t}\r\n\t}",
"public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }",
"public void setImageHeight(int val)\n {\n \n setImageHeight_0(nativeObj, val);\n \n return;\n }",
"public void yBindHeight(String bind_name, ObservableValue<? extends Number> height, boolean stroke_included);",
"void setDimension(double width, double height);",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"public float getHeight() {\n\treturn heightRatio;\n }",
"@Override\r\n\tpublic void setHeight(int height) {\n\t\tif(!(height>0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: height>0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tgetDelegate().setHeight(height);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// pos: getHeight()==height\r\n\t\tif(!(getHeight()==height))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getHeight()==height\");\r\n\r\n\t}",
"public void setSize(float width, float height);",
"private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }",
"private void setWindowHeight(int height) {\n this.height = height;\n }",
"@java.lang.Override\n public long getHeight() {\n return height_;\n }",
"public final int getHeight() {\r\n return height;\r\n }",
"@Override\n public int getHeight() {\n return this.height;\n }",
"public void setPreferredSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setPreferredSize( size.x, size.y );\n }",
"public int getHeight() {\n return height_;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n\t\t\treturn height;\n\t\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height_;\n }",
"@Override\n\tpublic void setHeightInPoints(float arg0) {\n\t\t\n\t}"
] |
[
"0.7109762",
"0.7109762",
"0.6963708",
"0.6942105",
"0.6942105",
"0.6923147",
"0.6864122",
"0.6725526",
"0.6709096",
"0.67005736",
"0.66358906",
"0.6610777",
"0.66041803",
"0.6599554",
"0.6562758",
"0.6536132",
"0.650822",
"0.6478178",
"0.64711004",
"0.6460452",
"0.6444787",
"0.64417267",
"0.6408753",
"0.64049286",
"0.63974595",
"0.6390802",
"0.6387702",
"0.63652045",
"0.6346936",
"0.63384604",
"0.63384604",
"0.63346845",
"0.6324467",
"0.6306397",
"0.628624",
"0.6265399",
"0.62631434",
"0.6258384",
"0.62430847",
"0.62430847",
"0.62430847",
"0.6190204",
"0.6176602",
"0.6176154",
"0.614977",
"0.6145954",
"0.6112849",
"0.6093947",
"0.6086375",
"0.6077765",
"0.6030377",
"0.6014755",
"0.6009097",
"0.6002424",
"0.6000881",
"0.59861887",
"0.59861887",
"0.59633964",
"0.5942852",
"0.58823556",
"0.5825397",
"0.5803359",
"0.5788884",
"0.5761",
"0.57357544",
"0.56584215",
"0.56520355",
"0.56308025",
"0.5627797",
"0.5627797",
"0.5626629",
"0.5623219",
"0.5604404",
"0.5604345",
"0.55997616",
"0.5595848",
"0.5590995",
"0.55756986",
"0.557064",
"0.5558729",
"0.55583495",
"0.55498046",
"0.55389005",
"0.5526946",
"0.55240345",
"0.5481869",
"0.5480744",
"0.54768",
"0.5470995",
"0.546825",
"0.54681796",
"0.5454298",
"0.54512304",
"0.5447377",
"0.5446995",
"0.54405266",
"0.5440072",
"0.5440072",
"0.5439773",
"0.5438194"
] |
0.5540549
|
82
|
Computes the preferred height for given width.
|
protected double computePrefHeight(double aWidth) { return getHeight(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract int getHeight(int pWidth);",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"Integer getDefaultHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"protected double computePrefWidth(double aHeight) { return getWidth(); }",
"long getHeight();",
"int getheight();",
"String getHeight();",
"String getHeight();",
"public double getHeight();",
"public double getHeight();",
"double getHeight();",
"public abstract int getHeight();",
"public abstract int getHeight();",
"short getFitHeight();",
"Length getHeight();",
"Integer getCurrentHeight();",
"VariableAmount getHeight();",
"abstract public int getMinHeight();",
"public int getHeight() { return height; }",
"int getHeight() {return height;}",
"public int getHeight() {return height;}",
"public float getHeight();",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public double getBaseHeight();",
"public int height();",
"public int height();",
"public int height();",
"public int height();",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"int height();",
"public abstract int getNormalizedHeight();",
"public final int getHeight(){\n return height_;\n }",
"@Override\n protected double computePrefHeight(final double width) {\n final Side side = getSide();\n if ((side == null) || (side == Side.CENTER_HOR) || side.isVertical()) {\n return super.computePrefHeight(width);\n }\n return super.computePrefHeight(width) + getGradientWidth();\n }",
"public int getHeight(){\n return height;\n }",
"private int getQustionHeight(int width, int height){\n\t\tView view = (View) questionText.getClientProperty(javax.swing.plaf.basic.BasicHTML.propertyKey);\n \tview.setSize(width, height);\n \tfloat h = view.getPreferredSpan(View.Y_AXIS);\n \treturn (int)Math.ceil(h);\n\t}",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getCurrentHeight();",
"public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight(){\n return height;\n }",
"public final int getHeight() {\r\n return height;\r\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"Builder height(VariableAmount height);",
"public abstract float getHeight();",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"int getHeight1();",
"public abstract double getBaseHeight();",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight()\n {return height;}",
"protected int getPrefContentHeight(int width) {\n\t\tint h = SPACING + Math.max(mFontHeight, MAX_ICON_HEIGHT);\n\t\t\n\t\t// If the location is not null, then add a line for it\n\t\tif (mAppt.mLocation != null){\n\t\t\th += mFontHeight;\n\t\t}\n\t\t\n\t\tif (mSubjLines != null) {\n\t\t\tfor (int i = 0; i < mSubjLines.length; i++)\n\t\t\t\th += mFontHeight + SPACING;\n\t\t}\n\t\t\n\t\treturn h;\n\t}",
"BigInteger getHeight();",
"public int getHeight(){\n \treturn height;\n }",
"double getNewHeight();",
"public int getHeight() \n\t{\n\t\treturn height;\n\t}",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\n return height_;\n }",
"public void computeHeight() {\n\t\tif (getContext().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 3 / 4);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsetHeight(screenHeight * 4 / 5);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tint screenHeight = ScreenUtils.getScreenHeight(getContext());\n\t\t\tif (DisplayHelper.isTabModel(getContext())) {\n\t\t\t\tsetHeight(screenHeight * 2 / 3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsetHeight(screenHeight - 80);\n\t\t\t}\n\t\t}\n\t}",
"public int getHeight()\n {\n \treturn height;\n }",
"@Override\n public int getHeight() {\n return height;\n }",
"@Override\n public int getHeight() {\n return height;\n }"
] |
[
"0.7355064",
"0.6768658",
"0.6768658",
"0.6768658",
"0.6768658",
"0.6768658",
"0.6768658",
"0.6639958",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6638067",
"0.6637204",
"0.66059875",
"0.65621895",
"0.6544334",
"0.6544334",
"0.65233856",
"0.65233856",
"0.6481327",
"0.6428399",
"0.6428399",
"0.6426064",
"0.6412289",
"0.64056224",
"0.6380712",
"0.63740146",
"0.6350262",
"0.6347019",
"0.6330208",
"0.6327364",
"0.63025206",
"0.6296323",
"0.62506443",
"0.6236394",
"0.6236394",
"0.6236394",
"0.6236394",
"0.62361157",
"0.62303615",
"0.6196714",
"0.61798793",
"0.612463",
"0.6124586",
"0.61224174",
"0.61132765",
"0.61103654",
"0.6099636",
"0.6093913",
"0.6093913",
"0.6093913",
"0.60934675",
"0.6091213",
"0.60868144",
"0.60805994",
"0.60770047",
"0.6068452",
"0.606111",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60548073",
"0.60437375",
"0.6042783",
"0.6037773",
"0.6037773",
"0.60353553",
"0.60316664",
"0.602913",
"0.60249496",
"0.60246474",
"0.60112363",
"0.6005278",
"0.5998617",
"0.5998617",
"0.59954333",
"0.59941834",
"0.5993469",
"0.5989666",
"0.5984561",
"0.5984561"
] |
0.7700165
|
0
|
Returns the best width for current height.
|
public double getBestWidth() { return getBestWidth(-1); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getBestHeight() { return getBestHeight(-1); }",
"public double getBestWidth(double aValue) { return Math.max(getMinWidth(aValue), getPrefWidth(aValue)); }",
"protected double computePrefWidth(double aHeight) { return getWidth(); }",
"public double getBestHeight(double aValue) { return Math.max(getMinHeight(aValue), getPrefHeight(aValue)); }",
"public int width()\n {\n return Math.max(top, bottom);\n }",
"short getFitHeight();",
"Integer getCurrentHeight();",
"public static float getDownScaleByMaxWidth(int currentWidth, int currentHeight, int maxWitdh) {\r\n float downScale = 1;\r\n if (currentWidth > maxWitdh) {\r\n downScale = (float) maxWitdh / currentWidth;\r\n }\r\n\r\n return downScale;\r\n }",
"Integer getCurrentWidth();",
"private Size getBestSupportedSize(List<Size> sizes, int width, int height) {\n\t\tSize bestSize = sizes.get(0);\n\t\tint largestArea = bestSize.width * bestSize.height;\n\t\tfor (Size size : sizes) {\n\t\t\tint area = size.height * size.width;\n\t\t\tif (area > largestArea) {\n\t\t\t\tbestSize = size;\n\t\t\t\tlargestArea = area;\n\t\t\t}\n\t\t}\n\t\treturn bestSize;\n\t}",
"protected double computePrefHeight(double aWidth) { return getHeight(); }",
"private int computeSampleSizeLarger(double w, double h) {\n\t\tdouble initialSize = Math.max(w / UPPER_BOUND_WIDTH_PIX, h\n\t\t\t\t/ UPPER_BOUND_HEIGHT_PIX);\n\t\tif (initialSize <= 2.0f) {\n\t\t\treturn 1;\n\t\t} else if (initialSize < 3.0f) {\n\t\t\treturn 2;\n\t\t} else if (initialSize < 4.0f) {\n\t\t\treturn 3;\n\t\t} else if (initialSize < 5.0f) {\n\t\t\treturn 4;\n\t\t} else if (initialSize < 6.0f) {\n\t\t\treturn 5;\n\t\t} else if (initialSize < 7.0f) {\n\t\t\treturn 6;\n\t\t} else if (initialSize < 8.0f) {\n\t\t\treturn 7;\n\t\t} else {\n\t\t\treturn 8;\n\t\t}\n\t}",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"String getHeight();",
"String getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getSizeOfLargestSquare()\n {\n int i = GRID_SIZE;\n while(getNumSquares(i) == 0) i--;\n return i;\n }",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"private int squareHeight() {\n return (int) getSize().getHeight() / BOARD_HEIGHT;\n }",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"public abstract int getHeight(int pWidth);",
"private Camera.Size getBestPreviewSize(int width, int height,\n Camera.Parameters parameters) {\n Camera.Size result=null;\n\n for (Camera.Size size : parameters.getSupportedPreviewSizes()) {\n if (size.width <= width && size.height<=height) {\n if (result == null) {\n result = size;\n }\n else {\n int resultArea = result.width * result.height;\n int newArea = size.width*size.height;\n\n if (newArea > resultArea) {\n result = size;\n }\n }\n }\n }\n\n return(result);\n }",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"public int getCurrentWidth();",
"public int getCurrentHeight();",
"private float getCurrentDisplayedWidth() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicWidth() * matrixValues[Matrix.MSCALE_X];\n else\n return 0;\n }",
"abstract public int getMinHeight();",
"long getHeight();",
"public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}",
"private int squareWidth() {\n return (int) getSize().getWidth() / BOARD_WIDTH;\n }",
"short getFitWidth();",
"public int getMaxWidth() {\n return Integer.MAX_VALUE;\n }",
"public static int closest( List<Camera.Size> sizes , int width , int height ) {\n\t\tint best = -1;\n\t\tint bestScore = Integer.MAX_VALUE;\n\n\t\tfor( int i = 0; i < sizes.size(); i++ ) {\n\t\t\tCamera.Size s = sizes.get(i);\n\n\t\t\tint dx = s.width-width;\n\t\t\tint dy = s.height-height;\n\n\t\t\tint score = dx*dx + dy*dy;\n\t\t\tif( score < bestScore ) {\n\t\t\t\tbest = i;\n\t\t\t\tbestScore = score;\n\t\t\t}\n\t\t}\n\n\t\treturn best;\n\t}",
"static long largestRectangle(int[] h) {\n\n int max = -1;\n\n for(int i = 0; i < h.length; i++){\n int height = h[i];\n int currentW = 1;\n int pointer = i-1;\n while(pointer >= 0 && h[pointer] >= height){\n currentW++;\n pointer--;\n }\n pointer = i+1;\n while(pointer < h.length && h[pointer] >= height){\n currentW++;\n pointer++;\n }\n\n max = Math.max(max, height*currentW);\n }\n\n return max;\n\n }",
"int height();",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public int height();",
"public int height();",
"public int height();",
"public int height();",
"private int getTargetWidth()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mTargetWidth;\r\n\t\t}\r\n\t}",
"private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}",
"public double getHeight();",
"public double getHeight();",
"int getheight();",
"public float getMaxWidth() {\n Object value = library.getObject(entries, MAX_WIDTH);\n if (value instanceof Number) {\n return ((Number) value).floatValue();\n }\n return 0.0f;\n }",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public int getCurrentWidth() {\n VideoEditTextureView videoEditTextureView2 = this.videoEditTextureView;\n if (videoEditTextureView2 != null) {\n return videoEditTextureView2.getVideoWidth();\n }\n int i = this.bitmapRotation;\n return (i == 90 || i == 270) ? this.bitmap.getHeight() : this.bitmap.getWidth();\n }",
"public abstract int getNormalizedHeight();",
"public static float getDownScaleByMaxHeight(int currentWidth, int currentHeight, int maxHeight) {\r\n float downScale = 1;\r\n if (currentHeight > maxHeight) {\r\n downScale = (float) maxHeight / currentHeight;\r\n }\r\n\r\n return downScale;\r\n }",
"private int measureWidth(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumWidth();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"private int measureHeight(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumHeight();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public int getActualHeightInTiles() {\n return getHeight() / getActualTileHeight();\n }",
"public int getActualWidthInTiles() {\n return getWidth() / getActualTileWidth();\n }",
"double getHeight();",
"private int getCurrentWidth()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mCurrentWidth;\r\n\t\t}\r\n\t}",
"public int getMaxHeight() {\n\t\treturn maxHeight;\n\t\t//Quickly return the stored max height info\n\t}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public static int getMaxAreaBruteForce(List<Integer> heights) {\n int maxArea = 0, N = heights.size();\n for (int i = 0; i < N; i++)\n for (int j = i + 1; j < N; j++) {\n int currArea = Math.min(heights.get(i), heights.get(j)) * (j - i);\n if (currArea > maxArea) maxArea = currArea;\n }\n return maxArea;\n }",
"public int height()\n {\n return Math.max(left, right);\n }",
"public double getWidth() {\r\n \tif (this.x1 >= this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t} else if (this.x1 < this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t}\r\n \treturn(width);\r\n }",
"public static int computeSampleSizeLarger(int w, int h,\n int minSideLength) {\n int initialSize = Math.max(w / minSideLength, h / minSideLength);\n if (initialSize <= 1) return 1;\n\n return initialSize <= 8\n ? Utils.prevPowerOf2(initialSize)\n : initialSize / 8 * 8;\n }",
"public int getHeight() {\n return getTileHeight() * getHeightInTiles();\n }",
"public double getBaseHeight();",
"protected float getLayerSize(int y) {\n\t\tif (y < this.heightLimit * 0.3f) {\n\t\t\treturn -1.0f;\n\t\t} else {\n\t\t\tfloat f = (float) this.heightLimit / 2.0F;\n\t\t\tfloat f1 = f - (float) y;\n\t\t\tfloat f2 = MathHelper.sqrt(f * f - f1 * f1);\n\n\t\t\tif (f1 == 0.0F) {\n\t\t\t\tf2 = f;\n\t\t\t} else if (Math.abs(f1) >= f) {\n\t\t\t\treturn 0.0F;\n\t\t\t}\n\n\t\t\treturn f2 * 0.5F;\n\t\t}\n\t}",
"public int getArea()\n {\n //implement a recursive method\n\t if (width==1) \n\t {\n\t\t return 1;\n\t }\n\t else\n\t {\n\t\t Square smallerSquare = new Square(width - 1);\n\t\t return (2 * width - 1 + smallerSquare.getArea());\n\t }\n }",
"private int getSurfaceSizeIfFitting(GraphNode infoBitNode, Integer width, Integer height,\n boolean exact) {\n Resource imageRes = infoBitNode.getNode();\n if (imageRes instanceof UriRef) {\n String imageUri = ((UriRef)imageRes).getUnicodeString();\n if (!exact && imageUri.contains(AlternativeRepresentationGenerator.EXACT_APPENDIX)) {\n return -1;\n }\n } \n Iterator<Resource> exifWidths = infoBitNode.getObjects(EXIF.width);\n Iterator<Resource> exifHeights = infoBitNode.getObjects(EXIF.height);\n if (!exifWidths.hasNext() || !exifHeights.hasNext()) {\n log.warn(infoBitNode.getNode() + \" doesn't have exif:width and exif:height\");\n return -1;\n }\n int thumbnailWidth = LiteralFactory.getInstance().createObject(\n Integer.class, (TypedLiteral) exifWidths.next());\n int thumbnailHeight = LiteralFactory.getInstance().createObject(\n Integer.class, (TypedLiteral) exifHeights.next());\n if (exact) {\n if (thumbnailHeight == height && thumbnailWidth == width) {\n return 1;\n }\n } else {\n if (thumbnailHeight <= height && thumbnailWidth <= width) {\n return thumbnailWidth * thumbnailHeight;\n }\n }\n return -1;\n }",
"public double getMaxWidth() throws PDFNetException {\n/* 657 */ return GetMaxWidth(this.a);\n/* */ }",
"int getBoundsHeight();",
"public int maxArea(int[] height);",
"String getWidth();",
"String getWidth();",
"public float getHeight();",
"private Integer findSize(Integer findThis){\n return java.lang.Math.abs(board[find(findThis)]);\n }",
"public int getHeight() {\n\t\treturn getHeight(this);\n\t}",
"private float getCurrentDisplayedHeight() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicHeight() * matrixValues[Matrix.MSCALE_Y];\n else\n return 0;\n }",
"public double getScaleToFitWidth() throws FOPException {\n final Dimension extents = this.previewArea.getViewport()\n .getExtentSize();\n return getScaleToFit(extents.getWidth() - 2 * BORDER_SPACING,\n Double.MAX_VALUE);\n }",
"private double getCellSize() {\n double wr = canvas.getWidth() / board.getWidth();\n double hr = canvas.getHeight() / board.getHeight();\n\n return Math.min(wr, hr);\n }"
] |
[
"0.7289788",
"0.70251924",
"0.6950626",
"0.679539",
"0.65808594",
"0.6577948",
"0.6517832",
"0.64286405",
"0.6417299",
"0.629813",
"0.62825245",
"0.6216451",
"0.61900336",
"0.61850417",
"0.61850417",
"0.61696035",
"0.61696035",
"0.61696035",
"0.61696035",
"0.61696035",
"0.61696035",
"0.6159363",
"0.61556685",
"0.61381084",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.6122127",
"0.61185855",
"0.6115193",
"0.61123127",
"0.60923636",
"0.6078756",
"0.60762763",
"0.6072599",
"0.6064704",
"0.6063867",
"0.6060561",
"0.60036933",
"0.5981362",
"0.59780854",
"0.5975522",
"0.5971949",
"0.5950766",
"0.5937396",
"0.5937396",
"0.5937396",
"0.5937396",
"0.59272194",
"0.5917194",
"0.5915765",
"0.5915765",
"0.59156144",
"0.59084576",
"0.59074056",
"0.58989316",
"0.5898122",
"0.58956",
"0.5895184",
"0.5894866",
"0.5888617",
"0.58838415",
"0.5883035",
"0.5879222",
"0.5875895",
"0.5865261",
"0.5860131",
"0.5852516",
"0.5833749",
"0.5829101",
"0.5816367",
"0.5800468",
"0.5799899",
"0.5797395",
"0.57915944",
"0.5790569",
"0.57872427",
"0.5779268",
"0.5777",
"0.57737666",
"0.57737666",
"0.5771494",
"0.57643354",
"0.57624745",
"0.5748646",
"0.57424754",
"0.5741889"
] |
0.7600718
|
0
|
Returns the best width for current height.
|
public double getBestWidth(double aValue) { return Math.max(getMinWidth(aValue), getPrefWidth(aValue)); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getBestWidth() { return getBestWidth(-1); }",
"public double getBestHeight() { return getBestHeight(-1); }",
"protected double computePrefWidth(double aHeight) { return getWidth(); }",
"public double getBestHeight(double aValue) { return Math.max(getMinHeight(aValue), getPrefHeight(aValue)); }",
"public int width()\n {\n return Math.max(top, bottom);\n }",
"short getFitHeight();",
"Integer getCurrentHeight();",
"public static float getDownScaleByMaxWidth(int currentWidth, int currentHeight, int maxWitdh) {\r\n float downScale = 1;\r\n if (currentWidth > maxWitdh) {\r\n downScale = (float) maxWitdh / currentWidth;\r\n }\r\n\r\n return downScale;\r\n }",
"Integer getCurrentWidth();",
"private Size getBestSupportedSize(List<Size> sizes, int width, int height) {\n\t\tSize bestSize = sizes.get(0);\n\t\tint largestArea = bestSize.width * bestSize.height;\n\t\tfor (Size size : sizes) {\n\t\t\tint area = size.height * size.width;\n\t\t\tif (area > largestArea) {\n\t\t\t\tbestSize = size;\n\t\t\t\tlargestArea = area;\n\t\t\t}\n\t\t}\n\t\treturn bestSize;\n\t}",
"protected double computePrefHeight(double aWidth) { return getHeight(); }",
"private int computeSampleSizeLarger(double w, double h) {\n\t\tdouble initialSize = Math.max(w / UPPER_BOUND_WIDTH_PIX, h\n\t\t\t\t/ UPPER_BOUND_HEIGHT_PIX);\n\t\tif (initialSize <= 2.0f) {\n\t\t\treturn 1;\n\t\t} else if (initialSize < 3.0f) {\n\t\t\treturn 2;\n\t\t} else if (initialSize < 4.0f) {\n\t\t\treturn 3;\n\t\t} else if (initialSize < 5.0f) {\n\t\t\treturn 4;\n\t\t} else if (initialSize < 6.0f) {\n\t\t\treturn 5;\n\t\t} else if (initialSize < 7.0f) {\n\t\t\treturn 6;\n\t\t} else if (initialSize < 8.0f) {\n\t\t\treturn 7;\n\t\t} else {\n\t\t\treturn 8;\n\t\t}\n\t}",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"String getHeight();",
"String getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getSizeOfLargestSquare()\n {\n int i = GRID_SIZE;\n while(getNumSquares(i) == 0) i--;\n return i;\n }",
"public int getWidth() {\n return (int) Math.round(width);\n }",
"private int squareHeight() {\n return (int) getSize().getHeight() / BOARD_HEIGHT;\n }",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"public abstract int getHeight(int pWidth);",
"private Camera.Size getBestPreviewSize(int width, int height,\n Camera.Parameters parameters) {\n Camera.Size result=null;\n\n for (Camera.Size size : parameters.getSupportedPreviewSizes()) {\n if (size.width <= width && size.height<=height) {\n if (result == null) {\n result = size;\n }\n else {\n int resultArea = result.width * result.height;\n int newArea = size.width*size.height;\n\n if (newArea > resultArea) {\n result = size;\n }\n }\n }\n }\n\n return(result);\n }",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"public int getCurrentWidth();",
"public int getCurrentHeight();",
"private float getCurrentDisplayedWidth() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicWidth() * matrixValues[Matrix.MSCALE_X];\n else\n return 0;\n }",
"abstract public int getMinHeight();",
"long getHeight();",
"public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}",
"private int squareWidth() {\n return (int) getSize().getWidth() / BOARD_WIDTH;\n }",
"short getFitWidth();",
"public int getMaxWidth() {\n return Integer.MAX_VALUE;\n }",
"public static int closest( List<Camera.Size> sizes , int width , int height ) {\n\t\tint best = -1;\n\t\tint bestScore = Integer.MAX_VALUE;\n\n\t\tfor( int i = 0; i < sizes.size(); i++ ) {\n\t\t\tCamera.Size s = sizes.get(i);\n\n\t\t\tint dx = s.width-width;\n\t\t\tint dy = s.height-height;\n\n\t\t\tint score = dx*dx + dy*dy;\n\t\t\tif( score < bestScore ) {\n\t\t\t\tbest = i;\n\t\t\t\tbestScore = score;\n\t\t\t}\n\t\t}\n\n\t\treturn best;\n\t}",
"static long largestRectangle(int[] h) {\n\n int max = -1;\n\n for(int i = 0; i < h.length; i++){\n int height = h[i];\n int currentW = 1;\n int pointer = i-1;\n while(pointer >= 0 && h[pointer] >= height){\n currentW++;\n pointer--;\n }\n pointer = i+1;\n while(pointer < h.length && h[pointer] >= height){\n currentW++;\n pointer++;\n }\n\n max = Math.max(max, height*currentW);\n }\n\n return max;\n\n }",
"int height();",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public int height();",
"public int height();",
"public int height();",
"public int height();",
"private int getTargetWidth()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mTargetWidth;\r\n\t\t}\r\n\t}",
"private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}",
"public double getHeight();",
"public double getHeight();",
"int getheight();",
"public float getMaxWidth() {\n Object value = library.getObject(entries, MAX_WIDTH);\n if (value instanceof Number) {\n return ((Number) value).floatValue();\n }\n return 0.0f;\n }",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public int getCurrentWidth() {\n VideoEditTextureView videoEditTextureView2 = this.videoEditTextureView;\n if (videoEditTextureView2 != null) {\n return videoEditTextureView2.getVideoWidth();\n }\n int i = this.bitmapRotation;\n return (i == 90 || i == 270) ? this.bitmap.getHeight() : this.bitmap.getWidth();\n }",
"public abstract int getNormalizedHeight();",
"public static float getDownScaleByMaxHeight(int currentWidth, int currentHeight, int maxHeight) {\r\n float downScale = 1;\r\n if (currentHeight > maxHeight) {\r\n downScale = (float) maxHeight / currentHeight;\r\n }\r\n\r\n return downScale;\r\n }",
"private int measureWidth(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumWidth();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"private int measureHeight(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumHeight();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public int getActualHeightInTiles() {\n return getHeight() / getActualTileHeight();\n }",
"public int getActualWidthInTiles() {\n return getWidth() / getActualTileWidth();\n }",
"double getHeight();",
"private int getCurrentWidth()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mCurrentWidth;\r\n\t\t}\r\n\t}",
"public int getMaxHeight() {\n\t\treturn maxHeight;\n\t\t//Quickly return the stored max height info\n\t}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public static int getMaxAreaBruteForce(List<Integer> heights) {\n int maxArea = 0, N = heights.size();\n for (int i = 0; i < N; i++)\n for (int j = i + 1; j < N; j++) {\n int currArea = Math.min(heights.get(i), heights.get(j)) * (j - i);\n if (currArea > maxArea) maxArea = currArea;\n }\n return maxArea;\n }",
"public int height()\n {\n return Math.max(left, right);\n }",
"public double getWidth() {\r\n \tif (this.x1 >= this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t} else if (this.x1 < this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t}\r\n \treturn(width);\r\n }",
"public static int computeSampleSizeLarger(int w, int h,\n int minSideLength) {\n int initialSize = Math.max(w / minSideLength, h / minSideLength);\n if (initialSize <= 1) return 1;\n\n return initialSize <= 8\n ? Utils.prevPowerOf2(initialSize)\n : initialSize / 8 * 8;\n }",
"public int getHeight() {\n return getTileHeight() * getHeightInTiles();\n }",
"public double getBaseHeight();",
"protected float getLayerSize(int y) {\n\t\tif (y < this.heightLimit * 0.3f) {\n\t\t\treturn -1.0f;\n\t\t} else {\n\t\t\tfloat f = (float) this.heightLimit / 2.0F;\n\t\t\tfloat f1 = f - (float) y;\n\t\t\tfloat f2 = MathHelper.sqrt(f * f - f1 * f1);\n\n\t\t\tif (f1 == 0.0F) {\n\t\t\t\tf2 = f;\n\t\t\t} else if (Math.abs(f1) >= f) {\n\t\t\t\treturn 0.0F;\n\t\t\t}\n\n\t\t\treturn f2 * 0.5F;\n\t\t}\n\t}",
"public int getArea()\n {\n //implement a recursive method\n\t if (width==1) \n\t {\n\t\t return 1;\n\t }\n\t else\n\t {\n\t\t Square smallerSquare = new Square(width - 1);\n\t\t return (2 * width - 1 + smallerSquare.getArea());\n\t }\n }",
"private int getSurfaceSizeIfFitting(GraphNode infoBitNode, Integer width, Integer height,\n boolean exact) {\n Resource imageRes = infoBitNode.getNode();\n if (imageRes instanceof UriRef) {\n String imageUri = ((UriRef)imageRes).getUnicodeString();\n if (!exact && imageUri.contains(AlternativeRepresentationGenerator.EXACT_APPENDIX)) {\n return -1;\n }\n } \n Iterator<Resource> exifWidths = infoBitNode.getObjects(EXIF.width);\n Iterator<Resource> exifHeights = infoBitNode.getObjects(EXIF.height);\n if (!exifWidths.hasNext() || !exifHeights.hasNext()) {\n log.warn(infoBitNode.getNode() + \" doesn't have exif:width and exif:height\");\n return -1;\n }\n int thumbnailWidth = LiteralFactory.getInstance().createObject(\n Integer.class, (TypedLiteral) exifWidths.next());\n int thumbnailHeight = LiteralFactory.getInstance().createObject(\n Integer.class, (TypedLiteral) exifHeights.next());\n if (exact) {\n if (thumbnailHeight == height && thumbnailWidth == width) {\n return 1;\n }\n } else {\n if (thumbnailHeight <= height && thumbnailWidth <= width) {\n return thumbnailWidth * thumbnailHeight;\n }\n }\n return -1;\n }",
"public double getMaxWidth() throws PDFNetException {\n/* 657 */ return GetMaxWidth(this.a);\n/* */ }",
"int getBoundsHeight();",
"public int maxArea(int[] height);",
"String getWidth();",
"String getWidth();",
"public float getHeight();",
"private Integer findSize(Integer findThis){\n return java.lang.Math.abs(board[find(findThis)]);\n }",
"public int getHeight() {\n\t\treturn getHeight(this);\n\t}",
"private float getCurrentDisplayedHeight() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicHeight() * matrixValues[Matrix.MSCALE_Y];\n else\n return 0;\n }",
"public double getScaleToFitWidth() throws FOPException {\n final Dimension extents = this.previewArea.getViewport()\n .getExtentSize();\n return getScaleToFit(extents.getWidth() - 2 * BORDER_SPACING,\n Double.MAX_VALUE);\n }",
"private double getCellSize() {\n double wr = canvas.getWidth() / board.getWidth();\n double hr = canvas.getHeight() / board.getHeight();\n\n return Math.min(wr, hr);\n }"
] |
[
"0.7600718",
"0.7289788",
"0.6950626",
"0.679539",
"0.65808594",
"0.6577948",
"0.6517832",
"0.64286405",
"0.6417299",
"0.629813",
"0.62825245",
"0.6216451",
"0.61900336",
"0.61850417",
"0.61850417",
"0.61696035",
"0.61696035",
"0.61696035",
"0.61696035",
"0.61696035",
"0.61696035",
"0.6159363",
"0.61556685",
"0.61381084",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.61319727",
"0.6122127",
"0.61185855",
"0.6115193",
"0.61123127",
"0.60923636",
"0.6078756",
"0.60762763",
"0.6072599",
"0.6064704",
"0.6063867",
"0.6060561",
"0.60036933",
"0.5981362",
"0.59780854",
"0.5975522",
"0.5971949",
"0.5950766",
"0.5937396",
"0.5937396",
"0.5937396",
"0.5937396",
"0.59272194",
"0.5917194",
"0.5915765",
"0.5915765",
"0.59156144",
"0.59084576",
"0.59074056",
"0.58989316",
"0.5898122",
"0.58956",
"0.5895184",
"0.5894866",
"0.5888617",
"0.58838415",
"0.5883035",
"0.5879222",
"0.5875895",
"0.5865261",
"0.5860131",
"0.5852516",
"0.5833749",
"0.5829101",
"0.5816367",
"0.5800468",
"0.5799899",
"0.5797395",
"0.57915944",
"0.5790569",
"0.57872427",
"0.5779268",
"0.5777",
"0.57737666",
"0.57737666",
"0.5771494",
"0.57643354",
"0.57624745",
"0.5748646",
"0.57424754",
"0.5741889"
] |
0.70251924
|
2
|
Returns the best height for current width.
|
public double getBestHeight() { return getBestHeight(-1); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getBestHeight(double aValue) { return Math.max(getMinHeight(aValue), getPrefHeight(aValue)); }",
"Integer getCurrentHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"long getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"public int getCurrentHeight();",
"public abstract int getHeight(int pWidth);",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public double getHeight();",
"public double getHeight();",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"short getFitHeight();",
"protected double computePrefHeight(double aWidth) { return getHeight(); }",
"public double getBestWidth() { return getBestWidth(-1); }",
"public float getHeight();",
"double getHeight();",
"String getHeight();",
"String getHeight();",
"public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public int getHeight() {\n\t\treturn getHeight(this);\n\t}",
"public int getMaxHeight() {\n\t\treturn maxHeight;\n\t\t//Quickly return the stored max height info\n\t}",
"private float getCurrentDisplayedHeight() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicHeight() * matrixValues[Matrix.MSCALE_Y];\n else\n return 0;\n }",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"int getheight();",
"abstract public int getMinHeight();",
"public double getBaseHeight();",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public int height()\n {\n return Math.max(left, right);\n }",
"public int getHeight() {\n return getTileHeight() * getHeightInTiles();\n }",
"public double getHeight() {\n\t\t\treturn height.get();\n\t\t}",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getHeight() { return height; }",
"private int measureHeight(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumHeight();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"int height();",
"public float getHeight()\n {\n return getUpperRightY() - getLowerLeftY();\n }",
"public abstract int getHeight();",
"public abstract int getHeight();",
"private int getHeight() {\r\n if (ix < 0) \r\n throw new NoSuchElementException();\r\n int result = tileHeight;\r\n if ((getY() == numRows - 1) && (height % tileHeight != 0)) {\r\n result = height % tileHeight;\r\n }\r\n \r\n return result;\r\n }",
"private int getCurrentHeight()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mCurrentHeight;\r\n\t\t}\r\n\t}",
"public int height();",
"public int height();",
"public int height();",
"public int height();",
"public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}",
"public int getHeight() {return height;}",
"public final int getHeight(){\n return height_;\n }",
"public final int getHeight() {\r\n return height;\r\n }",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() \n\t{\n\t\treturn height;\n\t}",
"public double getMaxHeight()\n\t{\n\t\treturn this.maxHeight;\n\t}",
"public double getHeight() {\n return this.height * 0.393701;\n }",
"public int getHeight() {\n return height;\n }",
"@Override\n public int getHeight() {\n colorSpaceType.assertNumElements(buffer.getFlatSize(), height, width);\n return height;\n }",
"public int height() {\n if (root == null) {\n return -1;\n } else {\n return getHeight(root, 0);\n }\n }",
"public int getHeight()\n {\n return height;\n }",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public abstract float getHeight();",
"private double getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight() {\r\n return Height;\r\n }",
"private int squareHeight() {\n return (int) getSize().getHeight() / BOARD_HEIGHT;\n }",
"int getHeight() {return height;}",
"private Size getBestSupportedSize(List<Size> sizes, int width, int height) {\n\t\tSize bestSize = sizes.get(0);\n\t\tint largestArea = bestSize.width * bestSize.height;\n\t\tfor (Size size : sizes) {\n\t\t\tint area = size.height * size.width;\n\t\t\tif (area > largestArea) {\n\t\t\t\tbestSize = size;\n\t\t\t\tlargestArea = area;\n\t\t\t}\n\t\t}\n\t\treturn bestSize;\n\t}",
"public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}"
] |
[
"0.7485897",
"0.7205745",
"0.6967227",
"0.6967227",
"0.6967227",
"0.6967227",
"0.6967227",
"0.6967227",
"0.6908262",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6903595",
"0.684311",
"0.68388706",
"0.68337464",
"0.68337464",
"0.6820281",
"0.6793899",
"0.6793092",
"0.67895293",
"0.6778314",
"0.6776701",
"0.67617923",
"0.67617923",
"0.6753689",
"0.673249",
"0.6711508",
"0.6706976",
"0.66965556",
"0.6662618",
"0.6659879",
"0.66514516",
"0.6574165",
"0.65724486",
"0.65269107",
"0.652474",
"0.65007585",
"0.6495856",
"0.6481079",
"0.6465103",
"0.64605397",
"0.64580333",
"0.6457591",
"0.644598",
"0.644598",
"0.64432186",
"0.644285",
"0.64273196",
"0.64273196",
"0.64273196",
"0.64273196",
"0.6415214",
"0.6413608",
"0.64069337",
"0.6398445",
"0.63981676",
"0.63981676",
"0.6396624",
"0.63943785",
"0.63925767",
"0.6385393",
"0.6384725",
"0.63839746",
"0.63834244",
"0.63834",
"0.6381389",
"0.6380105",
"0.6374634",
"0.6374634",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6368585",
"0.6368375",
"0.63651145",
"0.6363542",
"0.63616115",
"0.635773"
] |
0.79327756
|
0
|
Returns the best height for current width.
|
public double getBestHeight(double aValue) { return Math.max(getMinHeight(aValue), getPrefHeight(aValue)); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getBestHeight() { return getBestHeight(-1); }",
"Integer getCurrentHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"public int getHeight();",
"long getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"public int getCurrentHeight();",
"public abstract int getHeight(int pWidth);",
"public int getHeight() {\n return (int) Math.round(height);\n }",
"public double getHeight();",
"public double getHeight();",
"public int getHeight() {\n // Replace the following line with your solution.\n return height;\n }",
"short getFitHeight();",
"protected double computePrefHeight(double aWidth) { return getHeight(); }",
"public double getBestWidth() { return getBestWidth(-1); }",
"public float getHeight();",
"double getHeight();",
"String getHeight();",
"String getHeight();",
"public int getHeight() {\n\t\treturn (int) (Math.log(size) / Math.log(2));\n\t}",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public int getHeight() {\n\t\treturn getHeight(this);\n\t}",
"public int getMaxHeight() {\n\t\treturn maxHeight;\n\t\t//Quickly return the stored max height info\n\t}",
"private float getCurrentDisplayedHeight() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicHeight() * matrixValues[Matrix.MSCALE_Y];\n else\n return 0;\n }",
"public int getMaxHeight() {\n return Integer.MAX_VALUE;\n }",
"int getheight();",
"abstract public int getMinHeight();",
"public double getBaseHeight();",
"public static int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public double getMinHeight() { Double h = (Double)get(\"MinHeight\"); return h!=null? h : 0; }",
"public int height()\n {\n return Math.max(left, right);\n }",
"public int getHeight() {\n return getTileHeight() * getHeightInTiles();\n }",
"public double getHeight() {\n\t\t\treturn height.get();\n\t\t}",
"public int getHeight()\r\n\t{\r\n\t\treturn height;\r\n\t}",
"public int getHeight() { return height; }",
"private int measureHeight(int measureSpec) {\n\t\tint result = 0;\n\t\tint specMode = MeasureSpec.getMode(measureSpec);\n\t\tint specSize = MeasureSpec.getSize(measureSpec);\n\n\t\tif (specMode == MeasureSpec.EXACTLY) {\n\t\t\tresult = specSize;\n\t\t} else {\n\t\t\tresult = getSuggestedMinimumHeight();\n\t\t\tif (specMode == MeasureSpec.AT_MOST) {\n\t\t\t\tresult = Math.min(result, specSize);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"int height();",
"public float getHeight()\n {\n return getUpperRightY() - getLowerLeftY();\n }",
"public abstract int getHeight();",
"public abstract int getHeight();",
"private int getHeight() {\r\n if (ix < 0) \r\n throw new NoSuchElementException();\r\n int result = tileHeight;\r\n if ((getY() == numRows - 1) && (height % tileHeight != 0)) {\r\n result = height % tileHeight;\r\n }\r\n \r\n return result;\r\n }",
"private int getCurrentHeight()\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\treturn mCurrentHeight;\r\n\t\t}\r\n\t}",
"public int height();",
"public int height();",
"public int height();",
"public int height();",
"public int getHeight()\r\n\t{\r\n\t\treturn HEIGHT;\r\n\t}",
"public int getHeight() {return height;}",
"public final int getHeight(){\n return height_;\n }",
"public final int getHeight() {\r\n return height;\r\n }",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() {\r\n\t\treturn height;\r\n\t}",
"public int getHeight() \n\t{\n\t\treturn height;\n\t}",
"public double getMaxHeight()\n\t{\n\t\treturn this.maxHeight;\n\t}",
"public double getHeight() {\n return this.height * 0.393701;\n }",
"public int getHeight() {\n return height;\n }",
"@Override\n public int getHeight() {\n colorSpaceType.assertNumElements(buffer.getFlatSize(), height, width);\n return height;\n }",
"public int height() {\n if (root == null) {\n return -1;\n } else {\n return getHeight(root, 0);\n }\n }",
"public int getHeight()\n {\n return height;\n }",
"public double getHeight()\r\n {\r\n return height;\r\n }",
"public abstract float getHeight();",
"private double getHeight() {\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight()\n\t{\n\t\treturn height;\n\t}",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight() {\n return height;\n }",
"public int getHeight()\n {\n return height;\n }",
"public int getHeight() {\r\n return Height;\r\n }",
"private int squareHeight() {\n return (int) getSize().getHeight() / BOARD_HEIGHT;\n }",
"int getHeight() {return height;}",
"private Size getBestSupportedSize(List<Size> sizes, int width, int height) {\n\t\tSize bestSize = sizes.get(0);\n\t\tint largestArea = bestSize.width * bestSize.height;\n\t\tfor (Size size : sizes) {\n\t\t\tint area = size.height * size.width;\n\t\t\tif (area > largestArea) {\n\t\t\t\tbestSize = size;\n\t\t\t\tlargestArea = area;\n\t\t\t}\n\t\t}\n\t\treturn bestSize;\n\t}",
"public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}"
] |
[
"0.79327756",
"0.7205745",
"0.6967227",
"0.6967227",
"0.6967227",
"0.6967227",
"0.6967227",
"0.6967227",
"0.6908262",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6906446",
"0.6903595",
"0.684311",
"0.68388706",
"0.68337464",
"0.68337464",
"0.6820281",
"0.6793899",
"0.6793092",
"0.67895293",
"0.6778314",
"0.6776701",
"0.67617923",
"0.67617923",
"0.6753689",
"0.673249",
"0.6711508",
"0.6706976",
"0.66965556",
"0.6662618",
"0.6659879",
"0.66514516",
"0.6574165",
"0.65724486",
"0.65269107",
"0.652474",
"0.65007585",
"0.6495856",
"0.6481079",
"0.6465103",
"0.64605397",
"0.64580333",
"0.6457591",
"0.644598",
"0.644598",
"0.64432186",
"0.644285",
"0.64273196",
"0.64273196",
"0.64273196",
"0.64273196",
"0.6415214",
"0.6413608",
"0.64069337",
"0.6398445",
"0.63981676",
"0.63981676",
"0.6396624",
"0.63943785",
"0.63925767",
"0.6385393",
"0.6384725",
"0.63839746",
"0.63834244",
"0.63834",
"0.6381389",
"0.6380105",
"0.6374634",
"0.6374634",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6370188",
"0.6368585",
"0.6368375",
"0.63651145",
"0.6363542",
"0.63616115",
"0.635773"
] |
0.7485897
|
1
|
Sets the shape to its best height (which is just the current height for most shapes).
|
public void setBestHeight() { setHeight(getBestHeight()); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setBestSize() { setSize(getBestWidth(), getBestHeight()); }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"void setFitHeight(short height);",
"public void setHeight(int height);",
"public void setHeight(int height);",
"public void setHeight(double value) {\n this.height = value;\n }",
"public void setHeight(int value) {\n this.height = value;\n }",
"void setHeight(int height);",
"void setHeight(int height);",
"public void setHeight(int h)\n {\n height = h;\n }",
"public void setHeight(int h){ heightRadius = h; }",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"public void setHeight(int newValue)\n {\n height = newValue;\n }",
"void setHeight(VariableAmount height);",
"public void setHeight(double height){\n h=height;\r\n }",
"public double getBestHeight() { return getBestHeight(-1); }",
"public void setHeight(double height) {\n this.height = height;\n }",
"private void setHeight(long value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n }",
"public void setHeight(float height) {\n this.yRadius = 0.5f * height;\n }",
"public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }",
"public void setHeight(int h) {\n this.H = h;\n }",
"public void setHeight(int l){\n \theight = l;\n }",
"public void setHeight(double height) {\r\n this.height = height;\r\n }",
"private void setHeight(float height){\n this.height = height;\n }",
"public void setHeight(int newValue) {\n seatHeight = newValue;\n }",
"public void determineMaximumHeight() {\n\t\tthis.setMaximumHeight(maxDepth(root));\n\t}",
"public void setHeight(double height) {\n this.height = height;\n }",
"@Override\n\tpublic void setHeight(float height) {\n\n\t}",
"public void update_height() {\r\n int tmp_height = 0;\r\n int tmp_left = -1;\r\n int tmp_right = -1;\r\n\r\n // set height of null children to -1\r\n if (leftChild != null) {\r\n tmp_left = leftChild.height;\r\n }\r\n if (rightChild != null) {\r\n tmp_right = rightChild.height;\r\n }\r\n\r\n // find highest child\r\n if (tmp_left > tmp_right) {\r\n tmp_height = tmp_left;\r\n }\r\n else {\r\n tmp_height = tmp_right;\r\n }\r\n\r\n // update this node's height\r\n height = tmp_height + 1;\r\n }",
"public void setHeight(int height) {\n\tthis.height = height;\n\tcalculateHeightRatio();\n }",
"public void setHeight(int height) {\n this.height = height;\n }",
"public void setHeight(final String value)\n {\n height = value;\n }",
"protected void setShape(Shape shape) {\n\t\tif (shape != null) {\n\t\t\t_shape = shape;\n\t\t\tthis.setLocation(shape.getLocation());\n\t\t\tthis.setDimensions(shape.getDimensions());\n\t\t}\n\t}",
"@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}",
"public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }",
"public void setHeight(int height) {\r\n this.height = height;\r\n }",
"@Override\r\n public void setShape (Shape shape)\r\n {\r\n setShape(shape, Evaluation.ALGORITHM);\r\n }",
"public void setHeight(double h) {\n\t\t\theight.set(clamp(h, HEIGHT_MIN, HEIGHT_MAX));\n\t\t}",
"public void setHeight(int height) {\n if(height < 0) throw new NegativeSizeException(\"Negative height\"); \n \tthis.height = height;\n }",
"public void setHeight(int newHeight) {\n roomHeight = newHeight;\n }",
"public void setHeight(int height) {\n this.height = height;\n }",
"public void setHeight(int height) {\n this.height = height;\n }",
"public void setCurrentHeight(final int currentHeight);",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(double height) {\n\t\tthis.height = height;\n\t}",
"public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }",
"public void setHeight(Short height) {\r\n this.height = height;\r\n }",
"@Override\r\n public void setHeight(String height) {\n }",
"public void setHeight(double height) {\n\t\t this.height = height;\n\t }",
"private void setTargetHeight(int height)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetHeight = height;\r\n\t\t}\r\n\t}",
"public void setObject(double height) {\n // remove the object from the pane if it's already existed\n removeFromPane(object);\n \n // create object rectangle\n // x coordinate = Xcenter - half of the rectangle's width\n // y coordinate = Y coordinate of the ground line - rectangle's height\n object = new Rectangle(objectWidth, height);\n object.setLayoutX(objectCenterX - objectWidth / 2);\n object.setLayoutY(groundLineY - height);\n\n // Check the comboBox to set the corresponding object\n // fill the appropriate image to the object rectangle\n if (pickPicture.getValue().equals(\"Candle\")) {\n object.setFill(AssetManager.getCandleImage());\n } else if (pickPicture.getValue().equals(\"Can\")) {\n object.setFill(AssetManager.getCanImage());\n } else {\n object.setFill(AssetManager.getPencilImage());\n }\n\n // add the object rectangle to the pane\n addToPane(object);\n\n // update the object height value\n objectHeight = object.getHeight();\n }",
"public final int getHeight() {\r\n return (int) size.y();\r\n }",
"public void assignShape() {\n\t\t\n\t}",
"public void setHeight(int height) {\r\n\t\tthis.height = height;\r\n\t}",
"public void setHeight(int height) {\n if (height > 0) {\n this.height = height;\n }\n }",
"public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }",
"public void setHeight(int height) {\n\t\th = height;\n\t}",
"private void setCurrentHeight(int height)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmCurrentHeight = height;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}",
"public void setHeight(int height) {\n\t\t\tthis.rank = height; \n\t\t}",
"public void setHeight(double aValue)\n{\n if(_height==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Height\", _height, _height = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}",
"public void setHeight( int height ) {\n\t\t_height = height;\n\t}",
"public void setArcheight(double ah) {\n\t\t\tarcheight.set(ah);\n\t\t}",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public void changeHeight(double y)\r\n {\n }",
"public final native void setHeight(double height) /*-{\n this.setHeight(height);\n }-*/;",
"double getNewHeight();",
"public void moveToHeight(double height) {\n\t\t//Sin(theta) = height/length\n\t\t//angleSetpoint = Math.toDegrees(Math.asin(height/Constants.BreachArm.ARM_LENGTH));\n\t}",
"Builder height(VariableAmount height);",
"short getFitHeight();",
"public int getHeight() {return height;}",
"public int getHeight() { return height; }",
"public void setShape( final FireShapes shape ) {\r\n\t\tthis.shape = shape;\r\n\t}",
"public void setHeight(int height) {\n\t\tthis.height = height;\n\t}",
"public void setHeight(int height) {\n\t\tthis.height = height;\n\t}",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"@Test\n public void testSetHeight() {\n int height = 0;\n AVLNode<Integer> instance = new AVLNode<> ( );\n instance.setHeight( height );\n assertEquals( instance.getHeight(), height);\n }",
"public double getBestHeight(double aValue) { return Math.max(getMinHeight(aValue), getPrefHeight(aValue)); }",
"public void setHeight(String height) {\r\n this.height = height;\r\n }",
"public void setMinHeight(double aHeight)\n{\n double h = aHeight<=0? 0 : aHeight; if(h==getMinHeight()) return;\n firePropertyChange(\"MinHeight\", put(\"MinHeight\", h), h, -1);\n}",
"Integer getDefaultHeight();",
"@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}",
"public boolean setShapeSize(DimensionF shapeSize) {\n if (ObjectUtils.equals(this.shapeSize, shapeSize))\n return false;\n this.shapeSize = shapeSize;\n return true;\n }",
"public final int getHeight(){\n return height_;\n }",
"public void setHeight(int height) {\n int oldValue = mHeight;\n mHeight = height;\n pcs.firePropertyChange(PROP_HEIGHT, oldValue, mHeight);\n }",
"public void setHeight(Integer height)\n {\n getStateHelper().put(PropertyKeys.height, height);\n }",
"default void setHeight(int height) {\n setHeight(VariableAmount.fixed(height));\n }",
"public void setHeight(String height) {\n this.height = height;\n }",
"public void setTo(BSPPolygon poly) {\n if (!poly.isWall()) {\n throw new IllegalArgumentException(\n \"BSPPolygon not a wall\");\n }\n top = java.lang.Float.MIN_VALUE;\n bottom = java.lang.Float.MAX_VALUE;\n // find the two points (ignoring y) that are farthest apart\n float distance = -1;\n for (int i=0; i<poly.getNumVertices(); i++) {\n Vector3D v1 = poly.getVertex(i);\n top = Math.max(top, v1.y);\n bottom = Math.min(bottom, v1.y);\n for (int j=0; j<poly.getNumVertices(); j++) {\n Vector3D v2 = poly.getVertex(j);\n float newDist = (float)Point2D.distanceSq(\n v1.x, v1.z, v2.x, v2.z);\n if (newDist > distance) {\n distance = newDist;\n x1 = v1.x;\n y1 = v1.z;\n x2 = v2.x;\n y2 = v2.z;\n }\n }\n }\n nx = poly.getNormal().x;\n ny = poly.getNormal().z;\n }",
"protected void refineShape(FoundShape shape) {\n\n\t\tShapeDescription shapeDesc = models.get(shape.whichShape);\n\n\t\trefine.configure(shapeDesc.modelFitter, shapeDesc.modelDistance, shapeDesc.modelCheck, shapeDesc.codec, shapeDesc.thresholdFit);\n\t\trefine.refine(shape.points, shape.modelParam, true);\n\t\t// todo handle if refine is false\n\t}",
"void adjustHeight(int targetHeight) {\n class Group {\n\n private final int y;\n private int h;\n private final LinkedList<Cell> cells = new LinkedList<>();\n\n public Group(int y) {\n this.y = y;\n h = 0;\n }\n\n }\n LinkedList<Group> groups = new LinkedList<>();\n groups.add(new Group(0));\n mCells.forEach((cell) -> {\n //While a cell extent is not reached, keep add cells to the group\n if (!cell.isExtension()) {\n groups.getLast().cells.add(cell);\n } else {\n //Close current group and create a new one\n groups.getLast().h = cell.getY() - groups.getLast().y;\n groups.add(new Group(cell.getY() + cell.getHeight()));\n }\n });\n groups.getLast().h = targetHeight - groups.getLast().y;\n\n //Adjust height for each group independently\n groups.stream().filter((group) -> !(group.cells.isEmpty())).forEachOrdered((group) -> {\n double alpha = group.h / group.cells\n .stream()\n .mapToInt(Cell::getHeight)\n .sum();\n\n group.cells.forEach((cell) -> {\n cell.scale(alpha);\n });\n });\n }",
"private void refreshHeight() {\n\t\tint lines = Math.min(maxLineCount, Math.max(minLineCount, text\n\t\t\t\t.getLineCount()));\n\t\tint newHeight = lines * text.getLineHeight();\n\n\t\tGridData data = (GridData) text.getLayoutData();\n\t\tif (data.heightHint != newHeight) {\n\t\t\tdata.heightHint = newHeight;\n\t\t\tlayout();\n\t\t}\n\t}",
"public void setHeight (int height) {\n if (height < 10) {\n Log.warning(\"Attempted to set a checkbox height of less than 10 pixels.\");\n return;\n }\n\n synchronized (this) {\n this.height = height;\n }\n }",
"public float getHeight() {\n\treturn heightRatio;\n }",
"@Override\n\tpublic void setHeight(int y) {\n\t\tdelegate.setHeight(y);\n\t}",
"public void setElevator(HatchHeights height) {\n setElevator(toTicks(height));\n }",
"int getHeight() {return height;}",
"@Test(expected = IllegalArgumentException.class)\n public void testRectangleScaleHeightToZero() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), 1, 100, 50.0, 100.0));\n model1.addShape(Oval.createOval(\"C\", new Point.Double(500, 100),\n new Color(0, 0, 1), 6, 100, 60.0, 30.0));\n model1.addAction(ScaleRectangleAction.createScaleRectangleAction(\"R\", 10, 50,\n 50, 100, 10, 0));\n }"
] |
[
"0.6116299",
"0.6053338",
"0.60286117",
"0.5991383",
"0.5985524",
"0.5985524",
"0.5974629",
"0.5917945",
"0.5898791",
"0.5898791",
"0.583902",
"0.5838804",
"0.57992285",
"0.5791634",
"0.5784237",
"0.5778481",
"0.5751287",
"0.5665679",
"0.5664511",
"0.56645036",
"0.56461686",
"0.56442356",
"0.5624224",
"0.56162584",
"0.55863625",
"0.5582332",
"0.5566187",
"0.55592066",
"0.55416954",
"0.5468174",
"0.5463247",
"0.5447658",
"0.54466945",
"0.5436102",
"0.5416869",
"0.5406461",
"0.5405118",
"0.5400197",
"0.5374657",
"0.5364246",
"0.5355636",
"0.5338486",
"0.5338486",
"0.53379977",
"0.533627",
"0.533627",
"0.533627",
"0.5316551",
"0.530425",
"0.529101",
"0.5288231",
"0.52865714",
"0.5275512",
"0.526359",
"0.52477163",
"0.5247027",
"0.52358776",
"0.5231158",
"0.5227327",
"0.52005875",
"0.51688135",
"0.51556146",
"0.514701",
"0.5141664",
"0.5133492",
"0.51313096",
"0.5130945",
"0.5129927",
"0.5128496",
"0.51231384",
"0.5121096",
"0.5108838",
"0.509748",
"0.5078249",
"0.5069235",
"0.5066474",
"0.5066474",
"0.50659543",
"0.506592",
"0.5043234",
"0.5041179",
"0.50330704",
"0.50321865",
"0.50282997",
"0.4998984",
"0.4998619",
"0.49962112",
"0.49906874",
"0.4989369",
"0.4982687",
"0.49786782",
"0.4974452",
"0.49689665",
"0.49687314",
"0.4964781",
"0.49640715",
"0.49637204",
"0.49611917",
"0.49540523",
"0.49523118"
] |
0.68916976
|
0
|
Sets the shape to its best size.
|
public void setBestSize() { setSize(getBestWidth(), getBestHeight()); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"public void assignShape() {\n\t\t\n\t}",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"public boolean setShapeSize(DimensionF shapeSize) {\n if (ObjectUtils.equals(this.shapeSize, shapeSize))\n return false;\n this.shapeSize = shapeSize;\n return true;\n }",
"public void setBestHeight() { setHeight(getBestHeight()); }",
"@Override\r\n public void setShape (Shape shape)\r\n {\r\n setShape(shape, Evaluation.ALGORITHM);\r\n }",
"protected void setShape(Shape shape) {\n\t\tif (shape != null) {\n\t\t\t_shape = shape;\n\t\t\tthis.setLocation(shape.getLocation());\n\t\t\tthis.setDimensions(shape.getDimensions());\n\t\t}\n\t}",
"public void setSizeType(int type) {\n\t\tif (sizeType == type)\n\t\t\treturn;\n\t\tif (type != LMOptions.SMALL && type != LMOptions.LARGE && type != LMOptions.VARY)\n\t\t\treturn;\n\t\t\n\t\tdouble scale = parentLattice.getScale();\n\t\tdouble dotSize = DOT_NODE_SIZE * scale;\n\t\tdouble smallSize = SMALL_NODE_SIZE * scale;\n\t\tdouble largeSize = LARGE_NODE_SIZE * scale;\n\t\t\n\t\tif (type == LMOptions.SMALL && sizeType == LMOptions.LARGE) {\n\t\t\tsizeType = LMOptions.SMALL;\n\t\t\tdouble x = shape.getX() + ((largeSize - smallSize) / 2.0);\n\t\t\tdouble y = shape.getY() + ((largeSize - smallSize) / 2.0);\n\t\t\tshape.setFrame(x, y, smallSize, smallSize);\n\t\t}\n\n\t\telse if (type == LMOptions.SMALL && sizeType == LMOptions.VARY) {\n\t\t\tsizeType = LMOptions.SMALL;\n\t\t\tif (ownObject) {\n\t\t\t\tdouble x = shape.getX() + ((largeSize - smallSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() + ((largeSize - smallSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, smallSize, smallSize);\n\t\t\t} else {\n\t\t\t\tdouble x = shape.getX() - ((smallSize - dotSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() - ((smallSize - dotSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, smallSize, smallSize);\n\t\t\t}\n\t\t}\n\n\t\telse if (type == LMOptions.LARGE && sizeType == LMOptions.SMALL) {\n\t\t\tsizeType = LMOptions.LARGE;\n\t\t\tdouble x = shape.getX() - ((largeSize - smallSize) / 2.0);\n\t\t\tdouble y = shape.getY() - ((largeSize - smallSize) / 2.0);\n\t\t\tshape.setFrame(x, y, largeSize, largeSize);\n\t\t}\n\n\t\telse if (type == LMOptions.LARGE && sizeType == LMOptions.VARY) {\n\t\t\tsizeType = LMOptions.LARGE;\n\t\t\tif (!ownObject) {\n\t\t\t\tdouble x = shape.getX() - ((largeSize - dotSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() - ((largeSize - dotSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, largeSize, largeSize);\n\t\t\t}\n\t\t}\n\n\t\telse if (type == LMOptions.VARY && sizeType == LMOptions.LARGE) {\n\t\t\tsizeType = LMOptions.VARY;\n\t\t\tif (!ownObject) {\n\t\t\t\tdouble x = shape.getX() + ((largeSize - dotSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() + ((largeSize - dotSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, dotSize, dotSize);\n\t\t\t}\n\t\t}\n\n\t\telse if (type == LMOptions.VARY && sizeType == LMOptions.SMALL) {\n\t\t\tsizeType = LMOptions.VARY;\n\t\t\tif (ownObject) {\n\t\t\t\tdouble x = shape.getX() - ((largeSize - smallSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() - ((largeSize - smallSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, largeSize, largeSize);\n\t\t\t} else {\n\t\t\t\tdouble x = shape.getX() + ((smallSize - dotSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() + ((smallSize - dotSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, dotSize, dotSize);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (internalLattice != null)\n\t\t\tinternalLattice.refreshConceptsShape();\n\t\t\n\t\tlabel.refreshShape();\n\t}",
"public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }",
"public void setShape(ShapeType shape) {\n\t\tthis.shape = shape;\n\t}",
"public void setShape(Shape shape) {\n\tthis.shape = shape;\n\n\tPathIterator p = shape.getPathIterator(new AffineTransform());\n\t\t\n\tFlatteningPathIterator fp = new FlatteningPathIterator(p, flatness);\n\t\t\n\tpath.clear();\n\twhile(!fp.isDone()) {\n\t double[] farr = new double[6];\n\t int type = fp.currentSegment(farr);\n\t\t \n\t if (type == PathIterator.SEG_MOVETO || type == PathIterator.SEG_LINETO) {\n\t\tpath.add(new Point2D.Double(farr[0],farr[1]));\n\t }\n\t if (type == PathIterator.SEG_QUADTO) {\n\t\tfor(int i=0; i<2; i++) {\n\t\t path.add(new Point2D.Double(farr[0],farr[1]));\n\t\t}\n\t }\n\t if (type == PathIterator.SEG_CUBICTO) {\n\t\tfor(int i=0; i<3; i++) {\n\t\t path.add(new Point2D.Double(farr[2*i],farr[2*i+1]));\n\t\t}\n\t }\n\t fp.next();\n\t}\n }",
"public void setSize(double size) \n {\n this.size = size;\n }",
"public void setSize(int _size)\r\n {\r\n size = _size;\r\n }",
"public void setShape( final FireShapes shape ) {\r\n\t\tthis.shape = shape;\r\n\t}",
"private static <T extends Shape> void scaleShape(T shape, double scale){\r\n\t\tshapeContainer = new ShapeContainer<Shape>(shape);\r\n\t\ttry {\r\n\t\t\tshapeContainer.changeShapeScale(scale);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"public void setSize(int size) {\r\n _size = size;\r\n }",
"void setSize(Dimension size);",
"public void setMinSize(Point size) {\n if (size == null) {\n setMinSize(0, 0);\n } else {\n setMinSize(size.x, size.y);\n }\n }",
"@Override\n\tpublic void setSize(float size) {\n\t\tthis.size = size;\n\t\trxs = new int [ Math.max(Math.round(size/calibration[0]), Math.round(size/calibration[1])) + 1 ];\t\t\n\t\treset();\n\t}",
"public void setSize(Dimension size) {\r\n this.size = size;\r\n }",
"public void setSize(int size);",
"private void setShape(){\n // 0 - index of the vertex at the top of the polygon\n shapex[0] = x + MathUtils.cos(radians) * 8;\n shapey[0] = y + MathUtils.sin(radians) * 8;\n\n // 1 - index of the vertex at the bottom left of the polygon\n shapex[1] = x + MathUtils.cos(radians - 4 * 3.1415f / 5) * 8;\n shapey[1] = y + MathUtils.sin(radians - 4 * 3.1415f / 5) * 8;\n\n // 2 - index of the vertex at the bottom right of the polygon\n shapex[2] = x + MathUtils.cos(radians + 4 * 3.1415f / 5) * 8;\n shapey[2] = y + MathUtils.sin(radians + 4 * 3.1415f / 5) * 8;\n }",
"public void setShapeType(ShapeType shapeType) {\n }",
"protected abstract void setShapes();",
"public void setSize(int size) {\n\t\t _size = size;\n\t}",
"public void setSize(int size) {\r\n this.size = size;\r\n }",
"@Test\n public final void testSetSize() {\n int expRes = 5;\n int falseEnter = -4;\n ship.setSize(falseEnter);\n int result = this.ship.getSize();\n assertEquals(expRes, result);\n falseEnter = -1;\n ship.setSize(falseEnter);\n result = this.ship.getSize();\n assertEquals(expRes, result);\n }",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"public void setSize(int size){\n this.size = size;\n }",
"private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble x = pointsSubStroke.get(i).getX();\n\t\t\t\tdouble y = pointsSubStroke.get(i).getX();\n\t\t\t\t\n\t\t\t\tthis.leftX = Math.min(x, leftX);\n\t\t\t\tthis.righX = Math.max(x, righX);\n\t\t\t\tthis.topY = Math.min(y, topY);\n\t\t\t\tthis.bottomY = Math.max(y, bottomY);\n\t\t\t}\n\t\t}",
"public RMSize convertVectorToShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformToShape(shape).transformVector(size);\n}",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setMyShape(int shapeIndex){this.myShape = shapeIndex;}",
"public void setSize() {\n\t\t\tthis.size = 1;\n\t\t\tint leftSize = 0;\n\t\t\tint rightSize = 0;\n\t\t\tif (this.getLeft().getKey() != -1) {\n\t\t\t\tleftSize = this.getLeft().getSize();\n\t\t\t}\n\t\t\tif (this.getRight().getKey() != -1) {\n\t\t\t\trightSize = this.getRight().getSize();\n\t\t\t}\n\t\t\tthis.size += leftSize + rightSize;\n\n\t\t\t/**\n\t\t\t * this.size = 1; int leftSize = 0; int rightSize = 0; try { leftSize =\n\t\t\t * this.getLeft().getSize(); this.size += leftSize; } catch\n\t\t\t * (NullPointerException e) { this.size += leftSize; } try { rightSize =\n\t\t\t * this.getRight().getSize(); this.size += rightSize; } catch\n\t\t\t * (NullPointerException e) { this.size += rightSize; } if (this.getSize() >\n\t\t\t * 990) { System.out.println(\"actual size is:\" + this.getSize()); }\n\t\t\t */\n\t\t}",
"public void setSize(int size) {\n this.size = size;\n }",
"public void setSize(int size){\n\t\tthis.shipSize = size;\n\t}",
"public void setPreferredSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setPreferredSize( size.x, size.y );\n }",
"void setShape(IReadableShape shape) {\n keyframes.clear();\n if (!Objects.isNull(shape)) {\n this.shape = shape;\n this.updateKeyframes();\n }\n this.resetFrameList();\n\n }",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setSize(int size) {\n\t\tthis.size = size;\n\t}",
"public void setShape(short shape) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 2, shape);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 2, shape);\n\t\t}\n\t}",
"public void setShape(int pValue){\n\t\t\n\t\tswitch(pValue){\n\t\t\n\t\tcase(0): iShape = eTileShape.CIRCLE;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(1): iShape = eTileShape.CLUB;\n\t\t\tbreak;\n\t\t\t\n\t\tcase(2): iShape = eTileShape.DIAMOND;\n\t\t\tbreak;\n\t\t\n\t\tcase(3): iShape = eTileShape.STAR;\n\t\t\tbreak;\n\t\t\n\t\tcase(4): iShape = eTileShape.SPADE;\n\t\t\tbreak;\n\t\t\n\t\tcase(5): iShape = eTileShape.SQUARE;\n\t\t\tbreak;\n\t\t\n\t\tdefault: System.out.print(\"Error: Out of bounds Shape Value\");\n\t\t}//end case\n\t}",
"public void setMinimumSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setMinimumSize( size.x, size.y );\n }",
"public void setShape(Info shape) {\n \n }",
"private void setSize(int s){\n\t\tsize = s;\n\t}",
"public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}",
"private void setFinalSize()\n {\n if (! m_isEmpty)\n return;\n m_isEmpty = false;\n setSize(m_finalSize);\n if (m_finalLocation != null)\n setLocation(m_finalLocation);\n }",
"public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"@Override\r\n public void setShape (Shape shape,\r\n double grade)\r\n {\r\n// // Check status\r\n// if (glyph.isTransient()) {\r\n// logger.error(\"Setting shape of a transient glyph\");\r\n// }\r\n\r\n // Blacklist the old shape if any\r\n Shape oldShape = getShape();\r\n\r\n if ((oldShape != null) && (oldShape != shape)\r\n && (oldShape != Shape.GLYPH_PART)) {\r\n forbidShape(oldShape);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"Shape {} forbidden for {}\",\r\n oldShape, glyph.idString());\r\n }\r\n }\r\n\r\n if (shape != null) {\r\n // Remove the new shape from the blacklist if any\r\n allowShape(shape);\r\n }\r\n\r\n // Remember the new shape\r\n evaluation = new Evaluation(shape, grade);\r\n\r\n if (glyph.isVip()) {\r\n logger.info(\"{} assigned {}\", glyph.idString(), evaluation);\r\n }\r\n }",
"public void setSize(float width, float height);",
"public void setMaximizing() {\r\n maximizing = true;\r\n }",
"public final void setBestFit() {\r\n setZoom(ZOOM_BEST_FIT);\r\n }",
"protected void isotrop()\r\n {\r\n Dimension d = getSize();\r\n int maxX = d.width - 1, maxY = d.height - 1;\r\n\tpSize = Math.max(width / maxX, height / maxY);\r\n\tcX = maxX / 2;\r\n\tcY = maxY / 2;\r\n\r\n\t// Since pixel size is max of width/height over their device sizes, one of these\r\n\t// values will actually be larger. This should be used to use all of the canvas\r\n\tactualWidth = maxX * pSize;\r\n\tactualHeight = maxY * pSize;\r\n }",
"public void setSize(Integer size) {\n this.size = size;\n }",
"@Test\n public void getSize() {\n // Testing for Shape Rectangle that mutates its Size and see the size matches.\n assertEquals(defaultSize1, defaultShape1.getSize());\n Size newRectangleSize = new Size(50, 50);\n defaultShape1 = new Rectangle(defaultColor1, defaultPosition1, newRectangleSize);\n assertEquals(newRectangleSize, defaultShape1.getSize());\n assertNotEquals(defaultSize1, defaultShape1.getSize());\n // Testing for OvalShape that mutates and see it matches.\n assertEquals(defaultSize2, defaultShape2.getSize());\n Size newOvalSize = new Size(15, 15);\n defaultShape2 = new Oval(defaultColor2, defaultPosition2, newOvalSize);\n assertEquals(newOvalSize, defaultShape2.getSize());\n assertNotEquals(defaultSize2, defaultShape2.getSize());\n }",
"public void fillShape(Shape shape);",
"protected void adjustSize() {\r\n fieldDim = mineField.getSquareLength() * mineField.getFieldLength();\r\n setSize( fieldDim + X_BORDER * 2, fieldDim + Y_BORDER * 3 );\r\n validate();\r\n }",
"public void setSize( int newSize, int newWidth )\n\t{\n\t\tif( newSize > 0 )\n\t\t\tsize = newSize;\n\t\telse\n\t\t{\n\t\t\tsize = 0;\n\t\t\tSystem.err.printf(\"Board's parameter values can not be negative!\");\n\t\t}\n\t\tif( newWidth > 0 )\n\t\t\twidth = newWidth;\n\t\telse\n\t\t{\n\t\t\twidth = 0;\n\t\t\tSystem.err.printf(\"Board's parameter values can not be negative!\");\n\t\t}\n\t\tthis.createBoard();\n\t\tthis.reset();\n\t}",
"protected void newSize() {\r\n adjustSize();\r\n halt();\r\n newGame();\r\n }",
"public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }",
"public void setSize();",
"public void forceResize() {\n ResizeUtils.updateSize(this, actions);\n }",
"protected abstract void setSize();",
"protected final void multiplySize(float size)\n {\n super.setSize(this.bokoblinWidth * size, this.bokoblinHeight * size);\n }",
"public void setSize(int size) {\n\t\tdist = new double[size];\n\t\tprev = new Node[size];\n\t\tready = new boolean[size];\n\t}",
"protected void refineShape(FoundShape shape) {\n\n\t\tShapeDescription shapeDesc = models.get(shape.whichShape);\n\n\t\trefine.configure(shapeDesc.modelFitter, shapeDesc.modelDistance, shapeDesc.modelCheck, shapeDesc.codec, shapeDesc.thresholdFit);\n\t\trefine.refine(shape.points, shape.modelParam, true);\n\t\t// todo handle if refine is false\n\t}",
"public void setShapeMode(int _shapeMode) {\n\t\tshapeMode = _shapeMode;\n\t}",
"public void setRandomShape()\n\t{\n\t\tvar rand = new Random();\n\t\tint x = Math.abs(rand.nextInt())%7 + 1;\n\t\t\n\t\tTetromino[] values = Tetromino.values();\n\t\tsetShape (values[x]);\n\t}",
"public void sizeBy(float size) {\n internalGroup.sizeBy(size);\n dataTrait.width = internalGroup.getWidth();\n dataTrait.height = internalGroup.getHeight();\n resetSprite();\n }",
"public void setPreferredSize( int width, int height ) {\n checkWidget();\n ideal = true;\n Point point = parent.fixPoint( width, height );\n preferredWidth = Math.max( point.x, MINIMUM_WIDTH );\n preferredHeight = point.y;\n }",
"public void setType(ShapeType ty) {\n\t\t\ttype.set(ty);\n\t\t}",
"public void shrinkSquare()\n {\n squareSize--;\n }",
"void setFitHeight(short height);",
"public void setSize(int size){\n n = size;\n //makes new array and changes the toSort array\n randomArray(n);\n toSort = origArray.clone();\n }",
"public void setSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setSize( size.x, size.y );\n }",
"public RMSize convertVectorFromShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformFromShape(shape).transformVector(size);\n}",
"public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}",
"public void setFreeShape(boolean freeShape) {\r\n this.freeShape = freeShape;\r\n }",
"public abstract void setSize(Dimension d);",
"private void updateShapeFactory(int value) {\n ShapeFactory.setRoundness(value);\n }",
"public void setFrameSize();",
"public void setShapes(Object shapes) {\r\n this.shapes = shapes;\r\n }",
"public void setMinimumSize( int width, int height ) {\n checkWidget();\n Point point = parent.fixPoint( width, height );\n minimumWidth = point.x;\n minimumHeight = point.y;\n }",
"@Override\r\n public void setPreferredSize(Dimension preferredSize) {\r\n int min = min(preferredSize.width, preferredSize.height);\r\n super.setPreferredSize(new Dimension(min, min));\r\n }",
"public void setSquareSide (int newLength){\r\n model.setSideLength(newLength);\r\n view.resetView(model);\r\n }",
"@Override\n protected void onSetInitialValues(final Shape pShape, final float pScaleA, final float pScaleB) {\n pShape.setScale(pScaleA, pScaleB);\n }",
"public void buildShape(Shape shape) {\n\t\tbuildShape(shape, -1, false, 0);\n\t}",
"public void enlargeSquare()\n {\n squareSize++;\n }",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"public void changeSize(Integer newLength, Integer newHeight) {\n control.erase();\n width = newLength;\n height = newHeight;\n control.draw();\n }",
"public void setPointSize(float pointSize)\n {\n myPointSize = pointSize;\n }",
"protected final void setSize(float width, float height)\n {\n boolean flag = this.bokoblinWidth > 0.0F && this.bokoblinHeight > 0.0F;\n this.bokoblinWidth = width;\n this.bokoblinHeight = height;\n\n if (!flag)\n {\n this.multiplySize(1.0F);\n }\n }"
] |
[
"0.6803853",
"0.6671289",
"0.6274296",
"0.62073505",
"0.6186063",
"0.6053692",
"0.6017147",
"0.58985025",
"0.5849633",
"0.57357436",
"0.5735696",
"0.5670266",
"0.56133914",
"0.56124204",
"0.5585152",
"0.558157",
"0.5556842",
"0.555285",
"0.5514341",
"0.5505996",
"0.5502254",
"0.5492799",
"0.54773974",
"0.5454644",
"0.5434553",
"0.54328734",
"0.54326385",
"0.54088223",
"0.5401238",
"0.53808874",
"0.53808874",
"0.5380684",
"0.5377333",
"0.5375061",
"0.5364525",
"0.5364525",
"0.53426063",
"0.5326567",
"0.53257674",
"0.53247213",
"0.53239733",
"0.53129566",
"0.5308827",
"0.53078425",
"0.53078425",
"0.53078425",
"0.53078425",
"0.5299085",
"0.52806664",
"0.52743626",
"0.5268289",
"0.5267774",
"0.5260233",
"0.52520007",
"0.5234166",
"0.52169806",
"0.52110475",
"0.51972353",
"0.51970345",
"0.51837665",
"0.517873",
"0.5177435",
"0.51765716",
"0.5172412",
"0.5157982",
"0.51520115",
"0.51494926",
"0.51466185",
"0.5146353",
"0.5139486",
"0.51351935",
"0.5131279",
"0.5129005",
"0.5121235",
"0.5115185",
"0.5105039",
"0.5099671",
"0.5087529",
"0.50861484",
"0.5077875",
"0.5076054",
"0.506264",
"0.5058779",
"0.50531423",
"0.5052955",
"0.50497437",
"0.50447786",
"0.5041306",
"0.5041064",
"0.5037155",
"0.5035496",
"0.50287783",
"0.5019168",
"0.50115937",
"0.5011585",
"0.500678",
"0.5000216",
"0.49996686",
"0.49960533",
"0.49942255"
] |
0.740107
|
0
|
Divides the shape by a given amount from the top. Returns a clone of the given shape with bounds set to the remainder. Divies children among the two shapes (recursively calling divide shape for those stradling).
|
public RMShape divideShapeFromTop(double anAmount) { return divideShapeFromEdge(anAmount, RMRect.MinYEdge, null); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMShape divideShapeFromEdge(double anAmount, byte anEdge, RMShape aNewShape)\n{\n // Get NewShape (if aNewShape is null, create one)\n RMShape newShape = aNewShape!=null? aNewShape : createDivideShapeRemainder(anEdge);\n\n // Get bounds for this shape and remainder bounds (divide bounds by amount from edge)\n RMRect bounds = getFrame();\n RMRect remainder = bounds.divideRect(anAmount, anEdge);\n \n // Set this shape's new bounds and NewShape bounds as remainder\n setFrame(bounds);\n newShape.setFrame(remainder);\n return newShape;\n}",
"protected RMShape createDivideShapeRemainder(byte anEdge) { return clone(); }",
"public List <RMShape> getShapesToDescendant(RMShape aShape)\n{\n List list = aShape.getShapesToAncestor(this); Collections.reverse(list); return list;\n}",
"private void subdivide() {\n if (!hasChildren) {\n hasChildren = true;\n this.children = new QuadtreeNodeChildren(this);\n } else {\n return;\n }\n }",
"public void subdivide() {\n\t\tif (!divided) {\n\t\t\tdivided = true;\n\t\t\t\n\t\t\t// Calculate the width and height of the sub nodes\n\t\t\tint width = (int) Math.ceil(boundary.width/2.0) + 1;\n\t\t\tint height = (int) Math.ceil(boundary.height/2.0) + 1;\n\t\t\t\n\t\t\t// Create ArrayList for the nodes and insert them\n\t\t\tnodes = new ArrayList<QuadTreeNode<E>>();\n\t\t\t\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y + height, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y + height, height, width));\n\t\t\t\n\t\t\t// Take all the points and insert them into the best sub node\n\t\t\tfor (Point p : points.keySet()) {\n\t\t\t\tQuadTreeNode<E> q = this.getBestQuad(p);\n\t\t\t\tq.add(p, points.get(p));\n\t\t\t}\n\t\t\t\n\t\t\tpoints = null;\n\t\t}\n\t}",
"public List <RMShape> getShapesToShape(RMShape aShape)\n{\n // If shape is null or ancestor, return shapes to ancestor\n if(aShape==null || isAncestor(aShape))\n return getShapesToAncestor(aShape);\n \n // If shape is a descendant, return shapes to descendant\n if(isDescendant(aShape))\n return getShapesToDescendant(aShape);\n\n // Get common ancestor (if none, just return null)\n RMShape commonAncestor = getAncestorInCommon(aShape);\n if(commonAncestor==null)\n return null;\n \n // Get shapes to common ancestor, without ancestor, and add shapes from common ancestor to given shape\n List shapes = getShapesToAncestor(commonAncestor);\n shapes.remove(shapes.size()-1);\n shapes.addAll(commonAncestor.getShapesToDescendant(aShape));\n\n // Return shapes\n return shapes;\n}",
"private void subDivideNode() {\n setOriginNode();\n _subdivided = true;\n _northWest = new QuadTree<Point>(getView(), _transitionSize);\n _northEast = new QuadTree<Point>(getView(), _transitionSize);\n _southWest = new QuadTree<Point>(getView(), _transitionSize);\n _southEast = new QuadTree<Point>(getView(), _transitionSize);\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point p = it.next();\n QuadTree<Point> qt = quadrant(p);\n qt.add(p);\n }\n _elements = null;\n _elementsSize = 0;\n }",
"private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;\n int newLevel = this.level + 1;\n\n // Create the 4 nodes\n this.getNodes().add(0, new QuadTree(newLevel, new Rectangle(x + subWidth, y, subWidth, subHeight)));\n this.getNodes().add(1, new QuadTree(newLevel, new Rectangle(x, y, subWidth, subHeight)));\n this.getNodes().add(2, new QuadTree(newLevel, new Rectangle(x, y + subHeight, subWidth, subHeight)));\n this.getNodes().add(3, new QuadTree(newLevel, new Rectangle(x + subWidth, y + subHeight, subWidth, subHeight)));\n\n }",
"public RMRect convertRectToShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(getX(), getY()); return rect; }\n return getTransformToShape(shape).transform(rect);\n}",
"public Group shapes() {\n Group group = new Group();\n\n Rectangle square = new Rectangle();\n square.setHeight(_size * 2.0);\n square.setWidth(_size * 2.0);\n square.setX(-_size);\n square.setY(-_size);\n square.setFill(_fill);\n square.setOpacity(0.2);\n group.getChildren().add(square);\n\n return group;\n }",
"private void splitIntoRoots() {\n\t\tArrayList<ArrayList<Coord>> circ = findCircles();\n\t\tcombinePastRoots(circ);\n\t}",
"public RMShape clone()\n{\n // Do normal version, clear parent, LayoutInfoX, clone RSS\n RMShape clone = (RMShape)super.clone();\n clone._parent = null; clone._layoutInfoX = null;\n clone._rss = RMUtils.clone(_rss);\n \n // Clone stroke, fill, effect\n clone._stroke = null; clone._fill = null; clone._effect = null;\n if(getStroke()!=null) clone.setStroke(getStroke().clone());\n if(getFill()!=null) clone.setFill(getFill().clone());\n if(getEffect()!=null) clone.setEffect(getEffect().clone());\n \n // Copy attributes map\n clone._attrMap = _attrMap.clone();\n \n // If shape has timeline, clone it\n if(getTimeline()!=null)\n clone.setTimeline(getTimeline().clone(clone));\n \n // Clone bindings and add to clone (with hack to make sure clone has it's own, non-shared, attr map)\n for(int i=0, iMax=getBindingCount(); i<iMax; i++) {\n if(i==0) clone.put(\"RibsBindings\", null);\n clone.addBinding(getBinding(i).clone());\n }\n \n // Clone event adapter\n if(getEventAdapter(false)!=null) {\n clone.put(\"EventAdapter\", null);\n clone.getEventAdapter(true).setEnabledEvents(getEventAdapter(true).getEnabledEvents());\n }\n \n // Return clone\n return clone;\n}",
"@Override\r\n\tpublic ArrayList<IShape> addChildren() {\r\n\t\tArrayList<IShape> iShapes = new ArrayList<IShape>();\r\n\t\tif (getSize() != \"Small\") {\r\n\t\t\tif (getSize().equals(\"Large\")) {\r\n\t\t\t\t// Explode Sound Large\r\n\t\t\t\tSoundManager.getSoundManager().explodeLarge();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Medium\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, getChildren()));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (getSize().equals(\"Medium\")) {\r\n\t\t\t\t// Explode Sound Medium\r\n\t\t\t\tSoundManager.getSoundManager().explode();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Small\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, 0));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\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\tSoundManager.getSoundManager().explodeSmall();\r\n\t\t}\r\n\t\treturn iShapes;\r\n\t}",
"private void split () {\n\n if (firstClassList != null && firstClassList.size() > MAX_OBJECTS && depth < MAX_DEPTH) {\n\n // Set new bounds along each axis\n double[] xBounds = new double[] {bounds.getMinX(), bounds.getCenterX(), bounds.getMaxX()};\n double[] yBounds = new double[] {bounds.getMinY(), bounds.getCenterY(), bounds.getMaxY()};\n double[] zBounds = new double[] {bounds.getMinZ(), bounds.getCenterZ(), bounds.getMaxZ()};\n\n // Create each child\n children = new SceneOctTree[8];\n for (int x = 0; x <= 1; x++) {\n for (int y = 0; y <= 1; y++) {\n for (int z = 0; z <= 1; z++) {\n Bounds childBounds = new BoundingBox (\n xBounds[x], yBounds[y], zBounds[z],\n xBounds[x+1] - xBounds[x], yBounds[y+1] - yBounds[y], zBounds[z+1] - zBounds[z]\n );\n int index = x + y*2 + z*4;\n children[index] = new SceneOctTree (childBounds, this.depth+1);\n } // for\n } // for\n } // for\n\n // Insert first class objects into children. Note that we don't know\n // if the object will be first or second class in the child so we have\n // to perform a full insert.\n for (Node object : firstClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insert (object);\n } // for\n } // for\n firstClassList = null;\n\n // Insert second class objects into children (if any exist). We know\n // that the object will be second class in the child, so we just\n // perform a second class insert.\n if (secondClassList != null) {\n for (Node object : secondClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insertSecondClass (object, objectBounds);\n } // for\n } // for\n } // if\n secondClassList = null;\n\n // Perform a split on the children, just in case all the first class\n // objects that we just inserted all went into one child.\n for (SceneOctTree child : children) child.split();\n\n } // if\n\n }",
"public List <RMShape> getShapesToAncestor(RMShape aShape)\n{\n // Iterate and add up this shape and parents until given ancestor is added (or we run out)\n List ancestors = new ArrayList();\n for(RMShape shape=this; shape!=null; shape=shape.getParent()) {\n ancestors.add(shape);\n if(shape==aShape)\n break;\n }\n \n // Return ancestors\n return ancestors;\n}",
"protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) { return clone(); }",
"public RMRect convertRectFromShape(RMRect rect, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { rect.offset(-getX(), -getY()); return rect; }\n return getTransformFromShape(shape).transform(rect);\n}",
"public void convertFromShape(RMShape aShape)\n{\n // Get center point in parent coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), _parent);\n\n // Coalesce transforms down the shape chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() - s.getRoll());\n setScaleX(getScaleX()/s.getScaleX()); setScaleY(getScaleY()/s.getScaleY());\n setSkewX(getSkewX() - s.getSkewX()); setSkewY(getSkewY() - s.getSkewY());\n }\n\n // Convert center point back from aShape, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, aShape);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public abstract Shape getCopy();",
"public List expand()\r\n {\r\n boolean isComp1 = isComposite(boundable1);\r\n boolean isComp2 = isComposite(boundable2);\r\n \r\n /**\r\n * HEURISTIC: If both boundable are composite,\r\n * choose the one with largest area to expand.\r\n * Otherwise, simply expand whichever is composite.\r\n */\r\n if (isComp1 && isComp2) {\r\n if (area(boundable1) > area(boundable2)) {\r\n return expand(boundable1, boundable2);\r\n }\r\n else {\r\n return expand(boundable2, boundable1); \r\n }\r\n }\r\n else if (isComp1) {\r\n return expand(boundable1, boundable2);\r\n }\r\n else if (isComp2) {\r\n return expand(boundable2, boundable1);\r\n }\r\n \r\n throw new IllegalArgumentException(\"neither boundable is composite\");\r\n }",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public interface CompositeShapeInt\n{\n /**\n Add a shape to this composite shape.\n @param aShape the shape to add\n */\n void add(Shape aShape);\n\n /**\n Returns an integer Rectangle that completely encloses the Shape.\n Note that there is no guarantee that the returned Rectangle is the\n smallest bounding box that encloses the Shape, only that the Shape\n lies entirely within the indicated Rectangle.\n */\n Rectangle getBounds();\n\n /**\n Draws this CompositeShape at the relative position to the top left corner of the bounding box.\n @param g2 the graphics context\n */\n void draw (Graphics2D g);\n\n}",
"Subdivision create(Subdivision subdivision);",
"@Override\n PickShape transform(Transform3D t3d) {\n\t// If the bounds is a BoundingBox, then the transformed bounds will\n\t// get bigger. So this is a potential bug, and we'll have to deal with\n\t// if there is a complain.\n\tBounds newBds = (Bounds)bounds.clone();\n\tnewBds.transform(t3d);\n\tPickBounds newPB = new PickBounds(newBds);\n\n\treturn newPB;\n }",
"public @Override Shape getChildAllocation(int index, Shape a) {\n if (a == null) {\n return null;\n }\n\n Rectangle alloc = reallocate(a); // returned rect can be modified\n int thisViewAllocX = alloc.x;\n int thisViewAllocY = alloc.y;\n\n getChildren().getChildCoreAllocation(index, alloc); // alloc overwritten\n alloc.x += thisViewAllocX;\n alloc.y += thisViewAllocY;\n \n // Add insets if necessary\n ViewInsets insets = getInsets();\n if (insets != null) {\n alloc.x += insets.getLeft();\n alloc.y += insets.getRight();\n }\n\n return alloc;\n }",
"public RMSize convertVectorToShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformToShape(shape).transformVector(size);\n}",
"public RMShape cloneDeep() { return clone(); }",
"public final void div() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue / topMostValue);\n\t\t\t}\n\t\t}\n\t}",
"public RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent)\n{\n RMShape clone = rpgShape(anRptOwner, aParent);\n rpgBindings(anRptOwner, clone);\n return clone;\n}",
"Division createDivision();",
"Shape getNext(int width);",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public Bounds[] subdivide() {\n return new Bounds[] {\n getSubdivision(0, 0, 0), getSubdivision(1, 0, 0), getSubdivision(0, 0, 1), getSubdivision(1, 0, 1),\n getSubdivision(0, 1, 0), getSubdivision(1, 1, 0), getSubdivision(0, 1, 1), getSubdivision(1, 1, 1)\n };\n }",
"public RMShape getChild(int anIndex) { return null; }",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}",
"@Override\n\t\t public Shape clone()\n\t\t {\n\t\t SZShape s = (SZShape)super.clone();\n\t\t s.position = new Position(position);\n\t\t s.cells = new Cell[cells.length];\n\t\t for(int i = 0; i < cells.length; i++)\n\t\t {\n\t\t \t s.cells[i] = new Cell(cells[i]);\n\t\t }\n\t\t return s;\n\t\t }",
"public abstract Shape clone() throws CloneNotSupportedException;",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"ShapeGroup(){\n children = new ArrayList<IShape>();\n }",
"public void addShape(RetainedShape shapePeer) {\r\n\t\tif (shapePeer.vboHandle != null) {\r\n\t\t\tthrow new IllegalArgumentException(\"vboHandle != null\");\r\n\t\t}\r\n\t\t\r\n\t\tint[] minMax = ((RetainedVertexData)shapePeer.shape.getVertexData().nativePeer).getMinMaxIndex();\r\n\t\tint chunkSize = minMax[1] - minMax[0] + 1;\r\n\t\t\r\n\t\tListIterator<Handle> iter = handles.listIterator();\r\n\r\n\t\t// look for empty space in existing array \r\n\t\tint startIdx = 0;\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tHandle next = iter.next();\r\n\t\t\tint available = next.startIdx - startIdx;\r\n\t\t\tif (available >= chunkSize) {\r\n\t\t\t\tSystem.out.println(\"found place at offset \"+startIdx);\r\n\t\t\t\t// move back iterator so the new handle is inserted in sorted order\r\n\t\t\t\tif (iter.hasPrevious()) {\r\n\t\t\t\t\titer.previous();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tstartIdx = next.startIdx + next.count;\r\n\t\t}\t\t\r\n\r\n\t\t// check if array need to grow\r\n\t\tint sizeNeeded = startIdx+chunkSize; \r\n\t\tif (sizeNeeded > numElements) {\r\n\t\t\t// grow array if we need to use more than 50% of array\r\n\t\t\tif (elementsUsed > sizeNeeded / 2) {\r\n\t\t\t\tnumElements = sizeNeeded * 2;\r\n\t\t\t\tresizeArrays();\r\n\t\t\t}\r\n\t\t\tcompact();\r\n\t\t\t\r\n\t\t\t// put new handle at end of compacted memory\r\n\t\t\tstartIdx = elementsUsed;\r\n\t\t}\r\n\t\t\r\n\t\t// insert handle at current iterator position so it will be sorted\r\n\t\tHandle handle = new Handle();\r\n\t\thandle.shapePeer = shapePeer;\r\n\t\thandle.startIdx = startIdx;\r\n\t\thandle.count = chunkSize;\r\n\t\thandle.upload();\r\n\t\tshapePeer.vboHandle = handle;\r\n\t\titer.add(handle);\r\n\t\t\r\n\t\telementsUsed += chunkSize;\r\n\t\t\r\n\t\tVertexData vertexData = shapePeer.shape.getVertexData();\r\n\t\tif (vertexData.colors != null) {\r\n\t\t\tclientState |= (1 << 2);\r\n\t\t}\r\n\t}",
"@Test\r\n public void testGetEnclosingShapes() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n assertEquals(expectedOutput, screen.getEnclosingShapes(new Point(5, 5)));\r\n }",
"@Test\n public void testCloneShapes() {\n NativeLibraryLoader.loadNativeLibrary(\"bulletjme\", true);\n assetManager.registerLoader(AWTLoader.class, \"jpg\", \"png\");\n assetManager.registerLoader(BinaryLoader.class, \"j3o\");\n assetManager.registerLoader(J3MLoader.class, \"j3m\", \"j3md\");\n assetManager.registerLocator(null, ClasspathLocator.class);\n\n cloneShapesConcave();\n cloneShapesConvex();\n\n // CompoundCollisionShape\n CompoundCollisionShape compound = new CompoundCollisionShape(1);\n CollisionShape capsule = new CapsuleCollisionShape(1f, 1f);\n compound.addChildShape(capsule, 0f, 1f, 0f);\n setParameters(compound, 0f);\n verifyParameters(compound, 0f);\n CollisionShape compoundClone = Heart.deepCopy(compound);\n cloneTest(compound, compoundClone);\n Assert.assertEquals(0.04f, compoundClone.getMargin(), 0f);\n compound.setMargin(0.13f);\n Assert.assertEquals(0.04f, compoundClone.getMargin(), 0f);\n }",
"public void groupShape() {\n\t\tif(currentShape != null && !(groupedShapes.contains(currentShape))) {\n\t\t\tgroupedShapes.add(currentShape);\n\t\t\tnotifyObservers();\n\t\t}\n\t}",
"public RMSize convertVectorFromShape(RMSize size, RMShape shape)\n{\n if(shape==_parent && !isRSS()) return size;\n return getTransformFromShape(shape).transformVector(size);\n}",
"BaseBounds computeShapeBounds(BaseBounds bounds, BaseTransform tx,\n com.sun.javafx.geom.Shape s)\n {\n if (impl_mode == NGShape.Mode.EMPTY) {\n return bounds.makeEmpty();\n }\n\n float[] bbox = {\n Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY,\n Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY,\n };\n boolean includeShape = (impl_mode != NGShape.Mode.STROKE);\n boolean includeStroke = (impl_mode != NGShape.Mode.FILL);\n if (includeStroke && (getStrokeType() == StrokeType.INSIDE)) {\n includeShape = true;\n includeStroke = false;\n }\n\n if (includeStroke) {\n final StrokeType type = getStrokeType();\n double sw = Utils.clampMin(getStrokeWidth(), MIN_STROKE_WIDTH);\n StrokeLineCap cap = getStrokeLineCap();\n StrokeLineJoin join = convertLineJoin(getStrokeLineJoin());\n float miterlimit =\n (float) Utils.clampMin(getStrokeMiterLimit(), MIN_STROKE_MITER_LIMIT);\n // Note that we ignore dashing for computing bounds and testing\n // point containment, both to save time in bounds calculations\n // and so that animated dashing does not keep perturbing the bounds...\n Toolkit.getToolkit().accumulateStrokeBounds(\n s,\n bbox, type, sw,\n cap, join, miterlimit, tx);\n // Account for \"minimum pen size\" by expanding by 0.5 device\n // pixels all around...\n bbox[0] -= 0.5;\n bbox[1] -= 0.5;\n bbox[2] += 0.5;\n bbox[3] += 0.5;\n } else if (includeShape) {\n com.sun.javafx.geom.Shape.accumulate(bbox, s, tx);\n }\n\n if (bbox[2] < bbox[0] || bbox[3] < bbox[1]) {\n // They are probably +/-INFINITY which would yield NaN if subtracted\n // Let's just return a \"safe\" empty bbox..\n return bounds.makeEmpty();\n }\n bounds = bounds.deriveWithNewBounds(bbox[0], bbox[1], 0.0f,\n bbox[2], bbox[3], 0.0f);\n return bounds;\n }",
"public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }",
"public RMShape getAncestorInCommon(RMShape aShape)\n{\n // If shape is our descendant, return this shape\n if(isDescendant(aShape))\n return this;\n \n // Iterate up shape's ancestors until one has this shape as descendant\n for(RMShape shape=aShape; shape!=null; shape=shape.getParent())\n if(shape.isDescendant(this))\n return shape;\n \n // Return null since common ancestor not found\n return null;\n}",
"@Override\n public void reshape(Shape other) {\n Triangle triangle = (Triangle) other;\n this.a = CloneUtil.clone(triangle.getA());\n this.b = CloneUtil.clone(triangle.getB());\n this.c = CloneUtil.clone(triangle.getC());\n this.toBeFilled = other.toBeFilled;\n this.stroke = other.stroke;\n this.color = new Color(other.color.getRGB());\n // System.out.println(\"Reshape after: \" + this.toString());\n }",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"@Override\n public void move(int width, int height)\n {\n // First move the CarrierShape itself then its children\n super.move(width,height);\n\n // Moving each child of the CarrierShape\n for(Shape child : children)\n {\n child.move(_width,_height);\n }\n }",
"public Object clone() {\n\tZPathLayoutManager newObject;\n\ttry {\n\t newObject = (ZPathLayoutManager)super.clone();\n\t} catch (CloneNotSupportedException e) {\n\t throw new RuntimeException(\"Object.clone() failed: \" + e);\n\t}\n\n\tif (path != null) {\n\t newObject.path = (ArrayList)path.clone();\n\t}\n\n\tif (shape != null) {\n\t // JM - not done yet: The shape interface doesn't include a clone() method,\n\t // so to clone a shape we either must cast it to a specific shape class\n\t // and call clone() on that, or use reflection to invoke the clone()\n\t // method. For now, we just continue referencing the old shape.\t\n\t}\n\n\treturn newObject;\n }",
"Shape getShape();",
"public Shape getChildAllocation(int index, Shape a) {\n return a;\n }",
"void remove(Shape shape)\n {\n // If the children list contains the shape\n // then remove it and set its parent to null\n // breaking the two-way connection\n if(contains(shape))\n {\n children.remove(shape);\n shape.setParent(null);\n }\n }",
"public void paintShapeAll(RMShapePainter aPntr)\n{\n // Get graphics\n RMShapePainter pntr = aPntr;\n \n // If clipping, clip to shape\n if(getClipShape()!=null) {\n pntr = pntr.clone();\n pntr.clip(getClipShape());\n }\n \n // Have shape paint only itself\n pntr.sendPaintShape(this);\n \n // Have shape paint children\n paintShapeChildren(pntr);\n \n // Have shape paint over\n paintShapeOver(aPntr);\n \n // If graphics copied, dispose\n if(pntr!=aPntr) pntr.dispose();\n}",
"public List <RMShape> getChildren() { return Collections.emptyList(); }",
"public RMRect convertedRectFromShape(RMRect aRect, RMShape aShape)\n{\n return convertRectFromShape(new RMRect(aRect), aShape);\n}",
"Object getChild(int groupPosition, int childPosition);",
"public RMRect convertedRectToShape(RMRect aRect, RMShape aShape)\n{\n return convertRectToShape(new RMRect(aRect), aShape);\n}",
"private static int multAndDivFixer(int size){\n return size;\n }",
"public void copyShape(RMShape aShape)\n{\n // Copy bounds\n setBounds(aShape._x, aShape._y, aShape._width, aShape._height);\n \n // Copy roll, scale, skew\n if(aShape.isRSS()) {\n setRoll(aShape.getRoll());\n setScaleXY(aShape.getScaleX(), aShape.getScaleY());\n setSkewXY(aShape.getSkewX(), aShape.getSkewY());\n }\n \n // Copy Stroke, Fill, Effect\n if(!RMUtils.equals(getStroke(), aShape.getStroke())) setStroke(RMUtils.clone(aShape.getStroke()));\n if(!RMUtils.equals(getFill(), aShape.getFill())) setFill(RMUtils.clone(aShape.getFill()));\n if(!RMUtils.equals(getEffect(), aShape.getEffect())) setEffect(RMUtils.clone(aShape.getEffect()));\n \n // Copy Opacity and Visible\n setOpacity(aShape.getOpacity());\n setVisible(aShape.isVisible());\n \n // Copy Name, Url, Hover, Locked\n setName(aShape.getName());\n setURL(aShape.getURL());\n setHover(aShape.getHover());\n setLocked(aShape.isLocked());\n \n // Copy LayoutInfo\n setLayoutInfo(aShape.getLayoutInfo());\n \n // Copy timeline (if this goes back, then RMAnimPathShape(shape) needs to go back to clearing it\n //if(aShape.getTimeline()!=null) setTimeline(aShape.getTimeline().clone(this));\n \n // Copy bindings\n while(getBindingCount()>0) removeBinding(0);\n for(int i=0, iMax=aShape.getBindingCount(); i<iMax; i++)\n addBinding(aShape.getBinding(i).clone());\n}",
"@Override\n public Step getLimitedDepthCopy(int depthLimit) {\n Scenario result = new Scenario(this.getContent());\n result.setId(this.getId());\n result.setNumber(this.getNumber());\n\t \n if (depthLimit > 0) {\n for(int i = 0; i < this.steps.size(); i++) {\n result.addStep(this.steps.get(i).getLimitedDepthCopy(depthLimit - 1));\n }\n }\n\t \n return result;\n }",
"private void insertRandomShapes() {\n for (int i = 0; i < gameProperties.numShapes; i++) {\n trayFlowPane.getChildren().add(new CardBack());\n }\n\n for (int i = 0; i < gameProperties.numShapes; i++) {\n int shapeRand = random.nextInt(gameProperties.shapes.size());\n int colorRand = random.nextInt(gameProperties.colors.size());\n\n CardShape s = new CardShape(gameProperties.shapes.get(shapeRand).getImage(),\n gameProperties.colors.get(colorRand).getImage(), shapeRand, colorRand);\n\n setCardShapeOnClicked(s);\n\n correctShapeOrdering.add(s);\n }\n\n\n //apparently getChildren.sort() doesn't work, so here we have this silly workaround:\n ObservableList<Node> workingCollection = FXCollections.observableArrayList(correctShapeOrdering);\n Collections.sort(workingCollection, null);\n shapeFlowPane.getChildren().setAll(workingCollection);\n shapeFlowPane.getChildren().forEach(s -> {\n Timeline t = new Timeline(\n new KeyFrame(new Duration(200), new KeyValue(s.rotateProperty(), 0)),\n new KeyFrame(new Duration(1000), new KeyValue(s.rotateProperty(), 360))\n );\n t.playFromStart();\n });\n }",
"private Bounds getSubdivision(int x, int y, int z) {\n final int xStep = (maxX - minX + 1) / 2;\n final int yStep = (maxY - minY + 1) / 2;\n final int zStep = (maxZ - minZ + 1) / 2;\n final int newMinX = minX + xStep * x;\n final int newMinY = minY + yStep * y;\n final int newMinZ = minZ + zStep * z;\n return new Bounds(newMinX, newMinY, newMinZ, newMinX + xStep, newMinY + yStep, newMinZ + zStep);\n }",
"DoorMat getTopPart(boolean top);",
"public static NumberP Division(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Division\n ); \t\n }",
"public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}",
"@Test\r\n\tpublic void testGetListOfShapesEnclosingGivenPoint() {\r\n\t\t\r\n\t\t// Create a first shape square\r\n\t\tPoint origin = new Point(25, 100); \r\n\t\tList<Double> list = new ArrayList<Double>(); \t\t\r\n double side = 5.0; \t\t\r\n list.add(side); \t\t\t\t\t\t\t\t\t\t \t\t\r\n\t\tShape square = ShapeFactory.createShape(0, origin, list); \t\t // 0 for creation of square\r\n\t\tscreen.shapesOnScreen.add(square);\t\t\t\t\t\t \t\t\r\n\t\t\r\n\t\t// Create a second shape square\r\n\t\tPoint secondOrigin = new Point(500,500); \r\n\t\tList<Double> secondList = new ArrayList<Double>(); \r\n double secondSide = 5.0; \r\n secondList.add(secondSide); \t\t\t\t\t\t\t\t \r\n\t\tShape secondSquare = ShapeFactory.createShape(0, secondOrigin, secondList); \r\n\t\tscreen.shapesOnScreen.add(secondSquare);\t\t\t\t\t\r\n\t\t\r\n\t\t// Create a third shape circle\r\n\t\tPoint thirdOrigin = new Point(25,100); \r\n\t\tList<Double> thirdList = new ArrayList<Double>(); \r\n double radius = 14.0; \r\n thirdList.add(radius); \t\t\t\t\t\t\t\t\t\t \r\n\t\tShape circle = ShapeFactory.createShape(3, thirdOrigin, thirdList); // 3 for creation of circle\r\n\t\tscreen.shapesOnScreen.add(circle);\t\t\r\n\t\t\r\n\t\t// Point to check for shapes enclosing it\r\n\t\tPoint point = new Point(26, 101);\r\n\t\tList<Shape> shapesEnclosingPoint = screen.getListOfShapesEnclosingGivenPoint(point);\r\n\t\t\r\n\t\t// Expected shapes in the list\r\n\t\tList<Shape> expectedList = new ArrayList<Shape>();\r\n\t\texpectedList.add(square);\r\n\t\texpectedList.add(circle);\r\n\t\t\r\n\t\tassertEquals( expectedList, shapesEnclosingPoint );\t\r\n\t}",
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"@Test\r\n public void testSortShapeWithArea()\r\n {\r\n // Screen screen = new Screen();\r\n \r\n Point originOfSquare = new Point(1,1);\r\n List<Double> listOne = new ArrayList<Double>();\r\n listOne.add(2.0);\r\n Shape square = ShapeFactory.createShape(0, originOfSquare, listOne); \r\n \r\n Point originOfCircle = new Point(1,1);\r\n List<Double> listTwo = new ArrayList<Double>();\r\n listTwo.add(2.0);\r\n Shape circle = ShapeFactory.createShape(3, originOfCircle, listTwo);\r\n \r\n Point orignOfTriangle = new Point(1,1);\r\n List<Double> listThree = new ArrayList<Double>();\r\n listThree.add(4.0);\r\n listThree.add(3.0);\r\n listThree.add(4.0);\r\n listThree.add(5.0);\r\n Shape triangle = ShapeFactory.createShape(2, orignOfTriangle, listThree);\r\n \r\n screen.addNewShapeToScreen(square);\r\n screen.addNewShapeToScreen(circle);\r\n screen.addNewShapeToScreen(triangle);\r\n \r\n screen.sortShapesOnCriteria(SortCriteria.AREA); // Sort list on the basis of area\r\n \r\n assertEquals(4.0, screen.shapesOnScreen.get(0).getArea(), 0);\r\n assertEquals(6.0, screen.shapesOnScreen.get(1).getArea(), 0);\r\n assertEquals(12.56, screen.shapesOnScreen.get(2).getArea(), 0);\r\n \r\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}",
"public interface BoundedObject {\n public BoundedCube getBounds();\n\n public static class BoundedCube implements Comparable<BoundedCube> {\n public long lx, ty, iz = 0;\n public long rx, by, oz = 0;\n\n public BoundedCube() {\n super();\n }\n\n public BoundedCube(long lx, long rx, long ty, long by, long iz, long oz) {\n super();\n this.lx = lx;\n this.rx = rx;\n this.ty = ty;\n this.by = by;\n this.iz = iz;\n this.oz = oz;\n }\n\n public BoundedCube(long[] coords, long radius) {\n super();\n this.lx = coords[0] - radius;\n this.rx = coords[0] + radius;\n this.ty = coords[1] - radius;\n this.by = coords[1] + radius;\n this.iz = coords[2] - radius;\n this.oz = coords[2] + radius;\n }\n\n public BoundedCube(BoundedCube l) {\n super();\n set(l);\n }\n\n public void set(BoundedCube l) {\n this.lx = l.lx;\n this.rx = l.rx;\n this.ty = l.ty;\n this.by = l.by;\n this.iz = l.iz;\n this.oz = l.oz;\n }\n\n public void union(BoundedCube l) {\n if (l.lx < lx)\n lx = l.lx;\n if (l.rx > rx)\n rx = l.rx;\n if (l.ty < ty)\n ty = l.ty;\n if (l.by > by)\n by = l.by;\n if (l.iz < iz)\n iz = l.iz;\n if (l.oz > oz)\n oz = l.oz;\n }\n\n public long radius() {\n return Math.round(Math.sqrt(((rx - lx) * (rx - lx))\n + ((by - ty) * (by - ty))\n + ((oz - iz) * (oz - iz))));\n }\n\n public BoundedCube expand(double[] direction, long distance) {\n final BoundedCube cube = new BoundedCube(this);\n final double x1 = Math.cos(direction[0]) * Math.sin(direction[1]);\n final double y1 = Math.sin(direction[0]) * Math.sin(direction[1]);\n final double z1 = Math.cos(direction[1]);\n final long[] oldCenter = new long[]{((lx + rx) / 2), ((ty + rx) / 2), ((iz + oz) / 2)};\n final long[] newCenter = new long[]{\n oldCenter[0] + Math.round(CMath.mul(distance, x1)),\n oldCenter[1] + Math.round(CMath.mul(distance, y1)),\n oldCenter[2] + Math.round(CMath.mul(distance, z1))};\n if (newCenter[0] > oldCenter[0])\n cube.rx += newCenter[0] - oldCenter[0];\n else\n cube.lx += newCenter[0] - oldCenter[0];\n if (newCenter[1] > oldCenter[1])\n cube.ty += newCenter[1] - oldCenter[1];\n else\n cube.by += newCenter[1] - oldCenter[1];\n if (newCenter[2] > oldCenter[2])\n cube.iz += newCenter[2] - oldCenter[2];\n else\n cube.oz += newCenter[2] - oldCenter[2];\n return cube;\n }\n\n public boolean intersects(BoundedCube two) {\n if (two == null)\n return false;\n return (\n ((lx <= two.lx && two.lx <= rx) || (two.lx <= lx && lx <= two.rx))\n && ((ty <= two.ty && two.ty <= by) || (two.ty <= ty && ty <= two.by))\n && ((iz <= two.iz && two.iz <= oz) || (two.iz <= iz && iz <= two.oz))\n );\n }\n\n public boolean contains(long x, long y, long z) {\n return ((x >= lx)\n && (x <= rx)\n && (y >= ty)\n && (y <= by)\n && (z >= iz)\n && (z <= oz));\n }\n\n public long width() {\n return rx - lx;\n }\n\n public long height() {\n return by - ty;\n }\n\n public long depth() {\n return oz - iz;\n }\n\n @Override\n public int compareTo(BoundedCube o) {\n if (lx < o.lx)\n return -1;\n if (lx > o.lx)\n return 1;\n if (rx < o.rx)\n return -1;\n if (rx > o.rx)\n return 1;\n if (ty < o.ty)\n return -1;\n if (ty > o.ty)\n return 1;\n if (by < o.by)\n return -1;\n if (by > o.by)\n return 1;\n if (iz < o.iz)\n return -1;\n if (iz > o.iz)\n return 1;\n if (oz < o.oz)\n return -1;\n if (oz > o.oz)\n return 1;\n return 0;\n }\n }\n}",
"@SuppressWarnings(\"unchecked\")\n private List<T> Cut(T individual) {\n ArrayList<T> list = new ArrayList<T>(2);\n int length = individual.getChromosomeLength();\n\n if (EvRandomizer.INSTANCE.nextDouble() < (length - 1) * cut_probability) {\n\n int cut_place = EvRandomizer.INSTANCE.nextInt(length - 1);\n\n T child1 = (T) individual.clone();\n child1.setChromosome(individual.getGenesList(0, cut_place), individual\n .getAllelesList(0, cut_place));\n T child2 = (T) individual.clone();\n child2.setChromosome(individual.getGenesList(cut_place, length),\n individual.getAllelesList(cut_place, length));\n list.add(child1);\n list.add(child2);\n\n } else\n list.add((T) individual.clone());\n\n return list;\n }",
"LengthScalarDivide createLengthScalarDivide();",
"Rect topDividerOffset(int section, int position);",
"public static void testRoundDown(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.explore();\n\t wall.roundDownToMultOf8();\n\t wall.explore();\n }",
"public void setParent(RMParentShape aShape) { _parent = aShape; }",
"static public void adjustLeftBottom(Shape2D shape,float left,float bottom){\n shape(shape,left-Shape2DLimits.minXShape(shape),bottom-Shape2DLimits.minYShape(shape));\n }",
"private static <T extends Shape> void scaleShape(T shape, double scale){\r\n\t\tshapeContainer = new ShapeContainer<Shape>(shape);\r\n\t\ttry {\r\n\t\t\tshapeContainer.changeShapeScale(scale);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"private static LinearLayout FuckIntoShape(Context context, View view)\n {\n // Re-arrange completely shitty checkbox layout.\n // The summary must be last item in layout. Icon,\n // title and checkbox need to be in one layout.\n //\n\n //\n // Step one: move all items into new horizontal linear layout.\n //\n\n LinearLayout newlayout = new LinearLayout(context);\n newlayout.setOrientation(LinearLayout.HORIZONTAL);\n newlayout.setLayoutParams(new ViewGroup.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.WRAP_CONTENT));\n\n ViewGroup vg = (ViewGroup) view;\n\n while (vg.getChildCount() > 0)\n {\n newlayout.addView(Simple.removeFromParent(vg.getChildAt(0)));\n }\n\n vg.addView(newlayout);\n\n //\n // Step two: fuck top level layout to be vertical match parent.\n //\n\n ((LinearLayout) vg).setOrientation(LinearLayout.VERTICAL);\n\n ImageView icon = (ImageView) view.findViewById(android.R.id.icon);\n\n if ((icon != null) && (icon.getParent() instanceof LinearLayout))\n {\n LinearLayout icon_frame = (LinearLayout) icon.getParent();\n icon_frame.setLayoutParams(new LinearLayout.LayoutParams(Simple.WC, Simple.MP));\n icon_frame.setPadding(0, 0, 0, 0);\n }\n\n //\n // Step three: remove summary from horizontal layout and add\n // to top layout now beeing vertical.\n //\n\n TextView summary = (TextView) view.findViewById(android.R.id.summary);\n\n vg.addView(Simple.removeFromParent(summary));\n\n //\n // Step four: do not forget to fuck stupid max lines on summary.\n //\n\n summary.setMaxLines(50);\n summary.setPadding(0, 0, 16, 16);\n\n //\n // Fucked into shape.\n //\n\n return newlayout;\n }",
"public void createLots(double lotWidth, double lotHeight, double deviance)\n\t{\n\t\tdouble LOT_WIDTH = lotWidth;\n\t\tdouble LOT_DEPTH = lotHeight;\n\n\t\tdouble LOT_DEVIANCE = deviance;\n\t\tif (deviance < 0 || deviance > 1) {\n\t\t\tthrow new IllegalArgumentException(\"deviance must be between 0.0 and 1.0.\");\n\t\t}\n\n\t\tSubRegion region; /* Current region. */\n\t\t/*\n\t\t * Elements to be subdivided.\n\t\t */\n\t\tList<SubRegion> regionQueue = new ArrayList<SubRegion>();\n\t\t/*\n\t\t * Newly added regions by splitRegion.\n\t\t */\n\t\tList<SubRegion> newRegions = new ArrayList<SubRegion>();\n\t\t/*\n\t\t * Regions that need no further subdivision .\n\t\t */\n\t\tList<SubRegion> outputRegions = new ArrayList<SubRegion>();\n\n\t\tSubRegion.Edge longestEdge; /* Longest edge of current region. */\n\t\tLineSegment edgeLine = new LineSegment();\n\t\tdouble splitSize;\n\t\tPoint sp1, sp2; /* Split line. */\n\n\t\t/* A valid region must have at least 3 vertices. */\n\t\tif (constraints.numberOfVertices() < 3) {\n\t\t\tthrow new IllegalArgumentException(\"Number of vertices in constraints must be >= 3.\");\n\t\t}\n\n\t\t/*\n\t\t * Convert areaConstraints of this block to polygonGraph that is used in\n\t\t * subdivision algorithm.\n\t\t */\n\t\tregion = new SubRegion(constraints);\n\n\t\tSubRegion.Edge blockFirst = region.getFirstEdge();\n\t\tSubRegion.Edge current = blockFirst;\n\t\tdo /* All edges of Block has road access */\n\t\t{\n\t\t\tcurrent.hasRoadAccess = true;\n\t\t\tcurrent = current.next;\n\t\t} while (current != blockFirst);\n\n\t\t/* Add the region to queue for splitting */\n\t\tregionQueue.add(region);\n\n\t\t/* While there are some more regions to subdivide. */\n\t\twhile (!regionQueue.isEmpty())\n\t\t{\n\t\t\t/* Get first region. */\n\t\t\tregion = regionQueue.get(regionQueue.size() - 1);\n\n\t\t\t/* Calc the longest road edge and split size. */\n\t\t\tlongestEdge = region.getLongestEdgeWithRoadAccess();\n\t\t\tif (longestEdge != null)\n\t\t\t{\n\t\t\t\tedgeLine.set(new Point(longestEdge.beginning), new Point(longestEdge.next.beginning));\n\t\t\t\tlogger.debug(\"Longest Road edge: \" + edgeLine.length());\n\t\t\t\tif (edgeLine.length() <= LOT_WIDTH) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t * No road edge requires\n\t\t\t\t\t\t\t\t\t\t\t\t\t * further splitting.\n\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t{\n\t\t\t\t\t/* Calc the longest non-road edge and split size. */\n\t\t\t\t\tlongestEdge = region.getLongestEdgeWithoutRoadAccess();\n\t\t\t\t\tif (longestEdge != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tedgeLine.set(longestEdge.beginning, longestEdge.next.beginning);\n\t\t\t\t\t\tlogger.debug(\"Longest NONRoad edge: \" + edgeLine.length());\n\t\t\t\t\t\tif (edgeLine.length() <= LOT_DEPTH) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * No non-road edge\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * requires further\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * splitting.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"Region is small enough, moving to output.\");\n\t\t\t\t\t\t\tlogger.debug(\" area = \" + region.toPolygon().area());\n\t\t\t\t\t\t\tlogger.debug(region.toString());\n\t\t\t\t\t\t\t/* Region is complete. */\n\t\t\t\t\t\t\toutputRegions.add(region);\n\t\t\t\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\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{\n\t\t\t\t\t\t\tsplitSize = LOT_DEPTH;\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{\n\t\t\t\t\t\t/* All edges are small enough */\n\t\t\t\t\t\toutputRegions.add(region);\n\t\t\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\t\t\t\tcontinue;\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\t\tsplitSize = LOT_WIDTH;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// if lot is small enough, add completed region\n\t\t\t\tlogger.debug(\"THIS REGION HAS NO Edge with RoadAccess.\");\n\t\t\t\tlogger.debug(\" \" + region.toPolygon().toString());\n\t\t\t\toutputRegions.add(region);\n\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// calculate the split points\n\t\t\tsp1 = calcSplitPoint(edgeLine, splitSize, LOT_DEVIANCE);\n\t\t\tsp2 = new Point(sp1);\n\t\t\tsp2.add(edgeLine.normal());// *longestEdge.length();\n\t\t\t// split and process the new regions\n\t\t\tnewRegions = splitRegion(region, sp1, sp2); // BUG: <-- not working?\n\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\tfor (SubRegion newRegion : newRegions)\n\t\t\t{\n\t\t\t\tlogger.debug(\"New region:\");\n\t\t\t\tlogger.debug(newRegion.toString());\n\t\t\t\tif (newRegion.hasRoadAccess())\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\" Adding to processing queue: \" + newRegion.toPolygon().toString());\n\t\t\t\t\tregionQueue.add(newRegion); // add to processing queue\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\" Discarded.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tPolygon newRegionPolygon;\n\t\tlogger.debug(\"Block::createLots() numberOfRegions \" + outputRegions.size());\n\t\tfor (SubRegion newRegion : outputRegions)\n\t\t{\n\t\t\tnewRegionPolygon = newRegion.toPolygon();\n\t\t\tif (newRegionPolygon.isNonSelfIntersecting())\n\t\t\t{\n\t\t\t\tlots.add(new Lot(this, newRegionPolygon));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new IllegalStateException(\"Self-intersecting polygon encountered: \" + newRegionPolygon.toString());\n\t\t\t}\n\t\t}\n\t}",
"public RMRect getBoundsMarkedDeep()\n{\n // Get normal marked bounds\n RMRect bounds = getBoundsMarked();\n \n // Iterate over (visible) children and union with their BoundsMarkedDeep (converted to this shape coords)\n for(int i=0, iMax=getChildCount(); i<iMax; i++) { RMShape child = getChild(i);\n if(!child.isVisible()) continue;\n RMRect childBounds = child.getBoundsMarkedDeep();\n childBounds = child.convertRectToShape(childBounds, this);\n bounds.unionEvenIfEmpty(childBounds);\n }\n\n // Return marked bounds\n return bounds;\n}",
"@SuppressLint(\"DrawAllocation\")\n\t@Override\n\tprotected void onLayout(boolean changed, int left, int top, int right,\n\t\t\tint bottom) {\n\t\tsuper.onLayout(changed, left, top, right, bottom);\n\t\tint ht = thickness;\n\t\tht = ht - ht / 2 + 2;\n\t\tif (thickness % 2 != 0)\n\t\t\tht -= 1;\n\t\tint width = getWidth();\n\t\tint height = getHeight();\n\t\tif (width >= height) {\n\t\t\tint diff = width - height;\n\t\t\trectF = new RectF(ht + diff / 2, ht, width - ht - diff / 2, height\n\t\t\t\t\t- ht);\n\t\t\tdiameter = height;\n\t\t} else {\n\t\t\tint diff = height - width;\n\t\t\trectF = new RectF(ht, ht + diff / 2, width - ht, height - ht - diff\n\t\t\t\t\t/ 2);\n\t\t\tdiameter = width;\n\t\t}\n\t}",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException{\n\t\tShape cloned = this;\n\t\tcloned.setPosition(this.getPosition());\n\t\tcloned.setProperties(this.getProperties());\n\t\tcloned.setColor(this.getColor());\n\t\tcloned.setFillColor(this.getFillColor());\n\t\treturn cloned;\n\t}",
"public void cloningFactor() {\n\t\t\t\n\t\t\tsort();\n\t\t\tdouble factorNum = 0.0; \n\t\t\t\n\t\t\tfor(Solution sol : population) {\n\t\t\t\tfactorNum = averagePath / (double) sol.getPath();\n\t\t\t\tsol.setCloningFactor(factorNum);\n\t\t\t}\n\t\t}",
"public Resource split( int amount )\n\t{\n\t\tResource r = pool.obtain();\n\t\tthis.transter(r, amount);\n\t\t\n\t\treturn r;\n\t}",
"public abstract void stretch(final DPoint _pnt_from, \n\t final DPoint _pnt_totalStretch,\n final DPoint _pnt_size);",
"public RoundRectStroke(RoundRectStroke copyFrom) {\n super(copyFrom.parentView, new Path(), copyFrom);\n points.addAll(copyFrom.points);\n createPath();\n }",
"Drawable getTopDivider(int section, int position);",
"@Override\n public ChessPiece clone() {\n ChessPiece copy = new Bishop(this.owner);\n this.owner.removeChessPiece(copy);\n copy.canCastle = this.canCastle;\n copy.icon = this.icon;\n\n return copy;\n }",
"IShape getShapeAtTick(double tick, IShape accumulatorShape);",
"public void apply(Graphics2D g, Shape clipShape, int width, int height) {\n Rectangle tmp = clipShape.getBounds();\n width = (int) tmp.getMaxX();\n height = (int) tmp.getMaxY();\n tmp.setRect(0, 0, width + getEffectWidth() * 2 + 1,\n height + getEffectWidth() * 2 + 1);\n\n // Apply the border glow effect\n if (isShapeMasked()) {\n BufferedImage clipImage = getClipImage(tmp);\n Graphics2D g2 = clipImage.createGraphics();\n try {\n /* clear the buffer */\n g2.setPaint(Color.BLACK);\n g2.setComposite(AlphaComposite.Clear);\n g2.fillRect(0, 0, clipImage.getWidth(), clipImage.getHeight());\n\n g2.translate(getEffectWidth() - getOffset().getX(),\n getEffectWidth() - getOffset().getY());\n paintBorderGlow(g2, clipShape, width, height);\n\n /* clip out the parts we don't want */\n g2.setComposite(AlphaComposite.Clear);\n g2.setColor(Color.WHITE);\n if (isRenderInsideShape()) {\n /* clip the outside */\n Area area = new Area(tmp);\n area.subtract(new Area(clipShape));\n g2.fill(area);\n } else {\n /* clip the inside */\n g2.fill(clipShape);\n }\n } finally {\n /* draw the final image */\n g2.dispose();\n }\n g.drawImage(clipImage, -getEffectWidth() + (int) getOffset().getX(), -getEffectWidth() + (int) getOffset().getY(), null);\n } else {\n paintBorderGlow(g, clipShape, width, height);\n }\n }",
"public T elementDiv( T b ) {\n convertType.specify(this, b);\n T A = convertType.convert(this);\n b = convertType.convert(b);\n\n T c = A.createLike();\n A.ops.elementDiv(A.mat, b.mat, c.mat);\n return c;\n }",
"private HBox createTopOrderBox() {\n\t\tHBox h = new HBox();\n\t\tHBox.setMargin(h, new Insets(4));\n\t\t\n\t\t//Create the labels for the current order\n\t\tLabel l1 = new Label(\"Order: \");\n\t\tint currOrder = noOfOrders+1;\n\t\tLabel l2 = new Label(\"\"+currOrder);\n\t\t\n\t\t//A divider for neatness\n\t\tRegion r = new Region();\n\t\tr.setPrefWidth(150);\n\t\t\n\t\t//Create the label and TextField for the ticks we want from the user\n\t\tLabel l3 = new Label(\"TicksToPack: \");\n\t\tTextField tf = new TextField();\n\t\ttf.setPromptText(\"value between 0-99\");\n\t\t//Assign the TextField to the currentOrder variable to reference later\n\t\tcurrentOrder.setTickNo(tf);\n\t\t\n\t\t//Add all this to the HBox and return it.\n\t\th.getChildren().addAll(l1,l2,r,l3,tf);\n\t\treturn h;\n\t}",
"public ConstRect expandSize(final int amount)\r\n {\r\n return new ConstRect(x, y, width + amount, height + amount);\r\n }",
"public interface IncrementalShapeAggregator {\n\n /**\n * Returns coordinates which if occupied complete the shape.\n * @return\n */\n Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();\n\n /**\n * Add update to the aggregate.\n *\n * @param cell cells to be updated\n * @param newPlayerId new player ID\n */\n Integer update(BoardCell cell, int newPlayerId);\n\n /**\n * True if tracks a row.\n *\n * @return\n */\n default boolean isHorizontalLineSegment() {\n return false;\n }\n\n /**\n * True if track a vertical segment.\n * @return\n */\n default boolean isVerticalLineSegment() {\n return false;\n }\n\n /**\n * True if track all corners.\n * @return\n */\n default boolean isAllCorners() {\n return false;\n }\n\n /**\n * True if this aggregator tracks a diagonal.\n * @return\n */\n default boolean isDiagonalLineSegment() {\n return false;\n }\n\n /**\n *\n * @return winning player id\n */\n Integer getWinner();\n\n /**\n * Register cell.\n * @param cell\n */\n void addCell(BoardCell cell);\n\n /**\n * Any vacant cells?\n * @return if there is any free slots\n */\n boolean isCompletable();\n\n /**\n * Suggests a move for the given player and length of the segment.\n * @param player who is the guy\n * @param desiredLength size required to win\n * @return\n */\n PrioritizedMove getBestMoveFor(int player, int desiredLength);\n}",
"public void difference(Shape s);",
"public Fraction dividedBy(Fraction other) {\n Fraction end = times(other.getReciprocal());\n\n return end;\n\n }",
"public abstract void constructHull();"
] |
[
"0.65740466",
"0.5272701",
"0.5201267",
"0.50661325",
"0.5020064",
"0.49990952",
"0.49979633",
"0.49211222",
"0.484651",
"0.48432693",
"0.4835682",
"0.48354533",
"0.4818184",
"0.48097843",
"0.48083532",
"0.47998175",
"0.47761822",
"0.47597545",
"0.4742168",
"0.4731428",
"0.47275054",
"0.4703506",
"0.4691151",
"0.46681833",
"0.46224427",
"0.4602389",
"0.45872414",
"0.4569496",
"0.4551091",
"0.45452192",
"0.4542993",
"0.45147365",
"0.45015872",
"0.44992056",
"0.44991803",
"0.44879556",
"0.44828284",
"0.446824",
"0.4460434",
"0.44562232",
"0.44535887",
"0.44427282",
"0.44369984",
"0.4419966",
"0.44154742",
"0.44091186",
"0.44085065",
"0.44014737",
"0.43815318",
"0.437187",
"0.43705124",
"0.43649623",
"0.43562666",
"0.43539643",
"0.43523383",
"0.43491018",
"0.43386167",
"0.43013665",
"0.4280772",
"0.42754048",
"0.4251223",
"0.42362598",
"0.42078868",
"0.41981715",
"0.41935953",
"0.4184208",
"0.41820717",
"0.41817275",
"0.41743308",
"0.41729644",
"0.4169063",
"0.41684014",
"0.41601482",
"0.41549656",
"0.415262",
"0.41503233",
"0.41467857",
"0.41374308",
"0.41333112",
"0.41318908",
"0.41298312",
"0.41292852",
"0.41244698",
"0.41197947",
"0.4117499",
"0.41151184",
"0.41143912",
"0.41139087",
"0.41113672",
"0.41103324",
"0.41094226",
"0.41051757",
"0.41033164",
"0.40974078",
"0.40949696",
"0.40943012",
"0.40877923",
"0.40874788",
"0.4087421",
"0.40827155"
] |
0.6902506
|
0
|
Divides the shape by a given amount from the given edge. Returns newShape (or, if null, a clone) whose bounds have been set to the remainder.
|
public RMShape divideShapeFromEdge(double anAmount, byte anEdge, RMShape aNewShape)
{
// Get NewShape (if aNewShape is null, create one)
RMShape newShape = aNewShape!=null? aNewShape : createDivideShapeRemainder(anEdge);
// Get bounds for this shape and remainder bounds (divide bounds by amount from edge)
RMRect bounds = getFrame();
RMRect remainder = bounds.divideRect(anAmount, anEdge);
// Set this shape's new bounds and NewShape bounds as remainder
setFrame(bounds);
newShape.setFrame(remainder);
return newShape;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected RMShape createDivideShapeRemainder(byte anEdge) { return clone(); }",
"public RMShape divideShapeFromTop(double anAmount) { return divideShapeFromEdge(anAmount, RMRect.MinYEdge, null); }",
"private void discount(Edge edge) {\n\t\tedge.setElement(edge.getElement()*Constants.DISCOUNT);\n\t}",
"private Fraction reduce() {\n Fraction f = null;\n try {\n f = (Fraction)clone();\n } catch (CloneNotSupportedException e) {};\n if (denominator == 0)\n throw new ArithmeticException (\" illegal denominator zero \");\n if (denominator < 0) {\n f.numerator = -numerator;\n f.denominator = -denominator;\n }\n if (numerator == 0)\n f.denominator = 1;\n else {\n int n = gcd (numerator, denominator);\n f.numerator = numerator / n;\n f.denominator = denominator / n;\n }\n return f;\n }",
"public ConstRect expandSize(final int amount)\r\n {\r\n return new ConstRect(x, y, width + amount, height + amount);\r\n }",
"public Fraction dividedBy(Fraction other) {\n Fraction end = times(other.getReciprocal());\n\n return end;\n\n }",
"private void subDivideNode() {\n setOriginNode();\n _subdivided = true;\n _northWest = new QuadTree<Point>(getView(), _transitionSize);\n _northEast = new QuadTree<Point>(getView(), _transitionSize);\n _southWest = new QuadTree<Point>(getView(), _transitionSize);\n _southEast = new QuadTree<Point>(getView(), _transitionSize);\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point p = it.next();\n QuadTree<Point> qt = quadrant(p);\n qt.add(p);\n }\n _elements = null;\n _elementsSize = 0;\n }",
"private void setShape(ChamberShape theShape) {\n mySize = theShape;\n createDoorsFromExits();\n }",
"public void updateCrowdness(EdgeGraph newEdge) {\n\t\tif (currentEdge != null) {\n\t\t\tArrayList<Pedestrian> currentVolume = PedSimCity.edgesVolume.get(currentEdge);\n\t\t\tcurrentVolume.remove(this);\n\t\t}\n\n\t\t// update new edge traffic\n\t\tif (PedSimCity.edgesVolume.get(newEdge) == null) PedSimCity.edgesVolume.put(newEdge, new ArrayList<Pedestrian>());\n\t\tPedSimCity.edgesVolume.get(newEdge).add(this);\n\t}",
"public Resource split( int amount )\n\t{\n\t\tResource r = pool.obtain();\n\t\tthis.transter(r, amount);\n\t\t\n\t\treturn r;\n\t}",
"public TopoDS_Shape Ancestor( TopoDS_Edge E) {\n TopoDS_Shape ret = new TopoDS_Shape(OCCwrapJavaJNI.BRepAlgo_NormalProjection_Ancestor(swigCPtr, this, TopoDS_Edge.getCPtr(E), E), true);\n return ret;\n }",
"public Fraction divide(Fraction divisor)\n {\n Fraction flipDivisor = divisor.reciprocal();\n Fraction newFraction = new Fraction();\n newFraction = this.multiply(flipDivisor);\n return newFraction;\n }",
"public void setShape(ChamberShape theShape) {\n mySize = theShape;\n setExits();\n }",
"public Animal copulate(Animal partner) {\n\t\tAnimal child = new Animal(this, partner);\n\t\tthis.offspring.add(child);\n\t\tpartner.getOffspring().add(child);\n\t\t\n\t\tapplyCopulationPenalty(this);\n\t\tapplyCopulationPenalty(partner);\n\t\t\n\t\treturn child;\n\t}",
"public void addSize(double edgeSize)\r\n\t{\r\n\t\tsize= size + edgeSize;\r\n\t}",
"private Area shrinkArea(Area area, int amount) {\n\t\tint i = amount;\n\t\ttmpArea4 = (Area) area.clone();\n\t\tdo {\n\t\t\ttmpArea4 = shrinkArea(tmpArea4, i, 1, 1);\n\t\t\ttmpArea4 = shrinkArea(tmpArea4, i, -1, -1);\n\t\t\ttmpArea4 = shrinkArea(tmpArea4, i, 1, -1);\n\t\t\ttmpArea4 = shrinkArea(tmpArea4, i, -1, 1);\n\t\t} while (i-- >= 0 && !tmpArea4.isEmpty());\n\t\tif (!tmpArea4.isEmpty()\n\t\t\t\t&& tmpArea4.getBounds().width > INTERACT_SIZE_MIN\n\t\t\t\t&& tmpArea4.getBounds().height > INTERACT_SIZE_MIN)\n\t\t\tarea = tmpArea4;\n\t\tarea.intersect(gameArea);\n\t\treturn area;\n\t}",
"public void setSquareSide (int newLength){\r\n model.setSideLength(newLength);\r\n view.resetView(model);\r\n }",
"public Edge getResidualEdge () {\r\n return new Edge(from,to,(capacity - flow));\r\n }",
"private static int multAndDivFixer(int size){\n return size;\n }",
"public Polyline shrink(double percentage)\n {\n \tPoint centroid = this.getVisualCenter(1);\n \t\n \tPolyline output = new Polyline(this._isClosed, this._points, this._isFilled);\n \t\n \tint len = output._points.size();\n \tfor(int i = 0; i < len; i++)\n \t{\n \t\tPoint pt = output._points.get(i);\n \t\tpt = pt.multScalar(1 - percentage).add(centroid.multScalar(percentage));\n \t\toutput._points.set(i, pt);\n \t}\n\n \treturn output;\n }",
"void updateEdgeData(EdgeGraph edge) {\n\t\tedge = PedSimCity.edgesMap.get(edge.getID()); //in case it was a subgraph edge\n\t\tif (UserParameters.empiricalABM) edge.densities.replace(agp.groupName, edge.densities.get(agp.groupName)+1);\n\t\telse edge.densities.replace(ap.routeChoice, edge.densities.get(ap.routeChoice)+1);\n\t}",
"public void addShape(RetainedShape shapePeer) {\r\n\t\tif (shapePeer.vboHandle != null) {\r\n\t\t\tthrow new IllegalArgumentException(\"vboHandle != null\");\r\n\t\t}\r\n\t\t\r\n\t\tint[] minMax = ((RetainedVertexData)shapePeer.shape.getVertexData().nativePeer).getMinMaxIndex();\r\n\t\tint chunkSize = minMax[1] - minMax[0] + 1;\r\n\t\t\r\n\t\tListIterator<Handle> iter = handles.listIterator();\r\n\r\n\t\t// look for empty space in existing array \r\n\t\tint startIdx = 0;\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tHandle next = iter.next();\r\n\t\t\tint available = next.startIdx - startIdx;\r\n\t\t\tif (available >= chunkSize) {\r\n\t\t\t\tSystem.out.println(\"found place at offset \"+startIdx);\r\n\t\t\t\t// move back iterator so the new handle is inserted in sorted order\r\n\t\t\t\tif (iter.hasPrevious()) {\r\n\t\t\t\t\titer.previous();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tstartIdx = next.startIdx + next.count;\r\n\t\t}\t\t\r\n\r\n\t\t// check if array need to grow\r\n\t\tint sizeNeeded = startIdx+chunkSize; \r\n\t\tif (sizeNeeded > numElements) {\r\n\t\t\t// grow array if we need to use more than 50% of array\r\n\t\t\tif (elementsUsed > sizeNeeded / 2) {\r\n\t\t\t\tnumElements = sizeNeeded * 2;\r\n\t\t\t\tresizeArrays();\r\n\t\t\t}\r\n\t\t\tcompact();\r\n\t\t\t\r\n\t\t\t// put new handle at end of compacted memory\r\n\t\t\tstartIdx = elementsUsed;\r\n\t\t}\r\n\t\t\r\n\t\t// insert handle at current iterator position so it will be sorted\r\n\t\tHandle handle = new Handle();\r\n\t\thandle.shapePeer = shapePeer;\r\n\t\thandle.startIdx = startIdx;\r\n\t\thandle.count = chunkSize;\r\n\t\thandle.upload();\r\n\t\tshapePeer.vboHandle = handle;\r\n\t\titer.add(handle);\r\n\t\t\r\n\t\telementsUsed += chunkSize;\r\n\t\t\r\n\t\tVertexData vertexData = shapePeer.shape.getVertexData();\r\n\t\tif (vertexData.colors != null) {\r\n\t\t\tclientState |= (1 << 2);\r\n\t\t}\r\n\t}",
"@Override\n public void reshape(Shape other) {\n Triangle triangle = (Triangle) other;\n this.a = CloneUtil.clone(triangle.getA());\n this.b = CloneUtil.clone(triangle.getB());\n this.c = CloneUtil.clone(triangle.getC());\n this.toBeFilled = other.toBeFilled;\n this.stroke = other.stroke;\n this.color = new Color(other.color.getRGB());\n // System.out.println(\"Reshape after: \" + this.toString());\n }",
"public Edge originalEdge() {\n return original;\n }",
"private Edge getKernelEdge(Edge edge){\n\t\tif (edge.getGraph() != null && (edge.getGraph().isLhs() || edge.getGraph().isRhs())) {\n\t\t\tRule rule = edge.getGraph().getRule();\n\t\t\treturn rule.getMultiMappings().getOrigin(edge);\n\t\t}\n\t\treturn null;\n\t}",
"public HalfEdge(int q) { end = q; }",
"LengthScalarDivide createLengthScalarDivide();",
"public void subdivide() {\n\t\tif (!divided) {\n\t\t\tdivided = true;\n\t\t\t\n\t\t\t// Calculate the width and height of the sub nodes\n\t\t\tint width = (int) Math.ceil(boundary.width/2.0) + 1;\n\t\t\tint height = (int) Math.ceil(boundary.height/2.0) + 1;\n\t\t\t\n\t\t\t// Create ArrayList for the nodes and insert them\n\t\t\tnodes = new ArrayList<QuadTreeNode<E>>();\n\t\t\t\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x, boundary.y + height, height, width));\n\t\t\tnodes.add(new QuadTreeNode<E>(boundary.x + width, boundary.y + height, height, width));\n\t\t\t\n\t\t\t// Take all the points and insert them into the best sub node\n\t\t\tfor (Point p : points.keySet()) {\n\t\t\t\tQuadTreeNode<E> q = this.getBestQuad(p);\n\t\t\t\tq.add(p, points.get(p));\n\t\t\t}\n\t\t\t\n\t\t\tpoints = null;\n\t\t}\n\t}",
"private void expand(XGraph.XVertex source, Graph.Edge edge) {\n source.seen = true;\n XGraph.XEdge xEdge = (XGraph.XEdge) edge;\n if (source.isComponent()) {\n //Expand the component, with original edge's end vertex as root\n expand(graph.getVertex(xEdge.getOriginal().toVertex()), xEdge.getOriginal());\n } else if (edge != null) {\n source.stEdge = xEdge.getOriginal();\n }\n //explore other components\n for (Graph.Edge e : source) {\n if (!graph.getVertex(e.toVertex()).seen) {\n expand(graph.getVertex(e.toVertex()), e);\n }\n }\n }",
"private Shape createEdge() {\n\t\tEdge edge = (Edge)shapeFactory.getShape(ShapeFactory.EDGE);\n\t\tEdgeLabel edgeLabel = (EdgeLabel) shapeFactory.getShape(ShapeFactory.EDGE_LABEL);\n\t\tedgeLabel.setEdge(edge);\n\t\tedge.setEdgeLabel(edgeLabel);\n\t\tshapes.add(edgeLabel);\n\t\tadd(edgeLabel);\n\t\treturn edge;\n\t}",
"@Override\n\tpublic double perimeter() {\n\t\treturn edge*4;\n\t}",
"public void rescale(double newFactor) {\n\t\tthis.branchScale = branchScale*newFactor;\n\t\t\n\t\tfor(Node n : root.getOffspring()) {\n\t\t\trescale( (DrawableNode)n);\n\t\t}\n\t}",
"private void removeEdge(Edge edge) {\n\t\tshapes.remove(edge);\n\t\tshapes.remove(edge.getEdgeLabel());\n\t\tremove(edge.getEdgeLabel());\n\t}",
"public static Shape findDestShape(Edge edge) {\n\t\tShape shape = null;\n\t\tEdge currentEdge = edge;\n\t\twhile (shape == null) {\n\t\t\tif (currentEdge.getDest() instanceof JoinPoint) {\n\t\t\t\tcurrentEdge = (Edge) ((JoinPoint)currentEdge.getDest()).getDest();\n\t\t\t} else {\n\t\t\t\tshape = currentEdge.getDest();\n\t\t\t}\n\t\t}\n\t\treturn shape;\n\t}",
"public abstract void stretch(final DPoint _pnt_from, \n\t final DPoint _pnt_totalStretch,\n final DPoint _pnt_size);",
"public BigRational divide(BigRational b) {\n return valueOf(this.num.multiply(b.getDenominator()), this.den.multiply(b.getNumerator()));\n }",
"@Override\n\tprotected Shape getShape() {\n\t\tRectangle2D ellipse = new Rectangle2D.Double(this.getX(), this.getY(), this.getDimension(), this.getDimension()/2);\n\t return ellipse;\n\t}",
"public Object clone()\n {\n DataSetDivide new_op = new DataSetDivide( );\n // copy the data set associated\n // with this operator\n new_op.setDataSet( this.getDataSet() );\n new_op.CopyParametersFrom( this );\n\n return new_op;\n }",
"private static void reduceFraction() {\n\t\tint temp=gcd(num,den);\n\t\tden=den/temp;\n\t\tnum=num/temp;\n\t}",
"Shape getNext(int width);",
"private static <T extends Shape> void scaleShape(T shape, double scale){\r\n\t\tshapeContainer = new ShapeContainer<Shape>(shape);\r\n\t\ttry {\r\n\t\t\tshapeContainer.changeShapeScale(scale);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"public abstract Shape getCopy();",
"AngleScalarDivide createAngleScalarDivide();",
"public void setBoundingBoxSize(float percentageWidthReduced,\n float percentageHeightReduced) {\n float width;\n float height;\n float widthReductionAmount = 1.0f - percentageWidthReduced;\n //.8f for 20% (1 - .20)\n float heightReductionAmount = 1.0f - percentageHeightReduced;\n //.8f for 20% (1 - .20)\n if (widthReductionAmount > 0 && widthReductionAmount < 1) {\n width = Entity.FRAME_WIDTH * widthReductionAmount;\n } else {\n width = Entity.FRAME_WIDTH;\n }\n\n if (heightReductionAmount > 0 && heightReductionAmount < 1) {\n height = Entity.FRAME_HEIGHT * heightReductionAmount;\n } else {\n height = Entity.FRAME_HEIGHT;\n }\n\n if (width == 0 || height == 0) {\n Gdx.app.debug(TAG, \"Width and Height are 0!! \" + width + \":\" + height);\n }\n\n //neet do account for the unitscale, since the map coordiantes will be in pixels\n float minX;\n float minY;\n if (MapManager.UNIT_SCALE > 0) {\n minX = _nextEntityPosition.x / MapManager.UNIT_SCALE;\n minY = _nextEntityPosition.y / MapManager.UNIT_SCALE;\n } else {\n minX = _nextEntityPosition.x;\n minY = _nextEntityPosition.y;\n }\n _boundingBox.set(minX, minY, width, height);\n }",
"public ConstRect expandFromCenter(final int amount)\r\n {\r\n return new ConstRect(new Coords(getX() - amount, getY() - amount), getWidth() + 2 * amount,\r\n getHeight() + 2 * amount);\r\n }",
"public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}",
"public void removeShape(RetainedShape shapePeer) {\r\n\t\tshapePeer.vboHandle.delete();\r\n\t}",
"private void createEdgeForShape(Shape shape) {\n\t\tcurrentShape = shape;\n\t\tif (holdAltKey && !(shape instanceof JoinPoint)) {\n\t\t\tShape edge = createEdge();\n\t\t\t((Edge)edge).setSource(currentShape);\n\t\t\taddShape(edge);\n\t\t\tcurrentShape.setDrawing(false);\n\t\t\tcurrentShape = edge;\n\t\t}\n\t}",
"public void addEdge(Edge edgeToAdd){\n for(int i = 0; i<edges.size(); i++){\n Edge edge = edges.get(i);\n if(edge.end() == edgeToAdd.end()){\n edge.setWeight(edgeToAdd.weight()); // Change weight and return if edge is present\n return;\n }\n }\n this.edges.add(edgeToAdd); // Add edge normally\n }",
"@objid (\"7f4a2ac6-1dec-11e2-8cad-001ec947c8cc\")\n private void autoSizeNode(final EditPart newEditPart) {\n final ChangeBoundsRequest resizeReq = new ChangeBoundsRequest(RequestConstants.REQ_RESIZE);\n resizeReq.setEditParts(newEditPart);\n resizeReq.setSizeDelta(new Dimension(-1, -1));\n \n EditPart editPart = newEditPart;\n while (editPart != null && !editPart.understandsRequest(resizeReq)) {\n editPart = editPart.getParent();\n resizeReq.setEditParts(newEditPart);\n }\n \n if (editPart != null) {\n final GraphicalEditPart graphicEditPart = (GraphicalEditPart) editPart;\n \n // Force layout so that child figures on Port container have valid bounds needed by\n // XYLayoutEditPolicy.getConstraintFor(ChangeBoundsRequest , GraphicalEditPart ) .\n graphicEditPart.refresh();\n graphicEditPart.getFigure().getUpdateManager().performValidation();\n \n // Run fit to content to the found edit part.\n new FitToMinSizeCommand(graphicEditPart).execute();\n }\n }",
"public T divide( double val ) {\n T ret = createLike();\n ops.divide(mat, val, ret.getMatrix());\n return ret;\n }",
"protected Ellipse2D.Double getDisc(){\n\t\ttheball.setFrame(this.getX(),this.getY(),diameter,diameter);\n\t\treturn this.theball;\n\t}",
"protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) { return clone(); }",
"protected Rectangle reallocate(Shape a) {\n Rectangle alloc = a.getBounds(); // makes a fresh rectangle instance\n \n setSize(alloc.width, alloc.height); // set new size\n \n return alloc;\n }",
"protected void addEdge(CyEdge edge) {\n\tLayoutEdge newEdge = new LayoutEdge(edge);\n\tupdateWeights(newEdge);\n\tedgeList.add(newEdge);\n }",
"E shrink();",
"public void mouseClicked(MouseEvent e) {\n\t\t\n\t\tShape newShape = (Shape)currentShape.clone(); //Creates new shape based on the shape constructed and cloned \n\t\tnewShape.setCenter(e.getX(), e.getY()); //sets the shape to center around the mouse clicked region \n\t\tDrawingCanvas drawingCanvas = (DrawingCanvas)e.getSource(); //creates a drawingCanvas after mouse(clicked)event occurs\n\t\tdrawingCanvas.addShape(newShape); //adds the related shape to drawingCanvas\n\t\t\n }",
"void resolveBorder(GridUnit other, int side) {\n switch (side) {\n case CommonBorderPaddingBackground.BEFORE:\n borderBefore.resolve(other.borderAfter, true, false, false);\n break;\n case CommonBorderPaddingBackground.AFTER:\n borderAfter.resolve(other.borderBefore, true, false, false);\n break;\n case CommonBorderPaddingBackground.START:\n BorderSpecification resolvedBorder = collapsingBorderModel.determineWinner(\n borderStart, other.borderEnd);\n if (resolvedBorder != null) {\n this.borderStart = resolvedBorder;\n other.borderEnd = resolvedBorder;\n }\n break;\n case CommonBorderPaddingBackground.END:\n resolvedBorder = collapsingBorderModel.determineWinner(\n borderEnd, other.borderStart);\n if (resolvedBorder != null) {\n this.borderEnd = resolvedBorder;\n other.borderStart = resolvedBorder;\n }\n break;\n default: assert false;\n }\n }",
"public void cloningFactor() {\n\t\t\t\n\t\t\tsort();\n\t\t\tdouble factorNum = 0.0; \n\t\t\t\n\t\t\tfor(Solution sol : population) {\n\t\t\t\tfactorNum = averagePath / (double) sol.getPath();\n\t\t\t\tsol.setCloningFactor(factorNum);\n\t\t\t}\n\t\t}",
"public static Shape findSourceShape(Edge edge) {\n\t\tShape shape = null;\n\t\tEdge currentEdge = edge;\n\t\twhile (shape == null) {\n\t\t\tif (currentEdge.getSource() instanceof JoinPoint) {\n\t\t\t\tcurrentEdge = (Edge) ((JoinPoint)currentEdge.getSource()).getSource();\n\t\t\t} else {\n\t\t\t\tshape = currentEdge.getSource();\n\t\t\t}\n\t\t}\n\t\treturn shape;\n\t}",
"public Vector2f div(Vector2f vec) {\n if (vec.x == 0 || vec.y == 0) throw new ArithmeticException(\"Divide by 0 exception\");\n this.x /= vec.x;\n this.y /= vec.y;\n return this;\n }",
"private void updateShapeFactory(int value) {\n ShapeFactory.setRoundness(value);\n }",
"public void completeMultDivExpr_Op(EObject model, Assignment assignment, ContentAssistContext context,\n\t\t\tICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t\t// subclasses may override\n\t\t// subclasses may override\n\t}",
"public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}",
"private Edge derive(Edge edge, RelationGraph[] operands) {\n int time = edge.getTime();\n int length = edge.getDerivationLength();\n for (RelationGraph g : operands) {\n Edge e = g.get(edge);\n if (e == null) {\n return null;\n }\n time = Math.max(time, e.getTime());\n length = Math.max(length, e.getDerivationLength());\n }\n return edge.with(time, length);\n }",
"public void div() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->div() unimplemented!\\n\");\n }",
"public Vector3 modifyPositionFromSide(ForgeDirection side, double amount)\n {\n return this.translate(new Vector3(side).scale(amount));\n }",
"public void lowerHalf() {\n\t\t// TODO: Implement\n\t\tint sumOfSlotCounts = getSumOfSlotCount()-1;\n\t\tif(sumOfSlotCounts < 0) return;\n\t\t//if(getSlotCount() == 1 && getSumOfSlotCount() == 1) return;\n\t\tint slot = getSlotCount()-1;\n\t\tint beanNumber = getSlotBeanCount(slot)-1;\n\t\tint deleted=0;\n\t\t//System.out.println(\"sumOfCounts: \" + sumOfSlotCounts);\n\t\twhile(deleted < Math.floor(sumOfSlotCounts / 2) ){\n\t\t\t/*if (slotBean.get(slot).isEmpty()) {\n\t\t\t\tslot++;\n\t\t\t\tbeanNumber = 0;\n\t\t\t\tSystem.out.println(\"slot empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t}*/\n\t\t\t\n\t\t\t//System.out.println(\"i: \" + deleted + \" count: \" + getSlotBeanCount(slot)+\" beanNumber: \" + beanNumber);\n\t\t\tif(beanNumber < getSlotBeanCount(slot) && beanNumber >= 0 && getSlotBeanCount(slot) > 0 ) {\n\t\t\t\t//System.out.println(\"slot not empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t\tslotBean.get(slot).remove(beanNumber--);\n\t\t\t\tdeleted++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//System.out.println(\"slot empty: slot: \" + slot + \" beanN: \" + beanNumber);\n\t\t\t\tif(slot >= 0) slot--;\n\t\t\t\tif(getSlotBeanCount(slot) > 0) beanNumber = getSlotBeanCount(slot)-1;\n\t\t\t\telse beanNumber = 0;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"private void reduce() {\n int gcd = gcd(this.numerator, this.denominator);\n this.numerator = this.numerator / gcd;\n this.denominator = this.denominator / gcd;\n }",
"void setBestIncoming(E edge);",
"Node split() {\r\n LeafNode Sibling = new LeafNode();\r\n int index = (branchingFactor + 1) / 2;\r\n int to = key_num();\r\n Sibling.keys.addAll(keys.subList(index, to));\r\n Sibling.values.addAll(values.subList(index, to));\r\n\r\n keys.subList(index, to).clear();\r\n values.subList(index, to).clear();\r\n\r\n\r\n // to make connections between the old node and the new node\r\n Sibling.next = next;\r\n Sibling.previous = this;\r\n // the current's next may be null so to check on that\r\n if (next != null) {\r\n next.previous = Sibling;\r\n }\r\n next = Sibling;\r\n\r\n return Sibling;\r\n }",
"public int scale(int original);",
"public final Shape getScaled(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn getCopy().scale(fromPoint, toPoint, anchorPoint);\n\t}",
"public BigInt divide(BigInt rhs) throws ArithmeticException, BigIntException {\n if (null == rhs) {\n throw new BigIntException(\"null parameter\");\n }\n\n if (rhs.equals(new BigInt(\"0\"))) {\n // The rhs is 0\n throw new ArithmeticException(\"Zero division\");\n }\n\n BigInt absNumerator = new BigInt(number, true);\n BigInt quotient = new BigInt(new ArrayList<Integer>(), true);\n BigInt origDenominator = new BigInt(rhs.number, true);\n BigInt denominator = new BigInt(rhs.number, true);\n while (0 >= denominator.compareTo(absNumerator)) {\n quotient = quotient.plus(new BigInt(\"1\"));\n denominator = denominator.plus(origDenominator);\n }\n\n quotient.isPositive = (isPositive == rhs.isPositive);\n\n return quotient;\n }",
"public double calculateField(double aSide);",
"public void addEdgeToBounds(S2Point from, S2Point to) {\n if (!boundSet) {\n boundSet = true;\n xmin = xmax = from.x;\n ymin = ymax = from.y;\n zmin = zmax = from.z;\n }\n xmin = Math.min(xmin, Math.min(to.x, from.x));\n ymin = Math.min(ymin, Math.min(to.y, from.y));\n zmin = Math.min(zmin, Math.min(to.z, from.z));\n xmax = Math.max(xmax, Math.max(to.x, from.x));\n ymax = Math.max(ymax, Math.max(to.y, from.y));\n zmax = Math.max(zmax, Math.max(to.z, from.z));\n\n // Because our arcs are really geodesics on the surface of the earth\n // an edge can have intermediate points outside the xyz bounds implicit\n // in the end points. Based on the length of the arc we compute a\n // generous bound for the maximum amount of deformation. For small edges\n // it will be very small but for some large arcs (ie. from (1N,90W) to\n // (1N,90E) the path can be wildly deformed. I did a bunch of\n // experiments with geodesics to get safe bounds for the deformation.\n double approxArcLen =\n Math.abs(from.x - to.x) + Math.abs(from.y - to.y) + Math.abs(from.z - to.z);\n if (approxArcLen < 0.025) { // less than 2 degrees\n maxDeformation = Math.max(maxDeformation, approxArcLen * 0.0025);\n } else if (approxArcLen < 1.0) { // less than 90 degrees\n maxDeformation = Math.max(maxDeformation, approxArcLen * 0.11);\n } else {\n maxDeformation = approxArcLen * 0.5;\n }\n }",
"public abstract Shape clone() throws CloneNotSupportedException;",
"public Fraction fractionPart() {\n return new Fraction (numerator - denominator*integerPart(), denominator)\n .reduce();\n }",
"public void assignShape() {\n\t\t\n\t}",
"public Fraction divide(Fraction f){\n return new Fraction(this.numerator * f.denominator, this.denominator * f.numerator);\n }",
"public final void div() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue / topMostValue);\n\t\t\t}\n\t\t}\n\t}",
"double getEdgeWeight();",
"private double getPieceBoundingRectangleWidth(HomePieceOfFurniture piece, float additionalAngle) {\n return Math.abs(piece.getWidthInPlan() * Math.cos(additionalAngle + piece.getAngle())) \n + Math.abs(piece.getDepthInPlan() * Math.sin(additionalAngle + piece.getAngle()));\n }",
"@Override\n\tpublic double area() {\n\t\treturn edge*edge;\n\t}",
"Division createDivision();",
"public Coord simplifyAsFraction() {\n int gcd = gcd();\n return new Coord(row / gcd, column / gcd);\n }",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public double divide(double a, double b, boolean rem){ return rem? a%b: a/b; }",
"@Override\n\tpublic void give(Fraction fraction) {\n\t\tFraction amount = Fraction.minimum(getSize().subtract(getAmount()), fraction);\n\n\t\tsetAmount(Fraction.add(getAmount(), amount));\n\t}",
"@Override\n public Object clone() throws CloneNotSupportedException {\n return new Fraction (getNumerator(), getDenominator());\n }",
"public Shape getChildAllocation(int index, Shape a) {\n return a;\n }",
"public Rational divide(Rational other)\n\t{\n\t\tint divNumer = (getNumer() * other.getDenom());\n\t\tint divDenom = (getDenom() * other.getNumer());\n\n\t\tRational quotient = new Rational(divNumer, divDenom);\n\t\tquotient.normalize();\n\t\treturn quotient;\n\t}",
"@Override\n protected BDDState handleDeclarationEdge(CDeclarationEdge cfaEdge, CDeclaration decl)\n throws UnsupportedCodeException {\n\n if (decl instanceof CVariableDeclaration vdecl) {\n if (vdecl.getType().isIncomplete()) {\n // Variables of such types cannot store values, only their address can be taken.\n // We can ignore them.\n return state;\n }\n\n CInitializer initializer = vdecl.getInitializer();\n CExpression init = null;\n if (initializer instanceof CInitializerExpression) {\n init = ((CInitializerExpression) initializer).getExpression();\n }\n\n // make variable (predicate) for LEFT SIDE of declaration,\n // delete variable, if it was initialized before i.e. in another block, with an existential\n // operator\n Partition partition = varClass.getPartitionForEdge(cfaEdge);\n Region[] var =\n predmgr.createPredicate(\n vdecl.getQualifiedName(),\n vdecl.getType(),\n cfaEdge.getSuccessor(),\n bvComputer.getBitsize(partition, vdecl.getType()),\n precision);\n BDDState newState = state.forget(var);\n\n // initializer on RIGHT SIDE available, make region for it\n if (init != null) {\n final Region[] rhs =\n bvComputer.evaluateVectorExpression(\n partition, init, vdecl.getType(), cfaEdge.getSuccessor(), precision);\n newState = newState.addAssignment(var, rhs);\n }\n\n return newState;\n }\n\n return state; // if we know nothing, we return the old state\n }",
"public static Rational divide(Rational one, Rational two) {\n\t\t// prevent divide by zero\n\t\tif (two.numerator == 0)\n\t\t\tthrow new RuntimeException(\"Cannot divide by Rational with numerator of 0 (divide by zero exception)\");\n\t\t\t\t\t\n\t\treturn new Rational(one.numerator * two.denominator, one.denominator * two.numerator);\n\t}",
"public Vector normalize() {\n double num=1/length();\n head = scale(num).head;\n return this;\n }",
"public RMShape cloneDeep() { return clone(); }",
"private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"private void constructMirrorEdge(Edge edge) {\n MirrorEdge mirrorEdge = new MirrorEdge();\n mirrorEdge.original = edge;\n mirrorEdge.source = edge.source();\n mirrorEdge.target = edge.target();\n directEdgeMap.put(edge, mirrorEdge);\n }",
"public void setSliceSize(int newSize) {\n ArrayList<Integer> newSlice = new ArrayList<>(slice);\n if (newSize > slice.size()) {\n if (slice.size() == 0) {\n newSlice = new ArrayList<>(Collections.nCopies(newSize, 0));\n patternSpecific = new ArrayList<>(Collections.nCopies(newSize, 0));\n } else {\n // If the new size is larger, then add a few extra values\n newSlice.addAll(new ArrayList<>(Collections.nCopies(newSize - newSlice.size(), newSlice.get(newSlice.size() - 1))));\n patternSpecific.addAll(new ArrayList<>(Collections.nCopies(newSize - patternSpecific.size(), patternSpecific.get(patternSpecific.size() - 1)))); // Also modify the patternSpecific array\n }\n } else if (newSize < newSlice.size()) {\n // If the new size is smaller, then remove the extra values\n newSlice.subList(newSize, newSlice.size()).clear(); // Remove the extra elements\n patternSpecific.subList(newSize, patternSpecific.size()).clear(); // Remove the extra elements (Also modify the patternSpecific array)\n } else {\n return;\n }\n\n // Assign the new slice value\n setSlice(newSlice);\n }",
"@Override\n public GitLabFolderAuthorization reconfigure(StaplerRequest request, JSONObject formData)\n throws Descriptor.FormException {\n GitLabFolderAuthorization newFolderAuth = (GitLabFolderAuthorization)super.reconfigure(request, formData);\n if (newFolderAuth != null) {\n // preserve group ID\n newFolderAuth.folderACL.setGroupId(getGroupId());\n }\n\n return newFolderAuth;\n }"
] |
[
"0.7078379",
"0.55579996",
"0.4822863",
"0.45002836",
"0.43573147",
"0.43486142",
"0.43175316",
"0.42966077",
"0.427356",
"0.42645228",
"0.41897675",
"0.41841078",
"0.41826814",
"0.41635895",
"0.4134127",
"0.4123575",
"0.41126323",
"0.41093665",
"0.41086596",
"0.41046485",
"0.4072925",
"0.40686724",
"0.40534672",
"0.4037542",
"0.4033469",
"0.40292495",
"0.4021237",
"0.40110055",
"0.40097064",
"0.3996508",
"0.3979016",
"0.396752",
"0.39552417",
"0.3951111",
"0.3945672",
"0.394336",
"0.39372364",
"0.39350888",
"0.3932955",
"0.39217353",
"0.3918682",
"0.39070138",
"0.39067942",
"0.3906345",
"0.39026675",
"0.39011252",
"0.38875714",
"0.3875942",
"0.38713822",
"0.3870312",
"0.3866097",
"0.38565162",
"0.38562247",
"0.3848478",
"0.38429344",
"0.38411075",
"0.38397115",
"0.38378426",
"0.38336298",
"0.3831799",
"0.38313887",
"0.38294724",
"0.38288757",
"0.38227773",
"0.3813799",
"0.3813438",
"0.38016886",
"0.37976965",
"0.3793194",
"0.37929934",
"0.37895364",
"0.37860444",
"0.37815922",
"0.37724587",
"0.37713128",
"0.37657297",
"0.37656894",
"0.37607902",
"0.3748797",
"0.37465838",
"0.37462974",
"0.37409252",
"0.37392488",
"0.37347904",
"0.37317097",
"0.3721744",
"0.37211955",
"0.37205908",
"0.37181824",
"0.3712517",
"0.37116018",
"0.3709813",
"0.37091315",
"0.37086704",
"0.3705038",
"0.37031785",
"0.3702295",
"0.37013066",
"0.36972407",
"0.36912632"
] |
0.81592774
|
0
|
Creates a shape suitable for the "remainder" portion of a divideShape call (just a clone by default).
|
protected RMShape createDivideShapeRemainder(byte anEdge) { return clone(); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMShape divideShapeFromEdge(double anAmount, byte anEdge, RMShape aNewShape)\n{\n // Get NewShape (if aNewShape is null, create one)\n RMShape newShape = aNewShape!=null? aNewShape : createDivideShapeRemainder(anEdge);\n\n // Get bounds for this shape and remainder bounds (divide bounds by amount from edge)\n RMRect bounds = getFrame();\n RMRect remainder = bounds.divideRect(anAmount, anEdge);\n \n // Set this shape's new bounds and NewShape bounds as remainder\n setFrame(bounds);\n newShape.setFrame(remainder);\n return newShape;\n}",
"public abstract Shape clone() throws CloneNotSupportedException;",
"public RMShape cloneDeep() { return clone(); }",
"@Override\n\t\t public Shape clone()\n\t\t {\n\t\t SZShape s = (SZShape)super.clone();\n\t\t s.position = new Position(position);\n\t\t s.cells = new Cell[cells.length];\n\t\t for(int i = 0; i < cells.length; i++)\n\t\t {\n\t\t \t s.cells[i] = new Cell(cells[i]);\n\t\t }\n\t\t return s;\n\t\t }",
"public RMShape clone()\n{\n // Do normal version, clear parent, LayoutInfoX, clone RSS\n RMShape clone = (RMShape)super.clone();\n clone._parent = null; clone._layoutInfoX = null;\n clone._rss = RMUtils.clone(_rss);\n \n // Clone stroke, fill, effect\n clone._stroke = null; clone._fill = null; clone._effect = null;\n if(getStroke()!=null) clone.setStroke(getStroke().clone());\n if(getFill()!=null) clone.setFill(getFill().clone());\n if(getEffect()!=null) clone.setEffect(getEffect().clone());\n \n // Copy attributes map\n clone._attrMap = _attrMap.clone();\n \n // If shape has timeline, clone it\n if(getTimeline()!=null)\n clone.setTimeline(getTimeline().clone(clone));\n \n // Clone bindings and add to clone (with hack to make sure clone has it's own, non-shared, attr map)\n for(int i=0, iMax=getBindingCount(); i<iMax; i++) {\n if(i==0) clone.put(\"RibsBindings\", null);\n clone.addBinding(getBinding(i).clone());\n }\n \n // Clone event adapter\n if(getEventAdapter(false)!=null) {\n clone.put(\"EventAdapter\", null);\n clone.getEventAdapter(true).setEnabledEvents(getEventAdapter(true).getEnabledEvents());\n }\n \n // Return clone\n return clone;\n}",
"public abstract Shape getCopy();",
"public Object clone()\n {\n DataSetDivide new_op = new DataSetDivide( );\n // copy the data set associated\n // with this operator\n new_op.setDataSet( this.getDataSet() );\n new_op.CopyParametersFrom( this );\n\n return new_op;\n }",
"Subdivision create(Subdivision subdivision);",
"Shape createShape(BorderType borderType);",
"public Object clone() {\n\tZPathLayoutManager newObject;\n\ttry {\n\t newObject = (ZPathLayoutManager)super.clone();\n\t} catch (CloneNotSupportedException e) {\n\t throw new RuntimeException(\"Object.clone() failed: \" + e);\n\t}\n\n\tif (path != null) {\n\t newObject.path = (ArrayList)path.clone();\n\t}\n\n\tif (shape != null) {\n\t // JM - not done yet: The shape interface doesn't include a clone() method,\n\t // so to clone a shape we either must cast it to a specific shape class\n\t // and call clone() on that, or use reflection to invoke the clone()\n\t // method. For now, we just continue referencing the old shape.\t\n\t}\n\n\treturn newObject;\n }",
"Division createDivision();",
"@Override\n\tpublic Object clone() throws CloneNotSupportedException{\n\t\tShape cloned = this;\n\t\tcloned.setPosition(this.getPosition());\n\t\tcloned.setProperties(this.getProperties());\n\t\tcloned.setColor(this.getColor());\n\t\tcloned.setFillColor(this.getFillColor());\n\t\treturn cloned;\n\t}",
"public abstract Piece clone();",
"public abstract Piece clone();",
"Shape copy() {\n Shape copyableVersion = null;\n if (shape instanceof Circle)\n copyableVersion = copyCircle();\n else if (shape instanceof Rectangle)\n copyableVersion = copyRect();\n else if (shape instanceof Line)\n copyableVersion = copyLine();\n else if (shape instanceof Polygon)\n copyableVersion = copyPolygon();\n else if (shape instanceof Ellipse)\n copyableVersion = copyPolygon();\n\n return copyableVersion;\n }",
"@Override\n public Object clone() throws CloneNotSupportedException {\n return new Fraction (getNumerator(), getDenominator());\n }",
"protected RMShape rpgShape(ReportOwner anRptOwner, RMShape aParent) { return clone(); }",
"public NewShape() {\r\n\t\tsuper();\r\n\t}",
"@Override\n\tpublic Spielfeld clone() {\n\t\tint[] mulden = new int[this.getMulden().length];\n\t\t\n\t\tfor(int i = 0; i < this.getMulden().length; i++) {\n\t\t\tmulden[i] = this.getMulden()[i];\n\t\t}\n\t\t\n\t\treturn new Spielfeld(mulden);\n\t}",
"@Override\n\tpublic Box clone()\n\t{\n\t\treturn new Box(center.clone(), xExtent, yExtent, zExtent);\n\t}",
"@Override\n\tpublic Operation createOperate() {\n\t\treturn new OperationDiv();\n\t}",
"@Test\n\tpublic final void testClone(){\n\t\tShape starting = shape.clone();\n\t\tassertNotNull( starting );\n\t\tshape.shiftDown();\n\t\tCell[] startingCells = starting.getCells();\n\t\tCell[] endingCells = shape.getCells();\n\t\tfor( int i = 0; i < startingCells.length; i++ ){\n\t\t\tassertNotEquals( \"Cell \" + i, startingCells[i], endingCells[i] );\n\t\t}\n\t}",
"public void copyShape(RMShape aShape)\n{\n // Copy bounds\n setBounds(aShape._x, aShape._y, aShape._width, aShape._height);\n \n // Copy roll, scale, skew\n if(aShape.isRSS()) {\n setRoll(aShape.getRoll());\n setScaleXY(aShape.getScaleX(), aShape.getScaleY());\n setSkewXY(aShape.getSkewX(), aShape.getSkewY());\n }\n \n // Copy Stroke, Fill, Effect\n if(!RMUtils.equals(getStroke(), aShape.getStroke())) setStroke(RMUtils.clone(aShape.getStroke()));\n if(!RMUtils.equals(getFill(), aShape.getFill())) setFill(RMUtils.clone(aShape.getFill()));\n if(!RMUtils.equals(getEffect(), aShape.getEffect())) setEffect(RMUtils.clone(aShape.getEffect()));\n \n // Copy Opacity and Visible\n setOpacity(aShape.getOpacity());\n setVisible(aShape.isVisible());\n \n // Copy Name, Url, Hover, Locked\n setName(aShape.getName());\n setURL(aShape.getURL());\n setHover(aShape.getHover());\n setLocked(aShape.isLocked());\n \n // Copy LayoutInfo\n setLayoutInfo(aShape.getLayoutInfo());\n \n // Copy timeline (if this goes back, then RMAnimPathShape(shape) needs to go back to clearing it\n //if(aShape.getTimeline()!=null) setTimeline(aShape.getTimeline().clone(this));\n \n // Copy bindings\n while(getBindingCount()>0) removeBinding(0);\n for(int i=0, iMax=aShape.getBindingCount(); i<iMax; i++)\n addBinding(aShape.getBinding(i).clone());\n}",
"LengthScalarDivide createLengthScalarDivide();",
"public Triangle copy()\r\n {\r\n return new Triangle (v1.getX(),v1.getY(),v2.getX(),v2.getY(),v3.getX(),v3.getY());\r\n }",
"Shape newShape(GraphicalObject g) throws RemoteException;",
"private void createShape() {\n if (shape == null) {\n float firstItemMargin = noxConfig.getNoxItemMargin();\n float firstItemSize = noxConfig.getNoxItemSize();\n int viewHeight = getMeasuredHeight();\n int viewWidth = getMeasuredWidth();\n int numberOfElements = noxItemCatalog.size();\n ShapeConfig shapeConfig =\n new ShapeConfig(numberOfElements, viewWidth, viewHeight, firstItemSize, firstItemMargin);\n shape = ShapeFactory.getShapeByKey(defaultShapeKey, shapeConfig);\n } else {\n shape.setNumberOfElements(noxItemCatalog.size());\n }\n shape.calculate();\n }",
"@Override\n public MovePath clone() {\n final MovePath copy = new MovePath(getGame(), getEntity());\n copy.steps = new Vector<MoveStep>(steps);\n copy.careful = careful;\n return copy;\n }",
"public abstract State clone();",
"abstract public Vertex cloneMe();",
"@Override\n public void reshape(Shape other) {\n Triangle triangle = (Triangle) other;\n this.a = CloneUtil.clone(triangle.getA());\n this.b = CloneUtil.clone(triangle.getB());\n this.c = CloneUtil.clone(triangle.getC());\n this.toBeFilled = other.toBeFilled;\n this.stroke = other.stroke;\n this.color = new Color(other.color.getRGB());\n // System.out.println(\"Reshape after: \" + this.toString());\n }",
"@Override\n\tpublic MultiArrayDimension clone() {\n\t\treturn new MultiArrayDimension(this.label, this.size, this.stride);\n\t}",
"default C cloneFlat() {\n\t\treturn clone(FieldGraph.of(getFields()));\n\t}",
"@Test\n public void testCloneShapes() {\n NativeLibraryLoader.loadNativeLibrary(\"bulletjme\", true);\n assetManager.registerLoader(AWTLoader.class, \"jpg\", \"png\");\n assetManager.registerLoader(BinaryLoader.class, \"j3o\");\n assetManager.registerLoader(J3MLoader.class, \"j3m\", \"j3md\");\n assetManager.registerLocator(null, ClasspathLocator.class);\n\n cloneShapesConcave();\n cloneShapesConvex();\n\n // CompoundCollisionShape\n CompoundCollisionShape compound = new CompoundCollisionShape(1);\n CollisionShape capsule = new CapsuleCollisionShape(1f, 1f);\n compound.addChildShape(capsule, 0f, 1f, 0f);\n setParameters(compound, 0f);\n verifyParameters(compound, 0f);\n CollisionShape compoundClone = Heart.deepCopy(compound);\n cloneTest(compound, compoundClone);\n Assert.assertEquals(0.04f, compoundClone.getMargin(), 0f);\n compound.setMargin(0.13f);\n Assert.assertEquals(0.04f, compoundClone.getMargin(), 0f);\n }",
"protected CombinedPath buildShapeForDrawing(float width, float height) {\n\t\tGeneralPath pol = new GeneralPath();\n\t\tfloat halfStroke= strokeWidth/2f;\n\t\tpol.moveTo(width-halfStroke, halfStroke);\n\t\tpol.lineTo(halfStroke, halfStroke);\n\t\tpol.lineTo(halfStroke, height-halfStroke);\n\t\tpol.lineTo(width-halfStroke, height-halfStroke);\n\t\treturn new CombinedPath(pol);\n\t}",
"protected Drawing createDrawing() {\n return new StandardDrawing();\n }",
"public AbstractShape create(ShapeType type) {\n if(type == TrominoType.I) {\n return new TrominoI();\n }\n if(type == TrominoType.J) {\n return new TrominoJ();\n }\n if(type == TrominoType.L) {\n return new TrominoL();\n }\n\n throw new IllegalArgumentException(String.format(\"Unknown how to create shape: %s.\", type.toString()));\n }",
"public Shape createStrokedShape(Shape shape) {\n/* 140 */ GeneralPath result = new GeneralPath();\n/* 141 */ PathIterator it = new FlatteningPathIterator(shape.getPathIterator(null), 1.0D);\n/* 142 */ float[] points = new float[6];\n/* 143 */ float moveX = 0.0F, moveY = 0.0F;\n/* 144 */ float lastX = 0.0F, lastY = 0.0F;\n/* 145 */ float thisX = 0.0F, thisY = 0.0F;\n/* 146 */ int type = 0;\n/* 147 */ float next = 0.0F;\n/* 148 */ int phase = 0;\n/* 149 */ while (!it.isDone()) {\n/* 150 */ float dx, dy, distance; type = it.currentSegment(points);\n/* 151 */ switch (type) {\n/* */ case 0:\n/* 153 */ moveX = lastX = points[0];\n/* 154 */ moveY = lastY = points[1];\n/* 155 */ result.moveTo(moveX, moveY);\n/* 156 */ next = OutlineZigzagEffect.this.wavelength / 2.0F;\n/* */ break;\n/* */ \n/* */ case 4:\n/* 160 */ points[0] = moveX;\n/* 161 */ points[1] = moveY;\n/* */ \n/* */ \n/* */ case 1:\n/* 165 */ thisX = points[0];\n/* 166 */ thisY = points[1];\n/* 167 */ dx = thisX - lastX;\n/* 168 */ dy = thisY - lastY;\n/* 169 */ distance = (float)Math.sqrt((dx * dx + dy * dy));\n/* 170 */ if (distance >= next) {\n/* 171 */ float r = 1.0F / distance;\n/* 172 */ while (distance >= next) {\n/* 173 */ float x = lastX + next * dx * r;\n/* 174 */ float y = lastY + next * dy * r;\n/* 175 */ if ((phase & 0x1) == 0) {\n/* 176 */ result.lineTo(x + OutlineZigzagEffect.this.amplitude * dy * r, y - OutlineZigzagEffect.this.amplitude * dx * r);\n/* */ } else {\n/* 178 */ result.lineTo(x - OutlineZigzagEffect.this.amplitude * dy * r, y + OutlineZigzagEffect.this.amplitude * dx * r);\n/* 179 */ } next += OutlineZigzagEffect.this.wavelength;\n/* 180 */ phase++;\n/* */ } \n/* */ } \n/* 183 */ next -= distance;\n/* 184 */ lastX = thisX;\n/* 185 */ lastY = thisY;\n/* 186 */ if (type == 4) result.closePath(); \n/* */ break;\n/* */ } \n/* 189 */ it.next();\n/* */ } \n/* 191 */ return (new BasicStroke(OutlineZigzagEffect.this.getWidth(), 2, OutlineZigzagEffect.this.getJoin())).createStrokedShape(result);\n/* */ }",
"Shape getShape();",
"public MovableObject lightClone()\n\t\t{\n\t\t\tfinal MovableObject clone = new MovableObject();\n\t\t\tclone.assCount = this.assCount;\n\t\t\tclone.associatable = this.associatable;\n\t\t\tclone.bound = this.bound;\n\t\t\tclone.coords = new int[this.coords.length];\n\t\t\tfor(int i=0; i < this.coords.length; i++)\n\t\t\t\tclone.coords[i] = this.coords[i];\n\t\t\tclone.highlighted = this.highlighted;\n\t\t\tclone.hotSpotLabel = this.hotSpotLabel;\n\t\t\tclone.keyCode = this.keyCode;\n\t\t\tclone.label = this.label;\n\t\t\tclone.maxAssociations = this.maxAssociations;\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Rectangle(coords[0]-3,coords[1]-3,coords[2]+6,coords[3]+6);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tclone.obj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t\tclone.pos = new Point(this.pos.x,this.pos.y);\n\t\t\tclone.shape = this.shape;\n\t\t\tclone.startPos = this.startPos;\n\t\t\tclone.value = this.value;\n\n\t\t\treturn clone;\n\t\t}",
"@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}",
"@Override\n public Shape deepCopy(double x, double y) {\n MyEllipse newShape = new MyEllipse(dashLine,rotate,x, y, this.radiusX, this.radiusY,\n this.lineWidth, this.getStroke(), this.getFill());\n newShape.createDate = this.createDate;\n System.out.println(\"new Ellipse:\" + newShape.toString());\n return newShape;\n }",
"protected Geometry buildShape(\r\n CSGGeometry.CSGOperator\t\tpOperator1\r\n ,\tfloat\t\t\t\t\t\tpLength\r\n ,\tCSGGeometry.CSGOperator\t\tpOperator2\r\n ,\tboolean\t\t\t\t\t\tpRotate\r\n ) {\n Material mat_csg = new Material( assetManager, \"Common/MatDefs/Misc/ShowNormals.j3md\" );\r\n \t//mat_csg.getAdditionalRenderState().setFaceCullMode( FaceCullMode.Off );\r\n\r\n \tCSGGeometry aGeometry = new CSGGeometry();\r\n \taGeometry.setMaterial( mat_csg );\r\n\r\n \tCSGShape aCube = new CSGShape( \"Box\", new Box(1,1,1) );\r\n \tif ( pRotate ) aCube.rotate( 0.4f, 0.4f, 0f );\r\n \taGeometry.addShape( aCube, pOperator1 );\r\n\r\n \tCSGShape aCylinder = new CSGShape( \"Cylinder\", new Cylinder( 32, 32, 1.1f, pLength, true ) );\r\n \taGeometry.addShape( aCylinder, pOperator2 );\r\n \t\r\n \taGeometry.regenerate();\r\n \treturn( aGeometry );\r\n }",
"@Override\r\n\tpublic SolutionRepresentationInterface clone() {\n\t\tint[] oSolution = new int[getNumberOfLocations()];\r\n\t\toSolution = aiSolutionRepresentation.clone();\r\n\t\tSolutionRepresentation oRepresentation = new SolutionRepresentation(oSolution);\r\n\t\t\r\n\t\treturn oRepresentation;\r\n\t}",
"public Function clone();",
"public native Sprite clone();",
"public SquareIF clone();",
"private Shape createPath(final Geometry geom) {\n return new LiteShape(geom, true, maxDistance);\n }",
"public abstract GameObject clone();",
"public final PaintObject clone() {\n \t\n \ttry {\n\t\t\treturn (PaintObject) super.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"public static ObjectInstance getDivideOperationObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 4);\n properties.put(\"name\", StringMangler\n .EncodeForJmx(getDivideOperationMBean().getName()));\n properties.put(\"jmxType\", new Operation().getJmxType());\n o = new ObjectName(_domain, properties);\n\n }\n catch (Exception e)\n {\n Assert\n .fail(\"'Divide' Operation ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new Operation().getClass().getName());\n }",
"public abstract Object clone() ;",
"Node split() {\r\n LeafNode Sibling = new LeafNode();\r\n int index = (branchingFactor + 1) / 2;\r\n int to = key_num();\r\n Sibling.keys.addAll(keys.subList(index, to));\r\n Sibling.values.addAll(values.subList(index, to));\r\n\r\n keys.subList(index, to).clear();\r\n values.subList(index, to).clear();\r\n\r\n\r\n // to make connections between the old node and the new node\r\n Sibling.next = next;\r\n Sibling.previous = this;\r\n // the current's next may be null so to check on that\r\n if (next != null) {\r\n next.previous = Sibling;\r\n }\r\n next = Sibling;\r\n\r\n return Sibling;\r\n }",
"Shape getNext(int width);",
"abstract public Vertex cloneFamily();",
"IShape getStartShape();",
"public abstract Shape createPath();",
"public abstract Object clone();",
"public Object clone() {\n\t\treturn(new FileSystem(_device, _mount, _type));\n\t}",
"protected Shape() {}",
"private static void createShape(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Choose shape to create:\");\r\n\t\tSystem.out.println(\"1- Square\");\r\n\t\tSystem.out.println(\"2- Rectangle\");\r\n\t\tSystem.out.println(\"3- Triangle\");\r\n\t\tSystem.out.println();\r\n\t\tint answer = getNumberAnswer();\r\n\t\tswitch (answer) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"Provide side measuremnt:\");\r\n\t\t\tshapes[0] = new Square(getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Provide height and width measuremnts separately:\");\r\n\t\t\tshapes[0] = new Rectangle(getNumberAnswer(), getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Provide base, side 1, side 2 and height measuremnts separately:\");\r\n\t\t\tshapes[0] = new Triangle(getNumberAnswer(), getNumberAnswer(), getNumberAnswer(), getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"That's not actually an option.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"AngleScalarDivide createAngleScalarDivide();",
"MulOrDiv createMulOrDiv();",
"protected Geometry buildSimpleShape(\r\n \tfloat\t\tpLength\r\n ,\tboolean\t\tpRotate\r\n ) {\n Material mat_csg = new Material( assetManager, \"Common/MatDefs/Misc/ShowNormals.j3md\" );\r\n \tif ( pLength > 0 ) {\r\n \tGeometry aCylinder = new Geometry( \"Cylinder\", new Cylinder( 32, 32, 1.1f, pLength, true ) );\r\n \taCylinder.setMaterial( mat_csg );\r\n\t \tif ( pRotate ) aCylinder.rotate( 0.4f, 0.4f, 0f );\r\n\t \treturn( aCylinder );\r\n \t\t\r\n \t} else {\r\n \t\t// Just a cube\r\n\t \tGeometry aCube = new Geometry( \"Box\", new Box(1,1,1) );\r\n\t \taCube.setMaterial( mat_csg );\r\n\t\r\n\t \tif ( pRotate ) aCube.rotate( 0.4f, 0.4f, 0f );\r\n\t \treturn( aCube );\r\n \t}\r\n\r\n }",
"Point clone ();",
"public ShapeGraphics() {\r\n //A random object to set random measures for the shapes\r\n Random rn = new Random();\r\n //Creating two instances of every shape using the random object and adding them to the list\r\n for (int i = 0; i <2 ; i++) {\r\n MyLine line = new MyLine(rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE), Color.RED);\r\n MyRectangle rec = new MyRectangle (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n MyOval oval = new MyOval (rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),rn.nextInt(MAX_SIZE),Color.RED,true);\r\n list.add(line);\r\n list.add(oval);\r\n list.add(rec);\r\n\r\n }\r\n //Creating cloned shapes of this list and adding them to another array list\r\n ClonedShapes c = new ClonedShapes(list);\r\n clonedList = c.getClonedList();\r\n }",
"@Override\n public Game cloneGame(){\n GridGame clone = new pegsolitaire();\n clone.pieces = new LinkedList<Piece>();\n for(Piece pc : pieces){\n clone.pieces.add(pc.clonePiece());\n }\n clone.current_player = current_player;\n clone.size_x = size_x;\n clone.size_y = size_y;\n return clone;\n }",
"private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;\n int newLevel = this.level + 1;\n\n // Create the 4 nodes\n this.getNodes().add(0, new QuadTree(newLevel, new Rectangle(x + subWidth, y, subWidth, subHeight)));\n this.getNodes().add(1, new QuadTree(newLevel, new Rectangle(x, y, subWidth, subHeight)));\n this.getNodes().add(2, new QuadTree(newLevel, new Rectangle(x, y + subHeight, subWidth, subHeight)));\n this.getNodes().add(3, new QuadTree(newLevel, new Rectangle(x + subWidth, y + subHeight, subWidth, subHeight)));\n\n }",
"abstract E createSplit(RandomAccessFile raf, long length) throws IOException;",
"public void createLots(double lotWidth, double lotHeight, double deviance)\n\t{\n\t\tdouble LOT_WIDTH = lotWidth;\n\t\tdouble LOT_DEPTH = lotHeight;\n\n\t\tdouble LOT_DEVIANCE = deviance;\n\t\tif (deviance < 0 || deviance > 1) {\n\t\t\tthrow new IllegalArgumentException(\"deviance must be between 0.0 and 1.0.\");\n\t\t}\n\n\t\tSubRegion region; /* Current region. */\n\t\t/*\n\t\t * Elements to be subdivided.\n\t\t */\n\t\tList<SubRegion> regionQueue = new ArrayList<SubRegion>();\n\t\t/*\n\t\t * Newly added regions by splitRegion.\n\t\t */\n\t\tList<SubRegion> newRegions = new ArrayList<SubRegion>();\n\t\t/*\n\t\t * Regions that need no further subdivision .\n\t\t */\n\t\tList<SubRegion> outputRegions = new ArrayList<SubRegion>();\n\n\t\tSubRegion.Edge longestEdge; /* Longest edge of current region. */\n\t\tLineSegment edgeLine = new LineSegment();\n\t\tdouble splitSize;\n\t\tPoint sp1, sp2; /* Split line. */\n\n\t\t/* A valid region must have at least 3 vertices. */\n\t\tif (constraints.numberOfVertices() < 3) {\n\t\t\tthrow new IllegalArgumentException(\"Number of vertices in constraints must be >= 3.\");\n\t\t}\n\n\t\t/*\n\t\t * Convert areaConstraints of this block to polygonGraph that is used in\n\t\t * subdivision algorithm.\n\t\t */\n\t\tregion = new SubRegion(constraints);\n\n\t\tSubRegion.Edge blockFirst = region.getFirstEdge();\n\t\tSubRegion.Edge current = blockFirst;\n\t\tdo /* All edges of Block has road access */\n\t\t{\n\t\t\tcurrent.hasRoadAccess = true;\n\t\t\tcurrent = current.next;\n\t\t} while (current != blockFirst);\n\n\t\t/* Add the region to queue for splitting */\n\t\tregionQueue.add(region);\n\n\t\t/* While there are some more regions to subdivide. */\n\t\twhile (!regionQueue.isEmpty())\n\t\t{\n\t\t\t/* Get first region. */\n\t\t\tregion = regionQueue.get(regionQueue.size() - 1);\n\n\t\t\t/* Calc the longest road edge and split size. */\n\t\t\tlongestEdge = region.getLongestEdgeWithRoadAccess();\n\t\t\tif (longestEdge != null)\n\t\t\t{\n\t\t\t\tedgeLine.set(new Point(longestEdge.beginning), new Point(longestEdge.next.beginning));\n\t\t\t\tlogger.debug(\"Longest Road edge: \" + edgeLine.length());\n\t\t\t\tif (edgeLine.length() <= LOT_WIDTH) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t * No road edge requires\n\t\t\t\t\t\t\t\t\t\t\t\t\t * further splitting.\n\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t{\n\t\t\t\t\t/* Calc the longest non-road edge and split size. */\n\t\t\t\t\tlongestEdge = region.getLongestEdgeWithoutRoadAccess();\n\t\t\t\t\tif (longestEdge != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tedgeLine.set(longestEdge.beginning, longestEdge.next.beginning);\n\t\t\t\t\t\tlogger.debug(\"Longest NONRoad edge: \" + edgeLine.length());\n\t\t\t\t\t\tif (edgeLine.length() <= LOT_DEPTH) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * No non-road edge\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * requires further\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * splitting.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"Region is small enough, moving to output.\");\n\t\t\t\t\t\t\tlogger.debug(\" area = \" + region.toPolygon().area());\n\t\t\t\t\t\t\tlogger.debug(region.toString());\n\t\t\t\t\t\t\t/* Region is complete. */\n\t\t\t\t\t\t\toutputRegions.add(region);\n\t\t\t\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\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{\n\t\t\t\t\t\t\tsplitSize = LOT_DEPTH;\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{\n\t\t\t\t\t\t/* All edges are small enough */\n\t\t\t\t\t\toutputRegions.add(region);\n\t\t\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\t\t\t\tcontinue;\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\t\tsplitSize = LOT_WIDTH;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// if lot is small enough, add completed region\n\t\t\t\tlogger.debug(\"THIS REGION HAS NO Edge with RoadAccess.\");\n\t\t\t\tlogger.debug(\" \" + region.toPolygon().toString());\n\t\t\t\toutputRegions.add(region);\n\t\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// calculate the split points\n\t\t\tsp1 = calcSplitPoint(edgeLine, splitSize, LOT_DEVIANCE);\n\t\t\tsp2 = new Point(sp1);\n\t\t\tsp2.add(edgeLine.normal());// *longestEdge.length();\n\t\t\t// split and process the new regions\n\t\t\tnewRegions = splitRegion(region, sp1, sp2); // BUG: <-- not working?\n\t\t\tregionQueue.remove(regionQueue.get(regionQueue.size() - 1));\n\t\t\tfor (SubRegion newRegion : newRegions)\n\t\t\t{\n\t\t\t\tlogger.debug(\"New region:\");\n\t\t\t\tlogger.debug(newRegion.toString());\n\t\t\t\tif (newRegion.hasRoadAccess())\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\" Adding to processing queue: \" + newRegion.toPolygon().toString());\n\t\t\t\t\tregionQueue.add(newRegion); // add to processing queue\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\" Discarded.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tPolygon newRegionPolygon;\n\t\tlogger.debug(\"Block::createLots() numberOfRegions \" + outputRegions.size());\n\t\tfor (SubRegion newRegion : outputRegions)\n\t\t{\n\t\t\tnewRegionPolygon = newRegion.toPolygon();\n\t\t\tif (newRegionPolygon.isNonSelfIntersecting())\n\t\t\t{\n\t\t\t\tlots.add(new Lot(this, newRegionPolygon));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new IllegalStateException(\"Self-intersecting polygon encountered: \" + newRegionPolygon.toString());\n\t\t\t}\n\t\t}\n\t}",
"public ShadowOperation createEmptyShadowOperation() {\n\t\treturn new ShadowOperation();\n\t}",
"public RMShape rpgAll(ReportOwner anRptOwner, RMShape aParent)\n{\n RMShape clone = rpgShape(anRptOwner, aParent);\n rpgBindings(anRptOwner, clone);\n return clone;\n}",
"@Override\r\n\tpublic ComputerPart clone() {\n\t\treturn null;\r\n\t}",
"public Group shapes() {\n Group group = new Group();\n\n Rectangle square = new Rectangle();\n square.setHeight(_size * 2.0);\n square.setWidth(_size * 2.0);\n square.setX(-_size);\n square.setY(-_size);\n square.setFill(_fill);\n square.setOpacity(0.2);\n group.getChildren().add(square);\n\n return group;\n }",
"public RMShape divideShapeFromTop(double anAmount) { return divideShapeFromEdge(anAmount, RMRect.MinYEdge, null); }",
"@Override\n public Data clone() {\n final Data data = new Data(name, code, numeric, symbol, fractionSymbol, fractionsPerUnit, rounding, formatString,\n triangulated.clone());\n return data;\n }",
"abstract public Vertex getClone();",
"public Image clone() {\r\n\t\treturn new Image(renderer, texture, textureX, textureY, textureWidth, textureHeight, width, height);\r\n\t}",
"public abstract PaintObject[][] separate(Rectangle _r);",
"public void convertToShape(RMShape aShape)\n{\n // Get center point in shape coords\n RMPoint cp = convertPointToShape(new RMPoint(getWidth()/2, getHeight()/2), aShape);\n \n // Coalesce transforms up the parent chain\n for(RMShape s=_parent; s!=aShape; s=s._parent) {\n setRoll(getRoll() + s.getRoll());\n setScaleX(getScaleX() * s.getScaleX()); setScaleY(getScaleY() * s.getScaleY());\n setSkewX(getSkewX() + s.getSkewX()); setSkewY(getSkewY() + s.getSkewY());\n }\n \n // Convert center point back from _parent, calc vector to old center from new center (in parent coords) & translate\n convertPointFromShape(cp, _parent);\n RMSize v = convertVectorToShape(new RMSize(cp.x - getWidth()/2, cp.y - getHeight()/2), _parent);\n offsetXY(v.width, v.height);\n}",
"public interface ShapeFactory{\n Line createLine();\n Rectangle createRectangle();\n Circle createCircle();\n Polygon createPolygon();\n}",
"protected IFigure createNodeShape() {\r\n\t\treturn primaryShape = new ConnectorFigure();\r\n\t}",
"public Fraction divide(Fraction divisor)\n {\n Fraction flipDivisor = divisor.reciprocal();\n Fraction newFraction = new Fraction();\n newFraction = this.multiply(flipDivisor);\n return newFraction;\n }",
"IShape getShape(String name);",
"public Piece clone() {\n return new Pawn(new Point(this.location.x, this.location.y),\n this.color, this.numMoves, this.enPassantOk);\n }",
"public void buildShape(Shape shape) {\n\t\tbuildShape(shape, -1, false, 0);\n\t}",
"private final TypeTerm _clone ()\n {\n TypeTerm clone = null;\n try\n {\n clone = (TypeTerm)clone();\n }\n catch (Exception e)\n {\n throw new TypeDefinitionException(e);\n }\n return clone;\n }",
"IShape getCurrentShape();",
"public Object clone() {\n View v2;\n try {\n v2 = (View) super.clone();\n } catch (CloneNotSupportedException cnse) {\n v2 = new View();\n }\n v2.center = (Location) center.clone();\n v2.zoom = zoom;\n v2.size = (Dimension) size.clone();\n return v2;\n }",
"@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}",
"public void generateShape() {\n\n //TODO for tetris game - copy added to Tetris\n Shape newShape = null;\n //if(GAME_TO_TEST==GameEnum.TETRIS){\n //newShape = TetrisShapeFactory.getRandomShape(this.board);\n //} else if (GAME_TO_TEST== GameEnum.DRMARIO){\n //newShape = DrMarioShapeFactory.getRandomShape(this.board);\n //}\n\n //Temporary\n //-------------------------------------//\n Image image = null;\n try {\n image = new Image(new FileInputStream(\"resources/BlockPurple.png\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int spawnColIndex = 0;\n int spawnRowIndex = 0;\n int tileSize = 0;\n boolean setColor = false;\n boolean setTileBorder = false; //toggle to add boarder to tile\n boolean setImage = true;\n spawnColIndex = (board.gridWidth-1)/2; //half of board width\n spawnRowIndex = 0;\n tileSize = board.tileSize;\n\n Tile tile1 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 0 , Direction.DOWN); //Center Tile\n Tile tile2 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex,1 , Direction.RIGHT);\n Tile tile3 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 1 , Direction.LEFT);\n Tile tile4 = new Tile(tileSize, setColor, Color.VIOLET, setTileBorder, setImage, image, spawnColIndex,spawnRowIndex, 1 , Direction.DOWN);\n\n List<Tile> tiles = new ArrayList<Tile>();\n tiles.add(tile1);\n tiles.add(tile2);\n tiles.add(tile3);\n tiles.add(tile4);\n newShape = new Shape(tiles);\n\n //set newly created shape as the currently active shape\n this.currentActiveShape = newShape;\n\n //check if spawn area is occupied\n boolean isOccupied =false;\n for (Tile newTile : this.currentActiveShape.tiles) {\n if(this.board.getTile(newTile.columnIndex,newTile.rowIndex)!=null){\n isOccupied = true;\n }\n }\n\n //TODO\n //check if shape reaches top\n if(!isOccupied){\n //add tiles to board\n for (Tile newTile : this.currentActiveShape.tiles) {\n this.board.placeTile(newTile);\n }\n } else {\n //TODO later add Game Over JavaFx message\n System.out.println(\"GAME OVER\");\n\n //TODO Finishlater\n //Text gameoverText = new Text(10,20,\"GAME OVER\");\n //gameoverText.setFill(Color.RED);\n //gameoverText.setX( 100/*( ((board.gridWidth-1)*tileSize)/2)*/ );\n //gameoverText.setY( 100/*( ((board.gridHeight-1)*tileSize)/2)*/ );\n //gameoverText.setStyle(\"-fx-font: 70 arial;\");\n //this.group.getChildren().add(gameoverText);\n\n //Text t = new Text();\n //t.setX(20.0f);\n //t.setY(65.0f);\n //t.setX(100);\n //t.setY(200);\n //t.setText(\"Perspective\");\n //t.setFill(Color.YELLOW);\n //t.setFont(Font.font(null, FontWeight.BOLD, 36));\n //this.group.getChildren().add(t);\n //this.pane.getChildren().add(t);\n\n //System.exit(0);\n }\n\n }",
"public Shape rotateLeft() \n\t{\n\t\tif (detailShape == Tetromino.SQUARE)\n\t\t{\n\t\t\treturn this;\n\t\t}\n\t\t\n\t\tvar result = new Shape();\n\t\tresult.detailShape = detailShape;\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tresult.setX(i, y(i));\n\t\t\tresult.setY(i, -x(i));\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"@Override\n public GraphicsState clone(\n )\n {\n GraphicsState clone;\n {\n // Shallow copy.\n try\n {clone = (GraphicsState)super.clone();}\n catch(CloneNotSupportedException e)\n {throw new RuntimeException(e);} // NOTE: It should never happen.\n\n // Deep copy.\n /* NOTE: Mutable objects are to be cloned. */\n clone.ctm = (AffineTransform)ctm.clone();\n clone.tlm = (AffineTransform)tlm.clone();\n clone.tm = (AffineTransform)tm.clone();\n }\n return clone;\n }",
"@Override\r\n\tpublic Point clone() {\r\n\t\tPoint p = new RotatedPoint(this.geoObjectLabel, this.originalPoint, this.centerOfRotation, this.degAngleMeasure);\r\n\t\t\r\n\t\tif (this.getX() != null)\r\n\t\t\tp.setX((UXVariable) this.getX().clone());\r\n\t\tif (this.getY() != null)\r\n\t\t\tp.setY((UXVariable) this.getY().clone());\r\n\t\tp.setInstanceType(this.instanceType);\r\n\t\tp.setPointState(this.pointState);\r\n\t\tp.setConsProtocol(this.consProtocol);\r\n\t\tp.setIndex(this.index);\r\n\t\t\r\n\t\treturn p;\r\n\t}",
"protected JPanel makeNewJPanel() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel;\n\t}",
"public Shape getClipShape() { return null; }",
"@Override\n public void generateShape() {\n AffineTransform tx = new AffineTransform();\n tx.rotate(-this.getRotation(), this.getX(), this.getY());\n this.shape = tx.createTransformedShape(new Ellipse2D.Double(\n this.getX() + this.getWidth() / 2 - D / 2,\n this.getY() + this.getHeight() / 2 - D / 2,\n D, D));\n }",
"@Override\n public Slot clone() {\n\tfinal Slot s = new Slot();\n\ts.day = day;\n\ts.start = start;\n\ts.end = end;\n\ts.venue = venue;\n\ts.instructor = instructor;\n\ts.sectionType = sectionType;\n\treturn s;\n }",
"public Shape getShape();",
"private Node constructInternal(List<Node> children){\r\n\r\n // Base case: root found\r\n if(children.size() == 1){\r\n return children.get(0);\r\n }\r\n\r\n // Generate parents\r\n boolean odd = children.size() % 2 != 0;\r\n for(int i = 1; i < children.size(); i += 2){\r\n Node left = children.get(i-1);\r\n Node right = children.get(i);\r\n Node parent = new Node(Utility.SHA512(left.hash + right.hash), left, right);\r\n children.add(parent);\r\n }\r\n\r\n // If the number of nodes is odd, \"inherit\" the remaining child node (no hash needed)\r\n if(odd){\r\n children.add(children.get(children.size() - 1));\r\n }\r\n return constructInternal(children);\r\n }"
] |
[
"0.6810498",
"0.6332313",
"0.6156121",
"0.6135988",
"0.6015889",
"0.59966564",
"0.5767426",
"0.5742819",
"0.57380354",
"0.5710893",
"0.56118226",
"0.54581004",
"0.54519385",
"0.54519385",
"0.5404412",
"0.53335667",
"0.5306971",
"0.5284391",
"0.52802885",
"0.52782196",
"0.5277694",
"0.52577275",
"0.52416027",
"0.5237075",
"0.51097745",
"0.50900704",
"0.5078232",
"0.5076968",
"0.50370824",
"0.5031976",
"0.5030067",
"0.50114185",
"0.50057095",
"0.49925157",
"0.49838793",
"0.4978835",
"0.4971801",
"0.49696746",
"0.49657348",
"0.49645483",
"0.4962131",
"0.49590215",
"0.49534765",
"0.49463728",
"0.49419522",
"0.49295375",
"0.4927548",
"0.4920334",
"0.49186",
"0.4907013",
"0.48924792",
"0.48907143",
"0.48733437",
"0.48732257",
"0.48601925",
"0.48585057",
"0.48490593",
"0.4847743",
"0.483683",
"0.48264256",
"0.48228619",
"0.48188362",
"0.48182607",
"0.48138043",
"0.48120117",
"0.48119196",
"0.48009387",
"0.47982514",
"0.4792371",
"0.47885066",
"0.4785877",
"0.47754678",
"0.4763193",
"0.47631583",
"0.47604895",
"0.47571063",
"0.47501957",
"0.47281396",
"0.47220242",
"0.4719094",
"0.4718753",
"0.47168064",
"0.4713847",
"0.4712861",
"0.47065815",
"0.4703322",
"0.47029862",
"0.47010028",
"0.468708",
"0.46864325",
"0.46853507",
"0.4684413",
"0.4684247",
"0.46796343",
"0.46754208",
"0.4672475",
"0.46692917",
"0.46553478",
"0.4646664",
"0.4642504"
] |
0.7556757
|
0
|
Returns the animator that this shape registers changes with.
|
public RMAnimator getAnimator() { return getAnimator(false); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Animation getAnimation() {\n return currAnimation;\n }",
"public Animation Animation() {\r\n return animation;\r\n }",
"public int getAnimation() {\n\t\t\treturn animation;\n\t\t}",
"default Animator getInAnimation() {\n return null;\n }",
"public ConstraintAnimation getConstraintAnimation() {\n return constraintAnimation;\n }",
"public Boolean getAnimate () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.animate);\r\n\t}",
"public Animation getMovingAnimation(){\r\n\t\treturn moving;\r\n\t}",
"Animation getShowAnimation();",
"protected abstract Animator[] getAnimators(View itemView);",
"public RMAnimator getAnimator(boolean create)\n{\n return getParent()!=null? getParent().getChildAnimator(create) : null;\n}",
"public boolean getAnimated() {\r\n return animated.get();\r\n }",
"public RMAnimator getChildAnimator() { return getChildAnimator(false); }",
"public AnimationHook animate() {\n return animation.start();\n }",
"public IAnimationSyncSet getCurrentAnimationSyncSet()\n\t{\n\t\treturn _animationSyncSet;\n\t}",
"public Optional<Animation> animation() {\n return Optional.empty();\n }",
"public CameraAnimation getCameraAnimation() {\n\t\treturn this.animation;\n\t}",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n\tprotected Animator createAnimator() {\n\t\tAnimator anim = ViewAnimationUtils.createCircularReveal(\n\t\t\t\tmRevealView, getWidth() / 2, getHeight() / 2, 0, getWidth() / 2);\n\t\tanim.addListener(new AnimatorListenerAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t// Now we can refresh the drawable state\n\t\t\t\trefreshDrawableState();\n\n\t\t\t\tmRevealView.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t\treturn anim;\n\t}",
"Animation getStructure();",
"default Animator getOutAnimation() {\n return null;\n }",
"public boolean isAnimated()\n {\n return animator.isAnimating();\n }",
"public void animUpdate(PropertyChangeEvent anEvent)\n{\n // Return if shape is a new-born\n if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return;\n \n // If change is anim property, add record\n if(isAnimProperty(anEvent.getPropertyName()))\n addTimelineEntry(anEvent.getPropertyName(), anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Fill\n else if(anEvent.getPropertyName().equals(\"Fill\")) {\n RMFill f1 = (RMFill)anEvent.getNewValue();\n RMFill f2 = (RMFill)anEvent.getOldValue();\n RMColor c1 = f1!=null? f1.getColor() : RMColor.clearWhite;\n RMColor c2 = f2!=null? f2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"Color\", c1, c2);\n }\n \n // Add anim records for Fill.Color\n else if(anEvent.getPropertyName().equals(\"Fill.Color\"))\n addTimelineEntry(\"Color\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke\n else if(anEvent.getPropertyName().equals(\"Stroke\")) {\n RMStroke s1 = (RMStroke)anEvent.getNewValue();\n RMStroke s2 = (RMStroke)anEvent.getOldValue();\n RMColor c1 = s1!=null? s1.getColor() : RMColor.clearWhite;\n RMColor c2 = s2!=null? s2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"StrokeColor\", c1, c2);\n float lw1 = s1!=null? s1.getWidth() : 0;\n float lw2 = s2!=null? s2.getWidth() : 0;\n addTimelineEntry(\"StrokeWidth\", lw1, lw2);\n }\n \n // Add anim records for Stroke.Color\n else if(anEvent.getPropertyName().equals(\"Stroke.Color\"))\n addTimelineEntry(\"StrokeColor\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke.Width\n else if(anEvent.getPropertyName().equals(\"Stroke.Width\"))\n addTimelineEntry(\"StrokeWidth\", anEvent.getNewValue(), anEvent.getOldValue());\n}",
"protected abstract float getFrameTimeNormalAnimation();",
"public StringKey getAnimation() {\n return ModelBundle.SHIP_ANIMATIONS.get(name);\n }",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"public Animale getAnimaleACaso(){\n\t\tthrow new NotImplementedException();\r\n\t}",
"public boolean getShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWANIMATION$20);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"public String getDefaultInAnimation() {\n return (defaultInAnimation);\n }",
"public boolean isAnimate() {\n return animate;\n }",
"public MyAnimation getSprite();",
"public org.apache.xmlbeans.XmlBoolean xgetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(SHOWANIMATION$20);\n }\n return target;\n }\n }",
"public java.util.ArrayList<android.animation.Animator> getChildAnimations() { throw new RuntimeException(\"Stub!\"); }",
"@Override public void onAnimationStart(Animator arg0) {\n\n }",
"public RMAnimator getChildAnimator(boolean create)\n{\n return getParent()!=null? getParent().getChildAnimator(create) : null;\n}",
"@ProtoLayoutExperimental\n @Nullable\n public AnimatedVisibility getContentUpdateAnimation() {\n if (mImpl.hasContentUpdateAnimation()) {\n return AnimatedVisibility.fromProto(mImpl.getContentUpdateAnimation());\n } else {\n return null;\n }\n }",
"public interface IAction {\n /**\n * A function that returns the state of the object at a particular tick. The object's state is in\n * proportion to where the tick is in the action's interval (between start and end time).\n *\n * @param tick an int that represents the frame of the animation per unit of time.\n * @param accumulatorShape keeps track of the shape at tick.\n * @return the shape at the tick.\n * @throws IllegalArgumentException if the tick is negative. if the shape is null.\n */\n IShape getShapeAtTick(double tick, IShape accumulatorShape);\n\n /**\n * Gets the current shape of the Action object.\n *\n * @return the current shape of the Action object.\n */\n IShape getCurrentShape();\n\n /**\n * Gets the time of the Action object.\n *\n * @return the time of the Action object.\n */\n Time getTime();\n\n /**\n * Gets the type of the Action object.\n *\n * @return the type of the Action object.\n */\n Action getType();\n\n /**\n * Gets the name of the Action object.\n *\n * @return the name of the Action object.\n */\n String getName();\n\n /**\n * Gets the old position of the Action object.\n *\n * @return the old position of the Action object.\n */\n Position getOldPosition();\n\n /**\n * Gets the new position of the Action object.\n *\n * @return the new position of the Action object.\n */\n Position getNewPosition();\n\n /**\n * Gets the old with of the Action object.\n *\n * @return the old width of the Action object.\n */\n double getOldWidth();\n\n /**\n * Gets the old height of the Action object.\n *\n * @return the new height of the Action object.\n */\n double getOldHeight();\n\n /**\n * Gets the new width of the Action object.\n *\n * @return the new width of the Action object.\n */\n double getNewWidth();\n\n /**\n * Gets the new height of the Action object.\n *\n * @return the new height of the Action object.\n */\n double getNewHeight();\n\n /**\n * Gets the old color of the Action object.\n *\n * @return the old color of the Action object.\n */\n RGB getOldColor();\n\n /**\n * Gets the new color of the Action object.\n *\n * @return the new color of the Action object\n */\n RGB getNewColor();\n}",
"public boolean isAnimating() {\n\t\treturn mAnimating;\n\t}",
"public MyAnimation getRearSprite();",
"int animationId();",
"@Override\n public Animator onCreateAnimator(int transit, boolean enter, int nextAnim) {\n return ValueAnimator.ofFloat(.0F, 1.F).setDuration(ChildAnimationAction.DURATION);\n }",
"public boolean isAnimated()\n {\n return _animated;\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public static MaterialViewPagerAnimator getAnimator(Context context) {\n return hashMap.get(context);\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"public interface IMotion {\r\n\r\n /**\r\n * Gets the initial state of the shape.\r\n *\r\n * @return IShape of the initial state of the shape.\r\n */\r\n IShape getStartShape();\r\n\r\n /**\r\n * Gets the end state of the shape.\r\n *\r\n * @return IShape of the end state of the shape.\r\n */\r\n IShape getEndShape();\r\n\r\n /**\r\n * Gets the start time of the motion.\r\n *\r\n * @return start time of motion.\r\n */\r\n int getStartTime();\r\n\r\n /**\r\n * Gets the end time of the motion.\r\n *\r\n * @return end time of motion.\r\n */\r\n int getEndTime();\r\n}",
"@Override\n public void onAnimationStart(Animator animation) {\n }",
"public MyAnimation getFrontSprite();",
"public interface AnimatorUpdateListenerCompat {\n void mo457a(ValueAnimatorCompat valueAnimatorCompat);\n}",
"@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }",
"protected Animator[] getAnimators(View view) {\n return new Animator[]{ObjectAnimator.ofFloat(view, \"alpha\", 0f, 1f)};\n }",
"@Override public void onAnimationRepeat(Animator arg0) {\n\n }",
"@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}",
"@Override\n public void onAnimationStart(Animator arg0) {\n\n }",
"public boolean isEnableAnimation() {\n return enableAnimation;\n }",
"private BufferedImage getCurrentAnimationFrame() {\n\t\treturn mainMenuAnimation.getCurrentFrame();\n\t\t\n\t}",
"public String toString() {\r\n\t\treturn \"PlayAnimation\";\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public Map<Pair<ID, SpecialEffectT>, List<Image>> getAnimationsEffect() {\n return AnimationsEffect;\n }",
"@Override\n public void onAnimationStart(Animator arg0) {\n\n }",
"public void animate()\n\t{\n\t\tanimation.read();\n\t}",
"public ImageIcon getNextAnimation() {\n\t\tImageIcon animation = null;\n\t\tif (getX_direction() < 0) {\n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowLeft1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowLeft2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowLeft3;\n\t\t\t}\n\t\t} else if (getX_direction() >= 0) { \n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowRight1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowRight2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowRight3;\n\t\t\t}\n\t\t}\n\t\tnextAnimation();\n\t\treturn animation;\n\t}",
"@NonNull\r\n public abstract ObjectAnimator getAnimator(@NonNull ViewGroup viewGroup, @NonNull View view);",
"public double getTransition(){\n\t\treturn transition;\n\t}",
"public BufferedImage getCurrentFrame(){\n\t\tif(first)\n\t\t\treturn animation_frame[index];\n\t\telse\n\t\t\treturn animation_frame[0];\n\t\t\n\t}",
"Animation getHideAnimation();",
"public Animation inAlpha() {\n\t\treturn getAlphaInAnim(mInDuration, false);\n\t}",
"public interface IAnimationController {\n\n /**\n * This method should start the animation using the provided model.\n */\n void start();\n\n /**\n * Retrieve the log from this controller.\n *\n * @return The log of this controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n Appendable getLog();\n\n /**\n * Retrieve the timer from this controller.\n * @return The timer of this controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n Timer getTimer();\n\n /**\n * Retrieves the tempo of the controller.\n * @return tempo used by controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n double getTempo();\n\n\n}",
"public List<AnimationCallback> getAnimationCallbacks() {\n return callbacks;\n }",
"public int getDuration() {\n return animationDuration;\n }",
"public String getDefaultOutAnimation() {\n return (defaultOutAnimation);\n }",
"protected abstract void animate(int anim);",
"private void m1731a(Animator animator) {\n if (animator instanceof AnimatorSet) {\n ArrayList childAnimations = ((AnimatorSet) animator).getChildAnimations();\n if (childAnimations != null) {\n for (int i = 0; i < childAnimations.size(); i++) {\n m1731a((Animator) childAnimations.get(i));\n }\n }\n }\n if (animator instanceof ObjectAnimator) {\n ObjectAnimator objectAnimator = (ObjectAnimator) animator;\n String propertyName = objectAnimator.getPropertyName();\n if (\"fillColor\".equals(propertyName) || \"strokeColor\".equals(propertyName)) {\n if (this.f2276f == null) {\n this.f2276f = new ArgbEvaluator();\n }\n objectAnimator.setEvaluator(this.f2276f);\n }\n }\n }",
"@Override\n public Animation get_animation(Boolean enter) {\n if (Settings.get_user_language(this).equals(\"ar\")) {\n if (animation_direction)\n return MoveAnimation.create(MoveAnimation.LEFT, enter, DURATION);\n else\n return MoveAnimation.create(MoveAnimation.RIGHT, enter, DURATION);\n } else {\n if (animation_direction)\n return MoveAnimation.create(MoveAnimation.RIGHT, enter, DURATION);\n else\n return MoveAnimation.create(MoveAnimation.LEFT, enter, DURATION);\n }\n }",
"public interface EditorAnimationView extends AnimationView {\n /**\n * Reset the display to reflect the current tick.\n */\n void drawCurrentTick();\n\n /**\n * Change whether the animation is currently playing or not.\n */\n void togglePlay();\n\n /**\n * Set the animation to not playing.\n */\n void pause();\n\n /**\n * Set the current tick to the given tick.\n * @param tick the new tick.\n */\n void setTick(int tick);\n\n /**\n * Set the current time to the earliest possible time for a tick.\n */\n void rewind();\n\n /**\n * Add one tick to the current time.\n */\n void incrementTick();\n\n /**\n * remove one tick from the current time.\n */\n void decrementTick();\n\n /**\n * Switch whether the animation loops or not.\n */\n void toggleLoop();\n\n /**\n * Recalculate the last tick in the animation.\n */\n void updateMaxTick();\n\n /**\n * Displays an interactive list of shapes in the order that they are\n * stored in the currently selected layer.\n * @param shapes the list of shape names to display.\n */\n void setShapeList(List<String> shapes);\n\n /**\n * Displays an interactive list of layers, with the background layer first and the top layer last.\n * @param shapes the list of layer names to display.\n */\n void setLayerList(List<String> shapes);\n\n /**\n * Write the representation of the given model's animation to this view's output in the format\n * determined by another view's type.\n * @param output the string to be written to the view's output.\n * @throws IllegalArgumentException if the text type is incorrect\n * @throws IllegalStateException if the output has not been set or is invalid (ie unwritable)\n */\n void save(String output);\n\n /**\n * Tie the commands given by the Controller to the buttons/control scheme of this view.\n * @param features the interface containing all the necessary commands\n */\n void addFeatures(Features features);\n\n /**\n * Shows the user a given error message.\n * @param message the message to be displayed\n */\n void displayErrorMessage(String message);\n\n /**\n * Reset focus onto the view instead of any of its components (like buttons or text fields).\n */\n void resetFocus();\n\n /**\n * Reset all text fields to their default state.\n */\n void resetTextFields();\n\n /**\n * Enter a screen from which a shape's Motions can be edited.\n * @param layer the layer of the shape to be edited\n * @param shape the shape to be edited\n */\n void enterShapeEditor(String layer, String shape);\n\n /**\n * Return to the default screen from the shape editor screen.\n */\n void exitShapeEditor();\n\n /**\n * Set the text boxes for creating a new frame to the given Motion.\n * @param m the motion to set the text boxes to\n */\n void setNewFrameText(Motion m);\n\n /**\n * Set the text boxes for editing an existing frame to the given Motion.\n * @param m the motion to set the text boxes to\n */\n void setEditFrameText(Motion m);\n}",
"public Logic getBehaviorTarget ()\n {\n return _behavior.getCurrentTarget();\n }",
"public interface IReadOnlyAnimationModel {\n\n /**\n * Gets the map of shape id's to shapes.\n *\n * @return the LinkedHashMap of shapes.\n */\n LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();\n\n /**\n * Gets the canvas dimension.\n *\n * @return the dimension of the canvas.\n */\n Dimension getCanvasDimension();\n\n /**\n * Gets the left most x and top most y.\n *\n * @return the Point of the x and y coordinates.\n */\n Point getTopXY();\n}",
"@Override\n public void onAnimationUpdate(ValueAnimator\n animator) {\n etiqueta.setBackgroundColor((Integer)animator.getAnimatedValue());\n }",
"@Override\n public String animationState() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"@Override\n public void onAnimationRepeat(Animator animation) {\n }",
"public Motion3d getMotion() {\n return motion;\n }",
"public abstract void animationStarted();",
"public int getAnimationDelay() {\n\t\treturn mAnimationDelay;\n\t}",
"public MovingBehaviour getMovingBehaviour() {\n\t\treturn this.movingBehaviour;\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n\tpublic void onAnimationRepeat(Animator arg0) {\n\n\t}",
"@Override\n public void animate() {\n }",
"public String toString()\n\t{\n\t\treturn \"Base animation\";\n\t}",
"public int getStateOfMovement(){ return stateOfMovement; }",
"public void onAnimationRepeat(Animator paramAnonymousAnimator) {}",
"public ArrayList<Animator> getChildAnimations() {\n/* 106 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void onAnimationRepeat(Animator animation) {\n\n }",
"public static MovingShape getInstance() {\n return state;\n }"
] |
[
"0.7217881",
"0.6888132",
"0.6676593",
"0.6562275",
"0.6559018",
"0.6450914",
"0.6430736",
"0.64172715",
"0.6413477",
"0.64036244",
"0.634076",
"0.63368285",
"0.6318651",
"0.62998515",
"0.6189915",
"0.6138131",
"0.6108219",
"0.61036897",
"0.61028475",
"0.6048825",
"0.60484123",
"0.6020498",
"0.5980429",
"0.5953842",
"0.5943456",
"0.58615285",
"0.58173007",
"0.5807819",
"0.5783968",
"0.5778649",
"0.5758895",
"0.57571673",
"0.572711",
"0.57196295",
"0.5711366",
"0.5668556",
"0.56520444",
"0.5633437",
"0.56207776",
"0.55902284",
"0.5578124",
"0.5573832",
"0.5573832",
"0.5573832",
"0.5573832",
"0.5573832",
"0.55401623",
"0.55367386",
"0.55323946",
"0.55323946",
"0.55323946",
"0.55323946",
"0.5531337",
"0.5497064",
"0.54873776",
"0.54763",
"0.5473583",
"0.5455416",
"0.54546916",
"0.545436",
"0.54479796",
"0.5438694",
"0.5430941",
"0.5421067",
"0.54073054",
"0.5398384",
"0.53969395",
"0.5383369",
"0.5381826",
"0.5370509",
"0.5369105",
"0.5364885",
"0.53553325",
"0.5340216",
"0.5338316",
"0.5334808",
"0.5328366",
"0.53235173",
"0.53203195",
"0.52878505",
"0.5281874",
"0.52808714",
"0.52553874",
"0.5250826",
"0.523053",
"0.5213584",
"0.52002984",
"0.5193892",
"0.51878625",
"0.5183222",
"0.5182955",
"0.5171629",
"0.5166715",
"0.51660895",
"0.516543",
"0.51578945",
"0.51540786",
"0.5142943",
"0.5136683",
"0.5134101"
] |
0.7548064
|
0
|
Returns the animator that this shape registers changes with (creating, if requested and currently null).
|
public RMAnimator getAnimator(boolean create)
{
return getParent()!=null? getParent().getChildAnimator(create) : null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMAnimator getAnimator() { return getAnimator(false); }",
"Animation getAnimation() {\n return currAnimation;\n }",
"public Animation Animation() {\r\n return animation;\r\n }",
"default Animator getInAnimation() {\n return null;\n }",
"public ConstraintAnimation getConstraintAnimation() {\n return constraintAnimation;\n }",
"public int getAnimation() {\n\t\t\treturn animation;\n\t\t}",
"public Optional<Animation> animation() {\n return Optional.empty();\n }",
"Animation getShowAnimation();",
"public IAnimationSyncSet getCurrentAnimationSyncSet()\n\t{\n\t\treturn _animationSyncSet;\n\t}",
"@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n\tprotected Animator createAnimator() {\n\t\tAnimator anim = ViewAnimationUtils.createCircularReveal(\n\t\t\t\tmRevealView, getWidth() / 2, getHeight() / 2, 0, getWidth() / 2);\n\t\tanim.addListener(new AnimatorListenerAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t// Now we can refresh the drawable state\n\t\t\t\trefreshDrawableState();\n\n\t\t\t\tmRevealView.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t\treturn anim;\n\t}",
"public Boolean getAnimate () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.animate);\r\n\t}",
"public Animation getMovingAnimation(){\r\n\t\treturn moving;\r\n\t}",
"protected abstract Animator[] getAnimators(View itemView);",
"public RMAnimator getChildAnimator() { return getChildAnimator(false); }",
"public boolean getAnimated() {\r\n return animated.get();\r\n }",
"public AnimationHook animate() {\n return animation.start();\n }",
"public boolean isAnimated()\n {\n return animator.isAnimating();\n }",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"default Animator getOutAnimation() {\n return null;\n }",
"public void animUpdate(PropertyChangeEvent anEvent)\n{\n // Return if shape is a new-born\n if(getAnimator()==null || getAnimator().isNewborn(this) || !getAnimator().isEnabled()) return;\n \n // If change is anim property, add record\n if(isAnimProperty(anEvent.getPropertyName()))\n addTimelineEntry(anEvent.getPropertyName(), anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Fill\n else if(anEvent.getPropertyName().equals(\"Fill\")) {\n RMFill f1 = (RMFill)anEvent.getNewValue();\n RMFill f2 = (RMFill)anEvent.getOldValue();\n RMColor c1 = f1!=null? f1.getColor() : RMColor.clearWhite;\n RMColor c2 = f2!=null? f2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"Color\", c1, c2);\n }\n \n // Add anim records for Fill.Color\n else if(anEvent.getPropertyName().equals(\"Fill.Color\"))\n addTimelineEntry(\"Color\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke\n else if(anEvent.getPropertyName().equals(\"Stroke\")) {\n RMStroke s1 = (RMStroke)anEvent.getNewValue();\n RMStroke s2 = (RMStroke)anEvent.getOldValue();\n RMColor c1 = s1!=null? s1.getColor() : RMColor.clearWhite;\n RMColor c2 = s2!=null? s2.getColor() : RMColor.clearWhite;\n addTimelineEntry(\"StrokeColor\", c1, c2);\n float lw1 = s1!=null? s1.getWidth() : 0;\n float lw2 = s2!=null? s2.getWidth() : 0;\n addTimelineEntry(\"StrokeWidth\", lw1, lw2);\n }\n \n // Add anim records for Stroke.Color\n else if(anEvent.getPropertyName().equals(\"Stroke.Color\"))\n addTimelineEntry(\"StrokeColor\", anEvent.getNewValue(), anEvent.getOldValue());\n \n // Add anim records for Stroke.Width\n else if(anEvent.getPropertyName().equals(\"Stroke.Width\"))\n addTimelineEntry(\"StrokeWidth\", anEvent.getNewValue(), anEvent.getOldValue());\n}",
"Animation getStructure();",
"public RMAnimator getChildAnimator(boolean create)\n{\n return getParent()!=null? getParent().getChildAnimator(create) : null;\n}",
"public CameraAnimation getCameraAnimation() {\n\t\treturn this.animation;\n\t}",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"public Animale getAnimaleACaso(){\n\t\tthrow new NotImplementedException();\r\n\t}",
"protected abstract float getFrameTimeNormalAnimation();",
"public StringKey getAnimation() {\n return ModelBundle.SHIP_ANIMATIONS.get(name);\n }",
"public boolean getShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWANIMATION$20);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"public org.apache.xmlbeans.XmlBoolean xgetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(SHOWANIMATION$20);\n }\n return target;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"public String getDefaultInAnimation() {\n return (defaultInAnimation);\n }",
"@ProtoLayoutExperimental\n @Nullable\n public AnimatedVisibility getContentUpdateAnimation() {\n if (mImpl.hasContentUpdateAnimation()) {\n return AnimatedVisibility.fromProto(mImpl.getContentUpdateAnimation());\n } else {\n return null;\n }\n }",
"public MyAnimation getSprite();",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"public java.util.ArrayList<android.animation.Animator> getChildAnimations() { throw new RuntimeException(\"Stub!\"); }",
"public boolean isAnimate() {\n return animate;\n }",
"public interface IAction {\n /**\n * A function that returns the state of the object at a particular tick. The object's state is in\n * proportion to where the tick is in the action's interval (between start and end time).\n *\n * @param tick an int that represents the frame of the animation per unit of time.\n * @param accumulatorShape keeps track of the shape at tick.\n * @return the shape at the tick.\n * @throws IllegalArgumentException if the tick is negative. if the shape is null.\n */\n IShape getShapeAtTick(double tick, IShape accumulatorShape);\n\n /**\n * Gets the current shape of the Action object.\n *\n * @return the current shape of the Action object.\n */\n IShape getCurrentShape();\n\n /**\n * Gets the time of the Action object.\n *\n * @return the time of the Action object.\n */\n Time getTime();\n\n /**\n * Gets the type of the Action object.\n *\n * @return the type of the Action object.\n */\n Action getType();\n\n /**\n * Gets the name of the Action object.\n *\n * @return the name of the Action object.\n */\n String getName();\n\n /**\n * Gets the old position of the Action object.\n *\n * @return the old position of the Action object.\n */\n Position getOldPosition();\n\n /**\n * Gets the new position of the Action object.\n *\n * @return the new position of the Action object.\n */\n Position getNewPosition();\n\n /**\n * Gets the old with of the Action object.\n *\n * @return the old width of the Action object.\n */\n double getOldWidth();\n\n /**\n * Gets the old height of the Action object.\n *\n * @return the new height of the Action object.\n */\n double getOldHeight();\n\n /**\n * Gets the new width of the Action object.\n *\n * @return the new width of the Action object.\n */\n double getNewWidth();\n\n /**\n * Gets the new height of the Action object.\n *\n * @return the new height of the Action object.\n */\n double getNewHeight();\n\n /**\n * Gets the old color of the Action object.\n *\n * @return the old color of the Action object.\n */\n RGB getOldColor();\n\n /**\n * Gets the new color of the Action object.\n *\n * @return the new color of the Action object\n */\n RGB getNewColor();\n}",
"public interface IMotion {\r\n\r\n /**\r\n * Gets the initial state of the shape.\r\n *\r\n * @return IShape of the initial state of the shape.\r\n */\r\n IShape getStartShape();\r\n\r\n /**\r\n * Gets the end state of the shape.\r\n *\r\n * @return IShape of the end state of the shape.\r\n */\r\n IShape getEndShape();\r\n\r\n /**\r\n * Gets the start time of the motion.\r\n *\r\n * @return start time of motion.\r\n */\r\n int getStartTime();\r\n\r\n /**\r\n * Gets the end time of the motion.\r\n *\r\n * @return end time of motion.\r\n */\r\n int getEndTime();\r\n}",
"public boolean isAnimating() {\n\t\treturn mAnimating;\n\t}",
"public boolean isAnimated()\n {\n return _animated;\n }",
"public MyAnimation getRearSprite();",
"int animationId();",
"@Override\n public Animator onCreateAnimator(int transit, boolean enter, int nextAnim) {\n return ValueAnimator.ofFloat(.0F, 1.F).setDuration(ChildAnimationAction.DURATION);\n }",
"@Override public void onAnimationStart(Animator arg0) {\n\n }",
"public static MaterialViewPagerAnimator getAnimator(Context context) {\n return hashMap.get(context);\n }",
"public interface IReadOnlyAnimationModel {\n\n /**\n * Gets the map of shape id's to shapes.\n *\n * @return the LinkedHashMap of shapes.\n */\n LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();\n\n /**\n * Gets the canvas dimension.\n *\n * @return the dimension of the canvas.\n */\n Dimension getCanvasDimension();\n\n /**\n * Gets the left most x and top most y.\n *\n * @return the Point of the x and y coordinates.\n */\n Point getTopXY();\n}",
"public MyAnimation getFrontSprite();",
"public boolean isEnableAnimation() {\n return enableAnimation;\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@NonNull\r\n public abstract ObjectAnimator getAnimator(@NonNull ViewGroup viewGroup, @NonNull View view);",
"Animation getHideAnimation();",
"public interface IAnimationController {\n\n /**\n * This method should start the animation using the provided model.\n */\n void start();\n\n /**\n * Retrieve the log from this controller.\n *\n * @return The log of this controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n Appendable getLog();\n\n /**\n * Retrieve the timer from this controller.\n * @return The timer of this controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n Timer getTimer();\n\n /**\n * Retrieves the tempo of the controller.\n * @return tempo used by controller\n * @throws UnsupportedOperationException Throws exception if the controller does not support the\n * functionality\n */\n double getTempo();\n\n\n}",
"public ImageIcon getNextAnimation() {\n\t\tImageIcon animation = null;\n\t\tif (getX_direction() < 0) {\n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowLeft1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowLeft2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowLeft3;\n\t\t\t}\n\t\t} else if (getX_direction() >= 0) { \n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowRight1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowRight2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowRight3;\n\t\t\t}\n\t\t}\n\t\tnextAnimation();\n\t\treturn animation;\n\t}",
"protected Animator[] getAnimators(View view) {\n return new Animator[]{ObjectAnimator.ofFloat(view, \"alpha\", 0f, 1f)};\n }",
"public static AnimationModeTransition obtainAnimationModeTransition() {\n\t\treturn animationModeTransitionPool.obtain();\n\t}",
"public BufferedImage getCurrentFrame(){\n\t\tif(first)\n\t\t\treturn animation_frame[index];\n\t\telse\n\t\t\treturn animation_frame[0];\n\t\t\n\t}",
"@Override\n public void onAnimationStart(Animator animation) {\n }",
"@Override\n public void onAnimationStart(Animator arg0) {\n\n }",
"private BufferedImage getCurrentAnimationFrame() {\n\t\treturn mainMenuAnimation.getCurrentFrame();\n\t\t\n\t}",
"@Override\n public Animation get_animation(Boolean enter) {\n if (Settings.get_user_language(this).equals(\"ar\")) {\n if (animation_direction)\n return MoveAnimation.create(MoveAnimation.LEFT, enter, DURATION);\n else\n return MoveAnimation.create(MoveAnimation.RIGHT, enter, DURATION);\n } else {\n if (animation_direction)\n return MoveAnimation.create(MoveAnimation.RIGHT, enter, DURATION);\n else\n return MoveAnimation.create(MoveAnimation.LEFT, enter, DURATION);\n }\n }",
"@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }",
"private static Animator createAnimatorFromXml(Context arranimator, Resources object, Resources.Theme theme, XmlPullParser xmlPullParser, AttributeSet attributeSet, AnimatorSet animatorSet, int n, float f) throws XmlPullParserException, IOException {\n int n2;\n PropertyValuesHolder[] arrpropertyValuesHolder = null;\n ArrayList<PropertyValuesHolder[]> arrayList = null;\n int n3 = xmlPullParser.getDepth();\n while (((n2 = xmlPullParser.next()) != 3 || xmlPullParser.getDepth() > n3) && n2 != 1) {\n if (n2 != 2) continue;\n PropertyValuesHolder[] arrpropertyValuesHolder2 = xmlPullParser.getName();\n n2 = 0;\n if (arrpropertyValuesHolder2.equals(\"objectAnimator\")) {\n arrpropertyValuesHolder2 = AnimatorInflaterCompat.loadObjectAnimator((Context)arranimator, (Resources)object, theme, attributeSet, f, xmlPullParser);\n } else if (arrpropertyValuesHolder2.equals(\"animator\")) {\n arrpropertyValuesHolder2 = AnimatorInflaterCompat.loadAnimator((Context)arranimator, (Resources)object, theme, attributeSet, null, f, xmlPullParser);\n } else if (arrpropertyValuesHolder2.equals(\"set\")) {\n arrpropertyValuesHolder2 = new AnimatorSet();\n arrpropertyValuesHolder = TypedArrayUtils.obtainAttributes((Resources)object, theme, attributeSet, AndroidResources.STYLEABLE_ANIMATOR_SET);\n int n4 = TypedArrayUtils.getNamedInt((TypedArray)arrpropertyValuesHolder, xmlPullParser, \"ordering\", 0, 0);\n AnimatorInflaterCompat.createAnimatorFromXml((Context)arranimator, (Resources)object, theme, xmlPullParser, attributeSet, (AnimatorSet)arrpropertyValuesHolder2, n4, f);\n arrpropertyValuesHolder.recycle();\n } else {\n if (!arrpropertyValuesHolder2.equals(\"propertyValuesHolder\")) {\n throw new RuntimeException(\"Unknown animator name: \" + xmlPullParser.getName());\n }\n arrpropertyValuesHolder2 = AnimatorInflaterCompat.loadValues((Context)arranimator, (Resources)object, theme, xmlPullParser, Xml.asAttributeSet((XmlPullParser)xmlPullParser));\n if (arrpropertyValuesHolder2 != null && arrpropertyValuesHolder != null && arrpropertyValuesHolder instanceof ValueAnimator) {\n ((ValueAnimator)arrpropertyValuesHolder).setValues(arrpropertyValuesHolder2);\n }\n n2 = 1;\n arrpropertyValuesHolder2 = arrpropertyValuesHolder;\n }\n arrpropertyValuesHolder = arrpropertyValuesHolder2;\n if (animatorSet == null) continue;\n arrpropertyValuesHolder = arrpropertyValuesHolder2;\n if (n2 != 0) continue;\n ArrayList<PropertyValuesHolder[]> arrayList2 = arrayList;\n if (arrayList == null) {\n arrayList2 = new ArrayList<PropertyValuesHolder[]>();\n }\n arrayList2.add(arrpropertyValuesHolder2);\n arrpropertyValuesHolder = arrpropertyValuesHolder2;\n arrayList = arrayList2;\n }\n if (animatorSet != null && arrayList != null) {\n arranimator = new Animator[arrayList.size()];\n n2 = 0;\n for (Animator arranimator[n2] : arrayList) {\n ++n2;\n }\n if (n != 0) {\n animatorSet.playSequentially(arranimator);\n return arrpropertyValuesHolder;\n }\n animatorSet.playTogether(arranimator);\n }\n return arrpropertyValuesHolder;\n }",
"@Override\n public void onAnimationStart(Animator arg0) {\n\n }",
"public interface AnimatorUpdateListenerCompat {\n void mo457a(ValueAnimatorCompat valueAnimatorCompat);\n}",
"public String getDefaultOutAnimation() {\n return (defaultOutAnimation);\n }",
"public interface EditorAnimationView extends AnimationView {\n /**\n * Reset the display to reflect the current tick.\n */\n void drawCurrentTick();\n\n /**\n * Change whether the animation is currently playing or not.\n */\n void togglePlay();\n\n /**\n * Set the animation to not playing.\n */\n void pause();\n\n /**\n * Set the current tick to the given tick.\n * @param tick the new tick.\n */\n void setTick(int tick);\n\n /**\n * Set the current time to the earliest possible time for a tick.\n */\n void rewind();\n\n /**\n * Add one tick to the current time.\n */\n void incrementTick();\n\n /**\n * remove one tick from the current time.\n */\n void decrementTick();\n\n /**\n * Switch whether the animation loops or not.\n */\n void toggleLoop();\n\n /**\n * Recalculate the last tick in the animation.\n */\n void updateMaxTick();\n\n /**\n * Displays an interactive list of shapes in the order that they are\n * stored in the currently selected layer.\n * @param shapes the list of shape names to display.\n */\n void setShapeList(List<String> shapes);\n\n /**\n * Displays an interactive list of layers, with the background layer first and the top layer last.\n * @param shapes the list of layer names to display.\n */\n void setLayerList(List<String> shapes);\n\n /**\n * Write the representation of the given model's animation to this view's output in the format\n * determined by another view's type.\n * @param output the string to be written to the view's output.\n * @throws IllegalArgumentException if the text type is incorrect\n * @throws IllegalStateException if the output has not been set or is invalid (ie unwritable)\n */\n void save(String output);\n\n /**\n * Tie the commands given by the Controller to the buttons/control scheme of this view.\n * @param features the interface containing all the necessary commands\n */\n void addFeatures(Features features);\n\n /**\n * Shows the user a given error message.\n * @param message the message to be displayed\n */\n void displayErrorMessage(String message);\n\n /**\n * Reset focus onto the view instead of any of its components (like buttons or text fields).\n */\n void resetFocus();\n\n /**\n * Reset all text fields to their default state.\n */\n void resetTextFields();\n\n /**\n * Enter a screen from which a shape's Motions can be edited.\n * @param layer the layer of the shape to be edited\n * @param shape the shape to be edited\n */\n void enterShapeEditor(String layer, String shape);\n\n /**\n * Return to the default screen from the shape editor screen.\n */\n void exitShapeEditor();\n\n /**\n * Set the text boxes for creating a new frame to the given Motion.\n * @param m the motion to set the text boxes to\n */\n void setNewFrameText(Motion m);\n\n /**\n * Set the text boxes for editing an existing frame to the given Motion.\n * @param m the motion to set the text boxes to\n */\n void setEditFrameText(Motion m);\n}",
"public Map<Pair<ID, SpecialEffectT>, List<Image>> getAnimationsEffect() {\n return AnimationsEffect;\n }",
"@Override public void onAnimationRepeat(Animator arg0) {\n\n }",
"@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public static Animation getAnimation(Context context) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\n\n boolean animated = preferences.getBoolean(context.getString(R.string.preference_animation_key),\n false);\n\n if (animated) {\n ScaleAnimation animation = new ScaleAnimation(0, 1, 0, 1);\n animation.setDuration(1000);\n animation.setFillAfter(true);\n return animation;\n }\n\n return null;\n }",
"private void m1731a(Animator animator) {\n if (animator instanceof AnimatorSet) {\n ArrayList childAnimations = ((AnimatorSet) animator).getChildAnimations();\n if (childAnimations != null) {\n for (int i = 0; i < childAnimations.size(); i++) {\n m1731a((Animator) childAnimations.get(i));\n }\n }\n }\n if (animator instanceof ObjectAnimator) {\n ObjectAnimator objectAnimator = (ObjectAnimator) animator;\n String propertyName = objectAnimator.getPropertyName();\n if (\"fillColor\".equals(propertyName) || \"strokeColor\".equals(propertyName)) {\n if (this.f2276f == null) {\n this.f2276f = new ArgbEvaluator();\n }\n objectAnimator.setEvaluator(this.f2276f);\n }\n }\n }",
"public String toString() {\r\n\t\treturn \"PlayAnimation\";\r\n\t}",
"public List<AnimationCallback> getAnimationCallbacks() {\n return callbacks;\n }",
"public MovingBehaviour getMovingBehaviour() {\n\t\treturn this.movingBehaviour;\n\t}",
"public Animation inAlpha() {\n\t\treturn getAlphaInAnim(mInDuration, false);\n\t}",
"@Override\n public String animationState() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }",
"public ArrayList<Animator> getChildAnimations() {\n/* 106 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public int getDuration() {\n return animationDuration;\n }",
"public Logic getBehaviorTarget ()\n {\n return _behavior.getCurrentTarget();\n }",
"public static MovingShape getInstance() {\n return state;\n }",
"public boolean isAnimating() {\n\t\treturn animationTimer.isRunning();\n\t}",
"public BufferedImage getDrawable(){\n\t\tif(this.isOilContamination()){\n\t\t\treturn this.myFlyweight.getDeadDrawable();\n\t\t}\n\t\t//check direction -- such a horrible way to write a method\n\t\t//redundant checking and ugh.... design this away please...........................\n\t\tif(this.getDirection().getX() > 0 && !this.myFlyweight.getMovingBackAnimationSequence().isEmpty()){\n\t\t\treturn this.myFlyweight.getMovingBackAnimationSequence().get(animationFrame);\n\t\t}\n\t\treturn this.myFlyweight.getAnimationSequence().get(animationFrame);\n\t}",
"public RMTimeline getTimeline(boolean create)\n{\n // Get timeline from attributes map\n RMTimeline timeline = (RMTimeline)get(\"Anim\");\n \n // If null and create is requested, create\n if(timeline==null && create)\n setTimeline(timeline = new RMTimeline(this));\n\n // Return timeline\n return timeline;\n}",
"protected abstract void animate(int anim);",
"public interface IShape {\n\n /**\n * Adds a new motion to the list if it does not overlap with any existing motion, and add the\n * keyframes that align with the start and end points of this motion.\n *\n * @param motion the motion to be added\n * @throws IllegalArgumentException if the motion overlaps with an existing motion in the list\n */\n void addMotion(IMotion motion);\n\n /**\n * Add the given keyframe to this animation, and edit the motions to align with the new keyframe.\n *\n * @param keyframe the keyframe to be added.\n */\n void addKeyframe(IKeyframe keyframe);\n\n /**\n * Removes the keyframe and reformats motions at the given time.\n *\n * @param time the tick to remove the keyframe at\n */\n void removeKeyframe(int time);\n\n /**\n * Adds the given keyframe to this shape, overwriting the one at the time it has.\n *\n * @param newKeyframe the new keyframe to add.\n */\n void editKeyframe(IKeyframe newKeyframe);\n\n /**\n * Returns all the motions of this shape object.\n *\n * @return a list containing all motions.\n */\n List<IMotion> getMotions();\n\n /**\n * Returns all keyframes of this shape object.\n *\n * @return a list containing all keyframes.\n */\n List<IKeyframe> getKeyframes();\n\n /**\n * Calculates the current position of this shape at the given tick, and sets the values.\n *\n * @param tick the tick to calculate position at\n * @throws IllegalArgumentException if tick is not positive or if no motion runs at that tick\n */\n void calculateMotionAtTick(int tick);\n\n /**\n * Returns a string containing the name of the type of shape this object is.\n *\n * @return the string representing the name of the type of this object.\n */\n String getType();\n\n /**\n * Gets dimensions field of this Shape.\n *\n * @return the dimension field\n */\n Dimension getDimensions();\n\n /**\n * Gets the color field of this Shape.\n *\n * @return the color field\n */\n Color getColor();\n\n /**\n * Gets the position field of this Shape.\n *\n * @return the position field\n */\n Point getPosition();\n\n /**\n * Checks that there are no gaps in the run time of this shape's motions.\n *\n * @return true if there are no gaps, false otherwise\n */\n boolean isPlayable();\n\n /**\n * Returns the final tick value for this shape.\n *\n * @return the final tick value\n */\n int getFinalTick();\n\n /**\n * Returns the first tick motions start for this shape.\n *\n * @return the first tick value.\n */\n int getFirstTick();\n\n /**\n * Gets the name of this shape.\n *\n * @return the name\n */\n String getName();\n\n /**\n * Checks if this shape has a motion during this time.\n *\n * @param tick the tick to check\n * @return if the shape has a motion\n */\n boolean isRunningDuringTick(int tick);\n\n}",
"IShape getCurrentShape();",
"public double getTransition(){\n\t\treturn transition;\n\t}",
"public Transition getCurrentTransition () {\n return ttb.getCurrentTransition();\n }",
"private Animation.AnimationListener createAnimationListener() {\n return new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n }\n @Override\n public void onAnimationEnd(Animation animation) {\n // set up button symbol and playback indicator afterwards\n setVisualState();\n }\n @Override\n public void onAnimationRepeat(Animation animation) {\n }\n };\n }",
"public int getDefaultAnimationDuration() {\n return (defaultAnimationDuration);\n }",
"T setSequencedAnimation(Boolean sequencedAnimation);",
"public void animate()\n\t{\n\t\tanimation.read();\n\t}"
] |
[
"0.7433235",
"0.6964168",
"0.664552",
"0.6626789",
"0.64789194",
"0.6397198",
"0.63636976",
"0.6324678",
"0.63019806",
"0.6301712",
"0.62720656",
"0.62719953",
"0.6228495",
"0.6228016",
"0.6210735",
"0.6021132",
"0.6018199",
"0.6016587",
"0.5992026",
"0.5979055",
"0.5966402",
"0.5965696",
"0.59371424",
"0.58671564",
"0.58323836",
"0.5826507",
"0.5824121",
"0.58118457",
"0.5794717",
"0.57607293",
"0.57607293",
"0.57607293",
"0.57607293",
"0.5744077",
"0.5735192",
"0.5722508",
"0.5693131",
"0.5693131",
"0.5693131",
"0.5693131",
"0.5693131",
"0.5655003",
"0.56544465",
"0.5645133",
"0.5580915",
"0.5574332",
"0.553443",
"0.5532796",
"0.55223006",
"0.55199885",
"0.5516387",
"0.5449124",
"0.5393076",
"0.5374537",
"0.5369239",
"0.5342587",
"0.53199494",
"0.5316674",
"0.5302342",
"0.5301773",
"0.5296424",
"0.52952",
"0.5286094",
"0.52651477",
"0.52577484",
"0.5254591",
"0.52321935",
"0.52251285",
"0.5224207",
"0.5213577",
"0.5210636",
"0.5207125",
"0.520323",
"0.5196988",
"0.51940215",
"0.5193318",
"0.5188146",
"0.5146037",
"0.51361567",
"0.5116817",
"0.5110946",
"0.51016307",
"0.5086374",
"0.508419",
"0.5083773",
"0.50690895",
"0.50668687",
"0.5058593",
"0.50536144",
"0.50376695",
"0.5037159",
"0.503509",
"0.5034061",
"0.50296515",
"0.5029291",
"0.5021613",
"0.501613",
"0.5009822",
"0.50030625",
"0.50027955"
] |
0.672633
|
2
|
Returns the animator that this shape's children use.
|
public RMAnimator getChildAnimator() { return getChildAnimator(false); }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMAnimator getAnimator() { return getAnimator(false); }",
"public java.util.ArrayList<android.animation.Animator> getChildAnimations() { throw new RuntimeException(\"Stub!\"); }",
"public Animation Animation() {\r\n return animation;\r\n }",
"public RMAnimator getAnimator(boolean create)\n{\n return getParent()!=null? getParent().getChildAnimator(create) : null;\n}",
"public RMAnimator getChildAnimator(boolean create)\n{\n return getParent()!=null? getParent().getChildAnimator(create) : null;\n}",
"protected abstract Animator[] getAnimators(View itemView);",
"Animation getAnimation() {\n return currAnimation;\n }",
"default Animator getInAnimation() {\n return null;\n }",
"public int getAnimation() {\n\t\t\treturn animation;\n\t\t}",
"public ConstraintAnimation getConstraintAnimation() {\n return constraintAnimation;\n }",
"public Optional<Animation> animation() {\n return Optional.empty();\n }",
"default Animator getOutAnimation() {\n return null;\n }",
"public Animation getMovingAnimation(){\r\n\t\treturn moving;\r\n\t}",
"public ArrayList<Animator> getChildAnimations() {\n/* 106 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"Animation getStructure();",
"public Boolean getAnimate () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.animate);\r\n\t}",
"Animation getShowAnimation();",
"@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n\tprotected Animator createAnimator() {\n\t\tAnimator anim = ViewAnimationUtils.createCircularReveal(\n\t\t\t\tmRevealView, getWidth() / 2, getHeight() / 2, 0, getWidth() / 2);\n\t\tanim.addListener(new AnimatorListenerAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t// Now we can refresh the drawable state\n\t\t\t\trefreshDrawableState();\n\n\t\t\t\tmRevealView.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t\treturn anim;\n\t}",
"public Animale getAnimaleACaso(){\n\t\tthrow new NotImplementedException();\r\n\t}",
"public AnimationHook animate() {\n return animation.start();\n }",
"public boolean getAnimated() {\r\n return animated.get();\r\n }",
"protected abstract float getFrameTimeNormalAnimation();",
"protected Animator[] getAnimators(View view) {\n return new Animator[]{ObjectAnimator.ofFloat(view, \"alpha\", 0f, 1f)};\n }",
"public CameraAnimation getCameraAnimation() {\n\t\treturn this.animation;\n\t}",
"public static MaterialViewPagerAnimator getAnimator(Context context) {\n return hashMap.get(context);\n }",
"@ProtoLayoutExperimental\n @Nullable\n public AnimatedVisibility getContentUpdateAnimation() {\n if (mImpl.hasContentUpdateAnimation()) {\n return AnimatedVisibility.fromProto(mImpl.getContentUpdateAnimation());\n } else {\n return null;\n }\n }",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"public int getDuration() {\n return animationDuration;\n }",
"public StringKey getAnimation() {\n return ModelBundle.SHIP_ANIMATIONS.get(name);\n }",
"@NonNull\r\n public abstract ObjectAnimator getAnimator(@NonNull ViewGroup viewGroup, @NonNull View view);",
"public boolean isChildLayoutAnimated() {\n return mAnimateChildLayout;\n }",
"public boolean isAnimated()\n {\n return animator.isAnimating();\n }",
"public String getDefaultInAnimation() {\n return (defaultInAnimation);\n }",
"public MyAnimation getSprite();",
"Animation getHideAnimation();",
"public org.apache.xmlbeans.XmlBoolean xgetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(SHOWANIMATION$20);\n }\n return target;\n }\n }",
"final public int getAnimationDuration()\n {\n return ComponentUtils.resolveInteger(getProperty(ANIMATION_DURATION_KEY), 1000);\n }",
"public IAnimationSyncSet getCurrentAnimationSyncSet()\n\t{\n\t\treturn _animationSyncSet;\n\t}",
"public MyAnimation getRearSprite();",
"public Map<Pair<ID, SpecialEffectT>, List<Image>> getAnimationsEffect() {\n return AnimationsEffect;\n }",
"public boolean getShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SHOWANIMATION$20);\n }\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"@Override\n public Animator onCreateAnimator(int transit, boolean enter, int nextAnim) {\n return ValueAnimator.ofFloat(.0F, 1.F).setDuration(ChildAnimationAction.DURATION);\n }",
"@Override public void onAnimationStart(Animator arg0) {\n\n }",
"private void getPlayer(){\n /** We need to have the correct child index from the scene **/\n //Spatial spatialNode = animation_Scene.getChild(16);\n //spatialNode\n animCharacter = (Node) animation_Scene.getChild(16);\n //rootNode.attachChild(animCharacter);\n animCharacter.setLocalTranslation(0, 0, 0);\n \n \n /** Get the animation control **/\n control = animCharacter.getChild(0).getControl(AnimControl.class);\n \n /** Print the names of animations**/\n Collection<String> animationNames = control.getAnimationNames();\n Object[] nameArray = animationNames.toArray();\n for(int a = 0; a < animationNames.size(); a++){\n System.out.println(\"Animation \" + a + \": \" + nameArray[a]);\n }\n \n /** Get Animation Channel **/\n channel = control.createChannel();\n walk = control.getAnim(\"Walk\");\n run = control.getAnim(\"Run\");\n stand = control.getAnim(\"Action_Stand\");\n \n channel.setAnim(\"Action_Stand\");\n }",
"public List<AnimationCallback> getAnimationCallbacks() {\n return callbacks;\n }",
"public int getDefaultAnimationDuration() {\n return (defaultAnimationDuration);\n }",
"public String getDefaultOutAnimation() {\n return (defaultOutAnimation);\n }",
"public int getAnimationDelay() {\n\t\treturn mAnimationDelay;\n\t}",
"int animationId();",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"public long getAnimDuration() {\n return (long) (Settings.Global.getFloat(this.mContext.getContentResolver(), \"transition_animation_scale\", this.mContext.getResources().getFloat(17105053)) * 336.0f);\n }",
"@Override\n public void onAnimationStart(Animator arg0) {\n\n }",
"@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }",
"public boolean isAnimate() {\n return animate;\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public Animation inAlpha() {\n\t\treturn getAlphaInAnim(mInDuration, false);\n\t}",
"@Override\n public void onAnimationStart(Animator animation) {\n }",
"@Override\n public void onAnimationStart(Animator arg0) {\n\n }",
"public String toString() {\r\n\t\treturn \"PlayAnimation\";\r\n\t}",
"public Logic getBehaviorTarget ()\n {\n return _behavior.getCurrentTarget();\n }",
"public ImageIcon getNextAnimation() {\n\t\tImageIcon animation = null;\n\t\tif (getX_direction() < 0) {\n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowLeft1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowLeft2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowLeft3;\n\t\t\t}\n\t\t} else if (getX_direction() >= 0) { \n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowRight1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowRight2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowRight3;\n\t\t\t}\n\t\t}\n\t\tnextAnimation();\n\t\treturn animation;\n\t}",
"@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}",
"public boolean isAnimated()\n {\n return _animated;\n }",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public MyAnimation getFrontSprite();",
"public Animation<TextureRegion> getHeroDying() {\n return heroDying;\n }",
"public Map<Pair<ID, PowerUpT>, List<Image>> getAnimationsPowerUp() {\n return AnimationsPowerUp;\n }",
"public static Animation getAnimation(Context context) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\n\n boolean animated = preferences.getBoolean(context.getString(R.string.preference_animation_key),\n false);\n\n if (animated) {\n ScaleAnimation animation = new ScaleAnimation(0, 1, 0, 1);\n animation.setDuration(1000);\n animation.setFillAfter(true);\n return animation;\n }\n\n return null;\n }",
"public String toString()\n\t{\n\t\treturn \"Base animation\";\n\t}",
"public BufferedImage getDrawable(){\n\t\tif(this.isOilContamination()){\n\t\t\treturn this.myFlyweight.getDeadDrawable();\n\t\t}\n\t\t//check direction -- such a horrible way to write a method\n\t\t//redundant checking and ugh.... design this away please...........................\n\t\tif(this.getDirection().getX() > 0 && !this.myFlyweight.getMovingBackAnimationSequence().isEmpty()){\n\t\t\treturn this.myFlyweight.getMovingBackAnimationSequence().get(animationFrame);\n\t\t}\n\t\treturn this.myFlyweight.getAnimationSequence().get(animationFrame);\n\t}",
"public boolean isAnimating() {\n\t\treturn mAnimating;\n\t}",
"private BufferedImage getCurrentAnimationFrame() {\n\t\treturn mainMenuAnimation.getCurrentFrame();\n\t\t\n\t}",
"private String[] getTarget(XmlNode animationNode) {\n XmlNode channelNode = animationNode.getChild(\"channel\");\n String data = channelNode.getAttribute(\"target\");\n return data.split(\"/\");\n }",
"public boolean isEnableAnimation() {\n return enableAnimation;\n }",
"@Override\n\t\t\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public static int getDelay() {\n\t\treturn ANIMATION_DELAY;\n\t}",
"public MovingBehaviour getMovingBehaviour() {\n\t\treturn this.movingBehaviour;\n\t}",
"private AnimationFX onFinished() {\n if (reset) {\n resetNode();\n }\n if (this.nextAnimation != null) {\n this.nextAnimation.play();\n }\n return this;\n }",
"public LevelMover getMover() {\n\t\treturn myMover;\n\t}",
"public Animation get_anim(String anim_name) {\n\n\t\tArrayList<Integer> dur_list;\n\t\tArrayList<Image> image_list;\n\t\tswitch (anim_name) {\n\t\tcase \"fly\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"f1\"));\n\t\t\timage_list.add(get_image(\"f2\"));\n\t\t\timage_list.add(get_image(\"f3\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(50);\n\t\t\tdur_list.add(50);\n\t\t\tdur_list.add(50);\n\t\t\tbreak;\n\t\tcase \"grub_right\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"gr1\"));\n\t\t\timage_list.add(get_image(\"gr2\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(100);\n\t\t\tdur_list.add(100);\n\t\t\tbreak;\n\t\tcase \"grub_left\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"gl1\"));\n\t\t\timage_list.add(get_image(\"gl2\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(100);\n\t\t\tdur_list.add(100);\n\t\t\tbreak;\n\t\tcase \"mario_run_left\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"ml1\"));\n\t\t\timage_list.add(get_image(\"ml2\"));\n\t\t\timage_list.add(get_image(\"ml3\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(200);\n\t\t\tdur_list.add(200);\n\t\t\tdur_list.add(200);\n\t\t\tbreak;\n\t\tcase \"mario_run_right\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"mr1\"));\n\t\t\timage_list.add(get_image(\"mr2\"));\n\t\t\timage_list.add(get_image(\"mr3\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(200);\n\t\t\tdur_list.add(200);\n\t\t\tdur_list.add(200);\n\t\t\tbreak;\n\t\tcase \"mario_still_left\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"mls\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(200);\n\t\t\tbreak;\n\t\tcase \"mario_still_right\":\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(\"mrs\"));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(200);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\timage_list = new ArrayList<Image>();\n\t\t\timage_list.add(get_image(anim_name));\n\t\t\tdur_list = new ArrayList<>();\n\t\t\tdur_list.add(50);\n\t\t}\n\t\treturn new Animation(image_list, dur_list);\n\t}",
"public Pane getPane() {\n return this.meldingPane;\n }",
"AnimationObject3d getParsedAnimationObject();",
"public Animation getAnimation(Class<? extends Animation> clazz) {\n for (Animation a : new ArrayList<>(animations)) {\n if (a.getClass().equals(clazz)) {\n return a;\n }\n }\n return null;\n }",
"@Override\n public void onAnimationEnd(Animator animation) {\n }",
"public Image getImage() {\n float percent = (System.currentTimeMillis() - animationStart) % animationDuration / (float)animationDuration;\n return frames[(int) (percent * frames.length)];\n }",
"public Motion3d getMotion() {\n return motion;\n }",
"public Image getImagenI() {\n return animacion.getImagen().getImage();\n }",
"public float getMovementAnimationDuration() {\r\n\t\treturn (TILESIZE / getMovementSpeed()) * TARGET_FRAME_DELTA;\r\n\t}",
"private static Animator createAnimatorFromXml(Context arranimator, Resources object, Resources.Theme theme, XmlPullParser xmlPullParser, AttributeSet attributeSet, AnimatorSet animatorSet, int n, float f) throws XmlPullParserException, IOException {\n int n2;\n PropertyValuesHolder[] arrpropertyValuesHolder = null;\n ArrayList<PropertyValuesHolder[]> arrayList = null;\n int n3 = xmlPullParser.getDepth();\n while (((n2 = xmlPullParser.next()) != 3 || xmlPullParser.getDepth() > n3) && n2 != 1) {\n if (n2 != 2) continue;\n PropertyValuesHolder[] arrpropertyValuesHolder2 = xmlPullParser.getName();\n n2 = 0;\n if (arrpropertyValuesHolder2.equals(\"objectAnimator\")) {\n arrpropertyValuesHolder2 = AnimatorInflaterCompat.loadObjectAnimator((Context)arranimator, (Resources)object, theme, attributeSet, f, xmlPullParser);\n } else if (arrpropertyValuesHolder2.equals(\"animator\")) {\n arrpropertyValuesHolder2 = AnimatorInflaterCompat.loadAnimator((Context)arranimator, (Resources)object, theme, attributeSet, null, f, xmlPullParser);\n } else if (arrpropertyValuesHolder2.equals(\"set\")) {\n arrpropertyValuesHolder2 = new AnimatorSet();\n arrpropertyValuesHolder = TypedArrayUtils.obtainAttributes((Resources)object, theme, attributeSet, AndroidResources.STYLEABLE_ANIMATOR_SET);\n int n4 = TypedArrayUtils.getNamedInt((TypedArray)arrpropertyValuesHolder, xmlPullParser, \"ordering\", 0, 0);\n AnimatorInflaterCompat.createAnimatorFromXml((Context)arranimator, (Resources)object, theme, xmlPullParser, attributeSet, (AnimatorSet)arrpropertyValuesHolder2, n4, f);\n arrpropertyValuesHolder.recycle();\n } else {\n if (!arrpropertyValuesHolder2.equals(\"propertyValuesHolder\")) {\n throw new RuntimeException(\"Unknown animator name: \" + xmlPullParser.getName());\n }\n arrpropertyValuesHolder2 = AnimatorInflaterCompat.loadValues((Context)arranimator, (Resources)object, theme, xmlPullParser, Xml.asAttributeSet((XmlPullParser)xmlPullParser));\n if (arrpropertyValuesHolder2 != null && arrpropertyValuesHolder != null && arrpropertyValuesHolder instanceof ValueAnimator) {\n ((ValueAnimator)arrpropertyValuesHolder).setValues(arrpropertyValuesHolder2);\n }\n n2 = 1;\n arrpropertyValuesHolder2 = arrpropertyValuesHolder;\n }\n arrpropertyValuesHolder = arrpropertyValuesHolder2;\n if (animatorSet == null) continue;\n arrpropertyValuesHolder = arrpropertyValuesHolder2;\n if (n2 != 0) continue;\n ArrayList<PropertyValuesHolder[]> arrayList2 = arrayList;\n if (arrayList == null) {\n arrayList2 = new ArrayList<PropertyValuesHolder[]>();\n }\n arrayList2.add(arrpropertyValuesHolder2);\n arrpropertyValuesHolder = arrpropertyValuesHolder2;\n arrayList = arrayList2;\n }\n if (animatorSet != null && arrayList != null) {\n arranimator = new Animator[arrayList.size()];\n n2 = 0;\n for (Animator arranimator[n2] : arrayList) {\n ++n2;\n }\n if (n != 0) {\n animatorSet.playSequentially(arranimator);\n return arrpropertyValuesHolder;\n }\n animatorSet.playTogether(arranimator);\n }\n return arrpropertyValuesHolder;\n }",
"@Override public void onAnimationRepeat(Animator arg0) {\n\n }",
"private void m1731a(Animator animator) {\n if (animator instanceof AnimatorSet) {\n ArrayList childAnimations = ((AnimatorSet) animator).getChildAnimations();\n if (childAnimations != null) {\n for (int i = 0; i < childAnimations.size(); i++) {\n m1731a((Animator) childAnimations.get(i));\n }\n }\n }\n if (animator instanceof ObjectAnimator) {\n ObjectAnimator objectAnimator = (ObjectAnimator) animator;\n String propertyName = objectAnimator.getPropertyName();\n if (\"fillColor\".equals(propertyName) || \"strokeColor\".equals(propertyName)) {\n if (this.f2276f == null) {\n this.f2276f = new ArgbEvaluator();\n }\n objectAnimator.setEvaluator(this.f2276f);\n }\n }\n }"
] |
[
"0.7544606",
"0.7064724",
"0.68235946",
"0.6813314",
"0.66990376",
"0.6697565",
"0.669085",
"0.6689729",
"0.64823776",
"0.64150923",
"0.6248167",
"0.61761624",
"0.6133747",
"0.60095555",
"0.59828997",
"0.5982532",
"0.5973532",
"0.5964656",
"0.59512234",
"0.5939539",
"0.59244186",
"0.59115773",
"0.58720124",
"0.58427507",
"0.58166283",
"0.5814046",
"0.57659566",
"0.5760528",
"0.5741782",
"0.57264036",
"0.5726316",
"0.57236904",
"0.5720002",
"0.5674185",
"0.5641414",
"0.56061804",
"0.55905837",
"0.55744976",
"0.55656004",
"0.55425686",
"0.553299",
"0.55006945",
"0.54849434",
"0.54671365",
"0.54366606",
"0.54262424",
"0.54173964",
"0.5372162",
"0.5371975",
"0.53640646",
"0.5330539",
"0.5330539",
"0.5330539",
"0.5330539",
"0.5330539",
"0.5328447",
"0.5328447",
"0.5328447",
"0.5328447",
"0.532655",
"0.53145593",
"0.5296411",
"0.5288468",
"0.5287091",
"0.52763766",
"0.5275433",
"0.5263468",
"0.52539",
"0.52338254",
"0.52184093",
"0.5208874",
"0.5207327",
"0.5192226",
"0.51638854",
"0.5162549",
"0.5147686",
"0.51364523",
"0.5128741",
"0.51276857",
"0.51201797",
"0.51154464",
"0.5108296",
"0.50918597",
"0.50851077",
"0.5081172",
"0.50748277",
"0.50679344",
"0.50571877",
"0.50505257",
"0.50484097",
"0.5038599",
"0.50302505",
"0.5029342",
"0.49980396",
"0.49974078",
"0.49872664",
"0.49866292",
"0.49832064",
"0.49608657",
"0.49581003"
] |
0.7583714
|
0
|
Returns the animator that this shape's children use (creating, if requested and currently null). The base implementation passes request onto ancestors, but some subclasses create and manage one (RMPage, RMSwitchShape).
|
public RMAnimator getChildAnimator(boolean create)
{
return getParent()!=null? getParent().getChildAnimator(create) : null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RMAnimator getChildAnimator() { return getChildAnimator(false); }",
"public RMAnimator getAnimator(boolean create)\n{\n return getParent()!=null? getParent().getChildAnimator(create) : null;\n}",
"public java.util.ArrayList<android.animation.Animator> getChildAnimations() { throw new RuntimeException(\"Stub!\"); }",
"public RMAnimator getAnimator() { return getAnimator(false); }",
"default Animator getInAnimation() {\n return null;\n }",
"protected abstract Animator[] getAnimators(View itemView);",
"public ArrayList<Animator> getChildAnimations() {\n/* 106 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n\tprotected Animator createAnimator() {\n\t\tAnimator anim = ViewAnimationUtils.createCircularReveal(\n\t\t\t\tmRevealView, getWidth() / 2, getHeight() / 2, 0, getWidth() / 2);\n\t\tanim.addListener(new AnimatorListenerAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t// Now we can refresh the drawable state\n\t\t\t\trefreshDrawableState();\n\n\t\t\t\tmRevealView.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t\treturn anim;\n\t}",
"Animation getAnimation() {\n return currAnimation;\n }",
"public Animation Animation() {\r\n return animation;\r\n }",
"public boolean isChildLayoutAnimated() {\n return mAnimateChildLayout;\n }",
"public RMParentShape getParent() { return _parent; }",
"public ConstraintAnimation getConstraintAnimation() {\n return constraintAnimation;\n }",
"public MyAnimation getRearSprite();",
"public Optional<Animation> animation() {\n return Optional.empty();\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"@Override\n public SkillAnimation getAnimation(boolean userAnimation) {\n return new TackleAnimation(userAnimation);\n }",
"public RMParentShape getOwner() { return _owner; }",
"default Animator getOutAnimation() {\n return null;\n }",
"Animation getStructure();",
"public Animale getAnimaleACaso(){\n\t\tthrow new NotImplementedException();\r\n\t}",
"@NonNull\r\n public abstract ObjectAnimator getAnimator(@NonNull ViewGroup viewGroup, @NonNull View view);",
"protected abstract float getFrameTimeNormalAnimation();",
"public RMParentShape getPageShape() { return _parent!=null? _parent.getPageShape() : (RMParentShape)this; }",
"public AnimationHook animate() {\n return animation.start();\n }",
"@ProtoLayoutExperimental\n @Nullable\n public AnimatedVisibility getContentUpdateAnimation() {\n if (mImpl.hasContentUpdateAnimation()) {\n return AnimatedVisibility.fromProto(mImpl.getContentUpdateAnimation());\n } else {\n return null;\n }\n }",
"public MyAnimation getSprite();",
"public SuperMario getActor() {\r\n return mario;\r\n }",
"public int[] getChildOrientations() {return childOrientations;}",
"Animation getShowAnimation();",
"public IAnimationSyncSet getCurrentAnimationSyncSet()\n\t{\n\t\treturn _animationSyncSet;\n\t}",
"public Animation getMovingAnimation(){\r\n\t\treturn moving;\r\n\t}",
"public BufferedImage getDrawable(){\n\t\tif(this.isOilContamination()){\n\t\t\treturn this.myFlyweight.getDeadDrawable();\n\t\t}\n\t\t//check direction -- such a horrible way to write a method\n\t\t//redundant checking and ugh.... design this away please...........................\n\t\tif(this.getDirection().getX() > 0 && !this.myFlyweight.getMovingBackAnimationSequence().isEmpty()){\n\t\t\treturn this.myFlyweight.getMovingBackAnimationSequence().get(animationFrame);\n\t\t}\n\t\treturn this.myFlyweight.getAnimationSequence().get(animationFrame);\n\t}",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public RMRect getFrame() { return isRSS()? convertRectToShape(getBoundsInside(), _parent) : getBounds(); }",
"@Override\n public Animator onCreateAnimator(int transit, boolean enter, int nextAnim) {\n return ValueAnimator.ofFloat(.0F, 1.F).setDuration(ChildAnimationAction.DURATION);\n }",
"public final ShapeParent getShapeParent()\n {\n return parent;\n }",
"public LevelMover getMover() {\n\t\treturn myMover;\n\t}",
"public List <RMShape> getChildren() { return Collections.emptyList(); }",
"public abstract boolean getRendersChildren();",
"protected Animator[] getAnimators(View view) {\n return new Animator[]{ObjectAnimator.ofFloat(view, \"alpha\", 0f, 1f)};\n }",
"public org.apache.xmlbeans.XmlBoolean xgetShowAnimation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWANIMATION$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(SHOWANIMATION$20);\n }\n return target;\n }\n }",
"public void setParent(RMParentShape aShape) { _parent = aShape; }",
"public int getAnimation() {\n\t\t\treturn animation;\n\t\t}",
"@Override\r\n\tpublic ArrayList<IShape> addChildren() {\r\n\t\tArrayList<IShape> iShapes = new ArrayList<IShape>();\r\n\t\tif (getSize() != \"Small\") {\r\n\t\t\tif (getSize().equals(\"Large\")) {\r\n\t\t\t\t// Explode Sound Large\r\n\t\t\t\tSoundManager.getSoundManager().explodeLarge();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Medium\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, getChildren()));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (getSize().equals(\"Medium\")) {\r\n\t\t\t\t// Explode Sound Medium\r\n\t\t\t\tSoundManager.getSoundManager().explode();\r\n\t\t\t\tfor (int i = 0; i < getChildren(); i++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tiShapes.add(ShapeFactory.makeShape(\"Triangle\", getMinX(), getMinY(),\r\n\t\t\t\t\t\t\t\t((getMaxX() - getMinX()) / 2) + getMinX(), ((getMaxY() - getMinY()) / 2) + getMinY(),\r\n\t\t\t\t\t\t\t\trandNum5(), randNum5(), randNum5(), getColor(), getStrategy(), \"Small\",\r\n\t\t\t\t\t\t\t\tgetScore() * getMultiplier(), getMultiplier() * 2, 0));\r\n\t\t\t\t\t} catch (BadShapeException e) {\r\n\t\t\t\t\t} catch (UnsupportedShapeException e) {\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\tSoundManager.getSoundManager().explodeSmall();\r\n\t\t}\r\n\t\treturn iShapes;\r\n\t}",
"public float getOpacityDeep()\n{\n float op = getOpacity();\n for(RMShape s=_parent; s!=null; s=s._parent) op *= s.getOpacity();\n return op;\n}",
"public Boolean getAnimate () {\r\n\t\treturn (Boolean) getStateHelper().eval(PropertyKeys.animate);\r\n\t}",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public Human[] getChildren() {\n return children;\n }",
"public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }",
"public Figure getChild() {\n\t\treturn _child;\n\t}",
"public RMTransform getTransformFromShape(RMShape aShape)\n{\n // The transform from parent is just our inverse transform, transform from child is just child's transform\n if(aShape==getParent())\n return getTransformInverse();\n if(aShape!=null && this==aShape.getParent())\n return aShape.getTransform();\n\n // Return the inverse of transform to shape\n return getTransformToShape(aShape).invert();\n}",
"public interface IAnimableNode {\n\n public IAnimableNode getNext();\n\n public IAnimable getAnimable();\n\n}",
"IShape getCurrentShape();",
"public SnapshotArray<Actor> getChildren() {\n\n SnapshotArray<com.guidebee.game.engine.scene.Actor>\n internalActors = internalGroup.getChildren();\n SnapshotArray<Actor> actors = null;\n if (internalActors != null) {\n actors = new SnapshotArray<Actor>();\n for (com.guidebee.game.engine.scene.Actor actor : internalActors) {\n actors.add((Actor) actor.getUserObject());\n }\n\n }\n return actors;\n }",
"public static MaterialViewPagerAnimator getAnimator(Context context) {\n return hashMap.get(context);\n }",
"public CameraAnimation getCameraAnimation() {\n\t\treturn this.animation;\n\t}",
"private void initAnim()\n {\n \t\n //leftWalk = AnimCreator.createAnimFromPaths(Actor.ANIM_DURATION, \n // AUTO_UPDATE, leftWalkPaths);\n // get the images for leftWalk so we can flip them to use as right.#\n \tImage[] leftWalkImgs = new Image[leftWalkPaths.length];\n \tImage[] rightWalkImgs = new Image[leftWalkPaths.length];\n \tImage[] leftStandImgs = new Image[leftStandPaths.length];\n \tImage[] rightStandImgs = new Image[leftStandPaths.length];\n \t\n \t\n \t\n \tleftWalkImgs = AnimCreator.getImagesFromPaths(\n \t\t\tleftWalkPaths).toArray(leftWalkImgs);\n \t\n \theight = leftWalkImgs[0].getHeight();\n \t\n \trightWalkImgs = AnimCreator.getHorizontallyFlippedCopy(\n \t\t\tleftWalkImgs).toArray(rightWalkImgs);\n \t\n \tleftStandImgs = AnimCreator.getImagesFromPaths(\n \t\t\tleftStandPaths).toArray(leftStandImgs);\n \t\n \trightStandImgs = AnimCreator.getHorizontallyFlippedCopy(\n \t\t\tleftStandImgs).toArray(rightStandImgs);\n \t\n \tboolean autoUpdate = true;\n \t\n \tleftWalk = new /*Masked*/Animation(\n\t\t\t\t\t\t leftWalkImgs, \n\t\t\t\t\t\t Actor.ANIM_DURATION, \n\t\t\t\t\t\t autoUpdate);\n\n \trightWalk = new /*Masked*/Animation(\n \t\t\t\t\t\trightWalkImgs, \n \t\t\t\t\t\tActor.ANIM_DURATION, \n\t\t\t\t autoUpdate);\n \t\n \tleftStand = new /*Masked*/Animation(\n \t\t\t\t\t\tleftStandImgs, \n\t\t\t\t\t\t\tActor.ANIM_DURATION, \n\t\t\t\t\t\t\tautoUpdate);\n \t\n \trightStand = new /*Masked*/Animation(\n \t\t\t\t\t\trightStandImgs, \n \t\t\t\t\t\tActor.ANIM_DURATION,\n \t\t\t\t\t\tautoUpdate);\n \t\n \tsetInitialAnim();\n }",
"public Logic getBehaviorTarget ()\n {\n return _behavior.getCurrentTarget();\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"@Nullable\n public AnimationSpec getAnimationSpec() {\n if (mImpl.hasAnimationSpec()) {\n return AnimationSpec.fromProto(mImpl.getAnimationSpec());\n } else {\n return null;\n }\n }",
"int childrenParent () {\r\n\treturn OS.PtWidgetChildBack (handle);\r\n}",
"public HierarchyManager getHierarchyManager() {\n return hierMgr;\n }",
"Animation getHideAnimation();",
"MergeHandler[] getChildren();",
"public RMTimeline getTimeline(boolean create)\n{\n // Get timeline from attributes map\n RMTimeline timeline = (RMTimeline)get(\"Anim\");\n \n // If null and create is requested, create\n if(timeline==null && create)\n setTimeline(timeline = new RMTimeline(this));\n\n // Return timeline\n return timeline;\n}",
"private void getPlayer(){\n /** We need to have the correct child index from the scene **/\n //Spatial spatialNode = animation_Scene.getChild(16);\n //spatialNode\n animCharacter = (Node) animation_Scene.getChild(16);\n //rootNode.attachChild(animCharacter);\n animCharacter.setLocalTranslation(0, 0, 0);\n \n \n /** Get the animation control **/\n control = animCharacter.getChild(0).getControl(AnimControl.class);\n \n /** Print the names of animations**/\n Collection<String> animationNames = control.getAnimationNames();\n Object[] nameArray = animationNames.toArray();\n for(int a = 0; a < animationNames.size(); a++){\n System.out.println(\"Animation \" + a + \": \" + nameArray[a]);\n }\n \n /** Get Animation Channel **/\n channel = control.createChannel();\n walk = control.getAnim(\"Walk\");\n run = control.getAnim(\"Run\");\n stand = control.getAnim(\"Action_Stand\");\n \n channel.setAnim(\"Action_Stand\");\n }",
"public boolean getAnimated() {\r\n return animated.get();\r\n }",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public boolean isAnimated()\n {\n return animator.isAnimating();\n }",
"public RMShape getAncestor(int anIndex) { return anIndex==0? getParent() : getParent().getAncestor(anIndex-1); }",
"public interface IReadOnlyAnimationModel {\n\n /**\n * Gets the map of shape id's to shapes.\n *\n * @return the LinkedHashMap of shapes.\n */\n LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();\n\n /**\n * Gets the canvas dimension.\n *\n * @return the dimension of the canvas.\n */\n Dimension getCanvasDimension();\n\n /**\n * Gets the left most x and top most y.\n *\n * @return the Point of the x and y coordinates.\n */\n Point getTopXY();\n}",
"protected abstract void animationLogicTemplate();",
"public Pane getPane() {\n return this.meldingPane;\n }",
"Behavior getBehavior();",
"public MyAnimation getFrontSprite();",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"@Override public void onAnimationStart(Animator arg0) {\n\n }",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"private AnimationFX onFinished() {\n if (reset) {\n resetNode();\n }\n if (this.nextAnimation != null) {\n this.nextAnimation.play();\n }\n return this;\n }",
"public void setTime(int aTime)\n{\n // Get shape timeline and set time (if non-null)\n RMTimeline timeline = getTimeline();\n if(timeline!=null) {\n undoerDisable();\n timeline.setTime(aTime);\n undoerEnable();\n }\n \n // If children have same animator as this shape, recurse setTime to children\n if(getAnimator()==getChildAnimator())\n for(int i=0, iMax=getChildCount(); i<iMax; i++)\n getChild(i).setTime(aTime);\n}",
"ShapeGroup(){\n children = new ArrayList<IShape>();\n }",
"public String getDefaultInAnimation() {\n return (defaultInAnimation);\n }",
"@Override\n\tpublic void update() {\n\t\tfor (ShapeBase w : getChildren()) {\n\t\t\tw.update();\n\t\t}\n\t}",
"public IStatus[] getChildren() {\n\t\treturn adaptee.getChildren();\n\t}",
"@Override\n public Animator createAnimator(ViewGroup object, TransitionValues transitionValues, TransitionValues transitionValues2) {\n void var1_6;\n Rect rect;\n Object var6_14;\n Rect rect2;\n void var3_13;\n Object var1_2 = var6_14 = null;\n if (rect == null) return var1_6;\n Object var1_3 = var6_14;\n if (var3_13 == null) return var1_6;\n Object var1_4 = var6_14;\n if (!rect.values.containsKey(\"android:clipBounds:clip\")) return var1_6;\n if (!var3_13.values.containsKey(\"android:clipBounds:clip\")) {\n Object var1_5 = var6_14;\n return var1_6;\n }\n Rect rect3 = (Rect)rect.values.get(\"android:clipBounds:clip\");\n Rect rect4 = (Rect)var3_13.values.get(\"android:clipBounds:clip\");\n boolean bl = rect4 == null;\n if (rect3 == null) {\n Object var1_7 = var6_14;\n if (rect4 == null) return var1_6;\n }\n if (rect3 == null) {\n rect2 = (Rect)rect.values.get(\"android:clipBounds:bounds\");\n rect = rect4;\n } else {\n rect = rect4;\n rect2 = rect3;\n if (rect4 == null) {\n rect = (Rect)var3_13.values.get(\"android:clipBounds:bounds\");\n rect2 = rect3;\n }\n }\n Object var1_9 = var6_14;\n if (rect2.equals((Object)rect)) return var1_6;\n {\n ViewCompat.setClipBounds(var3_13.view, rect2);\n RectEvaluator rectEvaluator = new RectEvaluator(new Rect());\n Rect rect5 = rect = ObjectAnimator.ofObject((Object)var3_13.view, ViewUtils.CLIP_BOUNDS, (TypeEvaluator)rectEvaluator, (Object[])new Rect[]{rect2, rect});\n if (!bl) return var1_6;\n {\n rect.addListener((Animator.AnimatorListener)new AnimatorListenerAdapter(var3_13.view){\n final /* synthetic */ View val$endView;\n {\n this.val$endView = view;\n }\n\n public void onAnimationEnd(Animator animator2) {\n ViewCompat.setClipBounds(this.val$endView, null);\n }\n });\n return rect;\n }\n }\n }",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"public Figure getFigure() {\n\t\treturn _parentFigure;\n\t}",
"@NotNull\n @Override\n public TreeElement[] getChildren() {\n return callChildren(this, navigationItem);\n }",
"public int Parent() { return this.Parent; }",
"GapBoxViewChildren createChildren() {\n return new GapBoxViewChildren(this);\n }",
"public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}",
"public List<GameStateChild> getChildren() {\n return null;\n }",
"public final MediaManagerLogicInterface getParentMediaManager() {\n return parentMediaManager;\n }",
"public RMTransform getTransformToShape(RMShape aShape)\n{\n // If transforming out of shape hierarchy, concat recursive transformToShape call to parents\n if(aShape==null)\n return getParent()==null? getTransform() : getTransform().multiply(getParent().getTransformToShape(null));\n\n // The transform to parent is just our transform, transform to child is just child's inverse transform\n if(aShape==getParent())\n return getTransform();\n if(this==aShape.getParent())\n return aShape.getTransformInverse();\n if(aShape==this)\n return new RMTransform();\n\n // Start with identity transform\n RMTransform transform = RMTransform.identity;\n \n // If not one of simple cases above, concat successive transforms from last shape to self\n List <RMShape> shapes = getShapesToShape(aShape);\n if(shapes!=null)\n for(int i=shapes.size()-1; i>0; i--) {\n RMShape cs = shapes.get(i), ns = shapes.get(i-1);\n RMTransform t2 = ns==cs.getParent()? cs.getTransformInverse() : ns.getTransform(); // Inv if going up, else normal\n transform = t2.multiply(transform);\n }\n \n // Return transform\n return transform;\n}"
] |
[
"0.72660065",
"0.70676863",
"0.6654291",
"0.6590361",
"0.5976463",
"0.5953004",
"0.5865082",
"0.58589613",
"0.56539893",
"0.5502178",
"0.5500212",
"0.5500008",
"0.54615456",
"0.54148626",
"0.5405878",
"0.54037005",
"0.54037005",
"0.54037005",
"0.54037005",
"0.54037005",
"0.5340476",
"0.52709687",
"0.5266912",
"0.5246404",
"0.5188957",
"0.51506686",
"0.51354647",
"0.50946647",
"0.50627553",
"0.5037283",
"0.50172037",
"0.50159574",
"0.50118667",
"0.49888194",
"0.4984416",
"0.49758267",
"0.49724796",
"0.49723804",
"0.4970006",
"0.49524513",
"0.4938775",
"0.49254945",
"0.4923619",
"0.49188367",
"0.49187663",
"0.48775354",
"0.48763308",
"0.48607498",
"0.48563036",
"0.48475283",
"0.48395902",
"0.48310462",
"0.48171684",
"0.48171636",
"0.48143744",
"0.48124647",
"0.48060754",
"0.48033166",
"0.4784202",
"0.4783213",
"0.47697747",
"0.47697672",
"0.47640297",
"0.47640297",
"0.47640297",
"0.47640297",
"0.4747108",
"0.47458723",
"0.47353113",
"0.47269765",
"0.47170964",
"0.47104087",
"0.47067052",
"0.47057804",
"0.4701822",
"0.4692043",
"0.46887854",
"0.4674775",
"0.4673962",
"0.4673075",
"0.46710503",
"0.46692005",
"0.46623075",
"0.466198",
"0.46577743",
"0.46577275",
"0.46576238",
"0.46432376",
"0.4634243",
"0.4625757",
"0.46248636",
"0.4623114",
"0.46228504",
"0.46182954",
"0.4616333",
"0.46127596",
"0.45956782",
"0.45940164",
"0.45939052",
"0.45858037"
] |
0.7180212
|
1
|
Returns whether shape accepts mouse events.
|
public boolean acceptsMouse()
{
// If hover shape, return false
if(RMShapeUtils.getHoverShape()==this) return false;
// Return true if there is a URL, Hover or MouseListener
return getURL()!=null || getHover()!=null || getListenerCount(RMShapeMouseListener.class)>0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isMouseClicked() {\n\t\treturn input.isMouseClicked();\n\t}",
"public boolean isMouseClicked(){\n\t\treturn mouseClick;\n\t}",
"public boolean isMouseOver(){\n\t\treturn this.contains(Main.camera.getMousePos());\n\t}",
"public final boolean mouseWouldHit(final TMouseEvent mouse) {\n\n if (!enabled) {\n return false;\n }\n\n if ((mouse.getAbsoluteX() >= getAbsoluteX())\n && (mouse.getAbsoluteX() < getAbsoluteX() + width)\n && (mouse.getAbsoluteY() >= getAbsoluteY())\n && (mouse.getAbsoluteY() < getAbsoluteY() + height)\n ) {\n return true;\n }\n return false;\n }",
"public boolean isHovered();",
"public boolean mouseWithinBox() {\n return (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h);\r\n }",
"public boolean getMouseClicked() {\r\n\t\treturn mouseClicked;\r\n\t}",
"public boolean getMouseClick () {\r\n return myMouseClick;\r\n }",
"boolean _mousePressed(MouseEvent ev) {\n\t\treturn false;\n\t}",
"public abstract boolean mouseOver( int x, int y );",
"public boolean isMouseHidden() {\n return mouseHidden.get();\n }",
"public Boolean isMouseOver(Window window) {\n // Get normalised Mouse Positions\n Vector2f normalisedMouse = MousePicker.getNormalisedDeviceCoordinates(window);\n // Get normalised Vertex Positions\n Vector2f[] guiVertexPositions = getNormalisedVertexPositions();\n\n // Check if There are a valid amount of vertices\n if (guiVertexPositions.length >= 3) {\n float normalX = normalisedMouse.getX();\n float normalY = normalisedMouse.getY();\n // Set initial values to be that of the first Vertex\n float minX = guiVertexPositions[0].getX();\n float maxX = guiVertexPositions[0].getX();\n float minY = guiVertexPositions[0].getY();\n float maxY = guiVertexPositions[0].getY();\n\n // Calculate min and max values\n for (int i = 1; i < guiVertexPositions.length; i++) {\n if (guiVertexPositions[i].getX() < minX) {\n minX = guiVertexPositions[i].getX();\n }\n if (guiVertexPositions[i].getX() > maxX) {\n maxX = guiVertexPositions[i].getX();\n }\n if (guiVertexPositions[i].getY() < minY) {\n minY = guiVertexPositions[i].getY();\n }\n if (guiVertexPositions[i].getY() > maxY) {\n maxY = guiVertexPositions[i].getY();\n }\n }\n\n Boolean withinX = ((normalX >= minX) && (normalX <= maxX));\n Boolean withinY = ((normalY >= minY) && (normalY <= maxY));\n // Check if Mouse is within boundaries\n return (withinX && withinY);\n } else {\n return false;\n }\n }",
"public final boolean isTouching(Shape shape) {\n\t\t// TODO: write this function.\n\t\treturn false;\n\t}",
"public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}",
"public boolean mouseClicked(MouseEvent e)\r\n {\r\n double x = e.getX();\r\n double y = e.getY();\r\n \r\n //find if coordinates are in a \"button\"\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n if (towerButtons[i].contains(x,y))\r\n {\r\n display.setUnit(dummyList.get(i));\r\n selectedIndex = i;\r\n }\r\n }\r\n \r\n //within bounds\r\n if ((new Rectangle2D.Double(initX, 0, width, height)).contains(x,y))\r\n return true;\r\n return false;\r\n }",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"public boolean isOver(PVector i_mousePosition){\n\t\tPVector mouseLocal = globalToLocal(i_mousePosition);\t\t\n\t\treturn pointInTriangle(mouseLocal, c1, c2, c3);\n\t}",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public void mousePressed(){\n\n if(mouseX >= rectX4 && mouseX <= rectX4 + rectWidth && mouseY >= rectY4 && mouseY <= rectY4 + rectHeight){\n println(\"Button 4\");\n }\n \n}",
"public boolean isMouseCentered() {\n return mouseCentered.get();\n }",
"public boolean checkMouseOver(Rectangle selectionBox) {\n\t\tdouble zoom = editor.control.viewControl.zoom;\n\t\treturn (tool.mousePosition.distanceTo(getDrawPosition(selectionBox)) < Tool.DISTANCE_SELECT_HANDLE / zoom);\n\t}",
"private boolean mouseOver(int mouseX, int mouseY, int x, int y, int width, int height) {\n\t\tif (mouseX > x && mouseX < x + width) {\n\t\t\tif (mouseY > y && mouseY < y + height) {\n\t\t\t\treturn true;\n\t\t\t} else\n\t\t\t\treturn false;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void mousePressed(RMShapeMouseEvent anEvent)\n{\n // Iterate over mouse listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mousePressed(anEvent);\n}",
"public void mousePressed( MouseEvent event ){}",
"@SuppressWarnings(\"deprecation\")\n protected boolean isDragPossible(MouseEvent e) {\n JTextComponent c = (JTextComponent)e.getSource();\n if (c.isEnabled()) {\n Caret caret = c.getCaret();\n int dot = caret.getDot();\n int mark = caret.getMark();\n if (dot != mark) {\n Point p = new Point(e.getX(), e.getY());\n int pos = c.viewToModel(p);\n\n int p0 = Math.min(dot, mark);\n int p1 = Math.max(dot, mark);\n if ((pos >= p0) && (pos < p1)) {\n return true;\n }\n }\n }\n return false;\n }",
"void mousePressed(MouseEvent mouseEvent);",
"public boolean isUnderMouse(int x, int y) {\n\t\tif (x >= getX() && x <= getX() + getWidth() && y >= getY() && y <= getY() + getHeight())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isToggleSelectionEvent(MouseEvent e) {\r\n \t\treturn ((JmtGraphUI) graph.getUI()).isToggleSelectionEvent(e);\r\n \t}",
"public void mousePressed (MouseEvent event) {}",
"public boolean canHandle(Object selection);",
"protected boolean isCursorMove(Event event) {\n if(movePanel != null) {\n int cursorY = DOM.eventGetClientY(event);\n int initialY = movePanel.getAbsoluteTop();\n int height = movePanel.getOffsetHeight();\n int cursorX = DOM.eventGetClientX(event);\n int initialX = movePanel.getAbsoluteLeft();\n int width = movePanel.getOffsetWidth();\n \n return initialY <= cursorY && initialY + height >= cursorY && initialX <= cursorX &&\n initialX + width >= cursorX;\n }\n return false;\n }",
"void mousePressed(double x, double y, MouseEvent e );",
"protected boolean canEditImmediately(EventObject event) {\n\tif((event instanceof MouseEvent) &&\n\t SwingUtilities.isLeftMouseButton((MouseEvent)event)) {\n\t MouseEvent me = (MouseEvent)event;\n\n\t return ((me.getClickCount() > 2) &&\n\t\t inHitRegion(me.getX(), me.getY()));\n\t}\n \treturn (event == null);\n }",
"public boolean canHit(Figure entity) {\n return true;\n }",
"private final boolean isHovering(int mouseX,int mouseY) {\n\t\treturn mouseX >= this.x &&\n\t\t\t\tmouseX <= this.x+this.width &&\n\t\t\t\tmouseY >= this.y &&\n\t\t\t\tmouseY <= this.y+this.height;\n\t}",
"abstract boolean getIsDragging();",
"public void testMouseListener() throws Exception\n {\n checkFormEventListener(MOUSE_BUILDER, \"MOUSE\");\n }",
"public abstract boolean canHandle(Object event);",
"@Override\n\tpublic boolean onMouseMove(MouseEvent event) {\n\t\treturn false;\n\t}",
"boolean isHighlighted();",
"public boolean contains(Point mousePt) {\r\n\t\treturn (x <= mousePt.x && mousePt.x <= (x + width + 1)\t&&\ty <= mousePt.y && mousePt.y <= (y + height + 1));\r\n\t}",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {}",
"boolean _mouseMoved(MouseEvent ev) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onMousePressed(MouseButtonEvent event) {\n\t\treturn false;\n\t}",
"public void mouseClicked(RMShapeMouseEvent anEvent)\n{\n // Iterate over mouse listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseClicked(anEvent);\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 boolean contains(Point mousePt) {\r\n\t\treturn (p.x <= mousePt.x && mousePt.x <= (p.x + width + 1)\t&&\tp.y <= mousePt.y && mousePt.y <= (p.y + height + 1));\r\n\t}",
"public abstract void mouseInput();",
"private boolean isInCanvas() {\n\t\tif ((sens.getXPos() >= sens.getXMax()) || (sens.getYPos() >= sens.getYMax()) || (sens.getXPos() < 0) || (sens.getYPos() < 0)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isInCanvas() {\n\t\tif ((sens.getXPos() >= sens.getXMax()) || (sens.getYPos() >= sens.getYMax()) || (sens.getXPos() < 0) || (sens.getYPos() < 0)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"Shape whoIsPlaying();",
"public void mouseEntered(RMShapeMouseEvent anEvent)\n{\n // Set cursor\n anEvent.getViewer().setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n \n // Iterate over mouse listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseEntered(anEvent);\n \n // If alt is down and name starts with hover, get hover shape\n if(getHover()!=null)\n RMShapeUtils.getHoverTimer(anEvent);\n}",
"public abstract boolean pointerInside(int iPosX, int iPosY);",
"boolean hasEvent();",
"public static boolean isHovered(int mouseX, int mouseY, int x, int y, int width, int height) {\n return mouseX >= x && mouseY >= y && mouseX < x + width && mouseY < y + height;\n }",
"@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tLOG.fine(\"Pressed...\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mousePressed(e);\r\n\t\t}\r\n\t}",
"boolean _mouseReleased(MouseEvent ev) {\n\t\treturn false;\n\t}",
"protected boolean dealWithMouseDown(org.eclipse.swt.events.MouseEvent e)\n {\n setUpMouseState(MOUSE_PRESSED);\n return true;\n }",
"public boolean isXray();",
"public boolean isEventsSuppressed() {\r\n\t\treturn eventsSuppressed;\r\n\t}",
"public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }",
"public boolean isCursorOver(MenuCursor cursor) {\n return cursor.rect.overlaps(buttonRect);\n }",
"public void mousePressed(MouseEvent event)\r\n {\n }",
"public abstract void mousePressed(Point p);",
"private boolean mouseOver(int mx, int my, int x, int y, int width, int height){\n if(mx > x && mx < x + width){\n if(my > y && my < y + height){\n return true;\n }else return false;\n }else return false;\n }",
"@Override\n public boolean mouseOver(int x, int y)\n {\n return false;\n }",
"void mousePressed() {\n firing = true;\n\n}",
"Boolean isTouchable();",
"public abstract void mousePressed(MousePressedEvent mp);",
"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}",
"public Object getOnmousemove() {\r\n\t\treturn getOnMouseMove();\r\n\t}",
"public static final boolean isMouseInside(NativeEvent event, Element element) {\n return isInside(event.getClientX() + Window.getScrollLeft(), event.getClientY() + Window.getScrollTop(), getBounds(element));\n }",
"boolean hasRect();",
"public void mousePressed() {\n }",
"@objid (\"0480e45a-6886-42c0-b13c-78b8ab8f713d\")\n boolean isIsEvent();",
"void mouseReleased() {\n firing = false;\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 e)\n { }",
"public boolean isCalibrated() {\n return ( clicked1!=null && clicked2!=null );\n }",
"public boolean isHover()\n {\n return showHover;\n }",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"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 }",
"public void mouseReleased(RMShapeMouseEvent anEvent)\n{\n // Iterate over mouse listeners and forward\n for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)\n getListener(RMShapeMouseListener.class, i).mouseReleased(anEvent);\n \n // If URL is present and mouse released in shape, fire url\n if(getURL()!=null && contains(anEvent.getPoint2D()))\n anEvent.getViewer().performActionURLClick(getURL());\n}",
"boolean onLeftClick(double mouseX, double mouseY);",
"public void checkClickedArea(int xMouse,int yMouse)\n {\n\n isSelected=false;\n if(targetable==true&&(xMouse>=xBeginMap+15&&xMouse<=xEndMap-15\n &&yMouse>=yBeginMap+15&&yMouse<=yEndMap-15))\n {\n\n isSelected=true;\n }\n\n }",
"protected boolean isCursorAtResizePosition(Event event) {\n\t\tint cursorY = DOM.eventGetClientY(event);\n\t\tint initialY = getAbsoluteTop();\n\t\tint height = getOffsetHeight();\n\n\t\tint cursorX = DOM.eventGetClientX(event);\n\t\tint initialX = getAbsoluteLeft();\n\t\tint width = getOffsetWidth();\n\n\t\tif (((initialX + width - 10) < cursorX && cursorX <= (initialX + width))\n\t\t\t\t&& ((initialY + height - 10) < cursorY && cursorY <= (initialY + height))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public final boolean isCursorVisible() {\n // If cursor is out of my bounds, it is not visible.\n if ((cursorX >= width)\n || (cursorX < 0)\n || (cursorY >= height)\n || (cursorY < 0)\n ) {\n return false;\n }\n\n // If cursor is out of my window's bounds, it is not visible.\n if ((getCursorAbsoluteX() >= window.getAbsoluteX()\n + window.getWidth() - 1)\n || (getCursorAbsoluteX() < 0)\n || (getCursorAbsoluteY() >= window.getAbsoluteY()\n + window.getHeight() - 1)\n || (getCursorAbsoluteY() < 0)\n ) {\n return false;\n }\n return cursorVisible;\n }",
"private boolean isLeftButtonEvent(MouseEvent me) {\r\n\t\treturn ((me.getModifiers() & MouseEvent.BUTTON1_MASK) == MouseEvent.BUTTON1_MASK);\r\n\t}",
"@Override\r\n public boolean isShapeForbidden (Shape shape)\r\n {\r\n return (forbiddenShapes != null) && forbiddenShapes.contains(shape);\r\n }",
"protected abstract boolean isShapeSimple();",
"@Override\n\tpublic boolean onMouse(MouseEvent buttonEvent) {\n\t\treturn false;\n\t}",
"public void mousePressed(MouseEvent e) {\r\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 boolean isSelectionListener() {\n return true;\n }",
"public void mousePressed(MouseEvent e) {\n\n }",
"boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);",
"public void mousePressed(MouseEvent arg0) {\n }",
"public boolean isShapeMasked() {\n return this.shapeMasked;\n }"
] |
[
"0.6783393",
"0.67700016",
"0.65550804",
"0.63174206",
"0.63091373",
"0.619657",
"0.61750114",
"0.61652833",
"0.60912675",
"0.60271275",
"0.5914604",
"0.5889209",
"0.5874882",
"0.5830622",
"0.5786997",
"0.576769",
"0.574167",
"0.57252437",
"0.57025385",
"0.56782466",
"0.56711406",
"0.56475794",
"0.5607639",
"0.56045145",
"0.5589118",
"0.55883926",
"0.5586794",
"0.55711687",
"0.5561127",
"0.5554847",
"0.55504173",
"0.55442864",
"0.5516136",
"0.5507887",
"0.5490634",
"0.5481916",
"0.5466973",
"0.5460643",
"0.54451054",
"0.5436601",
"0.5433922",
"0.5433115",
"0.5433115",
"0.5433115",
"0.5430507",
"0.54285645",
"0.5423899",
"0.5402823",
"0.5401112",
"0.5391283",
"0.5387329",
"0.5387329",
"0.53786033",
"0.537046",
"0.53696865",
"0.5362733",
"0.5360073",
"0.5351968",
"0.5341907",
"0.53386277",
"0.5338498",
"0.5336105",
"0.5334932",
"0.5327648",
"0.5326566",
"0.53247297",
"0.53113234",
"0.53050184",
"0.52992207",
"0.5297532",
"0.5291066",
"0.5279903",
"0.52749884",
"0.52746123",
"0.52653104",
"0.52647686",
"0.52541214",
"0.52540165",
"0.5249189",
"0.5245783",
"0.5235237",
"0.5230842",
"0.52289337",
"0.52258736",
"0.5224395",
"0.52175224",
"0.5214433",
"0.52119184",
"0.5204669",
"0.52032626",
"0.5201938",
"0.5190778",
"0.5179909",
"0.5169738",
"0.5152844",
"0.51522756",
"0.5150717",
"0.5148593",
"0.514758",
"0.5136786"
] |
0.80894184
|
0
|
Handles mouse pressed events.
|
public void mousePressed(RMShapeMouseEvent anEvent)
{
// Iterate over mouse listeners and forward
for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)
getListener(RMShapeMouseListener.class, i).mousePressed(anEvent);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void mousePressed( MouseEvent event ){}",
"void mousePressed(MouseEvent mouseEvent);",
"private void pressed(MouseEvent e)\r\n {\n }",
"public void mousePressed (MouseEvent event) {}",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {}",
"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 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 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) {\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}",
"public void mousePressed() {\n }",
"void mousePressed(double x, double y, MouseEvent e );",
"public void mousePressed(MouseEvent e) {\n \t\t\r\n \t}",
"public void mousePressed(MouseEvent e) {\n\n\t}",
"public void mousePressed(MouseEvent e) {\n }",
"public void mousePressed(MouseEvent e) \r\n\t{\r\n\t}",
"public void mousePressed(MouseEvent e)\r\n\t{\r\n\t}",
"public void mousePressed(MouseEvent e)\n\t{\n\t}",
"public void mousePressed(MouseEvent event)\r\n {\n }",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {}",
"public void mousePressed(MouseEvent e) {\n\t\t\t\r\n\t\t}",
"public void mousePressed(MouseEvent e) {\n\t\t\r\n\t}",
"public void mousePressed(MouseEvent e) {\r\n }",
"@Override\n public void mousePressed(final MouseEvent e)\n {\n }",
"@Override\r\n public void mousePressed(MouseEvent e) {\n }",
"@Override\r\n public void mousePressed(MouseEvent e) {\n }",
"@Override\n public void mousePressed(MouseEvent e)\n {\n }",
"@Override\n public void mousePressed(MouseEvent e)\n {\n }",
"@Override\n\tpublic void mousePressed(MouseEvent event) {\n\t\t\n\t}",
"@Override\n public void mousePressed(MouseEvent e) {\n }",
"@Override\n public void mousePressed(MouseEvent evt) {\n }",
"public void mousePressed(MouseEvent e) {\n\n }",
"public void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\r\n public void mousePressed(MouseEvent e) {\n }",
"@Override\r\n public void mousePressed(MouseEvent e) {\n }",
"public void mousePressed(MouseEvent event){\n\t\t// We recognized pressing the mouse with a flag\n\t\tclickflag = true;\t\t\n\t}",
"@Override\r\n public void mousePressed(MouseEvent e) {\r\n\r\n }",
"@Override\r\n public void mousePressed(MouseEvent e) {\r\n\r\n }",
"@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}",
"public void mousePressed(MouseEvent e) {\n\n\t\t\t\t\n\t\t\t}",
"public void mousePressed(MouseEvent arg0) {\n\t\t\n\t}",
"public void mousePressed(MouseEvent arg0) {\n\t\t\n\t}",
"public void mousePressed(MouseEvent e) {\n\r\n\t}",
"@Override\n\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void mousePressed(MouseEvent e) {\r\n\t\tmouseMoved(e);\r\n\t\tmenuControl();\r\n\t\t\r\n\t}",
"@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}",
"@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }",
"@Override\r\n\t\t\t\t\tpublic void mousePressed(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 mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n public void mousePressed(MouseEvent e) {\n\n }",
"@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\n\t\t}",
"public void mousePressed(MouseEvent arg0) {\n\n }",
"public void mousePressed(MouseEvent arg0) {\n\n }",
"@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t}",
"public void mousePressed(MouseEvent arg0) {\n\t}",
"public void mousePressed(MouseEvent e)\n { }",
"@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t}",
"@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t}",
"@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\n\t\t\t\t\t}",
"@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}"
] |
[
"0.8056785",
"0.79412925",
"0.78779835",
"0.78654855",
"0.7857571",
"0.7857571",
"0.7857571",
"0.78267205",
"0.7824274",
"0.7824274",
"0.7824274",
"0.7824274",
"0.77931166",
"0.77931166",
"0.77931166",
"0.7772831",
"0.7769159",
"0.7769159",
"0.77544826",
"0.7751818",
"0.7744292",
"0.7741267",
"0.7739312",
"0.772905",
"0.7713604",
"0.7711265",
"0.77083814",
"0.770275",
"0.7696078",
"0.76946914",
"0.7693573",
"0.7693381",
"0.7680699",
"0.7666387",
"0.7655512",
"0.7655512",
"0.76539403",
"0.76370776",
"0.76345134",
"0.76329243",
"0.7630065",
"0.7626459",
"0.7626459",
"0.76133204",
"0.7610032",
"0.7610032",
"0.7607622",
"0.7604909",
"0.7602502",
"0.7602502",
"0.76009655",
"0.7596896",
"0.75759625",
"0.75759625",
"0.75759625",
"0.75627357",
"0.7561859",
"0.75611573",
"0.75611573",
"0.75611573",
"0.75611573",
"0.75611573",
"0.75611573",
"0.75611573",
"0.75611573",
"0.75611573",
"0.75611573",
"0.7560662",
"0.7559328",
"0.7559328",
"0.755896",
"0.755896",
"0.755896",
"0.755896",
"0.7557567",
"0.7556573",
"0.7556427",
"0.7556427",
"0.7556427",
"0.7556427",
"0.7555164",
"0.7555164",
"0.7555164",
"0.7555164",
"0.7555164",
"0.7555164",
"0.75514835",
"0.75514835",
"0.75512797",
"0.7550935",
"0.7535726",
"0.7530141",
"0.7530141",
"0.7522759",
"0.7522759",
"0.7522759",
"0.7522759",
"0.7522759",
"0.75210536",
"0.7515756",
"0.7515756"
] |
0.0
|
-1
|
Handles mouse dragged events.
|
public void mouseDragged(RMShapeMouseEvent anEvent)
{
// Iterate over mouse motion listeners and forward
for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)
getListener(RMShapeMouseListener.class, i).mouseDragged(anEvent);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void mouseDragged( MouseEvent event ){}",
"public void mouseDragged(MouseEvent e){}",
"public void mouseDragged(MouseEvent e) {}",
"public void mouseDragged (MouseEvent e) {}",
"public void mouseDragged( MouseEvent e ) {\n }",
"void mouseDragged(double x, double y, MouseEvent e );",
"public void mouseDragged(MouseEvent e)\n {}",
"public void mouseDragged(MouseEvent event) { }",
"public void mouseDragged(MouseEvent e) {\n }",
"public void mouseDragged(MouseEvent event)\n\t\t{}",
"@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}",
"@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }",
"public void mouseDragged(MouseEvent e) {\n\t}",
"public void mouseDragged(MouseEvent e) {\n\n }",
"public void mouseDragged(MouseEvent e) {\n\t\t\n\t}",
"@Override\r\n public void mouseDragged(MouseEvent e) {\n }",
"@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}",
"public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}",
"public void mouseDragged(MouseEvent e) {\n\t \t\t\n\t \t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}",
"@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}",
"@Override\n public void mouseDragged(java.awt.event.MouseEvent e) {\n }",
"@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}",
"@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}",
"@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tco.mouseDragged(e);\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}",
"@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}",
"boolean onMouseDragged(double mouseX, double mouseY, double prevMouseX, double prevMouseY);",
"@Override\n public void mouseDragged(MouseEvent e) {\n\n }",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}",
"public void mouseDragged(MouseEvent e) {\n if (mouseDraggedCmd != null) {\n mouseDraggedCmd.execute();\n }\n }",
"@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}",
"@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}",
"@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}",
"public void mouseDragged(MouseEvent mouseDrag)\r\n\t{\r\n\t\tmouseDraggedX = mouseDrag.getX();\r\n\t\tmouseDraggedY = mouseDrag.getY();\r\n\t\tmouseDraggedFlag = true;\r\n\t\t//System.out.println(\"mouseDraggedX: \" + mouseDraggedX);\r\n\t\t//System.out.println(\"mouseDraggedY: \" + mouseDraggedY);\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t\tmouseClicked(e);\n\t\t\n\t}",
"public abstract void mouseDragged(MouseDraggedEvent mp);",
"@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tLOG.fine(\"Dragged [\" + e.getX() + \", \" + e.getY() + \"]...\");\r\n\t\t\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseDragged(e);\r\n\t\t}\r\n\t}",
"public void mouseDragged(MouseEvent e) {\r\n redispatchMouseEvent(e);\r\n }",
"public void mouseDragged(MouseEvent evt) {\n\t\t\t// newX = evt.getX();\n\t\t\t// newY = evt.getY();\n\t\t\t// System.out.println(newX + \" dragged \" + newY);\n\t\t}",
"@Override\n\tpublic void mouseDragged(int arg0, int arg1, int arg2, int arg3) {\n\n\t}",
"public void mouseDragged(MouseEvent event) {\n painterJPanelMouseDragged(event);\n }",
"public void mouseDragged(java.awt.event.MouseEvent evt) {\n try {\n panelMouseDragged(evt);\n } catch (Exception e) {e.getMessage(); }\n }",
"public void mouseDragged(MouseEvent me) {\n\n\t\t\t}",
"@Override\n public void handleMouseDragged(int x, int y)\n {\n windowManager.mouseDragged(deskXToAbst(x), deskYToAbst(y));\n }",
"public void mouseMoved(MouseEvent evt) {\r\n }",
"public void mouseDragged(MouseEvent mouseEvent) {\n if (mouseEvent.isPrimaryButtonDown()) {\n canvasDrawer.drawDragged(mouseEvent, board, true);\n aliveLabel.setText(\"\" + board.getCellsAlive());\n } else if (mouseEvent.isSecondaryButtonDown()) {\n canvasDrawer.setDragOffset(mouseEvent);\n }\n draw();\n }",
"@Override\r\n\tpublic void mouseDragged(MouseEvent me) {\r\n\t\tdrag(me.getX(), me.getY());\r\n\t}",
"public void mouseDragged(MouseEvent evt) {\r\n xDragged = evt.getX(); // store the x coordinate of the mouse\r\n yDragged = evt.getY(); // store the y coordinate of the mouse\r\n System.out.println(\"Mouse dragged at coordinate (\"\r\n + xDragged + \", \" + yDragged + \").\");\r\n System.out.println(\"calling method mouseDragged() of PaintTool.\");\r\n ge.mouseDragged(xDragged, yDragged, gra, getBackground());\r\n // call method mouseDragged() of class PaintTool\r\n System.out.println(\"method mouseDragged() of class PaintTool executed.\");\r\n }",
"public void mouseDragged(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }",
"public void mouseDragged(MouseEvent mEvent) \n {\n /* don't do anything while game is running */\n if(GAME_RUNNING)\n return;\n\n /* TODO: remove debug msg */\n statusMsg = new String(\"mouseDragged @ \" + mEvent.getX() + \", \" + mEvent.getY() + \" on \" + mEvent.getComponent().getClass().getName());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouse dragging on gamecanvas while game is not running */\n switch(SELECT_MODE)\n {\n //=================\n case NONE:\n case SELECTED:\n /* mouse is being dragged but we aren't in drag mode, did this drag start on an unlocked widget? */\n Widget startWidget = timWorld.grabWidget(pressX,pressY); //TODO: add a flag/check so we don't have to continually try to grab in case of failure\n if(startWidget != null && startWidget.isLocked() == false)\n {\n /* mouse dragging started over an unlocked widget, pick it up and begin dragging */\n selectedWidget = startWidget;\n SELECT_MODE = SelectMode.DRAGGING;\n DRAG_TYPE = DragType.PRESS;\n \n clickOffsetX = selectedWidget.getPosition().getX() - pressX;\n clickOffsetY = selectedWidget.getPosition().getY() - pressY;\n \n canvas.repaint();\n }\n break;\n //=================\n case DRAGGING:\n case ADDING:\n /* update mouseX and mouseY for bounding box drawing of the widget being dragged or added */\n mouseX = mEvent.getX();\n mouseY = mEvent.getY();\n canvas.repaint();\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* dragging on widget scroller */\n\n /* make sure we aren't already in adding or dragging mode */\n if(SELECT_MODE != SelectMode.ADDING)\n {\n String pressedWidget = ws.getWidgetAt(pressX, pressY);\n if(pressedWidget != null)\n {\n /* pressed on an actual widget, create an instance of it and commence dragging */\n \n // TODO: check for nulls\n addedWidget = pressedWidget;\n selectedWidget = WidgetFactory.createWidget(pressedWidget);\n SELECT_MODE = SelectMode.ADDING;\n DRAG_TYPE = DragType.PRESS;\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 \" + pressedWidget + \" from widgetscroller\");\n }\n }\n else\n {\n mouseX = mEvent.getX();\n mouseY = mEvent.getY() + 465;\n canvas.repaint();\n }\n }\n\t}",
"public void mouseMoved(MouseEvent evt) { }",
"@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 mouseDragged( MouseEvent e ){\n\t\t\t\t\tint xValue, yValue;// comments similar to mousePressed method\n\t\t\t\t\tCoordinate currentMousePosition;\n\t\t\t\t\txValue = e.getX();\n\t\t\t\t\tyValue = e.getY();\n\t\t\t\t\tcurrentMousePosition = new Coordinate(xValue, yValue);\n\t\t\t\t\tmousePositionOnBoard(currentMousePosition);\n\t\t\t\t\trepaint();\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void handle(MouseEvent mouseEvent) {\n\t\t\t\tdragDelta.x = dialog.getX() - mouseEvent.getScreenX();\r\n\t\t\t\tdragDelta.y = dialog.getY() - mouseEvent.getScreenY();\r\n\t\t\t}",
"public void mouseMoved(MouseEvent event) {\n }",
"@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }",
"public void mouseDragged(MouseEvent mouseEvent)\r\n { \r\n // Do nothing for this\r\n }",
"private void frameDragMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_frameDragMousePressed\n xMouse = evt.getX();\n yMouse = evt.getY();\n }",
"public void mouseMoved(MouseEvent e){}",
"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\tdx=dx+(e.getX()-x);\n\t\tdy=dy+(e.getY()-y);\n\t\t\n\t\tx=e.getX();\n\t\ty=e.getY();\n\t}",
"public void mouseMoved(MouseEvent e) {}",
"public void mouseMoved(MouseEvent e) {}",
"public void mouseDragged(MouseEvent e) {\n\t\tif (needToRedispatch)\n\t\t\tredispatchMouseEvent(e);\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 synchronized void mouseDragged(MouseEvent event) {\n if (_pressedCard != null) {\n _display.drag(event.getX(), event.getY(), _pressedCard);\n }\n _display.repaint();\n }",
"void onDragged();",
"@Override\r\n public void mouseMoved(MouseEvent e) {\n }",
"void mouseMoved(double x, double y, MouseEvent e );",
"@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }",
"public void mouseDragged (MouseEvent n)\r\n {\r\n \tmouseX = n.getX();\r\n \tmouseY = n.getY();\r\n }",
"@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\r\n public void mouseMoved(MouseEvent e) {\r\n\r\n }",
"public void mouseMoved(MouseEvent e) {\n }",
"@Override\n public void mouseMoved(MouseEvent e) {\n }",
"@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t_gridPanel.dragged(e.getX(), e.getY());\n\t\t}",
"@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"public void mouseDragged(MouseEvent e) {\n JMenu menu = (JMenu)menuItem;\n if (!menu.isEnabled())\n return;\n MenuSelectionManager.defaultManager().processMouseEvent(e); }"
] |
[
"0.8240712",
"0.82037026",
"0.819293",
"0.81361085",
"0.8052738",
"0.8036286",
"0.8032157",
"0.80280274",
"0.8023943",
"0.80176663",
"0.80028325",
"0.79922855",
"0.7989731",
"0.79858637",
"0.79779375",
"0.7960904",
"0.7957365",
"0.7941995",
"0.7941995",
"0.7929123",
"0.7929123",
"0.7899446",
"0.78903544",
"0.7889778",
"0.7883137",
"0.78750205",
"0.78750205",
"0.78750205",
"0.7860185",
"0.7853934",
"0.7853934",
"0.7853934",
"0.7853934",
"0.7853934",
"0.7853934",
"0.7853934",
"0.7853565",
"0.7853565",
"0.7846786",
"0.7845151",
"0.7845151",
"0.7839518",
"0.78351194",
"0.78257406",
"0.77950495",
"0.7773527",
"0.7745678",
"0.7745678",
"0.7745678",
"0.7745678",
"0.7745678",
"0.7743933",
"0.77427304",
"0.7722395",
"0.7722395",
"0.77108735",
"0.7706323",
"0.7704194",
"0.77030104",
"0.7670192",
"0.76466495",
"0.7632601",
"0.7573359",
"0.7537334",
"0.75302756",
"0.75215006",
"0.74895275",
"0.74783945",
"0.7465904",
"0.743307",
"0.7423977",
"0.7407942",
"0.74055076",
"0.74042195",
"0.7400544",
"0.7390443",
"0.7385727",
"0.73586243",
"0.7338861",
"0.7336642",
"0.7332209",
"0.7330467",
"0.73240185",
"0.73012286",
"0.729946",
"0.729946",
"0.7294738",
"0.7244891",
"0.7244327",
"0.72369313",
"0.722574",
"0.72060317",
"0.7201575",
"0.7189974",
"0.7189422",
"0.7183546",
"0.7176248",
"0.71729404",
"0.7171113",
"0.7170384",
"0.71600837"
] |
0.0
|
-1
|
Handles mouse released events.
|
public void mouseReleased(RMShapeMouseEvent anEvent)
{
// Iterate over mouse listeners and forward
for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)
getListener(RMShapeMouseListener.class, i).mouseReleased(anEvent);
// If URL is present and mouse released in shape, fire url
if(getURL()!=null && contains(anEvent.getPoint2D()))
anEvent.getViewer().performActionURLClick(getURL());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }",
"void mouseReleased(MouseEvent mouseEvent);",
"public void mouseReleased( MouseEvent event ){}",
"public void mouseReleased(MouseEvent event) {}",
"@Override\n\tpublic void mouseReleaseHandler(MouseEvent e) {\n\n\t}",
"public abstract void mouseReleased(MouseReleasedEvent mr);",
"public void mouseReleased(MouseEvent event) { \n\t\t\n\t}",
"public void mouseReleased(MouseEvent e) {}",
"public void mouseReleased(MouseEvent e) {}",
"public void mouseReleased(MouseEvent e) {}",
"void mouseReleased(double x, double y, MouseEvent e );",
"@Override\n public void mouseReleased(final MouseEvent e)\n {\n }",
"public void mouseReleased(MouseEvent event) { }",
"public void mouseReleased(MouseEvent mouseRelease)\r\n\t{\r\n\t\tmouseReleasedX = mouseRelease.getX();\r\n\t\tmouseReleasedY = mouseRelease.getY();\r\n\t\tmouseReleasedFlag = true;\r\n\t\t//System.out.println(\"mouseReleasedX: \" + mouseReleasedX);\r\n\t\t//System.out.println(\"mouseReleasedY: \" + mouseReleasedY);\r\n\t}",
"public void mouseReleased(MouseEvent e) {\r\n\t}",
"@Override\r\n public void mouseReleased(MouseEvent arg0)\r\n {\n }",
"@Override\n\tpublic void mouseReleased(MouseEvent event){}",
"public void mouseReleased(MouseEvent release) {\r\n\t\tif (SwingUtilities.isLeftMouseButton(release)) {\r\n\t\t\twasReleased = true;\r\n\t\t}\r\n\r\n\t\telse if (SwingUtilities.isRightMouseButton(release)) {\r\n\t\t\trClick = false;\r\n\t\t}\r\n\t}",
"@Override\r\n public void mouseReleased(MouseEvent e) {\n }",
"@Override\r\n public void mouseReleased(MouseEvent e) {\n }",
"@Override\r\n public void mouseReleased(MouseEvent e) {\n }",
"public void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}",
"public void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}",
"public boolean handleMouseReleased(int mouseX, int mouseY, int state) {\n return false;\n }",
"@Override\n public void mouseReleased(MouseEvent e) {\n }",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t}",
"public void mouseReleased() {\n\t\tthis.isPressed = false;\n\t}",
"@Override\n public void mouseReleased(MouseEvent e)\n {\n }",
"@Override\n public void mouseReleased(MouseEvent e)\n {\n }",
"@Override\n\tpublic void mouseReleased(MouseEvent event) {\n\t\t\n\t}",
"public void mouseReleased(MouseEvent e) {\n }",
"public void mouseReleased(MouseEvent e) {\n\t}",
"public void mouseReleased( MouseEvent e )\n {\n }",
"@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t\t}",
"public void mouseReleased(MouseEvent e) {\n\t\t\n\t}",
"public void mouseReleased(MouseEvent e) {\n\t\t\n\t}",
"public void mouseReleased(MouseEvent e) {\n\t\t\n\t}",
"public void mouseReleased(MouseEvent e) {\n\t\t\n\t}",
"@Override\n public void mouseReleased(MouseEvent e) {\n }",
"public void mouseReleased(MouseEvent e)\r\n\t{\r\n\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent e)\n\t\t{\n\t\t\treturn;\n\t\t}",
"public void mouseReleased(MouseEvent e) {\n \t\t\r\n \t}",
"@Override\n public void mouseReleased(MouseEvent evt) {\n }",
"public void mouseReleased(MouseEvent e) {\n\t\t}",
"@Override\n\tpublic void mouseReleased(\n\t\t\tMouseEvent e)\n\t\t{\n\t\t\t\n\t\t}",
"@Override\r\n public void mouseReleased(MouseEvent e) {\n }",
"@Override\r\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\r\n\t\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t\t\t}",
"@Override\r\n public void mouseReleased(MouseEvent e) {\n }",
"@Override\r\n public void mouseReleased(MouseEvent e) {\n }",
"@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"public void mouseReleased(MouseEvent e)\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}",
"public void mouseReleased(MouseEvent e) {\n\n\t}",
"public void mouseReleased(MouseEvent e) {\n\n\t}",
"public void mouseReleased(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n if(onClick!=null) {\n mouseRelease = true;\n }\n }",
"public void mouseReleased(MouseEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tmouseDown = false;\n\t}",
"@Override\r\n public void mouseReleased(MouseEvent e) {\r\n\r\n }",
"@Override\r\n public void mouseReleased(MouseEvent e) {\r\n\r\n }",
"public void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t\t}",
"public void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@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\n\tpublic void mouseReleased(MouseEvent arg0)\n\t{\n\t}",
"public void mouseReleased(MouseEvent e) {\n }",
"@Override\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t}"
] |
[
"0.8069075",
"0.8049952",
"0.8016673",
"0.7968306",
"0.78613347",
"0.78593063",
"0.78543353",
"0.78099597",
"0.78099597",
"0.78099597",
"0.7783624",
"0.77584565",
"0.77519304",
"0.7741924",
"0.76973563",
"0.7695725",
"0.7688282",
"0.7686865",
"0.7681349",
"0.7681349",
"0.7681349",
"0.76753503",
"0.76753503",
"0.76727444",
"0.7671043",
"0.767058",
"0.7666433",
"0.7663417",
"0.7663417",
"0.7663393",
"0.76633435",
"0.7661368",
"0.76548433",
"0.76508945",
"0.76478046",
"0.76478046",
"0.76478046",
"0.76478046",
"0.7623866",
"0.7623725",
"0.76175535",
"0.76136297",
"0.76136297",
"0.76136297",
"0.76136297",
"0.76136297",
"0.76136297",
"0.76136297",
"0.7611849",
"0.76090044",
"0.76064223",
"0.76050365",
"0.7603551",
"0.7603468",
"0.7602918",
"0.7602918",
"0.7602918",
"0.7602918",
"0.7596252",
"0.7596252",
"0.7596252",
"0.7596252",
"0.7596252",
"0.7596252",
"0.7596252",
"0.75938535",
"0.75936884",
"0.75935096",
"0.75935096",
"0.75933117",
"0.75933117",
"0.75933117",
"0.75879306",
"0.7587157",
"0.7585029",
"0.7585029",
"0.7584388",
"0.758077",
"0.7579955",
"0.7572006",
"0.7572006",
"0.75670713",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7562623",
"0.7561389",
"0.7555315",
"0.75526077",
"0.75526077",
"0.7547627",
"0.75468415",
"0.75463074"
] |
0.0
|
-1
|
Handles mouse clicked events.
|
public void mouseClicked(RMShapeMouseEvent anEvent)
{
// Iterate over mouse listeners and forward
for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)
getListener(RMShapeMouseListener.class, i).mouseClicked(anEvent);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void mouseClicked( MouseEvent event ){}",
"void mouseClicked(MouseEvent mouseEvent);",
"void onMouseClicked(MouseEventContext mouseEvent);",
"public void mouseClicked(int mouseX, int mouseY, int mouse) {}",
"public void mouseClicked(MouseEvent event){}",
"public void mouseClicked(MouseEvent evt) {\r\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 e) {\n\t\t\t\n\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}",
"public void mouseClicked(MouseEvent event)\n\t\t{}",
"public void mouseClicked(MouseEvent evt) {\n }",
"public void mouseClicked(MouseEvent event) { \n\t\t\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent e) {\r\n\t}",
"public abstract void mouseClicked(MouseClickedEvent event);",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\n }",
"public void mouseClicked(MouseEvent e) {\n \t\t\r\n \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 evt) {\n\n\t\t}",
"void mouseClicked(double x, double y, MouseEvent e );",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}",
"public void mouseClicked(MouseEvent e)\n {}",
"public abstract void mouseClicked(MouseEvent e);",
"public void mouseClicked(MouseEvent e) {\n\n\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void mouseClicked(MouseEvent e) { \r\n }",
"public void mouseClicked(int ex, int ey, int button) {\r\n\t}",
"public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}",
"public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"public void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {}",
"public void mouseClicked(MouseEvent e) {\n\n }",
"public void mouseClicked(MouseEvent e) {\n\r\n\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\r\n public void mouseClicked(MouseEvent e) {}",
"@Override\n public void mouseClicked(MouseEvent arg0) {\n \n }",
"@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 arg0) {\n }",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\r\n\t\t\t\r\n\t\t}",
"@Override\n\t\tpublic void mouseClicked(MouseEvent event) {\n\n\t\t}",
"public void mouseClicked(java.awt.event.MouseEvent e)\n\t{\n\t\tsuper.collectMouseEvent(e);\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}",
"@Override\r\n public void mouseClicked(MouseEvent e) {\n }",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}"
] |
[
"0.81377274",
"0.8075561",
"0.8074928",
"0.80747205",
"0.80523586",
"0.80035985",
"0.7998378",
"0.7998378",
"0.7998378",
"0.7998378",
"0.7975662",
"0.7975662",
"0.7964021",
"0.7958493",
"0.79404986",
"0.7928697",
"0.79251194",
"0.79251194",
"0.79140073",
"0.79089737",
"0.78970516",
"0.78970516",
"0.78970516",
"0.7890115",
"0.7890037",
"0.78874993",
"0.78874993",
"0.78874993",
"0.78705627",
"0.7867212",
"0.78523535",
"0.78360164",
"0.782647",
"0.78149086",
"0.7810088",
"0.7810088",
"0.78072554",
"0.78072554",
"0.78016603",
"0.7800325",
"0.7796628",
"0.7783944",
"0.7783944",
"0.77666706",
"0.7759729",
"0.7758179",
"0.77530897",
"0.77530897",
"0.77530897",
"0.7749518",
"0.7749518",
"0.7749518",
"0.7749518",
"0.7749518",
"0.7749518",
"0.7749518",
"0.77430093",
"0.7742861",
"0.7735756",
"0.77310646",
"0.77310646",
"0.77261794",
"0.77245665",
"0.7723213",
"0.77126145",
"0.77018535",
"0.769578",
"0.768783",
"0.76865155",
"0.76865155",
"0.76865155",
"0.76865155",
"0.76865155",
"0.76865155",
"0.76865155",
"0.76865155",
"0.76865155",
"0.7679071",
"0.7675405",
"0.7673443",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.76640457",
"0.7658625",
"0.76562387",
"0.76562387",
"0.76562387",
"0.76562387",
"0.76562387",
"0.76562387",
"0.76562387",
"0.76562387"
] |
0.0
|
-1
|
Handles mouse entered events.
|
public void mouseEntered(RMShapeMouseEvent anEvent)
{
// Set cursor
anEvent.getViewer().setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
// Iterate over mouse listeners and forward
for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)
getListener(RMShapeMouseListener.class, i).mouseEntered(anEvent);
// If alt is down and name starts with hover, get hover shape
if(getHover()!=null)
RMShapeUtils.getHoverTimer(anEvent);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void mouseEntered( MouseEvent event ){}",
"public void mouseEntered(MouseEvent evt) {\r\n }",
"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) {\n }",
"public void mouseEntered(MouseEvent e)\n {}",
"public void mouseEntered(MouseEvent event) {\n\t}",
"public void mouseEntered(MouseEvent e) {\r\n\t}",
"public void mouseEntered (MouseEvent e) {}",
"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) {\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}",
"void mouseEntered(MouseEvent mouseEvent);",
"public void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\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 e) {\n\t\t\n\t}",
"public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"public void mouseEntered(MouseEvent e) {\n\n }",
"public void mouseEntered(MouseEvent e) {\n\t}",
"public void mouseEntered(MouseEvent e) {\n \t\t\r\n \t}",
"public void mouseEntered(MouseEvent e) {\n }",
"@Override\n public void mouseEntered(MouseEvent e) {\n }",
"@Override\n public void mouseEntered(MouseEvent e)\n {\n }",
"@Override\n public void mouseEntered(MouseEvent e)\n {\n }",
"public void mouseEntered(MouseEvent e)\r\n\t{\r\n\t}",
"@Override\r\n public void mouseEntered(MouseEvent e) {\n }",
"public void mouseEntered(MouseEvent e) {\n\n\t}",
"@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}",
"public void mouseEntered(MouseEvent e)\n\t{\n\t}",
"public void mouseEntered(MouseEvent mouseEnter)\r\n\t{\r\n\t\t\r\n\t}",
"public void mouseEntered(MouseEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n public void mouseEntered(MouseEvent e) {\n }",
"@Override\r\n public void mouseEntered(MouseEvent e) {\n }",
"@Override\r\n public void mouseEntered(MouseEvent e) {\n }",
"@Override\r\n public void mouseEntered(MouseEvent e) {\r\n }",
"@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t}",
"@Override\n public void mouseEntered(MouseEvent e) {\n }",
"@Override\n public void mouseEntered(final MouseEvent e)\n {\n }",
"@Override\n public void mouseEntered(final MouseEvent event){}",
"@Override\r\n public void mouseEntered(MouseEvent e) {\n }",
"@Override\r\n public void mouseEntered(MouseEvent e) {\n }",
"public void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"public void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t}",
"public void mouseEntered(MouseEvent e) {\n }",
"@Override\n public void mouseEntered(MouseEvent e) {\n }",
"@Override\n public void mouseEntered(MouseEvent evt) {\n }",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t}",
"public void mouseEntered(MouseEvent e) {\n\n }",
"@Override\n\t\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\n\t\t\t\t}",
"public void mouseEntered(MouseEvent e) {\n\r\n\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}",
"@Override\n public void mouseEntered(MouseEvent e) {\n\n }",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t}",
"public void mouseEntered(MouseEvent e) {\n\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\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\n\t\t\r\n\t}"
] |
[
"0.80827534",
"0.8061746",
"0.8060414",
"0.8060414",
"0.8060414",
"0.8060414",
"0.8060414",
"0.8060414",
"0.8060414",
"0.8055884",
"0.80495226",
"0.80389124",
"0.8033336",
"0.8031212",
"0.8029724",
"0.8029724",
"0.8029724",
"0.8027245",
"0.8027245",
"0.8027245",
"0.8027245",
"0.80257785",
"0.80220705",
"0.8013791",
"0.8013791",
"0.8013791",
"0.8013791",
"0.7998933",
"0.7995775",
"0.7994837",
"0.7982721",
"0.7981986",
"0.79763633",
"0.79698193",
"0.79698193",
"0.79607797",
"0.79554015",
"0.7952258",
"0.7948755",
"0.7939286",
"0.79365927",
"0.7928114",
"0.79226816",
"0.79226816",
"0.79226816",
"0.7920025",
"0.7916596",
"0.7912645",
"0.7911237",
"0.79082566",
"0.79076505",
"0.79076505",
"0.7891217",
"0.7891217",
"0.78851396",
"0.78851396",
"0.7883572",
"0.78756875",
"0.7869392",
"0.7860734",
"0.7860734",
"0.7860734",
"0.7860734",
"0.7860734",
"0.7860734",
"0.7860734",
"0.7860734",
"0.7860734",
"0.7857843",
"0.78571683",
"0.7856822",
"0.78546",
"0.78525186",
"0.78521687",
"0.784133",
"0.7839357",
"0.7835884",
"0.7833321",
"0.7833321",
"0.7833321",
"0.7833321",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959",
"0.7831959"
] |
0.0
|
-1
|
Handles mouse moved events.
|
public void mouseMoved(RMShapeMouseEvent anEvent)
{
// If timer, restart
if(RMShapeUtils.getHoverTimer()!=null && RMShapeUtils.getHoverTimer().getShape()==this)
RMShapeUtils.getHoverTimer(anEvent);
// Iterate over mouse motion listeners and forward
for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)
getListener(RMShapeMouseListener.class, i).mouseMoved(anEvent);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void mouseMoved(MouseEvent e) {}",
"public void mouseMoved(MouseEvent e) {}",
"@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }",
"public void mouseMoved(MouseEvent event) {\n }",
"void mouseMoved(double x, double y, MouseEvent e );",
"public void mouseMoved(MouseEvent e){}",
"private void moved(MouseEvent e)\r\n {\n }",
"public void mouseMoved(MouseEvent mouseMove)\r\n\t{\r\n\t\t\r\n\t}",
"public void mouseMoved(MouseEvent evt) { }",
"public void mouseMoved(MouseEvent evt) {\r\n }",
"public void mouseMoved(MouseEvent e) {\n }",
"public void mouseMoved(MouseEvent e) {}",
"public void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"void onMouseMoved(double mouseX, double mouseY, double prevMouseX, double prevMouseY);",
"@Override\r\n public void mouseMoved(MouseEvent e) {\n }",
"public void mouseMoved (MouseEvent me) { mouse_x = me.getX(); mouse_y = me.getY(); repaint(); }",
"private void handleMoved()\n {\n toolkit.postEvent(new ComponentEvent(target, ComponentEvent.COMPONENT_MOVED));\n }",
"@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }",
"@Override\n public void mouseMoved(MouseEvent e) {\n }",
"public void mouseMoved(MouseEvent event){\r\n\t\t//we want to let the game controller know if the mouse is moved\r\n\t\tgameController.reactToMouseMove(new Point(event.getX(),event.getY()));\r\n\r\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t}",
"@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e)\n\t{\n\t}",
"public void mouseMoved(MouseEvent e,double w,double h) throws RemoteException;",
"@Override\n public void mouseMoved(MouseEvent e) {}",
"@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\r\n\t}",
"@Override\n public void mouseMoved(MouseEvent e) {\n\n }",
"@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\n\t\t}",
"@Override\r\n public void mouseMoved(MouseEvent e) {\r\n\r\n }",
"@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t}",
"@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t\t\t}",
"public abstract void mouseMoved(int displayX, int displayY);",
"@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\t\t\n\t}",
"@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent e) {\n\n\t}",
"@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\r\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\n\t}",
"@Override\n\tpublic void mouseMoved(MouseEvent arg0) {\n\n\t}",
"@Override\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t}",
"@Override\n\t\tpublic void mouseMoved(MouseEvent e) \n\t\t{\n\t\t\t\n\t\t}",
"@Override\r\n\t\tpublic void mouseMoved(MouseEvent arg0) {\n\r\n\t\t}",
"@Override \n\tpublic void mouseMoved(MouseEvent e){\n\t}",
"@Override\n public void mouseMoved(MouseEvent e){\n \n }",
"@Override\n public void mouseMoved(MouseEvent e) {\n mouseXPosition = e.getX();\n }",
"public void mouseMoved(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }",
"public void mouseMoved(MouseEvent arg0) {\n\t}",
"@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}",
"public void mouseMoved(MouseEvent mEvent) \n {\n /* don't do anything while game is running */\n if(GAME_RUNNING)\n return;\n\n /* TODO: remove debug msg */\n statusMsg = new String(\"mouseMoved @ \" + mEvent.getX() + \", \" + mEvent.getY() + \" on \" + mEvent.getComponent().getClass().getName());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouse movement on gamecanvas while game is not running */\n switch(SELECT_MODE)\n {\n case NONE:\n //nothing\n break;\n case SELECTED:\n //nothing\n break;\n case DRAGGING:\n case ADDING:\n /* update mouseX and mouseY for bounding box drawing of the widget being dragged or added */\n mouseX = mEvent.getX();\n mouseY = mEvent.getY();\n canvas.repaint();\n break;\n }\n }\n\t}",
"public void mouseDragged( MouseEvent event ){}",
"public void mouseMoved(MouseEvent e) {\n \tapp.updateCoord(e.getX(),e.getY());\n }",
"public abstract void mouseMoved(Point p);",
"private void mouseMovedElement(MouseEvent evt) {\n\t\taufzugschacht.mouseMovedArea(evt);\n\t}",
"public void\tmouseMoved(int oldx, int oldy, int newx, int newy) \n {\n mouseX = newx;\n mouseY = newy;\n }",
"public void mouseMoved(MouseEvent me) {\n\n\t\t\t}",
"public void mouseMoved(MouseEvent evt) {\n\n\t\t\tif (isDrawing) {\n\t\t\t\tnewX = evt.getX();\n\t\t\t\tnewY = evt.getY();\n\t\t\t\t\n\t\t\t\trepaint();\n\n\t\t\t}\n\t\t}",
"public void mouseDragged(MouseEvent e) {}",
"public void mouseDragged (MouseEvent e) {}",
"void windowMoved(MoveEvent e);",
"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 mouseMoved (MouseEvent n)\r\n {\r\n \tmouseX = n.getX();\r\n \tmouseY = n.getY();\r\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 }",
"public void mouseDragged(MouseEvent e){}",
"@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t// for Polyline\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseMoved(e);\r\n\t\t}\r\n\t}",
"void mouseDragged(double x, double y, MouseEvent e );",
"@Override\n\tpublic void nativeMouseMoved(NativeMouseEvent e) {\n\t\t\n\t}",
"public void mouseDragged( MouseEvent evt ){\n Location x = new Location( evt.getX(), evt.getY() );\n pond.moveAxis(x, canvas);\n\n }",
"@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\tint x = e.getX();\n\t\t\tint y = e.getY();\n\t\t\t//System.out.println(\"X: \" + x + \" Y: \" +y);\n\n\t\t}",
"public void mouseMoved(MouseEvent e)\r\n \t{\r\n\t\t//System.out.print(\"MMove: \" + e.getPoint().toString() + \"\\r\");\r\n \t}",
"@Override\n public native void mouseMove(int x, int y);",
"public void mouseDragged(MouseEvent event) { }",
"@Override\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\tmouseX = e.getX();\n\t\t\t\tmouseY = e.getY();\n\t\t\t\tmenu.setMouseX(mouseX);\n\t\t\t\tmenu.setMouseY(mouseY);\n\t\t\t}",
"private void mouseMove() {\n if (this.holding) {\n Point point = new Point(mousex, mousey);\n this.addPixel(point);\n }\n }",
"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 onMouseMoveEvent(Event event) {\n \n if(resize) {\n doResize(event);\n } else if(move) {\n doMove(event);\n }\n }",
"boolean _mouseMoved(MouseEvent ev) {\n\t\treturn false;\n\t}",
"private void formMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseMoved\n \n /*Pon la bandera para saber que ya hubó un evento y no se desloguie*/\n bIdle = true;\n \n }",
"private void formMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseMoved\n \n /*Pon la bandera para saber que ya hubó un evento y no se desloguie*/\n bIdle = true;\n \n }",
"public void mouseDragged( MouseEvent e ) {\n }",
"public void mouseDragged(MouseEvent e) {\n mouseX = e.getX();\n mouseY = e.getY();\n }",
"public void mouseDragged(MouseEvent e)\n {}",
"@Override\n public void mouseDragged(MouseEvent evt) {\n setLocation(evt.getXOnScreen() - posX, evt.getYOnScreen() - posY);\n }"
] |
[
"0.7861716",
"0.7861716",
"0.78512824",
"0.7844107",
"0.7783101",
"0.777175",
"0.7742138",
"0.7741497",
"0.7732704",
"0.77236485",
"0.764755",
"0.7631163",
"0.76007634",
"0.7552535",
"0.7532059",
"0.7511591",
"0.7485483",
"0.74815106",
"0.7467954",
"0.7447152",
"0.7416715",
"0.74166566",
"0.7416312",
"0.74018055",
"0.73994106",
"0.73990923",
"0.7390262",
"0.7390262",
"0.73754525",
"0.7375107",
"0.7375107",
"0.7370741",
"0.7367826",
"0.7360042",
"0.73586184",
"0.73537207",
"0.73537207",
"0.73537207",
"0.73537207",
"0.7352609",
"0.7352609",
"0.7352609",
"0.7352609",
"0.7352609",
"0.7352609",
"0.7352609",
"0.7352609",
"0.7352609",
"0.7352609",
"0.7352609",
"0.735162",
"0.735162",
"0.735162",
"0.73515075",
"0.73515075",
"0.73501813",
"0.73498195",
"0.73498195",
"0.73261195",
"0.72845817",
"0.72832656",
"0.7283064",
"0.72823644",
"0.72765076",
"0.7275217",
"0.7272143",
"0.7269932",
"0.7216535",
"0.72119427",
"0.72020286",
"0.7201762",
"0.71799314",
"0.7157335",
"0.71247584",
"0.7094539",
"0.7089251",
"0.7085289",
"0.707471",
"0.70605147",
"0.70567626",
"0.7052788",
"0.70525074",
"0.70263505",
"0.7020261",
"0.6971191",
"0.6962573",
"0.6957523",
"0.6956517",
"0.69423246",
"0.69422746",
"0.6924053",
"0.6919123",
"0.69179183",
"0.69096994",
"0.6903391",
"0.6900542",
"0.6900542",
"0.68994755",
"0.689248",
"0.68892616",
"0.6867097"
] |
0.0
|
-1
|
Handles mouse exited events.
|
public void mouseExited(RMShapeMouseEvent anEvent)
{
// Clear hover timer and if hover shape present, remove it
RMShapeUtils.setHoverTimer(null);
if(RMShapeUtils.getHoverShape()!=null)
getPageShape().removeChild(RMShapeUtils.getHoverShape());
// Iterate over mouse listeners and forward
for(int i=0, iMax=getListenerCount(RMShapeMouseListener.class); i<iMax; i++)
getListener(RMShapeMouseListener.class, i).mouseExited(anEvent);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void mouseExited(MouseEvent e) {}",
"public void mouseExited(MouseEvent e) {}",
"public void mouseExited(MouseEvent e) {}",
"public void mouseExited(MouseEvent e) {}",
"public void mouseExited(MouseEvent e)\n {}",
"public void mouseExited(MouseEvent e) {\n }",
"public void mouseExited(MouseEvent evt) {\r\n }",
"public void mouseExited(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void mouseExited(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void mouseExited(MouseEvent e) {\r\n\t}",
"public void mouseExited(MouseEvent e) {\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}",
"public void mouseExited(MouseEvent e) {\n }",
"@Override\n public void mouseExited(final MouseEvent event){}",
"public void mouseExited(MouseEvent e) {\n\t}",
"public void mouseExited(MouseEvent e) {\n \t\t\r\n \t}",
"@Override\r\n public void mouseExited(MouseEvent e) {\n }",
"@Override\n public void mouseExited(MouseEvent e) {\n }",
"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}",
"@Override\n public void mouseExited(MouseEvent e)\n {\n }",
"@Override\n public void mouseExited(MouseEvent e)\n {\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\t\t\r\n\t}",
"@Override\n public void mouseExited(MouseEvent evt) {\n }",
"public void mouseExited(MouseEvent e)\r\n\t{\r\n\t}",
"public void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"public void mouseExited(MouseEvent e) {\n\t\t\t\r\n\t\t}",
"public void mouseExited(MouseEvent e)\n\t{\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 }",
"public void mouseExited(MouseEvent e) {\n }",
"@Override\n public void mouseExited(final MouseEvent e)\n {\n }",
"@Override\n public void mouseExited(MouseEvent e) {\n }",
"@Override\n\tpublic void mouseExited() {\n\t\t\n\t}",
"public void mouseExited(MouseEvent e) {\n\t\t}",
"void mouseExited(MouseEvent mouseEvent);",
"public void mouseExited (MouseEvent m) {}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t}",
"public void mouseExited(MouseEvent e) {\n\n }",
"@Override\n public void mouseExited(MouseEvent arg0) {\n \n }",
"@Override\n public void mouseExited(MouseEvent e) {\n\n }",
"public void mouseExited(MouseEvent arg0) {\n\n }",
"public void mouseExited(MouseEvent e) {\n\r\n\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@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 e) {\n\r\n\t\t}",
"@Override\n public void mouseExited(java.awt.event.MouseEvent e) {\n }",
"@Override\n\t\t\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n public void mouseExited(MouseEvent e){\n }",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"public void mouseExited(MouseEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseExited(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\r\n\tpublic void mouseExited(MouseEvent arg0) {\n\t}",
"@Override\n\t\tpublic void mouseExited(MouseEvent e)\n\t\t{\n\t\t\treturn;\n\t\t}",
"@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}"
] |
[
"0.8430592",
"0.8430592",
"0.8430592",
"0.8430592",
"0.8392034",
"0.8369686",
"0.83654326",
"0.83370227",
"0.8330132",
"0.83214915",
"0.831754",
"0.83147633",
"0.83147633",
"0.83147633",
"0.83075887",
"0.8296163",
"0.829375",
"0.8276653",
"0.8276599",
"0.82741654",
"0.8269806",
"0.8269806",
"0.8269806",
"0.8269806",
"0.8267461",
"0.8267461",
"0.82607543",
"0.82607543",
"0.82607543",
"0.82565796",
"0.82526004",
"0.82458967",
"0.8243021",
"0.8242577",
"0.8238025",
"0.8236885",
"0.823096",
"0.823096",
"0.8225025",
"0.8222351",
"0.82222456",
"0.82203233",
"0.82178706",
"0.82178646",
"0.8207176",
"0.82028174",
"0.8201176",
"0.82009107",
"0.81802136",
"0.81723255",
"0.8166933",
"0.8157018",
"0.8157018",
"0.8157018",
"0.8157018",
"0.8157018",
"0.81530774",
"0.814848",
"0.81483185",
"0.81483185",
"0.81483185",
"0.81483185",
"0.81483185",
"0.81455517",
"0.81410813",
"0.8139943",
"0.8136925",
"0.8136925",
"0.8136411",
"0.8135534",
"0.8133546",
"0.8133546",
"0.8133546",
"0.81313556",
"0.81313556",
"0.81313556",
"0.81313556",
"0.81313556",
"0.81273377",
"0.81264186",
"0.812406",
"0.812406",
"0.812406",
"0.812406",
"0.812406",
"0.812406",
"0.812406",
"0.812406",
"0.812406",
"0.812406",
"0.812406",
"0.8120945",
"0.8120945",
"0.8120945",
"0.8120945",
"0.8120945",
"0.8120945",
"0.8120945",
"0.8117162",
"0.8115335",
"0.81151575"
] |
0.0
|
-1
|
Returns whether this shape is hit by the point, given in this shape's parent's coords.
|
public boolean contains(RMPoint aPoint)
{
// Get line width to be used in contain test
float lineWidth = getStrokeWidth();
// If polygon or line, make line width effectively at least 8, so users will have a better shot of selecting it
if(this instanceof RMPolygonShape || this instanceof RMLineShape)
lineWidth = Math.max(8, getStrokeWidth());
// Get bounds, adjusted for line width
RMRect bounds = getBoundsInside();
bounds.inset(-lineWidth/2, -lineWidth/2);
// If point isn't even in bounds rect, just return false
if(!aPoint.inRect(bounds))
return false;
// Get shape path in bounds rect
RMPath path = getPathInBounds();
// Return whether path intersects point
return path.intersects(aPoint, lineWidth);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean testPoint(Point p){\n\t\tif(parents.contains(p)) return false;\n\t\treturn true;\n\t}",
"public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}",
"public boolean isInside(final Tuple3d point) {\n final double distance = this.distanceToPoint(point);\n\n return IntersectionUtils.isGreaterOrEqual(distance, 0.0);\n }",
"public boolean pointInside(Point2D p) {\n AffineTransform fullTransform = this.getFullTransform();\n AffineTransform inverseTransform = null;\n try {\n inverseTransform = fullTransform.createInverse();\n } catch (NoninvertibleTransformException e) {\n e.printStackTrace();\n }\n Point2D newPoint = (Point2D)p.clone();\n inverseTransform.transform(newPoint, newPoint);\n return rect.contains(newPoint); \n }",
"public boolean contains(Point p) {\n\t\tif ((p.y > (super.getY() - super.height/2)) && (p.x > (super.getX() - width/2)) && (p.y < (super.getY() + super.height/2 + super.height)) && (p.x < (super.getX() - width/2 + super.width))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}",
"public boolean contains(Point mousePt) {\r\n\t\treturn (p.x <= mousePt.x && mousePt.x <= (p.x + width + 1)\t&&\tp.y <= mousePt.y && mousePt.y <= (p.y + height + 1));\r\n\t}",
"public boolean contains(Point mousePt) {\r\n\t\treturn (x <= mousePt.x && mousePt.x <= (x + width + 1)\t&&\ty <= mousePt.y && mousePt.y <= (y + height + 1));\r\n\t}",
"public boolean containsPoint( Point p ) {\r\n return (( p.x > drawx-getWidth()/2) && ( p.x < drawx+getWidth()/2) \r\n && ( p.y > drawy-getHeight()/2) && ( p.y < drawy+getHeight()/2));\r\n }",
"public abstract boolean containsPoint(int x, int y);",
"public boolean containsPoint(Point p) {\n \treturn\n \t\tp.x >= x &&\n \t\tp.x <= x + width &&\n \t\tp.y >= y &&\n \t\tp.y <= y + height;\n }",
"public boolean containsPoint(Point p) {\n\t\treturn (p.x >= x && p.x <= (x + WIDTH)\n\t\t\t\t&& p.y >= y && p.y <= (y + HEIGHT));\n\t}",
"public boolean collidepoint(float mX, float mY){\n return super.shape.contains(mX, mY);\n //return isPressed;\n }",
"public boolean contains(final Coords point)\r\n {\r\n return toRectangle().contains(point.toPoint());\r\n }",
"public boolean contains(Point p);",
"public boolean pointIsIntersecting(PointF point, RectF other){//also checks if one contains the other\n return RectF.intersects(other,new RectF(point.x, point.y, point.x, point.y));//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }",
"public boolean collidePoint(float mX, float mY){\n return super.shape.contains(mX,mY);\n }",
"@Override\n\tpublic boolean contains(Point pPtrRelPrnt, Point pCmpRelPrnt) {\n\t\tPoint loc = this.getLocation();\n\t\tint px = (int) pPtrRelPrnt.getX();\n\t\tint py = (int) pPtrRelPrnt.getY();\n\t\tint xLoc = (int) (pCmpRelPrnt.getX() + loc.getX());\n\t\tint yLoc = (int) (pCmpRelPrnt.getY() + loc.getY());\n\t\t\n\t\tif ((px >= xLoc) && (px <= xLoc + width) && (py >= yLoc) && (py <= yLoc + height)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"abstract public boolean isPickedBy(Point p);",
"public boolean contains(PointF point)\n {\n return contains(point.x, point.y);\n }",
"public abstract boolean isHit(int x, int y);",
"@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tboolean isIn = false;\n\t\tif (_shape != null) {\n\t\t\tisIn = _shape.contains(pnt);\n\t\t}\n\t\treturn isIn;\n\t}",
"public boolean contains(Point point) {\n\t\treturn (point.x >= getX1() && point.y >= getY1() && point.x < getX2() && point.y < getY2());\n\t}",
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"public boolean contains(Point point) {\n return this.center.distance(point) <= this.r;\n }",
"protected boolean isHit(Coordinate coordinate) {\n\t\t// Due to override of \"equals\" method, \"contains\" only checks whether x-\n\t\t// and y-coordinate are equal.\n\t\t// Other properties of the coordinate object are ignored.\n\t\tif (shipPositions.contains(coordinate)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean containsPoint(Point x) {\n return x.getX() >= center.getX() - sideLength/2 && x.getX() <= center.getX() + sideLength/2\n && x.getY() >= center.getY() -sideLength/2 && x.getY() <= center.getY() +sideLength/2;\n }",
"public boolean onPosition(Point p)\n {\n for(Point pellet : pellets) // iterate over all the pellets\n {\n if (pellet.equals(p))\n return true;\n }\n return false;\n }",
"public abstract boolean pointerInside(int iPosX, int iPosY);",
"public boolean isIn(Point p)\n {\n \n \treturn isIn(p.x, p.y);\n \t\n //\tboolean cond1 = false;\n // boolean cond2 = false; \n // cond1 = (p.x>=rettangoloX)&&(p.x<=(rettangoloX+larghezza));\n // cond2 = (p.y>=rettangoloY)&&(p.y<=(rettangoloY+altezza));\n // return (cond1&&cond2);\n }",
"public boolean isAt(Point punto) {\r\n Point inner = toInnerPoint(punto);\r\n for (Point block : innerPiece.getPoints())\r\n \tif (block.X() == inner.X() && block.Y() == inner.Y())\r\n \t\treturn true;\r\n return false;\r\n }",
"public boolean contains(Point point) {\n\n\t\tif (Math.abs(center.getX() - point.getX()) <= (width / 2) && (Math.abs(center.getY() - point.getY()) <= height /2)) {\n\n\t\t\treturn true;\n\t\t\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean contains(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Input point is null\");\n if (isEmpty())\n return false;\n boolean isX = true;\n Node curr = root;\n int cmp;\n while (true) {\n if (curr.point.equals(p))\n return true;\n if (isX)\n cmp = Point2D.X_ORDER.compare(p, curr.point);\n else\n cmp = Point2D.Y_ORDER.compare(p, curr.point);\n if (cmp < 0) {\n if (curr.left == null)\n return false;\n curr = curr.left;\n }\n else {\n if (curr.right == null)\n return false;\n curr = curr.right;\n }\n isX = !isX;\n }\n }",
"public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException();\n if (root == null) return false;\n\n return containsSubMethod(p, root);\n }",
"boolean insideSprite(Sprite s){\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(s._getCenter(),this._getCenter()) <\n s._hitbox[0].x - this._hitbox[0].x;\n }\n return _insideCirc(_getPoints(), s._getCenter(), s._hitbox[0].x);\n }\n if (s._hitbox.length == 1) {\n // TODO: check if center is in middle but NOT touching any side\n // (will want to adapt existing _circPoly to separate side-touching\n // code into individual method)\n return false;\n }\n return _insidePts(this._getPoints(), s._getPoints());\n }",
"public boolean containsPoint(Point pt)\n {\n\n // E[O(log(n))]\n if(_lineBVH != null)\n {\n throw new Error(\"Implement me Please!\");\n }\n else\n {\n // O(n).\n return _point_in_polygon_test(pt);\n }\n }",
"boolean touchingPoint(float x, float y) {\n if (_hitbox.length == 1) return dist(x,y,_hitboxCenter.x, _hitboxCenter.y) < _hitbox[0].x;\n return _ptPoly(new PVector(x,y), _getPoints());\n }",
"public boolean pointWhithin(Point point) {\n\t\treturn false;\n\t}",
"public boolean contains(Point2D p)\n {\n if (p != null && !isEmpty())\n {\n Node current = root;\n while (current != null)\n {\n if (current.isVertical()) // compare by x\n {\n if (p.x() < current.getPoint().x())\n {\n current = current.getLeft();\n }\n else if (p.x() > current.getPoint().x())\n {\n current = current.getRight();\n }\n else // equal x, now compare y\n {\n if (p.y() == current.getPoint().y())\n {\n return true;\n }\n }\n }\n else // compare by y\n {\n if (p.y() < current.getPoint().y())\n {\n current = current.getLeft();\n }\n else if (p.y() > current.getPoint().y())\n {\n current = current.getRight();\n }\n else // equal y, now compare x\n {\n if (p.x() == current.getPoint().x())\n {\n return true;\n }\n }\n }\n }\n }\n return false;\n }",
"public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Attempted to search for null query\");\n return isItThisNode(root, p);\n }",
"protected boolean isInside(int x, int y){\n if(x <= super.getLocationX())\n return false;\n\n if(x >= (super.getLocationX() + super.getWidth() - 1))\n return false;\n\n if(y <= super.getLocationY())\n return false;\n\n if(y >= (super.getLocationY() + super.getHeight() - 1))\n return false;\n\n //return true if inside\n return true;\n\n }",
"public boolean contains(GJPoint2D p) {\n\t\treturn this.contains(p.x(), p.y());\n\t}",
"@Override\n public boolean isPointEnclosed(Point point) {\n Point bottomRightCorner = findBottomRightCornerPoint();\n Point topLeftCorner = findTopLeftCornerPoint();\n if (((point.getX() >= origin.getX()) && (point.getX() <= bottomRightCorner.getX())) &&\n ((point.getY() >= origin.getY()) && (point.getY() <= topLeftCorner.getY()))) {\n return true;\n }\n return false;\n }",
"public boolean includesPoint(Point p) {\n double ABC = getArea();\n double PAB = new Triangle(p, p1, p2).getArea();\n double PBC = new Triangle(p, p2, p3).getArea();\n double PAC = new Triangle(p, p1, p3).getArea();\n return abs(ABC - (PAB + PBC + PAC)) < 0.000000001;\n }",
"public boolean contains(Point2D.Double p) {\n if(p.x <= middle.x + length/2.0 &&\n p.x >= middle.x - length/2.0 &&\n p.y <= middle.y + length/2.0 &&\n p.y >= middle.y - length/2.0) return true;\n else return false;\n }",
"public boolean inside(Point p) {\n\t\tif (p.getX() < boundingRect.getX() || p.getY() < boundingRect.getY()) return false;\n\t\tif (p.getX() > boundingRect.getX() + boundingRect.getW() || \n\t\t p.getY() > boundingRect.getY() + boundingRect.getH()) return false;\n\n\t\t// Create a line from the point to the left\n\t\tLine l = new Line(p.getX(), p.getY(), p.getX() - boundingRect.getW(), p.getY());\n\n\t\t// Count intersections\n\t\tint count= 0;\t\t\n\t\tfor(int i=0; i<lines.size(); i++ ) {\n\t\t\tif (lines.get(i).intersectsAt(l) != null) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n // We are inside if the number of intersections is odd\n\t\treturn count%2 == 1;\n\t}",
"public boolean intersects(Point other_point) {\n\t\tif (distance(other_point.x, other_point.y) < this.radius + other_point.radius) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean isOverRect(Point p) {\n Rectangle r = (Rectangle)component.rect.clone();\n r.grow(PROX_DIST, PROX_DIST);\n return r.contains(p);\n }",
"public boolean pointInside(Point2D p) throws NoninvertibleTransformException {\n AffineTransform fullTransform = this.getFullTransform();\n AffineTransform inverseTransform = null;\n inverseTransform = fullTransform.createInverse();\n Point2D newP = (Point2D)p.clone();\n inverseTransform.transform(newP, newP);\n return elp.contains(newP);\n }",
"public boolean canHit(Figure entity) {\n return true;\n }",
"public boolean contains(Point point) {\n\t\treturn false;\r\n\t}",
"public boolean isPointInside(int x, int y) {\r\n if (Integer.compare(x, _xLeft) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(x, _xRight) >= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yTop) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yBottom) >= 0) {\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"public boolean isHit(Point p){\n if(super.getLocation().equals(p)){\n nunMissiles = 0;\n return true;\n } else {\n return false;\n }\n }",
"private boolean checkSurroundingOfPoint(Point p) {\n\t\tPoint check = new Point();\n\t\tcheck.x\t\t= p.x;\n\t\tcheck.y \t= p.y;\n\t\t\n\t\tfor(int y = -1; y <= 1; y++) {\n\t\t\tcheck.y += y;\n\t\t\tfor(int x = -1; x <= 1; x++) {\n\t\t\t\tcheck.x += x;\n\t\t\t\tif(occupiedPositions.contains(check)) return false;\n\t\t\t\t//restore values\n\t\t\t\tcheck.x\t= p.x;\n\t\t\t}\n\t\t\t//restore values\n\t\t\tcheck.y = p.y;\n\t\t}\n\t\treturn true;\n\t}",
"@JsMethod(name = \"interiorContainsPoint\")\n public boolean interiorContains(double p) {\n return p > lo && p < hi;\n }",
"Boolean CheckIfInside(float xVal, float yVal) {\r\n double distance = Math.sqrt((this.x-xVal)*(this.x-xVal) + (this.y-yVal)*(this.y-yVal));\r\n return (distance <= this.radius);\r\n }",
"public boolean contains(Point2D p) {\n checkNull(p);\n if (size == 0) {\n return false;\n } else {\n Node n = root;\n while (n != null) {\n double cmp = comparePoints(p, n);\n if (cmp < 0) {\n n = n.leftOrBot;\n } else if (cmp == 0) {\n return true;\n } else {\n n = n.rightOrTop;\n }\n }\n }\n return false;\n }",
"boolean hasParent();",
"boolean hasParent();",
"@JsMethod(name = \"containsPoint\")\n public boolean contains(double p) {\n return p >= lo && p <= hi;\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 }",
"@Override\n\tpublic boolean isPointEnclosed(Point p)\n\t{\n\t\tdouble[] centre = circleCentre();\n\t\tdouble distance = Math.sqrt((centre[0] - p.x)*(centre[0] - p.x) + (centre[1] - p.y)*(centre[1] - p.y));\n\t\t\n\t\tif(distance <= radius)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"public boolean containsPoint( double px, double py ) {\r\n return (( px > drawx-getWidth()/2) && ( px < drawx+getWidth()/2) \r\n && ( py > drawy-getHeight()/2) && ( py < drawy+getHeight()/2));\r\n }",
"public boolean contains(Point2D p) \r\n\t{\r\n\t\treturn get(root, p) != null;\r\n\t}",
"public boolean fits(Point p) {\n\t\treturn boundary.contains(p);\n\t}",
"@Override\n\tpublic boolean isInside(float x, float y, float z) {\n\t\treturn false;\n\t}",
"public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n return contains(this.root, p);\n }",
"public boolean locatePoint(Point2D p, VisualItem item) {\n Shape s = getShape(item);\n if ( s == null ) {\n return false;\n } else {\n double width = Math.max(2, getLineWidth(item));\n double halfWidth = width/2.0;\n \n EdgeItem edge = (EdgeItem)item;\n CallEdge callEdge = ReacherDisplay.Instance.getCallEdge(item);\n \n boolean retVal;\n //if (callEdge.isBranching())\n //{\n \tretVal = line1.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width) || \n \t\t\tline2.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width);\n /*}\n else\n {\n \tretVal = curve.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width);\n } */ \n return retVal;\n }\n }",
"private boolean isItThisNode(KdNode kdNode, Point2D p) {\n int comparison;\n\n if (kdNode == null) return false;\n if (kdNode.point.equals(p))\n return true;\n\n if (kdNode.dimension) { // if this KdNode is vertical (root.dimension == true)\n comparison = Double.compare(p.x(), kdNode.point.x());\n if (comparison == 0) comparison = Double.compare(p.y(), kdNode.point.y());\n }\n else { // if this KdNode is horizontal (root.dimension == false)\n comparison = Double.compare(p.y(), kdNode.point.y());\n if (comparison == 0) comparison = Double.compare(p.x(), kdNode.point.x());\n }\n\n if (comparison > 0) {\n if (kdNode.right == null) {\n // dead end when searching for where point should be, it is not in the set\n return false;\n }\n else {\n return isItThisNode(kdNode.right, p);\n }\n }\n else { // comparison < 0\n if (kdNode.left == null) {\n // dead end when searching for where point should be, it is not in the set\n return false;\n }\n else {\n return isItThisNode(kdNode.left, p);\n }\n }\n }",
"public boolean situatedInside(double x, double y) {\n if(y>this.bottomleft.x && y<this.topright.x && x <this.topright.y && x > this.bottomleft.y)\n return true;\n else\n return false;\n }",
"public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}",
"private boolean contains(Point2D p, Node x) {\n if (x == null) return false;\n if (x.p.equals(p)) return true;\n if ((x.vertical && p.x() < x.p.x()) || (!x.vertical && p.y() < x.p.y())) {\n return contains(p, x.left);\n }\n else return contains(p, x.right);\n }",
"public boolean isWithinObject(int x, int y)\n {\n if( x > coX-Xsize/2 &&\n x < coX+Xsize/2 &&\n y > coY-Ysize/2 &&\n y < coY+Ysize/2 )\n return true;\n else\n return false;\n }",
"public boolean isParent();",
"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}",
"public boolean contains(Point2D p) {\n if (isEmpty()) return false;\n return search1(root, p);\n }",
"public boolean contains(Coord c) {\n\t\treturn getAWTRectangle().contains(c.getAWTPoint());\n\t}",
"boolean contains(double x, double y) {\r\n\t\t//cordinate of the left edge\r\n\t\tdouble xLeftEdge = this.getX() - this.width / 2;\r\n\t\t//cordinate of the right edge\r\n\t\tdouble xRightEdge = this.getX() + this.width / 2;\r\n\t\t////cordinate of the top edge\r\n\t\tdouble yTopEdge = this.getY() + this.height / 2;\r\n\t\t//cordinate of the bottom edge\r\n\t\tdouble yBottomEdge = this.getY() - this.height / 2;\r\n\r\n\t\t//if the point is between the edges it is inside the rectangle\r\n\t\treturn (x < xRightEdge) && (x > xLeftEdge) && (y < yTopEdge)\r\n\t\t\t\t&& (y > yBottomEdge) ? true : false;\r\n\t}",
"@Override\n public boolean intersectsAt(Point point){\n if (planeImage.getBoundingBoxAt(currPos).intersects(point)){\n return true;\n }\n else\n return false;\n }",
"public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"input p is null\");\n return contains(p, root);\n }",
"@Override\n public boolean isPointInPath(double x, double y) {\n return graphicsEnvironmentImpl.isPointInPath(canvas, x, y);\n }",
"public boolean contains(Point2D p) \n\t {\n\t\t if(p==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t if(root==null)\n\t\t\t return false;\n\t\t return contains(root,p,true);\n\t }",
"public boolean contains(Point2D p) {\n return mPoints.contains(p);\n }",
"public static boolean isInside(World worldIn, BlockPos pos, NPCHouse npch)\n\t{\n\t\tint x = pos.getX();\n\t\tint y = pos.getY();\n\t\tint z = pos.getZ();\n\t\tint far_east = npch.getCorner(1).getX();\n\t\tint far_west = npch.getCorner(0).getX();\n\t\tint far_up = npch.getCorner(0).getY();\n\t\tint far_down = npch.getCorner(4).getY();\n\t\tint far_north = npch.getCorner(0).getZ();\n\t\tint far_south = npch.getCorner(2).getZ();\n\t\tif ((x <= far_east) && (x >= far_west))\n\t\t{\n\t\t\tif ((y <= far_up) && (y >= far_down))\n\t\t\t{\n\t\t\t\tif ((z <= far_south) && (z >= far_north))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean contains(final Point2d p){\n return this.getDistance(p) < 0.0000000001;\n }",
"public boolean isInRect(Point p) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\tif (Line.isBetween2Lines(AB, CD, p) && Line.isBetween2Lines(AD, BC, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isPointIncluded() {\n return geometry.almostZero(distance);\n }",
"public boolean intersects(BaseGameObject other) {\r\n return (other.getPosx() - this.getPosx())\r\n * (other.getPosx() - this.getPosx())\r\n + (other.getPosy() - this.getPosy())\r\n * (other.getPosy() - this.getPosy())\r\n < (other.bound + this.bound) * (other.bound + this.bound);\r\n }",
"public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"contains: Point2D is null\");\n return containSearch(root, p, true);\n }",
"public boolean isPositionReached(Point p) {\n return isPointReached(p) && isAngleReached(p);\n }",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"public boolean isHit(Collideable otherCol){\n return this.collideable.getHitX() - otherCol.getHitX() < 50\n && this.collideable.getHitX() - otherCol.getHitX() > -50\n && this.collideable.getHitY() - otherCol.getHitY() > -30\n && this.collideable.getHitY() - otherCol.getHitY() < 30;\n }",
"public Boolean isParentable();",
"private boolean isWithinBounds(Point3D point) {\n // Check if point is above min bounds\n if (point.getX() < minBounds.getX() || point.getY() < minBounds.getY() || point.getZ() < minBounds.getZ()) {\n return false;\n }\n // Check if point is below max bounds\n if (point.getX() > maxBounds.getX() || point.getY() > maxBounds.getY() || point.getZ() > maxBounds.getZ()) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic boolean insideObject(Vector3D p)\n\t{\n\t\treturn (inverse\n\t\t\t\t?(centre.getDifferenceWith(p).getModSquared() > MyMath.square(radius))\n\t\t\t\t:(centre.getDifferenceWith(p).getModSquared() < MyMath.square(radius))\n\t\t\t);\n\t}",
"public boolean isInside(int x, int y) {\r\n if (this.state == 0) {\r\n if ((x >= this.x && x <= (this.x +width)) &&\r\n y >= this.y && y <= (this.y +height)) {\r\n return true;\r\n }\r\n } else if (this.state == 1) {\r\n if ((x <= this.x && x >= (this.x - height)) &&\r\n y >= this.y && y <= (this.y + width)) {\r\n return true;\r\n }\r\n } else if (this.state == 2) {\r\n if ((x <= this.x && x >= (this.x - width)) &&\r\n y <= this.y && y >= (this.y - height)) {\r\n return true;\r\n }\r\n } else if (this.state == 3) {\r\n if ((x >= this.x && x <= (this.x + height)) &&\r\n y <= this.y && y >= (this.y - width)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean containsLocation(Location p) {\n\t\tint r = p.getRow();\n\t\tint c = p.getCol();\n\t\tint offR = r - topLeft.getRow();\n\t\tint offC = c - topLeft.getCol();\n\t\treturn 0 <= offR && offR < length && 0 <= offC && offC < width;\n\t}",
"boolean isPointEnclosed(Point p);",
"public boolean contains(Point2D p) {\n return pointSet.contains(p);\n }",
"public boolean touches(MyShape c) {\n\t\tint deltaX = Math.abs((c.x + c.width / 2) - (x + width / 2)),\n\t\t\t\tdeltaY = Math.abs((c.y + c.height / 2) - (y + height / 2)), \n\t\t\t\toverlapX = c.width / 2 + width / 2, \n\t\t\t\toverlapY = c.height / 2 + height / 2; // this would simply be\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// height if both were\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the same size\n\t\t\tif (deltaX >= overlapX)\n\t\t\t\treturn false;\n\t\t\tif (deltaY >= overlapY)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}"
] |
[
"0.70620406",
"0.68162584",
"0.68052155",
"0.680151",
"0.68014306",
"0.6676941",
"0.6626012",
"0.660447",
"0.6587147",
"0.6582913",
"0.65756285",
"0.6558916",
"0.65431416",
"0.65154946",
"0.64925665",
"0.64609325",
"0.6433642",
"0.6429451",
"0.63728124",
"0.63658714",
"0.63530993",
"0.6351411",
"0.63493055",
"0.633001",
"0.63229966",
"0.6294228",
"0.6294124",
"0.6291864",
"0.6282148",
"0.6273388",
"0.6267621",
"0.62508726",
"0.62379855",
"0.62355584",
"0.6235241",
"0.62013483",
"0.6198966",
"0.61885494",
"0.6184771",
"0.6173321",
"0.6158727",
"0.615467",
"0.6143643",
"0.61429256",
"0.6132834",
"0.6126846",
"0.61026716",
"0.6088518",
"0.6086499",
"0.6073186",
"0.6071468",
"0.6069637",
"0.6063027",
"0.60600495",
"0.60597587",
"0.6050948",
"0.6046971",
"0.6030106",
"0.6030106",
"0.60127914",
"0.6009778",
"0.600726",
"0.6002527",
"0.5997157",
"0.5985523",
"0.59815264",
"0.59755975",
"0.5968575",
"0.5963741",
"0.59588295",
"0.5949561",
"0.5940769",
"0.5921321",
"0.59196025",
"0.59124136",
"0.591004",
"0.5906049",
"0.59045625",
"0.59027576",
"0.5896534",
"0.58962864",
"0.58596593",
"0.5854915",
"0.58439785",
"0.58357036",
"0.58241355",
"0.58181846",
"0.58059627",
"0.5801688",
"0.5799181",
"0.5790661",
"0.5788235",
"0.5786595",
"0.5784607",
"0.57680905",
"0.5763418",
"0.57544637",
"0.57533956",
"0.5751675",
"0.5748364"
] |
0.6407838
|
18
|
Returns whether this shape is hit by the path, given in this shape's parent's coords.
|
public boolean intersects(RMPath aPath)
{
// Get line width to be used in intersects test
float lineWidth = getStrokeWidth();
// Get bounds, adjusted for line width
RMRect bounds = getBoundsInside();
bounds.inset(-lineWidth/2, -lineWidth/2);
// If paths don't even intersect bounds, just return false
if(!aPath.getBounds2D().intersectsRectEvenIfEmpty(bounds))
return false;
// Get path in bounds
RMPath path = getPathInBounds();
// Return whether path intersects given path
return path.intersects(aPath, lineWidth);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean isViewing() { RMShape p = getParent(); return p!=null && p.isViewing(); }",
"public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}",
"@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tboolean isIn = false;\n\t\tif (_shape != null) {\n\t\t\tisIn = _shape.contains(pnt);\n\t\t}\n\t\treturn isIn;\n\t}",
"public boolean testPoint(Point p){\n\t\tif(parents.contains(p)) return false;\n\t\treturn true;\n\t}",
"public boolean isAncestor(RMShape aShape) { return aShape==_parent || (_parent!=null && _parent.isAncestor(aShape)); }",
"boolean hasParent();",
"boolean hasParent();",
"public boolean isPathCrossing(String path) {\n // keep track of x and y position \n int x = 0;\n int y = 0;\n // Hashset to hold cordinates \n HashSet<String> known = new HashSet<String>();\n // add original\n known.add(\"0,0\");\n // go through each char in the string\n for(int i = 0; i < path.length(); ++i){\n if(path.charAt(i) == 'N') ++x;\n \n else if(path.charAt(i) == 'S') --x;\n \n else if(path.charAt(i) == 'W') --y;\n \n else if(path.charAt(i) == 'E') ++y;\n \n String loc = x + \",\" + y;\n // if it is already there, return true\n if(known.contains(loc)) return true;\n // otherwise add and keep going\n known.add(loc);\n }\n // no known cordinates were found so return false\n return false;\n }",
"@Override\n public boolean isPointInPath(double x, double y) {\n return graphicsEnvironmentImpl.isPointInPath(canvas, x, y);\n }",
"public boolean contains(Shape shape)\n {\n // checks if the child is in the children list\n return children.contains(shape);\n }",
"public static boolean isPathInParent(IPath path) {\r\n\t\t// first see if any segments are \"..\" at all\r\n\t\tfor (int i = 0; i < path.segmentCount(); i++) {\r\n\t\t\tif (path.segment(i).equals(\"..\")) { //$NON-NLS-1$\r\n\t\t\t\t// comprehensive check, canonicalizing\r\n\t\t\t\tpath = new Path(path.toString());\r\n\t\t\t\tif (path.segmentCount() > 0 && path.segment(0).equals(\"..\")) { //$NON-NLS-1$\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isParent();",
"public boolean hasPath() {\n return carrier.findPath(getCarrierTarget()) != null;\n }",
"@Override\n\tpublic boolean contains(Point pPtrRelPrnt, Point pCmpRelPrnt) {\n\t\tPoint loc = this.getLocation();\n\t\tint px = (int) pPtrRelPrnt.getX();\n\t\tint py = (int) pPtrRelPrnt.getY();\n\t\tint xLoc = (int) (pCmpRelPrnt.getX() + loc.getX());\n\t\tint yLoc = (int) (pCmpRelPrnt.getY() + loc.getY());\n\t\t\n\t\tif ((px >= xLoc) && (px <= xLoc + width) && (py >= yLoc) && (py <= yLoc + height)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean hasPath()\n\t{\n\t\tPathFinder as = new PathFinder(getGrid(), 625);\n \treturn (as.findPath(this, getGrid().getUser().getLocation().getRow(), getGrid().getUser().getLocation().getCol(),false).getLength() != 0);\n\n\t}",
"boolean insideSprite(Sprite s){\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(s._getCenter(),this._getCenter()) <\n s._hitbox[0].x - this._hitbox[0].x;\n }\n return _insideCirc(_getPoints(), s._getCenter(), s._hitbox[0].x);\n }\n if (s._hitbox.length == 1) {\n // TODO: check if center is in middle but NOT touching any side\n // (will want to adapt existing _circPoly to separate side-touching\n // code into individual method)\n return false;\n }\n return _insidePts(this._getPoints(), s._getPoints());\n }",
"protected boolean isHit(Coordinate coordinate) {\n\t\t// Due to override of \"equals\" method, \"contains\" only checks whether x-\n\t\t// and y-coordinate are equal.\n\t\t// Other properties of the coordinate object are ignored.\n\t\tif (shipPositions.contains(coordinate)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public abstract boolean isHit(int x, int y);",
"public boolean hasHitShip() {\n\t\t// see if the lines of the ship have intersected with the lines of the\n\t\t// asteroid\n\t\treturn linesIntersect();\n\n\t}",
"public boolean inGoalRegion() {\n return position >= GOAL_POSITION;\n }",
"public boolean hasPath() {\n try {\n aStarPath();\n } catch (PathNotFoundException e){\n return false;\n }\n return true;\n }",
"public boolean isPathToCheese(Maze maze, List<Direction> path);",
"public boolean contains(Point p) {\n\t\tif ((p.y > (super.getY() - super.height/2)) && (p.x > (super.getX() - width/2)) && (p.y < (super.getY() + super.height/2 + super.height)) && (p.x < (super.getX() - width/2 + super.width))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean pointInside(Point2D p) {\n AffineTransform fullTransform = this.getFullTransform();\n AffineTransform inverseTransform = null;\n try {\n inverseTransform = fullTransform.createInverse();\n } catch (NoninvertibleTransformException e) {\n e.printStackTrace();\n }\n Point2D newPoint = (Point2D)p.clone();\n inverseTransform.transform(newPoint, newPoint);\n return rect.contains(newPoint); \n }",
"public Boolean isParentable();",
"public boolean isParentOf(FcgLevel other) {\n\t\tif (isSource()) {\n\t\t\treturn other.getDistance() == 1;\n\t\t}\n\n\t\tif (direction != other.direction) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// e.g., row 2 - row 1 = 1\n\t\treturn other.getDistance() - getDistance() == 1;\n\t}",
"public boolean isPathAbsorbing(Path<T> path) {\n try { return cost(path) < 0.0; }\n catch(LinkNotFoundException | NodeNotFoundException e) { return true; }\n }",
"public boolean passedBy(Line2D path) {\n\t\tfor (int i = 0; i < coordinates.size() - 1; i++) {\n\t\t\tvar p1 = coordinates.get(i);\n\t\t\tvar p2 = coordinates.get(i + 1);\n\t\t\tLine2D buildingEdge = new Line2D.Double(p1.getLng(), p1.getLat(), p2.getLng(), p2.getLat()); // x1, y1, x2, y2 \n\t\t\tif (buildingEdge.intersectsLine(path)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean contains(Point mousePt) {\r\n\t\treturn (p.x <= mousePt.x && mousePt.x <= (p.x + width + 1)\t&&\tp.y <= mousePt.y && mousePt.y <= (p.y + height + 1));\r\n\t}",
"public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException();\n if (root == null) return false;\n\n return containsSubMethod(p, root);\n }",
"public boolean contains(Point mousePt) {\r\n\t\treturn (x <= mousePt.x && mousePt.x <= (x + width + 1)\t&&\ty <= mousePt.y && mousePt.y <= (y + height + 1));\r\n\t}",
"public boolean hasContainingParentId() {\n return fieldSetFlags()[1];\n }",
"public boolean hasParent() {\r\n if (parent == null) \r\n return false;\r\n \r\n return true;\r\n }",
"public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }",
"public boolean collidepoint(float mX, float mY){\n return super.shape.contains(mX, mY);\n //return isPressed;\n }",
"public boolean hasPathTo(Ray ray, WorldObject object) {\n\t\t\n\t\tHit objHit = object.intersect(ray);\n\t\t\n\t\tfor(int i = 0; i < scene.objects.size(); i++) {\n\t\t\tWorldObject curObject = scene.objects.get(i);\n\t\t\tif(curObject == object)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tHit hit = curObject.intersect(ray);\n\t\t\tif(hit.distance < objHit.distance)\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 hasParent() {\n return getParent() != null;\n }",
"public final boolean isTouching(Shape shape) {\n\t\t// TODO: write this function.\n\t\treturn false;\n\t}",
"public boolean isInFrontOf(Shape other)\n {\n return parent != null && parent.isInFrontOf(this, other);\n }",
"public boolean isInRect(Point p) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\tif (Line.isBetween2Lines(AB, CD, p) && Line.isBetween2Lines(AD, BC, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}",
"public boolean touches(MyShape c) {\n\t\tint deltaX = Math.abs((c.x + c.width / 2) - (x + width / 2)),\n\t\t\t\tdeltaY = Math.abs((c.y + c.height / 2) - (y + height / 2)), \n\t\t\t\toverlapX = c.width / 2 + width / 2, \n\t\t\t\toverlapY = c.height / 2 + height / 2; // this would simply be\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// height if both were\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the same size\n\t\t\tif (deltaX >= overlapX)\n\t\t\t\treturn false;\n\t\t\tif (deltaY >= overlapY)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}",
"public boolean hasSinglePath() {\n switch (children.size()) {\n case 0:\n return true;\n case 1:\n return children.get(0).hasSinglePath();\n default:\n return false;\n }\n }",
"public boolean shouldExecute() {\n\t\t\tEntityMoveHelper entitymovehelper = this.parentEntity.getMoveHelper();\n\n\t\t\tif (!entitymovehelper.isUpdating()) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tdouble d0 = entitymovehelper.getX() - this.parentEntity.posX;\n\t\t\t\tdouble d1 = entitymovehelper.getY() - this.parentEntity.posY;\n\t\t\t\tdouble d2 = entitymovehelper.getZ() - this.parentEntity.posZ;\n\t\t\t\tdouble d3 = d0 * d0 + d1 * d1 + d2 * d2;\n\t\t\t\treturn d3 < 1.0D || d3 > 3600.0D;\n\t\t\t}\n\t\t}",
"public boolean collidePoint(float mX, float mY){\n return super.shape.contains(mX,mY);\n }",
"public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}",
"public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }",
"public boolean hasPositionCall() {\n if (_left.hasPositionCall()) return true;\n if (_right.hasPositionCall()) return true;\n return false;\n }",
"public boolean IsParent(KDNode parent) {\n\t\t\n\t\tKDNode ptr = this;\n\t\twhile(ptr != null) {\n\t\t\tif(ptr == parent) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tptr = ptr.parent_ptr;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"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 }",
"public boolean contains(RMPoint aPoint)\n{\n // Get line width to be used in contain test\n float lineWidth = getStrokeWidth();\n \n // If polygon or line, make line width effectively at least 8, so users will have a better shot of selecting it\n if(this instanceof RMPolygonShape || this instanceof RMLineShape)\n lineWidth = Math.max(8, getStrokeWidth());\n \n // Get bounds, adjusted for line width\n RMRect bounds = getBoundsInside();\n bounds.inset(-lineWidth/2, -lineWidth/2);\n\n // If point isn't even in bounds rect, just return false\n if(!aPoint.inRect(bounds))\n return false;\n \n // Get shape path in bounds rect\n RMPath path = getPathInBounds();\n \n // Return whether path intersects point\n return path.intersects(aPoint, lineWidth);\n}",
"@Override\n public boolean accept(Path path) {\n if (null == path) {\n return false;\n }\n\n // no parent?\n Path parent = path.getParent();\n if (null == parent) {\n return false;\n }\n\n String regionName = path.getName();\n if (null == regionName) {\n return false;\n }\n\n if (!regionName.toLowerCase(Locale.ROOT).matches(\"[0-9a-f]+\")) {\n return false;\n }\n return true;\n }",
"public static boolean visibleInParents(Node node) {\n // TODO: Add overflow check (if overflow support will be added).\n List<Node> parentList = new ArrayList<>();\n for (Node parent = node.parent(); parent != null; parent = parent.parent()) {\n parentList.add(parent);\n }\n\n if (!parentList.isEmpty()) {\n var pos = new Vector2f(0, 0);\n var rect = new Vector2f(0, 0);\n var absolutePosition = node.box().borderBoxPosition();\n\n Vector2fc currentSize = node.box().contentSize();\n Vector2fc currentPos = node.box().contentPosition();\n\n float lx = absolutePosition.x;\n float rx = absolutePosition.x + currentSize.x();\n float ty = absolutePosition.y;\n float by = absolutePosition.y + currentSize.y();\n\n // check top parent\n\n Vector2f parentPaddingBoxSize = node.parent().box().paddingBoxSize();\n if (currentPos.x() > parentPaddingBoxSize.x\n || currentPos.x() + currentSize.x() < 0\n || currentPos.y() > parentPaddingBoxSize.y\n || currentPos.y() + currentSize.y() < 0) {\n return false;\n }\n if (parentList.size() != 1) {\n // check from bottom parent to top parent\n for (int i = parentList.size() - 1; i >= 1; i--) {\n Node parent = parentList.get(i);\n pos.add(parent.box().contentPosition());\n rect.set(pos).add(parent.box().contentSize());\n\n if (lx > rect.x || rx < pos.x || ty > rect.y || by < pos.y) {\n return false;\n }\n }\n }\n }\n return true;\n }",
"protected boolean hasParentSteps(CoreOperation operation) {\n for (Expression exp : operation.getArguments()) {\n if (exp instanceof LocationPath) {\n return hasParentSteps((LocationPath) exp);\n } else if (exp instanceof CoreOperation) {\n return hasParentSteps((CoreOperation) exp);\n } else {\n logDebug(\"{} is not a location Path or a core operation to check for parent steps\", operation);\n }\n }\n return false;\n }",
"public boolean canHit(Figure entity) {\n return 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 isHit(Point p){\n if(super.getLocation().equals(p)){\n nunMissiles = 0;\n return true;\n } else {\n return false;\n }\n }",
"public boolean hasParent() {\n return internalGroup.hasParent();\n }",
"public boolean containsLocation(Location p) {\n\t\tint r = p.getRow();\n\t\tint c = p.getCol();\n\t\tint offR = r - topLeft.getRow();\n\t\tint offC = c - topLeft.getCol();\n\t\treturn 0 <= offR && offR < length && 0 <= offC && offC < width;\n\t}",
"protected boolean isInside(int x, int y){\n if(x <= super.getLocationX())\n return false;\n\n if(x >= (super.getLocationX() + super.getWidth() - 1))\n return false;\n\n if(y <= super.getLocationY())\n return false;\n\n if(y >= (super.getLocationY() + super.getHeight() - 1))\n return false;\n\n //return true if inside\n return true;\n\n }",
"public abstract boolean pointerInside(int iPosX, int iPosY);",
"public abstract boolean containsPoint(int x, int y);",
"protected boolean parentExists() {\n\n\t\tIRodinElement parentElement = getParent();\n\t\tif (parentElement == null)\n\t\t\treturn true;\n\t\treturn parentElement.exists();\n\t}",
"public boolean contains(GJPoint2D p) {\n\t\treturn this.contains(p.x(), p.y());\n\t}",
"boolean isDrawInterior(DrawContext dc, Object shape);",
"public boolean locatePoint(Point2D p, VisualItem item) {\n Shape s = getShape(item);\n if ( s == null ) {\n return false;\n } else {\n double width = Math.max(2, getLineWidth(item));\n double halfWidth = width/2.0;\n \n EdgeItem edge = (EdgeItem)item;\n CallEdge callEdge = ReacherDisplay.Instance.getCallEdge(item);\n \n boolean retVal;\n //if (callEdge.isBranching())\n //{\n \tretVal = line1.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width) || \n \t\t\tline2.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width);\n /*}\n else\n {\n \tretVal = curve.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width);\n } */ \n return retVal;\n }\n }",
"boolean isSliceParent();",
"boolean hasTargetPos();",
"public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }",
"boolean touchingSprite(Sprite s) {\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(this._getCenter(), s._getCenter()) <= \n this._hitbox[0].x + s._hitbox[0].x;\n }\n return _circPoly(s._getCenter(), s._hitbox[0].x, this._getPoints());\n }\n if (_hitbox.length == 1) {\n return _circPoly(this._getCenter(), this._hitbox[0].x, s._getPoints());\n }\n \n PVector[] s1Points = s._getPoints();\n PVector[] s2Points = this._getPoints();\n \n for(int i = 0; i < s1Points.length; i++) {\n PVector a = s1Points[i], b = s1Points[(i+1)%s1Points.length];\n for(int j = 0; j < s2Points.length; j++) {\n PVector c = s2Points[j], d = s2Points[(j+1)%s2Points.length];\n \n // sprites touch if ab crosses cd\n if(_clockwise(a, c, d) != _clockwise(b, c, d) && // a & b on different sides of cd, and\n _clockwise(a, b, c) != _clockwise(a, b, d)) { // c & d on different sides of ab\n return true;\n }\n }\n }\n \n return _insidePts(s1Points,s2Points) || _insidePts(s2Points,s1Points);\n }",
"Boolean CheckIfInside(float xVal, float yVal) {\r\n double distance = Math.sqrt((this.x-xVal)*(this.x-xVal) + (this.y-yVal)*(this.y-yVal));\r\n return (distance <= this.radius);\r\n }",
"private boolean isOverRect(Point p) {\n Rectangle r = (Rectangle)component.rect.clone();\n r.grow(PROX_DIST, PROX_DIST);\n return r.contains(p);\n }",
"boolean hasCoordinates();",
"boolean hasCoordinates();",
"boolean hasCoordinates();",
"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}",
"public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Attempted to search for null query\");\n return isItThisNode(root, p);\n }",
"public boolean contains(Point2D p) {\n checkNull(p);\n if (size == 0) {\n return false;\n } else {\n Node n = root;\n while (n != null) {\n double cmp = comparePoints(p, n);\n if (cmp < 0) {\n n = n.leftOrBot;\n } else if (cmp == 0) {\n return true;\n } else {\n n = n.rightOrTop;\n }\n }\n }\n return false;\n }",
"public boolean hasLocation()\n {\n return targetLocation != null;\n }",
"public boolean isChild();",
"public abstract boolean isPath();",
"public boolean contains(Point2D p)\n {\n if (p != null && !isEmpty())\n {\n Node current = root;\n while (current != null)\n {\n if (current.isVertical()) // compare by x\n {\n if (p.x() < current.getPoint().x())\n {\n current = current.getLeft();\n }\n else if (p.x() > current.getPoint().x())\n {\n current = current.getRight();\n }\n else // equal x, now compare y\n {\n if (p.y() == current.getPoint().y())\n {\n return true;\n }\n }\n }\n else // compare by y\n {\n if (p.y() < current.getPoint().y())\n {\n current = current.getLeft();\n }\n else if (p.y() > current.getPoint().y())\n {\n current = current.getRight();\n }\n else // equal y, now compare x\n {\n if (p.x() == current.getPoint().x())\n {\n return true;\n }\n }\n }\n }\n }\n return false;\n }",
"public boolean contains(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Input point is null\");\n if (isEmpty())\n return false;\n boolean isX = true;\n Node curr = root;\n int cmp;\n while (true) {\n if (curr.point.equals(p))\n return true;\n if (isX)\n cmp = Point2D.X_ORDER.compare(p, curr.point);\n else\n cmp = Point2D.Y_ORDER.compare(p, curr.point);\n if (cmp < 0) {\n if (curr.left == null)\n return false;\n curr = curr.left;\n }\n else {\n if (curr.right == null)\n return false;\n curr = curr.right;\n }\n isX = !isX;\n }\n }",
"boolean hasParentalStatus();",
"@Override\r\n public boolean checkCollisions(Point p1, Point p2) {\r\n for(IShape child : children) {\r\n if(child.checkCollisions(p1,p2)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"boolean contains(Polygon p);",
"public boolean isInsideVehicle ( ) {\n\t\treturn extract ( handle -> handle.isInsideVehicle ( ) );\n\t}",
"public boolean hasPathTo(Site s) {\n\t\treturn marked[s.getX()][s.getY()];\n\t}",
"public abstract boolean isInterior();",
"public boolean containsPoint(Point p) {\n \treturn\n \t\tp.x >= x &&\n \t\tp.x <= x + width &&\n \t\tp.y >= y &&\n \t\tp.y <= y + height;\n }",
"public boolean isInside(final Tuple3d point) {\n final double distance = this.distanceToPoint(point);\n\n return IntersectionUtils.isGreaterOrEqual(distance, 0.0);\n }",
"public boolean inside(Point p) {\n\t\tif (p.getX() < boundingRect.getX() || p.getY() < boundingRect.getY()) return false;\n\t\tif (p.getX() > boundingRect.getX() + boundingRect.getW() || \n\t\t p.getY() > boundingRect.getY() + boundingRect.getH()) return false;\n\n\t\t// Create a line from the point to the left\n\t\tLine l = new Line(p.getX(), p.getY(), p.getX() - boundingRect.getW(), p.getY());\n\n\t\t// Count intersections\n\t\tint count= 0;\t\t\n\t\tfor(int i=0; i<lines.size(); i++ ) {\n\t\t\tif (lines.get(i).intersectsAt(l) != null) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n // We are inside if the number of intersections is odd\n\t\treturn count%2 == 1;\n\t}",
"public boolean containsPoint(Point p) {\n\t\treturn (p.x >= x && p.x <= (x + WIDTH)\n\t\t\t\t&& p.y >= y && p.y <= (y + HEIGHT));\n\t}",
"public boolean isIn(Point p)\n {\n \n \treturn isIn(p.x, p.y);\n \t\n //\tboolean cond1 = false;\n // boolean cond2 = false; \n // cond1 = (p.x>=rettangoloX)&&(p.x<=(rettangoloX+larghezza));\n // cond2 = (p.y>=rettangoloY)&&(p.y<=(rettangoloY+altezza));\n // return (cond1&&cond2);\n }",
"public final boolean isAbsoluteActive() {\n if (parent == this) {\n return active;\n }\n return (active && parent.isAbsoluteActive());\n }",
"public boolean isAt(Point punto) {\r\n Point inner = toInnerPoint(punto);\r\n for (Point block : innerPiece.getPoints())\r\n \tif (block.X() == inner.X() && block.Y() == inner.Y())\r\n \t\treturn true;\r\n return false;\r\n }",
"private static boolean contains(Component parent,Component child) {\n\t\tComponent c = child;\n\t\twhile(c!=null) {\n\t\t\tc = c.getParent();\n\t\t\t\n\t\t\tif(parent==c) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isHit() { return hit; }",
"public boolean containsPoint(Point pt)\n {\n\n // E[O(log(n))]\n if(_lineBVH != null)\n {\n throw new Error(\"Implement me Please!\");\n }\n else\n {\n // O(n).\n return _point_in_polygon_test(pt);\n }\n }",
"public boolean contains(Point2D.Double p) {\n if(p.x <= middle.x + length/2.0 &&\n p.x >= middle.x - length/2.0 &&\n p.y <= middle.y + length/2.0 &&\n p.y >= middle.y - length/2.0) return true;\n else return false;\n }"
] |
[
"0.6503478",
"0.6256633",
"0.6158811",
"0.61483175",
"0.6062312",
"0.6043029",
"0.6043029",
"0.60333806",
"0.60219795",
"0.594306",
"0.59305495",
"0.59166205",
"0.5872577",
"0.5852557",
"0.585012",
"0.5795412",
"0.5785591",
"0.5763397",
"0.57619023",
"0.57604146",
"0.57581246",
"0.57518435",
"0.57493854",
"0.57490385",
"0.5741607",
"0.57347375",
"0.5732203",
"0.57196456",
"0.5713365",
"0.5708268",
"0.57034415",
"0.5690071",
"0.5678683",
"0.56723285",
"0.5660875",
"0.5651923",
"0.5643206",
"0.5633997",
"0.5624564",
"0.56230366",
"0.5612326",
"0.55999327",
"0.55925566",
"0.5581145",
"0.5578041",
"0.557716",
"0.5576923",
"0.5572267",
"0.5562721",
"0.55348146",
"0.55277836",
"0.55271393",
"0.55262417",
"0.552309",
"0.5508905",
"0.5492961",
"0.54815465",
"0.54778475",
"0.5476053",
"0.5466723",
"0.54643154",
"0.54541844",
"0.54496485",
"0.5448645",
"0.5445575",
"0.54433924",
"0.54398465",
"0.5438833",
"0.5438489",
"0.5436489",
"0.54346085",
"0.54299325",
"0.5407027",
"0.5407027",
"0.5407027",
"0.54001445",
"0.53974885",
"0.5391923",
"0.5389273",
"0.5383381",
"0.5379488",
"0.5374",
"0.5373311",
"0.53696",
"0.53674585",
"0.5357111",
"0.53562874",
"0.53482026",
"0.5346762",
"0.5345927",
"0.5343618",
"0.5340759",
"0.5340494",
"0.53366125",
"0.53348964",
"0.5333994",
"0.5325676",
"0.5324062",
"0.53226316",
"0.5319117"
] |
0.5433721
|
71
|
Returns the dataset key associated with this shape.
|
public String getDatasetKey() { return null; }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getDatasetId() {\n return (attributes.containsKey(KEY_DATASET_ID) ? (String) attributes\n .get(KEY_DATASET_ID) : null);\n }",
"public int getDatasetId() {\n return datasetId;\n }",
"public Long getDatasetId() {\n return this.datasetId;\n }",
"public String getDatasetName(){\n return this.dataset.getName();\n }",
"public String getKey() {\r\n return getAttribute(\"id\");\r\n }",
"public long getClassPK() {\n\t\treturn _dataset.getDatasetId();\n\t}",
"public String getKey() {\n\t\treturn id + \"\";\n\t}",
"public String getDatasetName() {\r\n return _datasetName;\r\n }",
"public String getKeyId() {\n return getProperty(KEY_ID);\n }",
"public IdKey getKey() {\n return idKey;\n }",
"public String getKey() {\n if (model == null)\n return strKey;\n return model.getKey();\n }",
"public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"public String getKey(DLabel key) {\n return key.getKey();\n }",
"public Object getKey() {\n return key;\n }",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey()\n\t{\n\t\treturn key;\n\t}",
"java.lang.String getDataId();",
"java.lang.String getDataId();",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public int keyId() {\n return keyId;\n }",
"public Object getKey()\n {\n return key;\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn getCid();\n\t}",
"public int getDatasetId() {\n return expId;\n }",
"public double getKey() {\n\t\treturn key;\n\t}",
"public String getKey()\r\n {\r\n return getValue().toString();\r\n }",
"public Object getKey() {\r\n return key;\r\n }",
"public final String getKey() {\n return key;\n }",
"public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}",
"public final String getDataName() {\n if (dataName == null) {\n return this.getClass().getName();\n }\n return dataName;\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey()\n\t{\n\t\treturn this.key;\n\t}",
"public static String generateDatasetName() {\n return DATASET_NAME_PREFIX + UUID.randomUUID().toString().replace('-', '_');\n }",
"public int getDatasetType() {\n return datasetType;\n }",
"public String getKey() {\r\n return key;\r\n }",
"public Object getKey() { return name; }",
"public int getKey() {\n\t\treturn 0;\n\t}",
"public String getKey(){\n\t\treturn key;\n\t}",
"public String getDataSetName() {\r\n return _datasetname;\r\n }",
"public int getKey()\n {\n return key;\n }",
"public int getKey()\n {\n return key;\n }",
"public int getKey()\n {\n return key;\n }",
"public int getKey()\n {\n return key;\n }",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public int getKey() {\n return key;\n }",
"public String getKeyType() \n {\n return DBFactory.getKeyTypeName(this.keyType);\n }",
"public int getKey() {\r\n return key;\r\n }",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public Integer getSrcDatasetId() {\r\n return srcDatasetId;\r\n }",
"public String keyIdentifier() {\n return this.keyIdentifier;\n }",
"public String keyIdentifier() {\n return this.keyIdentifier;\n }",
"@Nullable public String getKey() {\n return key;\n }",
"default String getKey() {\n return key(getClassName(), getName());\n }",
"public int getKey() {\n return this.key;\n }",
"public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}",
"public String getBigQueryDatasetId() {\n return bigQueryDatasetId;\n }",
"public String getKey() {\n\n return this.key;\n }",
"@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}",
"@Override\n\tpublic Object key() {\n\t\treturn id;\n\t}",
"public IdDt getKeyElement() { \n\t\tif (myKey == null) {\n\t\t\tmyKey = new IdDt();\n\t\t}\n\t\treturn myKey;\n\t}",
"int getShapeId();",
"public String getIdForDataType() {\n return idForDataType;\n }",
"public static String getKey(){\n\t\treturn key;\n\t}",
"public int getKey() {\n\t\t\treturn this.key; // to be replaced by student code\n\t\t}",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey_() {\n return key_;\n }",
"public long getKeyID()\n {\n return keyID;\n }",
"public String getKey() {\n return this.key;\n }",
"public Entity getDatasetEntity()\n{\n // Get parent and parent entity (just return null, if null)\n RMShape parent = getParent(); if(parent==null) return null;\n Entity parentEntity = parent.getDatasetEntity(); if(parentEntity==null) return null;\n \n // Get Property/RelationEntity for Shape.DatasetKey\n Property prop = getDatasetKey()!=null? parentEntity.getKeyPathProperty(getDatasetKey()) : null;\n Entity entity = prop!=null && prop.isRelation()? prop.getRelationEntity() : null;\n return entity!=null? entity : parentEntity;\n}",
"org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();",
"public Key getKey() {\n\t\treturn key;\n\t}"
] |
[
"0.70916265",
"0.66647625",
"0.6622881",
"0.64432085",
"0.63851327",
"0.63587034",
"0.62867475",
"0.6195452",
"0.6153179",
"0.6132256",
"0.6108752",
"0.6068992",
"0.60588974",
"0.60535073",
"0.60383",
"0.6017412",
"0.6017412",
"0.6017412",
"0.6011008",
"0.60088813",
"0.60088813",
"0.60052943",
"0.60052943",
"0.60052943",
"0.60001963",
"0.5990982",
"0.5981384",
"0.59748566",
"0.5974153",
"0.59718037",
"0.5970806",
"0.59700596",
"0.59611243",
"0.5942331",
"0.5931092",
"0.5931092",
"0.5931092",
"0.59239435",
"0.5919693",
"0.5919693",
"0.5919693",
"0.5919693",
"0.5919693",
"0.5919693",
"0.5919693",
"0.5919693",
"0.5919693",
"0.5919693",
"0.5918568",
"0.5913179",
"0.5912143",
"0.59047675",
"0.58978266",
"0.5891805",
"0.5885241",
"0.5879484",
"0.5875841",
"0.5875841",
"0.5875841",
"0.5875841",
"0.58685654",
"0.58685654",
"0.58685654",
"0.58685654",
"0.586797",
"0.586797",
"0.5866135",
"0.5865752",
"0.5844666",
"0.5838701",
"0.5838701",
"0.5838701",
"0.58302575",
"0.58289284",
"0.58289284",
"0.582816",
"0.5827878",
"0.5821075",
"0.5819108",
"0.58083916",
"0.5805337",
"0.57857627",
"0.57812256",
"0.57740843",
"0.5768144",
"0.5763436",
"0.57627803",
"0.5753929",
"0.574997",
"0.574997",
"0.574997",
"0.574997",
"0.574997",
"0.574997",
"0.57365835",
"0.5720522",
"0.57038355",
"0.5700321",
"0.5699501",
"0.56937367"
] |
0.67470783
|
1
|
Returns the entity this shape should show in keys browser.
|
public Entity getDatasetEntity()
{
// Get parent and parent entity (just return null, if null)
RMShape parent = getParent(); if(parent==null) return null;
Entity parentEntity = parent.getDatasetEntity(); if(parentEntity==null) return null;
// Get Property/RelationEntity for Shape.DatasetKey
Property prop = getDatasetKey()!=null? parentEntity.getKeyPathProperty(getDatasetKey()) : null;
Entity entity = prop!=null && prop.isRelation()? prop.getRelationEntity() : null;
return entity!=null? entity : parentEntity;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public E getEntity() {\n return this.entity;\n }",
"String getKey(Object entity);",
"public MapEntityKey getMapEntityKey() {\n\t\treturn mapEntityKey;\n\t}",
"private Entity ce() {\n return clientgui.getClient().getGame().getEntity(cen);\n }",
"public E getEntity();",
"public T getSelectedEntity() {\n return selectedEntity;\n }",
"public final String getEntity() {\n\t\treturn entity;\n\t}",
"public ClassName entity() {\n return ClassName.get(this.getEntityPack(), this.getClassName());\n }",
"public String getEntity()\n\t\t{\n\t\t\treturn endpointElement.getAttribute(ENTITY_ATTR_NAME);\n\t\t}",
"public String getEntity()\n\t\t{\n\t\t\treturn userElement.getAttribute(ENTITY_ATTR_NAME);\n\t\t}",
"public ZEntity getEntity() {\r\n return entity;\r\n }",
"public MapEntity getEntity() {\n\t\treturn _entity;\n\t}",
"public Entity getEntity() {\n\t\treturn entity;\n\t}",
"@Override\n public boolean hasEntityShapes() { return true; }",
"int getShapeId();",
"public com.coda.www.efinance.schemas.elementmaster.ElmFullKey getKey() {\r\n return key;\r\n }",
"@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}",
"public String getPrimitiveEntity();",
"public Entity getEntity() {\n\t\treturn DodgeBlawk.getDataManager().getEntity(getId());\n\t}",
"public String getEntity()\n\t{\n\t\treturn conferenceInfo.getAttribute(ENTITY_ATTR_NAME);\n\t}",
"Key getEntityGroup() {\n\t\treturn entityGroup;\n\t}",
"public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.append(getLineNo());\r\n\t\t} else if (this.getEntityId() != null) {\r\n\t\t\tbuilder.append(getEntityId());\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}",
"@Override\n public String getFormatEntity() {\n return NameIDType.ENTITY;\n }",
"public final String getModeEntity() {\n\t\treturn modeEntity;\n\t}",
"public String[] getEntityKeys() {\r\n\t\tif (null == entityKeys) {\r\n\t\t\tentityKeys = EngineTools.getInstanceKeys(entityURI);\r\n\t\t}\r\n\t\treturn entityKeys;\r\n\t}",
"Shape getShape();",
"String getEntity();",
"String getEntity();",
"public Shape getShape();",
"public Projectile getArrow() {\r\n return entity;\r\n }",
"EntityType getEntity();",
"public Shape getShape()\n {\n return Shape.this;\n }",
"@SideOnly(value=Side.CLIENT)\n\tpublic String getModelKey() {\n\t\treturn getKeyFromTex(getTexture());\n\t}",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public final String getEntityScheme() {\n\t\treturn entityScheme;\n\t}",
"public AbstractEntity getEntity() {\n if (entityClass == null) {\n return null;\n }\n try {\n AbstractEntity ent = entityClass.newInstance();\n if (value > -1) {\n ent.setSpriteValue(value);\n }\n return ent;\n } catch (InstantiationException | IllegalAccessException ex) {\n Logger.getLogger(CursorInfo.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"public String getEntityId() {\r\n\t\treturn EngineTools.getEntityId(getEntityKeys()[2]);\r\n\t}",
"public org.openejb.config.ejb11.Entity getEntity() {\n return this._entity;\n }",
"public EntityType getEntity_type() {\n return this.entity_type;\n }",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"public String getEntityName() {\n return entityName;\n }",
"public E getKey() {\n\t\treturn this.element;\n\t}",
"public Entity getComponent() {\n return component;\n }",
"String getShapeName();",
"public Shape getShape() {\n return shape;\n }",
"public String getKeyEquipName() {\r\n return getKeyShootName();\r\n }",
"private PR1Model.Shape getSelection() { return selection.get(); }",
"public String toString() {\n return \"Entity(coordinates: \" + this.coordinates + \", icon: \" + this.icon\n + \")\";\n }",
"public GeometryOrderKey getGeometryOrderKey()\n {\n return myGeometryOrderKey;\n }",
"public String whatShape();",
"public EntityBase getEntity() {\n return entity;\n }",
"public Shape getShape() { return shape; }",
"public Class<? extends TileEntity> getTileEntity() {\n return this.tileEntity;\n }",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"protected String _currentExternalEntity() {\n\t\t\t// if (isVerbose())\n\t\t\t// System.out.println(\"currentExternalEntity: URI=\\\"\" +\n\t\t\t// (String)_externalEntities.get(0) + \"\\\"\\n\");\n\t\t\treturn (String) _externalEntities.get(0);\n\t\t}",
"public String getKey() {\n if (model == null)\n return strKey;\n return model.getKey();\n }",
"public Shape getShape() {\n\treturn shape;\n }",
"@Override\n public String getShapeSetId() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"List<JPAPath> getKeyPath() throws ODataJPAModelException;",
"java.lang.String getClientKey();",
"public BE getBukkitEntity() {\n if (!bukkitEntity.isValid()) {\n final BE foundEntity = (BE) EntityUtils.findBy(getKey(), chunk);\n if (foundEntity != null) {\n this.bukkitEntity = foundEntity;\n }\n }\n return bukkitEntity;\n }",
"public String getNameOfEntityHere() {\n \n return entityHere_.getName();\n \n }",
"public String getQueryShape() {\n return queryShape;\n }",
"@Nullable\n Identifier getTexture(Entity entity);",
"public interface Entity {\r\n\r\n /**\r\n * Gets the initial (relative, map) position of the entity.\r\n * \r\n * @return the initial position of the player\r\n */\r\n Pair<Integer, Integer> getInitialPosition();\r\n\r\n /**\r\n * Gets the position of the entity on screen (absolute, pixel).\r\n * \r\n * @return entity current position on screen\r\n */\r\n Pair<Integer, Integer> getPosition();\r\n\r\n /**\r\n * Sets the position of the entity on screen.\r\n * Can be used to change an absolute position (that is grid locked because they're a multiple of a value) \r\n * to a specific position and place an object everywhere you want\r\n * \r\n * Please check {@link TestEntity} for an in-depth explanation of how this works.\r\n * \r\n * @param position defines the entity position on screen\r\n */\r\n void setPosition(Pair<Integer, Integer> position);\r\n\r\n /**\r\n * Gets the hitbox of the entity (a Rectangle if it's solid, null otherwise).\r\n * \r\n * @return the collision box of the entity.\r\n */\r\n Rectangle getCollisionBox();\r\n\r\n /**\r\n * Gets the path of the image that will be used by the view. \r\n * \r\n * @return the path where the image of the entity is located\r\n */\r\n String getImagePath();\r\n\r\n /**\r\n * Sets the path of the image that will be used by the view.\r\n * \r\n * @param path the path where the image of the entity is located\r\n */\r\n void setImagePath(String path);\r\n\r\n /**\r\n * Method that defines if the entity is destroyed or not.\r\n * \r\n * @return true if destroyed, false otherwise\r\n */\r\n boolean isDestroyed();\r\n\r\n /**\r\n * Sets the status of the entity (true if destroyed, false otherwise).\r\n * \r\n * @param destroyed defines if the entity has been destroyed or not\r\n */\r\n void setStatus(boolean destroyed);\r\n\r\n /**\r\n * Gets the entity width.\r\n * \r\n * @return entity width\r\n */\r\n int getWidth();\r\n\r\n /**\r\n * Sets the new entity width.\r\n * \r\n * @param width defines the new entity width\r\n */\r\n void setWidth(int width);\r\n\r\n /**\r\n * Gets the entity height.\r\n * \r\n * @return entity height\r\n */\r\n int getHeight();\r\n\r\n /**\r\n * Sets the new entity height.\r\n * \r\n * @param height defines the new entity width\r\n */\r\n void setHeight(int height);\r\n\r\n /**\r\n * Return the state of the block, if it is solid or not.\r\n * @return true if entity is solid, false otherwise.\r\n */\r\n boolean isSolid();\r\n\r\n /**\r\n * Sets the score value of the entity.\r\n * \r\n * @param scoreValue defines the value that will be given (added) to players score when the entity is destroyed\r\n */\r\n void setScoreValue(int scoreValue);\r\n\r\n /**\r\n * Gets the score value of the entity.\r\n * \r\n * @return a score value that defines the value of the entity\r\n */\r\n int getScoreValue();\r\n}",
"com.google.cloud.videointelligence.v1p2beta1.Entity getEntity();",
"public Ellipse2D getShape()\r\n {\r\n if(this.stable){\r\n return new Ellipse2D.Double(x, y, XSIZE*2, YSIZE*2);\r\n }\r\n else\r\n return new Ellipse2D.Double(x, y, XSIZE, YSIZE);\r\n }",
"Object getKey();",
"public Placement getPlacement() {\n return getEntity();\n }",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public String entityType();",
"public int getKeyHireShip() {\r\n return getKeyShoot();\r\n }",
"public Shape getRenderObject(\n )\n {return renderObject;}",
"@Override\n public Entity getEntity() {\n return super.getEntity();\n }",
"public Entity get_entity(String uid) {\n for (int layer_id: layer_ent_list.keySet()){\n Entity ent = get_entity(uid, layer_id);\n if (ent!=null){\n return ent;\n }\n }\n return null;\n }",
"public abstract V getEntity();",
"public interface GearyEntity {\n\n /**\n * Get the underlying data holder for this entity.\n */\n PersistentDataHolder getDataHolder();\n\n /**\n * Gets the contained component of type {@code T} or null if this entity does not contain {@code\n * T}\n */\n <T extends Component> T getComponent(Class<T> componentClass);\n\n /**\n * Adds the provided component to this entity. Adding the same type of component a second time\n * overwrites the first one.\n */\n void addComponent(Component component);\n\n /**\n * Removes the component with this type from this entity. Noop if the component is not contained.\n */\n void removeComponent(Class<? extends Component> componentClass);\n\n /**\n * Returns true if this entity has a component with this type.\n */\n boolean hasComponent(Class<? extends Component> componentClass);\n\n /**\n * Gets the ItemStack this entity is attached to, if it exists.\n */\n Optional<ItemStack> getItemStack();\n\n /**\n * Gets this entities UUID.\n */\n UUID getUUID();\n\n /**\n * Gets the entity version this entity was created using.\n */\n long getVersion();\n\n /**\n * Gets the Player this entity is held by, if it exists.\n */\n Optional<Player> getHoldingPlayer();\n\n /**\n * Gets all components within this entity.\n */\n Set<Component> getComponents();\n}",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public ResourceLocation getEntityTexture(T entity) {\n return MINECART_TEXTURES;\n }",
"public String getEntityURI() {\r\n\t\treturn entityURI;\r\n\t}",
"public String getKey() {\n return this.key;\n }",
"public E getEntidade() {\n\n\t\treturn this.entidade;\n\t}",
"public Shape getShape() \n {\n return new EllipseShape(new Extent(3,3), Color.RED,true);\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public Object getKey() {\r\n return key;\r\n }",
"public interface Entity\n\textends Node\n{\n\n\tpublic abstract String getPublicId();\n\n\tpublic abstract String getSystemId();\n\n\tpublic abstract String getNotationName();\n}",
"public SelectionKey getSelectionKey(){\n return key;\n }",
"public String getEntityName() {\n\t\treturn entityName;\n\t}",
"public Object getKey()\n {\n return key;\n }",
"@XmlElement(name = \"entity\")\n public String getEntityId() {\n return entityId;\n }",
"UnderlayTopologyKey getKey();",
"public EntityIcon getIcon() {\r\n return icon;\r\n }"
] |
[
"0.6011962",
"0.5933232",
"0.58967084",
"0.5890923",
"0.5886298",
"0.58195543",
"0.57815355",
"0.5770984",
"0.57533723",
"0.5725366",
"0.56694883",
"0.5634862",
"0.55913603",
"0.55850667",
"0.5535837",
"0.5532644",
"0.55219615",
"0.55159605",
"0.54965234",
"0.54851073",
"0.54645467",
"0.5445711",
"0.5428354",
"0.5420653",
"0.5413827",
"0.54113555",
"0.5403243",
"0.5403243",
"0.53649104",
"0.5360923",
"0.5356967",
"0.53526896",
"0.5341951",
"0.5337819",
"0.53189254",
"0.53049725",
"0.5303244",
"0.52840346",
"0.52835",
"0.52745867",
"0.52686906",
"0.5261191",
"0.525137",
"0.52475196",
"0.5238829",
"0.52383053",
"0.5231261",
"0.52260643",
"0.5216429",
"0.5204222",
"0.51958555",
"0.51936775",
"0.5188397",
"0.51783824",
"0.51783824",
"0.51783824",
"0.51783824",
"0.5158942",
"0.5158297",
"0.5145442",
"0.51389885",
"0.51385343",
"0.51345825",
"0.5133359",
"0.5124369",
"0.5120859",
"0.51174545",
"0.5113326",
"0.51108235",
"0.51055133",
"0.51044786",
"0.5102664",
"0.51017606",
"0.509953",
"0.5088842",
"0.50875497",
"0.5085173",
"0.50838405",
"0.5081575",
"0.5076855",
"0.50712055",
"0.5065456",
"0.5059763",
"0.50597",
"0.50592357",
"0.5055749",
"0.50554013",
"0.50554013",
"0.50554013",
"0.50554013",
"0.50554013",
"0.50554013",
"0.5050476",
"0.50465465",
"0.5034605",
"0.5029513",
"0.5028886",
"0.5023438",
"0.5013834",
"0.50115424"
] |
0.6387635
|
0
|
Returns the property names for helper's instance class.
|
public List <String> getPropertyNames()
{
// Get list from PropertyNamesMap - load if not found
List <String> list = _propertyNamesMap.get(getClass());
if(list==null) {
_propertyNamesMap.put(getClass(), list = new ArrayList()); addPropNames(); }
return list;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String[] getPropertyNames()\n {\n return ClassAnalyzer.getPropertyNames(m_Source.getClass());\n }",
"public String[] getPropertyNames();",
"public String[] getPropertyNames()\n\t{\n\t\treturn _propertyNames;\n\t}",
"@Override\n public String[] getPropertyNames() {\n final String[] names = new String[this.properties.size()];\n this.properties.keySet().toArray(names);\n return names;\n }",
"String[] getPropertyKeys();",
"public Enumeration getPropertyNames() {\r\n return properties.keys();\r\n }",
"public synchronized Enumeration<String> getPropertyNames() {\n return PropertyArray.enumerate(props);\n }",
"public void getProperties() throws IllegalArgumentException, IllegalAccessException {\r\n\t\t Class<?> aClass = this.getClass();\r\n\t\t Field[] declaredFields = aClass.getDeclaredFields();\r\n\t\t Map<String, String> logEntries = new HashMap<>();\r\n\r\n\t\t for (Field field : declaredFields) {\r\n\t\t field.setAccessible(true);\r\n\r\n\t\t Object[] arguments = new Object[]{\r\n\t\t field.getName(),\r\n\t\t field.getType().getSimpleName(),\r\n\t\t String.valueOf(field.get(this))\r\n\t\t };\r\n\r\n\t\t String template = \"- Property: {0} (Type: {1}, Value: {2})\";\r\n\t\t String logMessage = System.getProperty(\"line.separator\")\r\n\t\t + MessageFormat.format(template, arguments);\r\n\r\n\t\t logEntries.put(field.getName(), logMessage);\r\n\t\t }\r\n\r\n\t\t SortedSet<String> sortedLog = new TreeSet<>(logEntries.keySet());\r\n\r\n\t\t StringBuilder sb = new StringBuilder(\"Class properties:\");\r\n\r\n\t\t Iterator<String> it = sortedLog.iterator();\r\n\t\t while (it.hasNext()) {\r\n\t\t String key = it.next();\r\n\t\t sb.append(logEntries.get(key));\r\n\t\t }\r\n\r\n\t\t System.out.println(sb.toString());\r\n\t\t}",
"public Enumeration getPropertyNames()\n {\n Hashtable props = getProperties();\n return (props != null) ? props.keys() : new Vector().elements();\n }",
"public Iterable<String> getPropertyKeys();",
"public ArrayList<String> getPropNames()\n {\n return this.prop_names;\n }",
"java.util.Enumeration getPropertyNames();",
"public static Hub<String> getNameValues(Class clazz, String propertyName) {\n\t\tOAObjectInfo oi = OAObjectInfoDelegate.getOAObjectInfo(clazz);\n\t\tOAPropertyInfo pi = oi.getPropertyInfo(propertyName);\n\t\tif (pi == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn pi.getNameValues();\n\t}",
"public List<IPropertyDescriptor<T>> getProperties();",
"public static List<String> getAllPropNames(Provider propCat) {\n return PersistenceCfgProperties.getKeys(propCat);\n }",
"public Enumeration getPropertyNames()\n {\n final EnumerationUnion eu = new EnumerationUnion();\n if( properties != null )\n {\n eu.add( properties.keys() );\n }\n if( ancestors != null )\n {\n final int size = ancestors.size();\n for( int i = 0; i < size; i++ )\n {\n final ScriptingClass clazz = (ScriptingClass)\n ancestors.elementAt( i );\n eu.add( clazz.getPropertyNames() );\n }\n }\n try\n {\n final ScriptingClass object = getClassLoader().load( \"object\" );\n eu.add( object.getPropertyNames() );\n }\n catch( ScriptingClassNotFoundException e )\n {\n }\n return eu;\n }",
"public Name getStaticPropertyWatcherClassName()\n {\n assert staticPropertyWatcherClassName != null;\n return staticPropertyWatcherClassName;\n }",
"public String[] getUsedPropertyKeys() {\n\t\treturn new String[] { IDevice.OFFSET, IDevice.FACTOR, IDevice.REDUCTION };\n\t}",
"private String[] getNameParts() {\n return field.getName().split(\"_\");\n }",
"public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }",
"public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }",
"public static Hub<String> getDisplayNameValues(Class clazz, String propertyName) {\n\t\tOAObjectInfo oi = OAObjectInfoDelegate.getOAObjectInfo(clazz);\n\t\tOAPropertyInfo pi = oi.getPropertyInfo(propertyName);\n\t\tif (pi == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn pi.getDisplayNameValues();\n\t}",
"public Collection<ModuleProperty> getProperties();",
"@Override\n\t\tpublic Iterable<String> getPropertyKeys() {\n\t\t\treturn null;\n\t\t}",
"Property[] getProperties();",
"List<? extends T> getDeclaredProperties();",
"public List<NamedThing> getProperties() {\n // TODO this should be changed to AnyProperty type but it as impact everywhere\n List<NamedThing> properties = new ArrayList<>();\n List<Field> propertyFields = getAnyPropertyFields();\n for (Field f : propertyFields) {\n try {\n if (NamedThing.class.isAssignableFrom(f.getType())) {\n f.setAccessible(true);\n Object fValue = f.get(this);\n if (fValue != null) {\n NamedThing se = (NamedThing) fValue;\n properties.add(se);\n } // else not initalized but this is already handled in the initProperties that must be called\n // before the getProperties\n }\n } catch (IllegalAccessException e) {\n throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);\n }\n }\n return properties;\n }",
"public static List<String> getProcessorPropertyConfigNames(NifiProperty property) {\n return getConfigPropertyKeysForNiFi(property).stream().map(k -> \"nifi.\" + toPropertyName(StringUtils.substringAfterLast(property.getProcessorType(), \".\") + \".\" +k)).collect(Collectors.toList());\n }",
"public abstract List<BeanPropertyDefinition> findProperties();",
"public Properties getProperties() {\n Properties properties = new Properties();\n properties.setProperty(\"advice\", \"method interceptor\");\n properties.setProperty(\"scope\", \"per-instance\");\n return properties;\n }",
"public Set<String> getClassKeys();",
"public Iterator<String> listInstanceProperties(String instance)\r\n\t{\r\n\t\tArrayList<String> list = new ArrayList<String>();\r\n\t\tOntResource ontI = obtainOntResource(instance);\r\n\t\tfor(StmtIterator props = ontI.listProperties(); props.hasNext();)\r\n\t\t\tlist.add(props.nextStatement().getPredicate().toString());\r\n\t\treturn list.iterator();\r\n\t}",
"public String getPropertyName();",
"String getClassTypeVariables() {\n final StringBuilder sb = new StringBuilder();\n if (classTypes.size() > 0) {\n sb.append(\"<\");\n for (int i = 0; i < classTypes.size(); i++) {\n final Class<?> c = classTypes.get(i);\n if (c != null) {\n sb.append(getShortClassName(c));\n if (i < classTypes.size() - 1) {\n sb.append(\", \");\n }\n }\n }\n sb.append(\">\");\n }\n return sb.toString();\n }",
"public Name getPropertyWatcherClassName()\n {\n assert propertyWatcherClassName != null;\n return propertyWatcherClassName;\n }",
"public static String[] getBeanNamesForType(Class clazz) {\n return applicationContext.getBeanNamesForType(clazz);\n }",
"public Dictionary<String, Object> getProperties();",
"public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }",
"public String getStaticPropertyWatcherClass()\n {\n return staticPropertyWatcherClass;\n }",
"protected String getPropertyName(){\n return propertyName;\n }",
"public static List<String> getProcessorNamePropertyConfigNames(NifiProperty property) {\n\n return getConfigPropertyKeysForNiFi(property).stream().map(k -> \"nifi.\" + toPropertyName(StringUtils.substringAfterLast(property.getProcessorType(), \".\") + \"[\"+property.getProcessorName()+\"].\" + k)).collect(Collectors.toList());\n }",
"StringMap getProperties();",
"public Iterator<String> getUserDefinedProperties();",
"public ImmutableList<String> getVariableNames() {\n return members.stream().map(m -> m.getShortName()).collect(ImmutableList.toImmutableList());\n }",
"protected String getPropertyStrings() {\n\t\treturn \"Active:\" + activeProperty().getValue() + \", FromDataset:\" + isFromDataset() + \", Modified:\" + isModified();\n\t}",
"Properties getProperties();",
"private List<Object> pluginPropertyDefinitions() {\n List<Object> extensions = new ArrayList<>();\n extensions.add(getProperty(Constants.ENABLED, \"Plugin enabled\",\n \"Are Teams notifications enabled in general?\",\n \"false\", PropertyType.BOOLEAN));\n extensions.add(getProperty(Constants.BYPASS_HTTPS_VALIDATION, \"Bypass HTTPS Validation\",\n \"Bypass SSL/TLS certificate validation on HTTPS requests (useful for proxies)\",\n \"false\", PropertyType.BOOLEAN));\n extensions.add(getProperty(Constants.PROXY_IP, \"Proxy Server\",\n \"Domain or IP address of proxy server to use\",\n \"\", PropertyType.STRING));\n extensions.add(getProperty(Constants.PROXY_PORT, \"Proxy Port\",\n \"Port for the proxy server\",\n \"8080\", PropertyType.INTEGER));\n extensions.add(getProperty(Constants.PROXY_USER, \"Proxy User\",\n \"User name for proxy authentication\",\n \"\", PropertyType.STRING));\n extensions.add(getProperty(Constants.PROXY_PASS, \"Proxy Password\",\n \"Password for proxy authentication\",\n \"\", PropertyType.PASSWORD));\n return extensions;\n }",
"List<? extends T> getProperties();",
"@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }",
"public static Set<String> getJunctionNames() {\r\n return namedJunctionClasses.keySet();\r\n }",
"public Hashtable getUserProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getUserProperties();\n }",
"private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }",
"String getPropertyName();",
"@Override\n public String toString()\n {\n return instanceName;\n }",
"@Override\n public String toString()\n {\n return instanceName;\n }",
"String [] getPropertyNames(Long id) throws RemoteException;",
"@Override\n public String toString() {\n int t = 0;\n while (true) {\n final Class<?> type;\n switch (t++) {\n case 0: type = Hints.class; break;\n case 1: type = getValueClass(); break;\n default: return super.toString();\n }\n final String name = nameOf(type, this);\n if (name != null) {\n return name;\n }\n }\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 java.beans.PropertyDescriptor[] getPropertyDescriptors()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfinal java.beans.PropertyDescriptor[] res =\n\t\t\t\t{ prop(\"TargetType\", \"the type of vessel this model is evading\"),\n\t\t\t\t\t\tprop(\"Name\", \"the name of this detonation model\"),\n\t\t\t\t\t\tprop(\"DetectionLevel\", \"the name of this detonation model\"), };\n\t\t\t\tres[2]\n\t\t\t\t\t\t.setPropertyEditorClass(DetectionEvent.DetectionStatePropertyEditor.class);\n\t\t\t\treturn res;\n\t\t\t}\n\t\t\tcatch (java.beans.IntrospectionException e)\n\t\t\t{\n\t\t\t\treturn super.getPropertyDescriptors();\n\t\t\t}\n\t\t}",
"public abstract List<PropertyType> getBuiltInProperties();",
"public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }",
"public void showProperties(Class type);",
"@Override\n public InstanceProperties getNameInstanceProperties(String methodName) {\n InstanceProperties properties = super.getNameInstanceProperties(methodName);\n\n if (name != null) {\n String literalName = repositoryHelper.getExactMatchRegex(name);\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.NAME_PROPERTY_NAME, literalName, methodName);\n }\n\n return properties;\n }",
"protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }",
"public String[] getFieldNames()\n {\n return this.fieldMap.keyArray(String.class);\n }",
"PropertyName getName();",
"private String getPropertyLabel() {\n return itemPropertyDescriptor.getDisplayName(eObject);\n }",
"public Map getProperties();",
"public String[] getProperties() \n {\n String[] props = {\"discussionSearch.subject\", \"discussionSearch.content\"}; \n return props;\n }",
"public Set getPropertyNames(){\n return this.vendorSpecificProperties;\n }",
"public Collection getPersistedTypeNames() {\n return (_addClasses == null) ? Collections.EMPTY_LIST : _addClasses;\n }",
"private static PropertyDescriptor[] getPdescriptor() {\n PropertyDescriptor[] properties = new PropertyDescriptor[4];\n\n try {\n properties[PROPERTY_length] = new PropertyDescriptor(\"length\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getLength\", \"setLength\"); // NOI18N\n properties[PROPERTY_name] = new PropertyDescriptor(\"name\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getName\", \"setName\"); // NOI18N\n properties[PROPERTY_nullable] = new PropertyDescriptor(\"nullable\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getNullable\", \"setNullable\"); // NOI18N\n properties[PROPERTY_type] = new PropertyDescriptor(\"type\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getType\", \"setType\"); // NOI18N\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }//GEN-HEADEREND:Properties\n\n // Here you can add code for customizing the properties array.\n\n return properties;\n }",
"public String getPropertyWatcherClass()\n {\n return propertyWatcherClass;\n }",
"public Collection getAllAuxClasss();",
"List<Property<?>> getProperties(ProjectEntity entity);",
"public List<NameValueProperty> getNameValueProperty() {\n\t\treturn nameValuePropertyList;\n\t}",
"ArrayList<PropertyMetadata> getProperties();",
"public String[] getKeys(){\n int paddingCount = 1;\n List<String> result = new ArrayList<String>();\n String lastKey = null;\n for (Property x : this.getProperties()) {\n String newKey = new String(x.getKey());\n if (lastKey != null && lastKey.equalsIgnoreCase(newKey)){\n newKey = newKey + \"_\" + paddingCount++;\n }\n result.add(newKey);\n lastKey = newKey;\n }\n return result.toArray(new String[]{});\n }",
"public String getPropertyName()\n {\n return propertyName;\n }",
"public static List<DisplayProperty> getDisplayProperties() {return DISPLAY_PROPERTIES;}",
"private Object[] getSamplePropertiesAsArray()\n {\n return (swp.get(0)).getPropertyTypes().toArray();\n\n }",
"public String getName() {\n return instance.getName();\n }",
"public String getName() {\n return instance.getName();\n }",
"public String getName() {\n return instance.getName();\n }",
"List memberClasses();",
"@Override\n\t@SuppressWarnings(\"unchecked\")\n\t@Transactional(propagation = Propagation.SUPPORTS)\n\tpublic List<Property> findPropertyNames() \n\t{\n\t\tList<Property> details = entityManager.createNamedQuery(\"Property.readPropertyNames\").getResultList();\n\t\tlogger.info(\"Property Details are:\" + details);\n\t\treturn details;\n\t}",
"default Map<String, Object> getProperties()\r\n {\r\n return emptyMap();\r\n }",
"PropertyDesc[] getPropertyDesc()\r\n\t{\r\n\t\tPropertyDesc[] p = new PropertyDesc[properties.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Variable v : properties)\r\n\t\t{\r\n\t\t\tp[i++] = new PropertyDesc(v.name, v.varType, v.classID);\r\n\t\t}\r\n\t\treturn p;\r\n\t}",
"public String getPluginClassAttrNs() {\n return pluginClassAttrNs;\n }",
"private Vector<String> getSwingClassNames() {\n List<ClassLoader> classLoadersList = new LinkedList<>();\n classLoadersList.add(ClasspathHelper.contextClassLoader());\n classLoadersList.add(ClasspathHelper.staticClassLoader());\n\n Reflections reflections = new Reflections(new ConfigurationBuilder()\n .setScanners(new SubTypesScanner(false), new ResourcesScanner())\n .setUrls(ClasspathHelper.forClassLoader(classLoadersList.toArray(new ClassLoader[0])))\n .filterInputsBy(new FilterBuilder().include(FilterBuilder.prefix(\"javax.swing\"))));\n\n Set<Class<? extends JComponent>> classes = reflections.getSubTypesOf(JComponent.class);\n\n Vector<String> classNames = new Vector<>();\n for (Class<?> cls : classes) {\n if (cls.getSimpleName().length() > 0 && cls.getSimpleName().charAt(0) == 'J') {\n classNames.add(cls.getSimpleName() + \" (\" + cls.getName() + \")\");\n }\n }\n\n return classNames;\n }",
"public String[] getFieldNames();",
"public String[] getTestbedClassName() {\r\n\t\treturn testbedClassName;\r\n\t}",
"public Note[] getProperties(Object key);",
"Collection<PropertyValidationAnnotationHandler> getPropertyHandlers();",
"public Properties getProperties();",
"java.lang.String getProperties();",
"public String[] listObjectNames();",
"public final List<String> getPropertiesList()\n {\n\n List<String> allProps = new ArrayList<String>();\n Enumeration<?> e = this.fProp.propertyNames();\n\n while (e.hasMoreElements())\n {\n String key = (String) e.nextElement();\n String value = this.fProp.getProperty(key);\n allProps.add(key + \"=\" + value);\n } // end while\n\n Collections.sort(allProps);\n return allProps;\n\n }",
"Map<String, Object> properties();",
"public PropertyDescriptor[] getPropertyDescriptors() {\n\tPropertyDescriptor[] pd = new PropertyDescriptor[3];\n\ttry {\n\t\tpd [0] = new PropertyDescriptor(\"name\", RateTypeAccessBean.class);\n\t\tpd [1] = new PropertyDescriptor(\"ratetype\", RateTypeAccessBean.class);\n\t\tpd [2] = new PropertyDescriptor(\"basecurrency\", RateTypeAccessBean.class, \"getBasecurrency\", null);\n\t\treturn pd;\n\t} catch (IntrospectionException ex) {\n\t\tex.printStackTrace(System.out);\n\t}\n\treturn null;\n}"
] |
[
"0.6508291",
"0.6390124",
"0.610783",
"0.6017249",
"0.598069",
"0.5949077",
"0.5924054",
"0.5876986",
"0.5848785",
"0.5824109",
"0.58039796",
"0.580045",
"0.57534677",
"0.5695732",
"0.56677645",
"0.56478554",
"0.56291145",
"0.56111497",
"0.55984676",
"0.55468506",
"0.5529194",
"0.5500926",
"0.548829",
"0.54826164",
"0.54798764",
"0.54550284",
"0.5454962",
"0.5413396",
"0.54018074",
"0.5396543",
"0.53897643",
"0.5341848",
"0.5338307",
"0.53293383",
"0.5325053",
"0.53237635",
"0.5317607",
"0.53122556",
"0.5302583",
"0.5295711",
"0.5291747",
"0.5287837",
"0.5280919",
"0.52789456",
"0.52683985",
"0.525727",
"0.5232624",
"0.52309394",
"0.5220818",
"0.5218168",
"0.5214404",
"0.52120686",
"0.52101505",
"0.52096575",
"0.52096575",
"0.5207626",
"0.5203801",
"0.52033675",
"0.52021456",
"0.52018225",
"0.5198947",
"0.51918966",
"0.5190637",
"0.51906294",
"0.5184929",
"0.5184193",
"0.51803064",
"0.51587516",
"0.51526624",
"0.51398927",
"0.51382315",
"0.51381826",
"0.513579",
"0.5129376",
"0.5122638",
"0.51157355",
"0.51068807",
"0.51063234",
"0.50930625",
"0.5088205",
"0.5069472",
"0.5065997",
"0.5065997",
"0.5065997",
"0.5065477",
"0.50600374",
"0.5055877",
"0.50556946",
"0.50542504",
"0.5052888",
"0.50491023",
"0.50487864",
"0.50475556",
"0.5046923",
"0.50437796",
"0.50345653",
"0.50322396",
"0.50271434",
"0.5018853",
"0.5018565"
] |
0.61356866
|
2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.