public class DiscreteGroupSimpleConstraint extends Object implements DiscreteGroupConstraint
Modifier and Type | Field and Description |
---|---|
protected double[] |
centerPoint |
static DiscreteGroupSimpleConstraint |
defaultConstraint |
static int |
globalMaxNumberElements |
double |
maxDistance |
int |
maxWordLength |
protected double[] |
tmp |
Constructor and Description |
---|
DiscreteGroupSimpleConstraint() |
DiscreteGroupSimpleConstraint(double d,
int m) |
DiscreteGroupSimpleConstraint(double d,
int m,
int max) |
DiscreteGroupSimpleConstraint(int max) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptElement(DiscreteGroupElement dge) |
void |
addListener(ActionListener l) |
void |
broadcastChange() |
double[] |
getCenterPoint() |
Component |
getInspector() |
double |
getMaxDistance() |
int |
getMaxNumberElements() |
int |
getMaxWordLength() |
void |
removeListener(ActionListener l) |
void |
setCenterPoint(double[] centerPoint) |
void |
setManhattan(boolean b) |
void |
setMaxDistance(double maxDistance) |
void |
setMaxNumberElements(int i) |
void |
setMaxWordLength(int maxWordLength) |
void |
update() |
protected double[] centerPoint
public static DiscreteGroupSimpleConstraint defaultConstraint
public static int globalMaxNumberElements
public double maxDistance
public int maxWordLength
protected transient double[] tmp
public DiscreteGroupSimpleConstraint()
public DiscreteGroupSimpleConstraint(double d, int m)
public DiscreteGroupSimpleConstraint(double d, int m, int max)
public DiscreteGroupSimpleConstraint(int max)
public boolean acceptElement(DiscreteGroupElement dge)
acceptElement
in interface DiscreteGroupConstraint
public void addListener(ActionListener l)
public void broadcastChange()
public double[] getCenterPoint()
public Component getInspector()
public double getMaxDistance()
public int getMaxNumberElements()
getMaxNumberElements
in interface DiscreteGroupConstraint
public int getMaxWordLength()
public void removeListener(ActionListener l)
public void setCenterPoint(double[] centerPoint)
public void setManhattan(boolean b)
public void setMaxDistance(double maxDistance)
public void setMaxNumberElements(int i)
setMaxNumberElements
in interface DiscreteGroupConstraint
public void setMaxWordLength(int maxWordLength)
public void update()
update
in interface DiscreteGroupConstraint