Examples of Direction

@author Portet to jme3 by user starcom "Paul Kashofer Austria" @see ImageGraphics
  • com.limelight.input.gamepad.SourceComponent.Direction
  • com.persistit.Key.Direction
  • com.sap.hadoop.windowing.query2.specification.WindowFrameSpec.Direction
  • com.sencha.gxt.core.client.Style.Direction
  • com.sk89q.worldedit.util.Direction
  • com.tinkerpop.blueprints.Direction
  • com.tinkerpop.gremlin.structure.Direction
  • dbfit.util.Direction
  • edu.cmu.cs.stage3.alice.core.Direction
  • edu.stanford.nlp.trees.CollinsRelation.Direction
  • etch.compiler.opt.Direction
    Option which sets the direction of a message ([client->]server, [server->]client, or both.
  • games.stendhal.common.Direction
  • maze.model.Direction
  • models.enumeration.Direction
  • net.sf.minuteProject.configuration.bean.model.data.constant.Direction
  • org.apache.abdera.i18n.text.Bidi.Direction
  • org.apache.etch.compiler.opt.Direction
    Option which sets the direction of a message ([client->]server, [server->]client, or both.
  • org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriter.Direction
  • org.apache.hadoop.hive.ql.parse.WindowingSpec.Direction
  • org.apache.jackrabbit.api.security.user.QueryBuilder.Direction
  • org.apache.metamodel.query.OrderByItem.Direction
  • org.apache.pivot.wtk.Direction
  • org.apache.tapestry.spec.Direction
    Represents different types of parameters. Currently only in and custom are supported, but this will likely change when Tapestry supports out parameters is some form (that reflects form style processing). @author Howard Lewis Ship @version $Id: Direction.java 243791 2004-02-19 17:38:13Z hlship $ @since 2.0.3
  • org.apache.woden.wsdl20.enumeration.Direction
    This class defines the values of the {direction} property of InterfaceMessageReference and InterfaceFaultReference. This property indicates whether a message is coming "in" to the service or going "out" from the service.

    The property is represented in XML by the message or fault reference element's tag name:

    This class uses the typesafe enum pattern. Applications should use the public static final constants defined in this class to specify or to evaluate direction.

    Examples:

     msgRef.setDirection(Direction.IN); if(msgRef.getDirection() == Direction.IN) ... if(msgRef.getDirection().equals(Direction.IN)) ... Note that == and .equals() are equivalent. 
    TODO if extensibility is required, chg ctor to protected @author jkaputin@apache.org
  • org.apache.woden.wsdl20.extensions.rpc.Direction
    Direction is a typesafe enumeration of the four possible values, #in, #out, #inout, and #return. @author Arthur Ryman (ryman@ca.ibm.com)
  • org.chromium.debug.core.model.BreakpointSynchronizer.Direction
  • org.eclipse.egit.core.synchronize.ThreeWayDiffEntry.Direction
  • org.freerealm.map.Direction
    @author Deniz ARIKAN
  • org.gnubridge.core.Direction
  • org.gocha.collection.graph.Path.Direction
  • org.japura.gui.Gradient.Direction
  • org.jboss.ws.metadata.wsdl.WSDLRPCSignatureItem.Direction
  • org.jdesktop.swingx.JXBusyLabel.Direction
  • org.jemmy.interfaces.Caret.Direction
  • org.jpacman.framework.model.Direction
  • org.kite9.diagram.position.Direction
    Formats are used to turn sentences into diagram objects. For example, "Cathy goes shopping" could be represented on in ADL as glyphs for Cathy and Shopping, and an Arrow for goes. The format manages this conversion. @author moffatr
  • org.maltparserx.core.syntaxgraph.headrules.Direction
  • org.meb.speedway.SortOrder.Direction
  • org.mokai.Message.Direction
  • org.neo4j.graphdb.Direction
  • org.openhab.binding.tcp.Direction
  • org.openstreetmap.josm.gui.dialogs.relation.sort.WayConnectionType.Direction
  • org.owasp.passfault.keyboard.Key.Direction
  • org.pokenet.server.backend.entity.Positionable.Direction
  • org.pshdl.interpreter.VariableInformation.Direction
  • org.rascalmpl.interpreter.TraversalEvaluator.DIRECTION
  • org.sfaci.jumper2dx.characters.Platform.Direction
  • org.springframework.data.domain.Sort.Direction
  • org.teiid.language.Argument.Direction
  • org.terasology.math.Direction
  • org.zaproxy.zap.extension.websocket.WebSocketMessage.Direction
  • pivot.wtk.Direction
  • zelda.karacter.Direction

  • Examples of com.buschmais.cdo.spi.metadata.type.RelationTypeMetadata.Direction

                Type genericType = propertyMethod.getGenericType();
                ParameterizedType type = (ParameterizedType) genericType;
                Class<?> typeArgument = (Class<?>) type.getActualTypeArguments()[0];
                AnnotatedType annotatedTypeArgument = new AnnotatedType(typeArgument);
                if (isEntityType(annotatedTypeArgument)) {
                    Direction relationDirection = getRelationDirection(propertyMethod, Direction.FROM);
                    com.buschmais.cdo.spi.reflection.AnnotatedElement<?> relationElement = getRelationDefinitionElement(propertyMethod);
                    RelationTypeMetadata relationshipType = new RelationTypeMetadata<>(metadataFactory.createRelationMetadata(relationElement, metadataByType));
                    methodMetadata = new EntityCollectionPropertyMethodMetadata<>(propertyMethod, relationshipType, relationDirection,
                            metadataFactory.createCollectionPropertyMetadata(propertyMethod));
                } else if (isRelationType(annotatedTypeArgument)) {
                    TypeMetadata relationTypeMetadata = getOrCreateTypeMetadata(typeArgument);
                    RelationTypeMetadata<RelationMetadata> relationMetadata = (RelationTypeMetadata) relationTypeMetadata;
                    Direction relationDirection = getRelationDirection(annotatedType, propertyMethod, relationTypeMetadata, relationMetadata);
                    methodMetadata = new RelationCollectionPropertyMethodMetadata<>(propertyMethod, relationMetadata, relationDirection,
                            metadataFactory.createCollectionPropertyMetadata(propertyMethod));
                } else {
                    throw new CdoException("Unsupported type argument '" + typeArgument.getName() + "' for collection property: " + propertyType.getName());
                }
            } else if (annotatedMethods.containsKey(propertyType)) {
                AnnotatedType referencedType = new AnnotatedType(propertyType);
                Direction relationDirection;
                RelationTypeMetadata<RelationMetadata> relationMetadata;
                if (isEntityType(referencedType)) {
                    relationDirection = getRelationDirection(propertyMethod, Direction.FROM);
                    com.buschmais.cdo.spi.reflection.AnnotatedElement<?> relationElement = getRelationDefinitionElement(propertyMethod);
                    relationMetadata = new RelationTypeMetadata<>(metadataFactory.createRelationMetadata(relationElement, metadataByType));
    View Full Code Here

    Examples of com.buschmais.xo.spi.metadata.type.RelationTypeMetadata.Direction

                Type genericType = propertyMethod.getGenericType();
                ParameterizedType type = (ParameterizedType) genericType;
                Class<?> typeArgument = (Class<?>) type.getActualTypeArguments()[0];
                AnnotatedType annotatedTypeArgument = new AnnotatedType(typeArgument);
                if (isEntityType(annotatedTypeArgument)) {
                    Direction relationDirection = getRelationDirection(propertyMethod, Direction.FROM);
                    com.buschmais.xo.spi.reflection.AnnotatedElement<?> relationElement = getRelationDefinitionElement(propertyMethod);
                    RelationTypeMetadata relationshipType = new RelationTypeMetadata<>(metadataFactory.createRelationMetadata(relationElement, metadataByType));
                    methodMetadata = new EntityCollectionPropertyMethodMetadata<>(propertyMethod, relationshipType, relationDirection,
                            metadataFactory.createCollectionPropertyMetadata(propertyMethod));
                } else if (isRelationType(annotatedTypeArgument)) {
                    TypeMetadata relationTypeMetadata = getOrCreateTypeMetadata(typeArgument);
                    RelationTypeMetadata<RelationMetadata> relationMetadata = (RelationTypeMetadata) relationTypeMetadata;
                    Direction relationDirection = getRelationDirection(annotatedType, propertyMethod, relationTypeMetadata, relationMetadata);
                    methodMetadata = new RelationCollectionPropertyMethodMetadata<>(propertyMethod, relationMetadata, relationDirection,
                            metadataFactory.createCollectionPropertyMetadata(propertyMethod));
                } else {
                    throw new XOException("Unsupported type argument '" + typeArgument.getName() + "' for collection property: " + propertyType.getName());
                }
            } else if (annotatedMethods.containsKey(propertyType)) {
                AnnotatedType referencedType = new AnnotatedType(propertyType);
                Direction relationDirection;
                RelationTypeMetadata<RelationMetadata> relationMetadata;
                if (isEntityType(referencedType)) {
                    relationDirection = getRelationDirection(propertyMethod, Direction.FROM);
                    com.buschmais.xo.spi.reflection.AnnotatedElement<?> relationElement = getRelationDefinitionElement(propertyMethod);
                    relationMetadata = new RelationTypeMetadata<>(metadataFactory.createRelationMetadata(relationElement, metadataByType));
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        edge.put(Direction.NORTH, new ArrayList<Instance>());
        edge.put(Direction.SOUTH, new ArrayList<Instance>());
        edge.put(Direction.EAST, new ArrayList<Instance>());
        edge.put(Direction.WEST, new ArrayList<Instance>());
        for (Instance pin : pins) {
          Direction pinFacing = pin.getAttributeValue(StdAttr.FACING);
          Direction pinEdge = pinFacing.reverse();
          List<Instance> e = edge.get(pinEdge);
          e.add(pin);
        }
       
        for (Map.Entry<Direction, List<Instance>> entry : edge.entrySet()) {
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

     
      public KeyConfigurationResult keyEventReceived(KeyConfigurationEvent event) {
        if (event.getType() == KeyConfigurationEvent.KEY_PRESSED) {
          KeyEvent e = event.getKeyEvent();
          if (e.getModifiersEx() == modsEx) {
            Direction value = null;
            switch (e.getKeyCode()) {
            case KeyEvent.VK_UP: value = Direction.NORTH; break;
            case KeyEvent.VK_DOWN: value = Direction.SOUTH; break;
            case KeyEvent.VK_LEFT: value = Direction.WEST; break;
            case KeyEvent.VK_RIGHT: value = Direction.EAST; break;
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        return StringUtil.constantGetter(source.getName());
      }

      @Override
      public Bounds getOffsetBounds(AttributeSet attrs) {
        Direction facing = attrs.getValue(StdAttr.FACING);
        Direction defaultFacing = source.getAppearance().getFacing();
        Bounds bds = source.getAppearance().getOffsetBounds();
        return bds.rotate(defaultFacing, facing, 0, 0);
      }
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        if (key == MenuExtender.class) return new CircuitFeature(instance);
        return super.getInstanceFeature(instance, key);
      }
     
      void computePorts(Instance instance) {
        Direction facing = instance.getAttributeValue(StdAttr.FACING);
        Map<Location, Instance> portLocs = source.getAppearance().getPortOffsets(facing);
        Port[] ports = new Port[portLocs.size()];
        Instance[] pins = new Instance[portLocs.size()];
        int i = -1;
        for (Map.Entry<Location, Instance> portLoc : portLocs.entrySet()) {
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        configureLabel(instance); // since this affects the circuit's bounds
      }
     
      private void configureLabel(Instance instance) {
        Bounds bds = instance.getBounds();
        Direction loc = instance.getAttributeValue(CircuitAttributes.LABEL_LOCATION_ATTR);
       
        int x = bds.getX() + bds.getWidth() / 2;
        int y = bds.getY() + bds.getHeight() / 2;
        int ha = GraphicsUtil.H_CENTER;
        int va = GraphicsUtil.V_CENTER;
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        painter.drawPorts();
      }
     
      private void paintBase(InstancePainter painter, Graphics g) {
        CircuitAttributes attrs = (CircuitAttributes) painter.getAttributeSet();
        Direction facing = attrs.getFacing();
        Direction defaultFacing = source.getAppearance().getFacing();
        Location loc = painter.getLocation();
        g.translate(loc.getX(), loc.getY());
        source.getAppearance().paintSubcircuit(g, facing);
        drawCircuitLabel(painter, getOffsetBounds(attrs), facing, defaultFacing);
        g.translate(-loc.getX(), -loc.getY());
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

      private void drawCircuitLabel(InstancePainter painter, Bounds bds,
          Direction facing, Direction defaultFacing) {
        AttributeSet staticAttrs = source.getStaticAttributes();
        String label = staticAttrs.getValue(CircuitAttributes.CIRCUIT_LABEL_ATTR);
        if (label != null && !label.equals("")) {
          Direction up = staticAttrs.getValue(CircuitAttributes.CIRCUIT_LABEL_FACING_ATTR);
          Font font = staticAttrs.getValue(CircuitAttributes.CIRCUIT_LABEL_FONT_ATTR);

          int back = label.indexOf('\\');
          int lines = 1;
          boolean backs = false;
          while (back >= 0 && back <= label.length() - 2) {
            char c = label.charAt(back + 1);
            if (c == 'n') lines++;
            else if (c == '\\') backs = true;
            back = label.indexOf('\\', back + 2);
          }
         
          int x = bds.getX() + bds.getWidth() / 2;
          int y = bds.getY() + bds.getHeight() / 2;
          Graphics g = painter.getGraphics().create();
          double angle = Math.PI / 2 - (up.toRadians() - defaultFacing.toRadians()) - facing.toRadians();
          if (g instanceof Graphics2D && Math.abs(angle) > 0.01) {
            Graphics2D g2 = (Graphics2D) g;
            g2.rotate(angle, x, y);
          }
          g.setFont(font);
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        }
      }

      @Override
      public Bounds getOffsetBounds(AttributeSet attrs) {
        Direction facing = attrs.getValue(StdAttr.FACING);
        BitWidth select = attrs.getValue(Plexers.ATTR_SELECT);
        int outputs = 1 << select.getWidth();
        Bounds bds;
        if (outputs == 2) {
          bds = Bounds.create(0, -20, 30, 40);
    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.