MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / setLocation

Method setLocation

src/org/opensourcephysics/media/core/TPoint.java:167–176  ·  view source on GitHub ↗

Overrides Point2D.Double setLocation method. @param x the x position @param y the y position

(double x, double y)

Source from the content-addressed store, hash-verified

165 * @param y the y position
166 */
167 @Override
168 public void setLocation(double x, double y) {
169 if ((getX() == x) && (getY() == y)) {
170 return;
171 }
172 super.setLocation(x, y);
173 if (support != null) { // VectorStep
174 support.firePropertyChange("location", null, this); //$NON-NLS-1$
175 }
176 }
177
178 /**
179 * Gets the frame number this TPoint uses for coordinate system transforms and

Callers 15

setXYMethod · 0.95
centerMethod · 0.95
setPositionOnLineMethod · 0.95
actionPerformedMethod · 0.45
createGUIMethod · 0.45
actionPerformedMethod · 0.45
getStyleDialogMethod · 0.45
aboutThreadsMethod · 0.45
ProgressDialogMethod · 0.45
actionPerformedMethod · 0.45
setSizeMethod · 0.45
LaunchClassChooserMethod · 0.45

Calls 3

getXMethod · 0.65
getYMethod · 0.65
firePropertyChangeMethod · 0.45

Tested by 11

Test_EventMethod · 0.36
ReleaseZipFileTestMethod · 0.36
Test_DialogMethod · 0.36
ImportExportDialogMethod · 0.36
ImportExportJDialogMethod · 0.36
Test_Dialog2Method · 0.36
ImportExportDialog2Method · 0.36
ImportExportJDialog2Method · 0.36
Test_DialogMethod · 0.36
ImportExportDialogMethod · 0.36
ImportExportJDialogMethod · 0.36