Modifier and Type | Field and Description |
---|---|
static String |
BASE_CLASS |
static String |
BASE_CLASS_TAG |
static String |
COLS |
protected static String |
DELIM |
static String |
ELEMENT_NAME |
protected double |
HEIGHT |
protected boolean |
initiated |
protected int |
nCells |
protected int |
nCols |
protected int |
nRows |
static String |
ROWS |
protected ShapeData[] |
shapeData |
static String |
SYSTEM_LIST |
protected double |
WIDTH |
Constructor and Description |
---|
Shaper(int nx,
int ny)
Creates new Shaper
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
buildShapes() |
Object |
clone() |
static Shaper |
createShaper(String className,
int cw,
int ch) |
Shaper |
edit(Component parent,
Options options,
Dimension dim,
Image img,
BoxBase bb) |
String |
getClassName() |
String |
getEditorPanelClassName() |
protected ShapeData |
getEnclosingShapeData() |
Element |
getJDomElement() |
int |
getNumCells() |
int |
getNumColumns() |
int |
getNumRows() |
Shape |
getRemainderShape(Rectangle2D rect) |
Shape |
getShape(int n,
Rectangle2D rect) |
ShapeData |
getShapeData(int n) |
static Shaper |
getShaper(Element e) |
static List |
getSystemShaperList(Options options) |
boolean |
hasRemainder() |
boolean |
rectangularShapes() |
void |
reset() |
void |
reset(int nCols,
int nRows) |
void |
setNumColumns(int n) |
void |
setNumRows(int n) |
void |
setProperties(Element e,
Object aux) |
protected final double WIDTH
protected final double HEIGHT
protected static final String DELIM
protected int nCols
protected int nRows
protected int nCells
protected ShapeData[] shapeData
protected boolean initiated
public static final String ELEMENT_NAME
public static final String COLS
public static final String ROWS
public static final String BASE_CLASS
public static final String BASE_CLASS_TAG
public static final String SYSTEM_LIST
public void reset(int nCols, int nRows)
public void reset()
public Element getJDomElement()
getJDomElement
in interface Domable
public String getClassName()
public static Shaper createShaper(String className, int cw, int ch) throws Exception
Exception
protected abstract void buildShapes()
public boolean rectangularShapes()
public String getEditorPanelClassName()
public void setProperties(Element e, Object aux) throws Exception
setProperties
in interface Domable
Exception
public Shape getShape(int n, Rectangle2D rect)
public ShapeData getShapeData(int n)
protected ShapeData getEnclosingShapeData()
public boolean hasRemainder()
public Shape getRemainderShape(Rectangle2D rect)
public int getNumRows()
public void setNumRows(int n)
public int getNumColumns()
public void setNumColumns(int n)
public int getNumCells()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
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.