| LegendConstraints |
LegendContraints define the constraints associated to the legend position
For example, here is the constraints LegendConstraints
Legend legend = new Legend("Your Legend");
LegendLayout legendLayout = new LegendLayout(legend, new LegendConstraints(
LegendPosition.South, 0.8f, LegendAlignement.Rigth));
//the position is the window zone SOUTH,WEST,NORTH,EAST
//the depth is the fraction [0...1] of border component from device border to legend
//Alignment is LEFT, MIDDLE, RIGHT
w2d.registerLayout(lgendL);
|