Uses of Class
shapes.Shape
-
Packages that use Shape Package Description adapter commands controller model shapes strategy -
-
Uses of Shape in adapter
Subclasses of Shape in adapter Modifier and Type Class Description class
HexagonAdapter
Class that is adapter for hexagon.jar library (Hexagon class).Methods in adapter with parameters of type Shape Modifier and Type Method Description int
HexagonAdapter. compareTo(Shape hex)
Compares two hexagons depend on their radius. -
Uses of Shape in commands
Fields in commands declared as Shape Modifier and Type Field Description private Shape
CmdAddShape. shape
private Shape
CmdBringToBack. shape
private Shape
CmdBringToFront. shape
private Shape
CmdRemoveShape. shape
private Shape
CmdSelectShape. shape
private Shape
CmdToBack. shape
private Shape
CmdToFront. shape
Fields in commands with type parameters of type Shape Modifier and Type Field Description private java.util.ArrayList<Shape>
CmdRemoveShape. shapes
Constructors in commands with parameters of type Shape Constructor Description CmdAddShape(Shape shape, DrawingModel model)
CmdBringToBack(DrawingModel model, Shape shape)
CmdBringToFront(DrawingModel model, Shape shape, int size)
CmdRemoveShape(Shape shape, DrawingModel model)
CmdSelectShape(Shape shape, boolean selectedState)
CmdToBack(DrawingModel model, Shape shape)
CmdToFront(DrawingModel model, Shape shape)
Constructor parameters in commands with type arguments of type Shape Constructor Description CmdRemoveShape(java.util.ArrayList<Shape> shapes, DrawingModel model)
-
Uses of Shape in controller
Methods in controller that return Shape Modifier and Type Method Description Shape
DrawingController. getSelectedShape()
Method that returns currently selected shape. -
Uses of Shape in model
Fields in model with type parameters of type Shape Modifier and Type Field Description private java.util.ArrayList<Shape>
DrawingModel. shapes
Methods in model that return Shape Modifier and Type Method Description Shape
DrawingModel. getByIndex(int index)
Methods in model that return types with arguments of type Shape Modifier and Type Method Description java.util.ArrayList<Shape>
DrawingModel. getAll()
Methods in model with parameters of type Shape Modifier and Type Method Description void
DrawingModel. add(Shape shape)
Add new shape.void
DrawingModel. addToIndex(int index, Shape shape)
Add new shape to specified index.int
DrawingModel. getIndexOf(Shape shape)
void
DrawingModel. remove(Shape shape)
Remove shape from list of shapes.Method parameters in model with type arguments of type Shape Modifier and Type Method Description void
DrawingModel. addMultiple(java.util.ArrayList<Shape> shapes)
Add multiple shapes to list of shapes.void
DrawingModel. removeMultiple(java.util.ArrayList<Shape> shapes)
Remove multiple shapes from list of shapes. -
Uses of Shape in shapes
Subclasses of Shape in shapes Modifier and Type Class Description class
Circle
Class that represent circle shape.class
Line
Class that represent line shape.class
Point
Class that represent point shape.class
Rectangle
Class that represent rectangle shape.class
Square
Class that represent square shape.class
SurfaceShape
Abstract class that must implement all shapes with surface.Methods in shapes with parameters of type Shape Modifier and Type Method Description int
Circle. compareTo(Shape shape)
Compare two circles by radius length.int
Line. compareTo(Shape shape)
Compare two lines depend by length.int
Point. compareTo(Shape shape)
Compare two points depend on their distance.int
Square. compareTo(Shape shape)
Compares two squares depend on their surface. -
Uses of Shape in strategy
Methods in strategy that return Shape Modifier and Type Method Description private Shape
FileLog. parseShape(java.lang.String shape, java.lang.String shapeParameters)
Determine which type of shape need to be parsed and call appropriate method.
-