Package gov.nasa.arc.mct.fastplot.utils.ComponentTraverser

Examples of gov.nasa.arc.mct.fastplot.utils.ComponentTraverser.ComponentProcedure


    final ArrayList<Integer> widths = new ArrayList<Integer>();
   
    SwingUtilities.invokeAndWait( new Runnable() {
      public void run() {
        frame.validate();
        ComponentTraverser.traverse(frame, new ComponentProcedure() {
          @Override
          public void run(Component c) {       
            if (c instanceof XYPlot) {
              widths.add(((XYPlot) c).getYAxis().getWidth());
              widths.add(((XYPlot) c).getXAxis().getStartMargin());
View Full Code Here


    final ArrayList<Integer> widths = new ArrayList<Integer>();
       
    SwingUtilities.invokeAndWait( new Runnable() {
      public void run() {
        frame.validate();
        ComponentTraverser.traverse(frame, new ComponentProcedure() {
          @Override
          public void run(Component c) {       
            if (c instanceof XYPlot) {
              widths.add(((XYPlot) c).getContents().getWidth());
            }
View Full Code Here

    final ArrayList<Integer> widths = new ArrayList<Integer>();
       
    SwingUtilities.invokeAndWait( new Runnable() {
      public void run() {
        frame.validate();
        ComponentTraverser.traverse(frame, new ComponentProcedure() {
          @Override
          public void run(Component c) {     
            if (c instanceof LegendManager) {
              widths.add(c.getWidth());
            }
View Full Code Here

  @Override
  public void layoutContainer(Container parent) {
    final List<XYPlotComponents> componentList = new ArrayList<XYPlotComponents>();
   
    /* Find all XYPlots and create mappings to their internal elements */
    ComponentTraverser.traverse(parent, new ComponentProcedure() {
      @Override
      public void run(Component c) {
        if (c instanceof XYPlot) componentList.add(new XYPlotComponents((XYPlot) c));     
      }     
    });
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.fastplot.utils.ComponentTraverser.ComponentProcedure

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.