public class JigSaw extends Shaper
Modifier and Type | Field and Description |
---|---|
protected static String |
BASE_WIDTH_FACTOR |
protected double |
baseWidthFactor |
protected static String |
RANDOM_LINES |
protected boolean |
randomLines |
protected static String |
TOOTH_HEIGHT_FACTOR |
protected double |
toothHeightFactor |
BASE_CLASS, BASE_CLASS_TAG, COLS, DELIM, ELEMENT_NAME, HEIGHT, initiated, nCells, nCols, nRows, ROWS, shapeData, SYSTEM_LIST, WIDTH
Constructor and Description |
---|
JigSaw(int nx,
int ny) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildShapes() |
protected int |
getBaseFactor() |
protected double |
getDefaultBaseWidthFactor() |
protected double |
getDefaultToothHeightFactor() |
String |
getEditorPanelClassName() |
Element |
getJDomElement() |
protected void |
hLine(ShapeData sd,
int type,
double x,
double y,
double w,
double h,
boolean inv) |
void |
setProperties(Element e,
Object aux) |
protected void |
vLine(ShapeData sd,
int type,
double x,
double y,
double w,
double h,
boolean inv) |
clone, createShaper, edit, getClassName, getEnclosingShapeData, getNumCells, getNumColumns, getNumRows, getRemainderShape, getShape, getShapeData, getShaper, getSystemShaperList, hasRemainder, rectangularShapes, reset, reset, setNumColumns, setNumRows
protected double baseWidthFactor
protected double toothHeightFactor
protected boolean randomLines
protected static final String BASE_WIDTH_FACTOR
protected static final String TOOTH_HEIGHT_FACTOR
protected static final String RANDOM_LINES
protected int getBaseFactor()
public String getEditorPanelClassName()
getEditorPanelClassName
in class Shaper
protected double getDefaultBaseWidthFactor()
protected double getDefaultToothHeightFactor()
public Element getJDomElement()
getJDomElement
in interface Domable
getJDomElement
in class Shaper
public void setProperties(Element e, Object aux) throws Exception
setProperties
in interface Domable
setProperties
in class Shaper
Exception
protected void buildShapes()
buildShapes
in class Shaper
protected void hLine(ShapeData sd, int type, double x, double y, double w, double h, boolean inv)
protected void vLine(ShapeData sd, int type, double x, double y, double w, double h, boolean inv)
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.