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;
|
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.Options;
|
||||||
import schule.ngb.zm.Vector;
|
import schule.ngb.zm.Vector;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import schule.ngb.zm.Options;
|
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.CubicCurve2D;
|
||||||
import java.awt.geom.Point2D;
|
import java.awt.geom.Point2D;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import java.awt.geom.Path2D;
|
import java.awt.geom.Path2D;
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import schule.ngb.zm.Options;
|
import schule.ngb.zm.Options;
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import schule.ngb.zm.Color;
|
import schule.ngb.zm.Color;
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import schule.ngb.zm.Options;
|
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.Options;
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
|
|
||||||
import schule.ngb.zm.Color;
|
import schule.ngb.zm.Color;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import schule.ngb.zm.Options;
|
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.Path2D;
|
||||||
import java.awt.geom.Point2D;
|
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.awt.geom.Point2D;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import schule.ngb.zm.Options;
|
import schule.ngb.zm.Options;
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
public class Rhombus extends Kite {
|
public class Rhombus extends Kite {
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import java.awt.geom.RoundRectangle2D;
|
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 org.jetbrains.annotations.NotNull;
|
||||||
import schule.ngb.zm.Options;
|
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.Options;
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import schule.ngb.zm.Layer;
|
import schule.ngb.zm.Layer;
|
||||||
|
|
||||||
@@ -9,44 +9,44 @@ public class ShapesLayer extends Layer {
|
|||||||
|
|
||||||
protected boolean clearBeforeDraw = true;
|
protected boolean clearBeforeDraw = true;
|
||||||
|
|
||||||
private LinkedList<Shape> formen;
|
private LinkedList<Shape> shapes;
|
||||||
|
|
||||||
public ShapesLayer() {
|
public ShapesLayer() {
|
||||||
super();
|
super();
|
||||||
formen = new LinkedList<Shape>();
|
shapes = new LinkedList<Shape>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ShapesLayer( int width, int height ) {
|
public ShapesLayer( int width, int height ) {
|
||||||
super(width, height);
|
super(width, height);
|
||||||
formen = new LinkedList<Shape>();
|
shapes = new LinkedList<Shape>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void add( Shape... pFormen ) {
|
public void add( Shape... pFormen ) {
|
||||||
synchronized( formen ) {
|
synchronized( shapes ) {
|
||||||
for( Shape f : pFormen ) {
|
for( Shape f : pFormen ) {
|
||||||
formen.add(f);
|
shapes.add(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void showAll() {
|
public void showAll() {
|
||||||
synchronized( formen ) {
|
synchronized( shapes ) {
|
||||||
for( Shape pShape : formen ) {
|
for( Shape pShape : shapes ) {
|
||||||
pShape.hide();
|
pShape.hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void hideAll() {
|
public void hideAll() {
|
||||||
synchronized( formen ) {
|
synchronized( shapes ) {
|
||||||
for( Shape pShape : formen ) {
|
for( Shape pShape : shapes ) {
|
||||||
pShape.show();
|
pShape.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public java.util.List<Shape> getShapes() {
|
public java.util.List<Shape> getShapes() {
|
||||||
return formen;
|
return shapes;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -55,8 +55,8 @@ public class ShapesLayer extends Layer {
|
|||||||
clear();
|
clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
synchronized( formen ) {
|
synchronized( shapes ) {
|
||||||
for( Shape pShape : formen ) {
|
for( Shape pShape : shapes ) {
|
||||||
if( pShape.isVisible() ) {
|
if( pShape.isVisible() ) {
|
||||||
pShape.draw(drawing);
|
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.Color;
|
||||||
import schule.ngb.zm.Constants;
|
import schule.ngb.zm.Constants;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package schule.ngb.zm.formen;
|
package schule.ngb.zm.shapes;
|
||||||
|
|
||||||
import schule.ngb.zm.Options;
|
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.awt.geom.Point2D;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
Reference in New Issue
Block a user