Examples of MainView


Examples of ch.sahits.game.graphic.display.gameplay.MainView

    rectangle = new Rectangle();
    rectangle.x=rect.x+LEFT_PANEL_WIDTH;
    rectangle.y=rect.y+TOP_STATUS_HEIGHT;
    rectangle.height=rect.height-(rectangle.y+BORDER_SPACING);
    rectangle.width=rect.width-(LEFT_PANEL_WIDTH+BORDER_SPACING);
    mainView = new MainView(rectangle,loader,cl);
    mainView.setEnabled(true);

  }
View Full Code Here

Examples of ch.sahits.game.graphic.display.gameplay.MainView

    rectangle = new Rectangle();
    rectangle.x=rect.x+LEFT_PANEL_WIDTH;
    rectangle.y=rect.y+TOP_STATUS_HEIGHT;
    rectangle.height=rect.height-(rectangle.y+BORDER_SPACING);
    rectangle.width=rect.width-(LEFT_PANEL_WIDTH+BORDER_SPACING);
    mainView = new MainView(rectangle,loader,cl);
    mainView.setEnabled(true);

  }
View Full Code Here

Examples of com.cem.client.view.MainView

        {
            Presenter presenter = null;
           
            if ("main".equals(token))
            {
                presenter = new CommonExpensesManagerPresenter(rpcService, eventBus, new MainView());
            }
           
            if (presenter != null)
            {
                presenter.go(container);
View Full Code Here

Examples of com.kolakcc.loljclient.view.MainView

  SwingWorker<TypedObject, String> requestWorker;
  SwingWorker<Object, String> assetLoaderWorker;

  public MainController() {
    this.initializeWorkers();
    this.view = new MainView();
    this.setView(this.view);
    this.view.customGameButton.addActionListener(this);
    this.view.profileButton.addActionListener(this);
    this.view.championsButton.addActionListener(this);
    this.view.storeButton.addActionListener(this);
View Full Code Here

Examples of com.projity.pm.graphic.views.MainView

  }
  private void setMainView(boolean activate) {
    if (mainView != null)
      remove(mainView); // any previous
    mainView = new MainView();
    mainView.setBorder(null);
    setLayout(new GridLayout(1,1)); // fill up all of the space always
    add(mainView);

//    toolBarListener = new ToolBarListener();
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.modules.postboard.view.MainView

   
    // Create a JPanel to hold the toolbar for the tab
    ToolbarView toolbarView = new ToolbarView(boardModel);
   
    // Constructs and adds the MainPanel
    MainView mainView = new MainView(boardModel);
   
    // Create a tab model that contains the toolbar panel and the main content panel
    JanewayTabModel tab1 = new JanewayTabModel(getName(), new ImageIcon(), toolbarView, mainView);
   
    // Add the tab to the list of tabs owned by this module
View Full Code Here

Examples of org.freeplane.view.swing.map.MainView

      dtde.rejectDrag();
    }
  }

  private void supportFolding(final DropTargetDragEvent dtde) {
    final MainView node = getNode(dtde);
    if(isInFoldingRegion(dtde)){
      node.setMouseArea(MouseArea.FOLDING);
      startUnfoldTimer(node);
    }
    else{
      node.setMouseArea(MouseArea.DEFAULT);
      stopUnfoldTimer();
    }
    }
View Full Code Here

Examples of org.freeplane.view.swing.map.MainView

      stopUnfoldTimer();
    }
    }

  private boolean isInFoldingRegion(DropTargetDragEvent dtde) {
    final MainView node = getNode(dtde);
    return node.isInFoldingRegion(dtde.getLocation());
  }
View Full Code Here

Examples of org.freeplane.view.swing.map.MainView

  }

  public void dragExit(final DropTargetEvent e) {
    getNode(e).setMouseArea(MouseArea.OUT);
    stopUnfoldTimer();
    final MainView mainView = getNode(e);
    mainView.setDraggedOver(NodeView.DRAGGED_OVER_NO);
    mainView.repaint();
  }
View Full Code Here

Examples of org.freeplane.view.swing.map.MainView

      final JPopupMenu popupmenu = mc.getUserInputListenerFactory().getNodePopupMenu();
      if(popupmenu.isShowing()){
        return;
      }
    }
    final MainView component = (MainView) e.getComponent();
    NodeView nodeView = component.getNodeView();
    if (nodeView == null)
      return;

    final NodeModel node = nodeView.getModel();
    final boolean plainEvent = Compat.isPlainEvent(e);
    final boolean inside = nodeSelector.isInside(e);
    final MapController mapController = mc.getMapController();
    if(e.getButton() == 1){
      if(plainEvent){
        if (component.isInFollowLinkRegion(e.getX())) {
          LinkController.getController(mc).loadURL(node, e);
          e.consume();
          return;
        }

        final String link = component.getLink(e.getPoint());
        if (link != null) {
          doubleClickTimer.start(new Runnable() {
            public void run() {
              loadLink(link);
            }
          });
          e.consume();
          return;
        }

        if(inside && e.getClickCount() == 1 && ResourceController.getResourceController().getBooleanProperty(FOLD_ON_CLICK_INSIDE)){
          final boolean fold = FoldingMark.UNFOLDED.equals(component.foldingMarkType(mapController, node)) && ! mapController.hasHiddenChildren(node);
          if (!nodeSelector.shouldSelectOnClick(e)) {
            doubleClickTimer.start(new Runnable() {
              public void run() {
                mapController.setFolded(node, fold);
              }
            });
          }
        }
      }
      else if(Compat.isShiftEvent(e)){
        if (isInFoldingRegion(e)) {
          if (! mapController.showNextChild(node))
            mapController.setFolded(node, true);
          e.consume();
        }
      }
    }
    final boolean inFoldingRegion = isInFoldingRegion(e);
    if ((plainEvent && inFoldingRegion
        || (inFoldingRegion || inside) && Compat.isCtrlShiftEvent(e))
            && !nodeSelector.shouldSelectOnClick(e)) {
      boolean fold = FoldingMark.UNFOLDED.equals(component.foldingMarkType(mapController, node)) && ! mapController.hasHiddenChildren(node);
      doubleClickTimer.cancel();
      mapController.setFolded(node, fold);
      e.consume();
      return;
    }
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.