| FlowMetrics |
FlowMetrics knows how to create and lay out metrics from start to end value with the
specified interval between two metrics
For example, here is the basic FlowMetrics
View2D view =new View2D();
view.setPlaceHolder(100);
view.getDevice2D().setOpaque(true);
view.getDevice2D().setBackground(Color.WHITE);
FlowMetrics flowSouth = new FlowMetrics(0,2500,500,IWindow.WINDOW2D_SOUTH);
//or
//FlowMetrics flowSouth = new FlowMetrics(IWindow.WINDOW2D_SOUTH);
//flowSouth.setFlowStart(0);
//flowSouth.setFlowEnd(2500);
//flowSouth.setFlowInterval(500);
Window2D w2d = new Window2D(-3000,3000,-2500,2500);
w2d.setName("flow metrics window");
w2d.registerLayout(flowSouth);
container.add(view,BorderLayout.CENTER);
|