Revision ada90d33
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedBitmap.java | ||
---|---|---|
81 | 81 |
|
82 | 82 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
83 | 83 |
/** |
84 |
* Copy constructor used to create a DistortedBitmap based on various parts of another object. |
|
85 |
* <p> |
|
86 |
* Whatever we do not clone gets created just like in the default constructor. |
|
87 |
* |
|
88 |
* @param db Source object to create our object from |
|
89 |
* @param flags A bitmask of values specifying what to copy. |
|
90 |
* For example, CLONE_BITMAP | CLONE_MATRIX. |
|
84 |
* {@see DistortedObject#DistortedObject(DistortedObject,flags)} |
|
91 | 85 |
*/ |
92 | 86 |
public DistortedBitmap(DistortedBitmap db, int flags) |
93 | 87 |
{ |
94 | 88 |
super(db,flags); |
95 | 89 |
} |
96 | 90 |
|
91 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
92 |
|
|
93 |
protected DistortedObject deepCopy(int flags) |
|
94 |
{ |
|
95 |
return new DistortedBitmap(this,flags); |
|
96 |
} |
|
97 |
|
|
97 | 98 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
98 | 99 |
} |
99 | 100 |
|
Also available in: Unified diff
Make deep copying DistortedObjects (needed in DistortedNode) standard.