Examples of Display


Examples of com.sun.jna.platform.unix.X11.Display

      new Thread() {
        @Override
        public void run() {
          try {
            final X11 x11 = X11.INSTANCE;
            final Display display = x11.XOpenDisplay(null);
            Window window = new Window(nativeHandle);
            x11.XSelectInput(display, window,
                new NativeLong(X11.ExposureMask |
                    X11.VisibilityChangeMask |
                    X11.StructureNotifyMask |
View Full Code Here

Examples of com.thecherno.cherno.engine.graphics.Display

   * @param height
   *            The height of the display (and window) in pixels.
   */
  protected final void createDisplay(String name, int width, int height) {
    startTimer = System.currentTimeMillis();
    display = new Display(new Window(name, width, height));
    screen = new Screen(width, height, 1.0);
  }
View Full Code Here

Examples of com.visionarysoftwaresolutions.hfdpch2.bookstyle.weatherstation.Display

    //the user's choice, but if I were doing this program for real then that would be
    //handled by some other class say, WeatherStationSetUp
    //That class would get the displays to be used, and add them a list
    //as I've done, and pass that list to this program
   
    Display firstDisplay = new Display(new CurrentConditions(weatherData));
    Display secondDisplay = new Display(new Forecast(weatherData));
    displaysToUse.add(firstDisplay.getCurrentDisplay());
    displaysToUse.add(secondDisplay.getCurrentDisplay());
    weatherData.addDisplay(displaysToUse);
   
    weatherData.setMeasurements(80, 65, 30.4f);
    weatherData.setMeasurements(82, 70, 29.2f);
    weatherData.setMeasurements(78, 90, 29.2f);
View Full Code Here

Examples of de.pdf_scrutinizer.API.display

                ScriptableObject.putProperty(scope, "Collab", Context.javaToJS(new Collab(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "util", Context.javaToJS(new Util(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "event", Context.javaToJS(new Event(scrutinizer, doc), scope));
                ScriptableObject.putProperty(scope, "media", Context.javaToJS(new Media(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "XMLData", Context.javaToJS(new XMLData(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "display", Context.javaToJS(new display(), scope));
                ScriptableObject.putProperty(scope, "console", Context.javaToJS(doc.console, scope));
                ScriptableObject.putProperty(scope, "info", Context.javaToJS(doc.info, scope));
                ScriptableObject.putProperty(scope, "spell", Context.javaToJS(new Spell(scrutinizer), scope));

                // redirect String.eval() and app.eval() to eval()
View Full Code Here

Examples of display.Display

     * initializes new game and display objects
     * to start a new game
     */
    public void initialize() {
        game = new Game();
        display = new Display();
        display.setApp(this);
    }
View Full Code Here

Examples of edu.mayo.bmi.guoqian.claml.Display

    /**
     * Create an instance of {@link Display }
     *
     */
    public Display createDisplay() {
        return new Display();
    }
View Full Code Here

Examples of edu.neu.ccs.task.dialogue.Display

    inputs = null;
    didDisplay = false;
   
    while (agent.isLive()) {
      if (agent.nextTurn()) {
        Display d = agent.getCurrentDisplay();
        if (d != null) {
          String url = d.getUrl(agent.getFocusTask());
          output = Command.page(url, d.getType(), d.getSize(), d.isAuth());
          return;
        }
       
        if (doSpeech())
          return;
View Full Code Here

Examples of fr.soleil.salsa.view.tool.Display

    /**
     * Initialization.
     */
    private void initialize() {
        this.display = new Display();
        setLayout(new BorderLayout());
        add(getNameLabel(), BorderLayout.NORTH);
        add(getCenterScrollPane(), BorderLayout.CENTER);
    }
View Full Code Here

Examples of jaron.pde.Display

    flightData.getElevatorOutput().addSignalListener(artificialHorizon.getElevator());
    flightData.getRollAngle().addSignalListener(artificialHorizon.getRoll());
    flightData.getAileronOutput().addSignalListener(artificialHorizon.getAileron());

    // Setup a display and connect it to the flight data
    flightDataDisplay = new Display(this, 200, 10, 200, 150);
    flightData.getAirSpeed().addSignalListener(flightDataDisplay.createTextLine("Airspeed [km/h]"));
    flightData.getAltitudeAbsolute().addSignalListener(flightDataDisplay.createTextLine("Altitude (barom.) [m]"));
    flightData.getPitchAngle().addSignalListener(flightDataDisplay.createTextLine("Pitch [deg]"));
    flightData.getPitchAngularRate().addSignalListener(flightDataDisplay.createTextLine("Pitch rate [deg/sec]"));
    flightData.getRollAngle().addSignalListener(flightDataDisplay.createTextLine("Roll [deg]"));
    flightData.getRollAngularRate().addSignalListener(flightDataDisplay.createTextLine("Roll rate [deg/sec]"));
    flightData.getThrottleOutput().addSignalListener(flightDataDisplay.createTextLine("Throttle"));
    flightData.getVerticalSpeed().addSignalListener(flightDataDisplay.createTextLine("Vert. speed [m/s]"));
    flightData.getYawAngularRate().addSignalListener(flightDataDisplay.createTextLine("Yaw rate [deg/sec]"));

    // Setup the sliders for the pitch PID gains
    pitchGainP = new Slider(this, "Pitch Gain-P", 40, 170);
    pitchGainP.setBandwidthY(0, 4);
    pitchGainP.setValue(PITCH_P);
    pitchGainI = new Slider(this, "Pitch Gain-I", 80, 170);
    pitchGainI.setBandwidthY(0, 2);
    pitchGainI.setValue(PITCH_I);
    pitchGainD = new Slider(this, "Pitch Gain-D", 120, 170);
    pitchGainD.setBandwidthY(0, 2);
    pitchGainD.setValue(PITCH_D);
    pitchMaxI = new Slider(this, "Pitch Max-I", 160, 170);
    pitchMaxI.setBandwidthY(0, 2);
    pitchMaxI.setValue(PITCH_M);
    pitchMinI = new Slider(this, "Pitch Min-I", 200, 170);
    pitchMinI.setBandwidthY(0, -2);
    pitchMinI.setValue(-PITCH_M);
    // Pitch PID to motion controller dependencies
    pitchMaxI.addSignalListener(motionController.getPitchMaxI());
    pitchMinI.addSignalListener(motionController.getPitchMinI());
    pitchGainP.addSignalListener(motionController.getPitchGainP());
    pitchGainI.addSignalListener(motionController.getPitchGainI());
    pitchGainD.addSignalListener(motionController.getPitchGainD());

    // Setup the sliders for the roll PID gains
    rollGainP = new Slider(this, "Roll Gain-P", 40, 300);
    rollGainP.setBandwidthY(0, 4);
    rollGainP.setValue(ROLL_P);
    rollGainI = new Slider(this, "Roll Gain-I", 80, 300);
    rollGainI.setBandwidthY(0, 2);
    rollGainI.setValue(ROLL_I);
    rollGainD = new Slider(this, "Roll Gain-D", 120, 300);
    rollGainD.setBandwidthY(0, 2);
    rollGainD.setValue(ROLL_D);
    rollMaxI = new Slider(this, "Roll Max-I", 160, 300);
    rollMaxI.setBandwidthY(0, 2);
    rollMaxI.setValue(ROLL_M);
    rollMinI = new Slider(this, "Roll Min-I", 200, 300);
    rollMinI.setBandwidthY(0, -2);
    rollMinI.setValue(-ROLL_M);
    // Roll PID to motion controller dependencies
    rollMaxI.addSignalListener(motionController.getRollMaxI());
    rollMinI.addSignalListener(motionController.getRollMinI());
    rollGainP.addSignalListener(motionController.getRollGainP());
    rollGainI.addSignalListener(motionController.getRollMinI());
    rollGainD.addSignalListener(motionController.getRollGainD());

    // Setup a graph to display the pitch angle and the elevator output
    String kLabelPitch = "Pitch angle";
    String kLabelElevator ="Elevator signal";
    graphPitch = new Graph(this, 250, 170, 150, 120);
    graphPitch.addGraph(kLabelPitch, Colors.BLACK);
    graphPitch.getSignal(kLabelPitch).setBandwidth(45, -45);
    graphPitch.addGraph(kLabelElevator, Colors.RED);
    // Connect the pitch graph to the flight data
    flightData.getPitchAngle().addSignalListener(graphPitch.getSignal(kLabelPitch));
    flightData.getElevatorOutput().addSignalListener(graphPitch.getSignal(kLabelElevator));

    // Setup a graph to display the roll angle and the aileron output
    String kLabelRoll = "Roll angle";
    String kLabelAileron ="Aileron signal";
    graphRoll = new Graph(this, 250, 300, 150, 120);
    graphRoll.addGraph(kLabelRoll, Colors.BLACK);
    graphRoll.getSignal(kLabelRoll).setBandwidth(-45, 45);
    graphRoll.addGraph(kLabelAileron, Colors.RED);
    // Connect the roll graph to the flight data
    flightData.getRollAngle().addSignalListener(graphRoll.getSignal(kLabelRoll));
    flightData.getAileronOutput().addSignalListener(graphRoll.getSignal(kLabelAileron));
   
    // Setup the sliders for the course PID gains
    courseGainP = new Slider(this, "Course Gain-P", 40, 430, 40, 120);
    courseGainP.setBandwidthY(0, 20);
    courseGainP.setValue(NAVIGATION_P);
    courseGainI = new Slider(this, "Course Gain-I", 80, 430, 40, 120);
    courseGainI.setBandwidthY(0, 5);
    courseGainI.setValue(NAVIGATION_I);
    courseGainD = new Slider(this, "Course Gain-D", 120, 430, 40, 120);
    courseGainD.setBandwidthY(0, 5);
    courseGainD.setValue(NAVIGATION_D);
    courseMaxI = new Slider(this, "Course Max-I", 160, 430);
    courseMaxI.setBandwidthY(0, 20);
    courseMaxI.setValue(NAVIGATION_M);
    courseMinI = new Slider(this, "Course Min-I", 200, 430, 40, 120);
    courseMinI.setBandwidthY(0, -20);
    courseMinI.setValue(-NAVIGATION_M);
    // Course PID to mission controller dependencies
    courseGainP.addListenerY(missionController.getCourseGainP());
    courseGainI.addListenerY(missionController.getCourseGainI());
    courseGainD.addListenerY(missionController.getCourseGainD());
    courseMaxI.addListenerY(missionController.getCourseMaxI());
    courseMinI.addListenerY(missionController.getCourseMinI());
   
    // Mission data display
    missionDisplay = new Display(this, 250, 430, 150, 120);
    flightData.getAltitudeAbsolute().addSignalListener(missionDisplay.createTextLine("Altitude (GPS)"));
    flightData.getCourseOverGround().addSignalListener(missionDisplay.createTextLine("Course"));
    flightData.getTargetCourse().addSignalListener(missionDisplay.createTextLine("Course to target"));
    flightData.getLatitude().addSignalListener(missionDisplay.createTextLine("Latitude"));
    flightData.getLongitude().addSignalListener(missionDisplay.createTextLine("Longitude"));
View Full Code Here

Examples of javax.microedition.lcdui.Display

    }

    public String prompt()
    {
        final Waiter waiter = new Waiter();
        final Display display = Application.getManager().getDisplay();
        final Displayable current = display.getCurrent();
        display.setCurrent( displayable );
        waiter.start();
        try
        {
            waiter.join();
        }
        catch( InterruptedException e )
        {
        }
        if( current != null )
        {
            display.setCurrent( current );
        }
        return cancelled.booleanValue() ? null : getText();
    }
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.