Package eu.pedu.lib20s.geom
Class AShape
java.lang.Object
eu.pedu.lib20s.geom.ANamed
eu.pedu.lib20s.geom.AMovable
eu.pedu.lib20s.geom.AChangeable
eu.pedu.lib20s.geom.AShape
- All Implemented Interfaces:
IFlexible
,IChangeable
,IMovable
,IResizable
,IShape
,ICopyable
- Direct Known Subclasses:
Ellipse
,Multishape
,Rectangle
,Triangle
public abstract class AShape extends AChangeable implements IShape
Třída
AShape
je společným rodičem grafických objektů
zobrazitelné prostřednictvím správce plátna – instance třídy
CanvasManager
.-
Constructor Summary
Constructors Constructor Description AShape(int x, int y, int width, int height)
Vytvoří na zadaných souřadnicích instanci se zadanou šířkou a výškou. -
Method Summary
Methods inherited from class eu.pedu.lib20s.geom.AChangeable
forToString, getHeight, getWidth, setSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface eu.pedu.lib20s.geom.IMovable
getPosition, getX, getY, moveDown, moveRight, setPosition, setPosition, setX, setY
-
Constructor Details
-
AShape
public AShape(int x, int y, int width, int height)Vytvoří na zadaných souřadnicích instanci se zadanou šířkou a výškou.- Parameters:
x
- Vodorovná (x-ová) souřadnice instance, x=0 má levý okraj plátna, souřadnice roste dopravay
- Svislá (y-ová) souřadnice instance, y=0 má horní okraj plátna, souřadnice roste dolůwidth
- Šířka vytvářené instance, šířka >= 0height
- Výška vytvářené instance, výška >= 0
-
-
Method Details