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 classHexagonAdapterClass that is adapter for hexagon.jar library (Hexagon class).Methods in adapter with parameters of type Shape Modifier and Type Method Description intHexagonAdapter. 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 ShapeCmdAddShape. shapeprivate ShapeCmdBringToBack. shapeprivate ShapeCmdBringToFront. shapeprivate ShapeCmdRemoveShape. shapeprivate ShapeCmdSelectShape. shapeprivate ShapeCmdToBack. shapeprivate ShapeCmdToFront. shapeFields in commands with type parameters of type Shape Modifier and Type Field Description private java.util.ArrayList<Shape>CmdRemoveShape. shapesConstructors 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 ShapeDrawingController. 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. shapesMethods in model that return Shape Modifier and Type Method Description ShapeDrawingModel. 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 voidDrawingModel. add(Shape shape)Add new shape.voidDrawingModel. addToIndex(int index, Shape shape)Add new shape to specified index.intDrawingModel. getIndexOf(Shape shape)voidDrawingModel. remove(Shape shape)Remove shape from list of shapes.Method parameters in model with type arguments of type Shape Modifier and Type Method Description voidDrawingModel. addMultiple(java.util.ArrayList<Shape> shapes)Add multiple shapes to list of shapes.voidDrawingModel. 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 classCircleClass that represent circle shape.classLineClass that represent line shape.classPointClass that represent point shape.classRectangleClass that represent rectangle shape.classSquareClass that represent square shape.classSurfaceShapeAbstract class that must implement all shapes with surface.Methods in shapes with parameters of type Shape Modifier and Type Method Description intCircle. compareTo(Shape shape)Compare two circles by radius length.intLine. compareTo(Shape shape)Compare two lines depend by length.intPoint. compareTo(Shape shape)Compare two points depend on their distance.intSquare. 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 ShapeFileLog. parseShape(java.lang.String shape, java.lang.String shapeParameters)Determine which type of shape need to be parsed and call appropriate method.
-