|
|

|
|
|
# Tethering
|
|
|
|
|
|
## Tetherable
|
|
|
|
|
|
```java
|
|
|
public interface Tetherable {
|
|
|
public boolean isProviderFor(Tether tether);
|
|
|
public boolean isReceiverFor(Tether tether);
|
|
|
public boolean isPotentialTether();
|
|
|
public void addPotentialTether(Tetherable potential, Tether tether, boolean propagate);
|
|
|
public void removePotentialTether(Tetherable potential, boolean propagate);
|
|
|
public double getTetheringDistance();
|
|
|
public Tether getTetherFor(Tetherable tethered);
|
|
|
public Point getTetherOrigin();
|
|
|
public void setTetherOrigin(Point Origin);
|
|
|
public void tetherWith(Tetherable otherTetherable, boolean propagate);
|
|
|
public void separateFrom(Tetherable tethered, boolean propagate);
|
|
|
public boolean isActive();
|
|
|
public boolean isTethered();
|
|
|
public boolean isDraggable();
|
|
|
public boolean isExclusive();
|
|
|
public boolean rotatesWithTether();
|
|
|
public boolean isTetheredWith(Tetherable otherTetherable);
|
|
|
public void addTetherListener(TetherListener listener);
|
|
|
public void removeTetherListener(TetherListener listener);
|
|
|
}
|
|
|
```
|
|
|
|
|
|
<div align="center">
|
|
|
<figure>
|
|
|
<img src="uploads/5e4b3836ff50f6c40cffde46d2577765/TetheringSequence.png">
|
... | ... | |