mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 06:33:34 +02:00
formen Paket in shapes umbenannt
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
import schule.ngb.zm.Vector;
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import java.awt.geom.CubicCurve2D;
|
||||
import java.awt.geom.Point2D;
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import java.awt.geom.Path2D;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Color;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
|
||||
import schule.ngb.zm.Color;
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import java.awt.geom.Path2D;
|
||||
import java.awt.geom.Point2D;
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import java.awt.geom.Point2D;
|
||||
import java.util.Arrays;
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
public class Rhombus extends Kite {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import java.awt.geom.RoundRectangle2D;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import schule.ngb.zm.Options;
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Layer;
|
||||
|
||||
@@ -9,44 +9,44 @@ public class ShapesLayer extends Layer {
|
||||
|
||||
protected boolean clearBeforeDraw = true;
|
||||
|
||||
private LinkedList<Shape> formen;
|
||||
private LinkedList<Shape> shapes;
|
||||
|
||||
public ShapesLayer() {
|
||||
super();
|
||||
formen = new LinkedList<Shape>();
|
||||
shapes = new LinkedList<Shape>();
|
||||
}
|
||||
|
||||
public ShapesLayer( int width, int height ) {
|
||||
super(width, height);
|
||||
formen = new LinkedList<Shape>();
|
||||
shapes = new LinkedList<Shape>();
|
||||
}
|
||||
|
||||
public void add( Shape... pFormen ) {
|
||||
synchronized( formen ) {
|
||||
synchronized( shapes ) {
|
||||
for( Shape f : pFormen ) {
|
||||
formen.add(f);
|
||||
shapes.add(f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void showAll() {
|
||||
synchronized( formen ) {
|
||||
for( Shape pShape : formen ) {
|
||||
synchronized( shapes ) {
|
||||
for( Shape pShape : shapes ) {
|
||||
pShape.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void hideAll() {
|
||||
synchronized( formen ) {
|
||||
for( Shape pShape : formen ) {
|
||||
synchronized( shapes ) {
|
||||
for( Shape pShape : shapes ) {
|
||||
pShape.show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public java.util.List<Shape> getShapes() {
|
||||
return formen;
|
||||
return shapes;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -55,8 +55,8 @@ public class ShapesLayer extends Layer {
|
||||
clear();
|
||||
}
|
||||
|
||||
synchronized( formen ) {
|
||||
for( Shape pShape : formen ) {
|
||||
synchronized( shapes ) {
|
||||
for( Shape pShape : shapes ) {
|
||||
if( pShape.isVisible() ) {
|
||||
pShape.draw(drawing);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Color;
|
||||
import schule.ngb.zm.Constants;
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import schule.ngb.zm.Options;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package schule.ngb.zm.formen;
|
||||
package schule.ngb.zm.shapes;
|
||||
|
||||
import java.awt.geom.Point2D;
|
||||
import java.util.Arrays;
|
||||
Reference in New Issue
Block a user