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... | [
"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.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.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.5717... | 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 Bo... | [
"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.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 addTimeli... | [
"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.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 timelin... | {
"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 addTimeli... | [
"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... | 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(aTi... | {
"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 ... | [
"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... | 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 chi... | {
"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 ... | [
"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.5615969... | 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 f... | 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 {\... | [
"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.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... | [
"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.5745... | 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 getV... | [
"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.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 }",
"... | [
"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.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... | [
"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.529375... | 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 fo... | {
"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<Shap... | [
"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.5803... | 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() ... | [
"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.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 _... | [
"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.68... | 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}",... | [
"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.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.... | [
"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.6012794... | 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().in... | [
"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.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 getC... | [
"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.7600... | 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 }",
"... | [
"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.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... | [
"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.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 ... | [
"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.6343... | 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 ... | [
"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.581... | 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 i... | [
"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.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 r... | [
"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.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... | [
"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.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 =... | [
"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.615148... | 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() thr... | [
"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.6372... | 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 = getPa... | [
"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.6290... | 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 paren... | [
"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.546... | 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 }",
... | [
"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.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 r... | [
"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.5649... | 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.getTim... | [
"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.5707... | 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... | {
"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==... | [
"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.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)
... | {
"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 || isAnces... | [
"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.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==... | [
"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.4... | 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 get... | {
"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 R... | [
"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.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.ge... | [
"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.621462... | 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.ge... | [
"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.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 paren... | {
"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... | [
"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.5811589... | 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(... | {
"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(getPa... | [
"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.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\tr... | [
"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.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\tr... | [
"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.547075... | 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.li... | [
"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.4... | 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,... | [
"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.46... | 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... | [
"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.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 r... | [
"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.4915... | 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 convertPoint... | [
"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.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 getTransf... | [
"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.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()) { r... | [
"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.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 a... | [
"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.523126... | 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\tVe... | [
"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.4... | 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 Strin... | [
"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... | 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());
... | {
"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; ... | [
"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.512... | 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());... | {
"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 pa... | [
"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.53... | 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 ... | [
"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.6... | 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; }",
"@O... | [
"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.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 ... | [
"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.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, in... | [
"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.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];... | [
"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.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 =... | [
"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.650281... | 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 ... | [
"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.6502812... | 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, heig... | [
"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.5923... | 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 setM... | [
"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.613302... | 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 hasW... | [
"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.55... | 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 i... | [
"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.6974... | 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 i... | [
"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.6974... | 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 }",
... | [
"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.675... | 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 ... | [
"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.5981... | 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 boolea... | [
"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.5... | 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 getHe... | [
"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.7066574... | 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 getHe... | [
"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.7066574... | 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 setHei... | [
"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.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();... | [
"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.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.... | [
"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.616... | 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))... | [
"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.6169... | 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()... | [
"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.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();",
... | [
"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.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 setFi... | [
"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.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 val... | [
"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.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 f... | [
"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.47... | 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)
... | {
"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}",
"priv... | [
"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... | 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 f... | [
"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.5277... | 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 getCons... | [
"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.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 get... | [
"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.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 ... | [
"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.592441... | 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 RuntimeExceptio... | [
"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.53... | 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 i... | [
"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.56711... | 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 ... | [
"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.77442... | 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 v... | [
"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.792912... | 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, fi... | {
"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 mouseRel... | [
"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.7681... | 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) {... | [
"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.7897... | 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(RMShapeMous... | {
"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 mouseEnt... | [
"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.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(RMShape... | {
"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 ... | [
"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.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
... | {
"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 mouseEx... | [
"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.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... | {
"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... | [
"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.6353... | 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 re... | {
"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.... | [
"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.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 }"... | [
"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.600888... | 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
Pro... | {
"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 getSel... | [
"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.54... | 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... | [
"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.61356866 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.