|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.visu.components.bricks.AChocoBrick
public abstract class AChocoBrick
Field Summary | |
---|---|
static int |
CENTER
constants for text alignement |
protected AChocoPApplet |
chopapplet
The mother AChocoPApplet where the brick appears. |
static int |
LEFT
constants for text alignement |
protected int |
policy
the policy of text alignement |
static int |
RIGHT
constants for text alignement |
protected Var |
var
The Var represented by the brick |
Constructor Summary | |
---|---|
AChocoBrick(AChocoPApplet chopapplet,
Var var)
|
Method Summary | |
---|---|
protected float |
alignText(float y,
float length)
Returns the y coordinate where a text has to be write. |
protected int |
alignText(int y,
int length)
Returns the y coordinate where a text has to be write. |
protected DisposableIntIterator |
getDomainValues()
Return an IntIterator over the values of a specific variable |
protected int |
getLowBound()
Return the lower bound of a variable |
protected int |
getUppBound()
Return the upper bound of a variable |
protected String |
getValues()
Return a string that represents the instantiated values of Var . |
Var |
getVar()
Return the var of the brick |
protected int |
getVarSize()
Return the domain size of a variable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface choco.kernel.visu.components.bricks.IChocoBrick |
---|
drawBrick, refresh |
Field Detail |
---|
public static final int CENTER
public static final int LEFT
public static final int RIGHT
protected int policy
protected final AChocoPApplet chopapplet
AChocoPApplet
where the brick appears.
protected final Var var
Var
represented by the brick
Constructor Detail |
---|
public AChocoBrick(AChocoPApplet chopapplet, Var var)
Method Detail |
---|
public final Var getVar()
getVar
in interface IChocoBrick
protected final int getVarSize()
protected final int getLowBound()
protected final int getUppBound()
protected final DisposableIntIterator getDomainValues()
protected final int alignText(int y, int length)
y
- length
-
protected final float alignText(float y, float length)
y
- length
-
protected final String getValues()
Var
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |