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.cburch.logisim.data.Direction

          instance.fireInvalidated();
        }
      }

      private void updatePorts(Instance instance) {
        Direction facing = instance.getAttributeValue(StdAttr.FACING);
        Object selectLoc = instance.getAttributeValue(Plexers.ATTR_SELECT_LOC);
        BitWidth data = instance.getAttributeValue(StdAttr.WIDTH);
        BitWidth select = instance.getAttributeValue(Plexers.ATTR_SELECT);
        boolean enable = instance.getAttributeValue(Plexers.ATTR_ENABLE).booleanValue();
        int outputs = 1 << select.getWidth();
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

      @Override
      public void paintInstance(InstancePainter painter) {
        Graphics g = painter.getGraphics();
        Bounds bds = painter.getBounds();
        Direction facing = painter.getAttributeValue(StdAttr.FACING);
        BitWidth select = painter.getAttributeValue(Plexers.ATTR_SELECT);
        boolean enable = painter.getAttributeValue(Plexers.ATTR_ENABLE).booleanValue();
        int outputs = 1 << select.getWidth();

        // draw select and enable inputs
        GraphicsUtil.switchToWidth(g, 3);
        boolean vertical = facing == Direction.NORTH || facing == Direction.SOUTH;
        Object selectLoc = painter.getAttributeValue(Plexers.ATTR_SELECT_LOC);
        int selMult = selectLoc == Plexers.SELECT_BOTTOM_LEFT ? 1 : -1;
        int dx = vertical ? selMult : 0;
        int dy = vertical ? 0 : -selMult;
        if (outputs == 2) { // draw select wire
          Location sel = painter.getInstance().getPortLocation(outputs);
          if (painter.getShowState()) {
            g.setColor(painter.getPort(outputs).getColor());
          }
          g.drawLine(sel.getX(), sel.getY(), sel.getX() + 2 * dx, sel.getY() + 2 * dy);
        }
        if (enable) {
          Location en = painter.getInstance().getPortLocation(outputs + 1);
          if (painter.getShowState()) {
            g.setColor(painter.getPort(outputs + 1).getColor());
          }
          int len = outputs == 2 ? 6 : 4;
          g.drawLine(en.getX(), en.getY(), en.getX() + len * dx, en.getY() + len * dy);
        }
        GraphicsUtil.switchToWidth(g, 1);
       
        // draw a circle indicating where the select input is located
        Multiplexer.drawSelectCircle(g, bds, painter.getInstance().getPortLocation(outputs));

        // draw "0" next to first input
        int x0;
        int y0;
        int halign;
        if (facing == Direction.WEST) {
          x0 = 3;
          y0 = 15;
          halign = GraphicsUtil.H_LEFT;
        } else if (facing == Direction.NORTH) {
          x0 = 10;
          y0 = 15;
          halign = GraphicsUtil.H_CENTER;
        } else if (facing == Direction.SOUTH) {
          x0 = 10;
          y0 = bds.getHeight() - 3;
          halign = GraphicsUtil.H_CENTER;
        } else {
          x0 = bds.getWidth() - 3;
          y0 = 15;
          halign = GraphicsUtil.H_RIGHT;
        }
        g.setColor(Color.GRAY);
        GraphicsUtil.drawText(g, "0", bds.getX() + x0, bds.getY() + y0,
            halign, GraphicsUtil.V_BASELINE);

        // draw trapezoid, "DMX" label, and ports
        g.setColor(Color.BLACK);
        Plexers.drawTrapezoid(g, bds, facing.reverse(), select.getWidth() == 1 ? 10 : 20);
        GraphicsUtil.drawCenteredText(g, "DMX",
            bds.getX() + bds.getWidth() / 2,
            bds.getY() + bds.getHeight() / 2);
        painter.drawPorts();
      }
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        int w = 20;
        if (isInverter &&
            !NotGate.SIZE_NARROW.equals(attrs.getValue(NotGate.ATTR_SIZE))) {
          w = 30;
        }
        Direction facing = attrs.getValue(StdAttr.FACING);
        if (facing == Direction.NORTH) return Bounds.create(-100, 20, w);
        if (facing == Direction.SOUTH) return Bounds.create(-10, -w, 20, w);
        if (facing == Direction.WEST) return Bounds.create(0, -10, w, 20);
        return Bounds.create(-w, -10, w, 20);
      }
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        }
      }

      @Override
      public void paintInstance(InstancePainter painter) {
        Direction face = painter.getAttributeValue(StdAttr.FACING);

        Graphics g = painter.getGraphics();

        // draw control wire
        GraphicsUtil.switchToWidth(g, 3);
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        }
        painter.drawLabel();
      }
     
      private void paintShape(InstancePainter painter) {
        Direction facing = painter.getAttributeValue(StdAttr.FACING);
        Location loc = painter.getLocation();
        int x = loc.getX();
        int y = loc.getY();
        double rotate = 0.0;
        Graphics g = painter.getGraphics();
        g.translate(x, y);
        if (facing != Direction.EAST && g instanceof Graphics2D) {
          rotate = -facing.toRadians();
          ((Graphics2D) g).rotate(rotate);
        }

        if (isInverter) {
          PainterShaped.paintNot(painter);
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

          NotGate.configureLabel(instance, false, instance.getPortLocation(2));
        }
      }

      private void configurePorts(Instance instance) {
        Direction facing = instance.getAttributeValue(StdAttr.FACING);
        Bounds bds = getOffsetBounds(instance.getAttributeSet());
        int d = Math.max(bds.getWidth(), bds.getHeight()) - 20;
        Location loc0 = Location.create(0, 0);
        Location loc1 = loc0.translate(facing.reverse(), 20 + d);
        Location loc2;
        if (instance.getAttributeValue(ATTR_CONTROL) == LEFT_HANDED) {
          loc2 = loc0.translate(facing.reverse(), 10 + d, 10);
        } else {
          loc2 = loc0.translate(facing.reverse(), 10 + d, -10);
        }

        Port[] ports = new Port[3];
        ports[0] = new Port(0, 0, Port.OUTPUT, StdAttr.WIDTH);
        ports[1] = new Port(loc1.getX(), loc1.getY(), Port.INPUT, StdAttr.WIDTH);
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        index -= len;
        if (attrs.xorBehave != null) {
          index--;
          if (index < 0) return GateAttributes.ATTR_XOR;
        }
        Direction facing = attrs.facing;
        int inputs = attrs.inputs;
        if (index == 0) {
          if (facing == Direction.EAST || facing == Direction.WEST) {
            return new NegateAttribute(index, Direction.NORTH);
          } else {
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        setFacingAttribute(StdAttr.FACING);
      }
     
      @Override
      public Bounds getOffsetBounds(AttributeSet attrs) {
        Direction dir = attrs.getValue(StdAttr.FACING);
        BitWidth select = attrs.getValue(Plexers.ATTR_SELECT);
        int inputs = 1 << select.getWidth();
        int offs = -5 * inputs;
        int len = 10 * inputs + 10;
        if (dir == Direction.NORTH) {
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

      }

      @Override
      public void paintInstance(InstancePainter painter) {
        Graphics g = painter.getGraphics();
        Direction facing = painter.getAttributeValue(StdAttr.FACING);

        painter.drawBounds();
        Bounds bds = painter.getBounds();
        g.setColor(Color.GRAY);
        int x0;
    View Full Code Here

    Examples of com.cburch.logisim.data.Direction

        setInstanceLogger(Logger.class);
      }

      @Override
      public Bounds getOffsetBounds(AttributeSet attrs) {
        Direction facing = attrs.getValue(StdAttr.FACING);
        return Bounds.create(0, -10, 20, 20).rotate(Direction.WEST, facing, 0, 0);
      }
    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.