public class Shape extends Polypoint implements ReReferencable, DeReferencable, TablePeer
Modifier and Type | Field and Description |
---|---|
double |
curviness |
SColor |
fillColor |
private boolean |
intIsDefinitive |
SColor |
lineColor |
double |
lineWidth |
static int |
MOVE_POINT |
private Position |
p_cachePosition |
private java.awt.Color |
p_fillColor |
private int |
p_index |
private IntPosition |
p_intPosition |
private java.awt.Color |
p_lineColor |
private PickableRegion |
p_pickableRegion |
private ShapePoint[] |
p_points |
private Position |
p_position |
private Position |
p_pressPosition |
private ShapePoint[] |
p_protos |
private boolean |
p_protosUTD |
private boolean |
p_rotating |
private int |
p_symmetry |
private Table |
p_table |
private int |
pointColor |
private boolean |
pointLeadsArrays |
private int |
protoPointColor |
private Assembly |
r_parent |
static int |
ROTATE_SHAPE |
static int |
SHIFT_SHAPE |
java.lang.String |
symmetry |
private boolean |
updatePickable |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(int ipr,
double x,
double y) |
void |
addPoint(int ipr,
ShapePoint sp) |
void |
attachTable(Table tbl) |
private void |
cachePositions() |
private double |
cog(double[] ap) |
void |
contract(double d) |
private double[] |
copyArray(double[] da) |
private double[][] |
curveInterps() |
boolean |
deletePoint(int itg) |
boolean |
deletePoint(ShapePoint sp) |
void |
deReference() |
void |
expand(double d) |
RShape |
exportRunish(double f) |
void |
flagPointMoved() |
double[][] |
getBoundaryPoints() |
PickableRegion |
getBoundaryRegion() |
double |
getCurviness() |
java.awt.Color |
getFillColor() |
int |
getIndex() |
IntPosition |
getIntPosition() |
java.awt.Color |
getLineColor() |
double |
getLineWidth() |
Assembly |
getParent() |
ShapePoint[] |
getPoints() |
Position |
getPosition() |
ShapePoint[] |
getProtoPoints() |
double |
getSmoothness() |
java.lang.String |
getStringClosure() |
java.lang.String |
getStringSymmetry() |
int |
getSymmetry() |
Table |
getTable() |
double[] |
getXPts() |
double[] |
getYPts() |
boolean |
hasIntPosition() |
void |
initFromTable(Table tbl) |
void |
initPickable() |
boolean |
isExtensible() |
boolean |
isFullyAngular() |
boolean |
isFullyRounded() |
boolean |
isQuadrilateral() |
boolean |
isRectangleSymmetry() |
boolean |
isRectangular() |
boolean |
isSquareSymmetry() |
boolean |
isSymmetric() |
Shape |
makeCopy() |
void |
makePoints() |
private void |
makeProtos() |
void |
movePoint(ShapePoint sp,
Position pos,
int action) |
void |
notifyObservers() |
boolean |
overlaps(Shape shape) |
void |
pointPressed(ShapePoint sp) |
void |
regionPressed() |
void |
removeChild(TablePeer child) |
void |
reReference() |
void |
rescale(double d) |
void |
rotate(Position pos) |
private void |
rotate(ShapePoint sp,
Position pos) |
private void |
rotateFromTo(Position pc,
Position pos) |
void |
select() |
void |
setClosure(java.lang.String s) |
void |
setCurviness(double d) |
void |
setFillColor(java.awt.Color col) |
void |
setIndex(int ind) |
void |
setIntPosition(IntPosition intp) |
void |
setLineColor(java.awt.Color col) |
void |
setLineWidth(double d) |
void |
setParent(Assembly a) |
void |
setPosition(Position p) |
void |
setSymmetry(int isym) |
void |
setSymmetryString(java.lang.String s) |
void |
shiftExpand(double ox,
double oy,
double d) |
void |
syncArrays() |
exportAsString, getClosure, getCopy, isClosed, isFilled, isOpen, rotate, setClosure, setXpts, setYpts, translate
public double curviness
public double lineWidth
public SColor lineColor
public SColor fillColor
private java.awt.Color p_lineColor
private java.awt.Color p_fillColor
public java.lang.String symmetry
private int p_symmetry
public static final int MOVE_POINT
public static final int ROTATE_SHAPE
public static final int SHIFT_SHAPE
private ShapePoint[] p_points
private ShapePoint[] p_protos
private boolean p_protosUTD
private Position p_position
private Position p_cachePosition
private Position p_pressPosition
private PickableRegion p_pickableRegion
private boolean updatePickable
private IntPosition p_intPosition
private boolean intIsDefinitive
private Assembly r_parent
private boolean pointLeadsArrays
private boolean p_rotating
private int pointColor
private int protoPointColor
private int p_index
private Table p_table
public Shape()
public Shape(Shape s)
public void setLineWidth(double d)
public void setIndex(int ind)
public int getIndex()
public void select()
public ShapePoint[] getPoints()
public ShapePoint[] getProtoPoints()
public java.lang.String getStringClosure()
public void setParent(Assembly a)
public Assembly getParent()
public void setCurviness(double d)
public double getCurviness()
public void setClosure(java.lang.String s)
private double[] copyArray(double[] da)
public Shape makeCopy()
public void setSymmetryString(java.lang.String s)
public void reReference()
reReference
in interface ReReferencable
public void deReference()
deReference
in interface DeReferencable
public double getSmoothness()
public java.awt.Color getLineColor()
public java.awt.Color getFillColor()
public double getLineWidth()
public boolean isExtensible()
public int getSymmetry()
private void cachePositions()
public void setPosition(Position p)
public void initPickable()
public PickableRegion getBoundaryRegion()
public void makePoints()
private void makeProtos()
public Position getPosition()
public void setIntPosition(IntPosition intp)
public boolean hasIntPosition()
public IntPosition getIntPosition()
public void flagPointMoved()
public void syncArrays()
public void addPoint(int ipr, double x, double y)
public void addPoint(int ipr, ShapePoint sp)
public boolean deletePoint(ShapePoint sp)
public boolean deletePoint(int itg)
private double cog(double[] ap)
public void regionPressed()
public void pointPressed(ShapePoint sp)
public void movePoint(ShapePoint sp, Position pos, int action)
public void rotate(Position pos)
private void rotate(ShapePoint sp, Position pos)
public void setLineColor(java.awt.Color col)
public void setFillColor(java.awt.Color col)
public boolean isRectangular()
public boolean overlaps(Shape shape)
public void attachTable(Table tbl)
attachTable
in interface TablePeer
public void initFromTable(Table tbl)
initFromTable
in interface TablePeer
public void removeChild(TablePeer child)
removeChild
in interface TablePeer
public void setSymmetry(int isym)
public void rescale(double d)
public void expand(double d)
public void shiftExpand(double ox, double oy, double d)
public void contract(double d)
public java.lang.String getStringSymmetry()
public boolean isQuadrilateral()
public boolean isFullyRounded()
public boolean isFullyAngular()
public boolean isSymmetric()
public boolean isRectangleSymmetry()
public boolean isSquareSymmetry()
public void notifyObservers()
notifyObservers
in interface TablePeer
private double[][] curveInterps()
public double[][] getBoundaryPoints()
public RShape exportRunish(double f)
Copyright © 2013. All Rights Reserved.