How to use Legend Layout?
The legend can be register as follow :
Window2D w2d = new Window2D(-3000,3000,-2500,2500);
w2d.setName("legend window");
Legend l1 = new Legend("South/Right/depth 0.8");
l1.setFont(InputFonts.getYorkville(12));
LegendLayout lgendL1 = new LegendLayout(l1,new LegendConstraints(LegendPosition.South,0.8f,LegendAlignment.Rigth));
w2d.registerLayout(lgendL1);
Legend l11 = new Legend("South/Middle/depth 0.5");
l11.setFont(InputFonts.getYorkville(12));
LegendLayout lgendL11 = new LegendLayout(l11,new LegendConstraints(LegendPosition.South,0.5f,LegendAlignment.Middle));
w2d.registerLayout(lgendL11);
Legend l2 = new Legend("North/Left/depth 0.5");
l2.setFont(InputFonts.getFont(InputFonts.MODE_NINE,12));
LegendLayout lgendL2 = new LegendLayout(l2,new LegendConstraints(LegendPosition.North,0.5f,LegendAlignment.Left));
w2d.registerLayout(lgendL2);
Legend l3 = new Legend("West/Left/depth 0.7");
l3.setFont(InputFonts.getFont(InputFonts.PHOENIX,12));
LegendLayout lgendL3 = new LegendLayout(l3,new LegendConstraints(LegendPosition.West,0.7f,LegendAlignment.Left));
w2d.registerLayout(lgendL3);

