Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.addListener()


        Composite plot = getPlotArea();
        plot.addListener(SWT.Resize, this);
        plot.addListener(SWT.MouseMove, this);
        plot.addListener(SWT.MouseDown, this);
        plot.addListener(SWT.MouseUp, this);
        plot.addListener(SWT.MouseWheel, this);
        plot.addListener(SWT.KeyDown, this);

        plot.addPaintListener(this);

        createMenuItems();
View Full Code Here


        plot.addListener(SWT.Resize, this);
        plot.addListener(SWT.MouseMove, this);
        plot.addListener(SWT.MouseDown, this);
        plot.addListener(SWT.MouseUp, this);
        plot.addListener(SWT.MouseWheel, this);
        plot.addListener(SWT.KeyDown, this);

        plot.addPaintListener(this);

        createMenuItems();
    }
View Full Code Here

   *            the separator parent
   * @return the separator widget
   */
  public Composite createCompositeSeparator(Composite parent) {
    final Composite composite = new Composite(parent, orientation);
    composite.addListener(SWT.Paint, new Listener() {
      public void handleEvent(Event e) {
        if (composite.isDisposed())
          return;
        Rectangle bounds = composite.getBounds();
        GC gc = e.gc;
View Full Code Here

   *            the separator parent
   * @return the separator widget
   */
  public Composite createCompositeSeparator(Composite parent) {
    final Composite composite = new Composite(parent, orientation);
    composite.addListener(SWT.Paint, new Listener() {
      public void handleEvent(Event e) {
        if (composite.isDisposed())
          return;
        Rectangle bounds = composite.getBounds();
        GC gc = e.gc;
View Full Code Here

  public void addGroupedListener( int eventType, Listener listener )
    throws IllegalArgumentException, IllegalStateException
  {
    whenNull( listener ).throwIllegalArgument( "Listener must not be null" );
    Composite facade = getFacade();
    facade.addListener( eventType, listener );
  }

  /**
   * <p>
   * Removes a {@link Listener} for the defined  eventType.
View Full Code Here

    public TimelineChartToolTip(Chart chart)
    {
        this.chart = chart;

        Composite plotArea = chart.getPlotArea();
        plotArea.addListener(SWT.MouseDown, this);
        plotArea.addListener(SWT.MouseMove, this);
        plotArea.addListener(SWT.MouseUp, this);
        plotArea.addListener(SWT.Dispose, this);
    }
View Full Code Here

    {
        this.chart = chart;

        Composite plotArea = chart.getPlotArea();
        plotArea.addListener(SWT.MouseDown, this);
        plotArea.addListener(SWT.MouseMove, this);
        plotArea.addListener(SWT.MouseUp, this);
        plotArea.addListener(SWT.Dispose, this);
    }

    public void enableCategory(boolean enabled)
View Full Code Here

        this.chart = chart;

        Composite plotArea = chart.getPlotArea();
        plotArea.addListener(SWT.MouseDown, this);
        plotArea.addListener(SWT.MouseMove, this);
        plotArea.addListener(SWT.MouseUp, this);
        plotArea.addListener(SWT.Dispose, this);
    }

    public void enableCategory(boolean enabled)
    {
View Full Code Here

        Composite plotArea = chart.getPlotArea();
        plotArea.addListener(SWT.MouseDown, this);
        plotArea.addListener(SWT.MouseMove, this);
        plotArea.addListener(SWT.MouseUp, this);
        plotArea.addListener(SWT.Dispose, this);
    }

    public void enableCategory(boolean enabled)
    {
        categoryEnabled = enabled;
View Full Code Here

  public void addGroupedListener( int eventType, Listener listener )
    throws IllegalArgumentException, IllegalStateException
  {
    checkArgumentNotNull( listener, "Listener" );
    Composite facade = getFacade();
    facade.addListener( eventType, listener );
  }

  /**
   * <p>
   * Removes a {@link Listener} for the defined  eventType.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.