1 package de.lathanda.eos.geo;
3 import de.lathanda.eos.base.layout.Transform;
4 import de.lathanda.eos.base.math.Point;
6 import de.lathanda.eos.base.Picture;
7 import de.lathanda.eos.base.layout.BalancePoint;
8 import de.lathanda.eos.base.layout.BoundingBox;
15 public abstract class Figure implements Cloneable {
16 private boolean visible;
51 this.visible = visible;
61 return (
Figure) this.clone();
62 }
catch (CloneNotSupportedException ex) {
69 if (this.group !=
null) {
128 public void move(
double dx,
double dy) {
179 public void scaleAt(
double x,
double y,
double factor) {
239 if (relativeTo.
group !=
null) {
241 if (parent !=
null) {
249 Group parent = relativeTo;
250 while (parent !=
null) {
317 return Integer.toString((
int)Math.round(angle));
abstract void applyTransform(Transform tf)
abstract void pushTransform()
abstract void restoreTransform()
FigureGroup getParentGroup()