Package java.awt

Examples of java.awt.LayoutManager


  @Override
  public boolean dragExit(Point p) {
    if (isDroppingMenuItem() || isDroppingMenuBar())
      return super.dragExit(p);
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout != null) {
      LayoutAdapter layoutAdapter = ((CompositeAdapter) adaptable).getLayoutAdapter();
      return layoutAdapter.dragExit(p);
    } else
      return true;
View Full Code Here


  @Override
  public boolean dragOver(Point p) {
    if (isDroppingMenuItem() || isDroppingMenuBar())
      return super.dragOver(p);
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout == null) {
      int state = adaptable.getState();
      if (state == Azimuth.STATE_BEAN_HOVER) {
        adaptable.setMascotLocation(p);
      } else {
View Full Code Here

  }

  @Override
  public void fillConstraintsAction(MenuManager menu, Component child) {
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout != null)
      ((CompositeAdapter)adaptable).getLayoutAdapter().fillConstraintsAction(menu, child);
  }
View Full Code Here

  }

  private void fillLayoutAction(MenuManager layoutMenu) {
    Action nullLayoutAction = new NullLayoutAction((JPanelAdapter)adaptable);
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout == null)
      nullLayoutAction.setChecked(true);
    layoutMenu.add(nullLayoutAction);
    for (String layoutClass : LayoutAdapter.getLayoutClasses()) {
      IConfigurationElement config = LayoutAdapter
          .getLayoutConfig(layoutClass);
      SetLayoutAction action = new SetLayoutAction((JPanelAdapter)adaptable, config);
      if (layout != null) {
        String currLayoutClass = layout.getClass().getName();
        if (currLayoutClass.equals(layoutClass)) {
          action.setChecked(true);
        }
      }
      layoutMenu.add(action);
View Full Code Here

public class JPanelPainter extends CompositePainter {

  @Override
  public void paintHovered(Graphics clipg) {
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout != null) {
      LayoutAdapter layoutAdapter = ((CompositeAdapter)adaptable).getLayoutAdapter();
      layoutAdapter.paintHovered(clipg);
    }
    clipg.setColor(Color.lightGray);
View Full Code Here

    clipg.drawRect(0, 0, jpanel.getWidth() -1 , jpanel.getHeight() - 1);
  }
  @Override
  public void paintGrid(Graphics clipg) {
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout != null) {
      LayoutAdapter layoutAdapter = ((CompositeAdapter)adaptable).getLayoutAdapter();
      layoutAdapter.paintGrid(clipg);
    }
  }
View Full Code Here

    }
  }
  @Override
  public void paintHint(Graphics g) {
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout != null) {
      LayoutAdapter layoutAdapter = ((CompositeAdapter)adaptable).getLayoutAdapter();
      layoutAdapter.paintHint(g);
    }
  }
View Full Code Here

    }
  }
  @Override
  public void paintAnchor(Graphics g) {
    JPanel jpanel = (JPanel) adaptable.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout != null) {
      LayoutAdapter layoutAdapter = ((CompositeAdapter)adaptable).getLayoutAdapter();
      layoutAdapter.paintAnchor(g);
    }
  }
View Full Code Here

  public SetLayoutAction(JPanelAdapter adapter, IConfigurationElement config) {
    super(config.getAttribute("name"), AS_RADIO_BUTTON);
    this.config = config;
    this.jpaneladapter = adapter;
    JPanel jpanel = (JPanel) jpaneladapter.getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout == null)
      oldClassname = "null";
    newClassname = config.getAttribute("layoutClass");
  }
View Full Code Here

      {
        harness.fail("repaint has been called.");
      }
    };
   
    two.setLayout(new LayoutManager()
    {
      TestHarness harness = transfer;

      Dimension size = new Dimension();
View Full Code Here

TOP

Related Classes of java.awt.LayoutManager

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.