MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / clone

Method clone

ij/src/main/java/ij/gui/Plot.java:4917–4923  ·  view source on GitHub ↗

A shallow clone that does not duplicate arrays or objects

()

Source from the content-addressed store, hash-verified

4915
4916 /** A shallow clone that does not duplicate arrays or objects */
4917 public PlotObject clone() {
4918 try {
4919 return (PlotObject)(super.clone());
4920 } catch (CloneNotSupportedException e) {
4921 return null;
4922 }
4923 }
4924
4925 /** A deep clone, which duplicates arrays etc.
4926 * Note that colors & font are not cloned; it is assumed that these wil not be modified but replaced,

Callers 1

deepCloneMethod · 0.95

Calls 1

cloneMethod · 0.65

Tested by

no test coverage detected