Examples of Orientation


Examples of org.eclipse.sapphire.ui.def.Orientation

    @Override
    public void render()
    {
        final SplitFormSectionPart part = part();
        final SplitFormPart parent = part.parent();
        final Orientation orientation = parent.orientation();
        final int sectionCount = parent.children().all().size();
        final int sectionIndex = parent.children().all().indexOf( part );
       
        this.control = new Composite( composite(), SWT.NONE );
View Full Code Here

Examples of org.exoplatform.services.resources.Orientation

               config.setDescription(element.getFirstChild().getNodeValue());
            }
            else if ("orientation".equals(element.getNodeName()))
            {
               String s = element.getFirstChild().getNodeValue();
               Orientation orientation = orientations.get(s);
               if (orientation == null)
               {
                  log.error("Wrong orientation value " + s);
               }
               else
View Full Code Here

Examples of org.exoplatform.services.resources.Orientation

      super(resolver, w);
      uicomponent_ = uicomponent;
      rcontext_ = context;

      // Add Orientation specific information
      Orientation orientation = context.getOrientation();
      this.put("orientation", orientation);
      this.put("isLT", orientation.isLT());
      this.put("isRT", orientation.isRT());
      this.put("dir", orientation.isLT() ? "ltr" : "rtl");
   }
View Full Code Here

Examples of org.exoplatform.services.resources.Orientation

      }
   }

   public void renderCSS(ResourceRenderer renderer, String path) throws RenderingException, IOException
   {
      Orientation orientation = Orientation.LT;
      if (path.endsWith("-lt.css"))
      {
         path = path.substring(0, path.length() - "-lt.css".length()) + ".css";
      }
      else if (path.endsWith("-rt.css"))
View Full Code Here

Examples of org.exoplatform.services.resources.Orientation

                return context.createURL(NodeURL.TYPE);
            }
        });

        // Add Orientation specific information
        Orientation orientation = context.getOrientation();
        this.put("orientation", orientation);
        this.put("isLT", orientation.isLT());
        this.put("isRT", orientation.isRT());
        this.put("dir", orientation.isLT() ? "ltr" : "rtl");
    }
View Full Code Here

Examples of org.formulacompiler.spreadsheet.Orientation

      }
    }

    private ExpressionNode buildContainedRange() throws CompilerException
    {
      final Orientation ownOrient = this.sectionDef.getOrientation();
      final Collection<ExpressionNode> elts = New.collection();

      /*
       * This loop relies on the subsections of the current section being sorted in ascending
       * flow order.
       */
      CellRange next = range;
      for (SectionBinding inner : this.sectionDef.getSections()) {
        final CellRange innerRange = inner.getRange();
        final Orientation innerOrient = inner.getOrientation();
        final CellRange[] tiling = (innerOrient == ownOrient) ? next.tilingAround( innerRange, innerOrient ) : next
            .tilingAround( innerRange );
        switch (tiling.length) {

          case CellRange.NO_INTERSECTION:
View Full Code Here

Examples of org.getspout.spoutapi.gui.Orientation

              ((TextField) control).setCursorPosition((int) state);
              control.setDirty(false);
            }
          } else if (control instanceof Scrollable) {
            if (data.equals("HORIZONTAL") || data.equals("VERTICAL")) {
              Orientation axis = Orientation.valueOf(data);
              Scrollable scroll = (Scrollable) control;
              scroll.setScrollPosition(axis, (int) state);
            } else if (control instanceof ListWidget) {
              ListWidget list = (ListWidget) control;
              boolean dblclick = false;
View Full Code Here

Examples of org.jmol.viewer.StateManager.Orientation

  private void setHeading(Point3f pt, Vector3f vNorm, int nSeconds) {
    // general trick here is to save the original orientation,
    // then do all the changes and save the new orientation.
    // Then just do a timed restore.

    Orientation o1 = viewer.getOrientation();
   
    // move to point
    viewer.navigate(0, pt);
   
    Point3f toPts = new Point3f();
   
    // get screen point along normal
    Point3f toPt = new Point3f(vNorm);
    //viewer.script("draw test2 vector " + Escape.escape(pt) + " " + Escape.escape(toPt));
    toPt.add(pt);
    viewer.transformPoint(toPt, toPts);
   
    // subtract the navigation point to get a relative point
    // that we can project into the xy plane by setting z = 0
    Point3f navPt = new Point3f(viewer.getNavigationOffset());
    toPts.sub(navPt);
    toPts.z = 0;
   
    // set the directed angle and rotate normal into yz plane,
    // less 20 degrees for the normal upward sloping view
    float angle = Measure.computeTorsion(JmolConstants.axisNY,
        JmolConstants.center, JmolConstants.axisZ, toPts, true);
    viewer.navigate(0, JmolConstants.axisZ, angle);       
    toPt.set(vNorm);
    toPt.add(pt);
    viewer.transformPoint(toPt, toPts);
    toPts.sub(navPt);
    angle = Measure.computeTorsion(JmolConstants.axisNY,
        JmolConstants.center, JmolConstants.axisX, toPts, true);
    viewer.navigate(0, JmolConstants.axisX, 20 - angle);
   
    // save this orientation, restore the first, and then
    // use TransformManager.moveto to smoothly transition to it
    // a script is necessary here because otherwise the application
    // would hang.
   
    navPt = new Point3f(viewer.getNavigationOffset());
    if (nSeconds <= 0)
      return;
    viewer.saveOrientation("_navsurf");
    o1.restore(0, true);
    viewer.script("restore orientation _navsurf " + nSeconds);
  }
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.generic.Orientation

    if (!endConnector.isOrientationLocked())
    {
      endConnector.toggleOrientationLock();
    }

    Orientation startOrientation = startConnector.getLockedOrientation();
    Orientation endOrientation = endConnector.getLockedOrientation();

    // Order of orientations to toggle:
    // ^ ^
    // v ^
    // ^ v
View Full Code Here

Examples of org.spoutcraft.api.gui.Orientation

      handleScroll(x, y, scroll);
    }
  }

  protected void handleScroll(int x, int y, int scroll) {
    Orientation axis = Orientation.VERTICAL;
    if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) {
      axis = Orientation.HORIZONTAL;
    }
    for (Widget w : getScreen().getAttachedWidgets(true)) {
      if (w != null && isInBoundingRect(w, x, y)) {
        if (w instanceof Scrollable) {
          // Stupid LWJGL not recognizing vertical scrolls :(
          Scrollable lw = (Scrollable) w;
          if (axis == Orientation.VERTICAL) {
            lw.scroll(0, -scroll / 30);
          } else {
            lw.scroll(-scroll / 30, 0);
          }
          PacketControlAction action = new PacketControlAction(lw.getScreen() != null ? lw.getScreen() : getScreen(), lw, axis.toString(), lw.getScrollPosition(axis));
          SpoutClient.getInstance().getPacketManager().sendSpoutPacket(action);
        }
      }
    }
  }
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.