Package operations.create
Class ShapeCreation
- java.lang.Object
-
- operations.create.ShapeCreation
-
public class ShapeCreation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShapeCreation()
manages the creation of all shapes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IShapes
createShape(java.lang.String shapeType, java.util.List<java.lang.String> mainParams)
discerns which shape to make and what parameters neededint
getCx()
int
getCy()
Colours
getFill()
java.util.logging.Logger
getLog()
int
getRx()
int
getRy()
ICreateShape
getShapeCreation()
Colours
getStroke()
int
getStroke_width()
java.lang.String
getText()
void
setCx(int cx)
void
setCy(int cy)
void
setFill(java.lang.String fill)
void
setFill(Colours fill)
void
setLog(java.util.logging.Logger log)
void
setRx(int rx)
void
setRy(int ry)
void
setShapeCreation(ICreateShape shapeCreation)
void
setStroke(Colours stroke)
void
setStroke_width(int stroke_width)
void
setText(java.lang.String text)
-
-
-
Method Detail
-
createShape
public IShapes createShape(java.lang.String shapeType, java.util.List<java.lang.String> mainParams) throws ShapeCreationException
discerns which shape to make and what parameters needed- Parameters:
shapeType
- StringmainParams
- Stringlist- Returns:
- IShapes
- Throws:
ShapeCreationException
- if problem with shapeCreation
-
getShapeCreation
public ICreateShape getShapeCreation()
-
setShapeCreation
public void setShapeCreation(ICreateShape shapeCreation)
-
getCx
public int getCx()
-
setCx
public void setCx(int cx)
-
getCy
public int getCy()
-
setCy
public void setCy(int cy)
-
getFill
public Colours getFill()
-
setFill
public void setFill(java.lang.String fill)
-
getLog
public java.util.logging.Logger getLog()
-
setLog
public void setLog(java.util.logging.Logger log)
-
getRx
public int getRx()
-
setRx
public void setRx(int rx)
-
getRy
public int getRy()
-
setRy
public void setRy(int ry)
-
getStroke_width
public int getStroke_width()
-
setStroke_width
public void setStroke_width(int stroke_width)
-
setFill
public void setFill(Colours fill)
-
getStroke
public Colours getStroke()
-
setStroke
public void setStroke(Colours stroke)
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String text)
-
-