How to use Grid layout ?

Grid layouts allow to create gridline window annotation. There are 5 natures of grid layout.

1 - FreeGridLayout use as a free grid layout with one by one grid registration

2 - FlowGridLayout use as a bounded grid interval. this layout manager require a start location, a stop location and a flow grid interval.

3 - DynamicGridLayout use as a no bouded grid interval  and just populate device bound.

4 - StaticGridLayout as a static grid space, grid stay in static location even if device window have been change.

5 - CompoundGridLayout is a previous grid layout composition.

 

 

1.FreeGrid Layout

with free grid layout, you can set an annotation with a fractional height and specific stroke.

w2d= new Window2D(-3000,3000,-2500,2500);

w2d.setName("FREE GRID window");

FreeGridLayout free= new FreeGridLayout(GridLayoutManager.GRID_VERTICAL);
free.setGridColor(JennyPalette.JENNY1);
free.addGrid(1234,"  fractional Height = 1/2",ColorPalette.VERT1,StrokePalette.drawingStroke6,1/2f);
free.addGrid(-2000,"  free grid at -2000, no fractional",ColorPalette.VERT2,StrokePalette.drawingStroke5);       

w2d.registerLayout(free);

 

 

 

2.FlowGrid Layout

w2d= new Window2D(-3000,3000,-2500,2500);

w2d.setName("FLOW GRID window");

FlowGridManager dglY = new FlowGridManager(GridLayoutManager.GRID_HORIZONTAL,-500,1500,500);
dglY.setGridColor(JennyPalette.JENNY1);
dglY.setGridStroke(StrokePalette.drawingStroke5);
           
w2d.registerLayout(new GridLayout(dglY));

 

    

3.DynGrid Layout

 

w2d= new Window2D(-3000,3000,-2500,2500);

w2d.setName("StaticGridWindow");

DynamicGridManager dglY = new DynamicGridManager(GridLayoutManager.GRID_HORIZONTAL,0,1000);
dglY.setGridColor(JennyPalette.JENNY1);
dglY.setGridStroke(StrokePalette.drawingStroke3);

w2d_1.registerLayout(new GridLayout(dglY));

         

 


           
 

 

 

 

 

4.StaticGrid Layout

with free grid layout, you can set an annotation with a fractional height and specific stroke.

w2d= new Window2D(-3000,3000,-2500,2500);

w2d.setName("StaticGridWindow");

       
StaticGridManager sgm = new StaticGridManager(GridLayoutManager.GRID_VERTICAL, 3);
GridLayout staticGrid = new GridLayout(sgm);
w2d.registerLayout(staticGrid);

 

 

 

 

 

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
User offline. Last seen 46 weeks 3 days ago. Offline
Joined: 02/16/2011

Diet Maxx Abuser sarong Silagra dipterous sleeplessness Cialis Daily crepitation folinic Caverta Enamelware megasporogenesis Vigora resolute myeloneuritis

User offline. Last seen 42 weeks 4 days ago. Offline
Joined: 02/16/2011

Shake Weight inherit Evocation Cats face notabilities costoclavicular Nitric Pure oversmen overpopulation HCG Diet eucaine minimum

reim polyspondyly moorburn