query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
Cancel currently scheduled activity | public void cancel() {
cancel(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cancelSchedule() {\n\n if (timer == null)\n return;\n // timer.cancel();\n }",
"public synchronized void cancel() {\n }",
"public void cancelAlarm() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n try {\n manager.cancel(pendingIntent);\n } catch (Exception e){\n Log.d(TAG, e.getMessage());\n }\n// Toast.makeText(this, \"Alarm Canceled\", Toast.LENGTH_SHORT).show();\n }",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"protected void cancelTimerTask() {\n ScheduledTimerTask scheduledTimerTask = this.scheduledTimerTask;\n if (null != scheduledTimerTask) {\n this.scheduledTimerTask = null;\n scheduledTimerTask.cancel();\n }\n }",
"public synchronized void cancel() {\n this.executionState = JobExecutionState.CANCELLED;\n this.finished = Instant.now();\n }",
"public void cancelRunnable() {\n\t\tif (taskID != null) {\n\t\t\tplugin.getServer().getScheduler().cancelTask(taskID);\n\t\t}\n\t}",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"public void cancelTask(String id);",
"public static void cancelAlarmElapsed() {\n if (alarmManagerElapsed!= null) {\n alarmManagerElapsed.cancel(alarmIntentElapsed);\n }\n }",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"public void cancel() {\n\t\tinterrupt();\n\t}",
"public void cancel() {\n\t}",
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}",
"public void cancel() {\n\t\tif(hasStarted) {\n\t\t\ttimer.cancel();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"An alarm has not been started\");\n\t\t}\n\t}",
"@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"public void cancel()\n\t{\n\t}",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"public synchronized void cancelExecution() {\n this.status = EXECUTION_CANCELED;\n if (this.context != null)\n context.close(true);\n }",
"public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"private void cancelTimeout(){\n\t\tSharedPreferences timeout = mContext.getSharedPreferences(\"Timeout\"+Integer.toString(mRid), Context.MODE_PRIVATE);\n\t SharedPreferences.Editor editor = timeout.edit();\n\t editor.putLong(\"start\", 0);\n\t editor.apply();\n\t}",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"void cancel() {\n\tsleepThread.interrupt();\n }",
"public void cancel(){\n cancelled = true;\n }",
"public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void cancel() {\n\t\tcancelled = true;\n\t}",
"void cancel(long inId);",
"public boolean cancel();",
"private void cancelTasks() {\n\t\ttimer.cancel();\n\t\ttimer.purge();\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"public void cancel() {\n btCancel().push();\n }",
"@Override\n public void cancel() {\n }",
"public void cancel();",
"@Override\n\tpublic void cancelCalendar(CalendarEdit edit) {\n\t\t\n\t}",
"public void cancelExecution() {\n \n \t\tcancelOrKillExecution(true);\n \t}",
"@Override\n public void cancel() {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n cancelCurrentTask();\n }",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"protected void stopTimeTask() {\n\t\tif (chatAsyncTask!=null) {\n\t\t\tchatAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (liveAsyncTask!=null) {\n\t\t\tliveAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (timerTask!=null) {\n\t\t\ttimerTask.cancel();\n\t\t\ttimerTask = null;\n\t\t}\n\t\t\n\t\tif (timer!=null) {\n\t\t\ttimer.cancel();\n\t\t\ttimer = null;\n\t\t}\n\t\t\n\t\t\n\t}",
"ActivityType stop();",
"@Override\n public void cancel() {\n\n }",
"private void cancel() {\n mFuture.cancel(mMayInterruptIfRunning);\n }",
"@Override\n public void cancel() {\n\n }",
"public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }",
"public static void cancelTask() {\n try {\n if (Utils.isNotNull(tt)) {\n tt.cancel();\n }\n if (Utils.isNotNull(t)) {\n t.cancel();\n }\n } catch (Throwable e) {\n //Utils.debugModePrintStack(e, \"FMap\", \"cancelTask\");\n } finally {\n tt = null;\n t = null;\n }\n timeoutValue = 0;\n }",
"public void cancel() {\r\n\t\tbStop = true;\r\n\t}",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}",
"void cancel() {\n if (mCurrentRequest != null) {\n mCurrentRequest.cancel();\n mCurrentRequest = null;\n }\n mPendingEntries.clear();\n }",
"public synchronized void stopScheduler() {\r\n\t\tstatus = false;\r\n\t\tstart = null;\r\n\t\tif (t != null) {\r\n\t\t\tt.cancel();\r\n\t\t\tt.purge();\r\n\t\t\tt = null;\r\n\t\t}\r\n\t\tstartDate = null;\r\n\t\tsuper.interrupt();\r\n\t}",
"@Override\n public void onClick(View v) {\n aManager.cancel(pIntent);\n Toast.makeText(getApplicationContext(), \"Cancel\", Toast.LENGTH_SHORT).show();\n }",
"private void cancel() {\n recoTransaction.cancel();\n }",
"public void cancel() {\n LogUtil.enterBlock(\"RefreshAnnotatedCallLogNotifier.cancel\");\n\n Intent intent = new Intent();\n intent.setAction(IntentNames.ACTION_CANCEL_REFRESHING_ANNOTATED_CALL_LOG);\n\n LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent);\n }",
"private void cancel() {\n\t\tfinish();\n\t}",
"public abstract boolean cancel();",
"default void cancel() {\n\t\tcancelOriginal();\n\t\tFutureStream.super.cancel();\n\n\t}",
"public void cancel() {\n timer.cancel();\n timer = new Timer();\n }",
"public void stop() {\n if (this.runningTaskId != -1) {\n plugin.getServer().getScheduler().cancelTask(this.runningTaskId);\n }\n reset(true);\n running = false;\n }",
"void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }",
"protected void abortScheduledTasks() {\r\n\r\n\t\tfor (ParallelTask<?> task : scheduledSubtasks) {\r\n\t\t\ttask.cancel();\r\n\t\t}\r\n\r\n\t\tscheduledSubtasks.clear();\r\n\t}",
"public void cancel(){\n \tLog.v(TAG, \"Cancel request\");\n \t// Cancel the initialization task\n \tif(initTask != null){\n \t\tLog.i(TAG, \"initTask was not null.\");\n \t\tinitTask.cancel(true);\n \t\tinitTask = null;\n \t}\n }",
"public void cancel() {\n request.disconnect();\n }",
"public final void cancelResv() {\n ApiUtil.getApi2().cancelCourseResv(this.reserveId).compose(RxUtil.applyIO()).subscribe(new MyResvDetailActivity$cancelResv$1(this, this));\n }",
"@GetMapping(path = \"/api/activity/cancel/{id}\")\n public Response cancelActivity(@PathVariable long id){\n return activityService.cancelActivity(id);\n }",
"public void onCancel();",
"public void cancelInvitionUser() {\n\n }",
"protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }",
"public void cancel()\n {\n this.controller.cancelDownloads();\n\n // Synchronised to avoid a race condition\n synchronized(this.cancelledMonitor)\n {\n // Set the cancelled field to true\n this.cancelled = true;\n }\n theLogger.info(\"Cancel request recieved from UI\");\n }",
"public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }",
"public void cancel() {\n final boolean isCancelable = this.apiRequestAsync != null;\n if (isCancelable) {\n this.apiRequestAsync.cancel(true);\n }\n }",
"void cancelOriginal();",
"public void cancel( String reason );",
"public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }",
"public void cancelTrip() {\n\t\n\t\t// TODO - fill in here\n\t\tIntent intent = new Intent();\n\t\tsetResult(RESULT_CANCELED,intent);\n\t\tfinish();\n\t}",
"public void cancel() {\n if (mCurrentTest != null && mCurrentTest.isRunning()) {\n Log.i(TAG, \"cancel: Cancelling test \\\"\" + mCurrentTest.getName() + \"\\\"...\");\n mCurrentTest.cancel();\n }\n }",
"public void cancelAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n intent.putExtra(\"alarmId\", alarm.getId());\n // check if the alarm is recurring, if it is each days alarm is canceled by multiplying\n // the id by 10 and adding the integer representation of each day\n if (alarm.isRecurring()) {\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10 + day, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n // if it isn't recurring, just cancel the one alarm\n } else {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n }",
"protected abstract void onCancel();",
"public void cancelCurrentComputation(){\n\t\tft.cancel(true);\n\t}",
"@Override\n public void cancelMoveTask() {\n if (_movementTask != null) {\n cancelMoveTask2(true);\n _movementTask = null;\n }\n }",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"void cancelProduction();",
"void cancelIdleStoryCountdown() {\n\n idleSaveStoryToArchiveHandler.removeCallbacksAndMessages(null);\n }",
"public static void cancelAlarmPendingIntents(Context context) {\n List<Alarm> alarms = Alarm.getAlarms();\n\n if (alarms == null) {\n return;\n }\n\n for (Alarm alarm : alarms) {\n if (!alarm.isActive()) {\n continue;\n }\n\n AlarmManager alarmManager =\n (AlarmManager) context.getSystemService(context.ALARM_SERVICE);\n\n PendingIntent pendingIntent = createPendingIntent(context, alarm);\n alarmManager.cancel(pendingIntent);\n }\n }"
] | [
"0.7312381",
"0.69914824",
"0.69659024",
"0.69485784",
"0.69485784",
"0.69485784",
"0.69485784",
"0.69485784",
"0.69485784",
"0.6933376",
"0.69110036",
"0.6869286",
"0.6817612",
"0.67935896",
"0.6777692",
"0.6769815",
"0.6727484",
"0.6704093",
"0.66990626",
"0.66831785",
"0.6680564",
"0.66679424",
"0.666791",
"0.6664435",
"0.6664435",
"0.6664435",
"0.6664435",
"0.6664435",
"0.6658031",
"0.66569704",
"0.665604",
"0.665604",
"0.665604",
"0.6651421",
"0.6627717",
"0.66271627",
"0.6598322",
"0.65953714",
"0.6585148",
"0.658392",
"0.6573797",
"0.65647787",
"0.655897",
"0.655897",
"0.655897",
"0.6548268",
"0.6541944",
"0.6540511",
"0.65395963",
"0.6534716",
"0.65318704",
"0.6519653",
"0.6519498",
"0.6517477",
"0.6513651",
"0.6508796",
"0.6499016",
"0.6498927",
"0.6457345",
"0.6424759",
"0.6414861",
"0.6410072",
"0.6410072",
"0.64055187",
"0.6394108",
"0.6381031",
"0.6366365",
"0.6360581",
"0.63454145",
"0.6326569",
"0.6322379",
"0.63134146",
"0.630937",
"0.62869465",
"0.6276839",
"0.62759393",
"0.6268189",
"0.62647045",
"0.6259787",
"0.62458926",
"0.6245176",
"0.62422466",
"0.62347054",
"0.62261504",
"0.621903",
"0.6213861",
"0.62127864",
"0.61943275",
"0.61869377",
"0.6183309",
"0.61775434",
"0.6150629",
"0.61383206",
"0.61352456",
"0.6133403",
"0.6132922",
"0.6132922",
"0.61245507",
"0.612057",
"0.6118879"
] | 0.67937386 | 13 |
Cancel currently scheduled activity | public void cancel (boolean interrupt) {
future.cancel(interrupt);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cancelSchedule() {\n\n if (timer == null)\n return;\n // timer.cancel();\n }",
"public synchronized void cancel() {\n }",
"public void cancelAlarm() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n try {\n manager.cancel(pendingIntent);\n } catch (Exception e){\n Log.d(TAG, e.getMessage());\n }\n// Toast.makeText(this, \"Alarm Canceled\", Toast.LENGTH_SHORT).show();\n }",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"protected void cancelTimerTask() {\n ScheduledTimerTask scheduledTimerTask = this.scheduledTimerTask;\n if (null != scheduledTimerTask) {\n this.scheduledTimerTask = null;\n scheduledTimerTask.cancel();\n }\n }",
"public synchronized void cancel() {\n this.executionState = JobExecutionState.CANCELLED;\n this.finished = Instant.now();\n }",
"public void cancelRunnable() {\n\t\tif (taskID != null) {\n\t\t\tplugin.getServer().getScheduler().cancelTask(taskID);\n\t\t}\n\t}",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"public void cancel() {\n\t\tcancel(false);\n\t}",
"public void cancelTask(String id);",
"public static void cancelAlarmElapsed() {\n if (alarmManagerElapsed!= null) {\n alarmManagerElapsed.cancel(alarmIntentElapsed);\n }\n }",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"public void cancel() {\n\t\tinterrupt();\n\t}",
"public void cancel() {\n\t}",
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}",
"public void cancel() {\n\t\tif(hasStarted) {\n\t\t\ttimer.cancel();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"An alarm has not been started\");\n\t\t}\n\t}",
"@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"public void cancel()\n\t{\n\t}",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"public synchronized void cancelExecution() {\n this.status = EXECUTION_CANCELED;\n if (this.context != null)\n context.close(true);\n }",
"public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"private void cancelTimeout(){\n\t\tSharedPreferences timeout = mContext.getSharedPreferences(\"Timeout\"+Integer.toString(mRid), Context.MODE_PRIVATE);\n\t SharedPreferences.Editor editor = timeout.edit();\n\t editor.putLong(\"start\", 0);\n\t editor.apply();\n\t}",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"void cancel() {\n\tsleepThread.interrupt();\n }",
"public void cancel(){\n cancelled = true;\n }",
"public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void cancel() {\n\t\tcancelled = true;\n\t}",
"void cancel(long inId);",
"public boolean cancel();",
"private void cancelTasks() {\n\t\ttimer.cancel();\n\t\ttimer.purge();\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"public void cancel() {\n btCancel().push();\n }",
"@Override\n public void cancel() {\n }",
"public void cancel();",
"@Override\n\tpublic void cancelCalendar(CalendarEdit edit) {\n\t\t\n\t}",
"public void cancelExecution() {\n \n \t\tcancelOrKillExecution(true);\n \t}",
"@Override\n public void cancel() {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n cancelCurrentTask();\n }",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"protected void stopTimeTask() {\n\t\tif (chatAsyncTask!=null) {\n\t\t\tchatAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (liveAsyncTask!=null) {\n\t\t\tliveAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (timerTask!=null) {\n\t\t\ttimerTask.cancel();\n\t\t\ttimerTask = null;\n\t\t}\n\t\t\n\t\tif (timer!=null) {\n\t\t\ttimer.cancel();\n\t\t\ttimer = null;\n\t\t}\n\t\t\n\t\t\n\t}",
"ActivityType stop();",
"@Override\n public void cancel() {\n\n }",
"private void cancel() {\n mFuture.cancel(mMayInterruptIfRunning);\n }",
"@Override\n public void cancel() {\n\n }",
"public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }",
"public static void cancelTask() {\n try {\n if (Utils.isNotNull(tt)) {\n tt.cancel();\n }\n if (Utils.isNotNull(t)) {\n t.cancel();\n }\n } catch (Throwable e) {\n //Utils.debugModePrintStack(e, \"FMap\", \"cancelTask\");\n } finally {\n tt = null;\n t = null;\n }\n timeoutValue = 0;\n }",
"public void cancel() {\r\n\t\tbStop = true;\r\n\t}",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}",
"void cancel() {\n if (mCurrentRequest != null) {\n mCurrentRequest.cancel();\n mCurrentRequest = null;\n }\n mPendingEntries.clear();\n }",
"public synchronized void stopScheduler() {\r\n\t\tstatus = false;\r\n\t\tstart = null;\r\n\t\tif (t != null) {\r\n\t\t\tt.cancel();\r\n\t\t\tt.purge();\r\n\t\t\tt = null;\r\n\t\t}\r\n\t\tstartDate = null;\r\n\t\tsuper.interrupt();\r\n\t}",
"@Override\n public void onClick(View v) {\n aManager.cancel(pIntent);\n Toast.makeText(getApplicationContext(), \"Cancel\", Toast.LENGTH_SHORT).show();\n }",
"private void cancel() {\n recoTransaction.cancel();\n }",
"public void cancel() {\n LogUtil.enterBlock(\"RefreshAnnotatedCallLogNotifier.cancel\");\n\n Intent intent = new Intent();\n intent.setAction(IntentNames.ACTION_CANCEL_REFRESHING_ANNOTATED_CALL_LOG);\n\n LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent);\n }",
"private void cancel() {\n\t\tfinish();\n\t}",
"public abstract boolean cancel();",
"default void cancel() {\n\t\tcancelOriginal();\n\t\tFutureStream.super.cancel();\n\n\t}",
"public void cancel() {\n timer.cancel();\n timer = new Timer();\n }",
"public void stop() {\n if (this.runningTaskId != -1) {\n plugin.getServer().getScheduler().cancelTask(this.runningTaskId);\n }\n reset(true);\n running = false;\n }",
"void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }",
"protected void abortScheduledTasks() {\r\n\r\n\t\tfor (ParallelTask<?> task : scheduledSubtasks) {\r\n\t\t\ttask.cancel();\r\n\t\t}\r\n\r\n\t\tscheduledSubtasks.clear();\r\n\t}",
"public void cancel(){\n \tLog.v(TAG, \"Cancel request\");\n \t// Cancel the initialization task\n \tif(initTask != null){\n \t\tLog.i(TAG, \"initTask was not null.\");\n \t\tinitTask.cancel(true);\n \t\tinitTask = null;\n \t}\n }",
"public void cancel() {\n request.disconnect();\n }",
"public final void cancelResv() {\n ApiUtil.getApi2().cancelCourseResv(this.reserveId).compose(RxUtil.applyIO()).subscribe(new MyResvDetailActivity$cancelResv$1(this, this));\n }",
"@GetMapping(path = \"/api/activity/cancel/{id}\")\n public Response cancelActivity(@PathVariable long id){\n return activityService.cancelActivity(id);\n }",
"public void onCancel();",
"public void cancelInvitionUser() {\n\n }",
"protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }",
"public void cancel()\n {\n this.controller.cancelDownloads();\n\n // Synchronised to avoid a race condition\n synchronized(this.cancelledMonitor)\n {\n // Set the cancelled field to true\n this.cancelled = true;\n }\n theLogger.info(\"Cancel request recieved from UI\");\n }",
"public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }",
"public void cancel() {\n final boolean isCancelable = this.apiRequestAsync != null;\n if (isCancelable) {\n this.apiRequestAsync.cancel(true);\n }\n }",
"void cancelOriginal();",
"public void cancel( String reason );",
"public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }",
"public void cancelTrip() {\n\t\n\t\t// TODO - fill in here\n\t\tIntent intent = new Intent();\n\t\tsetResult(RESULT_CANCELED,intent);\n\t\tfinish();\n\t}",
"public void cancel() {\n if (mCurrentTest != null && mCurrentTest.isRunning()) {\n Log.i(TAG, \"cancel: Cancelling test \\\"\" + mCurrentTest.getName() + \"\\\"...\");\n mCurrentTest.cancel();\n }\n }",
"public void cancelAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n intent.putExtra(\"alarmId\", alarm.getId());\n // check if the alarm is recurring, if it is each days alarm is canceled by multiplying\n // the id by 10 and adding the integer representation of each day\n if (alarm.isRecurring()) {\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10 + day, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n // if it isn't recurring, just cancel the one alarm\n } else {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n }",
"protected abstract void onCancel();",
"public void cancelCurrentComputation(){\n\t\tft.cancel(true);\n\t}",
"@Override\n public void cancelMoveTask() {\n if (_movementTask != null) {\n cancelMoveTask2(true);\n _movementTask = null;\n }\n }",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"void cancelProduction();",
"void cancelIdleStoryCountdown() {\n\n idleSaveStoryToArchiveHandler.removeCallbacksAndMessages(null);\n }",
"public static void cancelAlarmPendingIntents(Context context) {\n List<Alarm> alarms = Alarm.getAlarms();\n\n if (alarms == null) {\n return;\n }\n\n for (Alarm alarm : alarms) {\n if (!alarm.isActive()) {\n continue;\n }\n\n AlarmManager alarmManager =\n (AlarmManager) context.getSystemService(context.ALARM_SERVICE);\n\n PendingIntent pendingIntent = createPendingIntent(context, alarm);\n alarmManager.cancel(pendingIntent);\n }\n }"
] | [
"0.7312381",
"0.69914824",
"0.69659024",
"0.69485784",
"0.69485784",
"0.69485784",
"0.69485784",
"0.69485784",
"0.69485784",
"0.6933376",
"0.69110036",
"0.6869286",
"0.6817612",
"0.67937386",
"0.67935896",
"0.6777692",
"0.6769815",
"0.6727484",
"0.6704093",
"0.66990626",
"0.66831785",
"0.6680564",
"0.66679424",
"0.666791",
"0.6664435",
"0.6664435",
"0.6664435",
"0.6664435",
"0.6664435",
"0.6658031",
"0.66569704",
"0.665604",
"0.665604",
"0.665604",
"0.6651421",
"0.6627717",
"0.66271627",
"0.6598322",
"0.65953714",
"0.6585148",
"0.658392",
"0.6573797",
"0.65647787",
"0.655897",
"0.655897",
"0.655897",
"0.6548268",
"0.6541944",
"0.6540511",
"0.65395963",
"0.6534716",
"0.65318704",
"0.6519653",
"0.6519498",
"0.6517477",
"0.6513651",
"0.6508796",
"0.6499016",
"0.6498927",
"0.6457345",
"0.6424759",
"0.6414861",
"0.6410072",
"0.6410072",
"0.64055187",
"0.6394108",
"0.6381031",
"0.6366365",
"0.6360581",
"0.63454145",
"0.6326569",
"0.6322379",
"0.63134146",
"0.630937",
"0.62869465",
"0.6276839",
"0.62759393",
"0.6268189",
"0.62647045",
"0.6259787",
"0.62458926",
"0.6245176",
"0.62422466",
"0.62347054",
"0.62261504",
"0.621903",
"0.6213861",
"0.62127864",
"0.61943275",
"0.61869377",
"0.6183309",
"0.61775434",
"0.6150629",
"0.61383206",
"0.61352456",
"0.6133403",
"0.6132922",
"0.6132922",
"0.61245507",
"0.612057",
"0.6118879"
] | 0.0 | -1 |
Open current scheduled activity instance. | public void open() throws IOException {
logger.open();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openActivity() {\n }",
"public void launchMySchedule(View view) {\n\t\tIntent intent = new Intent(this, SessionDBActivity.class);\n\t\tintent.putExtra(android.content.Intent.EXTRA_TEXT, SessionDBActivity.MY_SESSIONS);\n\t\tstartActivity(intent);\n\t}",
"Activity activity();",
"protected abstract void startMonitoring(fr.inria.phoenix.diasuite.framework.datatype.dailyactivityname.DailyActivityName activity) throws Exception;",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent ViewSchedule= new Intent(getBaseContext(),ViewSchedule.class);\n\t\t\t\tViewSchedule.putExtras(bundle);\n\t\t\t\tstartActivity(ViewSchedule);\n\t\t\t}",
"@Override\r\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\r\n intent.addCategory(Intent.CATEGORY_DEFAULT);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK /*| Intent.FLAG_ACTIVITY_CLEAR_TASK*/\r\n /* | Intent.FLAG_ACTIVITY_TASK_ON_HOME*/);\r\n intent.setDataAndType(Uri.parse(\"content://com.android.calendar/\"), \"time/epoch\");\r\n mContext.startActivity(intent);\r\n// if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){\r\n// mContext.startActivity(new Intent(AlarmClock.ACTION_SHOW_ALARMS));\r\n// }else {\r\n// mContext.startActivity(new Intent(AlarmClock.ACTION_SET_ALARM));\r\n// }\r\n }",
"protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}",
"public void showSchedule(View view) {\n Intent intent = new Intent(this, DisplaySchedule.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }",
"public void open() {\n timer.schedule(new ChangeLibraryStateTask(requestManager, this), new Date(), MILLISECOND_DAY);\n }",
"public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(this, add_schedule_Activity.class);\n startActivity(intent);\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}",
"private PendingIntent openActivityPendingIntent(Context context) {\n Intent intent = new Intent(context, MainActivity.class);\n return PendingIntent.getActivity(context, 0, intent, 0);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tstartActivity(new Intent(\"com.calendar.SYNCHRONOUS\"));\n\t\t\t}",
"public void openReserveSeat(){\n Intent intent = new Intent(this, ReserveSeatActivity.class);\n startActivity(intent);\n }",
"public void startHourlyActivity() {\n if (getForecast() != null && getForecast().getHourlyForecastList() != null) {\n Intent intent = new Intent(this, HourlyForecastActivity.class);\n intent.putParcelableArrayListExtra(MainActivity.HOURLY_FORECAST_PARCEL, (ArrayList<? extends Parcelable>) getForecast().getHourlyForecastList());\n startActivity(intent);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent ManageSchedule= new Intent(getBaseContext(),ManageSchedule.class);\n\t\t\t\tManageSchedule.putExtras(bundle);\n\t\t\t\tstartActivity(ManageSchedule);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n startHourlyActivity();\n }",
"public static Intent getIntent(Context context) {\n Intent intent = new Intent(context, WifiSchedulerDialog.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);\n return intent;\n }",
"public void open()\n {\n }",
"public Activity() {\n title = \"\";\n comment = \"\";\n startTime = (new GregorianCalendar()).getTime();\n endTime = (new GregorianCalendar()).getTime();\n }",
"public static synchronized ChoseActivity getInstance() {\n return mInstance;\n }",
"protected ScllActivity iGetActivity() {\n\t\treturn (ScllActivity) getActivity();\n\t}",
"public void open() {\n isOpen = true;\n }",
"public void open();",
"public void open();",
"@Override\n public void onClick(View view) {\n Intent intent = AlarmPagerActivity.newIntent(sApplicationContext, mAlarm.getId());\n startActivity(intent);\n }",
"public Open() {\n //creates a new open instance\n }",
"private void startDashboard() {\n Intent intent = new Intent(this, Dashboard.class);\n startActivity(intent);\n }",
"public synchronized void startActivity(final Activity activity) {\r\n\t// FIXME: temp hack for Slide curtains\r\n\tif (activity.getName().equals(\"Curtains\")) {\r\n\t\ttry {\r\n\t\t\tString response = Request.Post(\"https://\" + slideHost + \"/rpc/Slide.SetPos\").bodyString(\"{\\\"pos\\\": 1}\", ContentType.APPLICATION_JSON).execute().returnContent().asString();\r\n\t\t\tSystem.out.println(\"Slide response: \" + response);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n if (this.isActive(activity)) {\r\n throw new IllegalStateException(\"Activity already active\");\r\n }\r\n if (this.activeActivity != null) {\r\n // Another activity is currently active, so stop that one first.\r\n // TODO: Don't turn off / turn on overlapping devices, but only change channels where needed.\r\n this.stopActivity(this.activeActivity);\r\n }\r\n final PyhActivity oldValue = this.createPyhActivity(activity);\r\n this.activeActivity = activity;\r\n if (activity.getModules().getPhilipsHue() != null) {\r\n this.taskExecutor.execute(() -> this.activateHueModule(activity.getModules().getPhilipsHue()));\r\n }\r\n if (activity.getModules().getInfraRed() != null) {\r\n this.taskExecutor.execute(() -> this.activateIrModule(activity.getModules().getInfraRed()));\r\n }\r\n final PyhActivity newValue = this.createPyhActivity(activity);\r\n this.eventPublisher.publishEvent(new ActivityChangedEvent(oldValue, newValue));\r\n }",
"public void open() {\r\n\t}",
"@Override\n public void run() {\n startActivity(intent);\n }",
"private void loadDashboard() {\n Intent navigationIntent = new Intent(this, DashboardActivity.class);\n navigationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(navigationIntent);\n }",
"@Override\n\t\t\tpublic void open() {\n\t\t\t\tisAutoPlay = true;\n\t\t\t\tCustomApplication.app.preferencesUtil.setBooleanValue(\n\t\t\t\t\t\t\"isAutoPlay\", isAutoPlay);\n\t\t\t}",
"private void launchStartMinglingActivity() {\n\t\tIntent startMinglingActivity = new Intent(this,\n\t\t\t\tStartMinglingActivity.class);\n\t\tstartActivity(startMinglingActivity);\n\t}",
"public boolean open() {\n\n return true;\n }",
"public void launchCompleteSchedule(View view) {\n\t\tIntent intent = new Intent(this, SessionDBActivity.class);\n\t\tintent.putExtra(android.content.Intent.EXTRA_TEXT, SessionDBActivity.ALL_SESSIONS);\n\t\tstartActivity(intent);\n\t}",
"public void open() {\n\t}",
"@Provides @PerActivity Activity activity() {\n return this.activity;\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(getActivity(), AgendaActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n incidentalIntent = new Intent(getApplicationContext(),IncidentalTaskActivity.class);\n startActivity(incidentalIntent);\n }",
"@Override\n public void onClick(View view) {\n Intent sleepIntent = new Intent(MainActivity.this, Sleep_Playlist.class);\n // Start the new activity\n startActivity(sleepIntent);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tstartActivity(new Intent(\"com.calendar.TODOLIST\"));\n\t\t\t}",
"private void showViewToursActivity() {\n//\t\tIntent intent = new intent(this, ActivityViewTours.class);\n System.out.println(\"Not Yet Implemented\");\n }",
"public static void openActivity(Activity fromActivity, Class toActivity, boolean finishThis) {\r\n openActivity(fromActivity, toActivity, null, finishThis);\r\n }",
"public void open(){\n }",
"public void open() {\n // no-op;\n }",
"public void startScheduling() {\n new Thread(new Runnable() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(30000);\n Calendar c = Calendar.getInstance();\n int min = c.get(Calendar.MINUTE);\n if (((min % 10) == 0) || (min == 0)) {\n boolean action = getLightOnWhenMovementDetectedSchedule().getCurrentSchedule();\n if (action) {\n configureSwitchOnWhenMovement(true);\n } else {\n configureSwitchOnWhenMovement(false);\n }\n action = getLightSchedule().getCurrentSchedule();\n if (action) {\n switchOn();\n } else {\n switchOff();\n }\n saveHistoryData();\n }\n Thread.sleep(30000);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteHomeConnectionException e) {\n e.printStackTrace();\n } catch (RemoteHomeManagerException e) {\n e.printStackTrace();\n }\n }\n }\n }).start(); \n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(openNotifications);\n\t\t\t\t//setContentView(R.layout.activity_timetable__gui);\n\t\t\t}",
"private void startNewAcitivity(Intent intent, ActivityOptionsCompat options) {\n ActivityCompat.startActivity(this, intent, options.toBundle());\n }",
"void startNewActivity(Intent intent);",
"public void openFlag() {\n \tIntent intent = new Intent(this, DisplayFlagActivity.class);\n \tstartActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n routineIntent = new Intent(getApplicationContext(), RoutineTaskActivity.class);\n startActivity(routineIntent);\n }",
"public void schedule(long period) {\n\t\tschedule(\"ActivityTask\", period, period, TimeUnit.MILLISECONDS);\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainInterface.this, ChronometerDemoActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(openTimetable);\n\t\t\t\t//setContentView(R.layout.activity_timetable__gui);\n\t\t\t}",
"@Test\n public void openTaskDetails_startsActivity() {\n String taskId = \"id\";\n\n // When opening the task details\n mTasksNavigator.openTaskDetails(taskId);\n\n // The AddEditTaskActivity is opened with the correct request code\n verify(mNavigationProvider).startActivityForResultWithExtra(eq(TaskDetailActivity.class),\n eq(-1), eq(TaskDetailActivity.EXTRA_TASK_ID), eq(taskId));\n }",
"@Override\n public void onItemClick(View v, int position) {\n //TODO: Handle list item click event\n\n Intent intent = new Intent(Schedule_Activity.this, TaskDetailActivity.class);\n\n Uri currentTaskUri = ContentUris.withAppendedId(TaskContract.CONTENT_URI, mAdapter.getItemId(position));\n intent.setData(currentTaskUri);\n startActivity(intent);\n\n }",
"@Override\r\n\tpublic void startCron() {\n\t\tlog.info(\"Start Schedule Manager.\");\r\n\t\tmainThread = new Thread(new Runnable() {\r\n\t\t\t\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tmainThread.start();\r\n\t}",
"private void launchActivity(String title, String url){\n // package intent\n // start activity\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, \"default\");\n\n String content = \"The instruction for \" + title + \" can be found here!\";\n\n //set icons\n builder.setSmallIcon(android.R.drawable.btn_star);\n builder.setStyle(new NotificationCompat.BigTextStyle(builder).bigText(content));\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n\n // create a pending intent for the notification with the intent I created\n PendingIntent pendingIntent = PendingIntent.getActivity(mContext,0, intent, 0);\n builder.setContentIntent(pendingIntent);\n\n //set the title and content of the notification\n builder.setContentTitle(\"Cooking Instruction\");\n builder.setContentText(content);\n\n // get the system service to display this notification\n NotificationManager notificationManager = (NotificationManager) mContext.getSystemService(NOTIFICATION_SERVICE);\n\n //notify\n notificationManager.notify(1, builder.build());\n\n\n }",
"public static synchronized ActivityTaskManager getInstance() {\n if (sInstance == null) {\n sInstance = new ActivityTaskManager();\n }\n return sInstance;\n }",
"public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}",
"public boolean openCreateGoal(){\n Intent intent = new Intent(this, GoalNewActivity.class);\n startActivity(intent);\n return true;\n }",
"@Override\n \t\t\t\tpublic void doOpen() {\n \n \t\t\t\t}",
"protected void startStats(){\n Intent activityChangeIntent = new Intent(MainActivity.this, StatisticManagerActivity.class);\n startActivity(activityChangeIntent);\n }",
"protected void open()\n {\n }",
"public Resource startedAtTime(Resource activity, Date date) {\n Statement atTime = model.createStatement(activity,\n model.createProperty(ProvOntology.getStartedAtTimeStartingPointPropertyFullURI()),\n getDateLiteral(date));\n model.add(atTime);\n return activity;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(activity, HistoricalActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"public void openMoving() {\n myActivity.setContentView(R.layout.moving);\n Button movingButtonToGame = myActivity.findViewById(R.id.button10);\n\n movingButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingRulesScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }",
"private void FacebookClick()\n {\n Session session = Session.getActiveSession();\n if (!session.isOpened() && !session.isClosed()) {\n session.openForRead(new Session.OpenRequest(this).setCallback(statusCallback));\n } else {\n Session.openActiveSession(getActivity(), this, true, statusCallback);\n }\n }",
"public final void openPodcast(Activity act)\n {\n final String urlBrowser = act.getString(R.string.podcast_url);\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(urlBrowser));\n act.startActivity(intent);\n\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, TriggerActivity.class);\n startActivity(intent);\n }",
"public void opened();",
"public void Open() {\r\n\t click();\r\n\t }",
"public void toBeam(){\n Intent intent = new Intent(this, Beam.class);\n startActivity(intent);\n }",
"public static void startLauncherActivity(Context context) {\n PackageManager packageManager = context.getPackageManager();\n Intent intent = packageManager.getLaunchIntentForPackage(context\n .getPackageName());\n ComponentName componentName = intent.getComponent();\n Intent mainIntent = Intent.makeRestartActivityTask(componentName);\n mainIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n mainIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n mainIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mainIntent.putExtra(\"isSessionExpired\", true);\n context.startActivity(mainIntent);\n }",
"public void openCurrentMessage() {\n if (this.currentMessageObject != null) {\n Intent intent = new Intent(ApplicationLoader.applicationContext, LaunchActivity.class);\n long dialogId = this.currentMessageObject.getDialogId();\n if (DialogObject.isEncryptedDialog(dialogId)) {\n intent.putExtra(\"encId\", DialogObject.getEncryptedChatId(dialogId));\n } else if (DialogObject.isUserDialog(dialogId)) {\n intent.putExtra(\"userId\", dialogId);\n } else if (DialogObject.isChatDialog(dialogId)) {\n intent.putExtra(\"chatId\", -dialogId);\n }\n intent.putExtra(\"currentAccount\", this.currentMessageObject.currentAccount);\n intent.setAction(\"com.tmessages.openchat\" + Math.random() + Integer.MAX_VALUE);\n intent.setFlags(32768);\n startActivity(intent);\n onFinish();\n finish();\n }\n }",
"public static void ShowCreateSchedule(){\n ToggleVisibility(CreateSchedule.window);\n }",
"public void openCreateAccount(){\n Intent intent = new Intent(this, createAccountActivity.class);\n startActivity(intent);\n }",
"void doActivity();",
"private void showCreateWalkActivity() {\n Intent intent = new Intent(this, ActivityNewWalk.class);\n this.startActivityForResult(intent, CREATE_WALK_REQUEST);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tstartActivity(new Intent(\"com.calendar.GOOGLESYNC\"));\n\t\t\t}",
"@Override\n\tpublic void open(int id) {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent t = new Intent(mContext, DailyPlan.class);\r\n\t\t\t\tt.putExtra(\"day\", day);\r\n\t\t\t\tt.putExtra(\"month\", month);\r\n\t\t\t\tt.putExtra(\"year\", year);\r\n\t\t\t\tstartActivity(t);\r\n\t\t\t\tfinish();\r\n\t\t\t}",
"public static void openURL(Context activity, String url) {\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n activity.startActivity(i);\n }",
"@Override\n\tpublic void open() {\n\n\t}",
"@Override\n\tpublic void open() {\n\n\t}",
"@Override\r\n\tpublic boolean open() {\n\t\taccountStatus = AccountStatus.ACTIVE;\r\n\t\treturn true;\r\n\t}",
"public void startSportsActivity() {\n mRTS.getAndroidLocationListener().requestGps(true, TAG);\n\n if (mStatus != ActivityUtil.SPORTS_ACTIVITY_STATUS_NO_ACTIVITY) {\n return;\n // Doesn't make sense to start something that is already\n // started\n }\n\n setupRIBFiles();\n mRTS.reInitializeForNewSports(mType, true);\n mStartTime = mRTS.getReconTimeManager().getUTCTimems();\n mTotalNumberOfRides++;\n mStatus = ActivityUtil.SPORTS_ACTIVITY_STATUS_ONGOING;\n stamp();\n showStatusOnStatusBar();\n mRTS.getReconEventHandler()\n .writeSportsActivityEvent(ReconEventHandler\n .SPORTS_ACTIVITY_START_EVENT,\n mType);\n notifyAndSaveTempStates();\n }",
"@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link Classical}\n Intent classicalIntent = new Intent(getApplicationContext(), Classical.class);\n\n // Start the new activity\n startActivity(classicalIntent);\n }",
"public void startViewTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this,TripHistoryActivity.class);\r\n startActivity(intent);\r\n\t}",
"private PendingIntent getNotificationIntent() {\n Intent resultIntent = new Intent(this, ScheduleNotificationActivity.class);\n // Because clicking the notification opens a new (\"special\") activity, there's\n // no need to create an artificial back stack.\n return PendingIntent.getActivity(\n this,\n 0,\n resultIntent,\n PendingIntent.FLAG_ONE_SHOT\n );\n }",
"@VisibleForTesting(otherwise = VisibleForTesting.NONE)\r\n LiveData<Task> getActiveTask();",
"public void openMapActivity() {\n Log.d(\"StartActivity\", \"opening map activity\");\n Intent intent = new Intent(this, MapsActivity.class);\n startActivity(intent);\n finish();\n }",
"protected Activity getActivity() {\n\t\treturn (Activity) getHost().getModel();\n\t}",
"public Cronometro() {\n initComponents();\n cronometro = new CronometroThread(this);\n }",
"public void startDailyActivity(int item) {\n //Don't start this activity if there is no forecast data\n if (getForecast() != null && getForecast().getDailyForecastList() != null) {\n Intent intent = new Intent(this, DailyForecastActivity.class);\n intent.putExtra(MainActivity.ADDRESS_EXTRA, getStandardAddress());\n intent.putExtra(MainActivity.DAILY_FORECAST_PARCEL,getForecast().getDailyForecastList().get(item));\n startActivity(intent);\n }\n }",
"@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n session = new SessionManagement(getApplicationContext());\n\n redirect();\n\n // close this activity\n finish();\n }",
"@Override\n\tpublic void open() {\n\t\t\n\t}",
"@Override\n public void run()\n {\n Intent intent = new Intent(context, NotifyService.class);\n intent.putExtra(NotifyService.INTENT_NOTIFY, true);\n intent.putExtra(\"REMINDER\", showInfo);\n PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, 0);\n\n boolean alarmUp = (PendingIntent.getBroadcast(context, 0,\n new Intent(\"is.activites.scheduleActivites.INTENT_NOTIFY\"),\n PendingIntent.FLAG_NO_CREATE) != null);\n\n // Sets an alarm - note this alarm will be lost if the phone is turned off and on again\n if(!alarmUp) am.set(AlarmManager.RTC_WAKEUP, date.getTimeInMillis(), pendingIntent);\n }"
] | [
"0.6439849",
"0.59468997",
"0.57321215",
"0.568739",
"0.5653898",
"0.5633204",
"0.5578727",
"0.5575056",
"0.5545709",
"0.5527907",
"0.55122566",
"0.5500346",
"0.5478478",
"0.5464356",
"0.5426077",
"0.54236573",
"0.54186946",
"0.54024374",
"0.5396016",
"0.53434694",
"0.52953815",
"0.5259027",
"0.52587783",
"0.5250293",
"0.523702",
"0.5235039",
"0.5235039",
"0.5232216",
"0.5226837",
"0.5224625",
"0.52216893",
"0.521087",
"0.5208251",
"0.5195934",
"0.5186124",
"0.5178603",
"0.5165851",
"0.5165702",
"0.5165172",
"0.51648957",
"0.5154782",
"0.5146933",
"0.5144394",
"0.51337135",
"0.5132104",
"0.50738996",
"0.5062238",
"0.50567245",
"0.5055566",
"0.50498706",
"0.5043126",
"0.5034305",
"0.5026001",
"0.5025928",
"0.50159234",
"0.50156546",
"0.5011704",
"0.50108796",
"0.49964392",
"0.4994533",
"0.4989483",
"0.4984469",
"0.49825",
"0.49819186",
"0.49804184",
"0.49635586",
"0.49598637",
"0.4958233",
"0.49501628",
"0.4944635",
"0.49446312",
"0.49441186",
"0.49396446",
"0.49348372",
"0.49169427",
"0.49154353",
"0.49119645",
"0.4898098",
"0.4877061",
"0.48754713",
"0.4872199",
"0.48696372",
"0.48656788",
"0.4860026",
"0.48594216",
"0.4859268",
"0.48517618",
"0.48517618",
"0.4844213",
"0.48436815",
"0.48318744",
"0.4831015",
"0.48299",
"0.48279038",
"0.48177823",
"0.48175937",
"0.48173192",
"0.48162445",
"0.48154697",
"0.4814394",
"0.48110256"
] | 0.0 | -1 |
Close current scheduled activity instance. | public void close() {
try {
cancel(true);
if (future != null) {
future.get();
}
}
catch (Throwable ex) {}
finally {
logger.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void close() {\r\n\r\n\t\tif (done) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdone = true;\r\n\r\n\t\tabortScheduledTasks();\r\n\t}",
"void closeActivity();",
"static public void close() {\n renewalTimer.cancel();\n delegationTokens.clear();\n }",
"public void closeClick() {\n timeline.stop();\n threadWorker.shutDownExecutor();\n Platform.exit();\n }",
"private void closeActivity() {\n final Handler handler = new Handler(Looper.getMainLooper());\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n finish();\n }\n }, 250);\n }",
"ActivityType stop();",
"public void close() {\n timer.schedule(new ChangeLibraryStateTask(requestManager, this), new Date(), MILLISECOND_DAY);\n }",
"public void run() \n \t {\n \t \tCloseActivity();\n \t }",
"public void close()\n {\n try\n {\n stop();\n }\n catch (IOException ioex)\n {\n logger.error(\"Failed to stop \" + getClass().getSimpleName(), ioex);\n }\n }",
"public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }",
"private void stop()\n {\n if(running)\n {\n scheduledExecutorService.shutdownNow();\n running = false;\n }\n }",
"protected abstract void stopMonitoring(fr.inria.phoenix.diasuite.framework.datatype.dailyactivityname.DailyActivityName activity) throws Exception;",
"@Override public void close() {\n\t\tthis.timer.cancel();\n\t\tthis.motionStream.removeListener(this);\n\t}",
"public synchronized void stopActivity(final Activity activity) {\n\tif (activity.getName().equals(\"Curtains\")) {\r\n\t\ttry {\r\n\t\t\tString response = Request.Post(\"https://\" + slideHost + \"/rpc/Slide.SetPos\").bodyString(\"{\\\"pos\\\": 0}\", ContentType.APPLICATION_JSON).execute().returnContent().asString();\r\n\t\t\tSystem.out.println(\"Slide response: \" + response);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n if (!this.isActive(activity)) {\r\n throw new IllegalStateException(\"Activity is not active\");\r\n }\r\n final PyhActivity oldValue = this.createPyhActivity(activity);\r\n if (activity.getModules().getPhilipsHue() != null) {\r\n this.taskExecutor.execute(() -> this.deactivateHueModule(activity.getModules().getPhilipsHue()));\r\n }\r\n if (activity.getModules().getInfraRed() != null) {\r\n this.taskExecutor.execute(() -> this.deactivateIrModule(activity.getModules().getInfraRed()));\r\n }\r\n this.activeActivity = null;\r\n final PyhActivity newValue = this.createPyhActivity(activity);\r\n this.eventPublisher.publishEvent(new ActivityChangedEvent(oldValue, newValue));\r\n }",
"public void onCloseMeeting() {\n controller.closeMeeting();\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tActivityCollector.removeActivity(this);\n\t}",
"public void close ( ) {\n if ( this.currentMidi != null ) {\n this.currentMidi.stop ( );\n this.sequencer.removeMetaEventListener ( this.currentMidi );\n }\n\n if ( this.sequencer.isRunning ( ) )\n this.sequencer.stop ( );\n\n this.sequencer.close ( );\n this.sequencer = null;\n }",
"public void close() {\n appContext.close();\n }",
"public void close()\r\n {\r\n myModel.deleteObserver(this);\r\n }",
"public void exitActivity() {\n\n finish();\n\n }",
"private void close() {\r\n closeListener.run();\r\n }",
"public void stop(){\n if (this.isActive()) {\n this.setEndTime(Calendar.getInstance());\n this.setTotalSeconds();\n this.setActive(false);\n }\n \n }",
"public void close() {}",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public void close();",
"public static void close() {\n HashMap<String, Transaction> map = instance.getTransactions();\n for (Transaction transaction : map.values()) {\n transaction.destroy();\n }\n map.clear();\n instance.transactions.remove();\n }",
"public synchronized void shutdownInstance() {\n if (this.computationScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.computationScheduler).shutdown();\n }\n if (this.ioScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.ioScheduler).shutdown();\n }\n if (this.newThreadScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.newThreadScheduler).shutdown();\n }\n }",
"public void Close() {\n\t\tendDate = sdf.format(new Date());\n\t}",
"public synchronized void close() {}",
"void close() {\n this.lms.close();\n }",
"public void stop() {\n if (this.runningTaskId != -1) {\n plugin.getServer().getScheduler().cancelTask(this.runningTaskId);\n }\n reset(true);\n running = false;\n }",
"public void close() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (globalLock) {\n isRunning = false;\n\n if (reconnectionThread != null) {\n reconnectionThread.interrupt();\n }\n\n webSocketConnection.closeInternal();\n }\n }\n }).start();\n }",
"public void close(){\n this.boardController.close();\n }",
"public void close() {\n dispose();\n }",
"public void close() {\r\n helper.close();\r\n }",
"private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }",
"public void close() {\n close = true;\n }",
"private void cancelSchedule() {\n\n if (timer == null)\n return;\n // timer.cancel();\n }",
"public void close() {\n unbind();\n }",
"public void close() {\n helper.close();\n }",
"public void stop() {\n\t\tthis.close(this.btcomm);\n\t}",
"public void close() {\t\t\n\t}",
"public void activityEnded(javax.slee.resource.ActivityHandle activityHandle) {\r\n \t\t\r\n \t\t// remove the activity from the list of activities\r\n \t\tactivities.remove(activityHandle);\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"activityEnded: activityHandle=\"+activityHandle);\r\n \t\t}\r\n \t\t\r\n \t}",
"public void safeClose(){\r\n\t\tthis.isRun = false;\r\n\t}",
"public void close() {\n }",
"public void close() {\n }",
"public void close() {\n }",
"public void close() {\n connection.close();\n running = false;\n }",
"@Override\n\tpublic void stopLocalTimer() {\n\t\tthis.isAppRunning = false;\n\t\tlocalBeatSocket.close();\n\t}",
"@Override\n public void close()\n {\n this.disconnect();\n }",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"void close();",
"public void close()\n {\n done = true;\n wakeup();\n // TODO: if needed, use a CountdownLatch to sync...\n }",
"private void closeInstance(){\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tconn.getConnection().close();\n\t\t\t\n\t\t\tstmt = null;\n\t\t\trs = null;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void close() {\r\n\t}"
] | [
"0.65247744",
"0.64783317",
"0.621685",
"0.619788",
"0.6144869",
"0.6023578",
"0.5811775",
"0.57567805",
"0.575491",
"0.5710042",
"0.5706694",
"0.5685876",
"0.5645417",
"0.5568869",
"0.55609465",
"0.5547119",
"0.5537362",
"0.54949373",
"0.54938555",
"0.5489821",
"0.54877764",
"0.54720056",
"0.5461818",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.54532367",
"0.5430688",
"0.54256785",
"0.54143196",
"0.5409477",
"0.54035515",
"0.539364",
"0.53843564",
"0.5381835",
"0.5379159",
"0.5370872",
"0.53648716",
"0.53500277",
"0.53403854",
"0.53261435",
"0.5324228",
"0.5322536",
"0.5312864",
"0.53123784",
"0.5304655",
"0.5304138",
"0.5304138",
"0.5304138",
"0.53039646",
"0.53019273",
"0.52940154",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.5293736",
"0.52886176",
"0.52862626",
"0.5281805"
] | 0.0 | -1 |
Use the Builder class for convenient dialog construction | @Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setMessage("Limite mensal excedido! Na versão gratuita, o limite máximo de publicação de caronas mensais é 4 (quatro), atualize para a versão Pro e tenha publicações ilimitadas...")
.setPositiveButton("Ir", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
String url = "https://play.google.com/store/apps/details?id=com.xetelas.nova";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getContext().startActivity(i);
}
})
.setNegativeButton("Voltar", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
// User cancelled the dialog
}
});
// Create the AlertDialog object and return it
return builder.create();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Dialog() {\n\t}",
"public abstract Dialog createDialog(DialogDescriptor descriptor);",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t\treturn dialog;\n\t}",
"public StandardDialog() {\n super();\n init();\n }",
"public FiltroGirosDialog() {\n \n }",
"private Dialogs () {\r\n\t}",
"public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }",
"protected abstract JDialog createDialog();",
"private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }",
"public Builder(){\n }",
"public static Builder builder(){ return new Builder(); }",
"static Builder builder() {\n return new Builder();\n }",
"protected void alertBuilder(){\n SettingsDialogFragment settingsDialogFragment = new SettingsDialogFragment();\n settingsDialogFragment.show(getSupportFragmentManager(), \"Settings\");\n }",
"private void initDialog() {\n }",
"private AlertDialog cargando() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n LayoutInflater inflater = getLayoutInflater();\n\n @SuppressLint(\"InflateParams\") View v = inflater.inflate(R.layout.loading, null);\n\n\n builder.setView(v);\n builder.setCancelable(false);\n\n return builder.create();\n\n }",
"private Builder() {}",
"private Builder() {\n\t\t}",
"private Builder() {\n }",
"private Builder() {\n }",
"public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }",
"public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}",
"private void doDialogMsgBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.OverAge))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }",
"public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }",
"private Builder()\n {\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"@Override\n\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}",
"private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}",
"public PHConstDialog() {\n\t\tinitComponents();\n\t}",
"private AlertDialog alertBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Missing Arduino Unit, go to Settings?\").\n setCancelable(false).setPositiveButton(\n \"Yes\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n //call qr scan intent\n Intent prefScreen = new Intent(TempMeasure.this, Preferences.class);\n startActivityForResult(prefScreen, 0);\n }\n }).setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = builder.create();\n return alert;\n }",
"public abstract void initDialog();",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public Builder() {\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"public Builder() { }",
"private AlertDialog createAboutDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this).setTitle(R.string.license_title)\n .setMessage(R.string.license).setIcon(R.drawable.about)\n .setNeutralButton(R.string.about_button, null);\n AlertDialog alert = builder.create();\n return alert;\n }",
"private Form(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public interface DialogFactory {\n MessageDialog createMessageDialog();\n ListDialog createListDialog();\n SingleChoiceDialog createSingleChoiceDialog();\n MultiChoiceDialog createMultiChoiceDialog();\n}",
"public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static JDialog createDialog(JFrame owner) {\n PlatformInfoPanel panel = new PlatformInfoPanel();\n JDialog dialog = new JDialog(owner, ResourceManager.getResource(PlatformInfoPanel.class, \"Dialog_title\"));\n dialog.getContentPane().add(panel);\n dialog.setSize(panel.getWidth() + 10, panel.getHeight() + 30);\n return dialog;\n}",
"private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }",
"public Dialog(String text) {\n initComponents( text);\n }",
"public PacManUiBuilder() {\n this.defaultButtons = false;\n this.buttons = new LinkedHashMap<>();\n this.keyMappings = new HashMap<>();\n }",
"@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tAlertDialog fuck = builder.create();\n\t\t\tfuck.show();\n\t\t}",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"Dialog createDialog(int id) {\n // First we treat the color picker\n if (id >= DIALOG_MASK_COLORS) {\n int icp = id - DIALOG_MASK_COLORS;\n String title = getResources().getStringArray(R.array.items_colors)[icp];\n ColoredPart cp = ColoredPart.values()[icp];\n\n // We can embed our nice color picker view into a regular dialog.\n // For that we use the provided factory method.\n return ColorPickerView.createDialog(this, title, cp.color, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n cp.color = which;\n bmView.invalidate();\n }\n });\n }\n\n // Now we treat all the cases which can easily be built as an AlertDialog.\n // For readability throughout the many cases we don't use chaining.\n AlertDialog.Builder b = new AlertDialog.Builder(this);\n\n switch (id) {\n case DIALOG_LEVEL:\n b.setTitle(R.string.menu_level);\n b.setSingleChoiceItems(R.array.items_level, bmView.level - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.newGame(which + 1);\n }\n });\n break;\n\n case DIALOG_SIZE:\n b.setTitle(R.string.menu_size);\n b.setSingleChoiceItems(R.array.items_size, bmView.size - 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.initField(which + 1);\n bmView.newGame(0);\n }\n });\n break;\n\n case DIALOG_LIVES:\n b.setTitle(R.string.menu_lives);\n // We use an array adapter in order to be able to relate the selected\n // value to its list position. NOTE: For unclear reasons, passing this\n // adapter even with an additional text view layout id to the builder\n // does not give the same layout as passing the resource id directly.\n // So, we do use the resource id again for that purpose in the call\n // to setSingleChoiceItems.\n final ArrayAdapter<CharSequence> a =\n ArrayAdapter.createFromResource(this, R.array.items_lives, android.R.layout.select_dialog_singlechoice);\n int liv = bmView.getLives();\n int pos = (liv == 0) ? a.getCount() - 1 : a.getPosition(Integer.toString(liv));\n b.setSingleChoiceItems(R.array.items_lives, pos, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n // First check for infinity choice, then for all other possible choices\n if (which == a.getCount() - 1)\n bmView.setLives(0);\n else\n try {\n bmView.setLives(Integer.parseInt(String.valueOf(a.getItem(which))));\n } catch (Exception e) {\n // Do nothing\n Log.e(LOG_TAG, e.getLocalizedMessage(), e);\n }\n }\n });\n break;\n\n case DIALOG_COLORS:\n b.setTitle(R.string.menu_colors);\n b.setItems(R.array.items_colors, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n if (which == ColoredPart.values().length) {\n // Reset colors\n ColoredPart.resetAll();\n bmView.invalidate();\n } else {\n // Call color picker dialog\n doDialog(which + DIALOG_MASK_COLORS);\n }\n }\n });\n break;\n\n case DIALOG_BACKGROUND:\n b.setTitle(R.string.menu_background);\n b.setSingleChoiceItems(R.array.items_background, bmView.background, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n bmView.background = which;\n bmView.invalidate();\n }\n });\n break;\n\n case DIALOG_SOUND:\n b.setTitle(R.string.menu_sound);\n // Special treatment for eventually using only a subset of the menu items\n String[] menuIts = new String[NUM_ITEMS_SOUND];\n boolean[] menuSts = new boolean[NUM_ITEMS_SOUND];\n System.arraycopy(\n getResources().getStringArray(R.array.items_settings),\n 0, menuIts, 0, NUM_ITEMS_SOUND);\n System.arraycopy(\n new boolean[]{bmView.isHapticFeedbackEnabled(), bmView.isSoundEffectsEnabled(), musicPlayer.isMusicEnabled},\n 0, menuSts, 0, NUM_ITEMS_SOUND);\n b.setMultiChoiceItems(menuIts, menuSts, (dialog, which, isChecked) -> {\n switch (which) {\n case 0:\n bmView.setHapticFeedbackEnabled(isChecked);\n break;\n\n case 1:\n bmView.setSoundEffectsEnabled(isChecked);\n setVolumeControlStream();\n break;\n\n case 2:\n musicPlayer.toggle(isChecked);\n setVolumeControlStream();\n break;\n\n default:\n dialog.dismiss();\n }\n });\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_CENTER:\n b.setTitle(R.string.menu_center);\n b.setSingleChoiceItems(R.array.items_center, centerDialogs ? 0 : 1, new OnClickDismissListener() {\n @Override\n public void onClick(int which) {\n centerDialogs = (which == 0);\n }\n });\n break;\n\n case DIALOG_MIDI:\n b.setTitle(R.string.title_midi);\n b.setMessage(R.string.text_midi);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_ABOUT:\n b.setTitle(R.string.menu_about);\n b.setMessage(R.string.text_about);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n\n case DIALOG_HELP:\n default:\n b.setTitle(R.string.menu_help);\n b.setMessage(R.string.text_help);\n b.setOnKeyListener(new OnKeyDismissListener());\n b.setPositiveButton(android.R.string.ok, new OnClickDismissListener());\n break;\n }\n\n return b.create();\n }",
"private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}",
"private Construct(Builder builder) {\n super(builder);\n }",
"public Builder() {\n\t\t}",
"public void buildAndShow(String p_Message, String p_Title, String p_PositiveButton, String p_NegativeButton){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getParameter());\r\n builder.setMessage(p_Message)\r\n .setTitle(p_Title);\r\n builder.setPositiveButton(p_PositiveButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickPositive();\r\n }\r\n });\r\n builder.setNegativeButton(p_NegativeButton, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n onClickNegative();\r\n }\r\n });\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private CreateOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public DialogManager() {\n }",
"public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }",
"public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"private Builder(Context context){ this.context=context;}",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.app_help_title);\n builder.setMessage(R.string.app_help_message)\n .setPositiveButton(R.string.app_help_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n return builder.create();\n }",
"public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}",
"public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n\r\n }\r\n });\r\n\r\n\r\n builder.show();\r\n\r\n }",
"private AlertDialog buildDialog(String deviceName) {\n Builder builder = new Builder(this);\n CharSequence[] items = {\n getString(R.string.bluetooth_pbap_server_authorize_alwaysallowed)\n };\n boolean[] checked = {\n false\n };\n\n String msg = getString(R.string.bluetooth_pbap_server_authorize_message, deviceName);\n\n Log.d(TAG, \"buildDialog : items=\" + items[0]);\n\n builder.setIcon(android.R.drawable.ic_dialog_info).setTitle(R.string.bluetooth_pbap_server_authorize_title).setView(\n createView(msg))\n // .setMessage(msg)\n /*\n * .setMultiChoiceItems (items, checked, new DialogInterface.OnMultiChoiceClickListener(){ public void\n * onClick (DialogInterface dialog, int which, boolean isChecked){ if(which == 0) { mAlwaysAllowedValue =\n * isChecked; }else{ Log.w(TAG, \"index of always allowed is not correct : \"+which); } } } )\n */\n .setPositiveButton(R.string.bluetooth_pbap_server_authorize_allow, this).setNegativeButton(\n R.string.bluetooth_pbap_server_authorize_decline, this);\n\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Règle du jeu\");\n builder.setMessage(\"Je sais que tu as toujours voulu être un pêcheur ! Voici ta chance. Ton objectif est de pêcher 5 poissons.\\n\\n Comment pêcher :\\n\\n1- Place ton téléphone à l'horizontal, ton écran vers la gauche.\\n\\n2- Attend le poisson.\\n\\n3- Quand ton téléphone vibre, un poisson a mordu à l'hammeçon ! Passe rapidement ton téléphone à la verticale avec ton écran toujours sur la gauche.\\n\\n4-Recommence jusqu'à devenir le roi de la pêche !\\n\\nTips : On ne devient pas pêcheur en jouant à un jeu de pêche.\" );\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // rien à faire\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }",
"private void openDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.allmark));\n\t\tfinal List<ReaderTags> listData = ReaderDataBase\n\t\t\t\t.getReaderDataBase(this);\n\t\tif (listData.size() > 0) {\n\t\t\tListView list = new ListView(this);\n\t\t\tfinal MTagAdapter myAdapter = new MTagAdapter(this, listData);\n\t\t\tlist.setAdapter(myAdapter);\n\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tJump(arg2, listData, myAdapter);\n\t\t\t\t}\n\t\t\t});\n\t\t\tlist.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tdeleteOneDialog(arg2, listData, myAdapter);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tbuilder.setView(list);\n\t\t} else {\n\t\t\tTextView txt = new TextView(this);\n\t\t\ttxt.setText(getString(R.string.nomark));\n\t\t\ttxt.setPadding(10, 5, 0, 5);\n\t\t\ttxt.setTextSize(16f);\n\t\t\tbuilder.setView(txt);\n\t\t}\n\t\tbuilder.setNegativeButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }",
"private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //attempt to extract number\n number = ((TelephonyManager)((getActivity()).getSystemService(\n Context.TELEPHONY_SERVICE))).getLine1Number();\n\n //create edit text view\n input = new EditText(getActivity());\n input.setHint(R.string.phone_number_hint);\n input.setInputType(InputType.TYPE_CLASS_PHONE);\n input.addTextChangedListener(\n new PhoneNumberFormattingTextWatcher());\n //show edit text if phone number is unavailable\n input.setVisibility(((number == null) || \"\".equals(number))\n ? View.VISIBLE : View.GONE);\n\n builder.setView(input);\n builder.setTitle(R.string.generate_title);\n builder.setPositiveButton(R.string.generate_button, this);\n\n return builder.create();\n }",
"public ReorganizeDialog() { }",
"private Win(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n filename = getArguments().getString(\"filename\");\n username = getArguments().getString(\"username\");\n workingDIR = getArguments().getString(\"workingDIR\");\n builder.setTitle(R.string.copy_move_file_select_options_title)\n .setItems(R.array.file__move_copy_dialog_options, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n onSelect(which);\n }\n });\n return builder.create();\n }",
"@Override\n\n public Dialog onCreateDialog (Bundle savedInstanceState){\n Bundle messages = getArguments();\n Context context = getActivity();\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n builder.setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n if(messages != null) {\n //Add the arguments. Supply a default in case the wrong key was used, or only one was set.\n builder.setTitle(messages.getString(TITLE_ID, \"Error\"));\n builder.setMessage(messages.getString(MESSAGE_ID, \"There was an error.\"));\n }\n else {\n //Supply default text if no arguments were set.\n builder.setTitle(\"Error\");\n builder.setMessage(\"There was an error.\");\n }\n\n AlertDialog dialog = builder.create();\n return dialog;\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }",
"private Contacts(final Builder builder){\n this.mUsername = builder.mUsername;\n this.checked = builder.checked;\n\n }",
"private Dialog buildLoadingDialog() {\n ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n dialog.setMessage(getText(R.string.dialog_loading));\n dialog.setIndeterminate(true);\n dialog.setCancelable(false);\n return dialog;\n }",
"@Override\n public Dialog onCreateDialog (Bundle SaveInstanceState) {\n\n /* Get context from current activity.*/\n Context context = getActivity();\n\n /* Create new dialog, and set message. */\n AlertDialog.Builder ackAlert = new AlertDialog.Builder(context);\n String message = getString(R.string.msg_about_us);\n ackAlert.setMessage(message);\n\n /* Create button in dialog. */\n ackAlert.setNeutralButton(R.string.btn_got_it, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n /* Set title and show dialog. */\n ackAlert.setTitle(\"About us\");\n ackAlert.create();\n\n return ackAlert.create();\n }",
"private static AlertDialog createDialog(\n Context context, MenuDialogListenerHandler listenerHandler) {\n Resources resources = context.getResources();\n String[] menuDialogItems = resources.getStringArray(R.array.menu_dialog_items);\n String appName = resources.getString(R.string.app_name);\n for (int i = 0; i < menuDialogItems.length; ++i) {\n menuDialogItems[i] = String.format(menuDialogItems[i], appName);\n }\n\n AlertDialog dialog = new AlertDialog.Builder(context)\n .setTitle(R.string.menu_dialog_title)\n .setAdapter(new MenuDialogAdapter(context, menuDialogItems), listenerHandler)\n .create();\n dialog.setOnDismissListener(listenerHandler);\n return dialog;\n }",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"private ListSelectionDialogFactory() {\n }"
] | [
"0.70603955",
"0.69790804",
"0.6929949",
"0.692271",
"0.6866671",
"0.67297786",
"0.66794777",
"0.6679368",
"0.6638751",
"0.6617405",
"0.6549817",
"0.6539394",
"0.652435",
"0.65164286",
"0.6469162",
"0.64641607",
"0.6451098",
"0.6425593",
"0.6419002",
"0.6419002",
"0.63697636",
"0.6362946",
"0.6348533",
"0.63397425",
"0.63205034",
"0.6315255",
"0.62899107",
"0.6279066",
"0.6255064",
"0.62463814",
"0.6233295",
"0.6221355",
"0.6221355",
"0.6221355",
"0.621799",
"0.6214696",
"0.6212629",
"0.62022954",
"0.61911577",
"0.61677307",
"0.61590385",
"0.61547756",
"0.61547756",
"0.61547756",
"0.61547756",
"0.6152405",
"0.6150748",
"0.6126093",
"0.6126093",
"0.6126093",
"0.6108865",
"0.6107269",
"0.61021024",
"0.6101541",
"0.61011016",
"0.61011016",
"0.61011016",
"0.61011016",
"0.61011016",
"0.61011016",
"0.61011016",
"0.61011016",
"0.61011016",
"0.61011016",
"0.61011016",
"0.60972",
"0.6083444",
"0.60832953",
"0.608137",
"0.6077906",
"0.60771704",
"0.6075108",
"0.6075108",
"0.606598",
"0.6060883",
"0.6042717",
"0.603757",
"0.6034628",
"0.6034444",
"0.60330576",
"0.60299385",
"0.60270756",
"0.60245895",
"0.6022762",
"0.6019728",
"0.60144365",
"0.6000957",
"0.6000562",
"0.59880924",
"0.5983779",
"0.59832495",
"0.5982931",
"0.59794927",
"0.59721416",
"0.59631276",
"0.59615767",
"0.5956427",
"0.5951335",
"0.5944818",
"0.59437215",
"0.5942802"
] | 0.0 | -1 |
User cancelled the dialog | public void onClick(DialogInterface dialog, int id) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cancelDialog() {dispose();}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }",
"@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }",
"void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }",
"private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}",
"@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}",
"public void onCancelClicked() {\n close();\n }",
"@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}",
"@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"public void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }",
"@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void dialogCancelled(int dialogId) {\n\t\t\r\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}",
"public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }",
"public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }",
"private void cancel() {\n\t\tfinish();\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}",
"@Override\n public void onCancel(DialogInterface arg0) {\n\n }",
"@Override\n public void onClick(View v) {\n dialog.cancel();\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }",
"@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}",
"private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }",
"public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }",
"@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }",
"@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }",
"public boolean cancel();",
"@Override\n public void onCancel(DialogInterface dialog) {\n }",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }",
"public void onCancelButtonClick() {\n close();\n }",
"public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}",
"public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }",
"public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}",
"public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}",
"public void onDialogCancelled(DialogActivity dialog)\n {\n cancel();\n }",
"void onCancelClicked();",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t dialog.cancel();\n\t\t\t }",
"public void onClick(DialogInterface dialog, int arg1) {\n dialog.cancel();\n }",
"@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }",
"protected void closeDialogCancel() {\n dispose();\n }",
"@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }",
"public void cancel()\n\t{\n\t}",
"@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }",
"public void cancel(){\n cancelled = true;\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }",
"@Override\n public void onCancel(DialogInterface dialog) {\n\n }",
"public void cancel() {\n if (alert != null) {\n alert.cancel();\n isShowing = false;\n } else\n TLog.e(TAG + \" cancel\", \"alert is null\");\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }",
"public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }",
"public void onCancel();",
"public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }",
"public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }",
"public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }",
"@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}",
"@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}",
"@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}",
"public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }",
"@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\t\n\t\t}"
] | [
"0.84252524",
"0.81816214",
"0.81397384",
"0.80922073",
"0.7927849",
"0.79160905",
"0.78777075",
"0.78763556",
"0.7856008",
"0.7849157",
"0.7848072",
"0.7838308",
"0.7804249",
"0.77992254",
"0.7796975",
"0.7796975",
"0.77921396",
"0.7792013",
"0.77904165",
"0.77860636",
"0.7785849",
"0.7781991",
"0.7781991",
"0.7781991",
"0.7775402",
"0.7774749",
"0.7774749",
"0.77683115",
"0.77681756",
"0.77668333",
"0.7761063",
"0.7761063",
"0.7761063",
"0.7761063",
"0.7761063",
"0.7759365",
"0.7731582",
"0.7724297",
"0.7720925",
"0.7720103",
"0.76955104",
"0.7678485",
"0.7654357",
"0.7654357",
"0.764555",
"0.76443124",
"0.7634409",
"0.7633464",
"0.7621916",
"0.7621163",
"0.7603697",
"0.7603203",
"0.7600248",
"0.7598492",
"0.7591874",
"0.7591874",
"0.7591339",
"0.7590508",
"0.7589548",
"0.7589548",
"0.7589548",
"0.7589548",
"0.7589548",
"0.7589548",
"0.7588744",
"0.75886345",
"0.7560806",
"0.7550736",
"0.7540379",
"0.7539729",
"0.7539729",
"0.7534361",
"0.7531358",
"0.75296545",
"0.7524118",
"0.7523424",
"0.75232726",
"0.752038",
"0.75199866",
"0.7512266",
"0.75083005",
"0.7500499",
"0.7497863",
"0.7495073",
"0.7493796",
"0.7492944",
"0.74797153",
"0.74698204",
"0.7465173",
"0.74630636",
"0.7460028",
"0.7460028",
"0.7458466",
"0.7455514",
"0.74514836",
"0.7442903",
"0.74414104",
"0.7436282",
"0.7436282",
"0.74358857",
"0.74198526"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getCount() {
return list.size() ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void destroyItem(ViewGroup container, int position, Object object) {
container.removeView((View)object);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Object instantiateItem(final ViewGroup container, int position) {
final Story story;
View view;
ImageView pagerIamge;
story = list.get(position);
view = inflater.inflate(R.layout.view_item, container, false);
TextView pagerTitle = (TextView) view.findViewById(R.id.view_text);
pagerIamge = (ImageView) view.findViewById(R.id.view_image);
pagerTitle.setText(story.getTitle());
new DownloadImage(story.getImages(), pagerIamge, story.getId()).execute();
Log.i("view", story.getTitle());
set(view, story);
container.addView(view);
return view;
/* if (aaa.size() > position) {
story = list.get(position);
view = inflater.inflate(R.layout.view_item, container, false);
TextView pagerTitle = (TextView) view.findViewById(R.id.view_text);
pagerIamge = (ImageView) view.findViewById(R.id.view_image);
pagerTitle.setText(story.getTitle());
new DownloadImage(story.getImages(), pagerIamge, story.getId()).execute();
Log.i("view", story.getTitle());
set(view, story);
container.addView(view);
return view;
} else if (aaa.size() <= position) {
if(aaa == null){
story = list.get(position);
view = inflater.inflate(R.layout.view_item, container, false);
TextView pagerTitle = (TextView) view.findViewById(R.id.view_text);
pagerIamge = (ImageView) view.findViewById(R.id.view_image);
pagerTitle.setText(story.getTitle());
new DownloadImage(story.getImages(), pagerIamge, story.getId()).execute();
Log.i("view", story.getTitle());
if(position == 0){
aaa.add(0, view);
}else {
aaa.add(view);
}
set(view, story);
container.addView(view);
}else if(aaa != null){
story = list.get(position);
view = inflater.inflate(R.layout.view_item, container, false);
TextView pagerTitle = (TextView) view.findViewById(R.id.view_text);
pagerIamge = (ImageView) view.findViewById(R.id.view_image);
pagerTitle.setText(story.getTitle());
new DownloadImage(story.getImages(), pagerIamge, story.getId()).execute();
Log.i("view", story.getTitle());
if(position == 0){
view = aaa.get(0);
}else {
view = aaa.get(1);
}
set(view, story);
container.addView(view);
return view;
}
container.addView(aaa.get(position));
return aaa.get(position);
}*/
//给当前页添加监听
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Constructeur de la map | public Map(float longitude, float lattitude, float long_span, float lat_span, Joueur[] joueur) {
this.longitude = longitude;
this.lattitude = lattitude;
this.long_span = long_span;
this.lat_span = lat_span;
this.joueur = joueur;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map() {\n\n\t\t}",
"public Map() {\n\t\t//intially empty\n\t}",
"public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }",
"MAP createMAP();",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"public abstract void createMap();",
"public TimeMap2() {\n map = new HashMap<>();\n }",
"public MyHashMap() {\n\n }",
"public MyHashMap() {\n map = new HashMap();\n }",
"public FMap(String rute) {\n super(rute);\n init(rute);\n }",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"protected MapImpl() {\n }",
"private MapTransformer(Map map) {\n super();\n iMap = map;\n }",
"protected WumpusMap() {\n\t\t\n\t}",
"public CjtMap(){\r\n cjtMap = new TreeMap();\r\n sequence = new Sequence(1, 0, 1, false);\r\n }",
"public CountingMap() {\n this( new HashMap<K, Integer>() );\n }",
"public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }",
"public Map(PApplet p, String id) {\n \t\tthis(p, id, 0, 0, p.width, p.height, false, false, null);\n \t}",
"public Map(){\n this.matrix = new int[10][10];\n }",
"public Map(){\r\n map = new Square[0][0];\r\n }",
"private Map(int id) {\n\t\tthis.id = Integer.valueOf(id);\n\t\tSystem.out.println(\"Initializing map: \" + this.toString() + \" (\" + this.id + \")\");\n\t}",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public MyHashMap() {\n\n }",
"public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"public IntMap()\r\n {\r\n this(16);\r\n }",
"public TimeMap() {\n timeMap = new HashMap<>();\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}",
"public MapTile() {}",
"public CitiesMap(){\r\n\t\tmap=new Graph<City>();\r\n\t}",
"public MapSum() {\n map = new HashMap<>();\n }",
"public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}",
"public Model() {\n\t\tthis.map = new Map(37, 23);\n\t}",
"public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}",
"public ConnectedMap() {\n }",
"public FactoryMapImpl()\n {\n super();\n }",
"public ArrayMap() {\n this(DEFAULT_INITIAL_CAPACITY);\n }",
"public MapOther() {\n }",
"public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }",
"public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }",
"public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }",
"public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}",
"public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }",
"public MapNatural() {\n }",
"public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}",
"public StrStrMap() {\n }",
"public MapNode(\n\t\tAbstractNode\tparent)\n\t{\n\t\t// Call superclass constructor\n\t\tsuper(parent);\n\n\t\t// Initialise instance variables\n\t\tpairs = new LinkedHashMap<>();\n\t}",
"public MagicDictionary() {\n this.map = new HashMap<>();\n }",
"public MapToken() {\n\t\tmData = new FastMap<String, Object>();\n\t}",
"private Map(int typeMap ) throws IllegalArgumentException\n {\n switch (typeMap){\n case 1:\n createMapOfFirstType();\n setAdjForFirstType();\n break;\n case 2:\n createMapOfSecondType();\n setAdjForSecondType();\n break;\n case 3:\n createMapOfThirdType();\n setAdjForThirdType();\n break;\n case 4:\n createMapOfFourthType();\n setAdjForFourthType();\n break;\n default:\n throw new IllegalArgumentException();\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"public ObservableHashMap()\n {\n super();\n }",
"private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }",
"private static void createTypeMap() {\n\n }",
"public EncodingMap() {}",
"private Map(Builder builder) {\n super(builder);\n }",
"public TimeMap() {\n\n }",
"public void setUp()\n {\n map = new Map(5, 5, null);\n }",
"Map<String, String> mo14888a();",
"public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }",
"public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}",
"public RadarMap() {\n initComponents();\n }",
"public ArrayHashMap() {\n super();\n }",
"public abstract mapnik.Map createMap(Object recycleTag);",
"private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }",
"public Map(Config config) {\n this.mapCells = new Cell[100][100];\n this.cellGrid= new Cell[20][20][20];\n this.config = config;\n this.origin = config.getOrigin();\n generateMap();\n }",
"public MapEntity() {\n\t}",
"public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}",
"public MapResult() {\n }",
"private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}",
"public MKMapView() {}",
"public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }",
"public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }",
"public MyHashMap() {\n hashMap = new ArrayList<>();\n }",
"public Map(String level) {\n this.level = level;\n terrains = new String[]{\"r\", \"p\", \"m1\", \"m2\", \"m3\"};\n\n //if default random\n if (level.equals(\"default\")) {\n String[] defaultLevel = {\n \"p\", \"p\", \"m1\", \"p\", \"r\", \"p\", \"m3\", \"p\", \"p\",\n \"p\", \"m1\", \"p\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m3\",\n \"m3\", \"p\", \"p\", \"p\", \"t\", \"p\", \"p\", \"p\", \"m1\",\n \"p\", \"m2\", \"p\", \"p\", \"r\", \"p\", \"m2\", \"p\", \"p\",\n \"p\", \"p\", \"m2\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m2\"};\n int j = 0;\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++, j++) {\n tiles[i][k] = new Tile(i, k, defaultLevel[j]);\n }\n }\n }\n\n // if random level\n if (level.equals(\"random\")) {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n String ter = terrains[(int) (Math.random() * (terrains.length - 1))];\n tiles[i][k] = new Tile(i, k, ter);\n }\n }\n tiles[2][4] = new Tile(2, 4, \"t\");\n }\n }",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}",
"public MapElement(int key) {\n this.key = key;\n }",
"public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}",
"@Override\n public HashMap<String, List<String>> initializeMapping(HashMap<String, List<String>> mapping) {\n mapping.put(\"xEncoder\", Arrays.asList(\"outtakeMotor1\", \"outtake1\"));\n mapping.put(\"yEncoder\", Arrays.asList(\"wobbleMotor\"));\n\n return mapping;\n }",
"public MapContainer() {\n this(new OpenStreetMapProvider());\n }",
"public HashMap(Map<? extends K,? extends V> map) {\r\n\t\tthis();\r\n\t\tthis.putAll(map);\r\n\t}",
"public MapNode()\n\t{\n\t\t// Call alternative constructor\n\t\tthis((AbstractNode)null);\n\t}",
"public Mapa(String ruta){\r\n cargarMapa(ruta);\r\n generarMapa();\r\n }",
"public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }",
"public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }",
"public Map(Dimension dim){\r\n\t\tthis.dim = dim;\r\n\t\tinitiateMap();\r\n\t\tcreateWorldMap();\r\n\t}",
"public IntObjectHashMap() {\n resetToDefault();\n }",
"public QuadGramMap()\n\t{\n\t\tsuper();\n\t}",
"public CountingMap( Map<K, Integer> map ) {\n this.map = map;\n }",
"@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }",
"private SimpleMap(Builder builder) {\n super(builder);\n }",
"public AutoIndexMap()\n\t\t{\n\t\t\t// Initialise instance variables\n\t\t\tindices = new IdentityHashMap<>();\n\t\t}",
"public Map(int x, int y) {\n\n height_ = y;\n width_ = x;\n\n map_grid_ = new MapTile[height_][width_];\n for (int i = 0; i < height_; ++i) {\n for (int j = 0; j < width_; ++j) {\n map_grid_[i][j] = new MapTile(j, i); //switch rows and columns\n }\n }\n entity_list_ = new LinkedHashMap<String, Entity>();\n items_list_ = new LinkedList<Item>();\n time_measured_in_turns = 0;\n try {\n my_internet_ = new MapInternet(this);\n } catch (Exception e) {\n // No clue what causes this\n e.printStackTrace();\n System.exit(-6);\n return;\n }\n }",
"public MapSum() {\n\n }",
"public MyHashMap() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n }",
"private static <N extends Node> SortedMap<ImmutableContextSet, SortedSet<N>> createMap() {\n return new ConcurrentSkipListMap<>(ContextSetComparator.reverse());\n }",
"public AgentBuilderDictionary(Map m) {\n\t\tsuper(m);\n\t}",
"@SuppressWarnings(\"static-access\")\n\tpublic SequenceMap() {\n\t\tthis.seqNumbers = new HashMap<>();\n\t}"
] | [
"0.78900343",
"0.74243706",
"0.7361574",
"0.7338823",
"0.73082924",
"0.7171351",
"0.70925707",
"0.7057034",
"0.7037471",
"0.7032247",
"0.701309",
"0.70090073",
"0.6975152",
"0.69706404",
"0.6923659",
"0.6905881",
"0.68915147",
"0.6884014",
"0.6874642",
"0.68573916",
"0.6853281",
"0.6852085",
"0.68460387",
"0.68399835",
"0.6831142",
"0.68211913",
"0.68134356",
"0.68016326",
"0.67916274",
"0.6780872",
"0.67151344",
"0.6711179",
"0.67084485",
"0.67020625",
"0.66936165",
"0.66911036",
"0.6673141",
"0.6659866",
"0.6640179",
"0.6634842",
"0.6631102",
"0.6623531",
"0.66150814",
"0.6613706",
"0.66049075",
"0.65814626",
"0.6568437",
"0.65620476",
"0.65534437",
"0.6548846",
"0.6539281",
"0.65376264",
"0.65375155",
"0.6511001",
"0.65063137",
"0.6479251",
"0.647789",
"0.64763635",
"0.64724416",
"0.6461532",
"0.64539903",
"0.64536005",
"0.644797",
"0.64445525",
"0.64379555",
"0.6437839",
"0.6427647",
"0.6418391",
"0.64034796",
"0.6393184",
"0.63853216",
"0.63824326",
"0.6379779",
"0.6378408",
"0.63711375",
"0.6359784",
"0.6357109",
"0.6343668",
"0.63285553",
"0.63242334",
"0.63162595",
"0.6315169",
"0.631458",
"0.6314005",
"0.6310812",
"0.6298682",
"0.6290186",
"0.6289626",
"0.6285737",
"0.6282628",
"0.6275883",
"0.6273143",
"0.6268075",
"0.62595487",
"0.625245",
"0.6240692",
"0.62287724",
"0.6226228",
"0.62124854",
"0.62119204",
"0.62052155"
] | 0.0 | -1 |
Creer une instance de map | public static Map getInstance(float longitude, float lattitude, float long_span, float lat_span, Joueur[] joueur){
if (INSTANCE == null){
INSTANCE = new Map( longitude, lattitude, long_span, lat_span, joueur);
}
return INSTANCE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void createMap();",
"MAP createMAP();",
"public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}",
"public abstract mapnik.Map createMap(Object recycleTag);",
"public Map() {\n\n\t\t}",
"@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }",
"protected ApplicationMap createAppMapInstance (String mapname){\n\t\treturn new ApplicationMap(mapname);\t\t\n\t}",
"public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}",
"public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }",
"public FactoryMapImpl()\n {\n super();\n }",
"public MapTile() {}",
"protected MapImpl() {\n }",
"private static void createTypeMap() {\n\n }",
"public MyHashMap() {\n map = new HashMap();\n }",
"public Map() {\n\t\t//intially empty\n\t}",
"public Map instantiateBackingMap(String sName);",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"protected WumpusMap() {\n\t\t\n\t}",
"public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}",
"public FMap(String rute) {\n super(rute);\n init(rute);\n }",
"public abstract MapItem createMapItem(Object[] parameters) throws Exception;",
"public abstract void createMap(Game game) throws FreeColException;",
"public abstract void createMap(Game game) throws FreeColException;",
"private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }",
"public MyHashMap() {\n\n }",
"public MapEntity() {\n\t}",
"public TimeMap2() {\n map = new HashMap<>();\n }",
"public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }",
"public MyHashMap() {\n\n }",
"public MKMapView() {}",
"public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}",
"protected SafeHashMap.Entry<K, V> instantiateEntry()\n {\n return new Entry<>();\n }",
"public TurtleMapDescriptor() {}",
"protected SafeHashMap.Entry instantiateEntry()\n {\n return new Entry();\n }",
"public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}",
"public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }",
"public Map(PApplet p, String id) {\n \t\tthis(p, id, 0, 0, p.width, p.height, false, false, null);\n \t}",
"public MapOther() {\n }",
"public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}",
"private MapTransformer(Map map) {\n super();\n iMap = map;\n }",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"private Map(int typeMap ) throws IllegalArgumentException\n {\n switch (typeMap){\n case 1:\n createMapOfFirstType();\n setAdjForFirstType();\n break;\n case 2:\n createMapOfSecondType();\n setAdjForSecondType();\n break;\n case 3:\n createMapOfThirdType();\n setAdjForThirdType();\n break;\n case 4:\n createMapOfFourthType();\n setAdjForFourthType();\n break;\n default:\n throw new IllegalArgumentException();\n }\n }",
"public UIBuilder getNewInstance(Map<String, Object> entries);",
"private Map(int id) {\n\t\tthis.id = Integer.valueOf(id);\n\t\tSystem.out.println(\"Initializing map: \" + this.toString() + \" (\" + this.id + \")\");\n\t}",
"FutureSecureMap<KeyType, ValueType> create(String name);",
"public Model() {\n\t\tthis.map = new Map(37, 23);\n\t}",
"public void setUp()\n {\n map = new Map(5, 5, null);\n }",
"public static Map createMap(int xDim, int yDim){\n\t\treturn new Map(xDim,yDim);\n\t}",
"public static void createMap()\n\t\t\t{\n\t\t\tmap = new Vector<Location>(4);\n\t\n\t\t\tLocation location1 = new Location(\"the southwest room.\",\"You see doors to the north and east.\");\n\t\t\tLocation location2 = new Location(\"the southeast room.\",\"You see doors to the north and west.\");\n\t\t\tLocation location3 = new Location(\"the northwest room.\",\"You see doors to the south and east.\");\n\t\t\tLocation location4 = new Location(\"the northeast room.\",\"You see doors to the south and west.\");\n\n\t\t\tmap.addElement(location1);\n\t\t\tmap.addElement(location2);\n\t\t\tmap.addElement(location3);\n\t\t\tmap.addElement(location4);\n\t\t\t\n\t\t\t// This section defines the exits found in each location and the \n\t\t\t// locations to which they lead.\n\t\t\tlocation1.addExit(new Exit(Exit.north, location3));\n\t\t\tlocation1.addExit(new Exit(Exit.east, location2));\n\t\t\tlocation2.addExit(new Exit(Exit.north, location4));\n\t\t\tlocation2.addExit(new Exit(Exit.west, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.south, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.east, location4));\n\t\t\tlocation4.addExit(new Exit(Exit.west, location3));\n\t\t\tlocation4.addExit(new Exit(Exit.south, location2));\n\t\t\t\n\t\t\tcurrentLocation = location1;\t\t\t\t\n\t\t\t}",
"public Map(Dimension dim){\r\n\t\tthis.dim = dim;\r\n\t\tinitiateMap();\r\n\t\tcreateWorldMap();\r\n\t}",
"InfiniteMap<K,V> build(MapTypes type);",
"public MmapFactoryImpl() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic boolean create(Eleve o) {\n\t\tmap.put(o.getId(),o);\n\t\treturn true;\n\t}",
"public TimeMap() {\n timeMap = new HashMap<>();\n }",
"public Map(Config config) {\n this.mapCells = new Cell[100][100];\n this.cellGrid= new Cell[20][20][20];\n this.config = config;\n this.origin = config.getOrigin();\n generateMap();\n }",
"@SuppressWarnings(\"unchecked\")\n public <K, V> Map<K, V> createMap(String name, Class<K> keyClass, Class<V> valueClass) {\n\n if (Globals.threadTxMap.get(Thread.currentThread()) == null ||\n Globals.threadTxMap.get(Thread.currentThread()).status != TxStatus.ACTIVE) {\n throw new ClientNotInTxException(\"Cannot create map: not in an active transaction\");\n }\n //ensure name is not blank/whitespace:\n if(name.trim().isEmpty()){\n throw new IllegalArgumentException(\"Invalid map name\");\n }\n //ensure keyClass/valueClass is not null:\n if(keyClass == null || valueClass == null){\n throw new IllegalArgumentException(\"Key/value class cannot be null\");\n }\n //ensure serializable\n if(!Serializable.class.isAssignableFrom(keyClass))\n throw new IllegalArgumentException(\"Key class is not serializable\");\n\n if(!Serializable.class.isAssignableFrom(valueClass))\n throw new IllegalArgumentException(\"Value class is not serializable\");\n\n //ensure that the name is not in use:\n if(Globals.alreadyExists(name)){\n throw new IllegalArgumentException(\"This name is already in use\");\n }\n\n //let's start by creating the object:\n DBTable<K, V> table = new DBTable<>(name, keyClass, valueClass);\n //set the object's types:\n Globals.addNameTable(name, table);\n Globals.addTableToThread(name);\n //send it to TxMgrImpl:\n //writeToDisk(table, name);\n return (Map<K, V>) Globals.getTable(name);\n }",
"protected Map<E, ListenerEntry<? extends E>> createMap() {\n\t\treturn new WeakHashMap<>();\n\t}",
"public ConnectedMap() {\n }",
"private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n private void newMap() throws IOException, ClassNotFoundException {\r\n this.music_map.clear();\r\n if (needNewMap()) {\r\n if (!save_file.exists()) {\r\n System.out.println(\"DIZIONARIO NON PRESENTE\");\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n\r\n this.setTarget();\r\n\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n } else {\r\n System.out.println(\"DIZIONARIO NON AGGIORNATO\");\r\n if (!UtilFunctions.newDictionaryRequest(this.save_file, this.music_root)) {\r\n System.out.println(\"AGGIORNAMENTO DIZIONARIO RIFIUTATO\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n } else {\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n this.setTarget();\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n }\r\n }\r\n } else {\r\n System.out.println(\"DIZIONARIO GIA' PRESENTE\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n }\r\n }",
"private Map(Builder builder) {\n super(builder);\n }",
"public MagicDictionary() {\n this.map = new HashMap<>();\n }",
"@Contract(value = \" -> new\", pure = true)\n @Nonnull\n public static <K, V> Map<K, V> createSoftMap() {\n return Maps.newSoftHashMap();\n }",
"public Map(String level) {\n this.level = level;\n terrains = new String[]{\"r\", \"p\", \"m1\", \"m2\", \"m3\"};\n\n //if default random\n if (level.equals(\"default\")) {\n String[] defaultLevel = {\n \"p\", \"p\", \"m1\", \"p\", \"r\", \"p\", \"m3\", \"p\", \"p\",\n \"p\", \"m1\", \"p\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m3\",\n \"m3\", \"p\", \"p\", \"p\", \"t\", \"p\", \"p\", \"p\", \"m1\",\n \"p\", \"m2\", \"p\", \"p\", \"r\", \"p\", \"m2\", \"p\", \"p\",\n \"p\", \"p\", \"m2\", \"p\", \"r\", \"p\", \"p\", \"p\", \"m2\"};\n int j = 0;\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++, j++) {\n tiles[i][k] = new Tile(i, k, defaultLevel[j]);\n }\n }\n }\n\n // if random level\n if (level.equals(\"random\")) {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n String ter = terrains[(int) (Math.random() * (terrains.length - 1))];\n tiles[i][k] = new Tile(i, k, ter);\n }\n }\n tiles[2][4] = new Tile(2, 4, \"t\");\n }\n }",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"public MapController() {\r\n\t}",
"public MapResult() {\n }",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}",
"private void createMapView() {\n try {\n if (null == mMap) {\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();\n\n /**\n * If the map is still null after attempted initialisation,\n * show an error to the user\n */\n if (null == mMap) {\n Toast.makeText(getApplicationContext(),\n \"Error creating map\", Toast.LENGTH_SHORT).show();\n }\n }\n } catch (NullPointerException exception) {\n Log.e(\"mapApp\", exception.toString());\n }\n }",
"public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}",
"public MapContainer() {\n this(new OpenStreetMapProvider());\n }",
"public Map(){\r\n map = new Square[0][0];\r\n }",
"public MapNode(\n\t\tAbstractNode\tparent)\n\t{\n\t\t// Call superclass constructor\n\t\tsuper(parent);\n\n\t\t// Initialise instance variables\n\t\tpairs = new LinkedHashMap<>();\n\t}",
"public MapGenerator(GameLogic logic) {\n g_logic = logic;\n }",
"@SuppressWarnings(\"all\")\r\n\tpublic Map(String map, Location mapLocation){\r\n\t\tMapPreset preset = MapPreset.presets.get(map);\r\n\t\tif (preset != null){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tfinal World world = mapLocation.getWorld();\r\n\t\t\t\tfinal double x = mapLocation.getX();\r\n\t\t\t\tfinal double y = mapLocation.getY();\r\n\t\t\t\tfinal double z = mapLocation.getZ();\r\n\t\t\t\tfinal float pitch = mapLocation.getPitch();\r\n\t\t\t\tfinal float yaw = mapLocation.getYaw();\r\n\t\t\t\t\t\t\r\n\t\t\t\tfinal Float[] alliesBase = preset.getSpawnAllies();\r\n\t\t\t\tfinal Float[] axisBase = preset.getSpawnAxis();\r\n\t\t\t\t\r\n\t\t\t\tfinal Float[] bombA = preset.getBombA();\r\n\t\t\t\tfinal Float[] bombB = preset.getBombB();\r\n\t\t\t\t\r\n\t\t\t\tfinal Float[] domA = preset.getDomA();\r\n\t\t\t\tfinal Float[] domB = preset.getDomB();\r\n\t\t\t\tfinal Float[] domC = preset.getDomC();\r\n\t\t\t\t\r\n\t\t\t\tmainSpawn = mapLocation;\r\n\t\t\t\talliesSpawn = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + alliesBase[0], \r\n\t\t\t\t\t\ty + alliesBase[1], \r\n\t\t\t\t\t\tz + alliesBase[2],\r\n\t\t\t\t\t\talliesBase[3], \r\n\t\t\t\t\t\talliesBase[4]);\r\n\t\t\t\t\r\n\t\t\t\taxisSpawn = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + axisBase[0], \r\n\t\t\t\t\t\ty + axisBase[1], \r\n\t\t\t\t\t\tz + axisBase[2],\r\n\t\t\t\t\t\taxisBase[3], \r\n\t\t\t\t\t\taxisBase[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.bombA = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + bombA[0], \r\n\t\t\t\t\t\ty + bombA[1], \r\n\t\t\t\t\t\tz + bombA[2],\r\n\t\t\t\t\t\tbombA[3], \r\n\t\t\t\t\t\tbombA[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.bombB = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + bombB[0], \r\n\t\t\t\t\t\ty + bombB[1], \r\n\t\t\t\t\t\tz + bombB[2],\r\n\t\t\t\t\t\tbombB[3], \r\n\t\t\t\t\t\tbombB[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.domA = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + domA[0], \r\n\t\t\t\t\t\ty + domA[1], \r\n\t\t\t\t\t\tz + domA[2],\r\n\t\t\t\t\t\tdomA[3], \r\n\t\t\t\t\t\tdomA[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.domB = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + domB[0], \r\n\t\t\t\t\t\ty + domB[1], \r\n\t\t\t\t\t\tz + domB[2],\r\n\t\t\t\t\t\tdomB[3], \r\n\t\t\t\t\t\tdomB[4]);\r\n\t\t\t\t\r\n\t\t\t\tthis.domC = new Location(\r\n\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\tx + domC[0], \r\n\t\t\t\t\t\ty + domC[1], \r\n\t\t\t\t\t\tz + domC[2],\r\n\t\t\t\t\t\tdomC[3], \r\n\t\t\t\t\t\tdomC[4]);\r\n\t\t\t\t\r\n\t\t\t\tfor (Float[] spawnpoint : preset.getSpawnpoints()){\r\n\t\t\t\t\tspawnsList.add(new Location(\r\n\t\t\t\t\t\t\tworld, \r\n\t\t\t\t\t\t\tx + spawnpoint[0], \r\n\t\t\t\t\t\t\ty + spawnpoint[1], \r\n\t\t\t\t\t\t\tz + spawnpoint[2], \r\n\t\t\t\t\t\t\tspawnpoint[3], \r\n\t\t\t\t\t\t\tspawnpoint[4]));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tmapID = maps.size()+1;\r\n\t\t\t\tmapName = map;\r\n\t\t\t\tmapAvailable.add(mapID);\r\n\t\t\t\tmaps.put(maps.size()+1, this);\r\n\t\t\t} catch (Exception e){\r\n\t\t\t\tFPSCaste.log(\"Something went wrong! disabling map: \" + map, Level.WARNING);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tFPSCaste.log(\"Could not initialise the Map \" + map, Level.WARNING);\r\n\t\t}\r\n\t}",
"public Main()\r\n\t{\r\n\t\tload=new Load();\r\n\t\tmyMap=new MyMap();\r\n\t\tload.myMap=myMap;\r\n\t}",
"public static Subject createWithMap(HashMap<String, String> map) {\n if (map.containsKey(MAP_ITEM_ID)) {\n Subject subject = SubjectManipulator.createItem(map);\n SubjectManipulator.add(subject);\n return subject;\n } else if (map.containsKey(MAP_CUSTOMER_ID)) {\n Subject subject = SubjectManipulator.createCustomer(map);\n SubjectManipulator.add(subject);\n return subject;\n } else if (map.containsKey(MAP_CATEGORY_ID)) {\n Subject subject = SubjectManipulator.createCategory(map);\n SubjectManipulator.add(subject);\n return subject;\n } else {\n LOGGER.warning(\"The map you gave was not valid, please make sure you haven't edited the map_id fields.\");\n return null;\n }\n }",
"private void copyMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (map[i][j] instanceof Player) {\n\t\t\t\t\tnewMap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof BlankSpace) {\n\t\t\t\t\tnewMap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Mho) {\n\t\t\t\t\tnewMap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Fence) {\n\t\t\t\t\tnewMap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}",
"private SimpleMap(Builder builder) {\n super(builder);\n }",
"public Dictionary createDictionary(){\n Dictionary dict = new Dictionary(9973);\n return dict;\n }",
"public MapNode()\n\t{\n\t\t// Call alternative constructor\n\t\tthis((AbstractNode)null);\n\t}",
"public Mapping() { this(null); }",
"public void makeMap(){\r\n\t\tint m =1;\r\n\t\t//EnvironObj temp = new EnvironObj(null, 0, 0);\r\n\t\tfor(int i=0; i<map.size(); i++){\r\n\t\t\tfor(int j =0; j<map.get(i).size(); j++){\r\n\t\t\t\tString o = map.get(i).get(j);\r\n\t\t\t\t//System.out.println(\"grabbing o from map, o = \" + o);\r\n\t\t\t\tif(o.equals(\"t\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"treee.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\t//System.out.println(\"objectList: \" + objectList);\r\n\t\t\t\t}else if(o.equals(\"p\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"path.png\", j+m, i*20, true);\r\n\t\t\t\t\t//dont need to add to obj list bc its always in back\r\n\t\t\t\t\twalkables.add(temp);\r\n\r\n\t\t\t\t}else if(o.equals(\"h\")){\r\n\t\t\t\t\ttemp = new EnvironObj(\"house.png\", j+m, i*20);\r\n\t\t\t\t\tobjectList.add(temp);\r\n\t\t\t\t}else if(o.equals(\"g\")){\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t}\r\n\t\t\t\telse if(!o.equals(\"g\")){\r\n\t\t\t\t\tString fn = o +\".txt\";\r\n\t\t\t\t\tSystem.out.println(\"filename for NPC: \" + fn);\r\n\t\t\t\t\tnp = new NPC(o, fn, j+m, i*20);\r\n\t\t\t\t\tm+=10;\r\n\t\t\t\t\tcharacters.add(np);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tm=0;\r\n\t\t}\r\n\t}",
"public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}",
"void setMap(Map aMap);",
"public Simulator useMap(Map map) {\n this.map = map;\n return this;\n }",
"public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}",
"public void generateRandomMap() {\n\n\t}",
"public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }",
"@Test\n public void testCreateHazardousMap2() {\n Map safeMap = safeCreator.createMap('s',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }",
"public IntMap()\r\n {\r\n this(16);\r\n }",
"public static ClassMap create(XMLName elementTypeName)\n {\n checkArgNull(elementTypeName, ARG_ELEMENTTYPENAME);\n return new ClassMap(elementTypeName);\n }",
"public MapNatural() {\n }",
"ParamMap createParamMap();",
"public Map(SpriteLoader sprites) {\n\n this.sprites = sprites;\n\n }",
"public TimeMap() {\n\n }",
"public void createMap(int game_id) {\n\t\tSQLiteDatabase database = getWritableDatabase();\n\n\t\tContentValues mapVals = new ContentValues();\n\t\tmapVals.put(\"game_id\", game_id);\n\n\t\tdatabase.insert(\"map\", null, mapVals);\n\t}",
"@Before\n public void initialize()\n {\n map = new MapAdapter();\n }"
] | [
"0.7971285",
"0.77930975",
"0.7561264",
"0.73805416",
"0.73235625",
"0.7189159",
"0.713116",
"0.70754933",
"0.7069262",
"0.6888252",
"0.6876139",
"0.68466777",
"0.6774265",
"0.6756225",
"0.67507076",
"0.66998667",
"0.66253835",
"0.65944797",
"0.65862095",
"0.65538025",
"0.65206134",
"0.65153545",
"0.6488824",
"0.6488824",
"0.6488241",
"0.64851105",
"0.6456245",
"0.64453816",
"0.64381504",
"0.6430623",
"0.6423042",
"0.64211285",
"0.63673717",
"0.6366256",
"0.63326955",
"0.63258195",
"0.6317286",
"0.6306301",
"0.6304095",
"0.6303799",
"0.6295715",
"0.62803316",
"0.6273755",
"0.6262412",
"0.6258808",
"0.6255496",
"0.6253903",
"0.62326574",
"0.62222475",
"0.6220571",
"0.621158",
"0.6194052",
"0.6193",
"0.61723155",
"0.6170462",
"0.6164108",
"0.61527663",
"0.61518604",
"0.61465806",
"0.6137419",
"0.6129333",
"0.612735",
"0.61102134",
"0.6108478",
"0.6098773",
"0.6096924",
"0.6095473",
"0.60945666",
"0.60847175",
"0.6073139",
"0.60594124",
"0.605571",
"0.60530275",
"0.6050113",
"0.6019438",
"0.6006999",
"0.6006691",
"0.6003533",
"0.5992843",
"0.5992456",
"0.5987469",
"0.59749717",
"0.59737635",
"0.5972759",
"0.59711736",
"0.59699094",
"0.59675175",
"0.5964908",
"0.5960119",
"0.5958982",
"0.5952764",
"0.5946965",
"0.59449863",
"0.5936982",
"0.5935977",
"0.5930277",
"0.59249514",
"0.5922581",
"0.5910996",
"0.5901031"
] | 0.6216052 | 50 |
Generated interface for the Service ModulesService. | public interface ModulesService {
public static final String BEAN_ID = "modulesService";
public Modules findById(Long id);
public List<Modules> findAll();
public Modules save(Modules entity);
public void delete(Modules entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ModulesController {\n\n public static final String MODULES_CONTROLLER_ATTRIBUTE_KEY =\n \"com.google.appengine.dev.modules_controller\";\n\n /**\n * Enum for tracking the state of a module (running/stopped).\n */\n public enum ModuleState {\n RUNNING,\n STOPPED;\n\n @Override\n public String toString() {\n return this.name().toLowerCase();\n }\n }\n\n /**\n * Returns all the known module names.\n */\n Iterable<String> getModuleNames();\n\n /**\n * Returns all known versions of the requested module.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured\n */\n Iterable<String> getVersions(String moduleName) throws ApiProxy.ApplicationException;\n\n /**\n * Returns the default version for a named module.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured\n */\n String getDefaultVersion(String moduleName) throws ApiProxy.ApplicationException;\n\n /**\n * Returns the number of instances for the requested module version.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured and {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_VERSION_VALUE}\n * if the requested version is not configured.\n */\n int getNumInstances(String moduleName, String version) throws ApiProxy.ApplicationException;\n\n /**\n * Sets the number of instances for the requested module version.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured and {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_VERSION_VALUE}\n * if the requested version is not configured for setting instances\n * {@link com.google.appengine.api.modules.ModulesServicePb.ModulesServiceError\n * .ErrorCode#INVALID_INSTANCES} if numInstances is not a legal value.\n */\n void setNumInstances(String moduleName, String version, int numInstances)\n throws ApiProxy.ApplicationException;\n\n\n /**\n * Returns the host name of the requested module version instance.\n *\n * @param moduleName the moduleName whose host we return.\n * @param version the version whose host we return.\n * @param instance the instance whose host we return or {@link com.google.appengine\n * .tools.development.LocalEnvironment#MAIN_INSTANCE}\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured and {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_VERSION_VALUE}\n * if the requested version is not configured and {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_INSTANCES_VALUE}\n * if the requested instance is not configured.\n */\n String getHostname(String moduleName, String version, int instance)\n throws ApiProxy.ApplicationException;\n\n /**\n * Starts the requested module version.\n * @throws ApiProxy.ApplicationException {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not a configured manual scaling module and\n * {@link com.google.appengine.api.modules.ModulesServicePb.ModulesServiceError\n * .ErrorCode#INVALID_VERSION_VALUE} if the requested version is not configured or is not a\n * manual scaling module and {@link com.google.appengine.api.modules.ModulesServicePb\n * .ModulesServiceError.ErrorCode#UNEXPECTED_STATE} if the module instance is\n * not stopped and ready to be started.\n */\n void startModule(String moduleName, String version) throws ApiProxy.ApplicationException;\n\n /**\n * Stops the requested module version.\n * @throws ApiProxy.ApplicationException {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not a configured manual scaling module and\n * {@link com.google.appengine.api.modules.ModulesServicePb\n * .ModulesServiceError.ErrorCode#INVALID_VERSION_VALUE} if the requested\n * version is not configured or is not a manual scaling module and\n * {@link com.google.appengine.api.modules.ModulesServicePb.ModulesServiceError\n * .ErrorCode#UNEXPECTED_STATE} if the module instance is not running and ready to be stopped.\n */\n void stopModule(String moduleName, String version) throws ApiProxy.ApplicationException;\n\n /**\n * Returns the type of scaling in use for this module.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured\n */\n String getScalingType(String moduleName) throws ApiProxy.ApplicationException;\n\n /**\n * Returns the current state of this module.\n *\n * @throws ApiProxy.ApplicationException with error code {@link com.google.appengine.api\n * .modules.ModulesServicePb.ModulesServiceError.ErrorCode#INVALID_MODULE_VALUE} if\n * the requested module is not configured\n */\n ModuleState getModuleState(String moduleName) throws ApiProxy.ApplicationException;\n}",
"public interface ModuleService {\n\n /**\n * 获取所有模块信息\n * @return\n */\n List<Module> getAllModule();\n\n Show getModuleAndPart();\n\n List<Module> findModuleByPartId(int typeNum);\n\n /**\n * 添加模块\n * @param partId\n * @param name\n * @param description\n * @param photo\n * @return\n */\n Show addModule(int partId, String name, String description, String photo);\n\n /**\n * 模块图片上传至服务器\n * @param stream\n * @param path\n * @param file\n */\n void savepic(InputStream stream, String path, String file);\n\n /**\n * 修改模块名称\n * @param id\n * @param name\n * @return\n */\n Show changeModuleName(int id, String name);\n\n /**\n * 修改模块描述信息\n * @param id\n * @param description\n * @return\n */\n Show changeModuleDescription(int id, String description);\n\n /**\n * 修改模块图片信息\n * @param id\n * @param photo\n * @return\n */\n Show changeModulePhoto(int id, String photo);\n\n /**\n * 移除模块\n * @param id\n * @return\n */\n Show moveModule(int id);\n\n \n Module findModuleById(int moduleId);\n}",
"public interface HomeModuleService extends ModuleCall{\n}",
"private ModuleServiceImpl(){\n\t\t//initialize local data.\n\t\tfactories = new ConcurrentHashMap<String, IModuleFactory>();\n\t\tstorages = new ConcurrentHashMap<String, IModuleStorage>();\n\t\tcache = new ConcurrentHashMap<String, Module>();\n\t\tmoduleListeners = new ConcurrentHashMap<String, IModuleListener>();\n\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\"Created new ModuleServiceImplementation\");\n\t\t}\n\n\t\tConfigurationManager.INSTANCE.configure(this);\n\t}",
"public interface Module extends Pluggable {\n\t\n\t/**\n\t * Return the module type. Module type can be a value like Mywork, Support, Cowork, etc.\n\t * @return\n\t */\n\tModuleType type();\n\t\n\t/**\n\t * Return true if the module is in subscription. \n\t * @return true if the module is in subscription\n\t */\n\tboolean isOpened();\n\t\n\t/**\n\t * Return true if the module is enabled by a company administrator.\n\t * @return true if the module is enabled by a company administrator\n\t */\n\tboolean isEnabled();\n\t\n\t/**\n\t * Return the home page uri representing an entry point of module.\n\t * @return the home page uri\n\t */\n\tString home();\n\n\t/**\n\t * Return company and user option information like whether option configuration is provided and option configuration uri if any. \n\t * @return company and user option configuration information\n\t */\n\tModuleOption option();\n\t\n\t/**\n\t * Return volume configuration information\n\t * @return\n\t */\n\tModuleComponent volume();\n\t\n\t/**\n\t * Return statistics information\n\t * @return\n\t */\n\tModuleComponent statistics();\n\t\n\t/**\n\t * Return renderer\n\t */\n\tModuleRenderer render();\n\t\n}",
"@Override\n public Collection<Class<? extends IFloodlightService>> getModuleServices() {\n \t Collection<Class<? extends IFloodlightService>> l = new ArrayList<Class<? extends IFloodlightService>>();\n l.add(IPktinHistoryService.class);\n return l;\n }",
"public List<Module> getModules(){\r\n return modules;\r\n }",
"protected List<Object> getModules() {\n return new ArrayList<>();\n }",
"List<ICMakeModule> getModules();",
"public XmlSerializableModuleList() {\n modules = new ArrayList<>();\n }",
"public interface IModuleRepo {\n\n /**\n * @return true if this repository has been initialized.\n */\n boolean isInitialized();\n\n /**\n * Initializes the repository.\n */\n void initialize(int shards, Integer shardIndex, File testsDir, Set<IAbi> abis,\n List<String> deviceTokens, List<String> testArgs, List<String> moduleArgs,\n Set<String> mIncludeFilters, Set<String> mExcludeFilters,\n MultiMap<String, String> metadataIncludeFilters,\n MultiMap<String, String> metadataExcludeFilters,\n IBuildInfo buildInfo);\n\n /**\n * @return a {@link LinkedList} of all modules to run on the device referenced by the given\n * serial.\n */\n LinkedList<IModuleDef> getModules(String serial, int shardIndex);\n\n /**\n * @return the number of shards this repo is initialized for.\n */\n int getNumberOfShards();\n\n /**\n * @return the modules which do not have token and have not been assigned to a device.\n */\n List<IModuleDef> getNonTokenModules();\n\n /**\n * @return the modules which have token and have not been assigned to a device.\n */\n List<IModuleDef> getTokenModules();\n\n /**\n * @return An array of all module ids in the repo.\n */\n String[] getModuleIds();\n\n /**\n * Clean up all internal references.\n */\n void tearDown();\n}",
"@Override\r\n\tpublic List<Modules> getAllModules() {\n\t\tString hql = \"from Modules\";\r\n\t\treturn (List<Modules>) getHibernateTemplate().find(hql);\r\n\t}",
"@Override\n public String moduleName() {\n return MODULE_NAME;\n }",
"public ResponseContainerModule() {\n\t\tsuper(TYPE_MODULE);\n\t}",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() \n\t{\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n\t\tCollection<Class<? extends IFloodlightService>> l =\n\t\t new ArrayList<Class<? extends IFloodlightService>>();\n\t\t l.add(IFloodlightProviderService.class);\n\t\t l.add(IStaticEntryPusherService.class);\n\t\t return l;\n\t}",
"@Override\n public Collection<Class<? extends IFloodlightService>> getModuleServices() {\n return null;\n }",
"public Modules (String module, int ID)\n\n {\n\n // Calls the setter method named setModuleName with module as it's parameter.\n setModuleName (module);\n // Calls the setter method named setModuleID with ID as it's parameter.\n setModuleID (ID);\n\n }",
"@Override\n\t\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n\t\t\treturn null;\n\t\t}",
"public interface SysAclModuleService {\n void save(AclModuleParam param);\n void update(AclModuleParam param);\n void delete(int aclModuleId);\n}",
"synchronized List<Module> getModules()\n {\n return m_modules;\n }",
"public interface RepoModule {\n void saveModule(Module module) throws Exception;\n void saveLocalObj(Collection<Module> modules) throws Exception;\n void updateFinalStatus(String vehicleNo) throws Exception;\n void updateFlag(String vehicleNo, String checkPointName) throws Exception;\n void deleteTableData()throws Exception;\n void deleteTableData(String vehicleNo) throws Exception;\n Set<Module> uploadModuleData(String userId) throws Exception;\n Integer checkDataInspections() throws Exception;\n List<String> getLocalVehicleList()throws Exception;\n List<Module> uploadData(String userId)throws Exception;\n Set<Module> selectAll()throws Exception;\n}",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n return null;\n\t}",
"public interface HRServiceAppModule extends ApplicationModule {\r\n void updateDepartmentName(Integer departmentId, String departmentName);\r\n}",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n\t\tCollection<Class<? extends IFloodlightService>> l =\n\t\t new ArrayList<Class<? extends IFloodlightService>>();\n\t\t l.add(IFloodlightProviderService.class);\n\t\t l.add(ITopologyService.class);\n\t\t return l;\n\t}",
"public interface AppModule extends ApplicationModule {\n void fetchApplist(String flowCode);\n\n List serviceCustomerCall(List inputList, String method);\n\n void fetchApplistpartner(String flowCode);\n\n List updatePaymentDetailsInCRM(List inputList);\n \n void fetchErrorMessage(String errorCode);\n\n void initLpgDistVo(String ftlFlag, String zipcodeFilter);\n\n void fetchAppListLpgLogIn();\n\n void fetchAppListCustomerNonLogin(String pflowCode);\n\n\n List initiatePaymentDetails(List inputList);\n\n List callChartAsync(List inputList);\n\n void insertIntoRoLocator(List jsonArrayList);\n\n void insertVehicleTypeRecord(String count);\n\n void insertProfileEnrichInfo(String FirstName, String LastName, String EmailId, String MobileNo);\n\n void insertRetailEnrichInfo(String FirstName, String LastName, String EmailId, String MobileNo);\n\n void insertIntoAoLocator(List jsonArrayList);\n\n void insertIntoPartnerDistLocator(List jsonArrayList);\n\n void insertIntoPartnerStockLocator(List jsonArrayList);\n}",
"protected void initModules()\n {\n\n }",
"public List<ProcessModuleInfoInner> modules() {\n return this.modules;\n }",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Collection<Class<? extends IFloodlightService>> getModuleServices() {\n\t\treturn null;\n\t}",
"private void setModuleInterface() {\n listModuleInterface = new ArrayList<List<UserInterface>>();\n for (int i = 0; i < modules.size(); i++) {\n List<UserInterface> list = new ArrayList<UserInterface>();\n if (modules.get(i).getUserInterfacesId() != null) {\n for (int j = 0; j < modules.get(i).getUserInterfacesId().size(); j++) {\n UserInterface uim = userInterfaceDAO.getById(modules.get(i).getUserInterfacesId().get(j));\n if (uim != null) {\n list.add(uim);\n }\n }\n }\n listModuleInterface.add(list);\n }\n }",
"@Override\n\tpublic List<ModuleInfo> getAllModule(String sessionId) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"getAllModule\");\n//\t\tif (!this.isCloudChannelLive()) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_COULD_NOT_ALIVE,\n//\t\t\t\t\t\"sid == null\");\n//\t\t}\n\t\t\n\t\tModuleGetAllRequest request = new ModuleGetAllRequest();\n\t\trequest.setSessionId(sessionId);\n\t\ttry {\n\t\t\tModuleGetAllResponse response = cloudModuleManager.getAllModule(request);\n\t\t\tList<ModuleInfo> modules = response.getPayload(); \n\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n\t\t\t.getServerModuleInfoHelper().putAll(modules);\n\t\t\treturn modules;\n\t\t} catch (CloudException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t\tthrow new HFModuleException(e1.getErrorCode(), e1.getMessage());\n\t\t}\n\t\t\n//\t\treturn Collections.<ModuleInfo>emptyList();\n//\t\t\n//\t\tString reqTemplate = \"{'CID':30051,'SID':'#SID#'}\";\n//\t\tString req = reqTemplate.replaceFirst(\"#SID#\", getsid());\n//\t\tString rsp = HttpProxy.reqByHttpPost(req);\n//\t\ttry {\n//\t\t\tJSONObject json = new JSONObject(rsp);\n//\t\t\tArrayList<ModuleInfo> result = new ArrayList<ModuleInfo>();\n//\t\t\tif (json.getInt(\"RC\") == 1) {\n//\t\t\t\tJSONArray ja = json.getJSONArray(\"PL\");\n//\t\t\t\tfor (int i = 0; i < ja.length(); i++) {\n//\t\t\t\t\tModuleInfo mi = new ModuleInfo();\n//\t\t\t\t\tmi.fromJson(ja.getJSONObject(i));\n//\t\t\t\t\tresult.add(mi);\n//\t\t\t\t}\n//\t\t\t\tHFLocalSaveHelper.getInstence().getMainUserInfoHelper()\n//\t\t\t\t\t\t.getServerModuleInfoHelper().putAll(result);\n//\t\t\t\treturn result;\n//\t\t\t} else {\n//\t\t\t\tthrow new HFModuleException(json.getInt(\"RC\"),\n//\t\t\t\t\t\tjson.getString(\"RN\"));\n//\t\t\t}\n//\t\t} catch (JSONException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n//\t\treturn null;\n\t}",
"Module createModule();",
"public DcmModuleImpl() {\r\n }",
"public ModuleInfo() {\r\n this.types = new ArrayList<>();\r\n this.typeByName = new HashMap<>();\r\n }",
"@Override\n public Collection<Class<? extends IFloodlightService>> getModuleDependencies() {\n return null;\n }",
"protected BackendModule(){ }",
"public interface GroupService {\n}",
"public interface GroupService {\n}",
"public interface BlogLibTestMasterAppModule extends ApplicationModule {\r\n String helloMasterModule(String param);\r\n}",
"List<String> getModuleNames() {\n return moduleNames;\n }",
"Module module() {\n return module;\n }",
"@Override\n\tpublic void listModuleById(int id, Module m) {\n\t\t moduleDao.listModuleById(id, m);\n\t}",
"public SNVAppModuleImpl() {\n }",
"public Collection getModulesNames() {\n\t\treturn modulesNames;\n\t}",
"public interface MauModule {\r\n\t/**\r\n\t * Initializes the module and loads all the configurations and everything else that needs to be\r\n\t * loaded.\r\n\t * \r\n\t * @param plugin The hosting instance of Maussentials.\r\n\t */\r\n\tpublic void load(Maussentials plugin);\r\n\t\r\n\t/**\r\n\t * Unload the MauModule.\r\n\t */\r\n\tpublic void unload();\r\n\t\r\n\t/**\r\n\t * @return True, if the module is loaded. False otherwise.\r\n\t */\r\n\tpublic boolean isLoaded();\r\n\t\r\n\t/**\r\n\t * Get the list of module names that this module depends on.\r\n\t */\r\n\tpublic default String[] getDependencies() {\r\n\t\treturn new String[0];\r\n\t}\r\n}",
"public List<Module> getAllModules() {\n List<Module> moduleList = new ArrayList<>();\n\n db = dbHelper.getReadableDatabase();\n\n Cursor cursor = db.query(Constants.MODULE_TABLE_NAME, null, null, null, null, null, null);\n\n while (cursor.moveToNext()) {\n int id = cursor.getInt(cursor.getColumnIndex(Constants.MODULE_ID));\n\n String type = cursor.getString(cursor.getColumnIndex(Constants.MODULE_TYPE));\n String name = cursor.getString(cursor.getColumnIndex(Constants.MODULE_NAME));\n String label = cursor.getString(cursor.getColumnIndex(Constants.MODULE_LABEL));\n String command = cursor.getString(cursor.getColumnIndex(Constants.MODULE_COMMAND));\n\n Module module = new Module(type, name, label, command);\n module.setId(id);\n\n moduleList.add(module);\n }\n\n cursor.close();\n\n return moduleList;\n }",
"@Override\n public String toString() {\n return String.format(\"Module '%s'\", getName());\n }",
"public HRServiceAppModuleImpl() {\n }",
"public String getmoduleName() {\t\r\n\treturn ModuleName;\t\r\n}",
"public ExampleModuleClient() {\r\n }",
"public WorldbankImportServiceImpl() {\n\t\tsuper();\n\t}",
"public void setModuleName(String moduleName) {\r\n\t\tthis.moduleName = moduleName;\r\n\t}",
"public DeploymentModule() {\n\t\tsuper(DeploymentModule.class.getSimpleName());\n\t}",
"public List<AModule> getModules()\n\t{\n\t\treturn new ArrayList<>(modules.values());\n\t}",
"public Module module() {\n ////\n return module;\n }",
"@Override\n public void onModuleLoad() {\n }",
"ModulePackage createModulePackage();",
"@Override\n\tpublic ModuleInfo setModule(ModuleInfo moduleInfo) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"setModule\");\n//\t\tif (!this.isCloudChannelLive()) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n//\t\t\t\t\t\"User is not online\");\n//\t\t}\n\t\tif (moduleInfo == null) {\n\t\t\tthrow new IllegalArgumentException(\"moduleinfo is Null\");\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_MODULE,\n//\t\t\t\t\t\"your moduleinfo is null\");\n\t\t}\n\n\t\tmoduleInfo.setAccessKey(HFConfigration.accessKey);\n\t\tModuleSetRequest request = new ModuleSetRequest(moduleInfo);\n\t\t\n\t\ttry {\n\t\t\tModuleInfoResponse response = cloudModuleManager.setModule(request);\n\t\t\n\t\t\tModuleInfo responseModuleInfo = response.getPayload();\n\t\t\tresponseModuleInfo.setLocalIp(moduleInfo.getLocalIp());\n\t\t\tgetHFModuleHelper().addRemoteModuleInfo(responseModuleInfo);\n\t\t\t\n\t\t\treturn responseModuleInfo;\n\t\t} catch (CloudException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tthrow new HFModuleException(e1.getErrorCode(), e1.getMessage());\n\t\t}\n\t\t\n//\t\ttry {\n//\t\t\tJSONObject joReq = new JSONObject();\n//\t\t\tJSONObject pl = new JSONObject(moduleInfo.toJson());\n//\t\t\tjoReq.put(\"PL\", pl);\n//\t\t\tjoReq.put(\"CID\", 30011);\n//\t\t\tjoReq.put(\"SID\", this.getsid());\n//\n//\t\t\tString req = joReq.toString();\n//\t\t\tString rsp = null;\n//\t\t\trsp = HttpProxy.reqByHttpPost(req);\n//\t\t\tJSONObject jo = new JSONObject(rsp);\n//\n//\t\t\tif (jo.isNull(\"RC\")) {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_MODULE,\n//\t\t\t\t\t\t\"can not set module\");\n//\t\t\t}\n//\n//\t\t\tif (jo.getInt(\"RC\") == 1) {\n//\t\t\t\tJSONObject rspPL = jo.getJSONObject(\"PL\");\n//\t\t\t\tModuleInfo rspInfo = new ModuleInfo();\n//\t\t\t\trspInfo.fromJson(pl);\n//\n//\t\t\t\trspInfo.setLocalIp(moduleInfo.getLocalIp());\n//\t\t\t\tgetHFModuleHelper().addRemoteModuleInfo(rspInfo);\n//\n//\t\t\t\treturn rspInfo;\n//\t\t\t} else {\n//\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_MODULE,\n//\t\t\t\t\t\t\"can not set module\");\n//\t\t\t}\n//\t\t} catch (JSONException e) {\n//\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_MODULE,\n//\t\t\t\t\t\"can not set module\");\n//\t\t}\n\t}",
"public Collection<Module> getModules() {\n\t\treturn this._modules.values();\n\t}",
"private LECCModule (ModuleName moduleName, ClassLoader foreignClassLoader, GeneratedCodeInfo generatedCodeInfo) {\r\n super (moduleName, foreignClassLoader, generatedCodeInfo);\r\n }",
"public UserInterface(Module module) {\r\n this.module = module;\r\n }",
"public interface AdminService {\n\n}",
"public interface IngestModuleFactory {\n\n /**\n * Gets the display name that identifies the family of ingest modules the\n * factory creates. Autopsy uses this string to identify the module in user\n * interface components and log messages. The module name must be unique. so\n * a brief but distinctive name is recommended.\n *\n * @return The module family display name.\n */\n String getModuleDisplayName();\n\n /**\n * Gets a brief, user-friendly description of the family of ingest modules\n * the factory creates. Autopsy uses this string to describe the module in\n * user interface components.\n *\n * @return The module family description.\n */\n String getModuleDescription();\n\n /**\n * Gets the version number of the family of ingest modules the factory\n * creates.\n *\n * @return The module family version number.\n */\n String getModuleVersionNumber();\n\n /**\n * Queries the factory to determine if it provides a user interface panel to\n * allow a user to change settings that are used by all instances of the\n * family of ingest modules the factory creates. For example, the Autopsy\n * core hash lookup ingest module factory provides a global settings panel\n * to import and create hash databases. The hash databases are then enabled\n * or disabled per ingest job using an ingest job settings panel. If the\n * module family does not have global settings, the factory may extend\n * IngestModuleFactoryAdapter to get an implementation of this method that\n * returns false.\n *\n * @return True if the factory provides a global settings panel.\n */\n boolean hasGlobalSettingsPanel();\n\n /**\n * Gets a user interface panel that allows a user to change settings that\n * are used by all instances of the family of ingest modules the factory\n * creates. For example, the Autopsy core hash lookup ingest module factory\n * provides a global settings panel to import and create hash databases. The\n * imported hash databases are then enabled or disabled per ingest job using\n * ingest an ingest job settings panel. If the module family does not have a\n * global settings, the factory may extend IngestModuleFactoryAdapter to get\n * an implementation of this method that throws an\n * UnsupportedOperationException.\n *\n * @return A global settings panel.\n */\n IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();\n\n /**\n * Gets the default per ingest job settings for instances of the family of\n * ingest modules the factory creates. For example, the Autopsy core hash\n * lookup ingest modules family uses hash databases imported or created\n * using its global settings panel. All of the hash databases are enabled by\n * default for an ingest job. If the module family does not have per ingest\n * job settings, the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that returns an instance of the\n * NoIngestModuleJobSettings class.\n *\n * @return The default ingest job settings.\n */\n IngestModuleIngestJobSettings getDefaultIngestJobSettings();\n\n /**\n * Queries the factory to determine if it provides user a interface panel to\n * allow a user to make per ingest job settings for instances of the family\n * of ingest modules the factory creates. For example, the Autopsy core hash\n * lookup ingest module factory provides an ingest job settings panels to\n * enable or disable hash databases per ingest job. If the module family\n * does not have per ingest job settings, the factory may extend\n * IngestModuleFactoryAdapter to get an implementation of this method that\n * returns false.\n *\n * @return True if the factory provides ingest job settings panels.\n */\n boolean hasIngestJobSettingsPanel();\n\n /**\n * Gets a user interface panel that can be used to set per ingest job\n * settings for instances of the family of ingest modules the factory\n * creates. For example, the core hash lookup ingest module factory provides\n * an ingest job settings panel to enable or disable hash databases per\n * ingest job. If the module family does not have per ingest job settings,\n * the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that throws an\n * UnsupportedOperationException.\n *\n * @param settings Per ingest job settings to initialize the panel.\n *\n * @return An ingest job settings panel.\n */\n IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings);\n\n /**\n * Queries the factory to determine if it is capable of creating data source\n * ingest modules. If the module family does not include data source ingest\n * modules, the factory may extend IngestModuleFactoryAdapter to get an\n * implementation of this method that returns false.\n *\n * @return True if the factory can create data source ingest modules.\n */\n boolean isDataSourceIngestModuleFactory();\n\n /**\n * Creates a data source ingest module instance.\n * <p>\n * Autopsy will generally use the factory to several instances of each type\n * of module for each ingest job it performs. Completing an ingest job\n * entails processing a single data source (e.g., a disk image) and all of\n * the files from the data source, including files extracted from archives\n * and any unallocated space (made to look like a series of files). The data\n * source is passed through one or more pipelines of data source ingest\n * modules. The files are passed through one or more pipelines of file\n * ingest modules.\n * <p>\n * The ingest framework may use multiple threads to complete an ingest job,\n * but it is guaranteed that there will be no more than one module instance\n * per thread. However, if the module instances must share resources, the\n * modules are responsible for synchronizing access to the shared resources\n * and doing reference counting as required to release those resources\n * correctly. Also, more than one ingest job may be in progress at any given\n * time. This must also be taken into consideration when sharing resources\n * between module instances. modules.\n * <p>\n * If the module family does not include data source ingest modules, the\n * factory may extend IngestModuleFactoryAdapter to get an implementation of\n * this method that throws an UnsupportedOperationException.\n *\n * @param settings The settings for the ingest job.\n *\n * @return A data source ingest module instance.\n */\n DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings);\n\n /**\n * Queries the factory to determine if it is capable of creating file ingest\n * modules. If the module family does not include file ingest modules, the\n * factory may extend IngestModuleFactoryAdapter to get an implementation of\n * this method that returns false.\n *\n * @return True if the factory can create file ingest modules.\n */\n boolean isFileIngestModuleFactory();\n\n /**\n * Creates a file ingest module instance.\n * <p>\n * Autopsy will generally use the factory to several instances of each type\n * of module for each ingest job it performs. Completing an ingest job\n * entails processing a single data source (e.g., a disk image) and all of\n * the files from the data source, including files extracted from archives\n * and any unallocated space (made to look like a series of files). The data\n * source is passed through one or more pipelines of data source ingest\n * modules. The files are passed through one or more pipelines of file\n * ingest modules.\n * <p>\n * The ingest framework may use multiple threads to complete an ingest job,\n * but it is guaranteed that there will be no more than one module instance\n * per thread. However, if the module instances must share resources, the\n * modules are responsible for synchronizing access to the shared resources\n * and doing reference counting as required to release those resources\n * correctly. Also, more than one ingest job may be in progress at any given\n * time. This must also be taken into consideration when sharing resources\n * between module instances. modules.\n * <p>\n * If the module family does not include file ingest modules, the factory\n * may extend IngestModuleFactoryAdapter to get an implementation of this\n * method that throws an UnsupportedOperationException.\n *\n * @param settings The settings for the ingest job.\n *\n * @return A file ingest module instance.\n */\n FileIngestModule createFileIngestModule(IngestModuleIngestJobSettings settings);\n}",
"Iterable<String> getModuleNames();",
"public long getModuleId() {\r\n throw new UnsupportedOperationException(\"please override this method in sub-class.\");\r\n }",
"public abstract String getModuleName( );",
"ModuleDefine createModuleDefine();",
"public interface ModuleCall {\n void initContext(Context context);\n}",
"@Override\n\tpublic List<Module> listRootModule() {\n\t\treturn moduleDao.listRootModule();\n\t}",
"public List<Module> availableModules() {\n \t\treturn _availableModules;\n \t}",
"public void setModuleName (String moduleName)\n\n {\n\n // moduleName is set equal to moduleName.\n this.moduleName = moduleName;\n\n }",
"public Map getWebServiceModules() {\n Map map = new HashMap();\n\n // admin config context\n ConfigContext configCtx = AdminService.getAdminService().\n getAdminContext().getAdminConfigContext();\n\n CacheMgr mgr = CacheMgr.getInstance();\n\n // j2ee application\n Map apps = mgr.getJ2eeApplications();\n Collection aValues = apps.values();\n for (Iterator iter=aValues.iterator(); iter.hasNext();) {\n J2eeApplication app = (J2eeApplication) iter.next();\n\n // ejb bundles\n List ejbBundles = app.getEjbBundles();\n if (ejbBundles != null) {\n for (Iterator itr=ejbBundles.iterator(); itr.hasNext();) {\n String ejb = (String) itr.next();\n try {\n Map m = getEjbBundleInfo(configCtx, app.getName(), ejb);\n map.put(m.get(WebServiceInfoProvider.\n SUN_EJB_JAR_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n }\n\n // web bundles \n List webBundles = app.getWebBundles();\n if (webBundles != null) {\n for (Iterator itr=webBundles.iterator(); itr.hasNext();) {\n String web = (String) itr.next();\n try {\n Map m = getWebBundleInfo(configCtx, app.getName(), web);\n map.put(m.get(WebServiceInfoProvider.\n SUN_WEB_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n }\n }\n\n // stand alone ejb module\n Map ejbs = mgr.getEjbModules();\n Collection eValues = ejbs.values();\n for (Iterator iter=eValues.iterator(); iter.hasNext();) {\n String ejbMod = (String) iter.next();\n try {\n Map m = getEjbModuleInfo(configCtx, ejbMod);\n map.put(m.get(WebServiceInfoProvider.\n SUN_EJB_JAR_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n\n // stand alone web module\n Map webs = mgr.getWebModules();\n Collection wValues = webs.values();\n for (Iterator iter=wValues.iterator(); iter.hasNext();) {\n String webMod = (String) iter.next();\n\n try {\n Map m = getWebModuleInfo(configCtx, webMod);\n map.put(m.get(WebServiceInfoProvider.\n SUN_WEB_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n\n return map;\n }",
"public int getModuleType() {\n\t\treturn 0;\n\t}",
"public interface ISystemUpdateHistoryService extends IBaseService<SystemUpdateHistory> {\n\n}",
"public int getModuleId() {\n return moduleId_;\n }",
"public List<String> getModulesList() {\n\t\treturn modulesList;\n\t}",
"public interface XModule extends ru.awk.spb.xonec.XOneC.XModule\r\n{\r\n}",
"public DcModule getModule();",
"RegistrationModule createRegistrationModule();",
"private com.tangosol.coherence.Component get_Module()\n {\n return this;\n }",
"private com.tangosol.coherence.Component get_Module()\n {\n return this;\n }",
"private com.tangosol.coherence.Component get_Module()\n {\n return this;\n }",
"private com.tangosol.coherence.Component get_Module()\n {\n return this;\n }",
"public interface payCertAM extends ApplicationModule {\r\n void createNewCertification();\r\n\r\n void refreshCertification();\r\n}",
"public void setModulesList(List<String> modulesList) {\n\t\tthis.modulesList = modulesList;\n\t}",
"public interface LearningSpaceServices {\n\n\n}",
"public interface IGroupCodeService extends BaseService<GroupCode, Integer> {\r\n\r\n}",
"public interface IGroupsVerService extends IBaseService<GroupsVerification,String> {\n\n /**\n * 申请入群消息查询+分页\n * @param searchable\n * @param page\n * @return\n */\n List<GroupsVerification> queryPage(GroupsVerification searchable, Pagination page);\n\n /**\n * 根据群组ID和用户ID查询申请记录\n * @param gv\n * @return\n */\n List<GroupsVerification> findByGidAndUid(GroupsVerification gv);\n\n /**\n * 删除验证信息\n * @param ids\n * @return\n */\n int deleteArray(String[] ids);\n\n /**\n * 查询待处理验证消息\n * @param userId\n * @return\n */\n List<GroupsVerification> queryPending(String userId);\n}",
"public int getModuleId();",
"public interface ProductParameterGroupService {\n //查询商品参数组\n List<ProductParameterGroup> queryParameterGroup();\n}",
"public interface SysPluginService extends BaseService<Sys_plugin> {\n}",
"IServiceContext createService(Class<?>... serviceModules);",
"public void setModuleName(final String moduleName) {\n this.moduleName = moduleName;\n }",
"public interface MineService {\n}",
"@Override\r\n\tpublic void updateModules(Modules modules) {\n\t\tModules m = getModulesById(modules.getModules_id());\r\n\t\tm.setModules_id(modules.getModules_id());\r\n\t\tm.setName(modules.getName());\r\n\t\tm.setDescription(modules.getDescription());\r\n\t\tm.setFunctionSet(modules.getFunctionSet());\r\n\t\tgetHibernateTemplate().update(m);\r\n\t}",
"public int getModuleId() {\n return moduleId_;\n }",
"public Set<String> moduleList() {\n return moduleList;\n }",
"@Override\n\tpublic Integer updateModules(Modules modules) {\n\t\treturn modulesMapper.updateModules(modules);\n\t}"
] | [
"0.7158315",
"0.6959061",
"0.6930076",
"0.6542024",
"0.6496453",
"0.6427438",
"0.6396909",
"0.6338034",
"0.6320378",
"0.6232711",
"0.6131348",
"0.61138546",
"0.60898054",
"0.6081999",
"0.6059667",
"0.60546225",
"0.60476667",
"0.60440993",
"0.60425407",
"0.60425156",
"0.6042012",
"0.60349643",
"0.60058993",
"0.6005033",
"0.6004435",
"0.6000964",
"0.59734046",
"0.59602",
"0.5960013",
"0.5960013",
"0.5960013",
"0.5911048",
"0.5903454",
"0.58954257",
"0.58712083",
"0.58588856",
"0.5825524",
"0.5811888",
"0.57890373",
"0.57890373",
"0.5787168",
"0.577655",
"0.57676804",
"0.57650805",
"0.57572514",
"0.57456326",
"0.5744661",
"0.5716481",
"0.56972116",
"0.5682405",
"0.5682261",
"0.56727636",
"0.5651756",
"0.56491446",
"0.56475705",
"0.56451607",
"0.5623112",
"0.56220746",
"0.55970466",
"0.5593074",
"0.5577931",
"0.5570648",
"0.55566925",
"0.5550911",
"0.5550165",
"0.55489963",
"0.55455226",
"0.5537765",
"0.55365366",
"0.5533647",
"0.55238885",
"0.5517492",
"0.5510498",
"0.5509455",
"0.550651",
"0.55040497",
"0.5501895",
"0.5499546",
"0.54831797",
"0.5476479",
"0.54712516",
"0.546569",
"0.546569",
"0.546569",
"0.546569",
"0.54642123",
"0.54579353",
"0.5453572",
"0.5443446",
"0.5441702",
"0.5437887",
"0.54277587",
"0.54236555",
"0.5417779",
"0.5410062",
"0.54087245",
"0.54074687",
"0.5403162",
"0.5396271",
"0.5388294"
] | 0.7214692 | 0 |
Gets of all the parameters | public Map<String, InfocardClaim> getSupportedClaims() {
return supportedClaims;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ParameterList getParameters();",
"public Parameters getParameters();",
"String [] getParameters();",
"IParameterCollection getParameters();",
"public String[] getParameters() {\r\n return parameters;\r\n }",
"@Override\n public Parameters getParams() {\n return parameters;\n }",
"public String[] getParameters() {\n return parameters;\n }",
"public String getAllParam() { return this.allParam; }",
"@Override\n public String getParameters() {\n return parameters;\n }",
"public ArrayList getParameters() {\n return parameters;\n }",
"public String[] getParameters() {\n\t\treturn parameters;\n\t}",
"public Map getParameters();",
"public List<IParam> getParams();",
"public List<IParam> getParams();",
"public Parameters getParameters() {\r\n return params;\r\n }",
"Map<String, String> getParameters();",
"public Parameter[] getParameters()\r\n {\r\n return m_params;\r\n }",
"public String[] getParameters() {\r\n return scope != null? scope.getParameters() : null;\r\n }",
"public List<Parameter> parameters() {\n if (_params != null && !_params.isEmpty()) {\n return new ArrayList<Parameter>(_params.values());\n }\n return null;\n }",
"public Map getParameters() {\r\n\t\treturn parameters;\r\n\t}",
"Map<String, Object> getParameters();",
"Map<String, Object> getParameters();",
"public ArrayList<String> getParameterValues() { return this.params; }",
"public Parameter[] getParameters() {\n return values;\n }",
"public List<Map> getAllParameters() {\n List<Map> allProductParameters = new ArrayList<Map>();\n if (processorParametres != null) allProductParameters.add(processorParametres);\n if (sellerParametres != null) allProductParameters.add(sellerParametres);\n if (storageParametres != null) allProductParameters.add(storageParametres);\n\n return allProductParameters;\n }",
"@Override\n public List<ParameterAssignment> getParameters()\n {\n return parameters;\n }",
"List<PowreedCommandParameter> getParameters();",
"public Variable[] getParameters();",
"public Collection<SPParameter> getParameters(){\n return mapOfParameters.values();\n }",
"public Parameters getParameters() {\n \treturn parameters;\n }",
"java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList();",
"@Override\n\t\tpublic Object[] getParameters() {\n\t\t\treturn null;\n\t\t}",
"public Map<String, List<String>> getParameters() {\n\t\t\treturn parameters;\n\t\t}",
"public CParam[] getParameters() {\r\n\t\treturn parameters.toArray(new CParamImpl[parameters.size()]);\r\n\t}",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[3];\n params[0] = maxIterations;\n params[1] = lpeChecker;\n params[2] = maxResonStruc;\n return params;\n }",
"public Map getParams() {\n\t\treturn _params;\n\t}",
"INDArray getParams();",
"public void getParameters(Parameters parameters) {\n\n }",
"public int[] getParams()\n\t{\n\t\treturn null;\n\t}",
"public Map<String, List<String>> parameters() {\n return parameters;\n }",
"public List<Parameter> getParamters() {\r\n return this.lstParameters;\r\n }",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();",
"public List<JParameter> getParams() {\n return params;\n }",
"public String getParams() {\r\n\t\treturn this.params;\r\n\t}",
"public void getParameters(Parameters parameters) {\n\n\t}",
"@Override\n public List<KParameter> getParameters() {\n return getReflected().getParameters();\n }",
"public List<Parameter> getParameter( )\n {\n return _parameter;\n }",
"public Object parameters() {\n return this.parameters;\n }",
"@NonNull\n public Map<String, Object> getParameters() {\n return parameters;\n }",
"public Map<String, Expression> getParameters() {\r\n \t\treturn parameters;\r\n \t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"huruf\", huruf);\n params.put(\"derajat_lengan_x\", drajatX);\n params.put(\"derajat lengan_y\", drajatY);\n params.put(\"gambar\", gambar);\n\n return params;\n }",
"@Override\n\tpublic Collection<Parameter<?>> getParameters() {\n\t\treturn null;\n\t}",
"public List getParameterValues() {\r\n\t\treturn parameterValues;\r\n\t}",
"public Iterator getParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameters() \");\n Via via=(Via)sipHeader;\n \n Iterator iterator= via.getParameters(); \n if ( iterator==null) return null;\n if ( iterator.hasNext() ) return iterator;\n else return null; \n }",
"public ParameterList getParameters() {\n\t\treturn _parameters;\n\t}",
"public Map<String, String> getParameters() {\r\n return _parameters;\r\n }",
"public Parameters getParameters() {\n Parameters p = new Parameters();\n String s = native_getParameters();\n Log.e(TAG, \"_getParameters: \" + s);\n p.unflatten(s);\n return p;\n }",
"public String getParameters() {\n return this.Parameters;\n }",
"java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> \n getParamsList();",
"public Map getValues() {\r\n return this.params;\r\n }",
"public Map<String, Object> getParams() {\n return params;\n }",
"public String getParameters() {\n\t\treturn this.appTda_.getParameters();\n\t}",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[1];\n params[0] = maxIterations;\n return params;\n }",
"com.google.protobuf.ByteString getParams();",
"public Map<String, Object> getParameters() {\n return this.parameters;\n }",
"@Override\n public List<Param<?>> params() {\n return this.settings;\n }",
"public List<ModuleArgumentItem> getParams() {\n return params;\n }",
"public DataType[] getParameters() {\n return parameters;\n }",
"@Parameters\n\tpublic static Collection<ByteBuf> getParams(){\n\t\tByteBuf full = Unpooled.buffer(128);\n\t\tfull.writeInt(0);\n\t\tfull.writeInt(1);\n\t\t\n\t\tByteBuf ill = Unpooled.buffer(128);\n\t\till.writeInt(10);\n\t\t\n\t\treturn Arrays.asList(new ByteBuf[] {\n\t\t\tfull,\n\t\t\till,\n\t\t\tUnpooled.buffer(128),\n\t\t\tnull,\n\t\t});\n\t}",
"public List<ConstraintParameter> getParameters() {\n\t\t// TODO send out a copy..not the reference to our actual data\n\t\treturn m_parameters;\n\t}",
"public List<GroupParameter> getParameters();",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"ubaid\", globalVar.getUbaid());\n\n return params;\n }",
"public Map<String, String> parameters() {\n return this.parameters;\n }",
"public Collection<ParameterClass> getAllParameters()\n\t{\n\t\tif( this.parent == null )\n\t\t{\n\t\t\treturn this.getDeclaredParameters();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCollection<ParameterClass> inherited = new HashSet<>( this.parameters.values() );\n\t\t\t\n\t\t\t// loop through each parent and get their parameters - creates many fewer collections\n\t\t\t// doing it this way compared to recursing up\n\t\t\tInteractionClass currentParent = this.parent;\n\t\t\twhile( currentParent != null )\n\t\t\t{\n\t\t\t\tinherited.addAll( currentParent.parameters.values() );\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t\t}\n\t\t\t\n\t\t\t// return the complete set\n\t\t\treturn inherited;\n\t\t}\n\t}",
"public Parametro[] getParametros() {\n return parametros;\n }",
"public Collection<String> getParamNames();",
"public cto.framework.web.action.plugin.schema.Parameter[] getParameter() {\r\n cto.framework.web.action.plugin.schema.Parameter[] array = new cto.framework.web.action.plugin.schema.Parameter[0];\r\n return this._parameterList.toArray(array);\r\n }",
"public List<ParameterDefinition> parameters() {\n return this.innerProperties() == null ? null : this.innerProperties().parameters();\n }",
"public Object[] getParameters() {\n \t// return the parameters as used for the rule validation\n Object[] params = new Object[1];\n params[0] = charge;\n return params;\n }",
"@Override\r\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\r\n\r\n // Adding All values to Params.\r\n params.put(\"name\", Name);\r\n params.put(\"age\", Age);\r\n params.put(\"phone_no\", Phoneno);\r\n params.put(\"h_lic_no\", Hospitallic);\r\n params.put(\"appoinment_date\", Appointment1);\r\n params.put(\"address\", Address);\r\n params.put(\"permision\", Permission);\r\n\r\n return params;\r\n }",
"public Properties getParameters() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}",
"public Map getParameters()\n\t{\n\t\tMap returnValue = null;\n\n\t\tif (params == null)\n\t\t{\n\t\t\treturnValue = new HashMap();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = params;\n\t\t}\n\n\t\treturn returnValue;\n\t}",
"@Override\n\tprotected String getParameters()\n\t{\n\t\tString fields = \" ?, ?, ?, ?, ? \";\n\t\treturn fields;\n\t}",
"java.util.List<gen.grpc.hospital.examinations.Parameter> \n getParameterList();",
"public Set<Parameter> getSearchedParameters() {\n\t\treturn new HashSet<Parameter>(parameterEntries.keySet());\n\t}",
"Map<UrlParameterName, List<String>> urlParameters() {\n return this.url().query().parameters();\n }",
"public java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList() {\n return parameters_;\n }",
"public java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList() {\n return java.util.Collections.unmodifiableList(parameters_);\n }",
"public static Map<String, String> getParameters() {\r\n return null;\r\n }",
"public java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> getParamsList() {\n if (paramsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(params_);\n } else {\n return paramsBuilder_.getMessageList();\n }\n }",
"public java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> getParamsList() {\n return params_;\n }",
"public Map getParameterMap() {\n return params;\n }",
"@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}",
"public abstract ImmutableMap<String, ParamInfo> getParamInfos();",
"public String[] getParameterNames() {\r\n return parameterNames;\r\n }",
"@TestMethod(value=\"testGetParameterNames\")\n public String[] getParameterNames() {\n \tString[] params = new String[3];\n params[0] = \"maxIterations\";\n params[1] = \"lpeChecker\";\n params[2] = \"maxResonStruc\";\n return params;\n }",
"public ParameterData[] getParameterData() {\n return parameters;\n }",
"public final Iterator<String> parameterNames() {\n return m_parameters.keySet().iterator();\n }"
] | [
"0.80942196",
"0.80794775",
"0.7985298",
"0.78543633",
"0.7845476",
"0.7829069",
"0.7790794",
"0.77535284",
"0.77347577",
"0.77211565",
"0.7704618",
"0.7682978",
"0.7651973",
"0.7651973",
"0.7616449",
"0.7593306",
"0.755728",
"0.75564855",
"0.7531209",
"0.75266206",
"0.7521282",
"0.7521282",
"0.75122577",
"0.7503619",
"0.74914306",
"0.74892586",
"0.7488585",
"0.7462821",
"0.7443745",
"0.7439697",
"0.7405951",
"0.7393723",
"0.738519",
"0.7385064",
"0.73676056",
"0.73622507",
"0.73479825",
"0.7337278",
"0.7335782",
"0.73246056",
"0.73202485",
"0.73056436",
"0.7291615",
"0.7289025",
"0.7279362",
"0.72778827",
"0.7263476",
"0.72402513",
"0.7225829",
"0.7215671",
"0.7214505",
"0.7195201",
"0.71945834",
"0.7183879",
"0.7166404",
"0.7151237",
"0.7149477",
"0.7148788",
"0.71486896",
"0.714312",
"0.7142151",
"0.7123074",
"0.7096923",
"0.7089285",
"0.70789045",
"0.7072835",
"0.7071033",
"0.7050206",
"0.7015261",
"0.70104176",
"0.7007213",
"0.70038635",
"0.7002305",
"0.70011413",
"0.6995384",
"0.6970929",
"0.6962403",
"0.6961136",
"0.69592494",
"0.6945196",
"0.69376963",
"0.69301873",
"0.6925957",
"0.6922482",
"0.69214565",
"0.6921437",
"0.6913402",
"0.69087696",
"0.6894296",
"0.6892083",
"0.6890769",
"0.68907076",
"0.6880625",
"0.68708336",
"0.6853064",
"0.68504554",
"0.684805",
"0.6846021",
"0.6834074",
"0.6831538",
"0.6816152"
] | 0.0 | -1 |
Sets the list of claims supported by infocards | public void setSupportedClaims(Map<String, InfocardClaim> claims) {
supportedClaims = claims;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<String, InfocardClaim> getSupportedClaims() {\n return supportedClaims;\n }",
"public void setSupportedCreditCardTypes(List<String> pSupportedCreditCardTypes) {\n mSupportedCreditCardTypes = pSupportedCreditCardTypes;\n }",
"public void setCardInfo(CardInfo[] cardInfo) {\n this.cardInfo = cardInfo;\n }",
"void claim(@Nonnull Client client, @Nonnull List<Set<TCSResource<?>>> claim);",
"public void setCards(List<T> cards) {\n\t\tthis.cards = cards;\n\t}",
"public String setCardTypes()\n\t{\n\t\tString creditCards = \"vi-mc\";\n\t\tcreditCards = (DISCOVER_IMAGE == \"discvr.gif\") ? (creditCards + \"-di\") : creditCards;\n\t\tcreditCards = (AMEX_IMAGE == \"amex.gif\") ? (creditCards + \"-am\") : creditCards;\n\t\treturn creditCards;\n\t}",
"public void setClaimNumber(java.lang.String value);",
"public void setClaimCenterUID(java.lang.String value);",
"public void setSpecimenList(Collection<List<NameValueBean>> specimenList)\r\n\t{\r\n\t\tthis.specimenList = specimenList;\r\n\t}",
"public void setAdvisors(List<Professor> list) {\r\n advisors = list;\r\n }",
"public void setSupports(long supports);",
"public void testListClaim(){\n\t}",
"void setcards (String[] cards) {\n\t\tmycards = cards;\n\t}",
"public static void setMyCards() {\n for (Suit s: Suit.values()){\n for (FaceValue f: FaceValue.values()){\n Card c = new Card(s,f);\n myCards.add(c);\n }\n }\n }",
"public void setPlatforms(String platforms);",
"private Set<String> extractUserInfoClaimsIntoSet(JsonObject claims) {\r\n\t\tSet<String> target = new HashSet<>();\r\n\t\tif (claims != null) {\r\n\t\t\tJsonObject userinfoAuthorized = claims.getAsJsonObject(\"userinfo\");\r\n\t\t\tif (userinfoAuthorized != null) {\r\n\t\t\t\tfor (Entry<String, JsonElement> entry : userinfoAuthorized.entrySet()) {\r\n\t\t\t\t\ttarget.add(entry.getKey());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn target;\r\n\t}",
"public void setCards(Card[] cards) {\r\n this.cards = cards;\r\n }",
"public void setPaymentInfoInCart(CreditCard cc);",
"private void updateDeviceList() {\r\n\t\tavailableCams.removeAllElements();\r\n\t\tavailableCams.addElement(NO_CAMERA);\r\n\t\t\r\n\t\tmediaSrc.updateDeviceList();\r\n\t\tfor(CameraController c : mediaSrc.getAvailableCameras()) {\r\n\t\t\tavailableCams.addElement(c);\r\n\t\t}\r\n\t\t\r\n\t\tif(mediaSrc.getActiveCamera() != null) {\r\n\t\t\tavailableCams.setSelectedItem(mediaSrc.getActiveCamera());\r\n\t\t} else {\r\n\t\t\tavailableCams.setSelectedItem(NO_CAMERA);\r\n\t\t}\r\n\t}",
"void updateProviders(List<Provider> providers) {\n this.providers = providers;\n }",
"void setPermittedModules(ArrayList<Integer> permittedModules);",
"private void setInsured(Record record, PolicyHeader policyHeader, List<InsuredType> insuredList) {\r\n Logger l = LogUtils.getLogger(getClass());\r\n if (l.isLoggable(Level.FINER)) {\r\n l.entering(getClass().getName(), \"setInsured\", new Object[]{policyHeader.toString(), insuredList});\r\n }\r\n\r\n InsuredType insured = new InsuredType();\r\n\r\n String riskId = PremiumFields.getRiskId(record);\r\n insured.setInsuredNumberId(riskId);\r\n insured.setKey(riskId);\r\n //set risk total premium\r\n insured.setCurrentTermAmount(PremiumFields.getWrittenPremium(record));\r\n insuredList.add(insured);\r\n\r\n if (l.isLoggable(Level.FINER)) {\r\n l.exiting(getClass().getName(), \"setInsured\", insured);\r\n }\r\n }",
"List<Claim> getClaims(User user, List<String> claimURIs) throws ClaimManagerException;",
"public ClaimProfile(UUID uuid, int claimer) {\n this.uuid = uuid;\n this.claimer = claimer;\n this.claimedChunks = new ArrayList<>();\n this.access = new ArrayList<>();\n }",
"public Map<String,Object> getCustomClaims();",
"public void setGenders(final List<EnumerationValue> value)\r\n\t{\r\n\t\tsetGenders( getSession().getSessionContext(), value );\r\n\t}",
"public void setUserProfileListWithCG(List<BaseModel> modelList, HttpServletRequest req) {\r\n\t\tlogger.info(\"setUserProfileListWithCG companyid is :\");\r\n\t\tfor (BaseModel model : modelList) {\r\n\t\t\tsetUserProfile(model, req);\r\n\t\t}\r\n\t}",
"public void setClaimableTools(ClaimableTools pClaimableTools) {\n mClaimableTools = pClaimableTools;\n }",
"public void setAcrs(List<ACR> acrList) {\n this.acrs = acrList;\n }",
"public void setAccept(List<MediaType> acceptableMediaTypes)\r\n/* 82: */ {\r\n/* 83:139 */ set(\"Accept\", MediaType.toString(acceptableMediaTypes));\r\n/* 84: */ }",
"@Override\n\tpublic void setCard(java.lang.String card) {\n\t\t_esfShooterAffiliationChrono.setCard(card);\n\t}",
"private List<Claim> buildClaims(List<Attribute> attributes, Map<String, MetaClaim> attributeMapping) {\n\n return attributes.stream().map(attribute -> {\n MetaClaim metaClaim = attributeMapping.get(attribute.getAttributeName());\n Claim claim = new Claim();\n claim.setClaimURI(metaClaim.getClaimURI());\n claim.setDialectURI(metaClaim.getDialectURI());\n claim.setValue(attribute.getAttributeValue());\n return claim;\n }).collect(Collectors.toList());\n }",
"public void setGenders(final SessionContext ctx, final List<EnumerationValue> value)\r\n\t{\r\n\t\tsetProperty(ctx, GENDERS,value == null || !value.isEmpty() ? value : null );\r\n\t}",
"public abstract void setPaymentTypes(java.util.Set paymentTypes);",
"public void setIdTokenClaimsSet(IDTokenClaimsSet idTokenClaimsSet) {\n if (idTokenClaimsSet != null) {\n this.idTokenClaimsSet = idTokenClaimsSet.toJSONObject();\n } else {\n this.idTokenClaimsSet = null;\n }\n }",
"public void setIdentifiers(List<Identifier> identifiers) {\r\n\r\n this.identifiers = identifiers;\r\n\r\n }",
"public RecordSet loadClaimInfo(Record inputRecord);",
"public void testSetAllFields_Behavior(String profileConf,String behaviorOfMandatory,String behaviorOfOptional) throws Exception{\r\n ProfileManagement instProfileManagement = new ProfileManagement(selenium);\r\n String arr[]={\"givenname\",\"lastname\",\"emailaddress\",\"nickname\",\"dob\",\"gender\",\"country\",\"streetaddress\",\"telephone\",\"mobile\",\"locality\",\"postalcode\",\"region\",\"role\",\"title\",\"url\",\"im\",\"organization\",\"otherphone\",\"fullname\",\"stateorprovince\"};\r\n int i=0;\r\n while(i<21){\r\n if((\"http://wso2.org/claims/\"+arr[i]).equals(\"http://wso2.org/claims/givenname\")||(\"http://wso2.org/claims/\"+arr[i]).equals(\"http://wso2.org/claims/lastname\")||(\"http://wso2.org/claims/\"+arr[i]).equals(\"http://wso2.org/claims/emailaddress\"))\r\n instProfileManagement.testUpdateDefaultProfile_Configuration(profileConf,\"http://wso2.org/claims/\"+arr[i],behaviorOfMandatory);\r\n else\r\n instProfileManagement.testUpdateDefaultProfile_Configuration(profileConf,\"http://wso2.org/claims/\"+arr[i],behaviorOfOptional);\r\n\r\n i=i+1;\r\n }\r\n }",
"public void setSuspectCardsAndPlayerPieces() {\n List<SuspectCard> suspectCards = new ArrayList<SuspectCard>(); // empty list for the suspect cards\n List<PlayerPiece> playerPieces = new ArrayList<PlayerPiece>(); // empty list for playerPieces\n Data data = new Data(\"data.json\");// read data from file data.json\n JSONObject suspectData = (JSONObject) data.getJsonData().get(\"Suspects\");// get the data within the class suspects\n for (int i = 0; i < 6; i++) {// for i from 0 to 5\n String suspectName = String.valueOf(suspectData.get(String.valueOf(i))); // Get name of suspect\n PlayerPiece playerPiece = new PlayerPiece(suspectName); // new playerPiece instance\n suspectCards.add(new SuspectCard(suspectName)); // add a new instance of suspectCard into suspectCards\n playerPieces.add(playerPiece);// add playerPiece instance into playerPieces\n\n }\n // assign the lists to class variables.\n this.suspectCards = suspectCards;\n this.playerPieces = playerPieces;\n }",
"@Override\n public void setQualifiers(final Annotation[] annos) {\n }",
"@Nonnull\n public com.microsoft.graph.requests.IosManagedAppProtectionCollectionRequestBuilder iosManagedAppProtections() {\n return new com.microsoft.graph.requests.IosManagedAppProtectionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(\"iosManagedAppProtections\"), getClient(), null);\n }",
"private void setCards( ArrayList<DevelopmentCard> developmentCards){\n //clear table\n for(Level l : Level.values()){\n for(ColorDevCard c : ColorDevCard.values()){\n dashBoard[l.ordinal()][c.ordinal()] = null;\n }\n }\n\n //load new cards\n for(DevelopmentCard card: developmentCards){\n dashBoard[card.getLevel().ordinal()][card.getColor().ordinal()] = card;\n }\n }",
"public void setContributors(List<Contributor> list) {\r\n this.contributors = list;\r\n }",
"void claim(@Nonnull Client client, @Nonnull List<Set<TCSResource<?>>> resourceSequence)\n throws IllegalArgumentException;",
"public void setQualifications(List<Qualification> qualifications) {\n this.qualifications = qualifications;\n }",
"public void setIdentityCard(String identityCard) {\n this.identityCard = identityCard;\n }",
"public void setProdHarvAsk(Map<String, List<Integer>> cards) {\n this.prodHarvAsk = cards;\n this.currentState = ClientStateName.ASK_PRODHARV_CARDS;\n setChanged();\n notifyObservers(currentState);\n }",
"@NoProxy\n public void setAvailableUids(final Set<String> val) {\n availableUids = val;\n }",
"public void setSmartCardAuthenticationSupported(java.lang.Boolean smartCardAuthenticationSupported) {\r\n this.smartCardAuthenticationSupported = smartCardAuthenticationSupported;\r\n }",
"public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setAllowableAccountsTypes(java.util.List param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }",
"public List<String> getSupportedCreditCardTypes() {\n return mSupportedCreditCardTypes;\n }",
"Set<String> listCapabilities();",
"public void setNamedInsured(entity.PolicyNamedInsured value);",
"public void setUserIdentityDataClaim(String claim, String value) {\n userIdentityDataMap.put(claim, value);\n if(StringUtils.isBlank(value)){\n return;\n } else if (UserIdentityDataStore.FAIL_LOGIN_ATTEMPTS.equalsIgnoreCase(claim)) {\n setFailAttempts(Integer.parseInt(value));\n } else if (UserIdentityDataStore.LAST_FAILED_LOGIN_ATTEMPT_TIME.equalsIgnoreCase(claim)) {\n setLastFailAttemptTime(Long.parseLong(value));\n } else if (UserIdentityDataStore.UNLOCKING_TIME.equalsIgnoreCase(claim)) {\n setUnlockTime(Long.parseLong(value));\n } else if (UserIdentityDataStore.ONE_TIME_PASSWORD.equalsIgnoreCase(claim)) {\n setOneTimeLogin(Boolean.parseBoolean(value));\n } else if (UserIdentityDataStore.PASSWORD_CHANGE_REQUIRED.equalsIgnoreCase(claim)) {\n setPasswordChangeRequired(Boolean.parseBoolean(value));\n } else if (UserIdentityDataStore.LAST_LOGON_TIME.equalsIgnoreCase(claim)) {\n setLastLogonTime(Long.parseLong(value));\n } else if (UserIdentityDataStore.ACCOUNT_LOCK.equalsIgnoreCase(claim)) {\n setAccountLock(Boolean.parseBoolean(value));\n }\n }",
"@Override\n public SortedBag<Card> initialClaimCards() {\n sendInstruction(MessageId.CARDS);\n return Serdes.CARD_BAG_SERDE.deserialize(receiveInstruction());\n }",
"void setSignatureProviderDetails(int signatureProviderDetails);",
"public void setClaim(boolean a){\n isClaimed= a;\n \n}",
"public void setContributingOrganizations(List<ContributingOrganization> list) {\r\n this.contributingOrganizations = list;\r\n }",
"void setIdentityTokenTypes(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSIdentityTokenTypeList identityTokenTypes);",
"@Override\n public void initializeBoard(List<DevelopmentCard> towersCardsList) {\n List<String> list = new ArrayList<>();\n towersCardsList.forEach((developmentCard -> list.add(developmentCard.getName())));\n try {\n if (getClientInterface() != null)\n getClientInterface().setTowersCards(list);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending tower cards error\");\n }\n }",
"public void setDeviceList(DeviceUserAuthorization[] deviceList) {\n this.deviceList = deviceList;\n }",
"void setProvider(modelProvidersI IDProvider);",
"public void setUserIdentities(List<ACUserIdentity> userIdentities) {\n this.userIdentities = userIdentities;\n }",
"public void setUserProfileWithoutCGList(List<BaseModelWithoutCG> modelList, HttpServletRequest req) {\r\n\t\tlogger.info(\"setUserProfileWithoutCGList companyid is :\");\r\n\t\tfor (BaseModelWithoutCG model : modelList) {\r\n\t\t\tsetUserProfileWithoutCG(model, req);\r\n\t\t}\r\n\t}",
"private List<String> initializeRequiredCapabilities() {\n // Required device capabilities\n\n String[] capabilityEntries = {V3PO_CAPABILITY, INTERFACES_CAPABILITY};\n return Arrays.asList(capabilityEntries);\n }",
"public void setHand(EnumPolicy[] hand)\n {\n this.hand.clear();\n EnumRegion region = getRegion();\n for (EnumPolicy policy : hand)\n {\n PolicyCard policyCard = PolicyCard.create(region, policy);\n// System.out.println(policyCard.toString());\n this.hand.add(policyCard);\n }\n }",
"private void cards() {\n newUserCard();\n editTypeCard();\n changePasswordCard();\n }",
"void setQualifier(List<Constraint> qualifier);",
"@Override\n\tpublic List<WechatUserInfo> acquireUserInfoBatch(List<String> openIdlist) {\n\t\treturn null;\n\t}",
"void setProvider(JainTcapProvider provider);",
"public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setAllowableAccounts(java.util.List param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }",
"@BeforeEach\n public void setup() {\n samhsaMatcher = new R4ClaimSamhsaMatcher(mockFissTransformer, mockMcsTransformer);\n when(mockFissTransformer.transform(any(), anyBoolean())).thenReturn(mockClaim);\n when(mockMcsTransformer.transform(any(), anyBoolean())).thenReturn(mockClaim);\n List<Claim.ProcedureComponent> procedureComponentList = new ArrayList<>();\n when(mockClaim.getProcedure()).thenReturn(procedureComponentList);\n }",
"public void addAccusationSelection(String cardName) {\n SuspectCard suspect = findSuspectCard(cardName);\n RoomCard room = findRoomCard(cardName);\n WeaponCard weapon = findWeaponCard(cardName);\n\n if (suspect != null) {\n this.accusationChoices.setSuspect(suspect);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their accusation.\");\n return;\n }\n if (room != null) {\n this.accusationChoices.setRoom(room);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their accusation.\");\n return;\n }\n if (weapon != null) {\n this.accusationChoices.setWeapon(weapon);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their accusation.\");\n return;\n }\n\n }",
"@GetMapping(\"/getclaims\")\n\tpublic @ResponseBody List<ExpenseClaim> getClaims()\n\t{\n\t\t/*\n\t\t * temporary list of claimS\n\t\t */\n\t\tList<ExpenseClaim> tempList=new ArrayList<ExpenseClaim>();\n\t\t\n\t\t//tempList=repository.findAll();\n\t\ttempList=service.getClaims();\n\t\treturn tempList;\n\t}",
"public void setUpCards() {\n this.setSuspectCardsAndPlayerPieces();\n this.setWeaponCardsAndPieces();\n this.setRoomCards();\n this.setUpDetectiveSlips();\n this.shuffleCards();\n this.setEnvelope();\n this.shuffleCards();\n this.gatherCards();\n this.giveOutCards();\n }",
"protected void setSpecializations(Set<AlfClass> specializations) \r\n\t{\tthis.specializations = specializations;\t}",
"public void setClaim(boolean a,AbstAnt ant){\n isClaimed= a;\n claimer= ant;\n}",
"public void setFamilyInfo(FamilyInfo[] familyInfo) {\n this.familyInfo = familyInfo;\n }",
"protected final void setSupportedLocales(Locale[] locales) {\n supportedLocales = locales;\n }",
"public void setExtencionMulti(ArrayList<String> listExtencion) {\n if (listExtencion.size() > 0) {\n for (String i : listExtencion) {\n switch (i) {\n case \"MPEG\": {\n frameSearch.getPnAdvanced().getChAtReading().setSelected(true);\n break;\n }\n case \"WMV\": {\n frameSearch.getPnAdvanced().getChAtSistema().setSelected(true);\n break;\n }\n case \"MP3\": {\n frameSearch.getPnAdvanced().getChAtComprimido().setSelected(true);\n break;\n }\n case \"MP4\": {\n frameSearch.getPnAdvanced().getChAtVideo().setSelected(true);\n break;\n }\n case \"ASF\": {\n frameSearch.getPnAdvanced().getChAtModify().setSelected(true);\n break;\n }\n case \"AVI\": {\n frameSearch.getPnAdvanced().getChAtHidden().setSelected(true);\n break;\n }\n case \"DIVX\": {\n frameSearch.getPnAdvanced().getChAtFolder().setSelected(true);\n\n break;\n }\n case \"FLV\": {\n frameSearch.getPnAdvanced().getChAtEncriptado().setSelected(true);\n break;\n }\n default: {\n break;\n }\n }\n }\n }\n }",
"public void setSelectPresentationValueList(java.lang.Object[] selectPresentationValueList);",
"List<Claim> getClaims(User user) throws ClaimManagerException;",
"public static void setList(CustomerList list){\n\t\tUserInterface.list = list;\n\t}",
"public interface ClaimManager {\n\n /**\n * Get all claims of a user.\n *\n * @param user The user to retrieve claims for\n * @return List of claims\n * @throws ClaimManagerException\n */\n List<Claim> getClaims(User user) throws ClaimManagerException;\n\n /**\n * Get all claims of a user for given URIs.\n *\n * @param user The user to retrieve claims for\n * @param claimURIs List of claimURIs to retrieve claims for\n * @return List of claims\n * @throws ClaimManagerException\n */\n List<Claim> getClaims(User user, List<String> claimURIs) throws ClaimManagerException;\n}",
"private void markConfidentialPropertiesUsingMetadata(IdentityProvider identityProvider)\n throws IdentityProviderManagementException {\n\n Map<String, List<String>> metaFedAuthConfigMap = createFedAuthConfidentialPropsMap();\n Arrays.asList(identityProvider.getFederatedAuthenticatorConfigs()).forEach(fedAuthConfig -> {\n List<String> secretProperties = metaFedAuthConfigMap.get(fedAuthConfig.getName());\n Arrays.asList(fedAuthConfig.getProperties()).forEach(prop -> {\n if (secretProperties != null && secretProperties.contains(prop.getName())) {\n prop.setConfidential(true);\n }\n });\n });\n\n Map<String, List<String>> metaProvisioningConfigMap = createProvisioningConfidentialPropsMap();\n Arrays.asList(identityProvider.getProvisioningConnectorConfigs()).forEach(provisioningConfig -> {\n List<String> secretProperties = metaProvisioningConfigMap.get(provisioningConfig.getName());\n if (provisioningConfig.getProvisioningProperties() != null) {\n Arrays.asList(provisioningConfig.getProvisioningProperties()).forEach(prop -> {\n if (prop != null) {\n if (secretProperties != null && secretProperties.contains(prop.getName())) {\n prop.setConfidential(true);\n }\n if (prop.getSubProperties().length > 0) {\n Arrays.asList(prop.getSubProperties()).forEach(subProp -> {\n if (secretProperties != null && secretProperties.contains(subProp.getName())) {\n subProp.setConfidential(true);\n }\n });\n }\n }\n });\n }\n });\n }",
"@Override\n public void setForms(List<FormInfo> forms) {\n this.forms = forms;\n }",
"@JsonSetter(\"didIds\")\r\n public void setDidIds (List<Integer> value) { \r\n this.didIds = value;\r\n }",
"public void setList() \n\t\t{\n\t\t\tVector<Course> items = client.ProfessorCourseList(prof.getID());\n\t\t\tmodel.removeAllElements();\n\t\t\tif(items == null)return;\n\t\t\tString s;\n\t\t\tfor(int i = 0; i < items.size(); i++)\n\t\t\t{\n\t\t\t\ts = items.get(i).getName();\n\t\t\t\tmodel.addElement(items.get(i));\n\t\t\t}\n\t\t}",
"public Vector<Claim> getClaims() {\r\n \t\tVector<Claim> ourClaims = new Vector<Claim>();\r\n \t\tIterator argI;\r\n \r\n \t\targI = this.getAllArguments().iterator();\r\n \t\twhile (argI.hasNext()) {\r\n \t\t\tClaim nextClaim = ((Argument) argI.next()).getClaim();\r\n \t\t\tif (nextClaim != null) {\r\n \t\t\t\tourClaims.add(nextClaim);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn ourClaims;\r\n \t}",
"public void setencodedCard(String value) {\r\n setAttributeInternal(ENCODEDCARD, value);\r\n }",
"public void setSponsoringOrganizations(List<SponsoringOrganization> list) {\r\n this.sponsoringOrganizations = list;\r\n }",
"public void setDevicesForAttributes(\n @NonNull AudioAttributes attributes, @NonNull ImmutableList<Object> devices) {\n devicesForAttributes.put(attributes, devices);\n }",
"private void setCommunityChestCards()\n {\n m_communityChest.add(new Card(\"Advance to St. Charles Place If you pass Go, collect $200\", 0, 1, 11));\n m_communityChest.add(new Card(\"Bank error in your favor, Collect $200\", 200, 0));\n m_communityChest.add(new Card(\"Doctor's fees Pay $50\", -50, 0));\n m_communityChest.add(new Card(\"Get out of Jail free card\", 0, 2));\n m_communityChest.add(new Card(\"Go directly to Jail. Do not pass Go, do not collect $200\", 0, 1, 30));\n m_communityChest.add(new Card(\"Advance token to Reading Railroad\", 0, 1, 5));\n m_communityChest.add(new Card(\"Life insurance matures, Collect $100 \", 100, 0));\n m_communityChest.add(new Card(\"You won second prize in a Beauty contest, Collect $10\", 10, 0));\n m_communityChest.add(new Card(\"From sale of stock you get $50\", 50, 0));\n m_communityChest.add(new Card(\"You have won a crossword competition, Collect $100\", 100, 0));\n }",
"public void setCardList(ArrayList<DestinationCard> list) {\n destinationCards = list;\n }",
"public void addQualifierKeysToSet(com.webobjects.foundation.NSMutableSet qualKeys){\n return; //TODO codavaj!!\n }",
"public void setCurrentCards(ArrayList<Card> cardsFromDealer) {\r\n this.currentCards = cardsFromDealer;\r\n }",
"@JsonSetter(\"media\")\r\n public void setMedia(List<String> media) {\r\n this.media = media;\r\n }",
"void setOsUSet(Set<String> osUs);",
"@ZAttr(id=1138)\n public Map<String,Object> setPrefMailTrustedSenderList(String[] zimbraPrefMailTrustedSenderList, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraPrefMailTrustedSenderList, zimbraPrefMailTrustedSenderList);\n return attrs;\n }",
"public void setUsers(List<User> users)\r\n/* */ {\r\n/* 221 */ this.users = users;\r\n/* */ }"
] | [
"0.6402417",
"0.6091309",
"0.5413259",
"0.5401434",
"0.53728163",
"0.514237",
"0.5137201",
"0.51041144",
"0.5071765",
"0.5024006",
"0.50028354",
"0.49687085",
"0.49052474",
"0.48841482",
"0.48790646",
"0.4876324",
"0.4874385",
"0.48657542",
"0.48211017",
"0.48185325",
"0.48065007",
"0.4805661",
"0.48033756",
"0.4801028",
"0.47850865",
"0.47556084",
"0.47412795",
"0.47349498",
"0.47250313",
"0.4657711",
"0.46576643",
"0.4654619",
"0.4650572",
"0.46346855",
"0.462576",
"0.46145043",
"0.46092668",
"0.45836258",
"0.45801455",
"0.45769233",
"0.4572925",
"0.45687905",
"0.45591083",
"0.45379752",
"0.45265198",
"0.45197076",
"0.451013",
"0.45078292",
"0.44968888",
"0.44944715",
"0.44920498",
"0.44895566",
"0.44865802",
"0.44835162",
"0.44747657",
"0.4474346",
"0.4463395",
"0.4462817",
"0.44511503",
"0.442311",
"0.4423046",
"0.44225556",
"0.44145477",
"0.4414392",
"0.44143626",
"0.44084442",
"0.44037032",
"0.4398112",
"0.43973243",
"0.43866223",
"0.43784904",
"0.437827",
"0.43774965",
"0.43767732",
"0.4371372",
"0.43709135",
"0.43622935",
"0.4361716",
"0.435944",
"0.43584758",
"0.43525088",
"0.43522152",
"0.43472302",
"0.4345847",
"0.43410298",
"0.43391636",
"0.4334316",
"0.43319395",
"0.43269327",
"0.43232533",
"0.43175375",
"0.43143335",
"0.43115193",
"0.4289672",
"0.4280508",
"0.42794576",
"0.42794567",
"0.42696202",
"0.42693612",
"0.42567638"
] | 0.7767166 | 0 |
Sets the card data source | public void setCardDataSources(Vector<DataSource> sources) {
cardDataSources = sources;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDatasource(DataSource source) {\n datasource = source;\n }",
"static public void setDataSource(DataSource source) {\n ds = source;\n }",
"public void setDataSource(DataSource dataSource) {\n this.dataSource = dataSource;\n }",
"public void setDataSource(DataSource dataSource) {\n this.dataSource = dataSource;\n }",
"public void setDataSource(DataSource dataSource) {\n this.dataSource = dataSource;\n }",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"@Override\n public void setDataSource(DataSource dataSource) {\n }",
"public void setDataSource( DataSource dataSource) {\n\t\tthis.dataSource = dataSource;\n\t}",
"public void setDatasource(DataSource datasource) {\n this.datasource = datasource;\n }",
"@Override\n\tpublic void setDataSource(DataSource dataSource) {\n\t}",
"public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource;\n\t}",
"public synchronized void setDataSource(String dataSource){\n\t\tthis.dataSource=dataSource;\n\t}",
"public void setDataSource(BasicDataSource dataSource) {\n this.dataSource = dataSource;\n }",
"public void setSource(String source);",
"public void setDatasource( String ds )\n {\n datasource = ds;\n }",
"public void setSource (String source);",
"public void setDataSource(StarObjectClass self,String path){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\ttry{\r\n \t\t\tmediaplayer.setDataSource(path);\r\n \t\t}catch(IOException e){\r\n \t\t\tSrvGroup._Print(e.toString());\r\n \t\t}\r\n \t}",
"public void setDataSource(DataSource dataSource)\n\t{\n\t\tLOGGER.info(\"Setting DataSource object\");\n\t\tthis.dataSource = dataSource;\n\t}",
"public void setDatasource(String val)\r\n\t{\r\n\t\t_dataSource = val;\r\n\t}",
"void setCard(Card card) {\n this.card = card;\n }",
"public void setDataSource(String newValue) {\n String oldValue = this.dataSource;\n this.dataSource = newValue;\n firePropertyChange(DATA_SOURCE, oldValue, newValue);\n }",
"public void setSource(String source) {\n _source = source;\n }",
"public void setDataSource(Uri uri) throws IOException {\n if (Objects.equals(mMediaSourceUri, uri)) {\n return;\n }\n mMediaSourceUri = uri;\n prepareMediaForPlaying();\n }",
"@Override\n public void setDataSource(@Qualifier(\"dataSource\") DataSource dataSource) {\n super.setDataSource(dataSource);\n }",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"public void setDataSource1(StarObjectClass self,StarObjectClass fd){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\tStarObjectClass assertfileclass = Service._GetObject(\"AssetFileDescriptorClass\");\r\n \t\tif( assertfileclass._IsInst(fd) == true ){\r\n \t\t\tStarCLEAssetFileDescriptor starfd = (StarCLEAssetFileDescriptor)WrapAndroidClass.GetAndroidObject(fd,\"AndroidObject\");\r\n \t\t\tif( starfd.assetfiledescriptor == null ){\r\n \t\t\t\tSrvGroup._Print(\"input fd is not init\");\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\ttry{\r\n \t\t\t\tmediaplayer.setDataSource(starfd.assetfiledescriptor.getFileDescriptor());\r\n \t\t\t}catch(IOException e){\r\n \t\t\t\tSrvGroup._Print(e.toString());\r\n \t\t\t}\r\n \t\t}else\r\n \t\t\tSrvGroup._Print(\"input fd is invalid\");\r\n \t}",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public void setDataSources(ArrayList dataSources) {\n this.dataSources = dataSources;\n }",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public void setDataSrc(String dataSrc) {\n this.dataSrc = dataSrc == null ? null : dataSrc.trim();\n }",
"public void setDataSource(DataSource ds) throws SQLException {\n\t\tthis.ds = ds;\n\t\tthis.con = ds.getConnection();\n\t}",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setDestOptionCards(List<DestCard> cards, String playerID){\n if (playerID.equals(_user.get_playerId())){\n _currentGame.setDestOptionCards(cards);\n\n setChanged();\n notifyObservers();\n }\n }",
"public void setContent(Source source) {\n this.content = source;\n }",
"public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}",
"void setcards (String[] cards) {\n\t\tmycards = cards;\n\t}",
"public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource; // Sets the current object this of the class's attribute dataSource eqal to the object of datasource\n\t\tthis.jdbcTemplateObject = new JdbcTemplate(dataSource); // Instantiation of the JDBCTemplateObject class which takes in the object of datasource to set up data synchronization\n\t\t\n\t}",
"public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource;\n\t\tthis.jdbcTemplate = new JdbcTemplate(dataSource);\n\t}",
"public void setSourceDescription(DataSourceDescription sourceDescription) {\n\t\tthis.sourceDescription = sourceDescription;\n\t}",
"public void setCards(Card[] cards) {\r\n this.cards = cards;\r\n }",
"public void setCards(List<T> cards) {\n\t\tthis.cards = cards;\n\t}",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}",
"public void setSourceDB(String sourceDB) {\n this.sourceDB = sourceDB;\n }",
"public void setIdCard(String idCard) {\n\t\tthis.idCard = idCard;\n\t}",
"@Override\n public String getDataSource()\n {\n return dataSource;\n }",
"public String getDataSource() {\n return dataSource;\n }",
"public String getDataSource() {\n return dataSource;\n }",
"private void setCard(@NonNull Card card) {\n Debug.trace(\"CardDetails\", card.toString());\n etCardNumber.setText(card.getCardNumber());\n etCardHolderName.setText(card.getCardHolderName());\n// etCardExpiryDate.removeTextListener();\n etCardExpiryDate.setText(DateFormatUtils.stringToStringConversion(card.getExpirationDate(), \"MM/yy\", \"MM/yyyy\"));\n// etCardExpiryDate.addDateSlash(etCardExpiryDate.getEditableText());\n// etCardExpiryDate.addTextListener();\n }",
"@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);",
"public ContextMenuOptions setDataSource(DataSourceOptions dataSource) {\n this.dataSource = dataSource.toHashMap();\n return this;\n }",
"public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }",
"public void setDataSource2(StarObjectClass self,StarObjectClass fd, int offset, int length){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn;\r\n \t\tStarObjectClass assertfileclass = Service._GetObject(\"AssetFileDescriptorClass\");\r\n \t\tif( assertfileclass._IsInst(fd) == true ){\r\n \t\t\tStarCLEAssetFileDescriptor starfd = (StarCLEAssetFileDescriptor)WrapAndroidClass.GetAndroidObject(fd,\"AndroidObject\");\r\n \t\t\tif( starfd.assetfiledescriptor == null ){\r\n \t\t\t\tSrvGroup._Print(\"input fd is not init\");\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\ttry{\r\n \t\t\t\tmediaplayer.setDataSource(starfd.assetfiledescriptor.getFileDescriptor(),offset,length);\r\n \t\t\t}catch(IOException e){\r\n \t\t\t\tSrvGroup._Print(e.toString());\r\n \t\t\t}\r\n \t\t}else\r\n \t\t\tSrvGroup._Print(\"input fd is invalid\");\r\n \t}",
"public void setCardSelected(Card cardSelected) {\r\n this.cardSelected = cardSelected;\r\n }",
"@Override\n\tprotected void initDataSource() {\n\t}",
"@Override\r\n protected boolean isUseDataSource() {\r\n return true;\r\n }",
"public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }",
"public Builder setSource(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n source_ = value;\n onChanged();\n return this;\n }",
"public void setSource(Object o) {\n\t\tsource = o;\n\t}",
"public void setDisplaysource(java.lang.String displaysource)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DISPLAYSOURCE$10);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DISPLAYSOURCE$10);\r\n }\r\n target.setStringValue(displaysource);\r\n }\r\n }",
"public void setSource(Mat source) {\n this.source = source;\n }",
"@Autowired(required = false)\n\tpublic void setDataSource(DataSource dataSource) {\n\t\tsimpleJdbcTemplate = new JdbcTemplate(dataSource);\n\t\tsimpleJdbcInsert = new SimpleJdbcInsert(dataSource);\n\t\tnamedParameterJdbcOperations = new NamedParameterJdbcTemplate(dataSource);\n\t\tthis.dialect = getDialect(dataSource);\n\t}",
"public void setXADataSource(XADataSource xaDataSource)\n throws SQLException\n {\n DriverConfig driver;\n \n if (_driverList.size() > 0)\n driver = _driverList.get(0);\n else\n driver = createDriver();\n \n driver.setXADataSource(xaDataSource);\n }",
"public void setSources (LSPSource[] sources) {\r\n this.sources = sources;\r\n }",
"@ProgrammaticProperty\n public void setSeparateTestSetDataSource(String spec) {\n m_separateTestSetDataSource = spec;\n }",
"@Override\n protected void openDataSource() {\n synchronized (mLock) {\n logger.d(\"openDataSource(), content: \" + (mContentUri != null ? mContentUri : mContentFileDescriptor) + \", current state: \" + mCurrentState);\n\n checkReleased();\n\n if (!isContentSpecified()) {\n logger.e(\"can't open data source: content is not specified\");\n return;\n }\n\n if (!isPreparing()) {\n\n setCurrentState(State.PREPARING);\n\n if (mContentUri != null) {\n\n String contentType = HttpURLConnection.guessContentTypeFromName(mContentUri.toString());\n logger.i(\"uri content type: \" + contentType);\n\n if (!mNoCheckMediaContentType && TextUtils.isEmpty(contentType)) {\n logger.e(\"empty uri content type\");\n onError(new MediaError(MediaError.PREPARE_EMPTY_CONTENT_TYPE, MediaError.UNKNOWN));\n return;\n }\n }\n\n // we shouldn't clear the target state, because somebody might have\n // called start() previously\n suspend();\n\n if (!requestAudioFocus()) {\n logger.e(\"failed to request audio focus\");\n }\n\n boolean result;\n final long startPreparingTime = System.currentTimeMillis();\n\n try {\n mMediaPlayer = new MediaPlayer();\n\n mMediaPlayer.setOnPreparedListener(mPreparedListener);\n mMediaPlayer.setOnCompletionListener(mCompletionListener);\n mMediaPlayer.setOnErrorListener(mErrorListener);\n mMediaPlayer.setOnInfoListener(mInfoListener);\n mMediaPlayer.setOnBufferingUpdateListener(mBufferingUpdateListener);\n\n mCurrentBufferPercentage = 0;\n\n if (mContentUri != null) {\n logger.d(\"content data source: \" + mContentUri);\n mMediaPlayer.setDataSource(mContext, mContentUri, mContentHeaders);\n } else if (mContentFileDescriptor != null) {\n logger.d(\"content data source: \" + mContentFileDescriptor);\n mMediaPlayer.setDataSource(mContentFileDescriptor.getFileDescriptor(), mContentFileDescriptor.getStartOffset(), mContentFileDescriptor.getLength());\n } else {\n throw new AssertionError(\"content data source not specified\");\n }\n\n if (mPlayMode == PlayMode.AUDIO) {\n\n mMediaPlayer.setOnVideoSizeChangedListener(null);\n mMediaPlayer.setDisplay(null);\n\n } else if (mPlayMode == PlayMode.VIDEO) {\n\n if (mVideoView == null || !isSurfaceCreated()) {\n throw new IllegalStateException(\"surface was not created\");\n }\n\n mMediaPlayer.setOnVideoSizeChangedListener(mVideoSizeChangedListener);\n mMediaPlayer.setDisplay(mVideoView.getHolder());\n\n } else {\n throw new IllegalStateException(\"unsupported \" + PlayMode.class.getSimpleName() + \": \" + mPlayMode);\n }\n\n mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n mMediaPlayer.setScreenOnWhilePlaying(mPlayMode == PlayMode.VIDEO);\n mMediaPlayer.setLooping(mLoopWhenPreparing);\n\n beforeOpenDataSource();\n\n try {\n result = submitOnExecutor(() -> {\n mMediaPlayer.prepareAsync();\n return true;\n }).get(EXECUTOR_CALL_TIMEOUT_S, TimeUnit.SECONDS);\n\n } catch (Exception e) {\n e.printStackTrace();\n logger.e(\"an Exception occurred during get()\", e);\n throw new RuntimeException(e);\n }\n\n } catch (IOException | IllegalArgumentException | IllegalStateException ex) {\n ex.printStackTrace();\n logger.e(\"Unable to open content: \" + (mContentUri != null ? mContentUri : mContentFileDescriptor), ex);\n result = false;\n }\n\n if (result) {\n logger.d(\"media player preparing start success / time: \" + (System.currentTimeMillis() - startPreparingTime) + \" ms\");\n // we don't set the target state here either, but preserve the\n // target state that was there before.\n toggleMediaControllerEnabled();\n scheduleResetCallback();\n } else {\n logger.e(\"media player preparing start failed / time: \" + (System.currentTimeMillis() - startPreparingTime) + \" ms\");\n onError(new MediaError(MediaError.PREPARE_UNKNOWN, MediaError.UNKNOWN));\n }\n } else {\n logger.w(\"can't open data source: currently is preparing\");\n }\n }\n }",
"public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }",
"public void setIdcard(String idcard) {\r\n this.idcard = idcard;\r\n }",
"public Builder setSrc(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n src_ = value;\n onChanged();\n return this;\n }",
"public void setCardList(ArrayList<DestinationCard> list) {\n destinationCards = list;\n }",
"public void setDataSource(ResultSet rs) {\n try {\n // clear data arrays\n data.clear();\n columnNames.clear();\n columnTypes.clear();\n // get info about columns types and names\n ResultSetMetaData rsmd = rs.getMetaData();\n int columnCount = rsmd.getColumnCount();\n for (int i = 0; i < columnCount; i++) {\n // column name\n columnNames.add(rsmd.getColumnName(i + 1));\n // column type\n Class type = Class.forName(rsmd.getColumnClassName(i + 1));\n columnTypes.add(type);\n }\n // report about changes\n fireTableStructureChanged();\n // get data\n while (rs.next()) {\n // saving cells of row\n ArrayList row = new ArrayList();\n for (int i = 0; i < columnCount; i++) {\n if (columnTypes.get(i) == String.class)\n row.add(rs.getString(i + 1));\n else\n row.add(rs.getObject(i + 1));\n }\n synchronized (data) {\n data.add(row);\n // report about adding row\n fireTableRowsInserted(data.size() - 1, data.size() - 1);\n }\n }\n } catch (Exception e) {\n System.err.println(\"Can't get data from database\");\n e.printStackTrace();\n }\n\n }",
"public void setCardID(java.lang.String param) {\r\n localCardIDTracker = param != null;\r\n\r\n this.localCardID = param;\r\n }",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"public void setSource(char[] source) {\n\t\tthis.source = source;\n\t}",
"public void setDataSourceName(String dataSourceName)\n {\n this.dataSourceName = dataSourceName;\n }",
"public void setSource(Byte source) {\r\n this.source = source;\r\n }",
"protected void setExperienceSources(Set<ExperienceType> experienceSources) {\r\n\t\tthis.experienceSources = experienceSources;\r\n\t}",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"public void setDataSourceUri(String dataSourceUri) {\n\t\tthis.dataSourceUri = dataSourceUri;\n\t}",
"void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"public void setDatasource( int newValue ) {\n __setCache(\"datasource\", new Integer(newValue));\n }",
"public void setDataSourceName(String paramDSName) {\n\tstrDSName = paramDSName;\n }",
"public void setSourceImageUrl(java.lang.String sourceImageUrl) {\n _courseImage.setSourceImageUrl(sourceImageUrl);\n }",
"public Builder setSource(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n source_ = value;\n onChanged();\n return this;\n }",
"public void setSourceDescription(SourceDescription[] userdesclist) {\n if (userdesclist != null) {\n SourceDescription currdesc;\n String cname = null;\n for (int i = 0; i < userdesclist.length; i++) {\n currdesc = userdesclist[i];\n if (currdesc != null && currdesc.getType() == 1) {\n cname = userdesclist[i].getDescription();\n break;\n }\n }\n String sourceinfocname = null;\n if (this.sourceInfo != null) {\n sourceinfocname = this.sourceInfo.getCNAME();\n }\n if (!(this.sourceInfo == null || cname == null || cname.equals(sourceinfocname))) {\n this.sourceInfo.removeSSRC(this);\n this.sourceInfo = null;\n }\n if (this.sourceInfo == null) {\n this.sourceInfo = this.cache.sourceInfoCache.get(cname, true);\n this.sourceInfo.addSSRC(this);\n }\n for (SourceDescription currdesc2 : userdesclist) {\n if (currdesc2 != null) {\n switch (currdesc2.getType()) {\n case 2:\n if (this.name != null) {\n this.name.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.name = new SourceDescription(2, currdesc2.getDescription(), 0, false);\n break;\n }\n case 3:\n if (this.email != null) {\n this.email.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.email = new SourceDescription(3, currdesc2.getDescription(), 0, false);\n break;\n }\n case 4:\n if (this.phone != null) {\n this.phone.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.phone = new SourceDescription(4, currdesc2.getDescription(), 0, false);\n break;\n }\n case 5:\n if (this.loc != null) {\n this.loc.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.loc = new SourceDescription(5, currdesc2.getDescription(), 0, false);\n break;\n }\n case 6:\n if (this.tool != null) {\n this.tool.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.tool = new SourceDescription(6, currdesc2.getDescription(), 0, false);\n break;\n }\n case 7:\n if (this.note != null) {\n this.note.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.note = new SourceDescription(7, currdesc2.getDescription(), 0, false);\n break;\n }\n case 8:\n if (this.priv != null) {\n this.priv.setDescription(currdesc2.getDescription());\n break;\n } else {\n this.priv = new SourceDescription(8, currdesc2.getDescription(), 0, false);\n break;\n }\n default:\n break;\n }\n }\n }\n }\n }",
"private void setData() {\n scanData = new ScanData();\n imageFile = new File(imageFileUri);\n\n if (!TextUtils.isEmpty(panAadharCardDetail.scan_image)) {\n Glide.with(this)\n .asBitmap()\n .load(panAadharCardDetail.scan_image)\n .into(getGlideTarget());\n ivUserProfile.setVisibility(View.VISIBLE);\n } else {\n ivUserProfile.setVisibility(View.GONE);\n }\n if (!TextUtils.isEmpty(panAadharCardDetail.card)) {\n tvDocumentType.setText(panAadharCardDetail.card);\n scanData.setDocumentType(panAadharCardDetail.card);\n }\n if (!TextUtils.isEmpty(panAadharCardDetail.name)) {\n tvFirstName.setText(panAadharCardDetail.name);\n scanData.setFirstName(panAadharCardDetail.name);\n }\n if (!TextUtils.isEmpty(panAadharCardDetail.date_of_birth)) {\n tvDOB.setText(panAadharCardDetail.date_of_birth);\n scanData.setDateOfBirth(panAadharCardDetail.date_of_birth);\n }\n if (!TextUtils.isEmpty(panAadharCardDetail.sex)) {\n llGender.setVisibility(View.VISIBLE);\n tvSex.setText(panAadharCardDetail.sex);\n scanData.setGender(panAadharCardDetail.sex);\n } else {\n llGender.setVisibility(View.GONE);\n }\n tvCountry.setText(getString(R.string.india));\n\n llAddress.setVisibility(View.GONE);\n\n if (card_type == 2) { //set pan card data\n llLastName.setVisibility(View.VISIBLE);\n Glide.with(this).load(imageFile).into(ivScanImage);\n tvDocNoTitle.setText(getString(R.string.pan_card_no));\n if (!TextUtils.isEmpty(panAadharCardDetail.pan_card_no)) {\n tvDocNo.setText(panAadharCardDetail.pan_card_no);\n scanData.setPassportNo(panAadharCardDetail.pan_card_no);\n }\n if (!TextUtils.isEmpty(panAadharCardDetail.second_name)) {\n tvLastName.setText(panAadharCardDetail.second_name);\n scanData.setLastName(panAadharCardDetail.second_name);\n }\n } else if (card_type == 3) { //set Aadhar card data\n llLastName.setVisibility(View.GONE);\n Glide.with(this).load(imageFile).into(ivScanImage);\n tvDocNoTitle.setText(getString(R.string.aadhaar_card_no));\n if (!TextUtils.isEmpty(panAadharCardDetail.aadhar_card_no)) {\n tvDocNo.setText(panAadharCardDetail.aadhar_card_no);\n scanData.setPassportNo(panAadharCardDetail.aadhar_card_no);\n }\n if (!TextUtils.isEmpty(panAadharCardDetail.address) && panAadharCardDetail.card.contains(\"back\")) {\n llAddress.setVisibility(View.VISIBLE);\n llLastName.setVisibility(View.GONE);\n llFirstName.setVisibility(View.GONE);\n llDOB.setVisibility(View.GONE);\n llDocumentNo.setVisibility(View.GONE);\n llGender.setVisibility(View.GONE);\n ivUserProfile.setVisibility(View.GONE);\n tvAddress.setText(panAadharCardDetail.address.replace(\"Address: \", \"\"));\n scanData.setAddress(panAadharCardDetail.address.replace(\"Address: \", \"\"));\n }\n }\n\n\n }",
"public void setIdcard(String idcard) {\n\t\tthis.idcard = idcard;\n\t}",
"void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"private void set_dnd() {\n \t\tcardDragController = new PickupDragController(RootPanel.get(), false);\n \t\tcardDragController.addDragHandler(new CardHandler());\n \t\tcardDropPanel = new VerticalPanelDropController(getView().getCards_panel());\n \n \t\t// TODO v�rifier si il y a des lag en utilisant l'application sur le\n \t\t// serveur\n \t\t// mettre en commentaire ces deux lignes\n \n \t\t// VerticalPanelDropController dropController = new\n \t\t// VerticalPanelDropController(getView().getDrop_cards_panel());\n \t\t// cardDragController.registerDropController(dropController);\n \n \t\t// dragController.makeDraggable(getView().getDndImage());\n \n \t\t// AbsolutePositionDropController sp = new\n \t\t// AbsolutePositionDropController(\n \t\t// getView().getDropPanel());\n \t\t// IndexedDropController dropController = new\n \t\t// IndexedDropController(getView().getDropPanel());\n \n \t\t// dragController.registerDropController(sp);\n \t\t// dragController.makeDraggable(getView().getMainLabel());\n \t\t// dragController.makeDraggable(getView().getHtml_panel());\n \t\t// for (CardPresenter c : allCards)\n \t\t// dragController.makeDraggable(c.getView().getWholePanel());\n \n \t}",
"private void setupSource() {\n source = new GeoJsonSource( geojsonSourceId, featureCollection );\n map.addSource( source );\n }",
"@Override\n\tpublic void setCard(java.lang.String card) {\n\t\t_esfShooterAffiliationChrono.setCard(card);\n\t}",
"public void setSource(AppSyncSource source) {\n appSyncSource = source;\n }"
] | [
"0.68622756",
"0.67571306",
"0.66395974",
"0.66395974",
"0.66395974",
"0.66346586",
"0.66346586",
"0.66346586",
"0.66346586",
"0.66346586",
"0.66346586",
"0.65894055",
"0.65894055",
"0.65894055",
"0.6537887",
"0.65200293",
"0.6501842",
"0.64986867",
"0.64652836",
"0.6320249",
"0.62759763",
"0.6238709",
"0.6234387",
"0.6167031",
"0.61527723",
"0.6133271",
"0.6048497",
"0.60415334",
"0.59645295",
"0.59578174",
"0.59483653",
"0.58951426",
"0.5866263",
"0.5844911",
"0.5835567",
"0.580749",
"0.58054006",
"0.5761613",
"0.5759779",
"0.5759779",
"0.5744362",
"0.5674464",
"0.5672522",
"0.56644297",
"0.5660893",
"0.56372833",
"0.5633604",
"0.56333965",
"0.55994713",
"0.55759495",
"0.5574516",
"0.5556846",
"0.5516554",
"0.5497677",
"0.5479245",
"0.5463999",
"0.5457086",
"0.54487574",
"0.5433997",
"0.5431437",
"0.5401149",
"0.5399006",
"0.53908056",
"0.5388502",
"0.5384607",
"0.5384607",
"0.5371611",
"0.5367837",
"0.53628236",
"0.536188",
"0.53591657",
"0.53512335",
"0.5346647",
"0.53376776",
"0.5313991",
"0.53085774",
"0.53026646",
"0.5290536",
"0.5283895",
"0.52836734",
"0.5282155",
"0.52805173",
"0.52779377",
"0.5272409",
"0.5270835",
"0.52660185",
"0.5263255",
"0.5262217",
"0.52425987",
"0.5239304",
"0.52318424",
"0.5227533",
"0.5222769",
"0.521689",
"0.52152264",
"0.5211748",
"0.5211118",
"0.5206454",
"0.52061826",
"0.5198489"
] | 0.7532502 | 0 |
Gets the user sequence number. | @Column(name = "USER_SEQ_NBR")
public Long getUserSeqNbr()
{
return userSeqNbr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getUserSeq() {\n return sessionData.getUserSeq();\n }",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"@Id\n\t@Column(name = \"USER_SEQ_NBR\", length = 20)\n\t@XmlElement(nillable=true, required=true)\n\tpublic Long getUserSeqNbr() \n\t{\n\t\treturn userSeqNbr;\n\t}",
"public long sequenceNumber() {\n return sequenceNumber;\n }",
"public long getSequenceNum() {\n return sequenceNum;\n }",
"public int getSequenceNum() {\n\t\treturn sequenceNumber;\n\t}",
"@Field(3) \n\tpublic int SequenceNo() {\n\t\treturn this.io.getIntField(this, 3);\n\t}",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public String getUserNum() {\n return userNum;\n }",
"public long getSequenceNo() {\n\treturn sequenceNo;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"public long getSeqnum() {\n return seqnum_;\n }",
"long getSequenceNumber();",
"long getSequenceNum() {\n return sequenceNum;\n }",
"int getSequenceNumber();",
"public long getSequenceNumber() {\n return sequenceNumber;\n }",
"public java.lang.Integer getSeqNo () {\n\t\treturn seqNo;\n\t}",
"public String getUsernumber() {\n return usernumber;\n }",
"public long getSequenceId()\n {\n return sequence_id_;\n }",
"private String sequenceNumberGenerator() {\n\t\tint sequenceId = 0;\n\t\tRid entity = null;\n\t\ttry {\n\t\t\tentity = ridRepository.findLastRid();\n\t\t} catch (DataAccessException | DataAccessLayerException e) {\n\t\t\tthrow new RidException(RidGeneratorExceptionConstant.RID_FETCH_EXCEPTION.getErrorCode(),\n\t\t\t\t\tRidGeneratorExceptionConstant.RID_FETCH_EXCEPTION.errorMessage, e);\n\t\t}\n\t\ttry {\n\t\t\tif (entity == null) {\n\t\t\t\tentity = new Rid();\n\t\t\t\tsequenceId = sequenceInitialValue;\n\t\t\t\tentity.setCurrentSequenceNo(sequenceInitialValue);\n\t\t\t\tridRepository.save(entity);\n\t\t\t} else {\n\t\t\t\tif (entity.getCurrentSequenceNo() == sequenceEndvalue) {\n\t\t\t\t\tsequenceId = sequenceInitialValue;\n\t\t\t\t\tridRepository.updateRid(sequenceInitialValue, entity.getCurrentSequenceNo());\n\t\t\t\t} else {\n\t\t\t\t\tsequenceId = entity.getCurrentSequenceNo() + 1;\n\t\t\t\t\tridRepository.updateRid(sequenceId, entity.getCurrentSequenceNo());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (DataAccessException | DataAccessLayerException e) {\n\t\t\tthrow new RidException(RidGeneratorExceptionConstant.RID_UPDATE_EXCEPTION.getErrorCode(),\n\t\t\t\t\tRidGeneratorExceptionConstant.RID_UPDATE_EXCEPTION.errorMessage, e);\n\t\t}\n\t\treturn String.format(sequenceFormat, sequenceId);\n\t}",
"public Number getSequenceNo() {\n return (Number)getAttributeInternal(SEQUENCENO);\n }",
"public int getSequenceNumber() {\r\n return sequenceNumber;\r\n }",
"public String getUserno() {\r\n return userno;\r\n }",
"public long getSequenceNumber() {\n return sequenceNumber_;\n }",
"public int getSeqNo();",
"public int getSeqNo();",
"Long getTurbineUserSequence() throws AAException;",
"public int getSequenceNumber() {\n return sequenceNumber;\n }",
"long getOriginseqnum();",
"public long getSeqNo() {\n return seqNo;\n }",
"public long getSequenceNumber();",
"@Override\n \tpublic long getLatestSequenceNumber() {\n \t\tsharedLock.lock();\n \t\ttry {\n \t\t\treturn sequenceNumber;\n \t\t} finally {\n \t\t\tsharedLock.unlock();\n \t\t}\n \t}",
"public String getNumUserid() {\n return numUserid;\n }",
"public long getSequenceNumber() {\n return sequenceNumber_;\n }",
"public int getSequenceNumber(){\n return sequenceNumber;\n }",
"public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }",
"public int getSequenceNumber() {\r\n\t\treturn sequenceNumber;\r\n\t}",
"private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}",
"public INT getSequenceNumber() { return _sequenceNumber; }",
"public int getSequence() {\n return sequence;\n }",
"public int getSequenceNumber();",
"public Integer getSequence()\n {\n return sequence;\n }",
"public int getSequenceNumber() {\n return this.sequenceNumber;\n }",
"public int getSeqNbr() {\n return seqNbr;\n }",
"public Integer getSequence() {\n return sequence;\n }",
"public int getTakeupSeqNo() {\n\t\treturn takeupSeqNo;\n\t}",
"long getNextSequenceNumber();",
"public int getSeq() {\n return seq_;\n }",
"public int getSeq() {\n return seq_;\n }",
"public int getSequenceNumber() {\n return mSequenceGenerator.incrementAndGet();\n }",
"public int getSequenceNumber() {\n\t\treturn fSequenceNumber;\n\t}",
"static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }",
"public int getSeq() {\n return seq_;\n }",
"public int getSeq() {\n return seq_;\n }",
"@Id\n\t@Column(name = \"PROXYUSER_SEQ_NBR\", length = 20)\n\t@XmlElement(nillable=true, required=true)\n\tpublic Long getProxyUserSeqNbr() \n\t{\n\t\treturn proxyUserSeqNbr;\n\t}",
"public byte get_seqnum() {\n return (byte)getSIntElement(offsetBits_seqnum(), 8);\n }",
"private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}",
"public Integer getACTIVITY_SEQ_ID() {\n return ACTIVITY_SEQ_ID;\n }",
"public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }",
"public long getSequence() {\n\t\tif (order != null){\n\t\t\treturn order.getSequence();\n\t\t}\n\t\treturn sequence;\n\t}",
"public long getStartSeqNum() {\n return theStartSeqNum;\n }",
"@MavlinkFieldInfo(\n position = 1,\n unitSize = 2,\n description = \"sequence number (starting with 0 on every transmission)\"\n )\n public final int seqnr() {\n return this.seqnr;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId getSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().find_element_user(SEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public long getUserID() {\n //userID++;\n return userID++;\n }",
"long getSeq() {\n return seq;\n }",
"public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}",
"public long getOriginseqnum() {\n return originseqnum_;\n }",
"public Integer getSeq() {\n return seq;\n }",
"public Integer getSeq() {\n return seq;\n }",
"public Integer getSeq() {\n return seq;\n }",
"public String getSequence()\r\n\t{\r\n\t\treturn sequence;\r\n\t}",
"public String getSequence()\n\t{\n\t\treturn this.sequence;\n\t}",
"public java.lang.String getScat_seq_num() {\n\t\treturn scat_seq_num;\n\t}",
"@Nullable\n public String getSequence() {\n return XmlUtils.getAttributeValue(this.mAdNode, \"sequence\");\n }",
"public String getSequence() \n\t{\n\t\treturn sequence;\n\t\t\n\t}",
"public java.lang.Long getSeqId () {\n\t\treturn seqId;\n\t}",
"public String getSequence() {\n\t\treturn sequence;\n\t}",
"public String getSequence() {\n\t\treturn sequence;\n\t}",
"public String getSequence() {\r\n return sequence;\r\n }",
"public long getOriginseqnum() {\n return originseqnum_;\n }"
] | [
"0.762229",
"0.7214595",
"0.7214595",
"0.7214595",
"0.7214595",
"0.7214595",
"0.7214595",
"0.7214595",
"0.71642506",
"0.7150637",
"0.70929086",
"0.6963938",
"0.69543016",
"0.69038224",
"0.69038224",
"0.69038224",
"0.69038224",
"0.69038224",
"0.69038224",
"0.69038224",
"0.68668574",
"0.68668574",
"0.68668574",
"0.68668574",
"0.6864784",
"0.68504065",
"0.68504065",
"0.68504065",
"0.68504065",
"0.68504065",
"0.68504065",
"0.68504065",
"0.68381006",
"0.680649",
"0.67417264",
"0.6716747",
"0.6705766",
"0.6700663",
"0.66963387",
"0.66846824",
"0.6669605",
"0.66542023",
"0.6653411",
"0.66478574",
"0.6634847",
"0.6634847",
"0.6634442",
"0.6618817",
"0.66183275",
"0.66051114",
"0.6597743",
"0.6590515",
"0.6560767",
"0.6550427",
"0.6537999",
"0.65331054",
"0.6524507",
"0.6519979",
"0.649944",
"0.64882267",
"0.64771223",
"0.6467667",
"0.6452245",
"0.6441236",
"0.644001",
"0.64262015",
"0.6416802",
"0.63445747",
"0.63445747",
"0.6343066",
"0.6309564",
"0.6307795",
"0.62909496",
"0.62909496",
"0.6260208",
"0.62558395",
"0.62465966",
"0.6241194",
"0.6232767",
"0.62304664",
"0.6228448",
"0.62281317",
"0.6210012",
"0.6194092",
"0.61886877",
"0.6187102",
"0.6187071",
"0.6170034",
"0.6170034",
"0.6170034",
"0.61691666",
"0.6164954",
"0.6161323",
"0.6153431",
"0.61344427",
"0.61247206",
"0.6119379",
"0.6119379",
"0.6096254",
"0.6084267"
] | 0.7737399 | 0 |
Sets the user sequence number. | public void setUserSeqNbr(Long userSeqNbr)
{
this.userSeqNbr = userSeqNbr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserSeqNbr(Long userSeqNbr) \n\t{\n\t\tthis.userSeqNbr = userSeqNbr;\n\t}",
"void setSequenceNumber(int sequenceNumber);",
"public void setUserSeq(Long userSeq) {\n sessionData.setUserSeq(userSeq);\n }",
"public void setSequenceNo(Number value) {\n setAttributeInternal(SEQUENCENO, value);\n }",
"public void setSequenceNumber(long value) {\n this.sequenceNumber = value;\n }",
"public void setSequenceNo(long n) {\n\tsequenceNo = n;\n }",
"public void setSeqNo (int SeqNo);",
"public void setSeqNo (int SeqNo);",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000002;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000010;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000010;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000004;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public void set_seqnum(byte value) {\n setSIntElement(offsetBits_seqnum(), 8, value);\n }",
"public void setSequenceNumber(int sequence) {\n\t\tfSequenceNumber= sequence;\n\t}",
"public void setUsernumber(String usernumber) {\n this.usernumber = usernumber;\n }",
"public final void setSequence(java.lang.Integer sequence)\r\n\t{\r\n\t\tsetSequence(getContext(), sequence);\r\n\t}",
"public void setSequence(Integer sequence) {\n this.sequence = sequence;\n }",
"@Column(name = \"USER_SEQ_NBR\")\n\tpublic Long getUserSeqNbr()\n\t{\n\t\treturn userSeqNbr;\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.SEQUENCE,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setSequence(final int val) {\n sequence = val;\n }",
"void setSeq(long seq) {\n this.seq = seq;\n }",
"public void setUser(int U)\t\n\t{\t//start of setUser mehtod\n\t\tuserNum = U;\n\t}",
"public Builder setSequenceNumber(long value) {\n bitField0_ |= 0x00000001;\n sequenceNumber_ = value;\n onChanged();\n return this;\n }",
"public void setSeq(Integer seq) {\n this.seq = seq;\n }",
"public void setSeq(Integer seq) {\n this.seq = seq;\n }",
"public void setSeq(Integer seq) {\n this.seq = seq;\n }",
"public void setSequenceNumberForHibernate(INT sequenceNumber) {\n _sequenceNumber = sequenceNumber;\n }",
"public void setSequence(Integer sequence)\n {\n if (sequence == null)\n sequence = 0;\n \n if (sequence < 0)\n throw new IllegalArgumentException(\"sortrank must be >= 0\");\n \n this.sequence = sequence;\n }",
"@Id\n\t@Column(name = \"USER_SEQ_NBR\", length = 20)\n\t@XmlElement(nillable=true, required=true)\n\tpublic Long getUserSeqNbr() \n\t{\n\t\treturn userSeqNbr;\n\t}",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public final void setSequence(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer sequence)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Sequence.toString(), sequence);\r\n\t}",
"public void setSequenceNumber(int sequenceNumber) {\n this.sequenceNumber = sequenceNumber;\n }",
"public void setSequenceNumber(int sequenceNumber) {\n this.sequenceNumber = sequenceNumber;\n }",
"public void setSeqNo (java.lang.Integer seqNo) {\n\t\tthis.seqNo = seqNo;\n\t}",
"public void set_infos_seq_num(int value) {\n setUIntBEElement(offsetBits_infos_seq_num(), 16, value);\n }",
"public void setCurrentUser(int userNum) {\n\t\tuserTurn = userNum;\n\t}",
"public Builder setSeq(int value) {\n\n seq_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeq(int value) {\n\n seq_ = value;\n onChanged();\n return this;\n }",
"private void setUserId(int value) {\n \n userId_ = value;\n }",
"public void setUserNum(String userNum) {\n this.userNum = userNum == null ? null : userNum.trim();\n }",
"public void setUserNum(String userNum) {\n this.userNum = userNum == null ? null : userNum.trim();\n }",
"public void setUserNum(String userNum) {\n this.userNum = userNum == null ? null : userNum.trim();\n }",
"public void setUserNum(String userNum) {\n this.userNum = userNum == null ? null : userNum.trim();\n }",
"public void setClientNo(DBSequence value) {\n setAttributeInternal(CLIENTNO, value);\n }",
"private void setUserId(long value) {\n \n userId_ = value;\n }",
"public void setSequence(String sequence) {\r\n this.sequence = sequence;\r\n }",
"public Builder setOriginseqnum(long value) {\n bitField0_ |= 0x00000002;\n originseqnum_ = value;\n onChanged();\n return this;\n }",
"private void setUserId(long value) {\n\n userId_ = value;\n }",
"public void setSeqNbr(int seqNbr) {\n this.seqNbr = seqNbr;\n }",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setUserID(java.lang.String value) {\n validate(fields()[2], value);\n this.userID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setProxyUserSeqNbr(Long proxyUserSeqNbr) \n\t{\n\t\tthis.proxyUserSeqNbr = proxyUserSeqNbr;\n\t}",
"public void setSequenceId(long sequence_id)\n {\n sequence_id_ = sequence_id;\n }",
"public void setTakeupSeqNo(int takeupSeqNo) {\n\t\tthis.takeupSeqNo = takeupSeqNo;\n\t}",
"public final void setSequence(java.lang.String sequence)\r\n\t{\r\n\t\tsetSequence(getContext(), sequence);\r\n\t}",
"public void setSequenceNumber(INT sequenceNumber) {\n if(sequenceNumber instanceof org.hl7.hibernate.ClonableCollection)\n sequenceNumber = ((org.hl7.hibernate.ClonableCollection<INT>) sequenceNumber).cloneHibernateCollectionIfNecessary();\n _sequenceNumber = sequenceNumber;\n }",
"public void setUserID(int value) {\n this.userID = value;\n }",
"public void setInumber(final String value)\n\t{\n\t\tsetInumber( getSession().getSessionContext(), value );\n\t}",
"@Override\n\tpublic void setGLSeqNum(BigInteger arg0) {\n\n\t}",
"public void setNotiId(DBSequence value) {\r\n setAttributeInternal(NOTIID, value);\r\n }",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public final void setSequence(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String sequence)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Sequence.toString(), sequence);\r\n\t}",
"public static void setSequence(Sequence m){\n\t\tcurMIDI = m;\n\t}",
"public void setPModIdseq(String value) {\n setAttributeInternal(PMODIDSEQ, value);\n }",
"public void setDisplaySequence(Integer value) {\n this.displaySequence = value;\n }",
"public void setUserSerial(String userSerial) {\n this.userSerial = userSerial;\n }",
"public void setIduser(int aIduser) {\n iduser = aIduser;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"protected void incrementSeqNum() {\n intToNetworkByteOrder(mySeqNum++, sequenceNum, 0, 4);\n }",
"public void setUserno(String userno) {\r\n this.userno = userno == null ? null : userno.trim();\r\n }",
"public final void testSetSequenceNumber() {\n Notification n = new Notification(\"type\", \"src\", 1);\n assertEquals(1, n.getSequenceNumber());\n n.setSequenceNumber(123);\n assertEquals(123, n.getSequenceNumber());\n }",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"public int getSequenceNum() {\n\t\treturn sequenceNumber;\n\t}",
"public void setCardgroupSeq(String value) {\r\n setAttributeInternal(CARDGROUPSEQ, value);\r\n }",
"@Override\n public void cUSerialNumber(long value) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public void setCreatedUserId(Integer value) {\n set(4, value);\n }",
"protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }",
"public void modifySequence(String sequence) {\n this.sequence = sequence;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public void setUserid(java.lang.String value) {\n this.userid = value;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public void setMuNext (int value) {\r\n Mu_next = value;\r\n }",
"public void setUserCrn(String userCrn) {\n this.userCrn = userCrn;\n }",
"public void setQcIdseq(String value) {\n setAttributeInternal(QCIDSEQ, value);\n }",
"private void setProcessId(int value) {\n\t\tthis.processId = value;\n\t}"
] | [
"0.7886341",
"0.76028377",
"0.74880356",
"0.7115307",
"0.7097202",
"0.70436186",
"0.702653",
"0.702653",
"0.69450986",
"0.6932871",
"0.6932871",
"0.68953294",
"0.68953294",
"0.68953294",
"0.68953294",
"0.68829554",
"0.68820256",
"0.68513143",
"0.6809485",
"0.67399484",
"0.67118466",
"0.670872",
"0.6604003",
"0.65767395",
"0.65172476",
"0.6467117",
"0.6467117",
"0.6467117",
"0.6459174",
"0.6444728",
"0.64055705",
"0.6377106",
"0.63591987",
"0.63550174",
"0.63550174",
"0.62643147",
"0.6240937",
"0.62389207",
"0.62386584",
"0.62386584",
"0.62167054",
"0.6182431",
"0.6182431",
"0.6182431",
"0.6182431",
"0.6177992",
"0.61642194",
"0.6142082",
"0.6114645",
"0.6076793",
"0.60455173",
"0.60404074",
"0.60232013",
"0.60011953",
"0.5990194",
"0.598806",
"0.5974113",
"0.59388715",
"0.5918109",
"0.5909294",
"0.5896355",
"0.5877448",
"0.58617437",
"0.58405644",
"0.58347714",
"0.58119136",
"0.58080786",
"0.58008677",
"0.57960135",
"0.57960135",
"0.57960135",
"0.57960135",
"0.5789571",
"0.5785447",
"0.577063",
"0.5765288",
"0.57631",
"0.5759816",
"0.57580364",
"0.57234824",
"0.5717306",
"0.57050645",
"0.56924754",
"0.56924754",
"0.56924754",
"0.56924754",
"0.56924754",
"0.56924754",
"0.56924754",
"0.56918955",
"0.5691306",
"0.5691306",
"0.5691306",
"0.5691306",
"0.5691306",
"0.5691306",
"0.56803435",
"0.56718093",
"0.56566423",
"0.56470394"
] | 0.784784 | 1 |
Gets the account type. | @Column(name = "ACCOUNT_TYPE")
public String getAccountType()
{
return accountType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccountType() {\n return accountType;\n }",
"public String getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"GlAccountType getGlAccountType();",
"protected String getType(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"TYPE\", sharedPref.getString(\"accountType\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_TYPE, null);\n }",
"public int getAccountType() {\r\n return accountType;\r\n }",
"public PaymentAccountTypeId getAccountType() {\n return this.accountType;\n }",
"public abstract int getAccountType();",
"public String getAccountIdType() {\n return accountIdType;\n }",
"public String getTypeAccountInNumber() {\n return typeAccountInNumber;\n }",
"public String getAccountTypeCode() {\n return accountTypeCode;\n }",
"public String getBankAccountType();",
"@ApiModelProperty(value = \"This is used to identify the account type of the senderPrimaryAccountNumber in the request. Below are the possible values.<br><br> 00-Not applicable<br> 10-Saving account<br> 20-Checking account<br> 30-Credit card account<br> 40-Universal account<br><br>Default is set to \\\"00\\\" if not provided.\")\n public String getAccountType() {\n return accountType;\n }",
"public static int getAccountType(int accountId) throws SQLException {\n boolean cdt1 = Checker.checkValidUserAccountAccountId(accountId);\n // if it is a valid account id, establish a connection\n if (cdt1) {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n int accountType = DatabaseSelector.getAccountType(accountId, connection);\n connection.close();\n return accountType;\n }\n \n return -1;\n\n }",
"public String getTypeAccountInLetter() {\n return typeAccountInLetter;\n }",
"com.google.ads.googleads.v13.enums.LinkedAccountTypeEnum.LinkedAccountType getType();",
"public jkt.hms.masters.business.MasAccountType getAccount() {\n\t\treturn account;\n\t}",
"public int getAccType() {\n\t\treturn accType;\n\t}",
"@Override\r\n\tpublic String getAccountTypeName() {\n\t\treturn null;\r\n\t}",
"java.lang.String getAccount();",
"@Override\r\n\tpublic AccountType getAccountType() {\n\t\treturn AccountType.SAVING;\r\n\t}",
"@Override\n public byte getType() {\n return TYPE_ACCOUNT_CONTROL;\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}",
"public com.rightrez.PassportType getType() {\r\n return type;\r\n }",
"public static String getType() {\n\t\treturn type;\n\t}",
"@NotNull\n\tpublic UserType getType() {\n\t\treturn super.getTypeEnum();\n\t}",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n account_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setAccountType(String accountType)\n\t{\n\t\tthis.accountType = accountType;\n\t}",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n }\n }",
"Account findByAccountType(String accountType);",
"public static String getAccountTypeName(int accountTypeId) throws SQLException {\n boolean cdt1 = Checker.checkValidAccountsType(accountTypeId);\n // establish a connection\n String accountTypeName = null;\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n // if it is a valid account type id\n if (cdt1) {\n\n accountTypeName = DatabaseSelector.getAccountTypeName(accountTypeId, connection);\n\n }\n connection.close();\n return accountTypeName;\n }",
"@Override\n public io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType getType() {\n @SuppressWarnings(\"deprecation\")\n io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType result = io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.valueOf(type_);\n return result == null ? io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.UNRECOGNIZED : result;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"UserType getType();",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public String obtenirType() {\n\t\treturn this.type;\n\t}",
"public String getUserType() {\n\t\treturn _userType;\n\t}",
"public static String getUserType()\n {\n try\n {\n if (userType == \"\")\n {\n System.out.println(\"User type not set\");\n return \"\";\n }\n else\n {\n return userType;\n }\n }\n catch (Exception exc)\n {\n System.out.println(\"User type error: \" + exc.toString());\n return \"\";\n }\n }",
"@Override public io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType getType() {\n @SuppressWarnings(\"deprecation\")\n io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType result = io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.valueOf(type_);\n return result == null ? io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.UNRECOGNIZED : result;\n }",
"public Enum getType() {\n return type;\n }",
"public String getAccType() {\n\t\tString Acctype = null;\r\n\t\ttry{\r\n\t\t\tif(selectedIndex == 0){\r\n\t\t\t\tAcctype = \"SA\";\r\n\t\t\t}else if (selectedIndex == 1){\r\n\t\t\t\tAcctype = \"CA\";\r\n\t\t\t}else if (selectedIndex == 2){\r\n\t\t\t\tAcctype = \"OA\";\r\n\t\t\t}else if (selectedIndex == 3){\r\n\t\t\t\tAcctype = \"CC\";\r\n\t\t\t}else if (selectedIndex == 4){\r\n\t\t\t\tAcctype = \"LA\";\r\n\t\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\treturn Acctype;\r\n\t}",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"public String getUserType() {\n return userType;\n }",
"public synchronized String getType() {\n\t\treturn type;\n\t}",
"public final String getType() {\n return this.type;\n }",
"public String getType() {\n return _type;\n }",
"public final String type() {\n return type;\n }",
"java.lang.String getAccountNumber();",
"String getType() {\n return type;\n }",
"public String getJP_BankAccountType();",
"public String getType() {\n\t\treturn _type;\n\t}",
"public String getAccountSubtype() {\n return accountSubtype;\n }",
"public ContactType getType() {\r\n\t\treturn info.contactType;\r\n\t}",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }"
] | [
"0.8479259",
"0.8479259",
"0.8220704",
"0.8220704",
"0.79563415",
"0.7869272",
"0.77693266",
"0.7503579",
"0.7264671",
"0.72511137",
"0.7233083",
"0.71300006",
"0.7114706",
"0.7060171",
"0.69606817",
"0.6860829",
"0.68346465",
"0.67385244",
"0.664826",
"0.6618751",
"0.6440651",
"0.63432366",
"0.63323027",
"0.63080424",
"0.6282655",
"0.62670356",
"0.62534857",
"0.62226135",
"0.6212226",
"0.62066644",
"0.6193845",
"0.6164299",
"0.6159935",
"0.61572224",
"0.61562705",
"0.6151016",
"0.6150607",
"0.6138359",
"0.6123235",
"0.61107755",
"0.60970354",
"0.60945064",
"0.6088431",
"0.6083165",
"0.6068116",
"0.6068116",
"0.6068116",
"0.6068116",
"0.60459906",
"0.6045152",
"0.60439634",
"0.60410136",
"0.6010971",
"0.60063726",
"0.600558",
"0.600357",
"0.60001504",
"0.5996173",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977",
"0.59945977"
] | 0.7844498 | 6 |
Sets the account type. | public void setAccountType(String accountType)
{
this.accountType = accountType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public void setAccountType(AccountType accountType) {\n if (accountType != null && !accountType.equals(this.accountType)) {\n previousAccountType = this.accountType;\n lastAccountChangeDate = new Date();\n }\n\n this.accountType = accountType;\n\n }",
"public void setAccountType(String accountType) {\n this.accountType = accountType == null ? null : accountType.trim();\n }",
"public void setAccountType(PaymentAccountTypeId value) {\n this.accountType = value;\n }",
"public String getAccountType() {\n return accountType;\n }",
"public String getAccountType() {\n return accountType;\n }",
"public void setTypeAccountInNumber(String typeAccountInNumber) {\n if (NUM_CTA_AHORROS.equalsIgnoreCase(typeAccountInNumber) || NUM_CTA_CORRIENTE.equalsIgnoreCase(typeAccountInNumber)) {\n this.typeAccountInNumber = typeAccountInNumber;\n } else {\n this.typeAccountInNumber = AdministradorUtilidades.formatoTipoCuentaNumero(typeAccountInNumber);\n }\n\n }",
"@ApiModelProperty(value = \"This is used to identify the account type of the senderPrimaryAccountNumber in the request. Below are the possible values.<br><br> 00-Not applicable<br> 10-Saving account<br> 20-Checking account<br> 30-Credit card account<br> 40-Universal account<br><br>Default is set to \\\"00\\\" if not provided.\")\n public String getAccountType() {\n return accountType;\n }",
"public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }",
"public void setBankAccountType (String BankAccountType);",
"public AccountType getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}",
"public void setUserType(String type) {\r\n switch(type) {\r\n case (\"admin\"): \r\n this.userType = 0;\r\n break;\r\n case (\"seller\"):\r\n this.userType = 1;\r\n break;\r\n case (\"buyer\"):\r\n this.userType = 2;\r\n break;\r\n \r\n }\r\n }",
"BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}",
"void setType(final UserType type);",
"public final void setType(String type) {\n this.type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public int getAccountType() {\r\n return accountType;\r\n }",
"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType( String type )\n {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\n\n this.type = type;\n }",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"public void setType(Type t) {\n type = t;\n }",
"public void setType(String type){\n this.type = type;\n }",
"public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(com.rightrez.PassportType type) {\r\n this.type = type;\r\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"public static void setType(int type) {\n\t\t\tGamePreferences.type = type;\n\t\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setAccountIdType(String accountIdType) {\n this.accountIdType = accountIdType;\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public void setType(int type) {\n this.type = type;\n }",
"public void setType(final Type type) {\n this.type = type;\n }",
"public void setType(String type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"public void setTypeAccountInLetter(String typeAccountInLetter) {\n if (INI_CTA_AHORROS.equalsIgnoreCase(typeAccountInLetter) || INI_CTA_CORRIENTE.equalsIgnoreCase(typeAccountInLetter)) {\n this.typeAccountInLetter = typeAccountInLetter;\n } else {\n this.typeAccountInLetter = AdministradorUtilidades.tipoCuentaLetra(typeAccountInLetter);\n }\n\n }",
"public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}"
] | [
"0.79404384",
"0.79404384",
"0.78891903",
"0.7867135",
"0.7579599",
"0.72924376",
"0.7072824",
"0.7072824",
"0.7057894",
"0.6844445",
"0.6744813",
"0.67228025",
"0.6678847",
"0.6678847",
"0.6584679",
"0.6578361",
"0.6526965",
"0.6510913",
"0.650025",
"0.64916396",
"0.6475336",
"0.6464409",
"0.6459742",
"0.6441699",
"0.6441699",
"0.64377797",
"0.6436128",
"0.6434591",
"0.6434591",
"0.6434591",
"0.6434591",
"0.6424292",
"0.6424292",
"0.6424292",
"0.64192104",
"0.64192104",
"0.64192104",
"0.6419036",
"0.64181125",
"0.64181125",
"0.64181125",
"0.64118737",
"0.64117455",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.6396295",
"0.63901836",
"0.6388324",
"0.6384912",
"0.6384194",
"0.6381042",
"0.6374531",
"0.6364345",
"0.63601834",
"0.63593477",
"0.63593215",
"0.6357564",
"0.635755",
"0.6349789",
"0.6349789",
"0.6349789",
"0.63432306",
"0.63398546",
"0.6325818",
"0.6314981",
"0.63120514",
"0.6304225",
"0.6304225",
"0.6294848",
"0.6288391",
"0.62872493",
"0.6284758",
"0.6283693",
"0.62730175",
"0.62730175",
"0.6272996",
"0.6272496",
"0.6267187",
"0.62645197",
"0.62594056",
"0.6258827"
] | 0.7725951 | 4 |
Gets the account id. | @Column(name = "ACCOUNT_ID")
public String getAccountID()
{
return accountID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAccountID();",
"String getAccountID();",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"public int getAccountID() {\n return accountID;\n }",
"public int getAccountID(Account account)\n\t {\n\t\t int id = -1;\n\t\t String columns[] = new String[] {DatabaseContract.AccountContract._ID};\n\t\t \n\t\t String where = DatabaseContract.AccountContract.COLUMN_NAME_USERNAME + \" = ? \";\n\t\t \n\t\t Cursor cursor = db.query(DatabaseContract.AccountContract.TABLE_NAME,\n\t\t\t\t columns,\n\t\t\t\t where,\n\t\t\t\t new String[] {account.getUsername()},\n\t\t\t\t null, null, null);\n\t\t\n\t\t if(cursor.getCount() > 0)\n\t\t {\n\t\t\t cursor.moveToFirst();\n\t\t\t \n\t\t\t int idCol = cursor.getColumnIndex(DatabaseContract.AccountContract._ID);\n\t\t\t id = cursor.getInt(idCol);\n\t\t }\n\t\t \n\t\t cursor.close();\n\t\t return id;\n\t }",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"public long getAccountId() {\n\t\treturn accountId;\n\t}",
"Long getAccountId();",
"public io.lightcone.data.types.AccountID getAccountId() {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }",
"protected String getID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_ID, null);\n }",
"public io.lightcone.data.types.AccountID getAccountId() {\n if (accountIdBuilder_ == null) {\n return accountId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n } else {\n return accountIdBuilder_.getMessage();\n }\n }",
"public long getAccountId() {\n return accountId;\n }",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public Long getAccountId() {\n\t\treturn accountId;\n\t}",
"public Long getAccountId() {\n return accountId;\n }",
"public int getAccountId() {\n return accountId;\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n accountId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n accountId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n accountId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n accountId_ = s;\n }\n return s;\n }\n }",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\n\t\treturn accountId;\n\t}",
"public String getAccountId() {\r\n return (String) getAttributeInternal(ACCOUNTID);\r\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public Integer getAcctId() {\n return acctId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public io.lightcone.data.types.AccountID getWalletId() {\n if (walletIdBuilder_ == null) {\n return walletId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : walletId_;\n } else {\n return walletIdBuilder_.getMessage();\n }\n }",
"public String getAccountId() {\n return this.accountId;\n }",
"java.lang.String getAccountNumber();",
"public String getAccountAuthId() {\n return accountAuthId;\n }",
"public String getAccountId() {\n return mAccountId;\n }",
"public String getAccountAuthId() {\n return accountAuthId;\n }",
"long getAccountLinkId();",
"public String getAccountId() {\n return (String)(userItem.getId());\n }",
"public io.lightcone.data.types.AccountIDOrBuilder getAccountIdOrBuilder() {\n if (accountIdBuilder_ != null) {\n return accountIdBuilder_.getMessageOrBuilder();\n } else {\n return accountId_ == null ?\n io.lightcone.data.types.AccountID.getDefaultInstance() : accountId_;\n }\n }",
"private int getCurrentAccountId() {\n accountLock.lock();\n int nmr = 1;\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT ACCOUNT_ID FROM APP.ACCOUNTS ORDER BY ACCOUNT_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"ACCOUNT_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n accountLock.unlock();\n return nmr;\n }",
"public io.lightcone.data.types.AccountID getWalletId() {\n return walletId_ == null ? io.lightcone.data.types.AccountID.getDefaultInstance() : walletId_;\n }",
"public String getAccountNumber() {\n\t\tthis.setAccountNumber(this.account);\n\t\treturn this.account;\n\t}",
"public String getAccountIdType() {\n return accountIdType;\n }",
"public String getMyAccountId()\n\t{\n\t\treturn (String) session.getAttribute(\"accountId\");\n\t}",
"public Long getUserAccountId() {\r\n return userAccountId;\r\n }",
"public static String getAccountNumber() {\n\t\treturn accountNumber;\n\t}",
"public io.lightcone.data.types.AccountIDOrBuilder getAccountIdOrBuilder() {\n return getAccountId();\n }",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"com.google.protobuf.ByteString\n getAccountIdBytes();",
"java.lang.String getAccount();",
"public int getAccountNumber() {\n return accountNumber;\n }",
"public int getAccountNumber() {\n\t\treturn accNum;\n\t}",
"UserAccount getUserAccountById(long id);",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static long getIdConnected(Context ctx) {\n\t\tSharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\treturn preferences.getLong(PreferenceConstants.ACCOUNT_ID, 0L);\n\t}",
"public int getAccountNo()\r\n\t{\r\n\t\t\r\n\t\treturn accountNo;\r\n\t\t\r\n\t}",
"public String getAccountLogId() {\n return accountLogId;\n }",
"public String getAccountNo();",
"public java.lang.String getAccount_number() {\n return account_number;\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountIdBytes() {\n java.lang.Object ref = accountId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n accountId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn accountID;\n\t}",
"public String getAccount() {\r\n return account;\r\n }",
"@Override\r\n\tpublic int generateAccountId() {\n\t\tint AccountId = (int) (Math.random()*10000);\r\n\t\treturn 0;\r\n\t}",
"public String getAccount() {\r\n\t\treturn account;\r\n\t}",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public Integer getAccountNumber() {\n return accountNumber;\n }",
"public int getAccountNo() {\n\t\treturn this.accountNo;\r\n\t}",
"public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }",
"public java.lang.String getAccountNumber() {\n return accountNumber;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n }\n }",
"java.lang.String getLoginId();",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public String getAccountNumber() {\n return accountNumber;\n }",
"public java.lang.String getAccountNumber() {\r\n return accountNumber;\r\n }"
] | [
"0.82864434",
"0.82864434",
"0.78407735",
"0.78223085",
"0.78223085",
"0.7714493",
"0.7714493",
"0.7653455",
"0.7619246",
"0.76105523",
"0.75569624",
"0.7484036",
"0.74542576",
"0.7443975",
"0.743473",
"0.7419403",
"0.74128973",
"0.737228",
"0.737228",
"0.737228",
"0.73162186",
"0.7211276",
"0.71984655",
"0.7192578",
"0.7192578",
"0.7192578",
"0.71924365",
"0.71924365",
"0.71924365",
"0.71873087",
"0.71873087",
"0.7166915",
"0.71571636",
"0.71571636",
"0.7144807",
"0.71107316",
"0.71087754",
"0.71087754",
"0.7065229",
"0.7061632",
"0.70543087",
"0.7034739",
"0.7024128",
"0.7022546",
"0.70143574",
"0.69720256",
"0.6957022",
"0.6951012",
"0.6943439",
"0.69227934",
"0.6908493",
"0.687914",
"0.6860935",
"0.6792978",
"0.67638046",
"0.67304575",
"0.67304575",
"0.67304575",
"0.67104644",
"0.6635901",
"0.66334206",
"0.66215736",
"0.66007894",
"0.66007894",
"0.66007894",
"0.65882486",
"0.6568135",
"0.6567458",
"0.6554849",
"0.65512866",
"0.6540712",
"0.6540712",
"0.6540712",
"0.6533519",
"0.6533519",
"0.6533519",
"0.6533519",
"0.6533519",
"0.6533519",
"0.6533519",
"0.6533519",
"0.6533519",
"0.6533519",
"0.6532004",
"0.65232617",
"0.65221226",
"0.6519062",
"0.6493988",
"0.6493988",
"0.6471304",
"0.64681417",
"0.6460043",
"0.6454778",
"0.64390653",
"0.64368397",
"0.6436056",
"0.64204043",
"0.64204043",
"0.64204043",
"0.64047796"
] | 0.69011444 | 51 |
Sets the account id. | public void setAccountID(String accountID)
{
this.accountID = accountID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setAccountID(long value) {\n validate(fields()[0], value);\n this.accountID = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public Builder setAccountID(long value) {\n validate(fields()[2], value);\n this.accountID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"void setAccountId(Long accountId);",
"public void setAccountId(UUID accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(long value) {\n this.accountId = value;\n }",
"public void setAccountId(int accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(Integer accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(Integer value) {\n this.accountId = value;\n }",
"public void setAccountId(String value) {\r\n setAttributeInternal(ACCOUNTID, value);\r\n }",
"public void setAccount(String accountID) {\n this.account = accountID;\n }",
"public Builder setAccountId(io.lightcone.data.types.AccountID value) {\n if (accountIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n accountId_ = value;\n onChanged();\n } else {\n accountIdBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setAccountId(String s) { accountId = s;}",
"public void setAccountId(Long accountId) {\n this.accountId = accountId;\n }",
"public void setAcctId(Integer acctId) {\n this.acctId = acctId;\n }",
"void setAccount(final Account account);",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public Builder setAccountId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n accountId_ = value;\n onChanged();\n return this;\n }",
"public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }",
"public void setAccountId(Long accountId) {\n\t\tthis.accountId = accountId;\n\t}",
"public Builder setAccountAuthId(String value) {\n validate(fields()[3], value);\n this.accountAuthId = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId;\n }",
"public void setAccountID(java.lang.Object accountID) {\n this.accountID = accountID;\n }",
"public void setAccountId(String accountId) {\n\t\tthis.accountId = accountId == null ? null : accountId.trim();\n\t}",
"public void setAccountId(String accountId) {\n\t\tthis.accountId = accountId == null ? null : accountId.trim();\n\t}",
"public void setAccount_Id(java.lang.String account_Id) {\n this.account_Id = account_Id;\n }",
"public void setAccountId(String accountId) {\n this.accountId = accountId == null ? null : accountId.trim();\n }",
"public void setAccount(Account account) {\n this.account = account;\n }",
"public synchronized void setAccountNumber(int number) {\n this.accountNumber = number;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(String id)\n {\n data().put(_ID, id);\n }",
"public void setId(UUID id) {\n this.id = id;\n }",
"public void setAccountAuthId(String value) {\n this.accountAuthId = value;\n }",
"protected void setAccountName(final String account) {\n this.account = account;\n }",
"private void setAid(int value) {\n \n aid_ = value;\n }",
"public void setId(UUID id) {\n this.id = id;\n }",
"public void assignId(int id);",
"public void setId(final int id);",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"void setId(int id) {\n this.id = id;\n }",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"public Builder setWalletId(io.lightcone.data.types.AccountID value) {\n if (walletIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n walletId_ = value;\n onChanged();\n } else {\n walletIdBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"protected void setId(long id) {\n\t\tthis.id = id;\n\t}",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}",
"public void setId (String id)\n {\n _id = id;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setId(final Integer id)\n {\n this.id = id;\n }",
"public void setId(java.lang.Integer _id)\n {\n id = _id;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public void setId(int id){\n\t\tthis.id = id;\n\t}",
"public void setId(String id) {\n _id = id;\n }",
"public void setId(int id) {\n\t\tthis._id = id;\n\t}",
"public void setId(int id) {\n\t\tthis._id = id;\n\t}",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(int id) {\r\n this.id = id;\r\n }",
"public void setId(int id) {\r\n this.id = id;\r\n }",
"public void setId(int id) {\r\n this.id = id;\r\n }",
"public void setId(int id) {\r\n this.id = id;\r\n }",
"void setAccountNumber(java.lang.String accountNumber);",
"protected void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}",
"@Override\n public void setId(int id) {\n this.id = id;\n }",
"void setId(final Integer id);",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = id;\n }"
] | [
"0.73502636",
"0.7293674",
"0.723597",
"0.723597",
"0.70345414",
"0.7017863",
"0.6958548",
"0.6931286",
"0.6826344",
"0.6804401",
"0.6754037",
"0.6716388",
"0.66493535",
"0.66452205",
"0.65428007",
"0.65114814",
"0.6493654",
"0.64807916",
"0.6426761",
"0.64263237",
"0.64263237",
"0.6422727",
"0.6374015",
"0.6373921",
"0.6370211",
"0.6370211",
"0.6355258",
"0.63530695",
"0.63530695",
"0.63319874",
"0.6313817",
"0.6282641",
"0.6251587",
"0.62484074",
"0.62484074",
"0.62276167",
"0.6213476",
"0.61914086",
"0.6162969",
"0.61618793",
"0.61556405",
"0.6142856",
"0.6127032",
"0.6125065",
"0.61044735",
"0.609358",
"0.60922873",
"0.6091394",
"0.6091394",
"0.6091394",
"0.60899466",
"0.60886294",
"0.6084206",
"0.6080662",
"0.60770893",
"0.6063664",
"0.6062859",
"0.60555947",
"0.6054402",
"0.6054402",
"0.60536766",
"0.6052487",
"0.60497487",
"0.60497487",
"0.6043706",
"0.6043706",
"0.60396487",
"0.60396487",
"0.60396487",
"0.60396487",
"0.60346526",
"0.60332876",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6032593",
"0.6028829",
"0.6027779",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022",
"0.6027022"
] | 0.6154303 | 41 |
Gets the public user uuid. | @Column(name = "PUBLICUSER_UUID")
public String getPublicUserUUID()
{
return publicUserUUID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid();",
"@Override\n\tpublic String getUserUuid();",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _userTracker.getUserUuid();\n\t}",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _paper.getUserUuid();\n\t}",
"public String getUserUuid() throws SystemException;",
"public String getUserUuid() throws SystemException;",
"public String getUserUuid() throws SystemException;",
"public String getUserUuid() throws SystemException;",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _second.getUserUuid();\n\t}",
"public String getUser_person_uuid() {\n return user_person_uuid;\n }",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn _changesetEntry.getUserUuid();\n\t}",
"String getUuid();",
"public static String getUserId() {\n return FirebaseAuth.getInstance().getUid();\n }",
"String getUserId();",
"String getUserId();",
"public String getUuid() {\n\t\t// lazy init of UUID\n\t\tif (uuid == null) {\n\t\t\tuuid = UUID.randomUUID().toString();\n\t\t}\n\t\treturn uuid;\n\t}",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"java.lang.String getUserID();",
"String getUid();",
"public String getUuid() {\n\t\tif (uuid == null) {\n\t\t\tthis.uuid = getProperty(\"uuid\");\n\t\t}\n\t\treturn uuid;\n\t}",
"public String getUserID();",
"String getUserID();",
"public java.lang.String getUserId() {\n return instance.getUserId();\n }",
"public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }",
"java.lang.String getUid();",
"java.lang.String getUid();",
"public java.lang.String getUserID() {\r\n return localUserID;\r\n }",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public String getUserId() {\n return userIdEditText.getText().toString();\n }",
"public Integer getPublicuserid() {\n return publicuserid;\n }",
"public static String getUser() {\n return user;\n }",
"public String getUserID(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_ID, null);\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n uuid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n uuid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}",
"public static String getUser() {\r\n return user;\r\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n uuid_ = s;\n return s;\n }\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n uuid_ = s;\n return s;\n }\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"java.lang.String getUUID();",
"public java.lang.String getUuid() {\n return uuid;\n }",
"@Override\n\tpublic java.lang.String getUserUuid()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _userSync.getUserUuid();\n\t}",
"public java.lang.String getUserId() {\n return localUserId;\n }",
"public java.lang.String getUserId() {\n return localUserId;\n }",
"public java.lang.String getUserID() {\n return userID;\n }",
"public String getUserid() {\n return userid;\n }",
"public String getUserid() {\n return userid;\n }",
"public java.lang.String getUserId() {\r\n return localUserId;\r\n }",
"public java.lang.String getUserId() {\r\n return localUserId;\r\n }",
"public java.lang.String getUserID() {\n return userID;\n }",
"public java.lang.String getUserID() {\r\n return userID;\r\n }",
"public final String getUser() {\n return username;\n }",
"public java.lang.String getUUID() {\n java.lang.Object ref = uUID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n uUID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public UUID getUuid();",
"public String getUserID() {\n return userID;\n }",
"int getUid();",
"int getUid();",
"@Override\n public java.lang.String getUserUuid()\n throws com.liferay.portal.kernel.exception.SystemException {\n return _partido.getUserUuid();\n }",
"public java.lang.String getUserId() {\n java.lang.Object ref = userId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n userId_ = s;\n }\n return s;\n }\n }",
"UUID getUUID();",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _userSync.getUserId();\n\t}",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUserId() {\r\n return (String) getAttributeInternal(USERID);\r\n }",
"public String getUserid() {\n\t\treturn userid;\n\t}",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n userID_ = s;\n }\n return s;\n }\n }",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getUuid() {\n return _uuid;\n }",
"public java.lang.String getUUID() {\n java.lang.Object ref = uUID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n uUID_ = s;\n }\n return s;\n }\n }",
"public String getUserID() {\r\n return userID;\r\n }",
"long getUid();",
"long getUid();",
"public java.lang.String getUserId() {\n java.lang.Object ref = userId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n userId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"long getUserId();",
"long getUserId();",
"@Override\r\n\tpublic String getUserID() {\n\t\treturn null;\r\n\t}",
"public static String getUserId() {\n\t\tJSONObject user = TUser_CACHE.get();\n\n\t\tif (user != null) {\n\t\t\treturn user.getString(\"userId\");\n\t\t}\n\n\t\treturn null;\n\t}",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n userID_ = s;\n return s;\n }\n }",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n userID_ = s;\n return s;\n }\n }"
] | [
"0.7890158",
"0.7890158",
"0.7890158",
"0.7690548",
"0.7690548",
"0.7408033",
"0.7335806",
"0.7203583",
"0.7203583",
"0.7203583",
"0.7203583",
"0.7125045",
"0.71145415",
"0.7017539",
"0.70099145",
"0.70069206",
"0.69431174",
"0.69431174",
"0.6885009",
"0.68701035",
"0.68701035",
"0.68701035",
"0.6857677",
"0.68312895",
"0.6823989",
"0.6808485",
"0.6803206",
"0.67871106",
"0.67789626",
"0.67789626",
"0.67709327",
"0.67598933",
"0.67598933",
"0.67598933",
"0.67586493",
"0.6744332",
"0.66912377",
"0.66810787",
"0.6668688",
"0.66603994",
"0.66603994",
"0.6645661",
"0.66356766",
"0.6633073",
"0.663239",
"0.663239",
"0.6626144",
"0.662389",
"0.6603267",
"0.6584221",
"0.65837294",
"0.65837294",
"0.6582353",
"0.65796036",
"0.65796036",
"0.6555529",
"0.6555529",
"0.6544592",
"0.65214425",
"0.6515117",
"0.6515006",
"0.6514085",
"0.65127933",
"0.65072894",
"0.65072894",
"0.6507254",
"0.6503236",
"0.64991784",
"0.6493467",
"0.6493467",
"0.6490684",
"0.64899826",
"0.64892286",
"0.64892286",
"0.64892286",
"0.64892286",
"0.64892286",
"0.64892286",
"0.64892286",
"0.64892286",
"0.64892286",
"0.64892286",
"0.6488028",
"0.64872956",
"0.64863825",
"0.6485041",
"0.6485041",
"0.6485041",
"0.6480139",
"0.6472661",
"0.6470233",
"0.64676523",
"0.64676523",
"0.64622116",
"0.64534706",
"0.64534706",
"0.64513767",
"0.6444481",
"0.64386463",
"0.64386463"
] | 0.7723074 | 3 |
Sets the public user uuid. | public void setPublicUserUUID(String publicUserUUID)
{
this.publicUserUUID = publicUserUUID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"@Override\n\tpublic void setUserUuid(String userUuid);",
"@Override\n\tpublic void setUserUuid(String userUuid);",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\tmodel.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\tmodel.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\tmodel.setUserUuid(userUuid);\n\t}",
"@Override\n public void setUserUuid(java.lang.String userUuid) {\n _partido.setUserUuid(userUuid);\n }",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_esfTournament.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_employee.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\t_changesetEntry.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_second.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_paper.setUserUuid(userUuid);\n\t}",
"public void setUuid(String uuid);",
"public void setUuid(String uuid);",
"public void setUuid(String uuid);",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_scienceApp.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_userSync.setUserUuid(userUuid);\n\t}",
"@Override\n public void setUserUuid(java.lang.String userUuid) {\n _usersCatastropheOrgs.setUserUuid(userUuid);\n }",
"public void setUuid(UUID uuid);",
"private void setUUID(UUID uuid) {\n this.uuid = uuid;\n }",
"@Column(name = \"PUBLICUSER_UUID\")\n\tpublic String getPublicUserUUID()\n\t{\n\t\treturn publicUserUUID;\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_dictData.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_userTracker.setUserUuid(userUuid);\n\t}",
"public void setUUID(UUID uuid) {\n this.UUID = uuid.toString();\n }",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"public void setUuid(String uuid)\n {\n this.uuid = uuid;\n }",
"@Override\n\tpublic void setUuid(String uuid);",
"public void setUuid_(long uuid_) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt64(__io__address + 0, uuid_);\n\t\t} else {\n\t\t\t__io__block.writeInt64(__io__address + 0, uuid_);\n\t\t}\n\t}",
"@Override\n\tpublic String getUserUuid();",
"@Override\n\tpublic String getUserUuid();",
"public void setUuid(Integer uuid) {\n this.uuid = uuid;\n }",
"public void setUser_person_uuid(String user_person_uuid) {\n this.user_person_uuid = user_person_uuid;\n }",
"public void setUuid(String Uuid) {\n this.Uuid = Uuid;\n }",
"public void setUuid(java.lang.String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUserId(UUID userId) {\n this.userId = userId;\n }",
"public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_esfTournament.setUuid(uuid);\n\t}",
"@JsonSetter(\"uuid\")\r\n public void setUuid (String value) { \r\n this.uuid = value;\r\n }",
"@Override\n public void setUuid(java.lang.String uuid) {\n _partido.setUuid(uuid);\n }",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_second.setUuid(uuid);\n\t}",
"public void setUuid(String _uuid) {\n this._uuid = _uuid;\n }",
"@Override\n\tpublic void setUuid(String uuid) {\n\t\tmodel.setUuid(uuid);\n\t}",
"@Override\n\tpublic void setUuid(String uuid) {\n\t\tmodel.setUuid(uuid);\n\t}",
"@Override\n\tpublic void setUuid(String uuid) {\n\t\tmodel.setUuid(uuid);\n\t}",
"public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }",
"public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public void setUuid(String uuid) {\n\t\tthis.uuid = uuid;\n\t}",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _paper.getUserUuid();\n\t}",
"private void setUserId(int value) {\n \n userId_ = value;\n }",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn _changesetEntry.getUserUuid();\n\t}",
"@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid) {\n\t\tmodel.setStatusByUserUuid(statusByUserUuid);\n\t}",
"public static void setUserId(int zUserId) {\n userId = zUserId;\n }",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"@PrePersist\n public void assignUUID() {\n this.uid = UUID.randomUUID();\n }",
"public void setUserid(java.lang.String value) {\n this.userid = value;\n }",
"public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }",
"public void setUserId(java.lang.String param) {\n localUserIdTracker = true;\n\n this.localUserId = param;\n }",
"private void setUserId(long value) {\n \n userId_ = value;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_userSync.setUserId(userId);\n\t}",
"private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_paper.setUuid(uuid);\n\t}",
"public void setUUID (String UUID)\n\t{\n\t\tset_Value (COLUMNNAME_UUID, UUID);\n\t}",
"@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid);",
"public synchronized static void setUserId(String userId){\n setUserId(context,userId);\n }",
"public void setId(Uuid uuid) {\n\t\t this.id = uuid;;\n\t}",
"private void setUserId(long value) {\n\n userId_ = value;\n }",
"public void setAsuid(String asuid);",
"public void setCreatedUserId(Integer value) {\n set(4, value);\n }",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _second.getUserUuid();\n\t}",
"public void setPublicuserid(Integer publicuserid) {\n this.publicuserid = publicuserid;\n }",
"public void setUserId(java.lang.String param) {\r\n localUserIdTracker = param != null;\r\n\r\n this.localUserId = param;\r\n }",
"public void setUserId(java.lang.String param) {\r\n localUserIdTracker = param != null;\r\n\r\n this.localUserId = param;\r\n }",
"public void setUser(final String user)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting user: \" + user);\n }\n this.user = user;\n }",
"public void setUser(final String user)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting user: \" + user);\n }\n this.user = user;\n }",
"@Override\n\tpublic void setUserId(long userId);",
"@Override\n\tpublic void setUserId(long userId);",
"@Override\n public void setUserId(long userId) {\n _partido.setUserId(userId);\n }",
"void setUserId(Long userId);",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public Builder setUUID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n uUID_ = value;\n onChanged();\n return this;\n }",
"public void setHostUuid(String hostUuid) {\n this.hostUuid = hostUuid;\n }",
"public void setUser(String user)\n {\n _user = user;\n }"
] | [
"0.77122796",
"0.77122796",
"0.77122796",
"0.77122796",
"0.7492219",
"0.7492219",
"0.71415454",
"0.71415454",
"0.71415454",
"0.7032116",
"0.68975216",
"0.68119085",
"0.67913264",
"0.67695427",
"0.67690784",
"0.6758388",
"0.6758388",
"0.6758388",
"0.6749552",
"0.66962034",
"0.6658154",
"0.6648927",
"0.6631732",
"0.6568914",
"0.6534596",
"0.650785",
"0.65022326",
"0.64821994",
"0.64821994",
"0.64821994",
"0.6457513",
"0.64376754",
"0.64365363",
"0.643101",
"0.643101",
"0.64278126",
"0.6394275",
"0.6301027",
"0.6299306",
"0.628248",
"0.628248",
"0.628248",
"0.62785035",
"0.62785035",
"0.62785035",
"0.62785035",
"0.6276416",
"0.6255241",
"0.6248366",
"0.6248366",
"0.6248366",
"0.6248366",
"0.6248366",
"0.6174997",
"0.6158296",
"0.6113588",
"0.61130786",
"0.60865086",
"0.60561794",
"0.60561794",
"0.60561794",
"0.60411036",
"0.6014728",
"0.5998332",
"0.5997745",
"0.5990426",
"0.5974968",
"0.5955524",
"0.59466666",
"0.59455925",
"0.5936045",
"0.5930006",
"0.5926836",
"0.59134114",
"0.59134114",
"0.5902276",
"0.5886686",
"0.5852261",
"0.5848671",
"0.58388656",
"0.5832528",
"0.58073103",
"0.58020544",
"0.5799532",
"0.5759676",
"0.57461876",
"0.5716999",
"0.57121766",
"0.57097054",
"0.57097054",
"0.5708582",
"0.5708582",
"0.5706598",
"0.5706598",
"0.56916773",
"0.56745225",
"0.56744677",
"0.56725717",
"0.56632406",
"0.5660511"
] | 0.6997555 | 10 |
Gets the effective time. | @Column(name = "EFFECTIVE_TIME")
public Date getEffectiveTime()
{
return effectiveTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected double getElapsedTime() {\n\t\treturn Utilities.getTime() - startTime;\n\t}",
"public long getElapsedTime() {\n long additionalRealTime = 0;\n\n if(mStartTime > 0) {\n additionalRealTime = System.currentTimeMillis() - mStartTime;\n }\n return mElapsedTime + additionalRealTime;\n }",
"public long getElapsedTime() {\n\t\treturn this.getTime();\n\t}",
"@Schema(description = \"Time in UTC when the usage event occurred\")\n public OffsetDateTime getEffectiveStartTime() {\n return effectiveStartTime;\n }",
"float getEstimatedTime() {\n return estimated_time;\n }",
"public double getElapsedTime()\n\t{\n\t\treturn elapsedTime;\n\t}",
"public static long GetElapsedTime() {\n\t\treturn System.currentTimeMillis() - _lTime;\n\t}",
"public long timeElapsed()\n {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }",
"long getElapsedTime();",
"public float getTime() {\n return Math.abs(endTime - startTime) / 1000000f;\n }",
"public String getEstimatedTime() {\n return estimatedTime;\n }",
"public String getEstimatedRemainingTime() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return \"N/A\";\n \n long eta = d-(System.currentTimeMillis()-startTime);\n if(eta<=0) return \"N/A\";\n \n return Util.getTimeSpanString(eta);\n }",
"public double getElapsedTime(){\n double CurrentTime = System.currentTimeMillis();\n double ElapseTime = (CurrentTime - startTime)/1000;\n return ElapseTime;\n }",
"public long getElapsedTime(){\n long timePassed = endTime - startTime;\n return timePassed;\n }",
"public double time()\n\t{\n\t\treturn _dblTime;\n\t}",
"public double time()\n\t{\n\t\treturn _dblTime;\n\t}",
"public Long getElapsedTime() {\n return elapsedTime;\n }",
"public int getEat_time()\n\t{\n\t\treturn eat_time;\n\t}",
"public String getElapsedTime() {\n return elapsedTime;\n }",
"public long getElapsedTime()\r\n {\r\n if(isRunning)\r\n {\r\n long endTime = System.currentTimeMillis();\r\n return elapsedTime=endTime-startTime;\r\n }\r\n else\r\n {\r\n return elapsedTime;\r\n }\r\n }",
"public long getTimeElapsed() {\r\n\t long now = new Date().getTime();\r\n\t long timePassedSinceLastUpdate = now - this.updatedSimTimeAt;\r\n\t return this.pTrialTime + timePassedSinceLastUpdate;\r\n\t}",
"public double computeElapsedTime() {\r\n\r\n long now = System.currentTimeMillis();\r\n\r\n elapsedTime = (double) (now - startTime);\r\n\r\n // if elasedTime is invalid, then set it to 0\r\n if (elapsedTime <= 0) {\r\n elapsedTime = (double) 0.0;\r\n }\r\n\r\n return (double) (elapsedTime / 1000.0); // return in seconds!!\r\n }",
"int getEndTime();",
"int getEndTime();",
"int getEndTime();",
"public long getRemainingTime() {\n return (maxTime_ * 1000L)\n - (System.currentTimeMillis() - startTime_);\n }",
"public long age() {\n if (startTime == 0) {\n return 0;\n } else {\n return (System.currentTimeMillis() - this.startTime) / 1000;\n }\n }",
"public static long getElapsedTime() {\n long time = System.currentTimeMillis() - START_TIME;\n // long time = System.nanoTime() / 1000000;\n return time;\n }",
"double getAbsoluteTime() {\n return absoluteTime;\n }",
"long getExecutionTime();",
"double getFullTime();",
"private long CurrentTime(){\n return (TotalRunTime + System.nanoTime() - StartTime)/1000000;\n }",
"public double getElapsedTime() {\r\n return (double) (elapsedTime / 1000.0); // convert from milliseconds to seconds\r\n }",
"public double gettimetoAchieve(){\n\t\treturn this.timeFrame;\n\t}",
"public Date getEffectiveDate() {\n return effectiveDate;\n }",
"public Date getEffectiveDate() {\n return effectiveDate;\n }",
"public Date getEffectiveDate() {\n return effectiveDate;\n }",
"public Date getEffectiveDate() {\r\n return effectiveDate;\r\n }",
"public String elapsedTime() {\n return totalWatch.toString();\n }",
"@Override\n\tpublic long getTime() {\n\t\treturn System.nanoTime() - startTime;\n\t}",
"public Long getTime() {\n if (timeEnd == null) {\n return null;\n }\n return timeEnd - timeStart;\n }",
"public double getEndTime() {\n return endTime;\n }",
"public String estimatedTime() {\n int m = (int)(getFreeBytes()/500000000);\n return (m <= 1) ? \"a minute\" : m+\" minutes\";\n }",
"long elapsedTime();",
"public Float getUsedtime() {\n return usedtime;\n }",
"public String getElapsedTime() {\n /**\n * Joda instruction credit to BalusC @ stackoverflow.com\n * http://stackoverflow.com/posts/2179831/revisions\n */\n Period delta = new Period(getOccurrenceTime(), DateTime.now());\n return\n // 1+ weeks\n (delta.getWeeks() >= 1) ? delta.getWeeks()+\"w\" :\n // 1+ days\n (delta.getDays() >= 1) ? delta.getDays()+\"d\" :\n // 1+ hours\n (delta.getHours() >= 1) ? delta.getHours()+\"h\" :\n // 1+ minutes\n (delta.getMinutes() >= 1) ? delta.getMinutes()+\"m\" :\n // 1+ seconds\n delta.getSeconds()+\"s\";\n }",
"public long getEventTime();",
"protected String currentElapsedTimeExp(RomanticTransaction tx) {\n return tx.currentElapsedTimeExp();\n }",
"public double getTimeRemaining() {\n\t\treturn (startingTime + duration) - System.currentTimeMillis();\n\t}",
"public long getElapsedTimeSecs() {\n return running ? ((System.currentTimeMillis() - startTime) / 1000) % 60 : 0;\n }",
"Double getRemainingTime();",
"private long remainingTime() {\n final long remainingTime = this.designatedEnd - System.currentTimeMillis();\n return remainingTime >= 0 ? remainingTime : 0L;\n }",
"public int getET()\n {\n return exTime;\n }",
"public long getEndTime() {\r\n return endTime;\r\n }",
"public long getStartTime () {\n if (isPerformance) {\n return System.currentTimeMillis();\n }\n else\n {\n return 0;\n }\n }",
"@Override\n public long getTimeNeeded() {\n return timeNeeded;\n }",
"public static void calTime() {\n time = new Date().getTime() - start;\n }",
"public float getElapsed()\n {\n return this.elapsed;\n }",
"public java.lang.Integer getExecutionTime() {\n return execution_time;\n }",
"public int getTimeToComplete() {\n // one level is ten minutes long\n int totalTime = numberOfLevels * 10;\n if (is3D) {\n // if it's 3d then it take twice as long because its harder\n totalTime = totalTime * 2;\n }\n \n return totalTime;\n }",
"public Double getBestTime() {\n return bestTime;\n }",
"public int getExtraTimeGiven()\r\n {\r\n return extraTimeGiven;\r\n }",
"public long getEndTime() {\n return endTime;\n }",
"public long getEndTime() {\n return endTime;\n }",
"public double getRemainingTime()\n {\n return totalTime - scheduledTime;\n }",
"@Override\r\n\tpublic long getTime() {\n\t\treturn this.time;\r\n\t}",
"public int getLifeTime() {\n return lifeTime;\n }",
"public double getFullTime() {\n return fullTime_;\n }",
"public java.lang.Integer getExecutionTime() {\n return execution_time;\n }",
"long getEndTime() {\n return endTime;\n }",
"public Long getFastestTime()\r\n {\r\n return this.fastestTime;\r\n }",
"public double getSystemTimeSec() {\n\treturn getSystemTime() / Math.pow(10, 9);\n}",
"public double getStartTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }",
"public int getEndTime()\n {\n if (isRepeated()) return end;\n else return time;\n }",
"public double getCBRTime();",
"long getStartTime();",
"public double getFullTime() {\n return fullTime_;\n }",
"public Date getEventTime() {\n\t\treturn time;\n\t}",
"public long getLastAttackTime() {\r\n\t\treturn lastAttackTime;\r\n\t}",
"BusinessCenterTime getValuationTime();",
"Duration getRemainingTime();",
"public long getTime() {\r\n\t\treturn time;\r\n\t}",
"public int getWorkRequired() {\n return time;\n }",
"private long getSystemTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? (bean.getCurrentThreadCpuTime() - bean.getCurrentThreadUserTime()) : 0L;\n }",
"long time() {\r\n\t\treturn System.currentTimeMillis();\r\n\t}",
"public final long getTime () {\n return time;\n }",
"public double getStopTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STOPTIME$24);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }",
"public int getTime() {\r\n return time;\r\n }",
"public double time() {\n long diff = System.nanoTime() - start;\n double seconds = diff * 0.000000001;\n return seconds;\n }",
"public int getTimeToLive() {\n\t\treturn deathsTillForget;\n\t}",
"public int getTotalTime();",
"public Time getBestTime()\n\t{\n\t\treturn bestTime;\n\t}",
"@Override\n\tpublic float getEndTime() \n\t{\n\t\treturn _tend;\n\t}",
"public long getTime() {\n\t\treturn (Sys.getTime() * 1000) / Sys.getTimerResolution();\n\t}",
"public long getThinkTime() {\n\t\treturn (thinkTime);\n\t}",
"public int getTime() {\n\t\treturn time;\n\t}",
"public int getTime() {\n\t\treturn time;\n\t}",
"public long getEndTime() {\n\t\treturn endTime;\n\t}",
"public int getTime() {\n\n\t\treturn time;\n\t}",
"public long getTime() {\r\n \treturn time;\r\n }"
] | [
"0.721083",
"0.70954025",
"0.70259595",
"0.69394964",
"0.6924222",
"0.6787165",
"0.67863476",
"0.67795914",
"0.67592263",
"0.6749798",
"0.6739924",
"0.6719095",
"0.6714068",
"0.66480726",
"0.6645866",
"0.6645866",
"0.6615527",
"0.65924233",
"0.6589832",
"0.65897655",
"0.6583217",
"0.6575901",
"0.6552494",
"0.6552494",
"0.6552494",
"0.65514183",
"0.6544185",
"0.6542565",
"0.6535822",
"0.6534185",
"0.65337217",
"0.6518957",
"0.6509306",
"0.64808047",
"0.64771223",
"0.64771223",
"0.64771223",
"0.6475992",
"0.6457945",
"0.64508015",
"0.6449948",
"0.6448468",
"0.6426596",
"0.64178556",
"0.6415185",
"0.6409353",
"0.64011705",
"0.6393108",
"0.63908136",
"0.6384364",
"0.63809884",
"0.63806957",
"0.63753724",
"0.6372139",
"0.6366188",
"0.635281",
"0.6340265",
"0.6337105",
"0.63366336",
"0.63254994",
"0.6325026",
"0.6323622",
"0.63235354",
"0.63235354",
"0.6321422",
"0.63203305",
"0.63154006",
"0.631018",
"0.6305848",
"0.6300709",
"0.628481",
"0.6283309",
"0.6279609",
"0.6267995",
"0.6266944",
"0.626194",
"0.6258649",
"0.625297",
"0.62487084",
"0.6239595",
"0.62252307",
"0.6221298",
"0.6221143",
"0.6219995",
"0.6217722",
"0.6212244",
"0.6209442",
"0.62080824",
"0.6207219",
"0.6206785",
"0.6205173",
"0.6203486",
"0.62014127",
"0.61985505",
"0.61969113",
"0.61964184",
"0.61964184",
"0.619597",
"0.6189542",
"0.6185873"
] | 0.79369175 | 0 |
Sets the effective time. | public void setEffectiveTime(Date effectiveTime)
{
this.effectiveTime = effectiveTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"void setTime(final int time);",
"public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}",
"public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }",
"public void setTime(){\r\n \r\n }",
"public void setSit_time(int time)\n\t{\n\t\tsit_time = time - enter_time;\t\n\t}",
"public void setEffectiveDate(java.util.Date value);",
"public void setTime(int time) {\r\n\t\tthis.time = time;\r\n\t\tupdate();\r\n\t}",
"public void setFastestTime(long time)\r\n {\r\n //Check if the new fastest time is less than 0 before setting the new fastest time \r\n if(time < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative time\");\r\n }\r\n else \r\n {\r\n this.fastestTime = time; \r\n }//end if\r\n }",
"@Override\n\tpublic void setStartTime(float t) \n\t{\n\t\t_tbeg = t;\n\t}",
"@Column(name = \"EFFECTIVE_TIME\")\n\tpublic Date getEffectiveTime()\n\t{\n\t\treturn effectiveTime;\n\t}",
"public final void setTime(final Date newTime) {\n this.time = newTime;\n }",
"void setCurrentTime(long currentTime);",
"public void setTime(long time,int ento){ \r\n\t}",
"public void SetEatenTime(double time) {\n\t\tEatenTime = time ;\n\t}",
"public void setTime(double time) {_time = time;}",
"public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }",
"@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}",
"public abstract void setStartTime(Date startTime);",
"public void setEffectiveDate(Date effectiveDate) {\r\n this.effectiveDate = effectiveDate;\r\n }",
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }",
"private void setEditedTime(int value) {\n \n editedTime_ = value;\n }",
"@Override\n\tpublic void setEndTime(float t) \n\t{\n\t\t_tend = t;\n\t}",
"public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void setEffectiveDate(Date effectiveDate) {\n this.effectiveDate = effectiveDate;\n }",
"public void setEffectiveDate(Date effectiveDate) {\n this.effectiveDate = effectiveDate;\n }",
"public void setEffectiveDate(Date effectiveDate) {\n this.effectiveDate = effectiveDate;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setTime(Date time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void setTime(long elapseTime) {\r\n\t\tsecond = (elapseTime / 1000) % 60;\r\n\t\tminute = (elapseTime / 1000) / 60 % 60;\r\n\t\thour = ((elapseTime / 1000) / 3600) % 24;\t\r\n\t}",
"public void setTime(int time)\n {\n this.time = time;\n start = time;\n end = time;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"public void setTime(long time) {\r\n this.time = time;\r\n }",
"void timeSet(Integer timeOpen, Integer timeWork){\n\t\tdaysUntilStarts = timeOpen;\n\t\tdaysToRun = timeWork;\n\t}",
"public void setTime ( final Calendar time ) {\n this.time = time;\n }",
"public void setTime(int time) {\n\t\tthis.time = time;\n\t}",
"void setExposureTimePref(long exposure_time);",
"public void setEditTime(Date editTime) {\n this.editTime = editTime;\n }",
"public void setStartTime(double startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.setDoubleValue(startTime);\r\n }\r\n }",
"public void setTime( Date time ) {\n this.time = time;\n }",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"public void setCurrentTime(long currentTime) {\n this.currentTime = currentTime;\n }",
"public void setTime(int time) {\n\n\t\tthis.time = time;\n\t}",
"private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }",
"public void setTime(AbsoluteDate date)\r\n {\r\n CoreModel coreModel = CoreModel.getDefault();\r\n coreModel.changeTimepoint(getUnderlyingElement(), date, true);\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(long time) {\n this.time = time;\n }",
"public static void set(long time) {\n\t\tWorldTime.absoluteTime = time;\n\t}",
"public void setTime(float time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n\t\tthis.time = time;\n\t}",
"public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}",
"void setTime(){\n gTime += ((float)millis()/1000 - millisOld)*(gSpeed/4);\n if(gTime >= 4) gTime = 0;\n millisOld = (float)millis()/1000;\n }",
"@Override\n public void setExecutionTime(double adjustedExecutionTime)\n {\n this.adjustedExecutionTime = adjustedExecutionTime;\n }",
"public void setTimeNow(Date timeNow) {\r\n this.timeNow = timeNow;\r\n }",
"public void xsetStartTime(org.landxml.schema.landXML11.GPSTime startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.set(startTime);\r\n }\r\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"public void setTime(Date time) {\n this.time = new Date(time.getTime());\n }",
"public void updateTime() {\n\t\tthis.currentTime = System.currentTimeMillis();\n\t}",
"public void setRequestedTime(java.util.Calendar requestedTime)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUESTEDTIME$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REQUESTEDTIME$2);\n }\n target.setCalendarValue(requestedTime);\n }\n }",
"public void setCurrentTime(double currentTime) {\n\t\tthis.currentTime = currentTime;\n\t}",
"public void setRechargeTime(Skills skill, int time);",
"public abstract void setEndTime(Date endTime);",
"public void setTime(long time) {\r\n this.time.setTime(time);\r\n }",
"@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}",
"public void setSettleTime(Date settleTime) {\n this.settleTime = settleTime;\n }",
"public void setTime(String str) {\n patrolView.setTime(DateTool.getCurrDate(), DateTool.getCurrTime());\n }",
"private void setUpdateTriggerTime(int value) {\n bitField0_ |= 0x00000002;\n updateTriggerTime_ = value;\n }",
"public void setDealingTime(Date dealingTime)\n/* */ {\n/* 171 */ this.dealingTime = dealingTime;\n/* */ }",
"public void setcTime(Date cTime) {\r\n this.cTime = cTime;\r\n }",
"public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }",
"public void xsetRequestedTime(org.apache.xmlbeans.XmlDateTime requestedTime)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDateTime target = null;\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(REQUESTEDTIME$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(REQUESTEDTIME$2);\n }\n target.set(requestedTime);\n }\n }",
"public void setMaxTime(int aMaxTime)\n{\n // Set max time\n _maxTime = aMaxTime;\n \n // If time is greater than max-time, reset time to max time\n if(getTime()>_maxTime)\n setTime(_maxTime);\n}",
"public edu.pa.Rat.Builder setTime(int value) {\n validate(fields()[0], value);\n this.time = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"private void setTime(Instant time) {\n this.time = time;\n }",
"public void setActTime(java.lang.String param) {\r\n localActTimeTracker = param != null;\r\n\r\n this.localActTime = param;\r\n }",
"public void setaTime(Date aTime) {\r\n this.aTime = aTime;\r\n }",
"public void setUpdatime(Date updatime) {\n this.updatime = updatime;\n }",
"public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }",
"public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }",
"@Override\n public void setSleepTime(int st) {\n this.sleepTime = st;\n\n // notify the update thread so that it can recalculate\n if (updateThread.isRunning())\n updateThread.interrupt();\n }",
"public static void setTime( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}",
"private void setTimeLimit() {\n\t\t// Set the minimum time for \"Departing Time\" spinner\n\t\t// based on current selected combo box item\n\t\tview.setModifyTimeLimit(model.getDepartTime(view\n\t\t\t\t.getModifyStationIndex()));\n\t}",
"public final void setExpiryTime(long expire) {\n\t\tm_tmo = expire;\n\t}",
"public void setTime(Date date) {\n time = date;\n renderCaption();\n }",
"public void setTime(int mins, int sec){\r\n this.Minutes = mins;\r\n this.Seconds = sec;\r\n }"
] | [
"0.6669783",
"0.65261865",
"0.6425785",
"0.63669485",
"0.63200164",
"0.62697995",
"0.62692744",
"0.62564087",
"0.6202724",
"0.6197226",
"0.61830753",
"0.61799735",
"0.61458385",
"0.6124361",
"0.61218864",
"0.6121002",
"0.6117156",
"0.6115167",
"0.609624",
"0.6067576",
"0.60564685",
"0.6053653",
"0.6052973",
"0.60431707",
"0.6041043",
"0.60337293",
"0.60337293",
"0.60337293",
"0.6023624",
"0.6023624",
"0.6023624",
"0.6011127",
"0.6010007",
"0.60019",
"0.5998513",
"0.5998513",
"0.5998513",
"0.5998513",
"0.59980845",
"0.5987817",
"0.59688306",
"0.59687793",
"0.5964811",
"0.5961447",
"0.5961301",
"0.5954635",
"0.5951786",
"0.5941831",
"0.5941132",
"0.5931456",
"0.5930032",
"0.5918063",
"0.59179306",
"0.5917819",
"0.5917819",
"0.5917819",
"0.59153605",
"0.5912316",
"0.58999735",
"0.58981425",
"0.58891857",
"0.5879581",
"0.5879125",
"0.58762455",
"0.58743757",
"0.58588374",
"0.58588374",
"0.58588374",
"0.58588374",
"0.5850802",
"0.5850802",
"0.58398896",
"0.5835276",
"0.58155096",
"0.5815225",
"0.5811878",
"0.5809522",
"0.5805657",
"0.5791132",
"0.57851166",
"0.5781592",
"0.57737786",
"0.5771863",
"0.577132",
"0.5768819",
"0.5762836",
"0.57617617",
"0.57605696",
"0.5749613",
"0.5744279",
"0.5743147",
"0.5738848",
"0.5734126",
"0.5730471",
"0.57199556",
"0.5718954",
"0.5717499",
"0.570983",
"0.57062346",
"0.5699913"
] | 0.79262674 | 0 |
interface class can't be instantiated. it can be extended// This method will find an User instance in the database by its email. Note that this method is not implemented and its working code will be automagically generated from its signature by Spring Data JPA. | public User findByEmail(String email); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"User findUserByEmail(String email) throws Exception;",
"public User findUserByEmail(final String email);",
"User find(String email);",
"@Override\n public User getUserByEmail(final String email){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where email = :email\");\n query.setParameter(\"email\", email);\n return (User) query.uniqueResult();\n }",
"public User getUserByEmail(String email);",
"public User getUserByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User getUserByEmail(final String email);",
"User getUserByEmail(String email);",
"public User getUser(String emailId);",
"public User getUser(String email);",
"ServiceUserEntity getUserByEmail(String email);",
"public User retrieveUserByEmail(String email) throws ApplicationException;",
"User findUserByEmail(String userEmail);",
"UserEntity findByEmail(String email);",
"public User readByEmail(String email) throws DaoException;",
"public User get(String emailID);",
"Optional<User> findByEmail(String email);",
"Optional<User> findByEmail(String email);",
"public User findByEmail(String email){\n return userRepository.findByEmail(email);\n }",
"@Override\n public TechGalleryUser getUserByEmail(final String email) throws NotFoundException {\n TechGalleryUser tgUser = userDao.findByEmail(email);\n// TechGalleryUser tgUser = userDao.findByEmail(\"example@example.com\");\n if (tgUser == null) {\n throw new NotFoundException(ValidationMessageEnums.USER_NOT_EXIST.message());\n } else {\n return tgUser;\n }\n }",
"@Override\r\n\tpublic User getByMail(String eMail) {\n\r\n\t\treturn userDao.get(eMail);\r\n\t}",
"public AppUser findByEmail(String email);",
"@Override\n\tpublic ERSUser getUserByEmail(String email) {\n\t\treturn userDao.selectUserByEmail(email);\n\t}",
"@Override\n public OpenScienceFrameworkUser findOneUserByEmail(final String email) {\n final OpenScienceFrameworkUser user = findOneUserByUsername(email);\n if (user != null) {\n return user;\n }\n\n // check emails\n try {\n // JPA Hibernate does not support postgres query array operations, use postgres native queries\n // `query.setParameter()` does not work, use string concatenation instead\n final Query query= entityManager.createNativeQuery(\n \"select u.* from osf_osfuser u where u.emails @> '{\" + email + \"}'\\\\:\\\\:varchar[]\",\n OpenScienceFrameworkUser.class\n );\n return (OpenScienceFrameworkUser) query.getSingleResult();\n } catch (final PersistenceException e) {\n LOGGER.error(e.toString());\n return null;\n }\n }",
"public User getUserByEmail(String email)throws EntityNotFoundException\n\t{\n\t\treturn userDao.getById(email);\n\t}",
"@Override\n\tpublic Users findUserByEmail(String email) {\n\t\treturn iUserDao.findUserByEmail(email);\n\t}",
"UserDTO findUserByEmail(String email);",
"@Override\n\tpublic User getUser(String email) {\n\t\treturn userDatabase.get(email);\n\t}",
"@Override\n public User getByEmail(String email) {\n List<JdbcUser> jdbcUserList = jdbcTemplate.query(\"SELECT * FROM users WHERE email=?\", ROW_MAPPER, email);\n JdbcUser jdbcUser = DataAccessUtils.singleResult(jdbcUserList);\n if (jdbcUser == null) {\n return null;\n }\n return convertToUser(jdbcUser);\n }",
"public User getUser(String email) {\n\n Query query = new Query(\"User\")\n .setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if(userEntity == null) {return null; }\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n //ArrayList<String> advisees = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisees\")).split(\" \")));\n //ArrayList<String> advisors = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisors\")).split(\" \")));\n String fn = (String) userEntity.getProperty(\"firstName\");\n String ln = (String) userEntity.getProperty(\"lastName\");\n User user = new User(email, fn, ln, aboutMe);\n return user;\n\n }",
"public static UserEntity search(String email) {\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\n\t\tQuery gaeQuery = new Query(\"users\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\t\t\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t \n\t\t\tif (entity.getProperty(\"email\").toString().equals(email)) {\n\t\t\t\tUserEntity returnedUser = new UserEntity(entity.getProperty(\n\t\t\t\t\t\t\"name\").toString(), entity.getProperty(\"email\")\n\t\t\t\t\t\t.toString());\n\t\t\t\treturnedUser.setId(entity.getKey().getId());\n\t\t\t\treturn returnedUser;\n\t\t\t }\nelse{\n\t\t\t\t\n }\n\t\t}\n\n\t\treturn null;\n\t}",
"public Users findBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n Users registeredUser = (Users) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }",
"public static User findUserByEmail(String email) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserByEmail = \"SELECT * FROM public.member \"\n + \"WHERE email = '\" + email + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserByEmail);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }",
"@Override\n\tpublic User getUser(String email){\n\t\tif (userExists(email) == true)\n\t\t\treturn users[searchIndex(email)];\n\t\telse\n\t\t\treturn null;\n\t}",
"public UsersModel getUserById(String userEmail);",
"@Override\n\tpublic User findByEmail(String email)\n\t{\n\t\tif (email == null) return null;\n\t\n\t\tString property = User.PROP_EMAIL;\n\t\tLabel label = RoostNodeType.USER;\n\t\tUser user = findByUniqueProperty(label, property, email);\n\t\t\n\t\treturn user;\n\t}",
"@Query(\"select u from User u where u.email = :email\")\n User getUserByEmail(@Param(\"email\") String email);",
"public User getUser(String email) {\r\n\t\tOptional<User> optionalUser = null;\r\n\t\tUser user = null;\r\n\t\ttry {\r\n\t\t\toptionalUser = userList().stream().filter(u -> u.getUserEmail().equals(email)).findFirst();\r\n\t\t\tif (optionalUser.isPresent()) {\r\n\t\t\t\tuser = optionalUser.get();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"error find user : \" + email + \" \" + e);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn user;\r\n\t}",
"public interface UserRepository extends JpaRepository<User, String> {\n\n User findByEmail(String email);\n\n}",
"@Override\n\tpublic UserVO searchEmail(String email) throws Exception {\n\t\treturn dao.searchEmail(email);\n\t}",
"public User getUserByEmail(final String email) {\n return em.find(User.class, email.toLowerCase());\n }",
"public interface UserRepository extends JpaRepository<User , Long>{\n\n User findByEmail(final String email);\n}",
"Optional<JUser> readByEmail(String email);",
"public User findByEmail(String email) {\n return userRepository.findByEmail(email);\n }",
"public User findByEmail(String email) {\n return userRepository.findByEmail(email);\n }",
"@Override\n public final CustomerUser getCustomerUserByEmail(final String email) {\n\treturn (CustomerUser) getEntityManager()\t\n\t\t.createQuery(\"select customer from \"\n\t\t\t+ CustomerUser.class.getName()\n\t\t\t+ \" as customer where customer.email =:email\")\n\t\t.setParameter(\"email\", email)\n\t\t.getSingleResult();\n }",
"public User getUser(String email) {\n\n Query query = new Query(\"User\").setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if (userEntity == null) {\n return null;\n }\n\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n User user = new User(email, aboutMe);\n\n return user;\n }",
"@Query(value = \"SELECT user FROM User user WHERE user.active = 1 AND user.email = :email\")\n User findByEmailId(@Param(\"email\") String email);",
"@SuppressWarnings(\"unchecked\")\n\tpublic User getUserByEmail(String email, User user) {\n\t\tSession session = sessionFactory.openSession();\n\t\tList<User> userList = new ArrayList<>();\n\t\tuserList = (List<User>) session.createQuery(\"from User\");\n\t\tfor (User tempUser : userList) {\n\t\t\tif (tempUser.getEmail().equalsIgnoreCase(email)) {\n\t\t\t\tuser = tempUser;\n\t\t\t\tSystem.out.println(\"get uswer by email: \" + user);\n\t\t\t\treturn user;\n\t\t\t}\n\t\t}\n\t\treturn user;\n\t}",
"@Transactional\r\n\tpublic User getUserByEmail(String email) {\n\t\treturn cuser.getUserByEmail(email);\r\n\t}",
"Optional<User> findOneByEmail(String email);",
"User findOneByMail(String mail);",
"public interface UserRepository extends JpaRepository<Users, Integer> {\n Users findByEmail(String email);\n}",
"public User getUserByEmail(String email){\n\t\tif(email == null)\n\t\t\treturn null;\n\t\tSessionFactory sf = HibernateUtil.getSessionFactory();\n\t\tSession session = sf.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry{\n\t\t\tCriteria criteria = session.createCriteria(User.class);\n\t\t\tObject obj = criteria.add(Restrictions.eq(\"email\", email)).uniqueResult();\n\t\t\tif(obj == null)\n\t\t\t\treturn null;\n\t\t\tUser user = (User)obj;\n\t\t\ttx.commit();\n\t\t\treturn user;\t\t\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}",
"public UserDTO findByEmail(String email) throws ApplicationException {\n\n\t\tlog.debug(\"Model findByLogin Started\");\n\t\tConnection conn = null;\n\t\tUserDTO dto = null;\n\n\t\tStringBuffer sql = new StringBuffer(\"Select * from st_user where email=?\");\n\n\t\ttry {\n\t\t\tconn = JDBCDataSource.getConnection();\n\t\t\tPreparedStatement stmt = conn.prepareStatement(sql.toString());\n\t\t\tstmt.setString(1, email);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tdto = new UserDTO();\n\t\t\t\tdto.setId(rs.getLong(1));\n\t\t\t\tdto.setFirstName(rs.getString(2));\n\t\t\t\tdto.setLastName(rs.getString(3));\n\t\t\t\tdto.setEmail(rs.getString(4));\n\t\t\t\tdto.setPassword(rs.getString(5));\n\t\t\t\tdto.setDob(rs.getDate(6));\n\t\t\t\tdto.setMobileNo(rs.getString(7));\n\t\t\t\tdto.setRoleId(rs.getLong(8));\n\t\t\t\tdto.setGender(rs.getString(9));\n\t\t\t\tdto.setCreatedBy(rs.getString(10));\n\t\t\t\tdto.setModifiedBy(rs.getString(11));\n\t\t\t\tdto.setCreatedDatetime(rs.getTimestamp(12));\n\t\t\t\tdto.setModifiedDatetime(rs.getTimestamp(13));\n\n\t\t\t}\n\t\t\trs.close();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlog.error(\"Database Exception\", e);\n\t\t\tthrow new ApplicationException(\"Exception:Exception in getting User by login\");\n\n\t\t} finally {\n\t\t\tJDBCDataSource.closeConnection(conn);\n\t\t}\n\t\tlog.debug(\"Model findByLogin End\");\n\t\treturn dto;\n\t}",
"public User getUserByEmail(String email) throws Exception {\n\t\tSession session = null;\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\tsession = getSessionFactory().openSession();\n\t\t\tif(session != null) {\n\t\t\t\ttx = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"FROM User u where u.email =:email\");\n\t\t\t\tquery.setParameter(\"email\", email);\n\t\t\t\tList list = query.list();\n\t\t\t\tif(list != null && list.size() >0) {\n\t\t\t\t\treturn (User)list.get(0);\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t} finally{\n\t\t\tif(tx != null) {\n\t\t\t\ttx.commit();\n\t\t\t}\n\t\t\tif(session != null) {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t}\n\t}",
"public VendorUser findVuserBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n VendorUser registeredUser = (VendorUser) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }",
"Account findByEmail(String email);",
"CustomerEntity findByEmail( final String email );",
"public Student findByEmail(String email);",
"@Override\n public User getUserByMailAndPassword(String mail, String password) { String hql = \"SELECT u FROM User u WHERE u.f_mail=:mail and u.f_password=:password\";\n// Query query = getSession().createQuery(hql)\n// .setParameter(\"mail\", mail)\n// .setParameter(\"password\", password);\n// return (User) query.uniqueResult();\n//\n Criteria criteria = getSession().createCriteria(User.class)\n .add(Restrictions.eq(\"mail\", mail))\n .add(Restrictions.eq(\"password\", password));\n if (criteria.list().size() > 0) {\n return (User) criteria.uniqueResult();\n } else {\n return null;\n }\n }",
"public User getUser(String email) {\n\t\tLog.i(TAG, \"return a specific user with email.\");\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString getcurrentUser = \"select * from \" + TABLE_USER\n\t\t\t\t+ \" where email='\" + email + \"'\";\n\t\tCursor cursor = db.rawQuery(getcurrentUser, null);\n\t\tcursor.moveToFirst();\n\t\tif (cursor.isAfterLast()) return null;\n\t\tUser user = new User(cursor.getInt(0), cursor.getString(1), cursor.getString(2));\n\t\treturn user;\n\t}",
"public User getUserByEmail(String email) {\r\n\t\treturn usersPersistence.getUserByEmail(email);\r\n\t}",
"public static Utente findByEmail(String email) {\n \t\n\t\tSession session = DatabaseManager.getSession();\n Transaction tx = null;\n Utente user = null;\n \n \n try {\n tx = session.getTransaction();\n tx.begin();\n \n CriteriaBuilder builder = session.getCriteriaBuilder();\n CriteriaQuery<Utente> criteria = builder.createQuery(Utente.class);\n Root<Utente> root = criteria.from(Utente.class);\n \n criteria.select(root).where(builder.equal(root.get(Utente_.email), email));\n\n user = session.createQuery(criteria).getSingleResult();\n \n tx.commit();\n \n } catch (Exception e) {\n if (tx != null) {\n tx.rollback();\n \n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n \n return user;\n \n \n }",
"public static User getUser(String email){\n Connection connect = null;\n ResultSet set = null;\n String getUserSQL = \"SELECT * FROM users WHERE email =?\";\n User user = null;\n\n // Get User Details Try Block:\n try {\n // Set Connection:\n connect = DBConfig.getConnection();\n // Prepare SQL Statement:\n PreparedStatement statement = connect.prepareStatement(getUserSQL);\n // Set Attributes / Parameters:\n statement.setString(1, email);\n // Execute Statement:\n set = statement.executeQuery();\n // Check For Results:\n while (set.next()){\n user = new User();\n // Set User Details / Information\n user.setFirst_name(set.getString(\"first_name\"));\n user.setLast_name(set.getString(\"last_name\"));\n user.setEmail(set.getString(\"email\"));\n user.setUser_type(set.getString(\"user_type\"));\n user.setCreated_at(set.getDate(\"created_at\"));\n }\n // End Of Check For Results:.\n }catch (Exception e){\n e.printStackTrace();\n }\n return user;\n }",
"public User getUserFromEmail(final String email) {\n LOG.info(\"Getting user with email {}\", email);\n return userRepo.getUserByEmail(email);\n }",
"public User getUser(String email) {\n for (User user : list) {\n if (user.getEmail().equals(email))\n return user; // user found. Return this user.\n }\n return null; // user not found. Return null.\n }",
"@Transactional\r\n\t\t\t@Override\r\n\t\t\tpublic UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\r\n\t\t\t\tco.simplon.users.User account = service.findByEmail(email);\r\n\t\t\t\tif(account != null) {\r\n\t\t\t\t\treturn new User2(account.getEmail(), account.getPassword(), true, true, true, true,\r\n\t\t\t\t\t\t\tgetAuthorities(account.getRole()));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new UsernameNotFoundException (\"Impossible de trouver le compte :\"+ email +\".\");\n\t\t\t\t}\r\n\t\t\t}",
"@Repository\npublic interface UserRepository extends CrudRepository<User, Long> {\n User findByEmail(String email);\n}",
"public User findByEmail(String email) {\n\t\treturn repo.findByEmail(email);\r\n\t}",
"@Override\n\t@Transactional\n\tpublic UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\n\t\tUserDetails user = null;\n\t\ttry {\n\t\t\t\n\t\t\tuser = searchUser(email);\n\t\t\treturn user;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\n\t\t}\n\t}",
"public User existsProfile(String email) {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n SuperBooleanBuilder query = new SuperBooleanBuilder();\n query.put(\"email\", email);\n Search search = new Search.Builder(query.toString())\n .addIndex(INDEX_NAME)\n .addType(User.class.toString())\n .build();\n\n User result = null;\n try {\n result = client.execute(search).getSourceAsObject(User.class);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return result;\n }",
"@Override\n\t@Transactional\n\tpublic UserDetails searchUser(String email) {\n\t\ttry {\t\n\t\t\t\n\t\t\tQuery qUser = manager.createQuery(\"from Usuario where email = :email and ativo = :ativo\")\n\t\t\t\t\t.setParameter(\"email\", email)\n\t\t\t\t\t.setParameter(\"ativo\", true);\n\t\t\tList<Usuario> usuarios = qUser.getResultList();\n\t\t\t\n\t\t\t\n\t\t\tQuery qAcess = manager.createQuery(\"from Acesso where usuario.id = :id and acesso = :acesso\")\n\t\t\t\t\t.setParameter(\"id\", usuarios.get(0).getId())\n\t\t\t\t\t.setParameter(\"acesso\", true);\n\t\t\tList<Acesso> acessos = qAcess.getResultList();\n\t\t\n\t\t\t/*\n\t\t\tAcesso acesso = new Acesso();\n\t\t\tUsuario usuario = new Usuario();\n\t\t\t\n\t\t\tusuario.setNome(\"Daniel\");\n\t\t\tusuario.setEmail(\"\");\n\t\t\tacesso.setSenha(\"$2a$10$jdQpiR35ZZVdrFQYUW7q/evtl1Xr6ED3y.pIzukdgzvF0PIBtrmzS\");\n\t\t\tacesso.setAcesso(true);\n\t\t\tacesso.setUsuario(usuario);\n\t\t\t\t\t\n\t\t\treturn new UsuarioDetails(acesso.getUsuario().getNome(), acesso.getUsuario().getEmail(), acesso.getSenha(), acesso.isAcesso());\n\t\t\t*/\n\t\t\treturn new UsuarioDetails(acessos.get(0).getUsuario().getNome(), acessos.get(0).getUsuario().getEmail(), acessos.get(0).getSenha(), acessos.get(0).isAcesso());\n\t\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tmanager.close();\n\t\t}\n\t}",
"public UsersEntity getRegisteredUser(String email, String password){\n // create query to get user\n TypedQuery<UsersEntity> findUser = entityManager.createQuery(\n \"SELECT user FROM UsersEntity user WHERE user.email=:email AND user.password=:password\",\n UsersEntity.class);\n\n // set query email parameter\n findUser.setParameter(\"email\", email);\n\n // set query password parameter\n findUser.setParameter(\"password\", password);\n\n try {\n return findUser.getSingleResult();\n } catch (NoResultException e) {\n return null;\n }\n }",
"public User findByEmail(String email) {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.add(Restrictions.eq(\"email\", email));\r\n\t\tUser user = (User) crit.uniqueResult();\r\n\t\tif(user != null) {\r\n\t\t\tHibernate.initialize(user.getUserProfiles());\r\n\t\t}\r\n\t\treturn user;\r\n\t}",
"public interface UserRepository extends JpaRepository<User, Long> {\n /**\n * @param username Username to be searched from the JPA database\n * @return User object if one was found\n */\n User findByName(String username);\n\n /**\n * @param name Username or part of a username to be searched\n * @return List of users if the search criteria was met\n */\n List<User> findByNameContaining(String name);\n\n /**\n * @param email Email of user to be searched\n * @return User object if one was found with the provided email\n */\n User findByEmailIs(String email);\n}",
"@Override\n\tpublic UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\n\n\t\t Optional<com.java.redactrix.entity.User> user = userService.findUserByEmail(email);\n\t\t if(user.isPresent()) {\n\t\t\t System.out.println(\"User Found\");\n\t\t\t com.java.redactrix.entity.User getUser = user.get();\n\t\t\t String password = getUser.getPassword();\n\t\t\t return new org.springframework.security.core.userdetails.User(email, password, new ArrayList<>());\n\t\t }\n\t\t else {\n\t\t\t return null;\n\t\t }\n\t}",
"public Optional<User> findByEmail(final String email) {\n return null;\n }",
"public User findByEmail(String email) {\n\t\treturn null;\n\t}",
"Customer findByEmail(String email);",
"public User getUser(String email) {\n\t\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t\t\n\t\t\tCursor cursor = db.query(TABLE_USERS, new String[] { KEY_USER_ID, \n\t\t\t\t\tKEY_PASSWORD, KEY_EMAIL }, KEY_EMAIL + \" = ?\",\n\t\t\t\t\tnew String[] { String.valueOf(email) }, null, null, null, null);\n\t\t\tif (cursor != null)\n\t\t\t\tcursor.moveToFirst();\n\t\t\t\n\t\t\tUser user = new User(\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(KEY_PASSWORD)),\n\t\t\t\t\tcursor.getString(cursor.getColumnIndex(KEY_EMAIL)),\n\t\t\t\t\tInteger.parseInt(cursor.getString(0)) );\n\t\t\t// return user\n\t\t\treturn user;\n\t\t\t}",
"public interface AppUsersRepositoryInterface extends CrudRepository<AppUsers, Integer> {\n @Query(value=\"Select user_id, userpassword, firstname, lastname, userrole, useremail, newuser from app_users where useremail =?1\", nativeQuery = true)\n AppUsers findByEmail(String email);\n\n}",
"public UserTO getByEmail(String email) {\n\t\treturn getDao().getByEmail(email);\n\t}",
"public User getUserByEmail(String email_) {\n User user = new User();\n \n return user;\n }",
"public static User getUserByEmail(String email) {\n\t\t// getting user by email\n\t\treturn dao.getUserByEmail(email);\n\t}",
"public interface UserRepository extends JpaRepository<User, Long> {\n\n Optional<User> findOneByEmail(String email);\n}",
"Student findByEmail(String email);",
"@Override\n public User getUserById(String email) throws UserException {\n User user;\n\n if (email == null || email.equals(\"\")) {\n logger.error(\"invalid user id: \" + email);\n return null;\n }\n try {\n user = userDAO.getUserById(email);\n\n if (user == null) {\n throw new UserException(\"cannot find user to update with id: \" + email);\n }\n\n logger.info(\"created a new user successfully: \" + user.toString());\n return user;\n } catch (UserException e) {\n e.printStackTrace();\n logger.error(e.getMessage());\n return null;\n }\n }",
"public synchronized User getUser(String email) {\r\n return (email == null) ? null : email2user.get(email);\r\n }",
"@Override\n public UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\n return userRepository.findByEmail(email).orElseThrow(() -> new UsernameNotFoundException(\"User not found!\"));\n }",
"@Nullable\n public User getUserFromDatabase(String email) {\n User userAccount = null;\n try {\n SQLiteDatabase db = getReadableDatabase();\n\n Cursor userAccountCursor = db.query(\n TABLE_USERS,\n new String[]{KEY_USER_NAME, KEY_USER_EMAIL, KEY_USER_PASS, KEY_USER_PROFILE_PICTURE_URL, KEY_USER_HAS_POST_TABLE},\n KEY_USER_EMAIL + \" = ?\",\n new String[]{email},\n null,\n null,\n null\n );\n\n if (userAccountCursor != null && userAccountCursor.getCount() > 0 && userAccountCursor.moveToFirst()) {\n userAccount = new User(\n userAccountCursor.getString(0),\n userAccountCursor.getString(1),\n userAccountCursor.getString(2),\n userAccountCursor.getInt(3),\n userAccountCursor.getInt(4)\n );\n }\n\n if (userAccountCursor != null) {\n userAccountCursor.close();\n }\n\n } catch (SQLiteException e) {\n Log.d(TAG, \"Can get user account\");\n }\n\n return userAccount;\n }",
"@RequestMapping(value = \"/getUser/{userEmail}\", method = RequestMethod.GET)\n @Secured({})\n public ResponseEntity<User> getUser(@PathVariable String userEmail){\n User user = userRepository.findByEmail(userEmail);\n if (user != null) {\n return ResponseEntity.ok(user);\n } else {\n return ResponseEntity.notFound().build();\n }\n }"
] | [
"0.83879733",
"0.83793104",
"0.8358575",
"0.8325643",
"0.8324696",
"0.8324696",
"0.8304138",
"0.8304138",
"0.8304138",
"0.8304138",
"0.8304138",
"0.8304138",
"0.82780874",
"0.8270417",
"0.8247382",
"0.82370037",
"0.8234786",
"0.82065815",
"0.81687796",
"0.8166811",
"0.8146881",
"0.8137515",
"0.81148183",
"0.81148183",
"0.8061653",
"0.80002487",
"0.7977669",
"0.7932248",
"0.7912548",
"0.78567076",
"0.78237545",
"0.78185666",
"0.7797272",
"0.7787233",
"0.77518827",
"0.7748468",
"0.7716315",
"0.76982516",
"0.76819307",
"0.766605",
"0.7652465",
"0.7639398",
"0.76314515",
"0.7612882",
"0.7579267",
"0.7534246",
"0.75258756",
"0.7525811",
"0.75086176",
"0.75048596",
"0.75048596",
"0.7481631",
"0.74742055",
"0.7467702",
"0.7426699",
"0.7424313",
"0.74181265",
"0.73830295",
"0.7372979",
"0.7344212",
"0.7337312",
"0.73319036",
"0.73307097",
"0.7329308",
"0.7300815",
"0.72903526",
"0.72898227",
"0.72846985",
"0.72727406",
"0.72694325",
"0.7265356",
"0.7264164",
"0.72495437",
"0.7239237",
"0.7232134",
"0.7224239",
"0.7213562",
"0.71983165",
"0.7195263",
"0.71892184",
"0.7183225",
"0.7172748",
"0.7137647",
"0.71308494",
"0.7129326",
"0.712351",
"0.7111713",
"0.7103405",
"0.70860374",
"0.70824355",
"0.7082231",
"0.7070914",
"0.7068441",
"0.70630056",
"0.70450586",
"0.703241",
"0.6985274",
"0.6954935"
] | 0.8442217 | 2 |
TODO Autogenerated method stub | @Override
public void modifiedService(ServiceReference<ICssCodeMarker> reference, ICssCodeMarker service) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void removedService(ServiceReference<ICssCodeMarker> reference, ICssCodeMarker service) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
after the centralized computation, the core node issue H & S to landmarks forwardly | void issueCoords(final long timeStamp, final List<AddressIF> nodes,
final CB1<String> cbCoords) {
if (nodes.size() == 0) {
String errorString = "getRemoteCoords: no valid nodes";
log.warn(errorString);
cbCoords.call(CBResult.OK(), errorString);
return;
}
Barrier barrierIssue = new Barrier(true);
final StringBuffer errorBuffer = new StringBuffer();
for (AddressIF addr : nodes) {
issueCoord(timeStamp, addr, barrierIssue, errorBuffer);
}
EL.get().registerTimerCB(barrierIssue, new CB0() {
protected void cb(CBResult result) {
String errorString;
if (errorBuffer.length() == 0) {
errorString = new String("Success");
} else {
errorString = new String(errorBuffer);
}
cbCoords.call(CBResult.OK(), errorString);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void step(){\r\n\t\t\r\n\t\t\r\n\t\tsuper.step();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(marketEntryHappend){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\taddSequencesToGraphs();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(marketExitHappend){\r\n\t\t\t\r\n\t\t\tfor(int i =0; i < exitedFirms.size();i++){\r\n\t\t\t\r\n\t\t\t\tfreeCoordinates.add(new Coordinate(exitedFirms.get(i).x_coord,exitedFirms.get(i).y_coord)); \r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\tgraphOutput.step();\r\n\t\tgraphPrice.step();\r\n\t\tgraphQuality.step();\r\n\t\tgraphFirmLocations.step();\r\n\t\t//graphEnteringCosts.step();\r\n\t\tgraphAverageProbability.step();\r\n\t\tgraphTotalProfit.step();\r\n\t\tgraphNumFirms.step();\r\n\t\t\r\n\t\tgraphSingleOutput.step();\r\n\t\tgraphSinglePrice.step(); \r\n\t\tgraphSingleQuality.step(); \r\n\t\tgraphSingleFirmLocations.step();\r\n\t graphSingleProbability.step(); \r\n\t\tgraphSinglelProfit.step();\r\n\t\tgraphSingleQualityConcept.step();\r\n\t\r\n\t\tgraphClusteringCoefficient.step();\r\n\t\t\r\n\t\tgraphCumProfit.step();\r\n\t\t\r\n\t\tfor(int i=0; i < dsurfList.size();i++){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tgridSpaceList.get(i).update(locationList.get(i));;\r\n\t\t\t\r\n\t\t dsurfList.get(i).updateDisplay();\r\n\t\t }\r\n\t\t\r\n\t\t\tlayout.setList(nodeList);\r\n\t\t\r\n\t\t layout.updateLayout();\r\n\t\t surface.updateDisplay();\r\n\t\t \r\n\t\t\r\n\t\t\r\n\t}",
"void updateLandmarks() {\n\n\t\t\tregisterUpdateLandmarksTimer();\n\n\t\t\tint m = 2;\n\t\t\tfinal int expectedLandmarks = NumberOfLandmarks + m;\n\t\t\tIterator<Long> ier = pendingHSHLandmarks.keySet().iterator();\n\n\t\t\tSet<AddressIF> tmpList = new HashSet<AddressIF>(1);\n\t\t\tLong curRecord = null;\n\n\t\t\t// get a non-empty list of landmarks\n\t\t\twhile (ier.hasNext()) {\n\t\t\t\tLong nxt = ier.next();\n\t\t\t\tif (pendingHSHLandmarks.get(nxt).IndexOfLandmarks != null\n\t\t\t\t\t\t&& pendingHSHLandmarks.get(nxt).IndexOfLandmarks.size() > 0) {\n\t\t\t\t\ttmpList\n\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(nxt).IndexOfLandmarks);\n\t\t\t\t\tcurRecord = nxt;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if empty, we need to update landmarks immediately\n\t\t\tif (tmpList.size() == 0) {\n\t\t\t\t// remove the record\n\t\t\t\tif (curRecord != null) {\n\t\t\t\t\tpendingHSHLandmarks.get(curRecord).clear();\n\t\t\t\t\tpendingHSHLandmarks.remove(curRecord);\n\t\t\t\t} else {\n\t\t\t\t\t// null curRecord\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tfinal Long Timer = curRecord;\n\t\t\t\t// ping landmarks, if several of them fails, p percentage p=0.2\n\t\t\t\t// , we remove the records, and restart the landmark process\n\t\t\t\t// =================================================================\n\t\t\t\tfinal List<AddressIF> aliveLandmarks = new ArrayList<AddressIF>(\n\t\t\t\t\t\t1);\n\n\t\t\t\tNNManager.collectRTTs(tmpList, new CB2<Set<NodesPair>, String>() {\n\t\t\t\t\tprotected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\t// send data request message to the core node\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//====================================================\n\t\t\t\t\t\t\t\t\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\t\t\t\t\t\t\t\t\t//=====================================================\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\t// ==================================================================\n\n\t\t\t// expected landmarks, K+m\n\n\t\t\tfinal Set<AddressIF> pendingNodes = new HashSet<AddressIF>(1);\n\n\t\t\tgetRandomNodes(pendingNodes, expectedLandmarks);\n\n\t\t\t// remove myself\n\t\t\tif (pendingNodes.contains(Ninaloader.me)) {\n\t\t\t\tpendingNodes.remove(Ninaloader.me);\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: Total number of landmarks are: \"\n\t\t\t\t\t+ pendingNodes.size());\n\n\t\t\tif (pendingNodes.size() == 0) {\n\t\t\t\tString errorString = \"$: HSH no valid nodes\";\n\t\t\t\tSystem.out.println(errorString);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBarrier barrierUpdate = new Barrier(true);\n\t\t\tfinal StringBuffer errorBuffer = new StringBuffer();\n\n\t\t\tfinal long TimeStamp = System.currentTimeMillis();\n\n\t\t\tfor (AddressIF addr : pendingNodes) {\n\t\t\t\tseekLandmarks(TimeStamp, addr, barrierUpdate,\n\t\t\t\t\t\tpendingHSHLandmarks, errorBuffer);\n\t\t\t}\n\n\t\t\tEL.get().registerTimerCB(barrierUpdate, new CB0() {\n\t\t\t\tprotected void cb(CBResult result) {\n\t\t\t\t\tString errorString;\n\t\t\t\t\tif (errorBuffer.length() == 0) {\n\t\t\t\t\t\terrorString = new String(\"Success\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrorString = new String(errorBuffer);\n\t\t\t\t\t}\n\n\t\t\t\t\t// finish the landmark seeking process\n\n\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Long\n\t\t\t\t\t\t\t.valueOf(TimeStamp))\n\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks == null) {\n\t\t\t\t\t\tSystem.out.println(\"$: NULL elements! \");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks\n\t\t\t\t\t\t\t.size() < (0.7 * expectedLandmarks)) {\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp))\n\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\tpendingHSHLandmarks.remove(Long.valueOf(TimeStamp));\n\t\t\t\t\t\tSystem.out.println(\"$: not enough landmark nodes\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t//\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp)).readyForUpdate = true;\n\t\t\t\t\t\tSystem.out.println(\"$: enough landmark nodes\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(1);\n\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks);\n\t\t\t\t\t\tupdateRTTs(Long.valueOf(TimeStamp), nodes, new CB1<String>() {\n\t\t\t\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\t\t\t\tswitch (ncResult.state) {\n\t\t\t\t\t\t\t\tcase OK: {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase ERROR:\n\t\t\t\t\t\t\t\tcase TIMEOUT: {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnodes.clear();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"@SuppressWarnings(\"unused\")\n\tpublic void execute(){\n\t\tdouble mtrFrontRight;\n\t\tdouble mtrFrontLeft;\n\t\tdouble mtrBackRight;\n\t\tdouble mtrBackLeft;\n\t\t\n\t\tdouble speed = 3.0; //The variable we are assigning\n\t\tdouble yawHeading = 0; //Obtained from Robot class\n\t\t\n\t\tdouble getCurrentSetPoint = 0.0; //This Will be obtained via a variable set in the turn to heading class as it is obtained. (possible issues)\n\t\tdouble actualEncoderSetpoint; //Represents the value the encoder is actually at.\n\t\t\n\t\tdouble zeroHeading; //This is a weird one. it is there because of the odd difference calculations issue of say being 5 off of zero and heading being 355;\n\t\t\n\t\t\n\t\t//Switch structure stuff\n\t\tint forward = 0;\n\t\tint left = 1;\n\t\tint right = 2;\n\t\tint state = forward;\n\t\t\n\t\t\n\t\tif(getCurrentSetPoint == 0) {\n\t\t\tstate = forward;\n\t\t} else if(getCurrentSetPoint == 90) {\n\t\t\tstate = right;\n\t\t} else if(getCurrentSetPoint == 270) {\n\t\t\tstate = left;\n\t\t}\n\t\t\n\t\t//where the weirdness of zero heading comes into play.\n\t\tif(yawHeading > 180){\n\t\t\tzeroHeading = 360 - yawHeading;\n\t\t\tzeroHeading = -(zeroHeading);\n\t\t} else {\n\t\t\tzeroHeading = yawHeading;\n\t\t}\n\t\t\n\t\t//Here comes the fun math.\n\t\t// oh yeah and brackets are fun just saying.\n\t\t//try not to get cancer.\n\t\t\n\t\tswitch (state) {\n\t\t\t\n\t\t\tcase 0 :\n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\tcase 1 :\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\t\tmtrBackRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrFrontLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\tcase 2 : \n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}",
"void updateDistMatrix(long timeStamp) {\n\n\t\t\t// for each alive landmark, when its ping results are received by\n\t\t\t// the source node,\n\t\t\t// we start the clustering computation process\n\t\t\t// TODO: remove landmarks that return a subset of results 10-12\n\t\t\tLong timer = Long.valueOf(timeStamp);\n\n\t\t\tif (!pendingHSHLandmarks.containsKey(timer)\n\t\t\t\t\t|| pendingHSHLandmarks.get(timer).IndexOfLandmarks == null) {\n\t\t\t\tSystem.err.println(\"$: Null elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHSHRecord CurList = pendingHSHLandmarks.get(timer);\n\t\t\tint NoOfLandmarks = CurList.IndexOfLandmarks.size();\n\t\t\tif(NoOfLandmarks<=0){\n\t\t\t\tSystem.err.println(\"$: Empty elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords = CurList.pendingLandmarkLatency;\n\t\t\tif (LatRecords == null) {\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"$: Null HashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tint receivedLandmarks = LatRecords.keySet().size();\n\t\t\t// empty or incomplete records\n\t\t\tif (LatRecords.isEmpty() || receivedLandmarks < 0.8 * NoOfLandmarks) {\n\t\t\t\tSystem.err.println(\"$: Null LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: total landmarks: \" + NoOfLandmarks\n\t\t\t\t\t+ \", received from \" + receivedLandmarks);\n\t\t\t// use the IndexOfLandmarks as the index of nodes\n\n\t\t\tif (CurList.DistanceMatrix == null\n\t\t\t\t\t|| CurList.DistanceMatrix.length != NoOfLandmarks) {\n\t\t\t\tCurList.DistanceMatrix = null;\n\t\t\t\tCurList.DistanceMatrix = new double[NoOfLandmarks][NoOfLandmarks];\n\t\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\t\tfor (int j = 0; j < NoOfLandmarks; j++) {\n\t\t\t\t\t\tCurList.DistanceMatrix[i][j] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// fill elements\n\t\t\tIterator<Entry<AddressIF, ArrayList<RemoteState<AddressIF>>>> entrySet = LatRecords\n\t\t\t\t\t.entrySet().iterator();\n\n\t\t\twhile (entrySet.hasNext()) {\n\t\t\t\tEntry<AddressIF, ArrayList<RemoteState<AddressIF>>> tmp = entrySet\n\t\t\t\t\t\t.next();\n\t\t\t\t// empty lists\n\t\t\t\tif (tmp.getValue() == null || tmp.getValue().size() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// ===============================================================\n\t\t\t\tAddressIF srcNode = tmp.getKey();\n\t\t\t\t// find the index of landmarks\n\t\t\t\tint from = CurList.IndexOfLandmarks.indexOf(srcNode);\n\t\t\t\tIterator<RemoteState<AddressIF>> ier = tmp.getValue()\n\t\t\t\t\t\t.iterator();\n\t\t\t\tif (from < 0) {\n\t\t\t\t\t// already removed landmarks!\n\t\t\t\t\tSystem.out.println(\"already removed landmarks!\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\twhile (ier.hasNext()) {\n\t\t\t\t\tRemoteState<AddressIF> NP = ier.next();\n\n\t\t\t\t\tif (!CurList.IndexOfLandmarks.contains(NP.getAddress())) {\n\t\t\t\t\t\t// not landmarks\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tint to = CurList.IndexOfLandmarks.indexOf(NP.getAddress());\n\n\t\t\t\t\tdouble rtt = NP.getSample();\n\t\t\t\t\tif (to < 0 || rtt < 0) {\n\t\t\t\t\t\tSystem.err.println(\"$: failed to find the landmarks!\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// System.out.print(\" <\"+to+\", \"+from+\", \"+rtt+\"> \");\n\t\t\t\t\t\t// Note: symmetric RTT\n\t\t\t\t\t\tif (CurList.DistanceMatrix[to][from] > 0) {\n\t\t\t\t\t\t\tdouble avgRTT;\n\t\t\t\t\t\t\tif (rtt > 0) {\n\t\t\t\t\t\t\t\tavgRTT = (rtt + CurList.DistanceMatrix[to][from]) / 2;\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tavgRTT = CurList.DistanceMatrix[to][from];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = avgRTT;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = avgRTT;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// TODO: missing elements\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = rtt;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = rtt;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ======================================================\n\n\t\t\tboolean markZero = false;\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int column = 0; column < NoOfLandmarks; column++) {\n\t\t\t\t\tif (i == column) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (CurList.DistanceMatrix[i][column] > 0) {\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (sum < 0.7 * NoOfLandmarks) {\n\t\t\t\t\tmarkZero = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (markZero) {\n\t\t\t\t// CurList.DistanceMatrix=null;\n\t\t\t\tSystem.err.println(\"$: incomplete CurList.DistanceMatrix!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n\\n$: HSH: Start HSH clustering computation process!\");\n\n\t\t\t// TODO: find accurate clustering number\n\t\t\tint cluNum = MatrixOps.findClusteringNum(CurList.DistanceMatrix);\n\n\t\t\tif(cluNum<=0){\n\t\t\t\tSystem.err.println(\"the clustering number is <=0\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t// version control for dimensions\n\t\t\tif (CurList.S != null && CurList.S.length == cluNum) {\n\n\t\t\t} else {\n\t\t\t\tCurList.version = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\t// initialize the matrixes for computation\n\t\t\tCurList.H = new double[NoOfLandmarks][cluNum];\n\t\t\tCurList.S = new double[cluNum][cluNum];\n\t\t\t// CurList.Coord = new double[cluNum];\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.H[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < cluNum; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.S[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// update coordinate vectors\n\t\t\tMatrixOps.symmetric_NMF(NoOfLandmarks, cluNum,\n\t\t\t\t\tCurList.DistanceMatrix, CurList.H, CurList.S);\n\t\t\tCurList.alreadyComputedClustering = true;\n\n\t\t\t// TODO: H,S is Null\n\t\t\tif (CurList.H == null || CurList.S == null) {\n\t\t\t\tSystem.err.println(\"$: after HSH computation, NULL results!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// after centralized computation, the core node should send its H &\n\t\t\t// S to all the landmark nodes\n\t\t\tissueCoords(timeStamp, CurList.IndexOfLandmarks, new CB1<String>() {\n\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Core node has issued its H & S to all landmarks.\");\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"@Override public final void compute2() {\n _t0 = System.nanoTime();\n assert _left == null && _rite == null && _res == null;\n _profile._mapstart = System.currentTimeMillis();\n if( _hi-_lo >= 2 ) { // Multi-chunk case: just divide-and-conquer to 1 chunk\n final int mid = (_lo+_hi)>>>1; // Mid-point\n _left = clone();\n _rite = clone();\n _left._profile = new MRProfile(this);\n _rite._profile = new MRProfile(this);\n _left._hi = mid; // Reset mid-point\n _rite._lo = mid; // Also set self mid-point\n addToPendingCount(1); // One fork awaiting completion\n _left.fork(); // Runs in another thread/FJ instance\n _rite.compute2(); // Runs in THIS F/J thread\n _profile._mapdone = System.currentTimeMillis();\n return; // Not complete until the fork completes\n }\n // Zero or 1 chunks, and further chunk might not be homed here\n if( _hi > _lo ) { // Single chunk?\n Vec v0 = _fr.anyVec();\n if( _run_local || v0.chunkKey(_lo).home() ) { // And chunk is homed here?\n\n // Make decompression chunk headers for these chunks\n Vec vecs[] = _fr.vecs();\n Chunk bvs[] = new Chunk[vecs.length];\n NewChunk [] appendableChunks = null;\n for( int i=0; i<vecs.length; i++ )\n if( vecs[i] != null ) {\n assert _run_local || vecs[i].chunkKey(_lo).home()\n : \"Chunk=\"+_lo+\" v0=\"+v0+\", k=\"+v0.chunkKey(_lo)+\" v[\"+i+\"]=\"+vecs[i]+\", k=\"+vecs[i].chunkKey(_lo);\n try{\n bvs[i] = vecs[i].chunkForChunkIdx(_lo);\n } catch(Throwable t){\n System.err.println(\"missing chunk in MRTask \" + getClass().getName());\n t.printStackTrace();\n throw new RuntimeException(t);\n }\n }\n if(_noutputs > 0){\n final VectorGroup vg = vecs[0].group();\n _appendables = new AppendableVec[_noutputs];\n appendableChunks = new NewChunk[_noutputs];\n for(int i = 0; i < _appendables.length; ++i){\n _appendables[i] = new AppendableVec(vg.vecKey(_vid+i),new long[4],0);\n appendableChunks[i] = (NewChunk)_appendables[i].chunkForChunkIdx(_lo);\n }\n }\n // Call all the various map() calls that apply\n _profile._userstart = System.currentTimeMillis();\n if( _fr.vecs().length == 1 ) map(bvs[0]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2]);\n if( true ) map(bvs );\n if(_noutputs == 1){ // convenience versions for cases with single output.\n if( _fr.vecs().length == 1 ) map(bvs[0], appendableChunks[0]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1],appendableChunks[0]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2],appendableChunks[0]);\n if( true ) map(bvs, appendableChunks[0]);\n }\n if(_noutputs == 2){ // convenience versions for cases with 2 outputs (e.g split).\n if( _fr.vecs().length == 1 ) map(bvs[0], appendableChunks[0],appendableChunks[1]);\n if( _fr.vecs().length == 2 ) map(bvs[0], bvs[1],appendableChunks[0],appendableChunks[1]);\n if( _fr.vecs().length == 3 ) map(bvs[0], bvs[1], bvs[2],appendableChunks[0],appendableChunks[1]);\n if( true ) map(bvs, appendableChunks[0],appendableChunks[1]);\n }\n map(bvs,appendableChunks);\n _res = self(); // Save results since called map() at least once!\n // Further D/K/V put any new vec results.\n _profile._closestart = System.currentTimeMillis();\n for( Chunk bv : bvs ) bv.close(_lo,_fs);\n if(_noutputs > 0) for(NewChunk nch:appendableChunks)nch.close(_lo, _fs);\n }\n }\n _profile._mapdone = System.currentTimeMillis();\n tryComplete(); // And this task is complete\n }",
"@Override public final void compute2() {\n assert _left == null && _rite == null && _res == null;\n if( _hi-_lo >= 2 ) { // Multi-chunk case: just divide-and-conquer to 1 chunk\n final int mid = (_lo+_hi)>>>1; // Mid-point\n _left = clone();\n _rite = clone();\n _left._hi = mid; // Reset mid-point\n _rite._lo = mid; // Also set self mid-point\n addToPendingCount(1); // One fork awaiting completion\n _left.fork(); // Runs in another thread/FJ instance\n _rite.compute2(); // Runs in THIS F/J thread\n return; // Not complete until the fork completes\n }\n // Zero or 1 chunks, and further chunk might not be homed here\n if( _hi > _lo ) { // Single chunk?\n Vec v0 = _fr.firstReadable();\n if( v0.chunkKey(_lo).home() ) { // And chunk is homed here?\n\n // Make decompression chunk headers for these chunks\n Chunk bvs[] = new Chunk[_fr._vecs.length];\n for( int i=0; i<_fr._vecs.length; i++ )\n if( _fr._vecs[i] != null )\n bvs[i] = _fr._vecs[i].elem2BV(_lo);\n\n // Call all the various map() calls that apply\n if( _fr._vecs.length == 1 ) map(bvs[0]);\n if( _fr._vecs.length == 2 && bvs[0] instanceof NewChunk) map((NewChunk)bvs[0], bvs[1]);\n if( _fr._vecs.length == 2 ) map(bvs[0], bvs[1]);\n if( _fr._vecs.length == 3 ) map(bvs[0], bvs[1], bvs[2]);\n if( true ) map(bvs );\n _res = self(); // Save results since called map() at least once!\n // Further D/K/V put any new vec results.\n for( Chunk bv : bvs )bv.close(_lo+_outputChkOffset,_fs);\n }\n }\n tryComplete(); // And this task is complete\n }",
"private void operate(){//DONT EDIT\n\t\tholo=getHologramProcessor();\n\t\tref=getReferenceProcessor();\n dx=getDouble(dxTF);\n dy=getDouble(dyTF);\n Tolerance=getDouble(toleranceTF);\n wavelength=getDouble(wavelengthTF);\n distance=getDouble(distanceTF);\n Sigma=getInteger(sigmaTF);\n Iterations=getInteger(iterationsTF);\n \n if (holo == null) \n throw new ArrayStoreException(\"reconstruct: No hologram selected.\");\n else \n\t\t{\n\n\t\t\t//rec = HoloJUtils.reconstruct(holo.getWidth(),1,sideCenter,holo,butterworth);\n rec = HoloJUtils.reconstruct(holo,ref,distance,wavelength,Iterations,Tolerance,Sigma);\n// if (ref != null)\n//\t\t\t{\n//\t\t\t Point p = new Point();\n//\t\t\t p.x = holo.getWidth()/2;\n// p.y = holo.getHeight()/2;\n//\t\t\t\trec = HoloJUtils.reconstruct(radius,ratio,p,ref,holo,butterworth);\n// }\n//\t\t\trec.setCalibration(imageCal);\n rec.setTitle(\"\"+title);\n\t\t\trec.showHolo(\"Hologram : \"+rec.getTitle()+\" :\");\n\t\t\trec.showAmplitude(\"Amplitude\");\n\t\t}\n }",
"public final void exec( int outputs, Frame fr, boolean run_local){\n fr.checkCompatible(); // Check for compatible vectors\n if((_noutputs = outputs) > 0) _vid = fr.anyVec().group().reserveKeys(outputs);\n _fr = fr; // Record vectors to work on\n _nxx = (short)H2O.SELF.index(); _nhi = (short)H2O.CLOUD.size(); // Do Whole Cloud\n _run_local = run_local; // Run locally by copying data, or run globally?\n setupLocal0(); // Local setup\n compute2();\n }",
"@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}",
"protected void execute() {\n\t\tRobotMap.leftMaster.set(ControlMode.PercentOutput, vision.blockCheck() * turnMultiplier(\"left\"));\n\t\tRobotMap.rightMaster.set(ControlMode.PercentOutput, vision.blockCheck() * turnMultiplier(\"right\"));\n\t}",
"protected void execute() {\n \n \t\n \t \n \t\n \n System.out.println((Timer.getFPGATimestamp()- starttime ) + \",\" + (RobotMap.motorLeftTwo.getEncPosition()) + \",\"\n + (RobotMap.motorLeftTwo.getEncVelocity()*600)/-4096 + \",\" + RobotMap.motorRightTwo.getEncPosition() + \",\" + (RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n /*if(endpoint > 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft+ angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight - angleorientation.getResult());\n }\n if(endpoint <= 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft- angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight + angleorientation.getResult());\n }*/\n System.out.println(this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition() + \"l\");\n System.out.println(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition() + \"r\");\n \n \n \t if(RobotMap.motorLeftTwo.getEncVelocity()!= velocityLeft)\n velocityLeft = RobotMap.motorLeftTwo.getEncVelocity(); \n velocityRight = RobotMap.motorRightTwo.getEncVelocity();\n SmartDashboard.putNumber(\"LeftWheelError\", (this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition()));\n SmartDashboard.putNumber(\"RightWheelError\",(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition()));\n SmartDashboard.putNumber(\"LeftWheelVelocity\", (RobotMap.motorLeftTwo.getEncVelocity())*600/4096);\n SmartDashboard.putNumber(\"RightWheelVelocity\",(RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n \n count++;\n \tangleorientation.updatePID(RobotMap.navx.getAngle());\n }",
"public void run () {\n generalFeatureExtraction();\n\n //\n // 2 - Traverse the Call Graph and propagate call stack counter\n propagateFeatures();\n }",
"public void startCompute();",
"@Override\n public void runOpMode() {\n frontLeftWheel = hardwareMap.dcMotor.get(\"frontLeft\");\n backRightWheel = hardwareMap.dcMotor.get(\"backRight\");\n frontRightWheel = hardwareMap.dcMotor.get(\"frontRight\");\n backLeftWheel = hardwareMap.dcMotor.get(\"backLeft\");\n\n //telemetry sends data to robot controller\n telemetry.addData(\"Output\", \"hardwareMapped\");\n\n // The TFObjectDetector uses the camera frames from the VuforiaLocalizer, so we create that\n // first.\n initVuforia();\n\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n initTfod();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n }\n\n /**\n * Activate TensorFlow Object Detection before we wait for the start command.\n * Do it here so that the Camera Stream window will have the TensorFlow annotations visible.\n **/\n if (tfod != null) {\n tfod.activate();\n }\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start op mode\");\n telemetry.update();\n waitForStart();\n\n if (opModeIsActive()) {\n while (opModeIsActive()) {\n if (tfod != null) {\n // getUpdatedRecognitions() will return null if no new information is available since\n // the last time that call was made\n List<Recognition> updatedRecognitions = tfod.getUpdatedRecognitions();\n if(updatedRecognitions == null) {\n frontLeftWheel.setPower(0);\n frontRightWheel.setPower(0);\n backLeftWheel.setPower(0);\n backRightWheel.setPower(0);\n } else if (updatedRecognitions != null) {\n telemetry.addData(\"# Object Detected\", updatedRecognitions.size());\n // step through the list of recognitions and display boundary info.\n int i = 0;\n\n\n for (Recognition recognition : updatedRecognitions) {\n float imageHeight = recognition.getImageHeight();\n float blockHeight = recognition.getHeight();\n\n //-----------------------\n// stoneCX = (recognition.getRight() + recognition.getLeft())/2;//get center X of stone\n// screenCX = recognition.getImageWidth()/2; // get center X of the Image\n// telemetry.addData(\"screenCX\", screenCX);\n// telemetry.addData(\"stoneCX\", stoneCX);\n// telemetry.addData(\"width\", recognition.getImageWidth());\n //------------------------\n\n telemetry.addData(\"blockHeight\", blockHeight);\n telemetry.addData(\"imageHeight\", imageHeight);\n telemetry.addData(String.format(\"label (%d)\", i), recognition.getLabel());\n telemetry.addData(String.format(\" left,top (%d)\", i), \"%.03f , %.03f\", recognition.getLeft(), recognition.getTop());\n telemetry.addData(String.format(\" right,bottom (%d)\", i), \"%.03f , %.03f\", recognition.getRight(), recognition.getBottom());\n\n\n if(hasStrafed == false) {\n float midpoint = (recognition.getLeft() + recognition.getRight()) /2;\n float multiplier ;\n if(midpoint > 500) {\n multiplier = -(((int)midpoint - 500) / 100) - 1;\n log = \"Adjusting Right\";\n sleep(200);\n } else if(midpoint < 300) {\n multiplier = 1 + ((500 - midpoint) / 100);\n log = \"Adjusting Left\";\n sleep(200);\n } else {\n multiplier = 0;\n log = \"In acceptable range\";\n hasStrafed = true;\n }\n frontLeftWheel.setPower(-0.1 * multiplier);\n backLeftWheel.setPower(0.1 * multiplier);\n frontRightWheel.setPower(-0.1 * multiplier);\n backRightWheel.setPower(0.1 * multiplier);\n } else {\n if( blockHeight/ imageHeight < .5) {\n frontLeftWheel.setPower(-.3);\n backLeftWheel.setPower(.3);\n frontRightWheel.setPower(.3);\n backRightWheel.setPower(-.3);\n telemetry.addData(\"detecting stuff\", true);\n } else {\n frontLeftWheel.setPower(0);\n backLeftWheel.setPower(0);\n frontRightWheel.setPower(0);\n backRightWheel.setPower(0);\n telemetry.addData(\"detecting stuff\", false);\n }\n }\n\n telemetry.addData(\"Angle to unit\", recognition.estimateAngleToObject(AngleUnit.DEGREES));\n telemetry.addData(\"Log\", log);\n\n }\n telemetry.update();\n }\n\n }\n }\n }\n if (tfod != null) {\n tfod.shutdown();\n }\n }",
"public void execute()\r\n/* 31: */ throws GlobalException\r\n/* 32: */ {\r\n/* 33: 37 */ if (this.input.getCDim() != 1) {\r\n/* 34: 37 */ throw new GlobalException(\"Sorry, only mono-channel images for now...\");\r\n/* 35: */ }\r\n/* 36: 39 */ this.xdim = this.input.getXDim();\r\n/* 37: 40 */ this.ydim = this.input.getYDim();\r\n/* 38: */ \r\n/* 39: 42 */ this.output = new ArrayList();\r\n/* 40: */ \r\n/* 41: 44 */ this.temp = new BooleanImage(this.input, false);\r\n/* 42: 45 */ this.temp.fill(false);\r\n/* 43: */ \r\n/* 44: 47 */ this.temp2 = new BooleanImage(this.input, false);\r\n/* 45: 48 */ this.temp2.fill(false);\r\n/* 46: */ \r\n/* 47: 50 */ this.s = new Stack();\r\n/* 48: */ \r\n/* 49: 52 */ this.list2 = new ArrayList();\r\n/* 50: */ \r\n/* 51: 54 */ this.output = extractCC(this.seed, this.input);\r\n/* 52: */ }",
"@Override public final void dinvoke(H2ONode sender) {\n setupLocal0(); // Local setup\n compute2(); // Do The Main Work\n // nothing here... must do any post-work-cleanup in onCompletion\n }",
"private final void setupLocal0() {\n assert _profile==null;\n _fs = new Futures();\n _profile = new MRProfile(this);\n _profile._localstart = System.currentTimeMillis();\n _topLocal = true;\n // Check for global vs local work\n int selfidx = H2O.SELF.index();\n int nlo = subShift(selfidx);\n assert nlo < _nhi;\n final int nmid = (nlo+_nhi)>>>1; // Mid-point\n if( !_run_local && nlo+1 < _nhi ) { // Have global work?\n _profile._rpcLstart = System.currentTimeMillis();\n _nleft = remote_compute(nlo+1,nmid);\n _profile._rpcRstart = System.currentTimeMillis();\n _nrite = remote_compute( nmid,_nhi);\n _profile._rpcRdone = System.currentTimeMillis();\n }\n _lo = 0; _hi = _fr.anyVec().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n // get the Vecs from the K/V store, to avoid racing fetches from the map calls\n _fr.vecs();\n setupLocal(); // Setup any user's shared local structures\n _profile._localdone = System.currentTimeMillis();\n }",
"public static void MCLSPIFB(){\n\t\tMountainCar mcGen = new MountainCar(); // default: reward 100 on the right side and 0 everywhere else\n\t\t\n\t\t\n\t\t// Define terminal function and reward function\t\n\t\tStateConditionTest terminalTest = new StateConditionTest() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean satisfies(State s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif ((Double)s.get(\"x\") >= 0.5) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t\t\n\t\tTerminalFunction tf = new TerminalFunction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean isTerminal(State s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn terminalTest.satisfies(s);\n\t\t\t}\n\t\t};\n\t\t\n\t\tRewardFunction rf = /*new GoalBasedRF(tf, 100, 0);*/\n\t\t\t\tnew RewardFunction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic double reward(State s1, Action a, State s2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif ((Double)s2.get(\"x\") >= 0.5) {\n\t\t\t\t\treturn 100;\n\t\t\t\t}\n\t\t\t\tif ((Double)s2.get(\"x\") == mcGen.physParams.xmin) {\n\t\t\t\t\treturn -100;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t};\n\t\tmcGen.setRf(rf);\n\t\tSADomain domain = mcGen.generateDomain();\n\t\tSystem.out.println(\"physParams:\\n===========================\");\n\t\tSystem.out.println(\"xmin:\" + mcGen.physParams.xmin + \", xmax:\" + mcGen.physParams.xmax + \", vallypos:\" + mcGen.physParams.valleyPos());\n\t\tSystem.out.println(\"vmin:\" + mcGen.physParams.vmin + \", vmax:\" + mcGen.physParams.vmax);\n\t\tSystem.out.println(\"===========================\");\n\t\t\n\t\t// Generate data from random state\n\t\tStateGenerator rstateGenerator = new MCRandomStateGenerator(mcGen.physParams);\n\t\tSARSCollector collector = new SARSCollector.UniformRandomSARSCollector(domain);\n\t\tSARSData dataset = collector.collectNInstances(rstateGenerator, domain.getModel(), 5000, 20, null);\n\n\t\t\n\t\tSARS xData = dataset.get(0);\n\t\tMCState xState = (MCState) xData.s;\n\t\tMCState xState2 = (MCState) xData.sp;\n\t\tSystem.out.println(\"s: x:\" + xState.x\n\t\t\t\t+ \", v:\" + xState.v + \n\t\t\t\t\", action:\" + xData.a.actionName() + \n\t\t\t\t\", reward:\" + xData.r);\n\t\tSystem.out.println(\"s': x:\" + xState2.x\n\t\t\t\t+ \", v:\" + xState2.v);\n\t\tSystem.out.println(\"===========================\");\n\t\t\n\t\t// Generate 5000 SARS tuple instances for our dataset.\n\t\t// Car state generator for no more than 20 steps at a time or until we hit a terminal state.\n\t\t\n\t\t// Generate Fourier Basis\n\t\t// Fourier Basis: mapping from states to features\n\t\tNormalizedVariableFeatures inputFeatures = new NormalizedVariableFeatures()\n\t\t\t\t.variableDomain(\"x\", new VariableDomain(mcGen.physParams.xmin, mcGen.physParams.xmax))\n\t\t\t\t.variableDomain(\"v\", new VariableDomain(mcGen.physParams.vmin, mcGen.physParams.vmax));\n\t\tFourierBasis fBasis = new FourierBasis(inputFeatures, 4); // order(4) means the number of basis functions\n\t\t\n\t\t// Instantiate LSPI\n\t\t// LSPI needs mapping from state to action features, so\n\t\t// first define a state feature representation, \n\t\t// and then construct state-action features by taking the cross product of those features with each action\n\t\tLSPI lspi = new LSPI(domain, 0.99, new DenseCrossProductFeatures(fBasis, 3), dataset); // 3: number of actions: FORWARD, COSTA, BACKWARD\n\t\tPolicy policy = lspi.runPolicyIteration(30, 1e-6);\n\t\t\n\t\t// Visualization\n\t\tMCState laststate = new MCState(mcGen.physParams.valleyPos(), 0);\n\t\tSystem.out.println(\"===========================\\nState process according to policy:\\n\");\n\n\t\t\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tif (terminalTest.satisfies(laststate)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tAction curAction = policy.action(laststate);\n\t\t\tMCModel model = new MCModel(mcGen.physParams);\n\t\t\tMCState curState = (MCState) model.sample(laststate, curAction);\n\t\t\tif (i % 10 == 0) {\n\t\t\t\tSystem.out.println(\"State \" + i +\n\t\t\t\t\t\t\":\\tx = \" + laststate.x + \n\t\t\t\t\t\t\";\\tv = \" + laststate.v + \n\t\t\t\t\t\t\";\\taction = \" + curAction.actionName());\n\t\t\t}\t\t\t\n\t\t\tlaststate = curState;\n\t\t}\n\t\tVisualizer visualizer = MountainCarVisualizer.getVisualizer(mcGen);\n\t\tVisualActionObserver vo = new VisualActionObserver(visualizer);\n\t\tvo.initGUI();\n\t\t\n\t\tSimulatedEnvironment environment = new SimulatedEnvironment(domain, new MCState(mcGen.physParams.valleyPos(), 0));\n\t\tenvironment.addObservers(vo);\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tPolicyUtils.rollout(policy, environment);\n\t\t\tenvironment.resetEnvironment();\n\t\t}\n\t\tSystem.out.println(\"Finished\");\n\t\tSystem.out.println(policy.action(new MCState(0.05, -8)));\n\t}",
"@Override\n\tprotected void startEverything() {\n\t\ttracker.dropAllTracks();\n\t\tcreateAssistedTracker(maxIterations,4);\n\t\tdistortAlg = new MotionMosaicPointKey<I,T>(trackerModel,fitModel,40,0.3,pruneThreshold,0.8);\n\t\tT initTran = ConvertTransform_F64.convert(createInitialTransform(), fitModel.createInstance());\n\t\tdistortAlg.setInitialTransform(initTran);\n\t\ttotalKeyFrames = 0;\n\t\tmotionRender.clear();\n\n\t\tstartWorkerThread();\n\t}",
"void recompute () {\n current_part.t_Cl = current_part.t_Cd = current_part.t_Cm = null;\n computeFlowAndRegenPlot();\n }",
"public void beginHostile()\r\n\t{\n\t\t\r\n\t}",
"public void update()\n\t{\n\t\t//\tTHE WORLD HAS ENDED DO NOT EXECUTE FURTHER\n\t\tif( end )\n\t\t{\n\t\t\tsafeEnd = true;\n\t\t\treturn;\n\t\t}\n\n\t\t//Plot graphics\n\t\tif(plot){\n\t\t\thealthyFunction.show(infectedFunction, healthyFunction);\n\t\t\tbusFunction.show(infectedFunction, seasFunction, busFunction, colFunction, ellFunction, smpaFunction, lawFunction);\n\t\t\tplot = false;\n\t\t}\n\n\t\t//\tsafe point to manage human/zombie ratios\n\t\t//\tTODO: Modify infect to also switch zombies to humans\n\t\tinfect();\n\t\tgetWell();\n\t\taddFromQueue();\n\n\t\t//\tupdate all entities\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.update(zombiesPaused);\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.update(humansPaused);\n\t\t}\n\n\t\tif( zc!=zombies.size() || hc!=humans.size() )\n\t\t{\n\t\t\tzc = zombies.size();\n\t\t\thc = humans.size();\n\t\t\tSystem.out.println(zc+\"/\"+hc);\n\t\t}\n\n\t\t//Add points to our functions\n\t\thealthyFunction.add(time,humans.size());\n\t\tinfectedFunction.add(time,zombies.size());\n\t\tseascount = smpacount = ellcount = lawcount = buscount = colcount = 0;\n\t\tfor (int i = 0; i < humans.size(); i++) {\n\t\t\tEntity curr = humans.get(i);\n\t\t\tif (curr instanceof SEAS) {\n\t\t\t\tseascount++;\n\t\t\t} else if (curr instanceof SMPA) {\n\t\t\t\tsmpacount++;\n\t\t\t} else if (curr instanceof Elliot) {\n\t\t\t\tellcount++;\n\t\t\t} else if (curr instanceof Law) {\n\t\t\t\tlawcount++;\n\t\t\t} else if (curr instanceof Business) {\n\t\t\t\tbuscount++;\n\t\t\t} else if (curr instanceof Columbian) {\n\t\t\t\tcolcount++;\n\t\t\t}\n\t\t}\n\t\tbusFunction.add(time, buscount);\n\t\tcolFunction.add(time, colcount);\n\t\tellFunction.add(time, ellcount);\n\t\tlawFunction.add(time, lawcount);\n\t\tsmpaFunction.add(time, smpacount);\n\t\tseasFunction.add(time, seascount);\n\t\ttime++;\n\t}",
"@Override public final void dinvoke(H2ONode sender) {\n setupLocal(); // Local setup\n compute2(); // Do The Main Work\n // nothing here... must do any post-work-cleanup in onCompletion\n }",
"public void updateTask() {\n/* 137 */ if (this.field_190859_a.func_190718_dR()) {\n/* */ \n/* 139 */ EntityLlama entityllama = this.field_190859_a.func_190716_dS();\n/* 140 */ double d0 = this.field_190859_a.getDistanceToEntity((Entity)entityllama);\n/* 141 */ float f = 2.0F;\n/* 142 */ Vec3d vec3d = (new Vec3d(entityllama.posX - this.field_190859_a.posX, entityllama.posY - this.field_190859_a.posY, entityllama.posZ - this.field_190859_a.posZ)).normalize().scale(Math.max(d0 - 2.0D, 0.0D));\n/* 143 */ this.field_190859_a.getNavigator().tryMoveToXYZ(this.field_190859_a.posX + vec3d.xCoord, this.field_190859_a.posY + vec3d.yCoord, this.field_190859_a.posZ + vec3d.zCoord, this.field_190860_b);\n/* */ } \n/* */ }",
"protected void execute() {\n \tdouble currentPulses;\n \tdouble currentHeading = Robot.pixy.getCubeCenter();\n \tdouble headingCorrection = pixyCorrection.calculateCorrection(140, currentHeading);\n \tdouble currentDistance = Robot.sonar.getDistance();\n \tdouble powerCorrection = sonarCorrection.calculateCorrection(distance, currentDistance);\n \tif (headingCorrection > .25) {\n \t\theadingCorrection = .25;\n \t}\n \tif(powerCorrection > .25) {\n \t\tpowerCorrection = .25;\n \t}\n \tdouble power = basePower + powerCorrection;\n \tif (Robot.pixy.getCubeCenter() < 150) {\n \t\tleftPower = (power - headingCorrection);\n \t\trightPower = (power + headingCorrection);\n \t}\n \telse if (Robot.pixy.getCubeCenter() > 130) {\n \t\tleftPower = (power + headingCorrection);\n \t\trightPower = (power - headingCorrection);\n \t}\n \telse {\n \t\tleftPower = power;\n \t\trightPower = power;\n \t}\n \tRobot.drive.tankMove(leftPower, rightPower);\n \t\n \tcurrentPulses = Robot.drive.getPulsesLeft();\n \tencoderValue = currentPulses - VectorValues.lastEncoderPulses;\n \tVectorValues.lastEncoderPulses = currentPulses;\n \tVectorValues.vectorComponentX += (Math.sin(Robot.drive.getCurrentHeading() * (Math.PI / 180 )) * encoderValue);\n \tVectorValues.vectorComponentY += (Math.cos(Robot.drive.getCurrentHeading() * (Math.PI / 180 )) * encoderValue);\n }",
"public void intermediateProcessing() {\n //empty\n }",
"@Override\n public void runOpMode() {\n motorFL = hardwareMap.get(DcMotor.class, \"motorFL\");\n motorBL = hardwareMap.get(DcMotor.class, \"motorBL\");\n motorFR = hardwareMap.get(DcMotor.class, \"motorFR\");\n motorBR = hardwareMap.get(DcMotor.class, \"motorBR\");\n landerRiser = hardwareMap.get(DcMotor.class, \"lander riser\");\n landerRiser = hardwareMap.get(DcMotor.class, \"lander riser\");\n landerRiser.setDirection(DcMotor.Direction.FORWARD);\n landerRiser.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n markerDrop = hardwareMap.get(Servo.class, \"marker\");\n markerDrop.setDirection(Servo.Direction.FORWARD);\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update();\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //Landing & unlatching\n landerRiser.setPower(-1);\n telemetry.addData(\"Status\", \"Descending\");\n telemetry.update();\n sleep(5550);\n landerRiser.setPower(0);\n telemetry.addData(\"Status\",\"Unhooking\");\n telemetry.update();\n move(-0.5, 600, true);\n strafe(-0.4,0.6, 3600, true);\n move(0.5,600,true);\n markerDrop.setPosition(0);\n sleep(1000);\n markerDrop.setPosition(0.5);\n sleep(700);\n markerDrop.setPosition(0);\n strafe(0, -0.5,500,true);\n strafe(0.5, -0.25, 8500, true);\n\n }",
"public void cp_computeFlow () { \n double effaoa = effective_aoa();\n if (!can_do_gui_updates && current_part.foil.fast_coeffs()) {\n solver.set_q0();\n current_part.cl = solver.get_Cl(effaoa);\n } else {\n solver.getFreeStream();\n solver.getCirculation(effaoa, current_part.thickness, current_part.camber);\n solver.compute_foil_geometry(effaoa);\n current_part.cl = solver.get_Cl(effaoa);\n solver.genFlow(effaoa);\n } \n \n current_part.cm = current_part.compute_cm(effaoa);\n\n // test: is this the same value getCl_plot gives?\n // if (false) {\n // double getCl_plot_val = out_top.plot.getCl_plot(current_part.camber/25, current_part.thickness/25, effaoa);\n // if (getCl_plot_val != current_part.cl) {\n // System.out.println(\"-- getCl_plot_val: \" + getCl_plot_val + \"yet current_part.cl: \" + current_part.cl);\n // }\n // track_current_part.cl_changes();\n // }\n\n current_part.reynolds = foil_is_cylinder_or_ball(current_part.foil) \n ? velocity/vconv * 2 * radius/lconv * rho_EN / viscos\n : velocity/vconv * current_part.chord/lconv * rho_EN / viscos;\n\n if (can_do_gui_updates)\n solver.getProbe();\n\n double camd = current_part.camber;\n double alfd = effaoa; // effective_aoa();\n // attempt to fix symmetry problem\n if (fix_symmetry_problem && camd < 0.0) alfd = - alfd;\n \n // this saved current_part's cd, cd_profile and cd_aux\n solver.get_Cd(alfd); \n }",
"public void run() {\n\tObjectFrame flange = lbr_iiwa_14_R820_1.getFlange();\t\t//flange frame\n\tObjectFrame lbrRoot = lbr_iiwa_14_R820_1.getRootFrame();\t//root frame\n\t\t\t\n\t// define frames for task trajectory:\n\tFrame F_contactEnd = new Frame(lbrRoot,500,0,385,Math.toRadians(180),Math.toRadians(0),Math.toRadians(180));\n\t\n\tFrame F_tmp = F_contactEnd.copy();\n\t\n\tF_flyMin \t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( -40,0, 50)).copy();\n\tF_fly3 \t\t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 40,0, 60)).copy();\n\tF_fly4 \t\t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 200,0, 0)).copy();\n\tF_flyMax \t\t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( 40,0, -60)).copy();\t\t\n\tF_contactStart \t= F_tmp.transform(lbrRoot,XyzAbcTransformation.ofTranslation( -40,0, -50)).copy();\n\t\n\tSystem.out.println(String.format(\"F_flyMin, x: %1$f y: %2$f z: %3$f\", F_flyMin.getX(), F_flyMin.getY(), F_flyMin.getZ()));\n\tSystem.out.println(String.format(\"F_fly3, x: %1$f y: %2$f z: %3$f\", F_fly3.getX(), F_fly3.getY(), F_fly3.getZ()));\n\tSystem.out.println(String.format(\"F_fly4, x: %1$f y: %2$f z: %3$f\", F_fly4.getX(), F_fly4.getY(), F_fly4.getZ()));\n\tSystem.out.println(String.format(\"F_flyMax, x: %1$f y: %2$f z: %3$f\", F_flyMax.getX(), F_flyMax.getY(), F_flyMax.getZ()));\n\tSystem.out.println(String.format(\"F_contactStart, x: %1$f y: %2$f z: %3$f\", F_contactStart.getX(), F_contactStart.getY(), F_contactStart.getZ()));\n\t\n\tSpline flyingPhase_spline = new Spline(\n\t\t\tlin(F_contactEnd),\n\t\t\tspl(F_flyMin).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly3).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tspl(F_fly4).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_flyMax).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tspl(F_contactStart)\n\t\t);\n\t\n\t\n\t// move to standBy position:\n\tSystem.out.println(\"going to standBy position\");\n\tlbr_iiwa_14_R820_1.move(ptp(J_standBy).setJointVelocityRel(vRel_taxing));\n\t\n\n\t\n\t/*\n\tSystem.out.println(\"going to end frame of contact phase\");\n\tlbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_taxing));\n\t*/\n\t\n\t/*\n\tlbr_iiwa_14_R820_1.move(lin(F_flyMin).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_fly3).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_fly4).setCartVelocity(v_taxing));\n\t\n\tlbr_iiwa_14_R820_1.move(lin(F_flyMax).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_contactStart).setCartVelocity(v_taxing));\n\tlbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_taxing)); \n\t*/\n\t\n\t/*\n\tSystem.out.println(\"start flying phase - spline (3x)\");\n\tfor (int i=1; i<=3; i++)\n\t{\n\t\tlbr_iiwa_14_R820_1.move(flyingPhase_spline.setCartVelocity(v_fly).setCartAcceleration(250));\n\t}\n\t*/\n\t\n\t/*\n\tSystem.out.println(\"start flying phase - batch\");\n\tlbr_iiwa_14_R820_1.moveAsync(batch(\n\t\t\tlin(F_contactEnd),\n\t\t\tlin(F_flyMin).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly3).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_fly4).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_flyMax).setOrientationType(SplineOrientationType.Ignore),\n\t\t\tlin(F_contactStart)\n\t).setCartVelocity(v_fly));\n\t*/\n\t\n\t\n\tSystem.out.println(\"Setting impedance mode\");\n\tCartesianImpedanceControlMode cartImpMode = new CartesianImpedanceControlMode();\n\n\t/*\n\tcartImpMode.parametrize(CartDOF.TRANSL).setStiffness(1500);\n\tcartImpMode.parametrize(CartDOF.TRANSL).setDamping(0.7);\n\n\tcartImpMode.parametrize(CartDOF.Z).setStiffness(100);\n\n\tcartImpMode.parametrize(CartDOF.ROT).setStiffness(200);\n\tcartImpMode.parametrize(CartDOF.ROT).setDamping(0.7);\n\n\tcartImpMode.setNullSpaceDamping(0.3);\n\tcartImpMode.setNullSpaceStiffness(0);\n\n\tcartImpMode.setMaxControlForce(30, 30, 30, 10, 10, 10, false);\n\t*/\n\t\n\t// manage data recording\n\tDataRecorder rec = new DataRecorder(); //data recording \n\trec.setFileName(\"Recording.log\");\n\trec.setSampleRate(100);\n\trec.addCartesianForce(lbr_iiwa_14_R820_1.getFlange(),lbrRoot);\n\tStartRecordingAction startAction = new StartRecordingAction(rec);\n\t\n\tForceCondition condstart = ForceCondition.createNormalForceCondition(null, CoordinateAxis.Z, 1); //recording trigger\n\tForceCondition condend = ForceCondition.createNormalForceCondition(null, CoordinateAxis.Z, force_z); //stop movement trigger\n\t\n\t\n\tSystem.out.println(\"going to start frame of contact phase\");\n\tlbr_iiwa_14_R820_1.move(lin(F_contactStart).setCartVelocity(v_taxing).setCartAcceleration(200));\t\n\t\n\t//start cycling\n\tfor (int i_cycle=1; i_cycle <= 3; i_cycle ++)\n\t{\n\t\tSystem.out.println(String.format(\"cycle # %1$d\", i_cycle));\n\t\t\n\t\t//PHASE 1: transition, landing\n\t\t//System.out.println(\"start transition phase, landing, impedance mode \");\n\t\t//lbr_iiwa_14_R820_1.move(linRel(0,0,-dz,lbrRoot).triggerWhen(condstart, startAction).breakWhen(condend).setCartVelocity(v_transition).setMode(cartImpMode));\n\t\t\n\t\tif (i_cycle == 1)\n\t\t{\n\t\t\t// check data recording\n\t\t\tSystem.out.println(\"recording activated\");\n\t\t\tif(rec.isFileAvailable())\n\t\t\t\tSystem.out.println(\"data file available\");\n\t\t\t\n\t\t\tURL url = rec.getURL();\n\t\t\tdummy = url.toString();\n\t\t\tSystem.out.println(dummy);\n\t\t}\n\t\t\n\t\t// print current force value\n\t\tForceSensorData data = lbr_iiwa_14_R820_1.getExternalForceTorque(lbr_iiwa_14_R820_1.getFlange());\n\t\tSystem.out.println(String.format(\"Fz = %1$f \",data.getForce().getZ()));\n\t\t\n\t\t// PHASE 2: contact phase\n\t\t//System.out.println(\"start contact phase, impedance mode\");\n\t\t//lbr_iiwa_14_R820_1.move(lin(F_contactEnd).setCartVelocity(v_contact).setMode(cartImpMode));\n\t\t/*\n\t\t// PHASE 3: transition phase, take off\n\t\tSystem.out.println(\"start transition phase, impedance mode\");\n\t\tlbr_iiwa_14_R820_1.move(linRel(0,0,dz,lbrRoot).setCartVelocity(v_transition).setMode(cartImpMode));\n\t\t*/\n\t\t// PHASE 4: flying phase \n\t\tSystem.out.println(\"start flying phase, swift\");\n\t\tlbr_iiwa_14_R820_1.move(flyingPhase_spline.setCartVelocity(v_fly).setCartAcceleration(250).setMode(cartImpMode));\n\t}\n\t\n\t\n\t// stop recording\n\trec.stopRecording();\n\tSystem.out.println(\"data recording stopped\");\n\t\n\t\n\t// move to standBy position:\n\tlbr_iiwa_14_R820_1.move(ptp(J_standBy).setJointVelocityRel(vRel_taxing));\n\t\t\n\t}",
"@Override\n public void execute() {\n var swerveModuleStates = calcDrive(//\n xSmooth.calc(xSpd.get() * DriveConstants.kTeleDriveMaxSpeedMetersPerSecond), //\n ySmooth.calc(ySpd.get() * DriveConstants.kTeleDriveMaxSpeedMetersPerSecond), //\n rotSmooth.calc(rotSpd.get() * DriveConstants.kTeleDriveMaxAngularSpeedRadiansPerSecond), //\n fieldOriented);\n swerveDrivetrain.setModuleStates(swerveModuleStates);\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n distanceSensorInRange = false;\n myGlyphLift = new glyphLift(hardwareMap.dcMotor.get(\"glyph_lift\"));\n myColorSensorArm = new colorSensorArm(hardwareMap.servo.get(\"color_sensor_arm\"),hardwareMap.colorSensor.get(\"sensor_color\"), hardwareMap.servo.get(\"color_sensor_arm_rotate\"));\n myMechDrive = new mechDriveAuto(hardwareMap.dcMotor.get(\"front_left_motor\"), hardwareMap.dcMotor.get(\"front_right_motor\"), hardwareMap.dcMotor.get(\"rear_left_motor\"), hardwareMap.dcMotor.get(\"rear_right_motor\"));\n myGlyphArms = new glyphArms(hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_left_glyph_arm\"), hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_right_glyph_arm\"));\n myBoardArm = new boardArm(hardwareMap.dcMotor.get(\"board_arm\"));\n myRevColorDistanceSensor = new revColorDistanceSensor(hardwareMap.get(ColorSensor.class, \"rev_sensor_color_distance\"), hardwareMap.get(DistanceSensor.class, \"rev_sensor_color_distance\"));\n\n\n myColorSensorArm.colorSensorArmUpSlow();\n myColorSensorArm.colorRotateResting();\n //myGlyphArms.openRaisedGlyphArms(); //ensures robot is wihin 18\" by 18\" parameters\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n parameters.vuforiaLicenseKey = \"ASmjss3/////AAAAGQGMjs1d6UMZvrjQPX7J14B0s7kN+rWOyxwitoTy9i0qV7D+YGPfPeeoe/RgJjgMLabjIyRXYmDFLlJYTJvG9ez4GQSI4L8BgkCZkUWpAguRsP8Ah/i6dXIz/vVR/VZxVTR5ItyCovcRY+SPz3CP1tNag253qwl7E900NaEfFh6v/DalkEDppFevUDOB/WuLZmHu53M+xx7E3x35VW86glGKnxDLzcd9wS1wK5QhfbPOExe97azxVOVER8zNNF7LP7B+Qeticfs3O9pGXzI8lj3zClut/7aDVwZ10IPVk4oma6CO8FM5UtNLSb3sicoKV5QGiNmxbbOlnPxz9qD38UAHshq2/y0ZjI/a8oT+doCr\";\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n waitForStart();\n\n relicTrackables.activate();\n\n while (opModeIsActive()) {\n myGlyphArms.closeGlyphArms();\n sleep(2000);\n myMechDrive.vuforiaLeft(myGlyphArms);\n sleep(1000);\n requestOpModeStop();\n }\n }",
"private void nextState() {\n int x;\n int y;\n y = st3;\n x = (st0 & MASK) ^ st1 ^ st2;\n x ^= (x << SH0);\n y ^= (y >>> SH0) ^ x;\n st0 = st1;\n st1 = st2;\n st2 = x ^ (y << SH1);\n st3 = y;\n st1 ^= parameter.getMat1(y);\n st2 ^= parameter.getMat2(y);\n }",
"void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"@Override\n public void computeTileStack(Map<Band, Tile> targetTileMap, Rectangle targetRectangle, ProgressMonitor pm)\n throws OperatorException {\n try {\n \n int x0 = targetRectangle.x;\n int y0 = targetRectangle.y;\n int w = targetRectangle.width;\n int h = targetRectangle.height;\n // System.out.println(\"x0 = \" + x0 + \", y0 = \" + y0 + \", w = \" + w + \", h = \" + h);\n \n ComplexFloatMatrix cplxMatrixMaster = null;\n ComplexFloatMatrix cplxMatrixSlave = null;\n RenderedImage srcImage;\n float[] dataArray;\n \n // pm.beginTask(\"Computation of interferogram\", targetProduct.getNumBands());\n \n // these are not very optimal loops: redo the looping to a single for Band loop with using HashMaps\n for (Band sourceBand : sourceProduct.getBands()) {\n \n String sourceBandUnit = sourceBand.getUnit();\n \n if (sourceBand == masterBand1) {\n } else if (sourceBand == masterBand2) {\n \n Tile masterRasterI = getSourceTile(masterBand1, targetRectangle);\n srcImage = masterRasterI.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n FloatMatrix dataRealMatrix = new FloatMatrix(masterRasterI.getHeight(), masterRasterI.getWidth(), dataArray);\n \n Tile masterRasterQ = getSourceTile(masterBand2, targetRectangle);\n srcImage = masterRasterQ.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n // FloatMatrix dataImagMatrix = new FloatMatrix(masterRasterQ.getWidth(), masterRasterQ.getHeight(), dataArray);\n FloatMatrix dataImagMatrix = new FloatMatrix(masterRasterQ.getHeight(), masterRasterQ.getWidth(), dataArray);\n \n cplxMatrixMaster = new ComplexFloatMatrix(dataRealMatrix, dataImagMatrix);\n \n } else if (sourceBandUnit != null && sourceBandUnit.contains(Unit.REAL)) {\n \n Tile slaveRasterI = getSourceTile(sourceBand, targetRectangle);\n srcImage = slaveRasterI.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n // FloatMatrix dataRealMatrix = new FloatMatrix(slaveRasterI.getWidth(), slaveRasterI.getHeight(), dataArray);\n FloatMatrix dataRealMatrix = new FloatMatrix(slaveRasterI.getHeight(), slaveRasterI.getWidth(), dataArray);\n \n Tile slaveRasterQ = getSourceTile(slaveRasterMap.get(sourceBand), targetRectangle, pm);\n srcImage = slaveRasterQ.getRasterDataNode().getSourceImage();\n dataArray = srcImage.getData(targetRectangle).getSamples(x0, y0, w, h, 0, (float[]) null);\n \n FloatMatrix dataImagMatrix = new FloatMatrix(slaveRasterQ.getHeight(), slaveRasterQ.getWidth(), dataArray);\n \n cplxMatrixSlave = new ComplexFloatMatrix(dataRealMatrix, dataImagMatrix);\n \n }\n }\n \n // TODO: integrate subtraction of Reference Phase\n ComplexFloatMatrix cplxIfg = cplxMatrixMaster.muli(cplxMatrixSlave.conji());\n \n // if flat earth phase flag is on\n // ------------------------------------------------\n \n // normalize pixel :: range_axis\n DoubleMatrix rangeAxisNormalized;\n rangeAxisNormalized = DoubleMatrix.linspace(x0, x0 + w - 1, cplxIfg.columns);\n rangeAxisNormalized.subi(0.5 * (1 + sourceImageWidth));\n rangeAxisNormalized.divi(0.25 * (sourceImageWidth-1));\n \n DoubleMatrix azimuthAxisNormalized;\n azimuthAxisNormalized = DoubleMatrix.linspace(y0, y0 + h - 1, cplxIfg.rows);\n azimuthAxisNormalized.subi(0.5 * (1 + sourceImageHeight));\n azimuthAxisNormalized.divi(0.25 * (sourceImageHeight - 1));\n \n DoubleMatrix realReferencePhase = polyValOnGrid(azimuthAxisNormalized, rangeAxisNormalized,\n flatEarthPolyCoefs, degreeFromCoefficients(flatEarthPolyCoefs.length));\n \n FloatMatrix realReferencePhaseFlt = MatrixFunctions.doubleToFloat(realReferencePhase);\n ComplexFloatMatrix cplxReferencePhase = new ComplexFloatMatrix(MatrixFunctions.cos(realReferencePhaseFlt),\n MatrixFunctions.sin(realReferencePhaseFlt));\n \n // cplxIfg = cplxIfg.muli(cplxReferencePhase.transpose().conji());\n cplxIfg.muli(cplxReferencePhase.transpose().conji());\n \n for (Band targetBand : targetProduct.getBands()) {\n \n String targetBandUnit = targetBand.getUnit();\n \n final Tile targetTile = targetTileMap.get(targetBand);\n \n // all bands except for virtual ones\n if (targetBandUnit.contains(Unit.REAL)) {\n \n dataArray = cplxIfg.real().toArray();\n targetTile.setRawSamples(ProductData.createInstance(dataArray));\n \n } else if (targetBandUnit.contains(Unit.IMAGINARY)) {\n \n dataArray = cplxIfg.imag().toArray();\n targetTile.setRawSamples(ProductData.createInstance(dataArray));\n \n }\n \n }\n \n } catch (Throwable e) {\n \n OperatorUtils.catchOperatorException(getId(), e);\n \n }\n }",
"public void runOpMode() throws InterruptedException {\n leftWheel = hardwareMap.dcMotor.get(\"leftWheel\");\n rightWheel = hardwareMap.dcMotor.get(\"rightWheel\");\n leftArm = hardwareMap.dcMotor.get(\"leftArm\");\n rightArm = hardwareMap.dcMotor.get(\"rightArm\");\n rightDistance = hardwareMap.get(DistanceSensor.class, \"rightDistance\");\n leftColor = hardwareMap.colorSensor.get(\"leftColor\");\n rightWheel.setDirection(DcMotorSimple.Direction.REVERSE);\n count = 21;\n step = 3;\n subStep = 0;\n\n sample_ready = false;\n lander_unlatched = false;\n\n //prepares and resets robot by resetting encoders\n resetDriveEncoders();\n\n //prepares robot for arm movement by setting arm motors to go to a certain position-modifiable by user input (the d-pad)\n// leftArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// rightArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //HSV value array\n\n //Sends color sensor input values to the phone\n waitForStart();\n\n while (opModeIsActive()) {\n telemetry.update();\n\n\n telemetry.addLine()\n .addData(\"step\", step)\n .addData(\"subStep\", subStep)\n .addData(\"count\", count);\n telemetry.addLine()\n .addData(\"RightWheel: \", rightWheel.getCurrentPosition())\n .addData(\"LeftWheel: \", leftWheel.getCurrentPosition())\n .addData(\"TICKS_PER_WHEEL_ROTATION: \", TICKS_PER_WHEEL_ROTATION);\n\n\n//sets the step of where we are in the process to one\n // step = 1;\n//enables the if statement for lander_unlatched\n lander_unlatched = true;\n//moves the robot from the lander to where the samples are\n if (step == 1) {\n// leftWheel.setPower(0.7);\n// rightWheel.setPower(0.5);\n// leftWheel.setTargetPosition(1621);\n// rightWheel.setTargetPosition(820);\n step = 2;\n }\n if (step == 2) {\n// if (hsvValues[0] > 50) {\n// leftWheel.setPower(-0.7);\n// rightWheel.setPower(-0.5);\n// leftWheel.setTargetPosition(1221);\n step = 3;\n }\n// if step 2 is finished, makes the robot turn toward the wall, then drives against the wall.\n if (step == 3) {\n moveToDepot();\n }\n //1150 Target Units == about 1 foot, 96 Units/inch\n//sets the wheel power to 0 to limit movement\n// if (rightWheel.getCurrentPosition() == -rotation) {\n // rightWheel.setPower(0);\n //leftWheel.setPower(0);\n// }\n// if (leftWheel.getCurrentPosition() == 100) {\n// leftWheel.setPower(0);\n// rightWheel.setPower(0);\n// }\n\n sample_ready = true;\n\n// if (sample_ready) {\n//\n }\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n initialize();\n\n waitForStart();\n\n /* drivetrain.Strafe(1F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(1F, 20, Direction.LEFT); */\n\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 30, Direction.LEFT);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.1f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.1f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.3f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.3f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 1.5f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 1.5f, this);\n\n Balanced_Strafe(.5F, 5, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 5, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 10, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 20, Direction.LEFT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.RIGHT, 2f, this);\n sleep(2000);\n Balanced_Strafe(.5F, 30, Direction.LEFT, 2f, this);\n\n\n /*drivetrain.Strafe(.75F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.75F, 20, Direction.LEFT);\n sleep(6000);\n\n drivetrain.Strafe(.5F, 5, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 5, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 10, Direction.RIGHT);\n sleep(2000);\n\n\n drivetrain.Strafe(.5F, 10, Direction.LEFT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.RIGHT);\n sleep(2000);\n drivetrain.Strafe(.5F, 20, Direction.LEFT);\n sleep(2000); */\n\n drivetrain.StopAll();\n\n\n\n }",
"@Override\n\tpublic void execute() {\n\t\t_cpu.setM_d8(_cpu.getM_h8());\n\t}",
"@Override\r\n protected void computeReferencePoint ()\r\n {\r\n setReferencePoint(getHeadLocation());\r\n }",
"@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}",
"void UpdateMarkers(){\n final Vector3f eye_pos = new Vector3f();\n final Vector3f lookat_pos = new Vector3f();\n Matrix4f.decompseRigidMatrix(m_params.g_ModelViewMatrix, eye_pos, lookat_pos, null);\n\n final float intersectionHeight = g_ocean_param_quadtree.sea_level;\n final float lambda = (intersectionHeight - eye_pos.getY())/(lookat_pos.getY() - eye_pos.getY());\n// const XMVECTOR sea_level_pos = (1.f - lambda) * eye_pos + lambda * lookat_pos;\n final Vector3f sea_level_pos = Vector3f.linear(eye_pos, 1.f - lambda, lookat_pos, lambda, null);\n// const XMVECTOR sea_level_xy = XMVectorSet(XMVectorGetX(sea_level_pos), XMVectorGetZ(sea_level_pos), 0, 0);\n final Vector3f sea_level_xy = new Vector3f(sea_level_pos.x, sea_level_pos.z, 0);\n\n // Update local marker coords, we could need them any time for remote\n for(int x = 0; x != NumMarkersXY; ++x)\n {\n for(int y = 0; y != NumMarkersXY; ++y)\n {\n// XMVECTOR offset = XMVectorSet(2.f * (x - ((NumMarkersXY - 1) / 2)), 2.f * (y - ((NumMarkersXY - 1) / 2)), 0, 0);\n// XMVECTOR newPos = sea_level_xy / kWaterScale + offset;\n float offsetX = 2.f * (x - ((NumMarkersXY - 1) / 2));\n float offsetY = 2.f * (y - ((NumMarkersXY - 1) / 2));\n float newPosX = sea_level_xy.x/kWaterScale + offsetX;\n float newPosY = sea_level_xy.y/kWaterScale + offsetY;\n\n g_local_marker_coords[y * NumMarkersXY + x].x = newPosX;\n g_local_marker_coords[y * NumMarkersXY + x].x = newPosY;\n }\n }\n\n // Do local readback, if requested\n if(g_ocean_simulation_settings.readback_displacements)\n {\n if(g_ReadbackCoord >= 1.f)\n {\n final float coord = g_ReadbackCoord - (g_LastReadbackKickID[0]-g_LastArchivedKickID[0]) * 1.f/ReadbackArchiveInterval;\n GFSDK_WaveWorks.GFSDK_WaveWorks_Simulation_GetArchivedDisplacements(g_hOceanSimulation, coord, g_local_marker_coords, displacements, NumMarkers);\n }\n else\n {\n GFSDK_WaveWorks.GFSDK_WaveWorks_Simulation_GetDisplacements(g_hOceanSimulation, g_local_marker_coords, displacements, NumMarkers);\n }\n\n for(int ix = 0; ix != NumMarkers; ++ix)\n {\n g_local_marker_positions[ix].x = displacements[ix].x + g_local_marker_coords[ix].x;\n g_local_marker_positions[ix].y = displacements[ix].y + g_local_marker_coords[ix].y;\n g_local_marker_positions[ix].z = displacements[ix].z;\n g_local_marker_positions[ix].w = 1.f;\n }\n }\n\n// if(g_bShowRemoteMarkers && NULL != g_pNetworkClient)\n// {\n// g_pNetworkClient->RequestRemoteMarkerPositions(g_remote_marker_coords,NumMarkers);\n// }\n }",
"public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }",
"public void execute(OutputManager om) {\n int voxelNumber = 0;\n while (CL_Initializer.data.more())\n try {\n \n double[] nextVoxel = CL_Initializer.data.nextVoxel();\n double[] nextGradAdj = {};\n if (CL_Initializer.gradAdj!= null) {\n nextGradAdj = CL_Initializer.gradAdj.nextVoxel();\n }\n\n // Fit or output background default.\n double backgroundB0 = CL_Initializer.imPars\n .geoMeanZeroMeas(nextVoxel);\n boolean bg = isBG(backgroundB0);\n if (bg) {\n int ipv = 0;\n int vps = 0;\n if (CL_Initializer.compartmentModel) {\n ipv = fitter.getNumValuesPerRun();\n vps = fitter.getNumValuesPerSolution();\n }\n else {\n ipv = inv.itemsPerVoxel();\n vps = ipv;\n }\n\n double[] voxOut = new double[ipv];\n \n for(int i=0; i<ipv; i=i+vps) {\n\n \t// Set the exitcode to -1 to indicate background.\n \tvoxOut[i] = -1;\n \n \tif (backgroundB0 > 0.0) {\n \t\tvoxOut[i+1] = Math.log(backgroundB0);\n \t} else {\n \t\tvoxOut[i+1] = 0.0;\n \t}\n }\n\t\n om.output(voxOut);\n \n // The inverter may have other operations to perform\n // in background voxels.\n if (!CL_Initializer.compartmentModel)\n inv.background();\n \n } else try {\n // Fit the model and output the result.\n if (CL_Initializer.compartmentModel) {\n double[][] fit;\n if (CL_Initializer.gradAdj!=null) {\n fit = fitter.fit(nextVoxel, nextGradAdj);\n }\n else {\n fit = fitter.fit(nextVoxel);\n }\n for (int i = 0; i < fit.length; i++) {\n om.output(fit[i]);\n }\n }\n \n else {\n\n double[] fittedData;\n if (CL_Initializer.gradAdj!=null) {\n fittedData = inv.invert(nextVoxel, nextGradAdj);\n }\n else {\n fittedData = inv.invert(nextVoxel);\n }\n\n om.output(fittedData);\n\n }\n\n } catch (MinimizerException e) {\n\n throw new LoggedException(e);\n\n }\n\n logger.fine(\"Completed voxel: \" + voxelNumber + \" \" + bg);\n\n voxelNumber++;\n \n } catch (DataSourceException e) {\n throw new LoggedException(\"The data file does not contain a whole number of voxels. Check the scheme file. Got Exception \" + e);\n }\n \n // Output statistics compiled by the inverter.\n if (!CL_Initializer.compartmentModel)\n inv.close();\n \n // Flush output\n om.close();\n \n }",
"protected void cb(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCBResult ncResult,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSet<NodesPair> nps,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tMatrix_4_HSH host2Landmark = new Matrix_4_HSH(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1, NODES_NUM);\n\t\t\t\t\t\t\t\t\t\t\t\t\t// After call\n\t\t\t\t\t\t\t\t\t\t\t\t\t// D_N_S_NMF(host2Landmark),\n\t\t\t\t\t\t\t\t\t\t\t\t\t// the result returned as\n\t\t\t\t\t\t\t\t\t\t\t\t\t// coord\n\t\t\t\t\t\t\t\t\t\t\t\t\tMatrix_4_HSH coord = new Matrix_4_HSH(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1, NC_NUM_DIMS);\n\t\t\t\t\t\t\t\t\t\t\t\t\tIterator ier = nps\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.iterator();\n\t\t\t\t\t\t\t\t\t\t\t\t\twhile (ier.hasNext()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tNodesPair tmp = (NodesPair) ier\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.next();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint to = responseMsg.landmarks\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.indexOf(tmp.endNode);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (to < 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thost2Landmark.mat[0][to] = tmp.rtt;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcoord = MatrixOps\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.D_N_S_NMF(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thost2Landmark,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t_H, _S);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t// initialize my coordinate\n\t\t\t\t\t\t\t\t\t\t\t\t\tCoord = new double[NC_NUM_DIMS];\n\t\t\t\t\t\t\t\t\t\t\t\t\t// record the coordinate in\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Coord\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < NC_NUM_DIMS; i++)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCoord[i] = coord.mat[0][i];\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tversionNumber = responseMsg.version;\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlogHSHClusteringResults();\n\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// catch block\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tnodes.clear();\n\t\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void execute() {\n\n\n /* container.swerveControllerCommand =\n new SwerveControllerCommand(\n trajectory,\n drivetrain::getCurrentPose, \n DrivetrainConstants.DRIVE_KINEMATICS,\n\n // Position controllers\n new PIDController(DrivetrainConstants.P_X_Controller, 0, 0),\n new PIDController(DrivetrainConstants.P_Y_Controller, 0, 0),\n container.thetaController,\n drivetrain::setModuleStates, //Not sure about setModuleStates\n drivetrain);*/\n\n// Reset odometry to the starting pose of the trajectory.\ndrivetrain.resetOdometry(trajectory.getInitialPose());\n\n\n}",
"@Override\n public void runOpMode() throws InterruptedException {\n hMap(hardwareMap);\n ElapsedTime time = new ElapsedTime();\n\n\n\n markerDeploy.setPosition(0.25);\n latch.setPosition(0.25);\n rightBoxRotate.setPosition(.345);\n leftBoxRotate.setPosition(.655);\n\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start tracking\");\n telemetry.update();\n waitForStart();\n\n rightBoxRotate.setPosition(0.15);\n leftBoxRotate.setPosition(0.85);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(1100);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n\n Thread.sleep(100);\n\n\n // moveTo(0.4,20);\n\n\n // Thread.sleep(1000);\n\n\n rightBoxRotate.setPosition(.345);\n leftBoxRotate.setPosition(.655);\n\n Thread.sleep(100);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(1150);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n Thread.sleep(250);\n\n setMotors(-0.4,-0.4);\n Thread.sleep(250);\n setMotors(0,0);\n\n Thread.sleep(250);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(475);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n //up\n //servo init position\n Thread.sleep(250);\n\n motorArmLeft.setPower(-0.5);\n motorArmRight.setPower(0.5);\n Thread.sleep(200);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n Thread.sleep(100);\n\n moveTo(0.4,200);\n\n// Thread.sleep(100);\n\n// rightBoxRotate.setPosition(0.15);\n// leftBoxRotate.setPosition(0.85);\n\n Thread.sleep(100);\n manip.setPower(1);\n }",
"private final void setupLocal() {\n _topLocal = true;\n // Check for global vs local work\n if( _nlo >= 0 && _nlo < _nhi-1 ) { // Have global work?\n // Note: some top-level calls have no other global work, so\n // \"topLocal==true\" does not imply \"nlo < nhi-1\".\n int selfidx = H2O.SELF.index();\n if( _nlo < selfidx ) _nleft = remote_compute(_nlo, selfidx );\n if( selfidx+1 < _nhi ) _nrite = remote_compute(selfidx+1,_nhi);\n }\n _lo = 0; _hi = _fr.firstReadable().nChunks(); // Do All Chunks\n // If we have any output vectors, make a blockable Futures for them to\n // block on.\n if( _fr.hasAppendables() )\n _fs = new Futures();\n init(); // Setup any user's shared local structures\n }",
"@Override\n public void run() {\n String message = router.toString() + \"/\" + router.toString() + \"/\" + 0 + \"/\" + router.getPort() + \"/\";\n Set<Map.Entry<Node, Double>> neighbours = router.getNeighbours().entrySet();\n for (Map.Entry<Node, Double> m : neighbours) {\n Node n = m.getKey();\n message += n.toString() + \" \" + m.getValue() + \" \" + n.getPort() + \"/\";\n }\n buffer.initLSA(router.toString(), message);\n\n Processor p = new Processor(network, processing_buffer, router, nodeSequence);\n new Thread(p).start();\n\n for (Node n : router.getNeighbours().keySet()) {\n heartBeat.put(n.toString(), 0);\n }\n\n receive();\n }",
"public void think_async()\r\n/* 178: */ {\r\n/* 179:153 */ Scanner in = new Scanner(System.in);\r\n/* 180: */ \r\n/* 181: */ \r\n/* 182: */ \r\n/* 183: */ \r\n/* 184: */ \r\n/* 185: */ \r\n/* 186: */ \r\n/* 187: */ \r\n/* 188: */ \r\n/* 189: */ \r\n/* 190: */ \r\n/* 191: */ \r\n/* 192: */ \r\n/* 193: */ \r\n/* 194: */ \r\n/* 195: */ \r\n/* 196:170 */ Thread updater = new Thread()\r\n/* 197: */ {\r\n/* 198:157 */ public volatile boolean active = true;\r\n/* 199: */ \r\n/* 200: */ public void run()\r\n/* 201: */ {\r\n/* 202:161 */ while (this.active) {\r\n/* 203:162 */ synchronized (this)\r\n/* 204: */ {\r\n/* 205:163 */ ConsoleAI.this.game.updateSimFrame();\r\n/* 206: */ }\r\n/* 207: */ }\r\n/* 208: */ }\r\n/* 209:170 */ };\r\n/* 210:171 */ updater.start();\r\n/* 211: */ Plane.FullView p;\r\n/* 212:232 */ for (;; p.hasNext())\r\n/* 213: */ {\r\n/* 214:184 */ System.out.print(\"Next action ([move|land|attk] id; exit to quit): \");\r\n/* 215: */ \r\n/* 216: */ \r\n/* 217:187 */ String[] cmd = in.nextLine().split(\" \");\r\n/* 218: */ \r\n/* 219: */ \r\n/* 220: */ \r\n/* 221: */ \r\n/* 222: */ \r\n/* 223: */ \r\n/* 224: */ \r\n/* 225: */ \r\n/* 226: */ \r\n/* 227:197 */ MapView<Integer, Base.BasicView> bases = this.game.getAllBases();\r\n/* 228:198 */ MapView<Integer, Plane.FullView> planes = this.game.getMyPlanes();\r\n/* 229:199 */ MapView<Integer, Plane.BasicView> ennemy_planes = this.game.getEnnemyPlanes();\r\n/* 230: */ \r\n/* 231: */ \r\n/* 232: */ \r\n/* 233: */ \r\n/* 234:204 */ List<Command> coms = new ArrayList();\r\n/* 235: */ String str;\r\n/* 236:206 */ switch ((str = cmd[0]).hashCode())\r\n/* 237: */ {\r\n/* 238: */ case 3004906: \r\n/* 239:206 */ if (str.equals(\"attk\")) {}\r\n/* 240: */ break;\r\n/* 241: */ case 3127582: \r\n/* 242:206 */ if (str.equals(\"exit\")) {\r\n/* 243: */ break label505;\r\n/* 244: */ }\r\n/* 245: */ break;\r\n/* 246: */ case 3314155: \r\n/* 247:206 */ if (str.equals(\"land\")) {\r\n/* 248: */ break;\r\n/* 249: */ }\r\n/* 250: */ case 3357649: \r\n/* 251:206 */ if ((goto 451) && (str.equals(\"move\")))\r\n/* 252: */ {\r\n/* 253:210 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 254:211 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 255:212 */ coms.add(new MoveCommand(p, b.position()));\r\n/* 256: */ }\r\n/* 257: */ break label459;\r\n/* 258:216 */ Base.BasicView b = (Base.BasicView)bases.get(Integer.valueOf(Integer.parseInt(cmd[1])));\r\n/* 259:217 */ if ((b instanceof Base.FullView))\r\n/* 260: */ {\r\n/* 261:218 */ for (??? = planes.valuesView().iterator(); ???.hasNext();)\r\n/* 262: */ {\r\n/* 263:218 */ p = (Plane.FullView)???.next();\r\n/* 264:219 */ coms.add(new LandCommand(p, (Base.FullView)b));\r\n/* 265: */ }\r\n/* 266: */ }\r\n/* 267: */ else\r\n/* 268: */ {\r\n/* 269:221 */ System.err.println(\"You can't see this base, move around it before you land\");\r\n/* 270: */ break label459;\r\n/* 271:225 */ for (Plane.FullView p : planes.valuesView()) {\r\n/* 272:226 */ coms.add(new AttackCommand(p, (Plane.BasicView)ennemy_planes.get(Integer.valueOf(Integer.parseInt(cmd[1])))));\r\n/* 273: */ }\r\n/* 274: */ }\r\n/* 275: */ }\r\n/* 276:227 */ break;\r\n/* 277: */ }\r\n/* 278:229 */ System.err.println(\"Unrecognized command!\");\r\n/* 279: */ label459:\r\n/* 280:232 */ p = coms.iterator();\r\n/* 281:232 */ continue;Command c = (Command)p.next();\r\n/* 282:233 */ this.game.sendCommand(c);\r\n/* 283: */ }\r\n/* 284: */ label505:\r\n/* 285:255 */ in.close();\r\n/* 286:256 */ updater.active = false;\r\n/* 287: */ try\r\n/* 288: */ {\r\n/* 289:258 */ updater.join();\r\n/* 290: */ }\r\n/* 291: */ catch (InterruptedException e)\r\n/* 292: */ {\r\n/* 293:260 */ e.printStackTrace();\r\n/* 294: */ }\r\n/* 295: */ }",
"public void execute(){\n drivetrain.tankDrive(0.6 * direction, 0.6 * direction);\n // slower than full speed so that we actually bring down the bridge,\n // not just slam it and push balls the wrong way\n }",
"@Override\r\n public void resolve() {\r\n ste1.pointsTo.forEach(\r\n pO -> {\r\n pO.updateHeap(id2, ste3.pointsTo);\r\n }\r\n );\r\n this.resolveThis(id1, ste1);\r\n // System.out.print(\"After store: \");\r\n // ste1.print();\r\n // System.out.print(\"Nfter store: \");\r\n // ste3.print();\r\n }",
"private void calculations() {\n\t\tSystem.out.println(\"Starting calculations\\n\");\n\t\tcalcMedian(myProt.getChain(requestedChain));\n\t\tcalcZvalue(myProt.getChain(requestedChain));\n\t\tcalcSVMweightedZvalue(myProt.getChain(requestedChain));\n\t}",
"public final void asyncExec( int outputs, Frame fr, boolean run_local){\n // Use first readable vector to gate home/not-home\n fr.checkCompatible(); // Check for compatible vectors\n if((_noutputs = outputs) > 0) _vid = fr.anyVec().group().reserveKeys(outputs);\n _fr = fr; // Record vectors to work on\n _nxx = (short)H2O.SELF.index(); _nhi = (short)H2O.CLOUD.size(); // Do Whole Cloud\n _run_local = run_local; // Run locally by copying data, or run globally?\n setupLocal0(); // Local setup\n H2O.submitTask(this); // Begin normal execution on a FJ thread\n }",
"public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}",
"public void run() {\n\n renderingForce = true;\n //file.play();\n\n\n if (haplyBoard.data_available()) {\n /* GET END-EFFECTOR STATE (TASK SPACE) */\n widgetOne.device_read_data();\n\n angles.set(widgetOne.get_device_angles()); \n posEE.set(widgetOne.get_device_position(angles.array()));\n posEE.set(posEE.copy().mult(200));\n }\n\n s.setToolPosition(edgeTopLeftX+worldWidth/2-(posEE).x, edgeTopLeftY+(posEE).y-7); \n\n\n s.updateCouplingForce();\n fEE.set(-s.getVirtualCouplingForceX(), s.getVirtualCouplingForceY());\n fEE.div(100000); //dynes to newtons\n\n torques.set(widgetOne.set_device_torques(fEE.array()));\n widgetOne.device_write_torques();\n\n world.step(1.0f/1000.0f);\n\n\n checkSplat();\n\n renderingForce = false;\n }",
"@Override\n public void initialize() {\n\n distanceTraveled = 0.0;\n timer.start();\n startTime = timer.get();\n\n leftEncoderStart = drivetrain.getMasterLeftEncoderPosition();\n rightEncoderStart = drivetrain.getMasterRightEncoderPosition();\n\n angleCorrection = 0;\n angleError = 0;\n speedCorrection = 1;\n\n shifter.shiftUp();\n\n }",
"public synchronized void m29983k() {\n if (this.f23294u.isEmpty()) {\n if (this.f23286B == null) {\n this.f23286B = new C7030c(7, null, this.f23290J);\n }\n if (this.f23286B.f23372f == null) {\n this.f23286B = new C7030c(7, null, this.f23290J);\n }\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeat \");\n }\n m29967a(-1, this.f23286B);\n if ((f23266a > 0 && f23266a % 3 == 0) || f23266a == 2) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n C7056i.m30212h(C6973b.m29776f());\n }\n });\n }\n }\n m29985m();\n C6860a.m29257b(C6973b.m29776f());\n C7059f.m30231a(C6973b.m29776f()).mo34155a();\n m29980i();\n if (XGPushConfig.isLocationEnable(C6973b.m29776f())) {\n if (f23264F == 0) {\n f23264F = C7055h.m30167a(C6973b.m29776f(), Constants.LOC_REPORT_TIME, 0);\n }\n long currentTimeMillis = System.currentTimeMillis();\n if (f23264F == 0 || Math.abs(currentTimeMillis - f23264F) > ((long) f23281p)) {\n final JSONObject reportLocationJson = CustomDeviceInfos.getReportLocationJson(C6973b.m29776f());\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n C7046a.m30130b(C6973b.m29776f(), \"location\", reportLocationJson);\n }\n });\n f23264F = currentTimeMillis;\n C7055h.m30171b(C6973b.m29776f(), Constants.LOC_REPORT_TIME, currentTimeMillis);\n }\n }\n }",
"public void run() {\n try {\n PSTableGroup.registerThread();\n //get tables\n ClientTable tableL = PSTableGroup.getTableOrDie(0);\n ClientTable tableR = PSTableGroup.getTableOrDie(1);\n ClientTable tableLoss = PSTableGroup.getTableOrDie(2);\n // Initialize MF solver\n int totalNumWorkers = getTotalNumWorker();\n int globalWorkerId = getGlobalWorkerId(localThreadId);\n\n initMF(tableL, tableR);\n PSTableGroup.globalBarrier();\n long start = System.currentTimeMillis();\n //run mf solver\n for(int iter = 0; iter < numIterations; iter++) {\n if(globalWorkerId == 0) {\n System.out.println(\"Iteration \" + String.valueOf(iter + 1) + \"/\" + String.valueOf(numIterations));\n }\n //clear loss function table\n DenseRow lossRow = (DenseRow)tableLoss.get(0);\n tableLoss.inc(0, globalWorkerId, - lossRow.get(globalWorkerId));\n // Divide matrix elements across workers, and perform SGD\n double stepSize = initStepSize * Math.pow(stepSizeOffset + iter, - stepSizePow);\n\n MatrixLoader.Element ele = dataMatrix.getNextEl(globalWorkerId);\n while(ele.isLastEl == false) {\n sgdElement(ele.row, ele.col, ele.value, stepSize, globalWorkerId, tableL, tableR, tableLoss);\n ele = dataMatrix.getNextEl(globalWorkerId);\n }\n //output loss function\n if(globalWorkerId == 0) {\n lossRow = (DenseRow)tableLoss.threadGet(0);\n double loss = 0;\n for(int t = 0; t < totalNumWorkers; t++) {\n loss += lossRow.get(t);\n }\n System.out.println(\"loss function = \" + String.valueOf(loss));\n }\n PSTableGroup.clock();\n }\n long end = System.currentTimeMillis();\n if(globalWorkerId == 0) {\n System.out.println(\"Total time is \" + String.valueOf((end - start) / 1000f));\n }\n // Let stale values finish propagating (performs staleness+1 clock()s)\n PSTableGroup.globalBarrier();\n PSTableGroup.deregisterThread();\n\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override protected void compute2() {\n addToPendingCount(_env.peekAry().numCols()-1);\n int nchks=0;\n for (int i =0; i < _argcnt; ++i)\n nchks+=_env.peekAryAt(-i).anyVec().nChunks();\n\n _espc = new long[nchks+1];\n int coffset = _env.peekAry().anyVec().nChunks();\n long[] first_espc = _env.peekAry().anyVec().get_espc();\n System.arraycopy(first_espc, 0, _espc, 0, first_espc.length);\n for (int i=1; i< _argcnt; ++i) {\n long roffset = _espc[coffset];\n long[] espc = _env.peekAryAt(-i).anyVec().get_espc();\n int j = 1;\n for (; j < espc.length; j++)\n _espc[coffset + j] = roffset+ espc[j];\n coffset += _env.peekAryAt(-i).anyVec().nChunks();\n }\n\n Key[] keys = _env.peekAry().anyVec().group().addVecs(_env.peekAry().numCols());\n _vecs = new Vec[keys.length];\n for (int i=0; i<_vecs.length; ++i)\n _vecs[i] = new Vec( keys[i], _espc, null, _env.peekAry().vec(i).get_type());\n\n for (int i=0; i < Math.min(_maxP, _vecs.length); ++i) forkVecTask(i);\n }",
"@Override\n\t\t\t\tpublic void notifyParallelRoad(int arg0) {\n\t\t\t\t\t\n\t\t\t\t}",
"public void drivetrainInitialization()\n\t{\n\t\tleftSRX.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, Constants.kTimeoutMs);\n\t\tleftSRX.setSensorPhase(true);\n\t\tleftSRX.configNominalOutputForward(0, Constants.kTimeoutMs);\n\t\tleftSRX.configNominalOutputReverse(0, Constants.kTimeoutMs);\n\t\tleftSRX.configPeakOutputForward(1, Constants.kTimeoutMs);\n\t\tleftSRX.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n\n\t\t// // Config left side PID Values\n\t\t// leftSRX.selectProfileSlot(Constants.drivePIDIdx, 0);\n\t\t// leftSRX.config_kF(Constants.drivePIDIdx, Constants.lDrivekF, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kP(Constants.drivePIDIdx, Constants.lDrivekP, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kI(Constants.drivePIDIdx, Constants.lDrivekI, Constants.kTimeoutMs);\n\t\t// leftSRX.config_kD(Constants.drivePIDIdx, Constants.lDrivekD, Constants.kTimeoutMs);\n\n\t\t// Config right side PID settings\n\t\trightSRX.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, Constants.drivePIDIdx, Constants.kTimeoutMs);\n\t\trightSRX.setSensorPhase(true);\n\t\trightSRX.configNominalOutputForward(0, Constants.kTimeoutMs);\n\t\trightSRX.configNominalOutputReverse(0, Constants.kTimeoutMs);\n\t\trightSRX.configPeakOutputForward(1, Constants.kTimeoutMs);\n\t\trightSRX.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n\n\t\t// // Config right side PID Values\n\t\t// rightSRX.selectProfileSlot(Constants.drivePIDIdx, 0);\n\t\t// rightSRX.config_kF(Constants.drivePIDIdx, Constants.rDrivekF, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kP(Constants.drivePIDIdx, Constants.rDrivekP, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kI(Constants.drivePIDIdx, Constants.rDrivekI, Constants.kTimeoutMs);\n\t\t// rightSRX.config_kD(Constants.drivePIDIdx, Constants.rDrivekD, Constants.kTimeoutMs);\n\n\t\t// Set up followers\n\t\tleftSPX1.follow(leftSRX);\n\t\tleftSPX2.follow(leftSRX);\n\n\t\trightSPX1.follow(rightSRX);\n\t\trightSPX2.follow(rightSRX);\n\t\t\n\t\trightSRX.setInverted(true);\n\t\trightSPX1.setInverted(true);\n\t\trightSPX2.setInverted(true);\n }",
"public void run() {\n /*\n r6 = this;\n com.android.camera.imageprocessor.FrameProcessor r0 = com.android.camera.imageprocessor.FrameProcessor.this\n java.lang.Object r0 = r0.mAllocationLock\n monitor-enter(r0)\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n boolean r1 = r1.mIsActive // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0011\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0011:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0027\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n int r2 = r6.stride // Catch:{ all -> 0x0077 }\n int r3 = r6.height // Catch:{ all -> 0x0077 }\n int r4 = r6.stride // Catch:{ all -> 0x0077 }\n int r5 = r6.width // Catch:{ all -> 0x0077 }\n int r4 = r4 - r5\n r1.createAllocation(r2, r3, r4) // Catch:{ all -> 0x0077 }\n L_0x0027:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n byte[] r2 = r6.yvuBytes // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_rotator r1 = r1.mRsRotator // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mInputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_rotate90andMerge(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_YuvToRgb r1 = r1.mRsYuvToRGB // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_nv21ToRgb(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.ioSend() // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n if (r1 == 0) goto L_0x0075\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r6 = r6.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n r6.ioSend() // Catch:{ all -> 0x0077 }\n L_0x0075:\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0077:\n r6 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.imageprocessor.FrameProcessor.ProcessingTask.run():void\");\n }",
"public void update() {\n\n difT();\n difXY();\n solveFlow();\n //drawColorFlow();\n }",
"protected void inRun() {\r\n\t\tSystem.out.println(\"begin\");\r\n\t\tIterator<RoutePair> pairIterator = this.pairs.iterator();\r\n\t\tint count = 0;\r\n\t\twhile (pairIterator.hasNext()) {\r\n\t\t\tcount++;\r\n\t\t\tif (count >= this.pairs.size() / 100) {\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t\tcount = 0;\r\n\t\t\t}\r\n\t\t\tRoutePair pair = pairIterator.next();\r\n\t\t\tRouteResult result = this.dcn.route(pair.getHome(), pair.getAway());\r\n\t\t\tif (result.isSuccessful()) {\r\n\t\t\t\tthis.flows.add(result.getFlow());\r\n\t\t\t\t// System.out.println(result.getFlow().toString());\r\n\t\t\t\tassert result.getFlow().isValid();\r\n\t\t\t\tthis.attachFlow(result);\r\n\t\t\t\tthis.successfulCount++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.failedCount++;\r\n\t\t\t\tSystem.out.println(String.format(\"[inRun] failure count %1d\\n\",\r\n\t\t\t\t\t\tthis.failedCount));\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"finish\");\r\n\t}",
"protected void serverAiStep() {\n/* 539 */ super.serverAiStep();\n/* 540 */ updateSwingTime();\n/* */ \n/* 542 */ this.yHeadRot = this.yRot;\n/* */ }",
"public void run(){\n\t\twhile(frontIsClear()){\n\t\t\tdoFirstRow();\n\t\t\tif (leftIsClear()){\n\t\t\t\tadvanceRow();\n\t\t\t\tdoNextRow();\t\t\t\t\n\t\t\t}\t\n\t\t\tadvanceRow();\n\t\t}\t\n\t\t//Handles checkerboard by AVENUE only if STREET algorithm does not \n\t\tif (!frontIsClear() && leftIsClear()){\n\t\t\tturnLeft();\n\t\t\tdoFirstRow();\n\t\t}\n\t}",
"private void updateSensors()\r\n\t{\t\t\r\n\t\tthis.lineSensorRight\t\t= perception.getRightLineSensor();\r\n\t\tthis.lineSensorLeft \t\t= perception.getLeftLineSensor();\r\n\t\t\r\n\t\tthis.angleMeasurementLeft \t= this.encoderLeft.getEncoderMeasurement();\r\n\t\tthis.angleMeasurementRight \t= this.encoderRight.getEncoderMeasurement();\r\n\r\n\t\tthis.mouseOdoMeasurement\t= this.mouseodo.getOdoMeasurement();\r\n\r\n\t\tthis.frontSensorDistance\t= perception.getFrontSensorDistance();\r\n\t\tthis.frontSideSensorDistance = perception.getFrontSideSensorDistance();\r\n\t\tthis.backSensorDistance\t\t= perception.getBackSensorDistance();\r\n\t\tthis.backSideSensorDistance\t= perception.getBackSideSensorDistance();\r\n\t}",
"void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }",
"public void initializeSubScenes(){\n paycheckController.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c00Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c10Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c20Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c01Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c11Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c21Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c02Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c12Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c22Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c03Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c13Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n c23Controller.attachInterpreters(controllerInterpreter, userInterpreter, offlineInfo);\n\n c00Controller.setPositionInGrid(1, 1);\n c10Controller.setPositionInGrid(2, 1);\n c20Controller.setPositionInGrid(3, 1);\n c01Controller.setPositionInGrid(1, 2);\n c11Controller.setPositionInGrid(2, 2);\n c21Controller.setPositionInGrid(3, 2);\n c02Controller.setPositionInGrid(1, 3);\n c12Controller.setPositionInGrid(2, 3);\n c22Controller.setPositionInGrid(3, 3);\n c03Controller.setPositionInGrid(1, 4);\n c13Controller.setPositionInGrid(2, 4);\n c23Controller.setPositionInGrid(3, 4);\n }",
"private static void broadcastLandingLocations() {\n ArrayList<Pair<Integer, Integer>> ccBySize = new ArrayList<>();\n for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n ccBySize.add(new Pair<Integer, Integer>(cc, CONNECTED_COMPONENT_SIZES.get(cc)));\n }\n // Sort connected components by size, decreasing\n ccBySize.sort(new Comparator<Pair<Integer, Integer>>() {\n @Override\n public int compare(Pair<Integer, Integer> o1, Pair<Integer, Integer> o2) {\n return o2.getSecond() - o1.getSecond();\n }\n });\n int[][] locationsWithinCC = new int[CONNECTED_COMPONENT_SIZES.size()][];\n ArrayList<HashSet<Integer>> landingCoordinates = new ArrayList<>(CONNECTED_COMPONENT_SIZES.size());\n for (int cc = 0; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n locationsWithinCC[cc] = new int[CONNECTED_COMPONENT_SIZES.get(cc)];\n landingCoordinates.add(new HashSet<>());\n }\n // Indices within locationsWithinCC arrays\n int[] locationsWithinCCIndices = new int[CONNECTED_COMPONENT_SIZES.size()];\n for (int r = 0; r < MAP_HEIGHT; ++r) {\n for (int c = 0; c < MAP_WIDTH; ++c) {\n int cc = CONNECTED_COMPONENTS[r][c];\n if (cc == IMPASSIBLE_TERRAIN) continue;\n int coord = (r << 16) | c;\n locationsWithinCC[cc][locationsWithinCCIndices[cc]++] = coord;\n }\n }\n //System.out.println(Arrays.deepToString(locationsWithinCC));\n int communicationArrayIndex = 1;\n int totalNumCoords = 0; // Keep track of the size of a set of landing coordinates that spans all connected components\n // Fill communication array until we can no longer fit a set of totalNumCoords into the array\n while (COMMUNICATION_ARRAY_LENGTH - communicationArrayIndex >= totalNumCoords) {\n totalNumCoords = 0;\n // Choose (cc size)^(1/4) locations in each cc\n for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n HashSet<Integer> chosenCoords = landingCoordinates.get(cc);\n // Clear any previously generated landing locations for each connected component\n chosenCoords.clear();\n // Generate new unique landing locations (not necessarily distinct from previously generated locations)\n int numDesiredCoords = (int) Math.pow(CONNECTED_COMPONENT_SIZES.get(cc), 1d/4d);\n int[] locations = locationsWithinCC[cc];\n for (; chosenCoords.size() < numDesiredCoords;) {\n int randCoord = locations[rand.nextInt(locations.length)];\n chosenCoords.add(randCoord);\n }\n totalNumCoords += numDesiredCoords;\n }\n if (totalNumCoords > COMMUNICATION_ARRAY_LENGTH - communicationArrayIndex) {\n // Prevent overflow of communication array\n break;\n }\n //for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n // System.out.println(landingCoordinates.get(cc));\n //}\n // Write landing locations to communication array in decreasing order of connected component size\n for (Pair<Integer, Integer> ccSizePair : ccBySize) {\n int cc = ccSizePair.getFirst();\n for (Integer coord : landingCoordinates.get(cc)) {\n gc.writeTeamArray(communicationArrayIndex, coord);\n ++communicationArrayIndex;\n }\n }\n }\n gc.writeTeamArray(0, communicationArrayIndex - 1); // write number of generated landing locations\n }",
"public void enterHatchingState() {\n\n\t}",
"@Override\n public void setup() {\n\n context = new SimpleOpenNI(this, SimpleOpenNI.RUN_MODE_MULTI_THREADED);\n\n // enable depthMap generation \n context.enableScene();\n context.enableDepth();\n context.enableRGB();\n context.enableUser(1);\n\n\n background(200, 0, 0);\n\n stroke(0, 0, 255);\n strokeWeight(3);\n smooth();\n\n size(context.sceneWidth(), context.sceneHeight());\n\n for (int i = 0; i < 1000; i++) {\n PVector novoFloco = new PVector((float) (context.sceneWidth() * Math.random()), (float) (-100 * Math.random() - 100 * Math.random()));\n flocos.add(i, novoFloco);\n }\n \n \n\n // select the recording channels\n //context.addNodeToRecording(SimpleOpenNI.NODE_DEPTH,\n // SimpleOpenNI.CODEC_16Z_EMB_TABLES);\n //context.addNodeToRecording(SimpleOpenNI.NODE_IMAGE,\n // SimpleOpenNI.CODEC_JPEG);\n }",
"public void process(){\n\n for(int i = 0; i < STEP_SIZE; i++){\n String tmp = \"\" + accData[i][0] + \",\" + accData[i][1] + \",\"+accData[i][2] +\n \",\" + gyData[i][0] + \",\" + gyData[i][1] + \",\" + gyData[i][2] + \"\\n\";\n try{\n stream.write(tmp.getBytes());\n }catch(Exception e){\n //Log.d(TAG,\"!!!\");\n }\n\n }\n\n /**\n * currently we don't apply zero-mean, unit-variance operation\n * to the data\n */\n // only accelerator's data is using, currently 200 * 3 floats\n // parse the 1D-array to 2D\n\n if(recognizer.isInRecognitionState() &&\n recognizer.getGlobalRecognitionTimes() >= Constants.MAX_GLOBAL_RECOGNITIOME_TIMES){\n recognizer.resetRecognitionState();\n }\n if(recognizer.isInRecognitionState()){\n recognizer.removeOutliers(accData);\n recognizer.removeOutliers(gyData);\n\n double [] feature = new double [FEATURE_SIZE];\n recognizer.extractFeatures(feature, accData, gyData);\n\n int result = recognizer.runModel(feature);\n String ret = \"@@@\";\n if(result != Constants.UNDEF_RET){\n if(result == Constants.FINISH_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(Constants.FINISH_INFO);\n waitForPlayout(1);\n recognizer.resetLastGesutre();\n recognizer.resetRecognitionState();\n ret += \"1\";\n }else if(result == Constants.RIGHT_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(\"Now please do Step \" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n ret += \"1\";\n }else if(result == Constants.ERROR_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getExpectedGesture());\n waitForPlayout(1);\n ret += \"0\";\n }else if(result == Constants.ERROR_AND_FORWARD_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getLastGesture());\n waitForPlayout(1);\n if(recognizer.getExpectedGesture() <= Constants.STATE_SPACE){\n mUserWarningService.playSpeech(\n \"Step \" + recognizer.getLastGesture() + \"missing \" +\n \". Now please do Step\" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n }else{\n recognizer.resetRecognitionState();\n mUserWarningService.playSpeech(\"Recognition finished.\");\n waitForPlayout(1);\n }\n\n\n ret += \"0\";\n }\n ret += \",\" + Integer.toString(result) + \"@@@\";\n\n Log.d(TAG, ret);\n Message msg = new Message();\n msg.obj = ret;\n mWriteThread.writeHandler.sendMessage(msg);\n }\n }\n\n }",
"public synchronized void m29984l() {\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeatSlave \");\n }\n f23274i++;\n mo33398h();\n if (C6973b.m29763a().mo33291f(C6973b.m29776f())) {\n if (!C7048a.m30142d(C6973b.m29776f())) {\n C6864a.m29308i(Constants.ServiceLogTag, \"network is unreachable ,give up and go on slave service\");\n } else if (C6973b.m29776f() != null) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n boolean isForeiginPush = XGPushConfig.isForeiginPush(C6973b.m29776f());\n String str = Constants.ACTION_SLVAE_2_MAIN;\n String str2 = Constants.ServiceLogTag;\n if (isForeiginPush) {\n C6864a.m29308i(str2, \"isForeiginPush network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else if (C6979b.m29795a(C6973b.m29776f()).mo33300b()) {\n C6864a.m29308i(str2, \"network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else {\n C6864a.m29308i(str2, \"network is error , go on slave service\");\n }\n }\n });\n } else {\n C6864a.m29308i(Constants.ServiceLogTag, \"PushServiceManager.getInstance().getContext() is null\");\n }\n }\n }",
"void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }",
"public void processStimulus(java.util.Enumeration en) {\n//\t\tSystem.out.println(\"physics\");\n// performPhysics();\n\n//\t\tSystem.out.println(\"behavior\");\n doEveryFrame();\n\n//\t\tobjHPindicator\n// hpAppear.setColoringAttributes(new ColoringAttributes(1.0f - (float) hitpoints / (float) maxHitpoints, (float) hitpoints / (float) maxHitpoints, 0.0f, ColoringAttributes.NICEST));\n\n// refreshPosition();\n\n if (isAlive()) {\n wakeupOn(w);\n } else {\n kill();\n }\n }",
"public void run(){\n while(true){\n thinking();\n state.grabFork(philosopherIndex,left,right);\n eating();\n state.putForkDown(philosopherIndex,left,right);\n thinking();\n }\n }",
"private void computeDirect() {\n\t\t\tif (startY > 0) {\n\t\t\t\toffset = (startY - 1) * width;\n\t\t\t} else {\n\t\t\t\toffset = 0;\n\t\t\t}\n\n\t\t\tendY = endY == height ? endY - 1 : endY;\n\n\t\t\tfor (int y = startY; y <= endY; y++) {\n\t\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\t\tfinal Point3D moveX = xAxis.scalarMultiply(x * horizontal / (width - 1));\n\t\t\t\t\tfinal Point3D moveY = yAxis.scalarMultiply(y * vertical / (height - 1));\n\t\t\t\t\tfinal Point3D screenPoint = screenCorner.add(moveX).sub(moveY);\n\n\t\t\t\t\tfinal Ray ray = Ray.fromPoints(eye, screenPoint);\n\n\t\t\t\t\tRayCasterUtil.tracer(scene, ray, rgb);\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\n\n\t\t\t\t\toffset++;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void action() {\n\t\tsuppressed = false;\r\n\t\tpilot.setLinearSpeed(8);\r\n\t\tpilot.setLinearAcceleration(4);\r\n\t\tColorThread.updatePos = false;\r\n\t\tColorThread.updateCritical = false;\r\n\t\t//create a array to save the map information\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\trobot.probability[a][b] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 8; a++) {\r\n\t\t\tfor (int b = 0; b < 8; b++) {\r\n\t\t\t\tif (a == 0 || a == 7 || b == 0 || b == 7) {\r\n\t\t\t\t\trobot.probability[a][b] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int a = 0; a < 6; a++) {\r\n\t\t\tfor (int b = 0; b < 6; b++) {\r\n\t\t\t\tif (robot.map[a][b].getOccupied() == 1) {\r\n\t\t\t\t\trobot.probability[a + 1][b + 1] = 100;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Step1: use ArrayList to save all of the probability situation.\r\n\t\tfloat front, left, right, back;\r\n\t\tfront = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\tleft = USThread.disSample[0];\r\n\t\trobot.setmotorM(-180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tright = USThread.disSample[0];\r\n\t\trobot.setmotorM(90);\r\n\t\tDelay.msDelay(1000);\r\n\t\trobot.correctHeading(180);\r\n\t\tDelay.msDelay(1000);\r\n\t\tback = USThread.disSample[0];\r\n\t\trobot.correctHeading(180);\r\n\t\tfor (int a = 1; a < 7; a++) {\r\n\t\t\tfor (int b = 1; b < 7; b++) {\r\n\t\t\t\tif (robot.probability[a][b] == -1) {\r\n\t\t\t\t\tif (((robot.probability[a][b + 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t//direction is north\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(0, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"0 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a + 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is east\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(1, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"1 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a][b - 1] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a - 1][b] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is sourth\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(2, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"2 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (((robot.probability[a - 1][b] == 100 && front < 0.25)\r\n\t\t\t\t\t\t\t|| (robot.probability[a - 1][b] == -1 && front > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b + 1] == 100 && right < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b + 1] == -1 && right > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a + 1][b] == 100 && back < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a + 1][b] == -1 && back > 0.25))\r\n\t\t\t\t\t\t\t&& ((robot.probability[a][b - 1] == 100 && left < 0.25)\r\n\t\t\t\t\t\t\t\t\t|| (robot.probability[a][b - 1] == -1 && left > 0.25))) {\r\n\t\t\t\t\t\t// direction is west\r\n\t\t\t\t\t\trobot.listOfPro.add(new ProPoint(3, 0, a, b));\r\n\t\t\t\t\t\t//System.out.println(\"3 \"+a+\" \"+b);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Step 2: use loop to take control of robot walk and check the location correction\r\n\t\tboolean needLoop = true;\r\n\t\tint loopRound = 0;\r\n\t\twhile (needLoop) {\r\n\t\t\t// One of way to leave the loop is at the hospital\r\n\t\t\tif ((ColorThread.leftColSample[0] >= 0.2 && ColorThread.leftColSample[1] < 0.2\r\n\t\t\t\t\t&& ColorThread.leftColSample[1] >= 0.14 && ColorThread.leftColSample[2] <= 0.8)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] >= 0.2 && ColorThread.rightColSample[1] < 0.2\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[1] >= 0.11 && ColorThread.rightColSample[2] <= 0.08)) {\r\n\t\t\t\trobot.updatePosition(0, 0);\r\n\t\t\t\tint numOfAtYellow = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtYellow++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtYellow == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 1 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\t//have two way to go to the yellow part\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//Another way to leave the loop is the robot arrive the green cell.\r\n\t\t\tif ((ColorThread.leftColSample[0] <= 0.09 && ColorThread.leftColSample[1] >= 0.17\r\n\t\t\t\t\t&& ColorThread.leftColSample[2] <= 0.09)\r\n\t\t\t\t\t&& (ColorThread.rightColSample[0] <= 0.09 && ColorThread.rightColSample[1] >= 0.014\r\n\t\t\t\t\t\t\t&& ColorThread.rightColSample[2] <= 0.11)) {\r\n\t\t\t\trobot.updatePosition(5, 0);\r\n\t\t\t\tint numOfAtGreen = 0;\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\tnumOfAtGreen++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numOfAtGreen==1) {\r\n\t\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowX() == 6 && robot.listOfPro.get(i).getNowY() == 1) {\r\n\t\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfront = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tleft = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(-180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tright = USThread.disSample[0];\r\n\t\t\t\t\trobot.setmotorM(90);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tback = USThread.disSample[0];\r\n\t\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\t\tDelay.msDelay(1000);\r\n\t\t\t\t\tif(front<0.25 && right<0.25 && left>0.25 && back>0.25) {\r\n\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t}else if(front<0.25 && right>0.25 && back>0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else if(front>0.25 && right>0.25 && back<0.25 && left<0.25) {\r\n\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The third way of leave the loop is the robot have already know his position and direction.\r\n\t\t\tint maxStepNumber = 0;\r\n\t\t\tint numberOfMaxSteps = 0;\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() > maxStepNumber) {\r\n\t\t\t\t\tmaxStepNumber = robot.listOfPro.get(i).getSteps();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\tnumberOfMaxSteps++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (numberOfMaxSteps == 1) {\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getSteps() == maxStepNumber) {\r\n\t\t\t\t\t\trobot.updatePosition(robot.listOfPro.get(i).getNowX() - 1,\r\n\t\t\t\t\t\t\t\trobot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.setDirection(false);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 3) {\r\n\t\t\t\t\t\t\trobot.setDirection(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// do not to set the heading, because the default value is 0.\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tneedLoop = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//The below part are the loops.\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\t// move\r\n\t\t\t\r\n\t\t\tif (front > 0.25) {\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (left > 0.25) {\r\n\t\t\t\trobot.correctHeading(-90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (right > 0.25) {\r\n\t\t\t\trobot.correctHeading(90);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\trobot.correctHeading(180);\r\n\t\t\t\trobot.getPilot().travel(25);\r\n\t\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t\tif(robot.listOfPro.get(i).getSteps()==loopRound) {\r\n\t\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(2);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(3);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() - 1);\r\n\t\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(0);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowY(robot.listOfPro.get(i).getNowY() + 1);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowHeading(1);\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setNowX(robot.listOfPro.get(i).getNowX() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// It time to check the around situation\r\n\t\t\tfront = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tleft = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(-180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tright = USThread.disSample[0];\r\n\t\t\trobot.setmotorM(90);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tback = USThread.disSample[0];\r\n\t\t\trobot.correctHeading(180);\r\n\t\t\tDelay.msDelay(1000);\r\n\t\t\tfor (int i = 0; i < robot.listOfPro.size(); i++) {\r\n\t\t\t\t//System.out.println(robot.listOfPro.get(i).getSteps());\r\n\t\t\t\t\tif (robot.listOfPro.get(i).getNowHeading() == 0) {\r\n\t\t\t\t\t\tif (((front < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 1) {\r\n\t\t\t\t\t\tif (((left < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (robot.listOfPro.get(i).getNowHeading() == 2) {\r\n\t\t\t\t\t\tif (((back < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((right < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (((right < 0.25\r\n\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro.get(i).getNowY()\r\n\t\t\t\t\t\t\t\t\t\t+ 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (right > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() + 1] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((front < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t- 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (front > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() - 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((back < 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ 1][robot.listOfPro.get(i).getNowY()] == 100)\r\n\t\t\t\t\t\t\t\t|| (back > 0.25\r\n\t\t\t\t\t\t\t\t\t\t&& robot.probability[robot.listOfPro.get(i).getNowX() + 1][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t\t\t.get(i).getNowY()] == -1))\r\n\t\t\t\t\t\t\t\t\t\t&& ((left < 0.25 && robot.probability[robot.listOfPro.get(i)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getNowX()][robot.listOfPro.get(i).getNowY() - 1] == 100)\r\n\t\t\t\t\t\t\t\t|| (left > 0.25 && robot.probability[robot.listOfPro.get(i).getNowX()][robot.listOfPro\r\n\t\t\t\t\t\t\t\t\t\t.get(i).getNowY() - 1] == -1))) {\r\n\t\t\t\t\t\t\t//It is correct when the robot have the same data information with estimate information\r\n\t\t\t\t\t\t\trobot.listOfPro.get(i).setSteps(robot.listOfPro.get(i).getSteps() + 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tloopRound++;\r\n\t\t}\r\n\t\t// if is out the while loop, it will find the heading and the position of robot right now.\r\n\t\t//Step 3: It is time to use wavefront to come back to the hospital\r\n\t\trobot.restoreDefault();\r\n\t\trobot.RunMode = 1;\r\n\t\tColorThread.updatePos = true;\r\n\t\tColorThread.updateCritical = true;\r\n\t}",
"public void execute(OutputManager om) {\n\n int numRegions = allROIs.length;\n \n \n // get the voxel classification\n // either from a voxel class map or from a brain / background segmentation\n int[][][] vc = new int[xDataDim][yDataDim][zDataDim];\n \n // number of PDs in each voxel (for Bayesian images)\n int[][][] voxelNumPDs = new int[xDataDim][yDataDim][zDataDim];\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n vc[i][j][k] = 2;\n voxelNumPDs[i][j][k] = 1;\n }\n }\n }\n \n if (CL_Initializer.bgMaskFile != null) {\n \n if (ImageHeader.imageExists(CL_Initializer.bgMaskFile)) {\n if ( !CL_Initializer.headerTemplate.sameSpace(CL_Initializer.bgMaskFile) ) {\n throw new LoggedException(\"Brain mask must be in the same voxel space as the input data\");\n }\n }\n\n CL_Initializer.initMaskSource();\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n \n double maskValue = CL_Initializer.bgMask.nextVoxel()[0];\n \n vc[i][j][k] = maskValue > 0.0 ? 2 : -1;\n voxelNumPDs[i][j][k] = maskValue > 0.0 ? 1 : 0;\n }\n }\n }\n \n }\n \n \n // use VC from file if we have it - note this overrides the bgmask\n\n // This needs generalizing to support NIfTI files / other formats. Ideally it should be decoupled from the\n // SH order (which is ambiguous over order 4 anyhow), it should be simply the number of PDs in the voxel\n //\n // Actually doing this will require work to the TractographyImage tree and other classes\n //\n if (CL_Initializer.voxelClassMap != null) {\n vc = new int[xDataDim][yDataDim][zDataDim];\n \n DataSource vcSource = ExternalDataSource.getDataSource(CL_Initializer.voxelClassMap, 1, \"int\");\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n vc[i][j][k] = (int)vcSource.nextVoxel()[0];\n }\n }\n }\n }\n \n // get the anisotropy map, if any\n //\n // Could be FA or any scalar image where we cease tracking below a threshold\n double[][][] anisMap = null;\n \n if (anisMapFile != null) {\n if (ImageHeader.imageExists(anisMapFile)) {\n try {\n \n ImageHeader ih = ImageHeader.readHeader(anisMapFile);\n\n \n if (!CL_Initializer.headerTemplate.sameSpace(ih)) {\n throw new LoggedException(\"Anisotropy image must be in the same voxel space as the input data\");\n }\n\n\n anisMap = ih.readSingleVolumeData();\n }\n catch (IOException e) {\n throw new LoggedException(e);\n }\n }\n else {\n anisMap = new double[xDataDim][yDataDim][zDataDim];\n \n DataSource anisSource =\n ExternalDataSource.getDataSource(anisMapFile, 1, CL_Initializer.inputDataType);\n \n for (int k = 0; k < zDataDim; k++) {\n for (int j = 0; j < yDataDim; j++) {\n for (int i = 0; i < xDataDim; i++) {\n anisMap[i][j][k] = anisSource.nextVoxel()[0];\n }\n }\n }\n \n }\n }\n\n\n // set up the image\n \n TractographyImage image = null;\n \n switch (imageType) {\n\n\tcase BEDPOSTX : case BEDPOSTX_DYAD :\n\n\t boolean probabilistic = ( imageType == ImageType.BEDPOSTX ); \n\t \n\t image = BedpostxTractographyImage.getTractographyImage(bedpostxDir, probabilistic, bedpostxMinF, anisMap, anisThresh,\n\t\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n\t \n\t break;\n\n \n case REPBS_DT: case REPBS_MULTITENSOR: \n \n CL_Initializer.initImagingScheme();\n \n \n image =\n RepBS_DWI_TractographyImage.getTractographyImage(CL_Initializer.bsDataFiles,\n CL_Initializer.inputDataType,\n CL_Initializer.imPars,\n CL_Initializer.inversionIndices,\n vc, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n break;\n \n \n case WILDBS_DT:\n\t CL_Initializer.initImagingScheme();\n \n\t image =\n\t\tDT_WildBS_DWI_TractographyImage.getTractographyImage(CL_Initializer.inputFile,\n\t\t\t\t\t\t\t\t CL_Initializer.inputDataType,\n\t\t\t\t\t\t\t\t CL_Initializer.imPars,\n\t\t\t\t\t\t\t\t vc, anisMap, anisThresh, \n\t\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n\t break;\n \n \n \n case PICO :\n \n image = PICoTractographyImage.getTractographyImage\n (CL_Initializer.inputFile, CL_Initializer.inputDataType, CL_Initializer.numPDsIO,\n picoPDF, anisMap, anisThresh, new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n break;\n \n case BAYESDIRAC: case BAYESDIRAC_DT :\n \n CL_Initializer.initImagingScheme();\n \n // Friman Bayesian method\n // add anisotropy map option\n\n BayesDataModel dataModel = imageType == ImageType.BAYESDIRAC ? BayesDataModel.BALL_STICK : BayesDataModel.CYL_SYMM_DT;\n\n BayesDiracTractographyImage bi = BayesDiracTractographyImage.getTractographyImage\n (CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.imPars, dataModel, voxelNumPDs, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, CL_Initializer.pointSetInd, ran);\n \n if (curvePriorK > 0.0) {\n bi.setCurvePriorKappa(curvePriorK);\n }\n if (curvePriorG > 0.0) {\n bi.setCurvePriorGamma(curvePriorG);\n }\n \n if (externalPriorImageFile != null) {\n PICoTractographyImage ePrior = PICoTractographyImage.getTractographyImage\n (externalPriorImageFile, externalPriorDataType, CL_Initializer.numPDsIO,\n picoPDF, anisMap, anisThresh, new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim}, ran);\n \n bi.setExternalPriors(ePrior);\n }\n \n image = bi;\n \n break;\n \n case SF_PEAK :\n image =\n SF_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.numPDsIO, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n \n case DT: case MULTITENSOR :\n image =\n DT_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.maxTensorComponents, anisMap, anisThresh,\n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n\n case DWI_DT : case DWI_MULTITENSOR:\n\n CL_Initializer.initImagingScheme();\n\n image =\n DWI_TractographyImage.getTractographyImage(CL_Initializer.inputFile, CL_Initializer.inputDataType,\n CL_Initializer.imPars, CL_Initializer.inversionIndices,\n vc, anisMap, anisThresh, \n new int[] {xDataDim, yDataDim, zDataDim},\n new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n break;\n\n\tcase VECTOR : \n\n\t image = PD_TractographyImage.getTractographyImage(vectorFiles, CL_Initializer.inputDataType,\n\t\t\t\t\t\t\t anisMap, anisThresh, \n\t\t\t\t\t\t\t new int[] {xDataDim, yDataDim, zDataDim},\n\t\t\t\t\t\t\t new double[] {xVoxelDim, yVoxelDim, zVoxelDim});\n\t break;\n \n default : throw new LoggedException(\"Unsupported image type : \" + imageType);\n \n }\n \n \n // Set up the interpolation\n\n ImageInterpolator interp = null;\n\n \n switch (dataInterpolation) {\n\n\n case NEAREST_NEIGHBOUR: \n \n interp = new NearestNeighbourInterpolator(image);\n\n break;\n\n case NEIGHBOUR_CHOICE: \n\n interp = new NeighbourChoiceInterpolator(image, ran);\n\n break;\n\n case DWI_TRILINEAR: \n\n interp = new DWI_LinearInterpolator((DWI_TractographyImage)image);\n\n break;\n\n case VECTOR_TRILINEAR: \n\n interp = new VectorLinearInterpolator(image);\n\n break;\n\n case TEND_NN: case TEND_NC:\n\n // how to interpolate the tensor data itself, in order to provide\n // the tensor for the TEND term\n TensorInterpolator dataInterp = null;\n\n if (dataInterpolation == DataInterpolation.TEND_NC) {\n dataInterp = new DT_NC_Interpolator((TensorTractographyImage)image, ran);\n }\n else {\n dataInterp = new DT_NN_Interpolator((TensorTractographyImage)image);\n }\n\n if (tendF_File != null) {\n try { \n ImageHeader ih = ImageHeader.readHeader(tendF_File);\n \n interp = new TendInterpolator((TensorTractographyImage)image, dataInterp, ih.readSingleVolumeData(), tendG);\n }\n catch (IOException e) {\n throw new LoggedException(e);\n\n }\n \n }\n else {\n interp = new TendInterpolator((TensorTractographyImage)image, dataInterp, tendF, tendG); \n }\n \n break;\n\n default: throw new LoggedException(\"Unsupported interpolation : \" + dataInterpolation);\n\n\n }\n\n \n // set up the tracker\n\n FibreTracker tracker = null;\n\n\n switch (trackingAlgorithm) {\n\n case FACT:\n \n tracker = new FACT_FibreTracker(image);\n \n break;\n \n case EULER: \n \n tracker = new EulerFibreTracker(interp, stepSize); \n\n break;\n\n case RK4: \n\n tracker = new RK4FibreTracker(interp, stepSize);\n\n break;\n }\n\n tracker.setCurveCheckInterval(checkCurveLength);\n tracker.setIP_Threshold(ipThresh);\n \n \n // And finally, do the tracking\n \n regions : for (int region = 0; region < allROIs.length; region++) {\n\n RegionOfInterest roi = allROIs[region];\n \n if (regionIndex > -1) {\n if (roi.getRegionLabel() != regionIndex) {\n continue;\n }\n }\n \n \n int outputRegionID = roi.getRegionLabel();\n \n \n // points defined in Camino space\n Point3D[] seeds = roi.getSeedPoints();\n \n if (!silent) {\n System.err.println(\"Processing ROI \" + (region + 1) + \" of \" + numRegions);\n }\n \n FileOutputStream fout = null;\n DataOutputStream dout = null;\n \n try {\n \n if (outputRoot == null) {\n dout = om.getOutputStream();\n }\n else {\n \n if (gzip) {\n fout = new FileOutputStream(outputRoot + outputRegionID + \".Bfloat.gz\");\n dout = new DataOutputStream(new GZIPOutputStream(fout, 1024*1024*16));\n \n }\n else {\n fout = new FileOutputStream(outputRoot + outputRegionID + \".Bfloat\");\n dout = new DataOutputStream\n (new BufferedOutputStream(fout, 1024*1024*16));\n }\n }\n \n \n \n \n seed: for (int sp = 0; sp < seeds.length; sp++) {\n \n if (!silent) {\n System.err.print(\"\\rProcessing seed \" + (sp + 1) + \" of \" + seeds.length);\n }\n \n Point3D seedPoint = seeds[sp];\n \n if (!tracker.inBounds(seedPoint)) {\n logger.warning(\"Seed point \\n\\t\" + seedPoint + \"\\n is outside the diffusion image space, ignoring\");\n continue seed;\n }\n\n int xVox = (int)(seedPoint.x / xVoxelDim);\n int yVox = (int)(seedPoint.y / yVoxelDim);\n int zVox = (int)(seedPoint.z / zVoxelDim);\n \n int numPDs = image.numberOfPDs(xVox, yVox, zVox);\n \n // if number of PDs is zero, track once\n // tracker will return the seed point\n numPDs = numPDs == 0 ? 1 : numPDs;\n \n for (int p = 0; p < numPDs; p++) {\n \n for (int i = 0; i < iterations; i++) {\n \n Tract t = tracker.trackFromSeed(seedPoint, p);\n \n // warp tracts to physical space\n t.transformToPhysicalSpace(voxelToPhysicalTrans, xVoxelDim, yVoxelDim, zVoxelDim);\n \n t.writeRaw(dout);\n \n }\n \n }\n \n } // end for seedpoints\n \n if (!silent) {\n System.err.println(\"\\n\");\n }\n \n if (outputRoot != null) {\n // want to close file\n dout.close();\n }\n \n }\n catch(IOException e) {\n throw new LoggedException(e);\n }\n \n } // end for all ROIs\n \n // close om stream\n if(om != null)\n om.close();\n \n }",
"public void train ()\t{\t}",
"public void run() {\n\n\n\t\tStructurePairAligner aligner = new StructurePairAligner();\n\t\taligner.setDebug(true);\n\t\ttry {\n\t\t\taligner.align(structure1,structure2);\n\t\t} catch (StructureException e){\n\t\t\tlogger.warning(e.getMessage());\n\n\t\t}\n\n\n\n\t\tAlternativeAlignment[] aligs = aligner.getAlignments();\n\t\t//cluster similar results together \n\t\tClusterAltAligs.cluster(aligs);\n\t\tshowAlignment(aligner,aligs);\n\n\t\t//logger.info(\"done!\");\n\n\t\tparent.notifyCalcFinished();\n\n\t}",
"protected void execute() {\n \tdouble a = 0.5;\n \tdouble x = Robot.oi.getPilotAxis(Robot.oi.LOGITECH_F510_AXIS_RIGHT_STICK_X);\n \tdouble y = Robot.oi.getPilotAxis(Robot.oi.LOGITECH_F510_AXIS_LEFT_STICK_Y);\n \tx = 0.5*((a * Math.pow(x, 3)) + ((1-a) * x));\n \ty = a * Math.pow(y, 3) + (1-a) * y;\n \tdouble left = y + x;\n\t\tdouble right = y - x;\n\t\t\n\t\t// Apply values to motors\n\t\tRobot.chassis.setLeft(left);\n\t\tRobot.chassis.setRight(right);\n }",
"protected void calcH(final SimpleMatrix inState, SimpleMatrix H){\n \n H.setRow(0, 0, Math.cos(inititalLat_),0,0,0,0,0);\n H.setRow(1, 0, 0,1.0/R_,0,0,0,0);\n H.setRow(2, 0, 0,0,1.0/D_,0,0,L_/(2*D_));\n H.setRow(3, 0, 0,0,1.0/D_,0,0,-L_/(2*D_));\n H.setRow(4, 0, 0,0,0,1,0,0);\n H.setRow(5, 0, 0,0,0,0,1,0);\n }",
"public void execute(){\n \n double default_weight = 0; //This is the weight we change each time we process a new Node\n GraphNode default_node = Source; //we begin with source\n MinDistance.set(findNode(Source), 0.0); //sets the weight of the source node to 0\n MinDistanceStatus.set(findNode(Source), true); //sets the weight as final\n References.set(findNode(Source), new ArcGraph(0.0, Source, Source)); //sets the source of the as himself so no null pointer exception occurs\n \n for (int i = 0; i < Nodes.size(); i++){ //We execute the cicle the number of nodes we have\n \n setWeights(default_node, default_weight); //updates the weight of the weight list\n int min_weight_pos = getMinDistanceArray(); //returns the pos of the min weight\n double min_weight = MinDistance.get(min_weight_pos); //returns the min weight\n GraphNode min_node = Nodes.get(min_weight_pos); //Returns the node with the min weight\n int pos_node = findNode(min_node); //returns the pos of the destiny node \n MinDistanceStatus.set(min_weight_pos, true); //sets the weight as final REVISAR\n \n default_weight = min_weight; //Change of values to continue the cicle\n default_node = min_node; //Change of values to continue the \n \n }\n \n }",
"@Override\n public void run()\n {\n storage.unblock(Storage.Type.PRIMARY);\n sensorsOn = true;\n\n h.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n //shade starts a few seconds later; frameWidth / 2\n storage.unblock(Storage.Type.SHADE);\n }\n }, shadeLatency);\n System.out.println(\"X\");\n //put 2 workers to obtain and send data and refresh connection\n h.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n System.out.println(\"X1\");\n if (!experiment) {//if it is experiment, do it only once - dont put next job\n storage.sendToQualify();\n h.postDelayed(this, frameWidth); //6 seconds of data obtanining\n }\n else {\n storage.block(Storage.Type.PRIMARY);\n storage.writeToFile(getApplicationContext(), filename.toLowerCase(), Storage.Type.PRIMARY);\n }\n }\n }, frameWidth); //a few seconds later\n h.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n System.out.println(\"X2\");\n if (!experiment) {\n storage.sendShadeToQualify();\n h.postDelayed(this, frameWidth); //6 seconds of data obtanining\n }\n else { //if it is experiment, do it only once - dont put next job\n storage.block(Storage.Type.SHADE);\n storage.writeToFile(getApplicationContext(), filename.concat(\"2\"), Storage.Type.SHADE);\n //after experiment change flag and stop drawing chart\n experiment = false;\n sensorsOn = false;\n }\n }\n }, frameWidth + shadeLatency); //a few seconds later, frame + latency seconds\n if (!experiment)\n h.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n System.out.println(\"X3\");\n requestSensor();\n h.postDelayed(this, sensorRefreshTime); //request sensor every 35 seconds\n }\n }, sensorRefreshTime);\n }",
"private void process() {\n\tint i = 0;\n\tIOUtils.log(\"In process\");\n\tfor (Map.Entry<Integer, double[]> entry : vecSpaceMap.entrySet()) {\n\t i++;\n\t if (i % 1000 == 0)\n\t\tIOUtils.log(this.getName() + \" : \" + i + \" : \" + entry.getKey()\n\t\t\t+ \" : \" + this.getId());\n\t double[] cent = null;\n\t double sim = 0;\n\t for (double[] c : clusters.keySet()) {\n\t\t// IOUtils.log(\"before\" + c);\n\t\tdouble csim = cosSim(entry.getValue(), c);\n\t\tif (csim > sim) {\n\t\t sim = csim;\n\t\t cent = c;\n\t\t}\n\t }\n\t if (cent != null && entry.getKey() != null) {\n\t\ttry {\n\t\t clusters.get(cent).add(entry.getKey());\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n\t }\n\t}\n }",
"@Override\n \tprotected void doExecutionStarted() throws CoreException {\n \t\tfinal OpenMpiRuntimeSystem rtSystem = (OpenMpiRuntimeSystem) getRtSystem();\n \t\tfinal IPJob ipJob = PTPCorePlugin.getDefault().getUniverse().getResourceManager(rtSystem.getRmID()).getQueueById(rtSystem.getQueueID()).getJobById(getJobID());\n \t\tfinal String zeroIndexProcessID = rtSystem.createProcess(getJobID(), \"Open MPI run\", 0);\n \t\tprocessIDs = new String[] { zeroIndexProcessID } ;\n \n \t\t/*\n \t\t * Listener that saves stdout.\n \t\t */\n \t\tfinal PipedOutputStream stdoutOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stdoutInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstdoutInputStream.connect(stdoutOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stdoutPipedStreamListener = new InputStreamListenerToOutputStream(stdoutOutputStream);\n \t\t\n \t\tThread stdoutThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tBufferedReader stdoutBufferedReader = new BufferedReader(new InputStreamReader(stdoutInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stdoutBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.out.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stdoutBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstdoutPipedStreamListener.disable();\n //\t\t\t\t\tif (stdoutObserver != null) {\n //\t\t\t\t\t\tstdoutObserver.removeListener(stdoutPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Listener that saves stderr.\n \t\t */\n \t\tfinal PipedOutputStream stderrOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stderrInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstderrInputStream.connect(stderrOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stderrPipedStreamListener = new InputStreamListenerToOutputStream(stderrOutputStream);\n \t\tThread stderrThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tfinal BufferedReader stderrBufferedReader = new BufferedReader(new InputStreamReader(stderrInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stderrBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStderrAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.err.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stderrBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstderrPipedStreamListener.disable();\n //\t\t\t\t\tif (stderrObserver != null) {\n //\t\t\t\t\t\tstderrObserver.removeListener(stderrPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Thread that parses map information.\n \t\t */\n \t\tfinal PipedOutputStream parserOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream parserInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tparserInputStream.connect(parserOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream parserPipedStreamListener = new InputStreamListenerToOutputStream(parserOutputStream);\n \t\tThread parserThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\t\t\ttry {\n \t\t\t\t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\t\t\t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapText12Parser.parse(parserInputStream);\n \t\t\t\t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapXml13Parser.parse(parserInputStream, new IOpenMpiProcessMapXml13ParserListener() {\n \t\t\t\t\t\t\tpublic void startDocument() {\n \t\t\t\t\t\t\t\t// Empty\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tpublic void endDocument() {\n \t\t\t\t\t\t\t\t/*\n \t\t\t\t\t\t\t\t * Turn of listener that generates input for parser when parsing finishes.\n \t\t\t\t\t\t\t\t * If not done, the parser will close the piped inputstream, making the listener\n \t\t\t\t\t\t\t\t * get IOExceptions for closed stream.\n \t\t\t\t\t\t\t\t */\n \t\t\t\t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t});\n \t\t\t\t\t} else {\n \t\t\t\t\t\tassert false;\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t/*\n \t\t\t\t\t * If output could not be parsed, the kill the mpi process.\n \t\t\t\t\t */\n \t\t\t\t\tparserException = e;\n \t\t\t\t\tprocess.destroy();\n \t\t\t\t} finally {\n \t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Create and start listeners.\n \t\t */\n \t\tstdoutThread.start();\n \t\tstderrThread.start();\n \t\tparserThread.start();\n \n \t\tstderrObserver = new InputStreamObserver(process.getErrorStream());\n \t\tstdoutObserver = new InputStreamObserver(process.getInputStream());\n \n\t\tstdoutObserver.addListener(stdoutPipedStreamListener);\n\t\tstderrObserver.addListener(stderrPipedStreamListener);\n \n \t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\tstderrObserver.addListener(parserPipedStreamListener);\n \t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\tstdoutObserver.addListener(parserPipedStreamListener);\n \t\t} else {\n \t\t\tassert false;\n \t\t}\n \n \t\tstderrObserver.start();\n \t\tstdoutObserver.start();\n \n \t\ttry {\n \t\t\tparserThread.join();\n \t\t} catch (InterruptedException e) {\n \t\t\t// Do nothing.\n \t\t}\n \n \t\tif (parserException != null) {\n \t\t\tprocess.destroy();\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Failed to parse Open Mpi run command output.\", parserException));\n \t\t}\n \n \t\t/*\n \t\t * Copy job attributes from map.\n \t\t */\n \t\trtSystem.changeJob(getJobID(), map.getAttributeManager());\n \n \t\t/*\n \t\t * Copy process attributes from map.\n \t\t */\n \t\tList<Process> newProcesses = map.getProcesses();\n \t\tprocessIDs = new String[newProcesses.size()];\n \t\tfor (Process newProcess : newProcesses) {\n \t\t\tString nodename = newProcess.getNode().getName();\n \t\t\tString nodeID = rtSystem.getNodeIDforName(nodename);\n \t\t\tif (nodeID == null) {\n \t\t\t\tprocess.destroy();\n \t\t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Hostnames from Open MPI output do not match expected hostname.\", parserException));\n \t\t\t}\n \n \t\t\tString processName = newProcess.getName();\n \t\t\tint processIndex = newProcess.getIndex();\n \t\t\tString processID = null;\n \t\t\tif (processIndex == 0) {\n \t\t\t\tprocessID = zeroIndexProcessID;\n \t\t\t} else {\n \t\t\t\tprocessID = rtSystem.createProcess(getJobID(), processName, processIndex);\n \t\t\t}\n \t\t\tprocessIDs[processIndex] = processID;\n \n \t\t\tAttributeManager attrMgr = new AttributeManager();\n \t\t\tattrMgr.addAttribute(ElementAttributes.getNameAttributeDefinition().create(processName));\n \t\t\tattrMgr.addAttribute(ProcessAttributes.getStateAttributeDefinition().create(ProcessAttributes.State.RUNNING));\n \t\t\tattrMgr.addAttributes(newProcess.getAttributeManager().getAttributes());\n \t\t\trtSystem.changeProcess(processID, attrMgr);\n \t\t}\n \t}",
"public void home ()\r\n\t{\r\n\t\tthis.sector = this.head = this.cylinder = 0;\r\n\t}",
"public Hashtable<T,ratingCoord<T>> processSamplesLandmarks_(long timer, List<T> landmarks,\n\t\t\tMatrix centralizedRatingMat) {\n\t\t// TODO Auto-generated method stub\n\t//\tMatrix mat=centralizedRatingMat.subMatrix(landmarks,landmarks);\n\t\t\n\t\tHashtable<T,ratingCoord<T>> coords = MyConvergeMMMF_bias.getInstance().compute_basicMMMF(landmarks, centralizedRatingMat, dim, level);\n\t\t//Iterator<ratingCoord<T>> ier = coords.iterator();\n\t\t\n\t\treturn coords;\t\t\n\t}",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n SmartDashboard.putNumber(\"right encoder\", drive.getRightEncoder());\n SmartDashboard.putNumber(\"left encoder\", drive.getLeftEncoder());\n \n PixyCamBlock centerBlock = PixyCam2.GetCentermostBlock();\n boolean targetInRange = false ;\n \n if(centerBlock == null)\n {\n targetInRange = false;\n SmartDashboard.putString(\"center block data \", \"null\"); \n }\n else if(centerBlock.yCenter < 200)\n {\n targetInRange = true;\n String out = \"Center Block, X: \"+centerBlock.xCenter + \" Y: \"+centerBlock.yCenter;\n SmartDashboard.putString(\"center block data \", out); \n }\n\n String targetValue = Boolean.toString(targetInRange);\n SmartDashboard.putString(\"target good?\", targetValue);\n \n \n SmartDashboard.putBoolean(\"isFlipped\", flipped);\n }",
"private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }",
"public void solveSA() {\r\n initState();\r\n for (int ab = 0; ab < Config.NumberOfMetropolisResets; ab++) {\r\n LogTool.print(\"==================== INACTIVE: START CALC FOR OUTER ROUND \" + ab + \"=========================\",\"notification\");\r\n\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\");\r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n setCur_cost(costCURsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"CUR COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n /* [Newstate] with random dwelltimes */\r\n New_state = newstater(); \r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW STATE \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n// newstater();\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New State before Metropolis: A)\" + New_state[0] + \" B) \" + New_state[1] + \" C) \" + New_state[2],\"notification\");\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New Cost : \" + New_cost,\"notification\");\r\n }\r\n\r\n /**\r\n * MetropolisLoop\r\n * @param Config.NumberOfMetropolisRounds\r\n */\r\n\r\n for(int x=0;x<Config.NumberOfMetropolisRounds;x++) { \r\n LogTool.print(\"SolveSA Iteration \" + x + \" Curcost \" + Cur_cost + \" Newcost \" + New_cost,\"notification\");\r\n if ((Cur_cost - New_cost)>0) { // ? die Kosten\r\n \r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 START\",\"notification\");\r\n }\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA Cost delta \" + (Cur_cost - New_cost) + \" \",\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C1 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 STOP \",\"notification\");\r\n }\r\n } else if (Math.exp(-(New_cost - Cur_cost)/temperature)> RandGenerator.randDouble(0.01, 0.99)) {\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 START: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 before set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 STOP: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n } else {\r\n New_state = newstater();\r\n }\r\n temperature = temperature-1;\r\n if (temperature==0) {\r\n break;\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal());\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n//</editor-fold>\r\n if ((x==58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n if ((Cur_cost - New_cost)>0) {\r\n Cur_state = New_state;\r\n Cur_cost = New_cost; \r\n }\r\n }\r\n if ((x>58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n }\r\n }\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Auskommentierter GLowestState Object Class\">\r\n// if (ab==9) {\r\n// double diff=0;\r\n// }\r\n \r\n // Hier wird kontrolliert, ob das minimalergebnis des aktuellen\r\n // Metropolisloops kleiner ist als das bsiher kleinste\r\n \r\n// if (Cur_cost<Global_lowest_cost) {\r\n// this.setGlobal_lowest_cost(Cur_cost);\r\n// GlobalState GLowestState = new GlobalState(this.Cur_state);\r\n// String rGLSOvalue = GLowestState.getGlobal_Lowest_state_string();\r\n// LogTool.print(\"GLS DEDICATED OBJECT STATE OUTPUT -- \" + GLowestState.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(GLowestState.getDwelltimes());\r\n // LogTool.print(\"READ FROM OBJECT OUTPUT -- \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// LogTool.print(\"DEBUG: CurCost direct : \" + this.getCur_cost(),\"notification\"); \r\n// LogTool.print(\"Debug: Cur<global CurState get : \" + this.getCur_state_string(),\"notification\");\r\n// LogTool.print(\"Debug: Cur<global GLS get : \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(this.getCur_state(Cur_state));\r\n// LogTool.print(\"Debug: Cur<global GLS get after set : \" + this.getGlobal_Lowest_state_string(),\"notification\"); \r\n// }\r\n //</editor-fold>\r\n LogTool.print(\"SolveSA: Outer Iteration : \" + ab,\"notification\");\r\n LogTool.print(\"SolveSA: Last Calculated New State/Possible state inner loop (i.e. 99) : \" + this.getNew_state_string(),\"notification\");\r\n// LogTool.print(\"SolveSA: Best Solution : \" + this.getCur_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: GLS after all loops: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: LastNewCost, unchecked : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: CurCost : \" + this.getCur_cost() + \"i.e. lowest State of this round\",\"notification\"); \r\n }\r\n // return GLowestState;\r\n }",
"private void run(){\r\n\t\tArrayList<Integer> parcours = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> sommets = new ArrayList<Integer>();\r\n\t\t\r\n\t\t//initialisation de la liste des sommets\r\n\t\tfor (int i=1; i<super.g.getDim();i++) {\r\n\t\t\tsommets.add(i);\r\n\t\t}\r\n\r\n\t\t//g�n�ration d'un parcours initial\r\n\t\tAlgo2opt algo = new Algo2opt(super.g);\r\n\t\tsuper.parcoursMin = algo.parcoursMin;\r\n\t\tsuper.dist = algo.dist;\r\n\r\n\t\tcheminMin(parcours,sommets,super.g.getDim(), 0);\r\n\t}",
"@Override\n public void perform (final Object[] nodes) {\n requestProcessor.post(new Runnable() {\n @Override\n public void run() {\n goToSource((TruffleStackFrame) nodes [0]);\n }\n });\n }",
"protected void execute() {\n\t\tcurrent = Robot.encoder.getDistance();\n\t\terror = target - current;\n\t\tscaled_error = error * scale;\n\t\tP = Constants.kDriveTrainP * scaled_error;\n\t\tI += Constants.kDriveTrainI * scaled_error;\n\t\tD = (scaled_error - p_error) / Constants.kDriveTrainD;\n\n\t\tdouble output = P + I + D;\n\n\t\tSmartDashboard.putNumber(\"cur_angle\", Robot.imu.getAngleZ());\n\t\tSmartDashboard.putNumber(\"output\", output);\n\t\tSmartDashboard.putNumber(\"encoder distance\", Robot.encoder.getDistance());\n//\t\tRobot.chassis.tankDrive(output, output);\n\t\tdouble theta = 0 - Robot.imu.getAngleZ();\n\t\tdouble correction = theta * 0.035;\n\t\tSmartDashboard.putNumber(\"correction\", correction);\n\t\tif (theta < 0)\n\t\t\tRobot.mChassis.tankDrive(output + correction, output);\n\t\telse if (theta > 0)\n\t\t\tRobot.mChassis.tankDrive(output, output + correction);\n\t\telse\n\t\t\tRobot.mChassis.tankDrive(output, output);\n\n\t\tif (Math.abs(error) < 0.1)\n\t\t\tisFinished = true;\n\n\t}",
"void runC() {\n\t\tArrayList<Link> links_s2 = new ArrayList<Link>(links_s);\n\t\tArrayList<Link> links_p2 = new ArrayList<Link>(links_p);\n\t\talgorithmC = new HashSet<Link>(algorithmC(links_p2, links_s2));\n\t}",
"public void run() {\n \t\t\tif (currentModelNumber != 1 && currentModelNumber != -1) {\n \t\t\t\tclearParsingFlag(eIsParsing.ATOM_SITE);\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\tatomVector.add(createFinalAtom(curAtom));\n \t\t\tassignMissingResidueIds();\n \t\t\tprevAtom = curAtom;\n \t\t\tcurAtom = null;\n \n \t\t\tclearParsingFlag(eIsParsing.ATOM_SITE);\n \t\t}",
"@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }",
"@Override\n protected void execute() {\n if(isBackwards) {\n exeBackwards();\n } else {\n exeForwards();\n }\n\n SmartDashboard.putNumber(\"DrivePath/SegmentX\", m_left_follower.getSegment().x);\n SmartDashboard.putNumber(\"DrivePath/SegmentVelocity\", m_left_follower.getSegment().velocity);\n }",
"public void run(){\n\n for (int locIdx = begN; locIdx < endN; locIdx++) {\n\n // do mean-shift for profiles at these locations\n\n for (int profileIdx=0; profileIdx<profiles.get(locIdx).size(); profileIdx++) {\n\n // access the detection\n// int profileLength = profiles.get(locIdx).get(profileIdx).length;\n\n // calculate peaks for the ring 'profileIdx'\n ArrayList<Float> currPeaks = extractPeakIdxsList(profiles.get(locIdx).get(profileIdx), startIdx.get(profileIdx), finishIdx.get(locIdx).get(profileIdx));\n\n //if (currPeaks.size()<3) {\n // // it is not a bifurcation according to MS for this ring, don't calculate further, leave empty fields of peakIdx at this location\n // break;\n //}\n //else {\n // add those points\n for (int pp=0; pp<currPeaks.size(); pp++){\n peakIdx.get(locIdx).get(profileIdx).add(pp, currPeaks.get(pp));\n }\n //}\n\n/*\n\t\t\t\tfor (int k=0; k<nrPoints; k++) {\n start[k] = ((float) k / nrPoints) * profileLength;\n }\n\n\t\t\t\tTools.runMS( \tstart,\n \tprofiles.get(locIdx).get(profileIdx),\n \tmaxIter,\n \tepsilon,\n \th,\n\t\t\t\t\t\t\t\tmsFinish);\n*/\n\n /*\n for (int i1=0; i1<nrPoints; i1++) {\n convIdx.get(locIdx).get(profileIdx)[i1] = (float) msFinish[i1];\n }\n*/\n/*\n int inputProfileLength = profiles.get(locIdx).get(profileIdx).length;\n Vector<float[]> cls = Tools.extractClusters1(msFinish, minD, M, inputProfileLength);\n\t\t\t\textractPeakIdx(cls, locIdx, profileIdx); // to extract 3 major ones (if there are three)\n*/\n\n }\n\n }\n\n }"
] | [
"0.58830255",
"0.5848235",
"0.5808482",
"0.5750112",
"0.57493365",
"0.5723928",
"0.5695109",
"0.5680688",
"0.5667163",
"0.56517965",
"0.56474113",
"0.5634726",
"0.5624609",
"0.5589827",
"0.55866516",
"0.5584885",
"0.5580466",
"0.5565601",
"0.55483156",
"0.5522941",
"0.55208635",
"0.5509311",
"0.54663897",
"0.54573214",
"0.5448389",
"0.54446",
"0.54428923",
"0.54207855",
"0.5407917",
"0.5405584",
"0.540556",
"0.5360787",
"0.5353461",
"0.534697",
"0.53411126",
"0.5341055",
"0.5332313",
"0.53192127",
"0.53186727",
"0.53077495",
"0.530691",
"0.5304006",
"0.52987504",
"0.5298296",
"0.5294659",
"0.52888864",
"0.5285919",
"0.52855504",
"0.52814054",
"0.52740747",
"0.52726454",
"0.52722687",
"0.5264946",
"0.5263399",
"0.52550685",
"0.5254269",
"0.5250184",
"0.52496135",
"0.52462536",
"0.52374345",
"0.52327085",
"0.5229805",
"0.522723",
"0.5212732",
"0.52055997",
"0.51809907",
"0.51699924",
"0.5161997",
"0.5157606",
"0.51519394",
"0.51497084",
"0.513933",
"0.5138283",
"0.51376504",
"0.5135395",
"0.5133875",
"0.5129746",
"0.51260704",
"0.5124271",
"0.5117589",
"0.5116604",
"0.51139635",
"0.51088816",
"0.51058745",
"0.5102223",
"0.5100451",
"0.51000136",
"0.5097503",
"0.50971603",
"0.5093671",
"0.5092113",
"0.50854504",
"0.5083011",
"0.5082325",
"0.50771123",
"0.5076121",
"0.5075398",
"0.5074144",
"0.50706613",
"0.50702035",
"0.5065341"
] | 0.0 | -1 |
addPendingNeighbor(msg.from); TODO: test the initialization process | public void cb(CBResult result, ClustReleaseRequestMsg msg,
AddressIF remoteAddr1, Long ts, CB1<Boolean> cbHandled) {
ClustReleaseResponseMsg msg1 = null;
System.out.println("in ReleaseHandler cb");
if (pendingHSHLandmarks.isEmpty()) {
msg1 = new ClustReleaseResponseMsg(UpdateSource, null, null,
null, -1);
sendResponseMessage("Release", msg.from, msg1, msg.getMsgId(),
null, cbHandled);
return;
}
// not empty
long timeStamp = Long.MIN_VALUE;
Iterator<Long> ierTimer = pendingHSHLandmarks.keySet().iterator();
while (ierTimer.hasNext()) {
long tmp = ierTimer.next().longValue();
if (timeStamp < tmp
&& pendingHSHLandmarks.get(Long.valueOf(tmp)).alreadyComputedClustering) {
timeStamp = tmp;
break;
}
}
HSHRecord record = pendingHSHLandmarks.get(Long.valueOf(timeStamp));
if (record != null && record.alreadyComputedClustering) {
int NODES_NUM = record.H.length;
int NC_NUM_DIMS = record.S.length;
double _H[][] = new double[NODES_NUM][NC_NUM_DIMS];
double _S[][] = new double[NC_NUM_DIMS][NC_NUM_DIMS];
_H = makeCopy(record.H, NODES_NUM, NC_NUM_DIMS);
_S = makeCopy(record.S, NC_NUM_DIMS, NC_NUM_DIMS);
msg1 = new ClustReleaseResponseMsg(UpdateSource, _H, _S,
record.IndexOfLandmarks, versionNumber);
msg1.setResponse(true);
msg1.setMsgId(msg.getMsgId());
} else {
msg1 = new ClustReleaseResponseMsg(UpdateSource, null, null,
null, -1);
}
sendResponseMessage("Release", msg.from, msg1, msg.getMsgId(),
null, cbHandled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void uponNeighbourUp(NeighbourUp notification, short sourceProto) {\n for(Host h: notification.getNeighbours()) {\n neighbours.add(h);\n logger.info(\"New neighbour: \" + h);\n eagerPushPeers.add(h);\n }\n }",
"public void addNeighbor(Node node){\n neighbors.add(node);\n liveNeighbors.add(node);\n }",
"public void addNotify()\n { \n super.addNotify(); // creates the peer\n startGame(); // start the thread\n }",
"public void changingNeighbor() {\n }",
"public void onReceiveGetNeighbours(GetNeighboursMessage message) {\n if (routing.get(message.sender) == null) {\n //Note: should exist cause neighbour\n routing.put(message.sender, routing.get(message.lastSender));\n }\n if (message.receiver == id) {\n // we are the destination\n Set<Integer> neighbourIds = neighbours.stream().map(Bunker::getId).collect(Collectors.toSet());\n GiveNeighboursMessage giveNeighboursMessage = new GiveNeighboursMessage();\n giveNeighboursMessage.receiver = message.sender;\n giveNeighboursMessage.sender = id;\n giveNeighboursMessage.ids = neighbourIds;\n sendGiveNeighbours(giveNeighboursMessage);\n } else {\n // route to destination\n message.lastSender = id;\n // we should know receiver at this step\n sendGetNeighbours(message);\n }\n }",
"public void addFriendRequest(String from)\r\n\t{\r\n\t\t// TODO: Play a sound\r\n\t\tmessagesAnimationLabel.setVisible(true);\r\n\t\trepaint();\r\n\t\t\r\n\t\ttheGridView.addFriendRequest(from);\r\n\t}",
"private neighbor_t(Builder builder) {\n super(builder);\n }",
"private void makeGARP(ByteBuffer buf, byte[] senderMAC, byte[] senderIP) {\n if (buf != null && senderMAC != null && senderIP != null) {\n buf.putShort(1);\n buf.putShort((short) OsConstants.ETH_P_IP);\n buf.put((byte) 6);\n buf.put((byte) 4);\n buf.putShort(1);\n buf.put(senderMAC);\n buf.put(senderIP);\n buf.put(this.L2_BROADCAST);\n buf.put(senderIP);\n buf.flip();\n }\n }",
"GameBoardVertex(GameBoardVertex neighbor){this.neighbors.add(neighbor);}",
"void connected(InetAddress address, boolean isMine);",
"void addNeighborEdge(Edge e) {\n\t\t\t_neighborEdges.put(e,false);\n\t\t}",
"public void sendGetNeighbours(GetNeighboursMessage message) {\n routing.get(message.receiver).onReceiveGetNeighbours(message);\n }",
"@Override\n public void onPeersAvailable(SimWifiP2pDeviceList simWifiP2pDeviceList) {\n Collection<SimWifiP2pDevice> beaconsList = simWifiP2pDeviceList.getDeviceList();\n\n try {\n\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this.globalState.getBaseContext());\n\n if (beaconsList.size() == 0){\n this.command = \"leavingQueue\";\n this.beaconName = this.globalState.getLastKnownBeacon();\n this.globalState.setLastKnownBeacon(null);\n\n if(this.globalState.isLoggedIn()){\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this.globalState.getBaseContext(), \"FoodIST\")\n .setSmallIcon(R.drawable.smallicon)\n .setContentTitle(\"FoodIST\")\n .setStyle(new NotificationCompat.BigTextStyle().bigText(\"Hey! You're not waiting in the queue anymore, are you? Take a picture of the food you're about to eat and rate it! Also, again, share it with your friends!\"))\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n notificationManager.notify(100, builder.build());\n\n }\n\n } else {\n this.command = \"joiningQueue\";\n this.beaconName = (beaconsList.iterator().next()).deviceName;\n this.globalState.setLastKnownBeacon(this.beaconName);\n\n if(this.globalState.isLoggedIn()){\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this.globalState.getBaseContext(), \"FoodIST\")\n .setSmallIcon(R.drawable.smallicon)\n .setContentTitle(\"FoodIST\")\n .setStyle(new NotificationCompat.BigTextStyle().bigText(\"Hey! Since you're in a queue, consider submitting the dish you're ordering to FoodIST! Or, of course, if it's there on the menu already, consider rating it and sharing with your friends!\"))\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n\n notificationManager.notify(101, builder.build());\n\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"void addNeighbor(NodeKey key, GraphNode target, Map<String, String> attr);",
"public void withdrawPath(AS peer, int dest) {\n this.incUpdateQueue.add(new BGPUpdate(dest, peer));\n }",
"public void initiate() {\n // all we know is neighbours\n Set<Integer> idsToSend = neighbours.stream().map(Bunker::getId).collect(Collectors.toSet());\n sendGetCount(idsToSend);\n }",
"public void updateNeighbourhood(ArrayList<Node> newNeighbors) {\n\t\tif (newNeighbors.isEmpty() && CDState.getCycle() < crashCycle ){\n\t\t\tthrow new RuntimeException(\"no neighbor found-isolated node\");\n\t\t}\n\t\n\t\tArrayList<Node> added = new ArrayList<Node>(newNeighbors);\n\t\t//added has now all the neighbors(new and old)\n\t\t//remove all the old neighbors\n\t\tadded.removeAll(this.getNeighbors());\n\n\t\tArrayList<Node> removed = new ArrayList<Node>(this.getNeighbors());\n\t\t//removed has now all the old neighbors\n\t\tremoved.removeAll(newNeighbors);\n\n\t\tthis.setNeighbors(newNeighbors);\n\n\t\tDiscoveryListener universeProtocol = (DiscoveryListener) \n\t\t\t\tcurrentNode.getProtocol(universeProtocolId);\n\t\t\n\t\t//add to the list of ur neighbors\n\t\tif (!added.isEmpty()){\n\t\t\t// Notify the higher layers that certain nodes have been discovered.\n\t\t\t//System.out.println(\"cadded\"+ CDState.getCycle() +\",Node: \"+currentNode.getID());\n\t\t\tuniverseProtocol.notifyAddedNodes(currentNode, added);\n\t\t}\n\t\t\n\t\tif (!removed.isEmpty()){\n\t\t\t// Notify the higher layers that certain nodes have been removed.\n\t\t\t//System.out.println(\"cremoved\"+ CDState.getCycle() +\",Node: \"+currentNode.getID());\n\t\t\tuniverseProtocol.notifyRemovedNodes(currentNode, removed);\n\t\t}\n\t\t//System.out.println(\"Node \"+currentNode.getID() + \" neighbors: \" + neighbors.size()); \n\t\tif(neighbors.size()> Neighbor_Threshold){\n\t\t\tthrow new RuntimeException(\"PASSS the maximum number of neighbors plz reduce the discovery radius!\");\n\t\t}\n\t}",
"synchronized void sendTo(Message message, InetSocketAddress receiver) throws InterruptedException {\n Neighbor neighbor = node.getNeighbor(receiver);\n if (neighbor != null) {\n neighbor.sendMessage(message);\n }\n }",
"public void addPendingEdge(@Nullable final PsiElement pendingScope, final Instruction instruction) {\n if (instruction == null) {\n return;\n }\n\n int i = 0;\n // another optimization! Place pending before first scope, not contained in pendingScope\n // the same logic is used in checkPending\n if (pendingScope != null) {\n for (; i < pending.size(); i++) {\n final Pair<PsiElement, Instruction> pair = pending.get(i);\n final PsiElement scope = pair.getFirst();\n if (scope == null) {\n continue;\n }\n if (!PsiTreeUtil.isAncestor(scope, pendingScope, true)) {\n break;\n }\n }\n }\n pending.add(i, Pair.create(pendingScope, instruction));\n }",
"public void addPeerToList(WifiP2pDevice peer) {\n stopRefreshActionBar();\n int peer_index = -1;\n if ((peer_index = peers_.indexOf(peer)) != -1) {\n peers_.get(peer_index).deviceName = peer.deviceName;\n peers_.get(peer_index).deviceAddress = peer.deviceAddress;\n peers_.get(peer_index).status = peer.status;\n } else {\n peers_.add(peer);\n }\n displayEmptyView();\n System.out.println(\"Peers found\");\n ((PeersAdapter)adapter_).update();\n listener_.onDiscoveringPeersRequestDone();\n }",
"public boolean addFriend(Neighbor requestedTo){\n boolean isAdded=false;\n try{\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"Username\", requestedTo.getInstanceName());\n values.put(\"deviceID\", requestedTo.getDeviceAddress());\n values.put(\"IP\", requestedTo.getIpAddress().getHostAddress());\n Log.i(TAG,\"Adding.. \"+requestedTo.getDeviceAddress());\n isAdded=database.insert(\"Friend\", null, values)>0;\n dbH.close();\n\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return isAdded;\n }",
"private void notifyNeighbors() {\n final World world = getCasing().getCasingWorld();\n\n scheduledNeighborUpdate = false;\n final Block blockType = world.getBlockState(getCasing().getPosition()).getBlock();\n world.updateNeighborsAlways(getCasing().getPosition(), blockType);\n }",
"void notifyPending(MessageSnapshot snapshot);",
"void EnableRemote (int boardID, short[] addrlist);",
"public void m23076a(RemoteMessage remoteMessage) {\n }",
"void addIncomingOneToOneChatMessage(ChatMessage msg, boolean imdnDisplayedRequested);",
"@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase UDPHelper.HANDLER_MESSAGE_BIND_ERROR:\n\t\t\t\t\tLog.e(\"my\", \"HANDLER_MESSAGE_BIND_ERROR\");\n\t\t\t\t\tT.showShort(mContext, R.string.port_is_occupied);\n\t\t\t\t\tbreak;\n\t\t\t\tcase UDPHelper.HANDLER_MESSAGE_RECEIVE_MSG:\n\t\t\t\t\tisReceive = true;\n\t\t\t\t\tLog.e(\"my\", \"HANDLER_MESSAGE_RECEIVE_MSG\");\n\t\t\t\t\t// NormalDialog successdialog=new NormalDialog(mContext);\n\t\t\t\t\t// successdialog.successDialog();\n\t\t\t\t\tT.showShort(mContext, R.string.set_wifi_success);\n\t\t\t\t\tmHelper.StopListen();\n\t\t\t\t\tBundle bundle = msg.getData();\n\t\t\t\t\t\n\t\t\t\t\tIntent it = new Intent();\n\t\t\t\t\tit.setAction(Constants.Action.RADAR_SET_WIFI_SUCCESS);\n\t\t\t\t\tsendBroadcast(it);\n\t\t\t\t\tFList flist = FList.getInstance();\n\t\t\t\t\tflist.updateOnlineState();\n\t\t\t\t\tflist.searchLocalDevice();\n\n\t\t\t\t\tString contactId = bundle.getString(\"contactId\");\n\t\t\t\t\tString frag = bundle.getString(\"frag\");\n\t\t\t\t\tString ipFlag = bundle.getString(\"ipFlag\");\n\t\t\t\t\tContact saveContact = new Contact();\n\t\t\t\t\tsaveContact.contactId = contactId;\n\t\t\t\t\tsaveContact.activeUser = NpcCommon.mThreeNum;\n\t\t\t\t\tIntent add_device = new Intent(mContext,\n\t\t\t\t\t\t\tAddContactNextActivity.class);\n\t\t\t\t\tadd_device.putExtra(\"contact\", saveContact);\n\t\t\t\t\tif (Integer.parseInt(frag) == Constants.DeviceFlag.UNSET_PASSWORD) {\n\t\t\t\t\t\tadd_device.putExtra(\"isCreatePassword\", true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadd_device.putExtra(\"isCreatePassword\", false);\n\t\t\t\t\t}\n\t\t\t\t\tadd_device.putExtra(\"isfactory\", true);\n\t\t\t\t\tadd_device.putExtra(\"ipFlag\", ipFlag);\n\t\t\t\t\tstartActivity(add_device);\n\t\t\t\t\t// Intent modify = new Intent();\n\t\t\t\t\t// modify.setClass(mContext, LocalDeviceListActivity.class);\n\t\t\t\t\t// mContext.startActivity(modify);\n\t\t\t\t\tfinish();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcancleTimer();\n\t\t\t}",
"protected void enqueue(StdPeerMessage message)\n {\n// if (DEBUG) {\n// if (message.type == StdPeerMessage.REQUEST) {\n// System.out.println(System.nanoTime() + \" [stdpc] enqueue: req \" + message.index + \" \" + (message.begin >> 14));\n// } else {\n// System.out.println(\"[stdpc] enqueue: \" + message.type);\n// }\n// }\n\n if (message.type == StdPeerMessage.CHOKE)\n {\n // remove reply messages with piece (block) data\n // from the send queue (due to spec)\n for (int i = sendQueue.size() - 1; 0 <= i; i--) {\n StdPeerMessage pm = sendQueue.get(i);\n if (pm.type == StdPeerMessage.PIECE) {\n sendQueue.remove(i);\n TorrentStorage.Block block = (TorrentStorage.Block) message.params;\n block.release();\n pmCache.release(pm);\n }\n }\n // set choke status\n choke = true;\n // send choke asap\n sendQueue.add(0, message);\n }\n else if (message.type == StdPeerMessage.CANCEL)\n {\n // remove the linked request if it's still in the queue\n for (int i = sendQueue.size() - 1; 0 <= i; i--) {\n StdPeerMessage pm = sendQueue.get(i);\n if ((pm.type == StdPeerMessage.REQUEST)\n && (pm.index == message.index)\n && (pm.begin == message.begin)\n && (pm.length == message.length)) // this check is redundant as length is fixed\n {\n sendQueue.remove(i);\n pmCache.release(pm);\n // don't really enqueue CANCEL as the linked request\n // has been found and removed\n pmCache.release(message);\n return;\n }\n }\n // send asap\n sendQueue.add(0, message);\n }\n else {\n if (message.type == StdPeerMessage.INTERESTED) {\n interested = true;\n }\n else if (message.type == StdPeerMessage.NOT_INTERESTED) {\n interested = false;\n }\n else if (message.type == StdPeerMessage.UNCHOKE) {\n choke = false;\n }\n\n // enqueue message\n sendQueue.add(message);\n }\n\n// sendQueue.forEach(pm -> System.out.println(\" -x> \" + System.identityHashCode(pm) + pm.type + \" ,\" + pm.index +\",\" + pm.begin +\",\" + pm.length) );\n\n }",
"public void addNeighbor(final Cell neighbor) {\n if (neighbor != null) {\n this.neighbors.add(neighbor);\n }\n }",
"synchronized void broadcastMessage(Message message) throws InterruptedException {\n for (Neighbor neighbor : node.getNeighbors()) {\n if (!neighbor.getAddress().equals(message.getSender())) {\n neighbor.sendMessage(message);\n }\n }\n }",
"public void findNode(ArrayList<NodeAddress> nodes){\r\n\t\tif ( nodes.size() == 0 )\r\n\t\t\treturn;\r\n\t\t//Add to route table\r\n\t\trouteTable.set(nodes);\r\n\t\t//Send pending messages\r\n\t}",
"public void addNeighbor(MyNode myNode){\r\n if (!neighbors.contains(myNode)) {\r\n neighbors.add(myNode);\r\n }\r\n }",
"public void sendMessage(Message message) {\n if (accepted || !ended || message.type.equals(\"register\") || message.type.equals(\"lobby\")) {\n message.packetNum = packetNum;\n ByteBuffer buffer = ByteBuffer.wrap(SerializationUtils.serialize(message));\n SocketAddress addr = null;\n try {\n addr = client.getLocalAddress();\n log(\"sending [\" + message + \"] to \" + addr);\n client.write(buffer);\n reconciliation.add(message);\n packetNum++;\n } catch (IOException e) {\n error(\"Failed to send message to:\" + addr);\n e.printStackTrace();\n }\n }\n }",
"public static void main(String[] args)\n { \n\n new PrintNeighborMsg();\n }",
"public void run() {\n\n\t\tObjectInputStream inputStream = null;\n\t\tObjectOutputStream outputStream = null;\n\n\t\ttry {\n\n\t\t\t// get packet from InputStream\n\t\t\tinputStream = new ObjectInputStream(this.socket.getInputStream());\n\t\t\tSOSPFPacket message = (SOSPFPacket) inputStream.readObject();\n\n\t\t\t// -----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t// check if message is HELLO message\n\t\t\tif (message.sospfType == 0) {\n\n\t\t\t\tSystem.out.println(\"\\nreceived HELLO from \" + message.neighborID + \";\");\n\n\t\t\t\t// message.neighborID identifies sender of packet\n\n\t\t\t\t// add a neighbour\n\t\t\t\tboolean addNeighbour = true;\n\n\t\t\t\t// check to see if sender is already a neighbour\n\t\t\t\tfor (Link currLink : router.ports) {\n\t\t\t\t\t// sender is already a neighbour (dont want to addNeighbour)\n\t\t\t\t\tif (currLink.router2.simulatedIPAddress.equals(message.neighborID)) {\n\t\t\t\t\t\taddNeighbour = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if sender is not already a neighbour, then add as neighbour\n\t\t\t\tif (addNeighbour) {\n\n\t\t\t\t\t// add a new Neighbour to myRouter\n\t\t\t\t\tif (router.ports.size() < 4) {\n\t\t\t\t\t\t// create new RouterDescription for Neighbour\n\t\t\t\t\t\tRouterDescription remoteRouter = new RouterDescription();\n\t\t\t\t\t\tremoteRouter.processIPAddress = message.srcProcessIP;\n\t\t\t\t\t\tremoteRouter.simulatedIPAddress = message.neighborID;\n\t\t\t\t\t\tremoteRouter.processPortNumber = message.srcProcessPort;\n\t\t\t\t\t\tremoteRouter.status = RouterStatus.INIT;\n\n\t\t\t\t\t\trouter.ports.add(new Link(router.rd, remoteRouter, message.srcWeight));\n\n\t\t\t\t\t\tSystem.out.println(\"set \" + message.neighborID + \" state to INIT;\");\n\n // cannot add new Neighbour because myRouter.ports are full\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Error: Cannot add new Neighbour, ports are full\");\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// Prepare response ---------------------------------------------------------------------\n\n\t\t\t\t// create new SOSPF packet with HELLO message\n\t\t\t\tSOSPFPacket response = new SOSPFPacket();\n\t\t\t\tresponse.sospfType = 0;\n\t\t\t\tresponse.neighborID = router.rd.simulatedIPAddress;\n\t\t\t\tresponse.srcProcessIP = router.rd.processIPAddress;\n\t\t\t\tresponse.srcProcessPort = router.rd.processPortNumber;\n\n\t\t\t\t// send response to client\n\t\t\t\toutputStream = new ObjectOutputStream(this.socket.getOutputStream());\n\t\t\t\toutputStream.writeObject(response);\n\n\t\t\t\t// get response from client\n\t\t\t\tresponse = (SOSPFPacket) inputStream.readObject();\n\n\t\t\t\t// confirm it is a HELLO response\n\t\t\t\tif (response.sospfType == 0) {\n\t\t\t\t\tSystem.out.println(\"received HELLO from \" + response.neighborID + \";\");\n\n\t\t\t\t\t// set myRouter.neighbourID.status to TWO_WAY\n\t\t\t\t\tfor (Link currLink : router.ports) {\n\t\t\t\t\t\t// check if already TWO WAY\n\t\t\t\t\t\tif (currLink.router2.simulatedIPAddress.equals(response.neighborID)) {\n\n\t\t\t\t\t\t\tcurrLink.router2.status = RouterStatus.TWO_WAY;\n\t\t\t\t\t\t\tSystem.out.println(\"set \" + response.neighborID + \" state to TWO_WAY;\");\n\n\t\t\t\t\t\t\tsendLSP(updateLSA(currLink, 0));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// message is Link State Packet\n\t\t\t\t//-----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t} else if (message.sospfType == 1) {\n//\t\t\t\tSystem.out.println(\" -- Received LSP -- \");\n\n\t\t\t\tfor (LSA receivedLSA : message.lsaArray) {\n\t\t\t\t\tLSA currentLSA = router.lsd._store.get(receivedLSA.linkStateID);\n\n\t\t\t\t\t//if the incoming LSA is newer than current or new router\n\t\t\t\t\tif (!router.lsd._store.containsKey(receivedLSA.linkStateID) || (receivedLSA.lsaSeqNumber > currentLSA.lsaSeqNumber)) {\n\t\t\t\t\t\t//System.out.println(\"NLSA : \" + message.lsaArray.lastElement().toString());\n\t\t\t\t\t\trouter.lsd._store.put(receivedLSA.linkStateID, receivedLSA);\n\n\t\t\t\t\t\tsendLSP(receivedLSA);\n\t\t\t\t\t}\n\t\t\t\t}\n\n // message is Exit Packet\n //-----------------------------------------------------------------------------------------------------------------------------------------\n\t\t\t} else if (message.sospfType == 2) {\n//\t\t\t System.out.println(\"INFO: Received a deletion request from \" + message.srcIP + \".\");\n\n\t\t\t // Create the response packet\n SOSPFPacket confirmDisconnect = new SOSPFPacket();\n confirmDisconnect.sospfType = 2;\n confirmDisconnect.srcIP = router.rd.simulatedIPAddress;\n confirmDisconnect.srcProcessPort = router.rd.processPortNumber;\n confirmDisconnect.dstIP = message.srcIP;\n confirmDisconnect.srcProcessIP = router.rd.processIPAddress;\n\n // Send the packet\n outputStream = new ObjectOutputStream(this.socket.getOutputStream());\n outputStream.writeObject(confirmDisconnect);\n outputStream.close();\n\n // Find the port that it belongs to\n int i = 0;\n Link deadLink = null;\n for (Link l : router.ports) {\n if (message.srcIP.equals(l.router2.simulatedIPAddress)) {\n deadLink = l;\n break;\n }\n else {\n i++;\n }\n }\n\n if (deadLink == null) {\n System.out.println(\"ERROR: Could not find the port to delete.\");\n throw new RuntimeException();\n }\n\n Link confirmDead = router.ports.remove(i);\n System.out.println(\"INFO: Removed \" + confirmDead.router2.simulatedIPAddress + \" from ports.\" );\n\n // updateLSA actually updates the LSD and LSA. This must always run, so don't nest this\n // inside sendLSP.\n LSA freshLSA = updateLSA(confirmDead, 1);\n sendLSP(freshLSA);\n// System.out.println(router.lsd._store.keySet());\n }\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tinputStream.close();\n\t\t\t\t//outputStream.close();\n\t\t\t\tthis.socket.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void addPeer(DecentSocket socket) {\n\t\tInetAddress address = socket.getInetAddress();\n\t\tif(canAddPeer(address)) {\n\t\t\tpeers.put(address, socket);\n\t\t\t//If this is the client's first peer, flush the message queue\n\t\t\tif(peers.size() == 1) {\n\t\t\t\tflushMessageQueue();\n\t\t\t\tDecentLogger.write(\"Flushed message queue\");\n\t\t\t}\n\t\t\tDecentLogger.write(\"Added new peer: \"+address.getHostAddress());\n\t\t\twritePeers();\n\t\t\tif(peers.size() < maximumConnections) {\n\t\t\t\tsocket.send((new PeerAskMessage()));\n\t\t\t}\n\t\t}\n\t}",
"private void connectToRendezVous(EndpointAddress addr, RouteAdvertisement routeHint) throws IOException {\r\n\r\n // BT nothing implemented yet\r\n }",
"private neighbors_t(Builder builder) {\n super(builder);\n }",
"public CommentAddedAction(ByteBuf from) {\n super(from);\n }",
"synchronized void addOldOpennetNode(PeerNode pn) {\n\t\toldPeers.push(pn);\n\t}",
"com.nhcsys.webservices.getmessages.getmessagestypes.v1.MessageDestinationType addNewTo();",
"public void addPendingOrder(Order order) {\n\t\tmOrders.add(order);\n\t}",
"@Override\n\tpublic void establishNeighborConn() throws Exception {\n\t\tList <Thread> tList = new ArrayList<Thread>();\n\t\tList<Integer> neighborPids = neighborMap.get(pid);\n\t\tnNeighbors = neighborPids.size();\n\t\tfor (int neighborPid : neighborPids) {\n\t\t\tThread t = new Thread(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString neighborHostname = pidToHostnameMap.get(neighborPid);\n\t\t\t\t\t\tConnection neighborConn = new ServerConnection();\n\t\t\t\t\t\tint port = 10000 + (100*pid) + neighborPid;\n\t\t\t\t\t\tneighborConn.connectRetry(coordinatorHostname, port);\n\t\t\t\t\t\tneighborPidToHostnameMap.put(neighborPid, neighborHostname);\n\t\t\t\t\t\tneighborPidToConnMap.put(neighborPid, neighborConn);\n\t\t\t\t\t\tsendQueues.put(neighborPid, new LinkedList<String>());\n\t\t\t\t\t\tsayHelloToNeighbor(neighborConn);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\ttList.add(t);\n\t\t\tt.start();\n\t\t}\n\t\tfor (Thread t : tList) {\n\t\t\tt.join();\n\t\t}\n\t\tSystem.out.println(neighborPidToHostnameMap);\n\t\tSystem.out.println(neighborPidToConnMap);\n\t}",
"void addPeer(Uuid peer) throws RemoteException;",
"private void setACMsg(OL_Message msg) {\n messageid = msg.getMessageIdentifier();\n root = socket.createLogicalAddress(((FSM_Extension) msg.getFirstExtensionByType(Extension.FSM)).getSenderAddress(), 0);\n }",
"public void changeOwnIP(InetAddress newOwnIP){\n boolean bound = false;\n\n this.ownIP = newOwnIP;\n\n this.packetLock.lock();\n\n this.ds.close();\n\n\n while (!bound) {\n try {\n this.ds = new DatagramSocket(null);\n InetSocketAddress isa = new InetSocketAddress(this.ownIP, this.ownPort);\n this.ds.bind(isa);\n bound = true;\n this.ds.setSendBufferSize(3000000);\n //System.out.println(\"(FASTUNICASTSENDER) BOUND TO \" + this.ownIP + \":\" + this.ownPort);\n //changeHasConnection(true);\n this.packetLock.unlock();\n\n } catch (SocketException e) {\n //System.out.println(\"(FASTUNICASTSENDER) ERROR BINDING TO \" + this.ownIP + \":\" + this.ownPort);\n e.printStackTrace();\n }\n\n if(!bound){\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"void onNodeNeighbourChange(World world, BlockPos pos, BlockPos neighbourPos);",
"private void messagePhone(final String message, final byte[] byteMap){\n\n new AsyncTask<Void, Void, List<Node>>(){\n\n @Override\n protected List<Node> doInBackground(Void... params) {\n return getNodes();\n }\n\n @Override\n protected void onPostExecute(List<Node> nodeList) {\n for(Node node : nodeList) {\n Log.e(\"WATCH\", \"......Phone: Sending Msg: to node: \" + node.getId());\n Log.e(\"WATCH\", \"Sending to: \" + message.toString());\n PendingResult<MessageApi.SendMessageResult> result = Wearable.MessageApi.sendMessage(\n mGoogleApiClient,\n node.getId(),\n message.toString(),\n byteMap\n );\n\n result.setResultCallback(new ResultCallback<MessageApi.SendMessageResult>() {\n @Override\n public void onResult(MessageApi.SendMessageResult sendMessageResult) {\n Log.e(\"DEVELOPER\", \"......Phone: \" + sendMessageResult.getStatus().getStatusMessage());\n\n }\n });\n }\n }\n }.execute();\n\n }",
"public void addNeighbor(Direction direction, Cell neighbor) {\n neighbors.put(direction, neighbor);\n initialized = isInitialized();\n if (initialized) {\n status = CellStatus.Initialized;\n }\n }",
"void addpeer(Node p) {\n\t\tpeers.add(p);\n\t}",
"public void sendDiscovery() {\n\t\tCharset charSet = Charset.forName(\"US-ASCII\");\n\t\t\n\t\tbyte[] b = BROADCAST.getBytes(charSet);\n\t\tDatagramPacket dgram = null;\n\t\t\n\t\ttry {\n\t\t\tdgram = new DatagramPacket(b, b.length, InetAddress.getByName(MCAST_ADDR), DEST_PORT);\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tsocket.send(dgram);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void onBlockNeighborChange(int l) {}",
"private void processInviteToEstablishControlSocket(final Message msg) {\n final String readString = \n (String) msg.getProperty(P2PConstants.SECRET_KEY);\n final byte[] readKey = Base64.decodeBase64(readString);\n final byte[] writeKey = CommonUtils.generateKey();\n final String sdp = (String) msg.getProperty(P2PConstants.SDP);\n final ByteBuffer offer = ByteBuffer.wrap(Base64.decodeBase64(sdp));\n final String offerString = MinaUtils.toAsciiString(offer);\n log.info(\"Processing offer: {}\", offerString);\n \n final OfferAnswer offerAnswer;\n try {\n offerAnswer = this.offerAnswerFactory.createAnswerer(\n new ControlSocketOfferAnswerListener(msg.getFrom(), readKey, writeKey), false);\n }\n catch (final OfferAnswerConnectException e) {\n // This indicates we could not establish the necessary connections \n // for generating our candidates.\n log.warn(\"We could not create candidates for offer: \" + sdp, e);\n \n final Message error = newError(msg);\n xmppConnection.sendPacket(error);\n return;\n }\n final byte[] answer = offerAnswer.generateAnswer();\n final long tid = (Long) msg.getProperty(P2PConstants.TRANSACTION_ID);\n \n // TODO: This is a throwaway key here since the control socket is not\n // encrypted as of this writing.\n final Message inviteOk = newInviteOk(tid, answer, writeKey);\n final String to = msg.getFrom();\n inviteOk.setTo(to);\n log.info(\"Sending CONTROL INVITE OK to {}\", inviteOk.getTo());\n XmppUtils.goOffTheRecord(to, xmppConnection);\n xmppConnection.sendPacket(inviteOk);\n \n offerAnswer.processOffer(offer);\n log.debug(\"Done processing CONTROL XMPP INVITE!!!\");\n }",
"@Override\r\n\tpublic net.floodlightcontroller.core.IListener.Command receive(\r\n\t\t\tIOFSwitch sw, OFMessage msg, FloodlightContext cntx) {\n\t\tif (!printedTopo) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"*** Print topology\");\r\n\t\t\tlinks = lds.getLinks();\r\n\t\t\tMap<Long, Set<Link>> switchList = lds.getSwitchLinks();\r\n\t\t\t\r\n\t\t\tfor(Map.Entry<Long, Set<Link>> entry : switchList.entrySet()) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"switch \" + entry.getKey() + \" neighbors: \");\r\n\t\t\t\tHashSet<Long> linkIds = new HashSet<Long>();\r\n\t\t\t\t\r\n\t\t\t\tfor(Link link : entry.getValue()) \r\n\t\t\t\t{\r\n\t\t\t\t\tif(entry.getKey() == link.getDst()) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlinkIds.add(link.getSrc());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlinkIds.add(link.getDst());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tboolean firstLink = true;\r\n\t\t\t\t\r\n\t\t\t\tfor(Long id : linkIds) \r\n\t\t\t\t{\r\n\t\t\t\t\tif(firstLink) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(id);\r\n\t\t\t\t\t\tfirstLink = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\", \" + id);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\r\n\t\t\tprintedTopo = true;\r\n\t\t}\r\n\r\n\r\n\t\t// eth is the packet sent by a switch and received by floodlight.\r\n\t\tEthernet eth = IFloodlightProviderService.bcStore.get(cntx,\r\n\t\t\t\tIFloodlightProviderService.CONTEXT_PI_PAYLOAD);\r\n\r\n\t\t// We process only IP packets of type 0x0800.\r\n\t\tif (eth.getEtherType() != 0x0800) {\r\n\t\t\treturn Command.CONTINUE;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"*** New flow packet\");\r\n\r\n\t\t// Parse the incoming packet.\r\n\t\t\tOFPacketIn pi = (OFPacketIn)msg;\r\n\t\t\tOFMatch match = new OFMatch();\r\n\t\t match.loadFromPacket(pi.getPacketData(), pi.getInPort());\r\n\t\t\t\r\n\t\t\t// Obtain source and destination IPs.\r\n\t\t\t// ...\r\n\t\t\tSystem.out.println(\"srcIP: \" + match.getNetworkSourceCIDR());\r\n\t System.out.println(\"dstIP: \" + match.getNetworkDestinationCIDR());\r\n\r\n\t\t\t// Calculate the path using Dijkstra's algorithm.\r\n\t\t\tRoute route = null;\r\n\t\t\t\r\n\t\t\t// ...\r\n\t\t\tSystem.out.println(\"route: \" + \"1 2 3 ...\");\t\t\t\r\n\r\n\t\t\t// Write the path into the flow tables of the switches on the path.\r\n\t\t\tif (route != null) {\r\n\t\t\t\tinstallRoute(route.getPath(), match);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Command.STOP;\r\n\t\t}\r\n\t}",
"private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }",
"private void addObj() {\n Random rnd = new Random(); // random priority\n\n Tuple<T1, Integer> obj = new Tuple<>(message, (int)(rnd.nextDouble()*10) );\n\n cons.addElement(obj); // send a message\n }",
"public void addToNeighbours(Tile N) {\n \r\n neighbours.add(N);\r\n }",
"@Override\n\tvoid createNeighbourhood() {\n\t\t\n\t}",
"@Override\n public void onFound(final Message message) {\n mNearbyDevicesArrayAdapter.add(\n DeviceMessage.fromNearbyMessage(message).getMessageBody());\n }",
"void addEdge(int from, int to) {\n\t\tadjList.get(from).add(to);\n\t}",
"private List<Identifier> determineAdapters(Message msg, PeerInfo newPeerInfo){\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.size() > MAP_SIZE_LIMIT) peerToAdaptersMappings.clear();\r\n\t\t\r\n\t\tif (peerToAdaptersMappings.containsKey(newPeerInfo)){ //uses just peer id comparison here. \r\n\t\t\t//this is a known recipient\r\n\t\t\t//However, we still need to check if the available list of adapters (routing list) is valid.\r\n\t\t\t\r\n\t\t\tPair<List<Identifier>, PeerInfo> p;\r\n\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\r\n\t\t\tint i = 1;\r\n\t\t\twhile (p == null && i<4) { //this can happen if another thread flushed the entry in the meantime. That same thread should also update the value, though\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(i*20);\r\n\t\t\t\t} catch (InterruptedException ignored) {}\r\n\t\t\t\tp = peerToAdaptersMappings.get(newPeerInfo);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i >= 4 && p == null){\r\n\t\t\t\t//the other thread obviously did not do the job yet. We will take care of it in the rest of the method.\r\n\t\t\t}else{\r\n\t\t\t\tPeerInfo oldPeerInfo = p.second;\r\n\t\t\t\tif (newPeerInfo.equalsByDeepCoparison(oldPeerInfo)){\r\n\t\t\t\t\treturn p.first; //return the existing list of adapters, since nothing changed in the PeerInfo from last time\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t// if we arrived here it means, either:\r\n\t\t// sending message to this peer for the first time \r\n\t\t// OR\r\n\t\t// the information we have is outdated, so let's update it\r\n\t\t\r\n\r\n\t\tList<Identifier> adapters = adapterMgr.createEndpointForPeer(newPeerInfo); //need not be synced, since invoking createEndpointForPeer multiple times should be fine\r\n\t\tPair<List<Identifier>, PeerInfo> p = new Pair<List<Identifier>, PeerInfo>(adapters, newPeerInfo);\r\n\t\t\r\n\t\tsynchronized(peerToAdaptersMappings){ //just using ConcurrentHashMap is not enough, because we need to save the reference to the map's key in the second object of the Pair, which is the object of the map, and if 2 thread repeat put, the value will get updated, but that value will contain the wrong reference to the key, meaning that subsequently the deep comparison between the old and the new PeerInfo object will not be possible\r\n\t\t\tpeerToAdaptersMappings.remove(newPeerInfo); //in reality, we remove an existing entry, if any. Since the PeerInfo.equals just compares Ids, it should locate the exact entry.\r\n\t\t\tpeerToAdaptersMappings.put(newPeerInfo, p); //we now put in the new value, which is a Pair, whose second element points to the key of the entry in the peerToAdaptersMappings where the Pair value belongs\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Now we have the list of all possible Adapters trough which we can deliver the message to the peer.\r\n\t\t// However, depending on peer's stated delivery policy we may want to restrict this list.\r\n\t\t// For example, in case of DeliveryPolicy.PREFERRED, we will just return the first Adapter.\r\n\t\t// But, in case of either TO_ALL_CHANNELS or AT_LEAST_ONE, we return all adapters, because in either case\r\n\t\t// the policy foresees sending to multiple adapters, but interpreting responses from all/one channel as ultimate success, respectively. \r\n\t\t\r\n\t\t\r\n\t\tif (newPeerInfo.getDeliveryPolicy() == DeliveryPolicy.Peer.PREFERRED){\r\n\t\t\tIdentifier preferred = adapters.get(0);\r\n\t\t\tList<Identifier> prefList = new ArrayList<Identifier>();\r\n\t\t\tprefList.add(preferred);\r\n\t\t\treturn prefList;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn adapters;\r\n\t}",
"protected void handleOutboundMessage(Object msg) {\n/* 741 */ outboundMessages().add(msg);\n/* */ }",
"private void addOutgoing(String to, String subject, String text, Message m){\n\t\tMyMessage mess = new MyMessage(m, \"Eddian\", to, subject, text,\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime());\n\t\toutgoingList.add(mess);\n\t}",
"protected void handleInboundMessage(Object msg) {\n/* 748 */ inboundMessages().add(msg);\n/* */ }",
"private void processStart() {\n // broadcast HELLO to every neighbors\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i].getRemoteRouterDesc() == null) {\n continue;\n }\n\n SOSPFPacket helloPak = SOSPFPacket.createHelloPak(this.routerDesc, this.ports[i].getRemoteRouterDesc());\n this.ports[i].send(helloPak);\n\n this.ports[i].initializeHeartbeat();\n }\n }",
"void addPeerEndpoint(PeerEndpoint peer);",
"@Override\n public void startUp(FloodlightModuleContext context)\n throws FloodlightModuleException {\n floodlightProvider = context\n .getServiceImpl(IFloodlightProviderService.class);\n\n floodlightProvider.addOFMessageListener(OFType.PACKET_IN, this);\n\n BufferedReader reader;\n try\n {\n //read in internal ip addresses\n reader = new BufferedReader(new FileReader(new File(this.insideIPsFile)));\n String temp = null;\n while ((temp = reader.readLine()) != null)\n {\n if( !temp.startsWith(\"//\") ){\n inside_ip.add(IPv4Address.of(temp));\n // System.out.println (IPv4Address.of(temp));\n }\n }\n reader.close();\n\n //read in externally visible ip addresses\n reader = new BufferedReader(new FileReader(new File(this.externalIPFile)));\n temp = null;\n while ((temp = reader.readLine()) != null)\n {\n if( !temp.startsWith(\"//\") ){\n external_ip = IPv4Address.of(temp);\n break;\n }\n }\n reader.close();\n\n //read in NAT switch id, inside ports, outside ports\n reader = new BufferedReader(new FileReader(new File(this.natInfoFile)));\n temp = null;\n while ((temp = reader.readLine()) != null)\n {\n if( !temp.startsWith(\"//\") ){\n String[] nat_info = temp.split( \",\" );\n\n nat_swId = DatapathId.of(Long.valueOf( nat_info[0] ));\n\n for( String internal_port: nat_info[1].trim().split(\" \") ){\n nat_internal_ports.add( TransportPort.of( Integer.parseInt(internal_port)) );\n }\n\n for( String external_port: nat_info[2].trim().split(\" \") ){\n nat_external_ports.add( TransportPort.of( Integer.parseInt(external_port)) );\n }\n break;\n }\n }\n reader.close();\n\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n\n\n }",
"public void addNotify() {\n synchronized(getTreeLock()) {\n if (peer == null)\n peer = getComponentFactory().createButton(this);\n super.addNotify();\n }\n }",
"private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}",
"public void addNotifyMessage(NotifyMessage msg) {\n messageQueue.offer(msg);\n }",
"private void createNotification(Bitmap bitmap, Integer wifiLocationsNearby, String closestWifiLocationAddressText) {\n if (notificationManager == null) {\n notificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n if (notificationManager != null) {\n NotificationChannel notificationChannel = notificationManager.getNotificationChannel(NOTIFICATION_CHANNEL_ID);\n if (notificationChannel == null) {\n notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID,\n \"channel_name\", NotificationManager.IMPORTANCE_HIGH);\n notificationChannel.setDescription(\"channel_description\");\n notificationManager.createNotificationChannel(notificationChannel);\n }\n }\n }\n Intent intent = new Intent(this, MainActivity.class)\n .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n builder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)\n .setContentTitle(String.format(getString(R.string.static_image_api_notification_content_title),\n wifiLocationsNearby, tilequerySearchRadiusFeet))\n .setSmallIcon(R.drawable.mapbox_logo_icon)\n .setContentText(String.format(getString(R.string.static_image_api_notification_description),\n closestWifiLocationAddressText))\n .setContentIntent(getActivity(this, 0, intent, 0))\n .setLargeIcon(bitmap)\n .setStyle(new NotificationCompat.BigPictureStyle()\n .bigPicture(bitmap)\n .bigLargeIcon(null));\n Notification notification = builder.build();\n notificationManager.notify(NOTIFICATION_ID, notification);\n firstNotificationBuilt = true;\n }",
"private void createMessagesForPhones() {\n int msgQtd = getMessageQuantityInterval().randomValue();\n getEvents().forEach((event)->{\n Phone originPhone = event.getOriginPhone();\n \n Message message = new Message(originPhone, event.getDestinationPhone(), MessageStatus.PHONE_TO_ANTENNA);\n if ( msgQtd > 0 ) {\n message.setSendQuantity(msgQtd);\n message.setSendAgain(false);\n \n originPhone.addMessageToOutbox(message);\n }\n });\n }",
"private Board newNeighbor(int searchNode, int target)\n {\n char[] temp = blocks.clone();\n temp[searchNode] = temp[target];\n temp[target] = (char) 0;\n return new Board(convertTo2D(temp));\n }",
"public void prepareTheBill(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(3, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"public static LinkedList2 generateNeighbors(LocNode state) {\n\t \n\t \n\t\n\t LinkedList2 Neighbors = new LinkedList2();\n\t \n\n\t\n\tchar [][] Matrix = state.getData(); \n\t\n\t\n\t\n\tchar [][] Neighbor = copyMatrix(Matrix);\n\n\t\t\n\t\tfor(int i=0 ;i<size ;i++ ) {\n\t\tfor (int j=0 ;j<size ;j++) {\n\t\t\tif (Neighbor[i][j]=='-'||Neighbor[i][j]=='v') {\n\t\t\t\tNeighbor[i][j]='c';\n\t\t\t\t\n\t\t\t\t\n\t updateVisibility(i,j,Neighbor);\n\t \n\t Neighbors.insert(Neighbor, calculateOpjectiveFunction(Neighbor));\n\t \n\t \n\t \n\t\t\t\tNeighbor = copyMatrix(Matrix);\n\t\n\t\t\t\n\t\t\t}\n\t\t}\t\n\t\t}\n\t\t\n\tLinkedList2 ApplyingRemoveAction=removeOneCamera(state.data);\n\t\n\n\tif(!ApplyingRemoveAction.empty()){\n\t\t\n\t\tApplyingRemoveAction.findFirst();\n\t\twhile(!ApplyingRemoveAction.last()) {\n\t\t\t Neighbors.insert(ApplyingRemoveAction.retrieve_data(), ApplyingRemoveAction.retrieve_opjectiveFunctoin());\n\t\t\t ApplyingRemoveAction.findNext();\n\t\t}\n\t\t\n\t\t Neighbors.insert(ApplyingRemoveAction.retrieve_data(), ApplyingRemoveAction.retrieve_opjectiveFunctoin());\n\t}\n\t\t\n\t\t\n\t return Neighbors;\n\t \n\t \n}",
"void acceptRequest(Friend pendingRequest);",
"void add_to_network(Town town, List<Town> connectedTowns);",
"public void addedToRouteTable(long idNode, Address address){\r\n\t\t\r\n\t}",
"public void addNeighbor(Spot spot, Spot spot2) {\n\t\tif (spot != null) {\n\t\t\tdouble distance = GPSDataProcessor.calcDistance(spot.getLatitude(), spot.getLongitude(), spot2.getLatitude(), spot2.getLongitude());\n\t\t\tif (distance >= 25 && distance <= 150) {\n\t\t\t\tif (!spot.getSpotID().equals(spot2.getSpotID())) {\n\t\t\t\t\tif(spot.addNeighborAlternative(spot2) & spot2.addNeighborAlternative(spot)){\n\t\t\t\t\t\tspotQuery.addNeighbour(spot,spot2,session);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void BootStrapNode(String ip) throws RemoteException {\n\t\tnodeIp = ip;\n\t\thasNeighbours = true;\n\t}",
"private void processNeighbors() {\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i] == null) { continue; }\n System.out.println(this.ports[i].getRemoteRouterDesc().simulatedIPAddress);\n }\n }",
"public void addNeighbour(final Vertex neighbour){\n\t\tneighbours.add(neighbour);\n\t}",
"private void registerRayoNode(PresenceMessage message) throws Exception {\n\n\t\tElement nodeInfoElement = message.getElement(\n\t\t\t\t\"node-info\", \"urn:xmpp:rayo:cluster:1\");\n\t\t\t\t\n\t\tList<String> platforms = new ArrayList<String>();\n\t\tint weight = RayoNode.DEFAULT_WEIGHT;\n\t\tint priority = RayoNode.DEFAULT_PRIORITY;\n\t\tif (nodeInfoElement != null) {\n\t\t\tNodeList platformElements = nodeInfoElement\n\t\t\t\t\t.getElementsByTagName(\"platform\");\n\t\t\tfor (int i=0;i<platformElements.getLength();i++) {\n\t\t\t\tplatforms.add(platformElements.item(i).getTextContent());\n\t\t\t}\n\t\t\tNodeList weightList = nodeInfoElement.getElementsByTagName(\"weight\");\n\t\t\tif (weightList.getLength() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tweight = Integer.parseInt(weightList.item(0).getTextContent());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Unable to parse weight on message [%s]\", message);\n\t\t\t\t}\n\t\t\t}\n\t\t\tNodeList priorityList = nodeInfoElement.getElementsByTagName(\"priority\");\n\t\t\tif (priorityList.getLength() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tpriority = Integer.parseInt(priorityList.item(0).getTextContent());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Unable to parse priority on message [%s]\", message);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tRayoNode node = new RayoNode(message.getFrom().toString(), null, new HashSet<String>(platforms));\n\t\tnode.setPriority(priority);\n\t\tnode.setWeight(weight);\n\t\t// if a rayo node sends a chat presence, then lets give it a chance if blacklisted\n\t\tnode.setBlackListed(false); \n\t\tnode.setConsecutiveErrors(0);\n\t\t\n\t\tgatewayStorageService.registerRayoNode(node);\t\t\n\t}",
"@Override\n\tpublic void onUpdatePeersReceived(UpdateEvent arg0) {\n\t\t\n\t}",
"public Node passAgent(){\n int length = liveNeighbors.size();\n Random rnd = new Random();\n boolean stat = false;\n Node node=null;\n while(!stat) {\n int len = rnd.nextInt(length);\n node = liveNeighbors.get(len);\n stat = node.recieveAgent(agent);\n }\n agent = null;\n updateScreen(\"removeBorder\");\n return node;\n }",
"private void onReceiveMessage(Edge edgeItoJ) throws FactorException {\n\t\t\tSystem.out.printf(\"%s receiving message from %s, upward? %s\\n\", this.toString(), edgeItoJ.getOtherVertex(this), _bumpOnUpwardPass);\n\t\t\tif(!_neighborEdges.containsKey(edgeItoJ)) {\n\t\t\t\tSystem.err.println(\"hello check\");\n\t\t\t}\n\t\t\t_neighborEdges.put(edgeItoJ, true);\n\t\t\tcomputeBeliefIfReady();\n\t\t}",
"public GridPeer(InetAddress inetAddress)\n {\n connected = false;\n blocked = false;\n this.address = inetAddress;\n }",
"@Override\n\t\t\tpublic void onStatusRemoteNode(String url, String message) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic net.floodlightcontroller.core.IListener.Command receive(\n\t\t\tIOFSwitch sw, OFMessage msg, FloodlightContext cntx) {\n\t\tSystem.out.println(\"receive in myswitch\");\n\t\tEthernet eth =\n IFloodlightProviderService.bcStore.get(cntx,\n IFloodlightProviderService.CONTEXT_PI_PAYLOAD);\n OFPacketIn pi=(OFPacketIn)msg;\n Map<String, Object> getentry = new HashMap<String, Object>();\n \n \tif(eth.getEtherType() == EthType.ARP) {\n \t/* We got an ARP packet; get the payload from Ethernet */\n ARP arp = (ARP) eth.getPayload();\n System.out.println(\"*****Parsing ARP packet*******\");\n /* Various getters and setters are exposed in ARP */\n// boolean gratuitous = arp.isGratuitous();\n logger.info(\"ARP \");\n //starting to write into the switch\n \n a=b;//control parameters to check if it finds the MAC:port information of the destination host\n\t\t\t\n getentry=addToPortMap(eth.getSourceMACAddress(),pi.getMatch().get(MatchField.IN_PORT));\n //DisplayMap(getentry);\n \n SearchPort(getentry,eth.getDestinationMACAddress());\n \n //if(OutPort!=null) //if it has found a port for the destination address\n if(a!=b)\n { System.out.println(\"Unicasting the packet\");\n\t\t\t\t//every flow constitutes of match and Actions...based on a particular match and an action is taken..both are used to modify a flow \n \tMatch.Builder mb = sw.getOFFactory().buildMatch();\n\t\t\t\t//Source and destination MAC address along with the source port is set in the match\n \tmb.setExact(MatchField.IN_PORT, pi.getMatch().get(MatchField.IN_PORT))\n \t.setExact(MatchField.ETH_SRC, eth.getSourceMACAddress())\n \t.setExact(MatchField.ETH_DST, eth.getDestinationMACAddress());\n \t\n\t\t\t\t//build a packet to send to the switch in mininet\n \tOFPacketOut.Builder pob = sw.getOFFactory().buildPacketOut();\n List<OFAction> actions = new ArrayList<OFAction>();\n actions.add(sw.getOFFactory().actions().buildOutput().setPort(OutPort).setMaxLen(0xffFFffFF).build());\n pob.setActions(actions);\n if (sw.getBuffers() == 0) {\n \t\t\t// We set the PI buffer id here so we don't have to check again below\n \t\t\t pi = pi.createBuilder().setBufferId(OFBufferId.NO_BUFFER).build();\n \t\t\t pob.setBufferId(OFBufferId.NO_BUFFER);\n \t\t } else {\n \t\t\t pob.setBufferId(pi.getBufferId());\n \t\t }\n\n \t\t pob.setInPort(pi.getMatch().get(MatchField.IN_PORT));\n\n\t\t\t\t// If the buffer id is none or the switch doesn's support buffering\n\t\t\t\t// we send the data with the packet out...this is conditional\n \t\t if (pi.getBufferId() == OFBufferId.NO_BUFFER) {\n \t\t\t byte[] packetData = pi.getData();\n \t\t\t pob.setData(packetData);\n \t\t\t System.out.println(\"writing into the packet\");\n \t\t }\n \t\t //sw.write(pob.build()); //the reason to comment out the packet write to the switch is...we can either write a packet_out to the switch or\n\t\t\t\t //we can just send a flow mod command to switch not both....\n \t\t\n \t\t//As we have written the payload to the switch, now we will write the\n \t\t//flowmod command to the switch\n \t\t//Create a Flow Mod Builder\n \t\t System.out.println(\"Check In\"+pi.getMatch().get(MatchField.IN_PORT).toString()+\"Out\"+OutPort.toString());\n\t\t\t//here i used the port numbers to block the communication between host h2 and h3\n \t\t if((pi.getMatch().get(MatchField.IN_PORT).toString().equals(\"2\") \n \t\t \t\t&& OutPort.toString().equals(\"3\")) || (pi.getMatch().get(MatchField.IN_PORT).toString().equals(\"3\") \n \t \t\t \t\t&& OutPort.toString().equals(\"2\")))\n \t\t { \n \t\t \t System.out.println(\"Deleting the flow\");\n \t\t \t this.writeFlowMod(sw, OFFlowModCommand.DELETE, OFBufferId.NO_BUFFER, mb.build(), OutPort);\n \t\t }\n \t\t else\n \t\t {\n \t\t \n \t\t this.writeFlowMod(sw, OFFlowModCommand.ADD, OFBufferId.NO_BUFFER, mb.build(), OutPort);\n \t\t if (LEARNING_SWITCH_REVERSE_FLOW) {\n \t\t\t\tMatch.Builder mb_rev = sw.getOFFactory().buildMatch();\n \t\t\t\tmb_rev.setExact(MatchField.ETH_SRC, mb.get(MatchField.ETH_DST)) \n \t\t\t\t.setExact(MatchField.ETH_DST, mb.get(MatchField.ETH_SRC)) \n \t\t\t\t.setExact(MatchField.IN_PORT, OutPort);\n \t\t\t\t\n\n \t\t\t\tthis.writeFlowMod(sw, OFFlowModCommand.ADD, OFBufferId.NO_BUFFER, mb_rev.build(), pi.getMatch().get(MatchField.IN_PORT));\n \t\t\t}\n \t\t }\n }\n else{\n \t//System.out.println(\"Flooding the packet\");\n \tOFPort port = OFPort.FLOOD;\n \tOFPacketOut.Builder pkout = sw.getOFFactory().buildPacketOut();\n \t\t\tpkout.setBufferId(pi.getBufferId());\n \t\t\tpkout.setXid(pi.getXid());\n \t\t\tList<OFAction> actions = new ArrayList<OFAction>();\n actions.add(sw.getOFFactory().actions().buildOutput().setPort(port).setMaxLen(0xffFFffFF).build());\n pkout.setActions(actions);\n \t\t\t\n \t\t\tif (pi.getBufferId() == OFBufferId.NO_BUFFER) {\n \t\t\t\tpkout.setData(pi.getData());\n \t\t\t}\n\n \t\t\tsw.write(pkout.build()); \t\n } \n } \n return Command.CONTINUE;\n\t}",
"@Override\n public void run() {\n List<Integer> list = new ArrayList<Integer>();\n int num_peer = P.peer_port.length;\n int ind = -1;\n for (int i = 0; i < num_peer; i++) {\n list.add(i);\n }\n while (P.choke_thread_running) {\n synchronized (P.lock_current_neighbors) { //lock the object\n\n if(P.current_neighbors==null) continue;\n\n int[] cn = P.current_neighbors.clone(); //current neighbor.\n Arrays.sort(cn);\n if (P.own_file || P.finished) { //select randomly.\n java.util.Collections.shuffle(list);\n int cnt = 0; //#peers selected.\n for (int i = 0; i < num_peer && cnt < P.num_preferred_neighbors; i++) {\n ind = list.get(i);\n if (P.is_interested[ind] && P.peer_id[ind] != P.id) {\n P.current_neighbors[cnt++] = P.peer_id[ind];\n //send unchoke message to previously choked peer.\n if (Arrays.binarySearch(cn, P.peer_id[ind]) < 0) {\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n P.print(\"Choke selected \" + cnt + \" neighbors randomly.\");\n } else { //select according to the download rates.\n int[] order = getIndices(P.download_rates);\n int cnt = 0; //#peers selected.\n for (int i = 0; i < num_peer && cnt < P.num_preferred_neighbors; i++) {\n ind = order[i];\n if (P.is_interested[ind] && P.peer_id[ind] != P.id) {\n P.current_neighbors[cnt++] = P.peer_id[ind];\n //send unchoke message to previously choked peer.\n if (Arrays.binarySearch(cn, P.peer_id[ind]) < 0) {\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n //print debugging info.\n P.print(\"Choke selected \" + cnt + \" neighbors according to download rates.\");\n }\n //send choke message to peers previously unchoked but currently choked.\n Arrays.sort(Arrays.copyOfRange(P.current_neighbors, 0, P.num_preferred_neighbors - 1));\n for (int i = 0; i < P.num_preferred_neighbors; i++) {\n if (Arrays.binarySearch(P.current_neighbors, cn[i]) < 0) { //cn[i] not in current neighbor list.\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 0; //choke.\n msg.payload = null; //no payload.\n P.send(P.peer_id[ind], msg);\n }\n }\n }\n //sleep some interval.\n try {\n Thread.sleep(1000 * P.unchoking_internal);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n }",
"private Message onPingMessageReceived(PingMessage m, DecentSocket origin) {\n\t\treturn null;\n\t}",
"@Test(expected = ItemNotFoundException.class)\n public void testAddPeerUknownIp() {\n replay(participantsConfig);\n\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n IpAddress.valueOf(NEW_PEER2_IP),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }",
"@Test(expected = ItemNotFoundException.class)\n public void testAddPeerWithNoBgpConfig() {\n replay(participantsConfig);\n // Reset NetworkConfigService\n peerManager.configService = new NetworkConfigServiceAdapter();\n peerManager.activate();\n\n peerManager.addPeerDetails(newPeer.name().get(),\n newPeer.ip(),\n newPeer.connectPoint(),\n newPeer.interfaceName());\n }",
"void addNeighbour(Territory neighbour) {\n\t\tneighbours.add(neighbour);\n\t}",
"@Override\npublic int sendToAddress(InetSocketAddress isa, byte[] msg) throws IOException {\n\treturn 0;\n}",
"public void addMessage() {\n }",
"public void bonjuor() throws IOException {\n\t\tint port = 4445;\n\t\t\n\tDatagramSocket socket = new DatagramSocket(port);\n\t\t\n\n // Create a buffer to read datagrams into. If a\n // packe is larger than this buffer, the\n // excess will simply be discarded!\n byte[] buffer = new byte[10];\n String address = InetAddress.getLocalHost().getHostName();\n byte[] out_buffer = address.getBytes();\n \n \n // Create a packet to receive data into the buffer\n DatagramPacket packet = new DatagramPacket(buffer, buffer.length);\n // Now loop forever, waiting to receive packets and printing them.\n while (true) {\n // Wait to receive a datagram\n \t socket.receive(packet);\n \t InetAddress connected_ip = packet.getAddress();\n \t String in_data = new String(packet.getData(),StandardCharsets.UTF_8);\n \t \n \t System.out.println(\"IP: \" + connected_ip + \" said \"+ in_data);\n \t \n \t if(in_data.equals(\"IP request\")){\n \t DatagramPacket send_packet = new DatagramPacket(out_buffer,out_buffer.length,connected_ip,4446);\n \t\t socket.send(send_packet);\n \t\t break;\n \t } \t \n }\n socket.close();\n\t}",
"private void NodeandMessage (String nodes, String Message) {\n\t\tNodeandnetwork.put(nodes, Message);\n\t}",
"public static void chooseNeighbour() {\n clique.handler(ConnectReq.class, (i, req) -> {\n int randomIndex = new Random().nextInt(connections.size());\n connections.get(randomIndex).send(req);\n });\n }",
"java.util.List<rina.object.gpb.Neighbour_t.neighbor_t> \n getNeighborList();",
"public void setMessageAddress(String address);"
] | [
"0.5993768",
"0.5974591",
"0.59556973",
"0.58760977",
"0.5589865",
"0.5578731",
"0.5568691",
"0.5483388",
"0.5458131",
"0.5419381",
"0.53727734",
"0.53413683",
"0.5309459",
"0.52787054",
"0.5272076",
"0.5263125",
"0.5244488",
"0.5233553",
"0.5233194",
"0.5229881",
"0.5222545",
"0.5209033",
"0.5205582",
"0.5198202",
"0.51970494",
"0.51776403",
"0.5166303",
"0.5164328",
"0.51585394",
"0.51546484",
"0.5153977",
"0.5121291",
"0.51185334",
"0.5115209",
"0.5101802",
"0.50989777",
"0.5097811",
"0.5095656",
"0.5087118",
"0.50831914",
"0.507935",
"0.5070587",
"0.50563014",
"0.50329506",
"0.5024287",
"0.5019873",
"0.5008994",
"0.5006607",
"0.499705",
"0.4994738",
"0.4992192",
"0.49909142",
"0.49786788",
"0.49777892",
"0.49672145",
"0.4966719",
"0.49645215",
"0.49548876",
"0.49481204",
"0.4945751",
"0.49406123",
"0.49389338",
"0.49343204",
"0.4933679",
"0.49329197",
"0.49307194",
"0.4928603",
"0.49255583",
"0.49244663",
"0.49242604",
"0.4919465",
"0.49179038",
"0.4917864",
"0.4917389",
"0.4909344",
"0.49042088",
"0.49019834",
"0.4901553",
"0.48996946",
"0.48907948",
"0.48884737",
"0.4886762",
"0.4886419",
"0.48858213",
"0.4882771",
"0.4870131",
"0.4864926",
"0.4863208",
"0.4862871",
"0.48624626",
"0.4862435",
"0.4856196",
"0.4847943",
"0.48293555",
"0.48229575",
"0.482283",
"0.48178804",
"0.48125783",
"0.48085892",
"0.47983918",
"0.47958472"
] | 0.0 | -1 |
make a copy of double[][] | double[][] makeCopy(double[][] M, int row, int column) {
double _M[][] = new double[row][column];
for (int i = 0; i < row; i++)
for (int j = 0; j < column; j++)
_M[i][j] = M[i][j];
return _M;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double[][] getArrayCopy(){\r\n \tdouble[][] c = new double[this.nrow][this.ncol];\r\n\t\tfor(int i=0; i<nrow; i++){\r\n\t\t \tfor(int j=0; j<ncol; j++){\r\n\t\t \tc[i][j]=this.matrix[i][j];\r\n\t\t \t}\r\n\t\t }\r\n \treturn c;\r\n \t}",
"public static double[][] copy(double[][] A) {\n double[][] B = new double[A.length][];\n for (int i = 0; i < B.length; i++)\n B[i] = A[i].clone();\n return B;\n }",
"public static double[][] doubleArrayCopy(double[][] arr)\n\t{\n\n\t\t//size first dimension of array\n\t\tdouble[][] temp = new double[arr.length][arr[0].length];\n\n\t\tfor(int i=0; i<arr.length; i++)\n\t\t{\n\t\t\t//Resize second dimension of array\n\t\t\ttemp[i] = new double[arr[i].length];\n\n\t\t\t//Copy Contents\n\t\t\tfor(int j=0; j<arr[i].length; j++)\n\t\t\t\ttemp[i][j] = arr[i][j];\n\t\t}\n\n\t\treturn temp;\n\n\t}",
"private static double[][] clone(double[][] matrix)\n {\n int length = matrix.length;\n double[][] clone;\n\n clone = new double[length][];\n for (int i = 0; i < length; i++)\n clone[i] = matrix[i].clone();\n return clone;\n }",
"public static double[][] copy(double[][] source) {\n if (source == null)\n return null;\n if (source.length < 1)\n return new double[0][0];\n double[][] target = new double[source.length][];\n for (int i = 0; i < source.length; i++) {\n target[i] = new double[source[i].length];\n System.arraycopy(source[i], 0, target[i], 0, source[i].length);\n }\n return target;\n }",
"public double[][] getArrayCopy() {\n double[][] C = new double[m][n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n C[i][j] = data[i][j];\n }\n }\n return C;\n }",
"public static Double[][] deepCopy(Double[][] allVal2) {\r\n\t if (allVal2 == null) {\r\n\t return null;\r\n\t }\r\n\r\n\t final Double[][] result = new Double[allVal2.length][];\r\n\t for (int i = 0; i < allVal2.length; i++) {\r\n\t result[i] = Arrays.copyOf(allVal2[i], allVal2[i].length);\r\n\t // For Java versions prior to Java 6 use the next:\r\n\t // System.arraycopy(original[i], 0, result[i], 0, original[i].length);\r\n\t }\r\n\t return result;\r\n\t}",
"public Matrix copy() {\n Matrix X = new Matrix(m,n);\n double[][] C = X.getArray();\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n C[i][j] = data[i][j];\n }\n }\n return X;\n }",
"public static <T> T[][] clone2DArray(T[][] array) {\r\n\t int rows = array.length ;\r\n\r\n\t //clone the 'shallow' structure of array\r\n\t T[][] newArray = array.clone();\r\n\r\n\t //clone the 'deep' structure of array\r\n\t for(int row = 0 ; row < rows; row++){\r\n\t newArray[row] = array[row].clone();\r\n\t }\r\n\r\n\t return newArray;\r\n\t}",
"private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}",
"private int[][] copy(int[][] original) {\n int [][] newChild = new int[original.length][];\n for(int i = 0; i < original.length; i++)\n newChild[i] = Arrays.copyOf(original[i],original.length);\n return newChild;\n }",
"public void doubleArray() {\r\n\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tT[] temp=(T[]) new Object[item_count*2];\r\n\t\t\r\n\t\t// Copies elements from the initial array to a larger array\r\n\t\tfor(int i=0;i<item_count;i++) \r\n\t\t\ttemp[i]=arr[i];\r\n\t\tarr=temp;\r\n\t}",
"public Vec2double clone() {\n\t\treturn new Vec2double(this.x, this.y);\n\t}",
"public Matrix extract(){\r\n\t\t\r\n\t\tDouble[][] newVal = new Double[col][row - 1];\r\n\t\t\r\n\t\tfor(Double[] row: AllVal){\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"private Object[] cloneRow() {\n\t\t\treturn (Object[]) (row.clone());\n\t\t}",
"static int[][] deepClone(int[][] ary) {\n int [][] res = new int[ary.length][];\n\n for(int j=0 ; j < ary.length; j++)\n res[j] = ary[j].clone();\n return res;\n }",
"public Matrix copy(){\r\n \t if(this==null){\r\n \t return null;\r\n \t }\r\n \t else{\r\n \t int nr = this.nrow;\r\n \t int nc = this.ncol;\r\n \t Matrix b = new Matrix(nr,nc);\r\n \t double[][] barray = b.getArrayReference();\r\n \t b.nrow = nr;\r\n \t b.ncol = nc;\r\n \t for(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tbarray[i][j]=this.matrix[i][j];\r\n \t\t}\r\n \t }\r\n \t for(int i=0; i<nr; i++)b.index[i] = this.index[i];\r\n \t return b;\r\n \t}\r\n \t}",
"public Matrix copy() {\n Matrix m = new Matrix(rows, cols);\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n m.getMatrix().get(i)[j] = this.get(i, j);\n }\n }\n return m;\n }",
"@Test\r\n\tvoid deepArrayCopyElementsMultiDim() {\r\n\t\tInteger[][] intArr = new Integer[10][];\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tintArr[i] = new Integer[4];\r\n\t\t\tfor (int j = 0; j < 4; j++) {\r\n\t\t\t\tintArr[i][j] = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tInteger[][] clone = ArrayUtil.deepArrayCopy(intArr);\r\n\t\tassertTrue(Arrays.deepEquals(intArr, clone));\r\n\t}",
"double[][] asDouble();",
"int[][] copyBoard(){\n\t\tint[][] copyB = new int[boardSize][boardSize];\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tcopyB[i] = board[i].clone();\n\t\t}\n\t\treturn copyB;\n\t}",
"@Override\n public Shape deepCopy(double... points) {\n return this.deepCopy(points[0], points[1]);\n }",
"private int[][] deepCopy(int[][] matrix){\n int [][] myInt = new int[matrix.length][];\n for(int i = 0; i < matrix.length; i++)\n myInt[i] = matrix[i].clone();\n return myInt;\n }",
"public static Matrix constructWithCopy(double[][] A) throws JPARSECException {\n int m = A.length;\n int n = A[0].length;\n Matrix X = new Matrix(m,n);\n double[][] C = X.getArray();\n for (int i = 0; i < m; i++) {\n if (A[i].length != n) {\n throw new JPARSECException\n (\"All rows must have the same length.\");\n }\n for (int j = 0; j < n; j++) {\n C[i][j] = A[i][j];\n }\n }\n return X;\n }",
"@Override\n\tpublic Instance copy(final double[] values) {\n\t\treturn null;\n\t}",
"public static double[][] copyArray(double[][] dataArray){\n\t\t\n\t\tint rows = dataArray.length;\n\t\tint cols = dataArray[0].length;\n\t\t\n\t\tdouble[][] returnData = new double[rows][cols];\n\t\t\n\t\t//loop over array and copy contents\n\t\tfor( int i=0; i<rows; i++) {\n\t\t\tfor (int j=0; j<cols; j++) {\n\t\t\t\treturnData[i][j] = dataArray[i][j];\t\n\t\t\t}\n\t\t}\n\t\treturn returnData;\n\t}",
"double[][] asArray(){\n double[][] array_to_return = new double[this.rows][this.cols];\n for(int i=0; i<this.rows; i++){\n for(int j=0; j<this.cols; j++) array_to_return[i][j] = this.data[i*this.cols + j];\n }\n\n return array_to_return;\n }",
"public static Matrix copy(Matrix a){\r\n \t if(a==null){\r\n \t return null;\r\n \t }\r\n \t else{\r\n \t int nr = a.getNrow();\r\n \t int nc = a.getNcol();\r\n \t double[][] aarray = a.getArrayReference();\r\n \t Matrix b = new Matrix(nr,nc);\r\n \t b.nrow = nr;\r\n \t b.ncol = nc;\r\n \t double[][] barray = b.getArrayReference();\r\n \t for(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tbarray[i][j]=aarray[i][j];\r\n \t\t}\r\n \t }\r\n \t for(int i=0; i<nr; i++)b.index[i] = a.index[i];\r\n \t return b;\r\n \t}\r\n \t}",
"public double[][] asDoubleArray() {\r\n\r\n double returnList[][] = new double[getRowCount()][getLogicalColumnCount()];\r\n for (int i = 0; i < getRowCount(); i++) {\r\n for (int j = 0; j < getLogicalColumnCount(); j++) {\r\n returnList[i][j] = this.getLogicalValueAt(i, j);\r\n }\r\n }\r\n return returnList;\r\n }",
"public boolean[][] getMatrixCopy() {\n boolean[][] matrixCopy = new boolean[this.matrix.length][];\n for (int i = 0; i < this.matrix.length; i++) {\n matrixCopy[i] = Arrays.copyOf(this.matrix[i], this.matrix[i].length);\n }\n return matrixCopy;\n }",
"public double[] toOneDimensionalArray() {\n double[] result = new double[rows * cols];\n for (int i = 0; i < rows; i++) {\n System.arraycopy(this.data[i], 0, result, i * cols, cols);\n }\n\n return result;\n }",
"public double[] toArray() \r\n\t{ \r\n\t\treturn Arrays.copyOf(storico, storico.length) ; \r\n\t}",
"public void copy(double a[], double b[]) {\n System.arraycopy(b, 0, a, 0, dimension);\n }",
"public void duplicateOriginalArray() {\n for (int r=0; r<pixels.length; r++) {\n for (int c=0; c<pixels.length; c++) {\n if (pixels[r][c] == true)\n visited[r][c] = true;\n else\n visited[r][c]= false;\n }\n }\n }",
"private static final double[][] doubleArray2d (final List points) {\n final int m = points.size();\n final int n = ((List) points.get(0)).size();\n final double[][] a = new double[m][n];\n for (int i=0;i<m;i++) {\n final List row = (List) points.get(i);\n for (int j=0;j<n;j++) {\n a[i][j] = ((Number) row.get(j)).doubleValue(); } }\n return a; }",
"public abstract double[] toDoubleArray();",
"public static boolean[][] deepCopy(boolean[][] in){\r\n\t\treturn Arrays.stream(in).map(i -> i.clone()).toArray(i -> in.clone());\r\n\t}",
"Matrix copy() {\n Matrix newMatrix = new Matrix(matrixSize);\n for (int i = 0; i < matrixSize; i++) {\n if (!rows[i].isEmpty()) {\n rows[i].moveFront();\n while (rows[i].index() != -1) {\n Entry entry = (Entry)rows[i].get();\n newMatrix.changeEntry(i + 1, entry.column, entry.value);\n rows[i].moveNext();\n }\n }\n }\n return newMatrix;\n }",
"private void copy()\n\t{\n\t\t//for loop for row\n\t\tfor (int row =0; row<nextVersion.length; row++)\n\t\t{\t//for loop for column\n\t\t\tfor (int column =0; column<nextVersion[row].length; column++)\n\t\t\t{\n\t\t\t\t//assigning values for currentVersion to nextVersion array\n\t\t\t\tnextVersion[row][column] = currentVersion[row][column];\n\t\t\t}\n\t\t}\n\t\n\t}",
"@Override\n\tpublic MultiArrayDimension clone() {\n\t\treturn new MultiArrayDimension(this.label, this.size, this.stride);\n\t}",
"public Matrix copy() {\n\t\tComplexNumber[][] rows = new ComplexNumber[M][];\n\t\tfor (int row = 0; row < M; row++) {\n\t\t\trows[row] = new ComplexNumber[N];\n\t\t\tfor (int col = 0; col < N; col++) {\n\t\t\t\trows[row][col] = ROWS[row][col];\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(rows);\n\t}",
"public Double[][] toPresent() throws IndexOutOfBoundsException;",
"@Override\n\tpublic double[][] toArray() {\n\t\tint m = this.getRowsCount();\n\t\tint n = this.getColsCount();\n\t\tdouble[][] arr = new double[m][n];\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tarr[i][j] = this.get(i, j);\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}",
"public double[] getData(){\r\n\t\t//make a deeeeeep copy of data\r\n\t\tdouble[] returnData = new double[this.data.length];\r\n\t\t\r\n\t\t//fill with data values\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\treturnData[i] = this.data[i];\r\n\t\t}\r\n\t\t//return a ref to my deep copy\r\n\t\treturn returnData;\r\n\t}",
"public double[] getRowPackedCopy() {\n double[] vals = new double[m*n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n vals[i*n+j] = data[i][j];\n }\n }\n return vals;\n }",
"private static void demoIndependanceOfStorage() {\n\t\t//a clone of a one-dimensional array has independent storage\n\t\tint[] numbers = {1,1,1,1};\n\t\tint[] numbersClone = (int[])numbers.clone();\n\t\t//set 0th element to 0, and compare\n\t\tnumbersClone[0] = 0;\n\t\tlog(\"Altered clone has NOT affected original:\");\n\t\tlog(\"numbersClone[0]: \" + numbersClone[0]);\n\t\tlog(\"numbers[0]: \" + numbers[0]);\n\n\t\t//the clone of a multi-dimensional array does *not* have\n\t\t//independant storage\n\t\tint[][] matrix = { {1,1}, {1,1} };\n\t\tint[][] matrixClone = (int[][])matrix.clone();\n\t\t//set 0-0th element to 0, and compare\n\t\tmatrixClone[0][0] = 0;\n\t\tlog(\"Altered clone has affected original:\");\n\t\tlog(\"matrixClone element 0-0:\" + matrixClone[0][0]);\n\t\tlog(\"matrix element 0-0: \" + matrix[0][0]);\n\n\t\t//the clone of an array of objects as well is only shallow\n\t\tDate[] dates = {new Date()};\n\t\tlog(\"Original date: \" + dates[0]);\n\t\tDate[] datesClone = (Date[])dates.clone();\n\t\tdatesClone[0].setTime(0);\n\t\tlog(\"Altered clone has affected original:\");\n\t\tlog(\"datesClone[0]:\" + datesClone[0]);\n\t\tlog(\"dates[0]: \" + dates[0]);\n\t}",
"public Vec clone();",
"private static void cloneTable(int[][] dest) {\n for (int j=0; j<9; ++j) {\n for (int k=0; k<9; ++k) {\n dest[j][k] = table[j][k];\n }\n }\n }",
"public double[] getColumnPackedCopy() {\n double[] vals = new double[m*n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n vals[i+j*m] = data[i][j];\n }\n }\n return vals;\n }",
"public d clone() {\n ArrayList arrayList = this.e;\n int size = this.e.size();\n c[] cVarArr = new c[size];\n for (int i = 0; i < size; i++) {\n cVarArr[i] = ((c) arrayList.get(i)).clone();\n }\n return new d(cVarArr);\n }",
"@Override\n public INDArray copy(INDArray x, INDArray y) {\n //NativeBlas.dcopy(x.length(), x.data(), 0, 1, y.data(), 0, 1);\n JavaBlas.rcopy(x.length(), x.data(), x.offset(), 1, y.data(), y.offset(), 1);\n return y;\n }",
"@Override\n public Connect4GameState copy() {\n //create new array object\n int[][] copy = new int[NUM_ROWS][NUM_COLS];\n\n //copy the elements over to the new array\n for (int i = 0; i < NUM_ROWS; i++) {\n System.arraycopy(board[i], 0, copy[i], 0, NUM_COLS);\n }\n\n //copies the current state of the game;\n return new MyGameState(copy, this.whoseTurn());\n }",
"public Point[] clone(){\n\t\tPoint[] test = new Point[currentPiece.length];\n\t\tfor(int i = 0; i < currentPiece.length; i ++){\n\t\t\ttest[i] = new Point(currentPiece[i]);\n\t\t}\n\t\treturn test;\n\t}",
"public Array<T> compactClone()\n {\n Array<T> out = Array.fromUnsafe(new Object[next], next);\n System.arraycopy(array, 0, out.array, 0, next);\n return out;\n }",
"public void duplicate()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\ttemp[i][j] = cost[i][j];\n\t\t\t}\n\t\t}\n\t}",
"private Board copy(Board board)\n {\n Board result = new Board(size);\n \n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n result.array[i][j] = board.array[i][j];\n \n return result;\n \n }",
"public static boolean[][] cloneArray(boolean[][] matrix) {\n int length = matrix.length;\n boolean[][] target = new boolean[length][matrix[0].length];\n for (int i = 0; i < length; i++) {\n System.arraycopy(matrix[i], 0, target[i], 0, matrix[i].length);\n }\n return target;\n }",
"public UnorderedArray cloneArray(){\r\n UnorderedArray clone = new UnorderedArray(maxSize);\r\n clone.mArray = mArray.clone();\r\n clone.numItems = numItems;\r\n return clone;\r\n }",
"public T copy() {\n T ret = createLike();\n ret.getMatrix().setTo(this.getMatrix());\n return ret;\n }",
"public double[] toArray() {\n\t\treturn acc.toArray();\n\t}",
"public Matrix3D(double[] d1) {\n super(3,3);\n int k = -1;\n for (int i=0 ; i<3 ; i++) { // loop over rows\n for (int j=0 ; j<3 ; j++) { // loop over columns\n k++;\n set(i,j,d1[k]); // d[i][j] = d1[k];\n }\n }\n }",
"private int[][] copyState(int[][] stateToBeCopied) {\n\t\tint[][] tempState = new int[9][9];\n\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\ttempState[i][j] = stateToBeCopied[i][j];\n\t\t\t}\n\t\t}\n\n\t\treturn tempState;\n\t}",
"public double getElementCopy(int i, int j){\r\n \treturn this.matrix[i][j];\r\n \t}",
"private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }",
"private BoardSpace[][] boardClone(BoardSpace[][] board) {\n BoardSpace[][] newBoard = new BoardSpace[board.length][board[0].length];\n\n for (int row = 0; row < TicTacToeModel.BOARD_DIMENSION; row++) {\n for (int col = 0; col < TicTacToeModel.BOARD_DIMENSION; col++) {\n newBoard[row][col] = board[row][col].clone();\n }\n }\n\n return newBoard;\n }",
"public void redimensionarArray() {\r\n\t\t\r\n\t\tint nuevaCapacidad = tamanioArrayPosicionesCelulas * 2;\r\n\t\t// Copia los arrays originales y les da la nueva capacidad se quiere tener.\r\n\t\tfilasDeCelulas = Arrays.copyOf(filasDeCelulas, nuevaCapacidad);\r\n\t\tcolumnasDeCelulas = Arrays.copyOf(columnasDeCelulas, nuevaCapacidad);\r\n\t\t\r\n\t\t// Actualizamos el valor del array.\r\n\t\ttamanioArrayPosicionesCelulas = nuevaCapacidad;\r\n\t}",
"public USB2Mat copy() {\n\t\treturn new USB2Mat(this);\n\t}",
"@Nonnull\n public double [] getDoublePivot ()\n {\n final double [] vals = new double [m_nRows];\n for (int i = 0; i < m_nRows; i++)\n vals[i] = m_aPivot[i];\n return vals;\n }",
"public char[][] copyBoard() {\r\n\t\tchar[][] clonedBoard = new char[this.board.length][this.board.length];\r\n\t\tfor (int i = 0; i < this.board.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.board.length; j++) {\r\n\t\t\t\tclonedBoard[i][j] = this.board[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn clonedBoard;\r\n\t}",
"public DynamicArray<E> copy(DynamicArray<E> array) {\n synchronized (this) {\n return this.array;\n }\n }",
"public double[] getValues() {\n return values.clone();\n }",
"public native double[][] __double2dArrayMethod( long __swiftObject, double[][] arg );",
"public static int[][] copyArray(int[][] a) {\n\t\tint[][] returnArray = new int[a.length][a[0].length];\n\t\tfor (int row = 0; row < a.length; row++) {\n\t\t\tfor (int column = 0; column < a[row].length; column++) {\n\t\t\t\treturnArray[row][column] = a[row][column];\n\t\t\t}\n\t\t}\n\t\treturn returnArray;\n\t}",
"public static char[][] cloneArray(char[][] src)\n\t{\n\t\tint length = src.length;\n\t\tchar[][] target = new char[length][src[0].length];\n\t\tfor (int i = 0; i < length; i++)\n\t\t{\n\t\t\tSystem.arraycopy(src[i], 0, target[i], 0, src[i].length);\n\t\t}\n\t\treturn target;\n\t}",
"public double[][] getArrayReference(){\r\n \treturn this.matrix;\r\n \t}",
"public static double[] copyOf(double[] original, int newLength)\r\n\t{\r\n\t\tif (newLength < 0)\r\n\t\t\tthrow new NegativeArraySizeException(\"The array size is negative.\");\r\n\t\treturn copyOfRange(original, 0, newLength);\r\n\t}",
"public void reAllocate() {\n\t\tmat_ = new double[n_][hbw_ + 1];\n\t}",
"public Object[][] toJava2D() {\n\n\t\tObject[][] d = new Object[numRows][numCols];\n\t\tfor ( int j = 0; j < numRows; j++ ) {\n\t\t\tfor ( int i = 0; i < numCols; i++ ) {\n\t\t\t\td[i][j] = get(i, j);\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}",
"public Sudoku copy(){\n\t\treturn (Sudoku) this.clone();\n\t}",
"@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }",
"public Object[][] get2DArray();",
"protected ArrayList<double[]> newMatrix(int _rows, int _cols) {\n ArrayList<double[]> matrix = new ArrayList<double[]>();\n for (int i=0; i<_rows; i++) {\n matrix.add(new double[_cols]);\n }\n return matrix;\n }",
"private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}",
"public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}",
"public Complex makeDeepCopy() {\r\n Complex complex2 = new Complex(this.getReal(), this.getImaginary());\r\n return complex2;\r\n }",
"private IntPlus[] cloneArr(final IntPlus[] origArr) {\n return Arrays.copyOf(origArr, origArr.length);\n }",
"public Matrix(double[][] data) {\n rows = data.length;\n cols = data[0].length;\n this.data = new double[rows][cols];\n for (int i = 0; i < data.length; i++) {\n System.arraycopy(data[i], 0, this.data[i], 0, data[i].length);\n }\n }",
"public Grid copyGrid() {\n Grid copy = new Grid(grid.length);\n System.arraycopy(grid, 0, copy.getGrid(), 0, grid.length);\n return copy;\n }",
"@Override\n public RawStore copy() {\n return new RawStore(this.toRawCopy2D(), myNumberOfColumns);\n }",
"public Double[][] toPast() throws IndexOutOfBoundsException;",
"Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }",
"public static int[][] copy(int[][] source) {\n if (source == null)\n return null;\n if (source.length < 1)\n return new int[0][0];\n int[][] target = new int[source.length][];\n for (int i = 0; i < source.length; i++) {\n target[i] = new int[source[i].length];\n System.arraycopy(source[i], 0, target[i], 0, source[i].length);\n }\n return target;\n }",
"public ProcessedDynamicData deepCopy( ) {\r\n\r\n ProcessedDynamicData copy = new ProcessedDynamicData( this.channelId );\r\n\r\n copy.channelId = this.channelId;\r\n copy.dateTimeStamp = new java.util.Date( this.dateTimeStamp.getTime() );\r\n copy.samplingRate = this.samplingRate;\r\n copy.eu = this.eu;\r\n\r\n copy.min = this.min;\r\n copy.max = this.max;\r\n\r\n copy.measurementType = this.measurementType;\r\n copy.measurementUnit = this.measurementUnit;\r\n\r\n // data and labels\r\n List<Double> dataCopy = new Vector<Double>();\r\n for( int i = 0; i < this.data.size(); i++ ) {\r\n dataCopy.add( new Double( this.data.get( i ) ) );\r\n }\r\n copy.setData( dataCopy );\r\n\r\n List<Double> dataLabels = new Vector<Double>();\r\n for( int i = 0; i < this.dataLabels.size(); i++ ) {\r\n dataLabels.add( new Double( this.dataLabels.get( i ) ) );\r\n }\r\n copy.setDataLabels( dataLabels );\r\n\r\n // create a deep copy of overalls\r\n if( overalls != null ) {\r\n copy.overalls = new OverallLevels( this.overalls.getChannelId() );\r\n copy.overalls.setDateTimeStampMillis( this.getDateTimeStampMillis() );\r\n Vector<String> overallKeys = this.overalls.getKeys();\r\n for( int i = 0; i < overallKeys.size(); i++ ) {\r\n copy.overalls.addOverall( new String( overallKeys.elementAt( i ) ),\r\n new Double( this.overalls.getOverall( overallKeys.elementAt( i ) ) ) );\r\n }\r\n }\r\n\r\n copy.xEUnit = this.xEUnit;\r\n copy.yEUnit = this.yEUnit;\r\n\r\n copy.xSymbol = this.xSymbol;\r\n copy.ySymbol = this.ySymbol;\r\n copy.xPhysDomain = this.xPhysDomain;\r\n copy.yPhysDomain = this.yPhysDomain;\r\n \r\n copy.noOfAppendedZeros = this.noOfAppendedZeros;\r\n\r\n return copy;\r\n }",
"@Override\n public IDoubleArray transform(IDoubleArray x)\n {\n IDoubleArray out = doublesNew.array(dimOut);\n transform(x, out);\n return out;\n }",
"private static double[] allarga(double[] a)\r\n\t{\r\n\t\t// in alternativa a copyOf:\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tdouble[] nuovoStorico = new double[storico.length+1];\r\n\t\t\t\t\tfor (int k = 0; k < storico.length; k++) nuovoStorico[k] = storico[k];\r\n\t\t\t\t\tnuovoStorico[storico.length-1] = energia;\r\n\t\t\t\t\tstorico = nuovoStorico;\r\n\t\t\t\t\t */\r\n\t\t\r\n\t\treturn Arrays.copyOf(a, a.length+1);\r\n\t}",
"@Test\n public void testCreateTranspose1(){\n double[][] a = new double[1][1];\n a[0][0] = Math.random();\n double[][] newA = HarderArrayProblems.createTranspose(a);\n checkTranspose(a, newA);\n }",
"@Test\n public void testCopyRows() {\n Object[][] rows = {{\"a1\", \"a2\", \"a3\", \"a4\"}, {\"b1\", \"b2\", \"b3\", \"b4\"}, {\"c1\", \"c2\", \"c3\", \"c4\"}};\n test(\"copyRows\", rows, 4, Integer.valueOf(rows.length));\n }",
"public Board deepCopy() {\n Board copy = new Board();\n for (int i = 0; i < DIMENSION; i++) {\n System.arraycopy(this.fields[i], 0, copy.fields[i], 0, DIMENSION);\n }\n return copy;\n }",
"private Object[] copyArray(Object[] source, int size) {\n\t\tObject[] destination = new Object[size];\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tdestination[i] = source[i];\n\t\t}\n\n\t\treturn destination;\n\t}",
"@Test\n public void testCreateTranspose2(){\n double[][] a = new double[5][5];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.createTranspose(a);\n checkTranspose(a, newA);\n }"
] | [
"0.7680193",
"0.7484511",
"0.7463947",
"0.73453254",
"0.72332245",
"0.7165557",
"0.70056134",
"0.6826646",
"0.6652809",
"0.65904665",
"0.65339327",
"0.65099037",
"0.6470552",
"0.64608204",
"0.6443533",
"0.64396054",
"0.63920563",
"0.6348756",
"0.634856",
"0.6317184",
"0.63088644",
"0.62890494",
"0.62769115",
"0.6276084",
"0.6245684",
"0.6207742",
"0.6201496",
"0.6201265",
"0.6197385",
"0.61902",
"0.6173928",
"0.6166633",
"0.61263233",
"0.61098945",
"0.61049646",
"0.60932",
"0.60796523",
"0.60719085",
"0.6065885",
"0.60421395",
"0.6020458",
"0.6019005",
"0.5994971",
"0.5988153",
"0.59637654",
"0.59291553",
"0.5909881",
"0.59057546",
"0.58936465",
"0.5891111",
"0.58479863",
"0.5826875",
"0.5817233",
"0.5786141",
"0.57730377",
"0.57671046",
"0.57477444",
"0.5733654",
"0.5733602",
"0.56994206",
"0.56966716",
"0.5694916",
"0.5654897",
"0.5647199",
"0.56355476",
"0.56262463",
"0.56064314",
"0.55978274",
"0.55926317",
"0.55877066",
"0.55742586",
"0.5571421",
"0.5558683",
"0.55572355",
"0.55514675",
"0.5533753",
"0.55330056",
"0.55329317",
"0.55278593",
"0.55198693",
"0.55196345",
"0.5517981",
"0.55067825",
"0.5497213",
"0.5496799",
"0.5492836",
"0.54723233",
"0.54673237",
"0.5466824",
"0.545218",
"0.5444903",
"0.5434503",
"0.5433617",
"0.5424684",
"0.5424429",
"0.54240143",
"0.5419256",
"0.54116046",
"0.54095954",
"0.5406072"
] | 0.71274894 | 6 |
send data request message to the core node | protected void cb(CBResult ncResult, Set<NodesPair> nps,
String errorString) {
CluDatRequestMsg datPayload = new CluDatRequestMsg(
Ninaloader.me, nps, timer);
System.out.println("$ @@ Dat is sent to: "
+ origin_remoteAddr + " With ID " + msgID22);
comm.sendRequestMessage(datPayload, origin_remoteAddr,
new ObjCommRRCB<CluDatResponseMsg>() {
protected void cb(
CBResult result,
final CluDatResponseMsg responseMsg22,
AddressIF node, Long ts) {
switch (result.state) {
case OK: {
System.out
.println("$ ! Dat is ACKed from"
+ responseMsg22.from);
break;
}
case ERROR:
case TIMEOUT: {
String error = origin_remoteAddr
.toString(false)
+ "has not received responses from"
+ origin_remoteAddr
.toString()
+ ", as: "
+ result.toString();
log.warn(error);
break;
}
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void requestData();",
"public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}",
"public void sendData(String data) {// send data\n\t\tthis.data = data;\n\t\tthis.start();// spin up a new thread to send data\n\t}",
"private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }",
"public void sendRequest(){\n fileServer.sendMessage(this.packet,new FileNode(ip,port));\n }",
"void sendData(String request) throws IOException {\n if (mmDevice == null) {\n Log.d(TAG, \"No device set\");\n }\n\n Log.d(TAG, \"Request is \" + request);\n if (mmOutputStream != null){\n mmOutputStream.write(request.getBytes(Charset.forName(\"UTF-8\")));\n }\n\n if (false && request.contains(\"travel\")) {\n closeBT();\n openBT();\n }\n }",
"private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }",
"public void send(Object data) {\n\t\t//do nothing - override to do something\n\t}",
"private void sendMsg()\n {\n try {\n spauldingApp.println(\"AckRequest.sendMsg() - sending request to nodeID= \" + node.getNodeID() + \" ...\");\n this.nbrTransmits++;\n //spauldingApp.eventLogger.writeMsgSentPing(fetchReqMsg);\n spauldingApp.getMoteIF().send(node.getNodeID(), requestMsg);\n } catch (Exception e) {\n spauldingApp.println(\"ERROR: Can't send message: \" + e);\n e.printStackTrace();\n }\n }",
"private void data(Messenger replyTo, int encoderId, Bundle data) {\n\n // obtain new message\n Message message = obtainMessage(Geotracer.MESSAGE_TYPE_DATA, encoderId, 0);\n message.setData(data);\n\n // send response\n send(replyTo, message);\n }",
"@ReactMethod\n public void send(ReadableArray data) {\n byte[] payload = new byte[data.size()];\n for (int i = 0; i < data.size(); i++) {\n payload[i] = (byte)data.getInt(i);\n }\n\n long maxSize = chirpConnect.maxPayloadLength();\n if (maxSize < payload.length) {\n onError(context, \"Invalid payload\");\n return;\n }\n ChirpError error = chirpConnect.send(payload);\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n }\n }",
"SendToDataLayerThread(String p, String msg) {\n path = p;\n message = msg;\n }",
"public void sendMessage(DeployableNode node, byte[] data)\n {\n try{\n Protos.FrameworkMessage message = Protos.FrameworkMessage.newBuilder()\n .setTaskId(node.getTask().getTaskInfo().getTaskId())\n .setData(ByteString.copyFrom( data ) )\n .build();\n\n this.scheduler.sendFrameworkMessage( node, message );\n }catch (Exception e)\n {\n LOGGER.error( \"Caught exception in sendMessage: \"+e);\n e.printStackTrace();\n }\n }",
"private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}",
"public void sendData(String data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.getBytes().length + 10);\n\t\tbuf.put(data.getBytes());\n\t\tbuf.put((byte)0x00);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}",
"private void ipcSend(JSONObject data) {\n JSONObject json = data;\n try {\n json.put(IPC_MESSAGE_APPID, mAppId);\n\n if (mIpcChannel != null) {\n log.e(\"ipcSend:[\" + json.toString() + \"]\");\n\n mIpcChannel.send(json.toString());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void sendData(byte[] data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.length + 10);\n\t\tbuf.put(data);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}",
"private void sendDataToQueue(byte[] data){\n\t\t//*****************************************\n\t\t//Se possuir o Prefixo de Comando Interno, então envia o Comando para a Fila de Comandos Internos do Core\n\t\t// Do contrário envia o Comando para a Fila de Dados a Serem enviados pelo BluetootSenderWorker ao Carro\n\t\tif(new String(data).contains(SystemProperties.COMANDO_INTERNO_PREFIXO)){\n\t\t\tthis.systemCore.addDataToInternalCommandQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Comando enviado a Fila de comandos Internos do Dispositivo Android...\");\n\t\t}else{\n\t\t\tthis.systemCore.addDataToCarControlQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Controle enviado a Fila de dados a serem enviados ao Carro...\");\n\t\t}\n\t}",
"private void sendData() throws DataProcessingException, IOException {\n Data cepstrum = null;\n do {\n cepstrum = frontend.getData();\n if (cepstrum != null) {\n if (!inUtterance) {\n if (cepstrum instanceof DataStartSignal) {\n inUtterance = true;\n dataWriter.writeDouble(Double.MAX_VALUE);\n dataWriter.flush();\n } else {\n throw new IllegalStateException\n (\"No DataStartSignal read\");\n }\n } else {\n if (cepstrum instanceof DoubleData) {\n // send the cepstrum data\n double[] data = ((DoubleData) cepstrum).getValues();\n for (double val : data) {\n dataWriter.writeDouble(val);\n }\n } else if (cepstrum instanceof DataEndSignal) {\n // send a DataEndSignal\n dataWriter.writeDouble(Double.MIN_VALUE);\n inUtterance = false;\n } else if (cepstrum instanceof DataStartSignal) {\n throw new IllegalStateException\n (\"Too many DataStartSignals.\");\n }\n dataWriter.flush();\n }\n }\n } while (cepstrum != null);\n }",
"public boolean sendData(String data, String prefix) throws IOException;",
"protected void sendDataToRobot(byte[] data) {\n\t\thandler.sendData(data);\n\t}",
"void sendData() throws IOException\n\t{\n\t}",
"public void sendRemainData();",
"@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}",
"public boolean send(NetData data)\n {\n writer.println(data.toString());\n xMessenger.miniMessege(\">>>\"+ data.toString());\n return true;\n }",
"@Override\n public void channelRead0(ChannelHandlerContext ctx, String request) throws Exception {\n final JsonObject json = (JsonObject) parser.parse(request);\n if(json.has(\"operation\") && ((json.get(\"operation\").getAsString()).equals(\"data\"))) {\n final DataToProcess obj = GSON.fromJson(json, DataToProcess.class);\n QueuerManager.getInstance().pushPacket(ctx.channel().id().asShortText(), obj);\n// System.out.println(\"REC Data Received \" + ctx.channel().id().asShortText());\n }\n else {\n// System.out.println(\"REC hello packet\");\n }\n }",
"@Override\n\tpublic void sendData(CharSequence data) {\n\t\t\n\t}",
"public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }",
"public String sendDataToChildren(byte[] data) throws RemoteException;",
"private void sendRequest( String msg ){ \r\n\r\n\t\tRequest message = new Request(); // construction of Request object\r\n\t\tmessage.c = c_id;\r\n\t\tmessage.s = seq_number;\r\n\t\tmessage.op = msg;\r\n\t\t\r\n\t\tString str_msg = message.toString(); //generate string message\r\n\t\tdisplayArea.append( \"\\nCLI\"+c_id+\" Sending packet containing: \" + str_msg + \"\\n\" );\r\n\t\t\t\t\r\n\t\tbyte data[] = str_msg.getBytes(); // convert to bytes\r\n\t\t \r\n\t\ttry{\t\t\t\t\t\t\t\t\t\r\n\t\t\tDatagramPacket sendPacket = new DatagramPacket( data, data.length, InetAddress.getLocalHost(), serverPort );\r\n\t\t\tsocket.send( sendPacket ); // send packet\r\n\t\t\tdisplayArea.append( \"Packet sent\\n\" );\r\n\t\t\tdisplayArea.setCaretPosition(\r\n\t\t\tdisplayArea.getText().length() );\r\n\t\t\tseq_number++; //increment seq_number\r\n\t\t}\r\n\t\tcatch ( IOException ioException )\r\n\t\t{\r\n\t\t\tdisplayMessage( ioException.toString() + \"\\n\" );\r\n\t\t\tioException.printStackTrace();\r\n\t\t} // end catch\r\n\t\t\r\n\t}",
"private void wrapGuiDataRequest(JSONObject msg)\n\t{\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\n\t\tJSONObject data = (JSONObject) msg.get(\"data\");\n\t\tmap.put(\"data\", data);\n\t\tmap.put(\"msgId\", Server.ServerQueueIds.REQ_MSG_ID);\n\n\t\tJSONObject req = new JSONObject(map);\n\t\tserver.putMsgOnServerQueue(req);\n\t}",
"public void dataSent(LLRPDataSentEvent event);",
"public DataMessage(final Object data){\n\t\tthis.data=data;\n\t}",
"private void doRequest() {\n\n try {\n JsonObject request = new JsonObject()\n .put(\"action\", Math.random() < 0.5 ? \"w\" : \"r\")\n .put(\"timeOfRequest\", System.currentTimeMillis());\n\n if (request.getString(\"action\") == \"w\") {\n request.put(\"data\", new JsonObject()\n .put(\"key\", \"value\")\n );\n logger.debug(\"requesting write: \" + request.toString());\n eb.send(\"storage-write-address\", request, new DeliveryOptions().setSendTimeout(1000), this);\n } else {\n Random random = new Random();\n List<String> keys = new ArrayList<String>(map.keySet());\n String randomKey = keys.get(random.nextInt(keys.size()));\n request.put(\"id\", randomKey);\n logger.debug(\"waiting for read: \" + request.toString());\n eb.send(\"storage-read-address\", request, new DeliveryOptions().setSendTimeout(1000), this);\n }\n } catch (Exception e) {\n logger.warn(\"Error\");\n makeRequest();\n }\n\n }",
"public void send( String data ) {\n SendRunnable sendRunnable = new SendRunnable( data );\n Thread sendThread = new Thread( sendRunnable );\n sendThread.start();\n }",
"public void postData()\n\t{\n\t\tnew NetworkingTask().execute(message);\n\t}",
"private void requestData() {\n Jc11x5Factory.getInstance().getJobPriceList(mHandler);\n }",
"public void send(Opcode opcode, Serializable datum);",
"public abstract void sendData(Float data, int dataType);",
"private static void sendDataMessage() {\r\n\t\tSystem.out.println(\"CLIENT: \" + \" \" + \"DataMessage sent.\");\r\n\t\t\r\n\t\tbyte[] blockNumberAsByteArray = helper.intToByteArray(blockNumberSending);\r\n\t\tsplitUserInput = helper.divideArray(userInputByteArray);\r\n\r\n\t\tsendData = message.dataMessage(blockNumberAsByteArray, splitUserInput[sendingPackageNumber]);\r\n\t\tsendingPackageNumber++;\r\n\t\tblockNumberSending++; // blocknumber that is given to the next message to be transmitted\r\n\r\n\t\t// trims the message (removes empty bytes), so the last message can be detected\r\n\t\ttrimmedSendData = helper.trim(sendData);\r\n\r\n\t\tsendDataMessage = new DatagramPacket(trimmedSendData, trimmedSendData.length, ipAddress, SERVER_PORT);\r\n\t\ttry {\r\n\t\t\tclientSocket.send(sendDataMessage);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tackNeeded = true;\r\n\r\n\t\tif (trimmedSendData.length < 516) {\r\n\t\t\tlastPackage = true;\r\n\t\t}\r\n\t}",
"public void putData(int idData, String data) throws Exception {\n ArrayList<Node> nodes = this.master.getAllDataNode();\n if(!nodes.isEmpty()){\n System.out.println(\"List of registered nodes:\");\n for(int i=0; i<nodes.size(); i++) {\n System.out.println(i + \". \" + nodes.get(i).getHost() + \": \" + nodes.get(i).getPort());\n }\n System.out.println(\"Enter a node id from the list above to put data\");\n int input = scanner.nextInt();\n \n Node selectedNode = nodes.get(input);\n\n // Open up a socket on the selected DataNode\n this.openSocket(selectedNode.getPort(), \"putData/\"+idData+ \"/\"+ data);\n }\n else{\n System.out.println(\"No registered DataNode\");\n }\n }",
"@Override\r\n public void transmitData(IOMSG msg,\r\n ClientContext clientContext, int clientNum) throws Exception\r\n {\r\n // get context handled by server\r\n ServerContext sContext = (ServerContext) getContext();\r\n\r\n if (clientContext != null)\r\n {\r\n clientContext.setIOMSG(msg);\r\n }\r\n // update the clients\r\n messageQueue.appendText(\"Updating client contexts...\\n\");\r\n sContext.updateClients();\r\n // update server message queue\r\n messageQueue.appendText(\"Transmitting IO Message: \"\r\n + msg.toString() + \"\\n\");\r\n switch (msg)\r\n {\r\n case UPDATE_INITIAL_CONTEXT:\r\n getConnection().send(\r\n clientContext, clientNum);\r\n break;\r\n case ROLL:\r\n case MOVE:\r\n case RELAY_CONTEXT:\r\n getConnection().send(\r\n clientContext, clientNum);\r\n break;\r\n }\r\n }",
"public void getData(int idData) throws Exception {\n Node dataNode = this.master.getOneDataNode();\n if(dataNode != null){\n System.out.println(\"Get from DataNode on port \" + dataNode.getPort());\n this.openSocket(dataNode.getPort(), \"getData/\"+idData);\n }\n else {\n System.out.println(\"No registered DataNode\");\n }\n }",
"public boolean sendData(String data) throws IOException;",
"private void recieveData() throws IOException, InterruptedException {\n String senderIP= JOptionPane.showInputDialog(WED_ZERO.lang.getInstruct().get(1)[17]);\n if(senderIP==null) {\n ERROR.ERROR_359(Launch.frame);\n return;\n }\n JOptionPane.showMessageDialog(Launch.frame, WED_ZERO.lang.getInstruct().get(1)[18]);\n Networking net=new Networking(true);\n net.setIPAddress(senderIP);\n String to=net.initClient();\n int res = JOptionPane.showConfirmDialog(null, WED_ZERO.lang.getInstruct().get(1)[19]+\" \"\n +to+\".\", WED_ZERO.lang.getInstruct().get(1)[12],\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); \n if(res==JOptionPane.NO_OPTION||res==JOptionPane.CANCEL_OPTION) {\n return;\n }\n Map<Integer, ArrayList<String>> data=new HashMap<Integer, ArrayList<String>>();\n ArrayList<String> folderName=new ArrayList();\n net.transferData_RECIEVE(folderName, data);\n this.processNewData(data, folderName);\n \n }",
"static public void startSending(String add,int port,byte[] data,int mode){\n }",
"private void getData() {\n\n //Adding the method to the queue by calling the method getDataFromServer\n requestQueue.add(getDataFromServer(pos));\n\n }",
"public void sendData(byte[] data) {\r\n\t\t//send packet\r\n\t\ttry {\r\n\t\t\tout.write(data);\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void sendData(String data, int numCapteur);",
"private void sendRequest(Action action) {\n ACLMessage request = new ACLMessage(ACLMessage.REQUEST);\n request.setLanguage(new SLCodec().getName());\n request.setOntology(MobilityOntology.getInstance().getName());\n try {\n getContentManager().fillContent(request, action);\n request.addReceiver(action.getActor());\n send(request);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private void sendDataMsgToClient(String msg) {\n if (dataConnection == null || dataConnection.isClosed()) {\n sendMsgToClient(\"425 No data connection was established\");\n debugOutput(\"Cannot send message, because no data connection is established\");\n } else {\n dataOutWriter.print(msg + '\\r' + '\\n');\n }\n\n }",
"public void send(byte[] data) {\n final Payload payload = new Payload(OPCODE_BINARY, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }",
"void getDataFromServer();",
"void sendRequest(String message);",
"public int sendData(String command) throws IOException\n {\n return sendCommandWithID(null, command, null);\n }",
"protected final boolean send(final Object data) {\n\t\t// enviamos los datos\n\t\treturn this.send(data, null);\n\t}",
"public void sendDataToESP(String data){\n\n\n URL remoteurl = null;\n String baseurl = \"http://\"+IpAddress+\"/\";\n String urlString = baseurl + data;\n System.out.println(urlString);\n try {\n remoteurl = new URL(urlString);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n new AutoActivity.pingit().execute(remoteurl);\n }",
"public static void testIBMMQSendData(){\n\n MQParam param = new MQParam();\n param.setHost(\"10.86.92.194\");\n param.setPort(30099);\n param.setCcsid(1208);\n param.setChannel(\"SVRCONN_GW_OUT\");\n param.setQueueManager(\"ESB_OUT\");\n param.setQueueName(\"EIS.QUEUE.REQUEST.OUT.GCDCHZWMES\");\n param.setUserId(\"mqm\");\n param.setPassword(\"mqm\");\n new Thread(new IBMReceiverThread(param)).run();\n }",
"void sendJson(Object data);",
"private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}",
"TransferInitiateResponse initiateConsumerRequest(DataRequest dataRequest);",
"@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }",
"public static void sendData(String message) {\n try // send object to server\n {\n output.writeObject(message);\n output.flush(); // flush data to output\n displayMessage(\"\\nSend to Server:\");\n displayMessage(\"\\n\" + message);\n } // end try\n catch (IOException ioException) {\n displayArea.append(\"\\nError writing object\");\n } // end catch\n }",
"private void sendRequest() {\n\t\tloading = ProgressDialog.show(this, \"Loading\", \"Please wait...\");\n\n\t\tUri.Builder uri = new Uri.Builder();\n\t\turi.authority(DatabaseContract.PROVIDER_NAME);\n\t\turi.path(Integer.toString(Constants.LOADREQUESTSCMD));\n\t\turi.scheme(\"content\");\n\n\t\tIntent intent = new Intent(this, MyService.class);\n\t\tintent.putExtra(\"ACTION\", \"QUERY\");\n\t\tintent.setData(uri.build());\n\n\t\trequestid = new Date().getTime();\n\t\tintent.putExtra(\"requestid\", requestid);\n\t\tstartService(intent);\n\t}",
"private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }",
"void sendData(String msg) throws IOException\n {\n if ( msg.length() == 0 ) return;\n//\n msg += \"\\n\";\n// Log.d(msg, msg);\n if (outputStream != null)\n outputStream.write(msg.getBytes());\n// myLabel.setText(\"Data Sent\");\n// myTextbox.setText(\" \");\n }",
"public void send(final byte[] data) {\n\t\tsend = new Thread(\"Send\") {\n\t\t\t// anaonymous class prevents us from making new class that implemtents Runnable\n\t\t\tpublic void run(){\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length, ip, port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t};\n\t\tsend.start();\n\t}",
"@Override\n public void onData(SocketIOClient client, Message data, AckRequest ackRequest) {\n data = new Message(\"hello i'm server\");\n //yuyuenamespace.getBroadcastOperations().sendEvent(\"message\", data);\n }",
"default void sendBinary(byte[] data) {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n sendBinary(buffer);\n }",
"public abstract void SendData(int sock, String Data) throws LowLinkException, TransportLayerException, CommunicationException;",
"@Override\n public void send(String key, String data) throws IOException {\n\n }",
"public abstract void send(String data, String toAddress);",
"private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}",
"public void sendRequest() {\r\n\t\t\r\n\t\tclient.join(this, isHost, gameCode, playerName, playerNumber);\r\n\t\t\r\n\t}",
"public void sendRequest(Pdu packet);",
"public void sendmsg(Message msg){\n try {\n oos.writeObject(new Datapacket(1, null, msg,null, null));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public abstract void run(Data data, Socket socket);",
"@Override\r\n public void handleData(Serializable data)\r\n {\r\n try\r\n {\r\n // get the client context\r\n clientContext = (TwoPlayerClientContext) data;\r\n messageQueue.appendText(\r\n \"Received IO Message: \" + clientContext.getIOMSG().toString());\r\n messageQueue.appendText(clientContext.getIOMSG()\r\n .equals(IOMSG.QUERY_INITIAL_CONTEXT) ? \"\\n\"\r\n : \" from \" + clientContext.getClientID() + \"\\n\");\r\n messageQueue.appendText(\"Server received actions: \"\r\n + clientContext.toString() + \"\\n\\n\");\r\n switch (clientContext.getIOMSG())\r\n {\r\n case QUERY_INITIAL_CONTEXT:\r\n transmitData(IOMSG.UPDATE_INITIAL_CONTEXT,\r\n serverContext.createClientContext(true),\r\n serverContext.getNumClients() - 1);\r\n break;\r\n case RELAY_CONTEXT:\r\n processAction(clientContext, \"Updated client context.\");\r\n break;\r\n case ROLL:\r\n processAction(clientContext, clientContext.getSelectedActor() + \" rolled a \"\r\n + clientContext.getDie().toString() + \"!\");\r\n break;\r\n case MOVE:\r\n processAction(clientContext, clientContext.getSelectedActor() + \" moved!\");\r\n break;\r\n default:\r\n break;\r\n }\r\n } catch (Exception ex)\r\n {\r\n Logger.getLogger(EpicDuelsServerController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }",
"public int sendDataPacket()\n{\n \n return(0);\n\n}",
"public void sendData(byte[] data) {\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, ipAddress, serverPort);\n\n\t\ttry {\n\t\t\tsocket.send(packet);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void send_data(int curr_portNo, String data_send) {\n\t\ttry {\n\t\t\tSocket baseSocket = new Socket(Content_Provider.ipAdd, curr_portNo);\n\t\t\tPrintWriter toPeer = new PrintWriter(new BufferedWriter(\n\t\t\t\t\tnew OutputStreamWriter(baseSocket.getOutputStream())), true);\n\t\t\ttoPeer.println(data_send);\n\t\t\tbaseSocket.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public abstract boolean send(byte[] data);",
"void send(ByteBuffer data) throws CCommException, IllegalStateException;",
"private String requesttosend() throws IOException {\n\t\tsender.sendMsg(Constants.REQSEND);\r\n\t\t//等待接收的返回状态\r\n\t\treturn sender.getMsg();\r\n\t}",
"public void request() {\n }",
"private void openSocket(int port, String request) throws Exception {\n Socket socket = new Socket(InetAddress.getByName(\"localhost\"), port);\n ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());\n oos.writeObject(request);\n ObjectInputStream ois = new ObjectInputStream(socket.getInputStream()); \n String response = (String) ois.readObject(); \n System.out.println(\"Response from DataNode: \" + response);\n socket.close();\n }",
"public void send() {\n\t}",
"void send();",
"void send(SftpDatagram head,byte[] data){\r\n\t\tdata_send = data;\r\n\t\t//first send the first one\r\n\t\ttotal_datagrams = 1;\r\n\t\tcovered_datagrams++;\r\n\t\thead.send_datagram();\r\n\t\tput_and_set_timer(head);\r\n\t\t//sending\r\n\t\tif(data_send != null){\r\n\t\t\tlong size = data_send.length;\r\n\t\t\tif(size != 0)\r\n\t\t\t\ttotal_datagrams = (int)((size+BLOCK_SIZE-1) / BLOCK_SIZE);\r\n\t\t}\r\n\t\t//check sendings(if not small mode)\r\n\t\tcheck_and_send();\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\t\t\tuploadMsg(fUerInfo);\n\t\t\t\t\t}",
"public void infoServiceRequest(String requestType, String param){\r\n \r\n InetAddress destAddr = null;\r\n String[] nodeInfo = null;\r\n String ip = this.getPeerIP().split(\":\")[0].substring(2);\r\n try {\r\n destAddr = InetAddress.getByName(ip);\r\n } catch (UnknownHostException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n int destPort = Integer.parseInt(managerInfoServicePort);\r\n \r\n DataOutputStream output;\r\n DataInputStream input;\r\n \r\n Socket sock = null;\r\n boolean connected = false;\r\n while (!connected) {\r\n try {\r\n sock = new Socket(destAddr, destPort);\r\n connected = true;\r\n } catch (IOException ex) {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException ex1) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex1), \"severe\");\r\n }\r\n }\r\n }\r\n try {\r\n output = new DataOutputStream(sock.getOutputStream());\r\n input = new DataInputStream(sock.getInputStream()); \r\n \r\n if(requestType.equals(\"UPDATE\")){\r\n output.writeUTF(requestType+\"-LOCAL\");\r\n output.flush();\r\n String infoServiceList = input.readUTF();\r\n infoSys.updateInfo(infoServiceList);\r\n }\r\n else if(requestType.equals(\"POISON\")){\r\n output.writeUTF(requestType+\"-LOCAL-\"+param);\r\n output.flush();\r\n infoSys.removeInfo(param);\r\n }\r\n else if(requestType.equals(\"ADD\")){\r\n output.writeUTF(requestType+\"-LOCAL-\"+param);\r\n output.flush();\r\n String infoServiceList = input.readUTF();\r\n //update local information service list\r\n infoSys.updateInfo(infoServiceList);\r\n }\r\n else if(requestType.equals(\"CPT-UPDATE\")){\r\n output.writeUTF(requestType);\r\n output.flush();\r\n String cptNode = input.readUTF();\r\n String[] cptNodes = cptNode.split(\", \");\r\n List singleCptList = new ArrayList<String>();\r\n for(int i = 0 ; i < cptNodes.length; ++i){\r\n singleCptList.add(cptNodes[i].substring(1,cptNodes[i].indexOf(\"]\")));\r\n }\r\n updateSubscriberList(\"CPT\",singleCptList); \r\n }\r\n else if(requestType.equals(\"CPT-DELETE\")){\r\n output.writeUTF(requestType+\"-\"+param);\r\n output.flush();\r\n subscriberList.get(\"CPT\").remove(param);\r\n }\r\n else if(requestType.equals(\"REQ-UPDATE\")){\r\n output.writeUTF(requestType);\r\n output.flush();\r\n String reqNode = input.readUTF();\r\n String[] reqNodes = reqNode.split(\", \");\r\n List reqList = new ArrayList<String>();\r\n for(int i = 0 ; i < reqNodes.length; ++i){\r\n reqList.add(reqNodes[i].substring(1,reqNodes[i].indexOf(\"]\")));\r\n }\r\n updateSubscriberList(\"REQ\",reqList); \r\n }\r\n else if(requestType.equals(\"REQ-DELETE\")){\r\n output.writeUTF(requestType+\"-\"+param);\r\n output.flush();\r\n subscriberList.get(\"REQ\").remove(param);\r\n }\r\n output.close();\r\n input.close();\r\n sock.close();\r\n } catch (IOException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n }",
"void writeData(String messageToBeSent) {\n\n try {\n if (clientSocket != null) {\n outputStream = clientSocket.getOutputStream();\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);\n objectOutputStream.writeObject(messageToBeSent);\n outputStream.flush();\n }\n\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Artifact configurations and test cases data sent to the synapse agent successfully\");\n }\n } catch (IOException e) {\n getLog().error(\"Error while sending deployable data to the synapse agent \", e);\n }\n }",
"public void request(Object content) {\n\t\t\n\t\tif( isInitiator() && (getState() == RequestProtocolState.NOT_STARTED) ){\n\t\t\tsendMessage(content, Performative.REQUEST, getParticipants().get(0));\n\t\t\tsetState(RequestProtocolState.WAITING_ANSWER);\n\t\t}\n\t\telse if( isParticipant() ){\n\t\t\tthis.logger.log(Level.SEVERE, Locale.getString(\"FipaRequestProtocol.0\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tthis.logger.log(Level.SEVERE, Locale.getString(\"FipaRequestProtocol.1\")); //$NON-NLS-1$\n\t\t}\n\t}",
"private void sendRequest(String reqmsg) throws MqttException {\n MqttMessage message = new MqttMessage();\n message.setPayload(reqmsg.getBytes());\n middleware.publish(TOPIC, message);\n }",
"private void sendData(String name, String xCor, String yCor) {\n\t\tint priority = _priorityCh.getSelectedIndex() + 1;\n\t\tdouble xCorD = Double.parseDouble(xCor);\n\t\tdouble yCorD = Double.parseDouble(yCor);\n\n\t\tif (!_clientControl.ifConnect()) {\n\t\t\t_missionTa.append(\"Server not found\\n\\n\");\n\t\t\t_ls.writeLog(\"Server not found\\n\\n\");\n\t\t} else {// Write data to server\n\t\t\t_clientControl.writeToServer(Status.cordinates, priority, xCorD, yCorD);\n\t\t\t// Display to the text area\n\t\t\tif (_clientControl.readIntFromServer() == 1) {\n\t\t\t\t_missionTa.append(\"Id Code: \" + _clientControl.readIntFromServer() + \"\\n\");\n\t\t\t\t_missionTa.append(\"Mission nearest coordinates: \" + _clientControl.readDblFromServer() + \", \"\n\t\t\t\t\t\t+ _clientControl.readDblFromServer() + \"\\n\");\n\n\t\t\t\t_missionTa.append(name + \" have suucssed \\n\");\n\t\t\t\t_ls.writeLog(\"You have suucssed \\n\");\n\t\t\t} else {\n\t\t\t\t_missionTa.append(\"SQL Server or Server not found\\n\\n\");\n\t\t\t\t_ls.writeLog(\"SQL Server or Server not found\\n\\n\");\n\t\t\t}\n\t\t\t//_clientControl.disconnect();\n\t\t}\n\t}",
"void sendRequest() throws IOException {\n InetAddress ipAddress = InetAddress.getByName(RootServers[serverNo]);\r\n\r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);\r\n\r\n dataOutputStream.writeShort(0x1234);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n\r\n String[] domainParts = domain.split(\"\\\\.\");\t//Splits the given domian wrt '.'\r\n for (int i = 0; i < domainParts.length; i++) {\r\n byte[] domainBytes = domainParts[i].getBytes(\"UTF-8\");\r\n dataOutputStream.writeByte(domainBytes.length);\r\n dataOutputStream.write(domainBytes);\r\n }\r\n\r\n dataOutputStream.writeByte(0x00);\t\t\t\r\n\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n\r\n byte[] dnsFrameByteArray = byteArrayOutputStream.toByteArray();\r\n DatagramPacket datagramPacket = new DatagramPacket(dnsFrameByteArray, dnsFrameByteArray.length,\r\n ipAddress, Port);\r\n socket.send(datagramPacket);\t//Sends the request to obtained IP address\r\n }",
"public void sendData(String message) {\n if (asyncClient != null) {\n asyncClient.write(new ByteBufferList(message.getBytes()));\n Timber.d(\"Data sent: %s\", message);\n } else {\n Timber.e(\"cannot send data - socket not yet ready\");\n }\n }",
"public void run(){\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length, ip, port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public Reply sendData(InputStream... ios) throws ThingsException, InterruptedException;",
"public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}"
] | [
"0.6807434",
"0.67398065",
"0.65678394",
"0.65237963",
"0.6449077",
"0.6446587",
"0.64242846",
"0.62889373",
"0.6255656",
"0.6186445",
"0.6176969",
"0.6164932",
"0.61492646",
"0.6137298",
"0.61302733",
"0.6110994",
"0.6107857",
"0.61020607",
"0.60986185",
"0.6057591",
"0.6052695",
"0.604915",
"0.60475147",
"0.60417545",
"0.6037846",
"0.6016239",
"0.6015601",
"0.60077584",
"0.6006541",
"0.6006166",
"0.60025376",
"0.5972228",
"0.59719944",
"0.596857",
"0.5951577",
"0.5919022",
"0.59158903",
"0.59142953",
"0.5893711",
"0.58918047",
"0.5881063",
"0.5873486",
"0.58682084",
"0.58517367",
"0.58475876",
"0.5835929",
"0.5817667",
"0.5802979",
"0.57978535",
"0.579133",
"0.5777306",
"0.5757804",
"0.5754462",
"0.5753249",
"0.5732791",
"0.5724692",
"0.57234347",
"0.571651",
"0.571616",
"0.571597",
"0.57123023",
"0.5711805",
"0.5710478",
"0.57058835",
"0.5693362",
"0.5693304",
"0.5691744",
"0.5682967",
"0.56662047",
"0.56650275",
"0.5663029",
"0.5655876",
"0.5640339",
"0.56272393",
"0.5599688",
"0.5599296",
"0.5598383",
"0.55973715",
"0.5595421",
"0.5594329",
"0.5589224",
"0.55880994",
"0.55873513",
"0.55858",
"0.55639523",
"0.55621433",
"0.55536413",
"0.5547356",
"0.55403686",
"0.55381924",
"0.5523845",
"0.5523035",
"0.55210197",
"0.5520695",
"0.5513308",
"0.5512803",
"0.5505637",
"0.5505204",
"0.54968834",
"0.5491987",
"0.54881316"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void cb(CBResult result) {
updateLandmarks();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
we update the set of landmarks, after each time epoch | void updateLandmarks() {
registerUpdateLandmarksTimer();
int m = 2;
final int expectedLandmarks = NumberOfLandmarks + m;
Iterator<Long> ier = pendingHSHLandmarks.keySet().iterator();
Set<AddressIF> tmpList = new HashSet<AddressIF>(1);
Long curRecord = null;
// get a non-empty list of landmarks
while (ier.hasNext()) {
Long nxt = ier.next();
if (pendingHSHLandmarks.get(nxt).IndexOfLandmarks != null
&& pendingHSHLandmarks.get(nxt).IndexOfLandmarks.size() > 0) {
tmpList
.addAll(pendingHSHLandmarks.get(nxt).IndexOfLandmarks);
curRecord = nxt;
break;
}
}
// if empty, we need to update landmarks immediately
if (tmpList.size() == 0) {
// remove the record
if (curRecord != null) {
pendingHSHLandmarks.get(curRecord).clear();
pendingHSHLandmarks.remove(curRecord);
} else {
// null curRecord
}
} else {
final Long Timer = curRecord;
// ping landmarks, if several of them fails, p percentage p=0.2
// , we remove the records, and restart the landmark process
// =================================================================
final List<AddressIF> aliveLandmarks = new ArrayList<AddressIF>(
1);
NNManager.collectRTTs(tmpList, new CB2<Set<NodesPair>, String>() {
protected void cb(CBResult ncResult, Set<NodesPair> nps,
String errorString) {
// send data request message to the core node
long timer=System.currentTimeMillis();
if (nps != null && nps.size() > 0) {
System.out
.println("\n==================\n Alive No. of landmarks: "
+ nps.size()
+ "\n==================\n");
Iterator<NodesPair> NP = nps.iterator();
while (NP.hasNext()) {
NodesPair tmp = NP.next();
if (tmp != null && tmp.rtt >= 0) {
AddressIF peer = (AddressIF)tmp.endNode;
//====================================================
if (!ncManager.pendingLatency.containsKey(peer)) {
ncManager.pendingLatency.put(peer,
new RemoteState<AddressIF>(peer));
}
ncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);
//=====================================================
if (!pendingHSHLandmarks.containsKey(Timer)
|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {
continue;
}
int index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks
.indexOf(peer);
if (index < 0) {
continue;
} else {
// found the element, and it is smaller
// than
// rank, i.e., it is closer to the
// target
aliveLandmarks.add(peer);
continue;
}
} else {
// wrong measurements
}
}
} else {
// empty
// all nodes fail, so there are no alive nodes
if (pendingHSHLandmarks.containsKey(Timer)) {
pendingHSHLandmarks.get(Timer).clear();
pendingHSHLandmarks.remove(Timer);
}
}
// some landmarks are offline, we clear records and
// start
if (pendingHSHLandmarks.containsKey(Timer)) {
if (aliveLandmarks.size() < 0.8 * expectedLandmarks) {
pendingHSHLandmarks.get(Timer).clear();
pendingHSHLandmarks.remove(Timer);
} else {
// the landmarks are healthy, so we can sleep
// awhile
// TODO: remove dead landmarks, and resize the
// landmarks
pendingHSHLandmarks.get(Timer).IndexOfLandmarks
.clear();
pendingHSHLandmarks.get(Timer).IndexOfLandmarks
.addAll(aliveLandmarks);
// pendingHSHLandmarks.get(Timer).readyForUpdate=false;
final Set<AddressIF> nodes = new HashSet<AddressIF>(
1);
nodes
.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);
pendingHSHLandmarks.get(Timer).readyForUpdate = true;
//update the rtts
updateRTTs(Timer.longValue(),nodes, new
CB1<String>(){ protected void cb(CBResult
ncResult, String errorString){ switch
(ncResult.state) { case OK: {
System.out.println("$: Update completed");
System.out.println();
if(errorString.length()<=0){
pendingHSHLandmarks
.get(Timer).readyForUpdate=true; }
break; } case ERROR: case TIMEOUT: { break; }
} nodes.clear(); } });
return;
}
}
}
});
}
// ==================================================================
// expected landmarks, K+m
final Set<AddressIF> pendingNodes = new HashSet<AddressIF>(1);
getRandomNodes(pendingNodes, expectedLandmarks);
// remove myself
if (pendingNodes.contains(Ninaloader.me)) {
pendingNodes.remove(Ninaloader.me);
}
System.out.println("$: HSH: Total number of landmarks are: "
+ pendingNodes.size());
if (pendingNodes.size() == 0) {
String errorString = "$: HSH no valid nodes";
System.out.println(errorString);
return;
}
Barrier barrierUpdate = new Barrier(true);
final StringBuffer errorBuffer = new StringBuffer();
final long TimeStamp = System.currentTimeMillis();
for (AddressIF addr : pendingNodes) {
seekLandmarks(TimeStamp, addr, barrierUpdate,
pendingHSHLandmarks, errorBuffer);
}
EL.get().registerTimerCB(barrierUpdate, new CB0() {
protected void cb(CBResult result) {
String errorString;
if (errorBuffer.length() == 0) {
errorString = new String("Success");
} else {
errorString = new String(errorBuffer);
}
// finish the landmark seeking process
if (!pendingHSHLandmarks.containsKey(Long
.valueOf(TimeStamp))
|| pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks == null) {
System.out.println("$: NULL elements! ");
return;
}
if (pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks
.size() < (0.7 * expectedLandmarks)) {
pendingHSHLandmarks.get(Long.valueOf(TimeStamp))
.clear();
pendingHSHLandmarks.remove(Long.valueOf(TimeStamp));
System.out.println("$: not enough landmark nodes");
} else {
//
pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).readyForUpdate = true;
System.out.println("$: enough landmark nodes");
final Set<AddressIF> nodes = new HashSet<AddressIF>(1);
nodes
.addAll(pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks);
updateRTTs(Long.valueOf(TimeStamp), nodes, new CB1<String>() {
protected void cb(CBResult ncResult, String errorString) {
switch (ncResult.state) {
case OK: {
System.out.println("$: Update completed");
System.out.println();
}
case ERROR:
case TIMEOUT: {
break;
}
}
nodes.clear();
}
});
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getLandmarksToBeDrawn(){\n ((Pane) mapImage.getParent()).getChildren().removeIf(x->x instanceof Circle || x instanceof Text || x instanceof Line);\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n CostedPath path=shortestRouteDij(lm1,lm2); \n GraphNodeAL<MapPoint> prev=null;\n for(GraphNodeAL<?> n : path.pathList) { \n drawLandmarks((GraphNodeAL<MapPoint>) n);\n if(prev!=null) lineDraw(prev, (GraphNodeAL<MapPoint>) n);\n prev= (GraphNodeAL<MapPoint>) n;\n }\n }",
"@Override\n\t\t\t\tprotected void cb(CBResult result) {\n\t\t\t\t\tupdateLandmarks();\n\t\t\t\t}",
"public synchronized void landmarksChanged (CityMap sender) {\n mapLandmarks = cityMap.getMapLandmarks ();\n lastActivated = null;\n repaint ();\n }",
"synchronized void updateActivatedLandmarks () {\n calculateViewportOffset (tmpXY, visitorX, visitorY);\n\n int offsetX = tmpXY[X];\n int offsetY = tmpXY[Y];\n\n for (int i = 0; i < mapLandmarks.length; ++i) {\n if (mapLandmarks[i].isActive ()) {\n int x0 = mapLandmarks[i].getX () - 16 - offsetX;\n int y0 = mapLandmarks[i].getY () - 16 - offsetY;\n repaint (x0, y0, 32, 32);\n }\n }\n }",
"public void getSample(List<T> landmarks){\n\t\tIterator<T> ier = landmarks.iterator();\n\t\twhile(ier.hasNext()){\n\t\t\tT tmp = ier.next();\n\t\t\tthis.getSample(tmp);\t\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n public void call(List<HistoricLandmarkDistanceSelect> landmarks) {\n if (!query.equals(lastQuery.get())) {\n return;\n }\n\n restoreSelectedLandmark(landmarks);\n\n mLandmarks = landmarks;\n\n bus.publish(new OnLandmarkLoadEvent());\n }",
"public void showAllLandmarks(){\n ((Pane) mapImage.getParent()).getChildren().removeIf(x->x instanceof Circle || x instanceof Text || x instanceof Line);\n for(int i = 0; i<landmarkList.size(); i++){\n if(landmarkList.get(i).data.type == \"Landmark\")\n drawLandmarks(landmarkList.get(i));\n }\n }",
"private void initializeLandmarks()\n\t{\n\t\t// Do nothing if not set\n\t\tif (startingMinionPerArea == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Check starting landmark for each area\n\t\tfor(Area area : board.getAreaList())\n\t\t{\n\t\t\tint number = area.getNumber();\n\t\t\tInteger minionCount = startingMinionPerArea.get(number);\n\t\t\tif (minionCount != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < minionCount; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(Player player : playerList)\n\t\t\t\t\t{\n\t\t\t\t\t\tarea.addMinion(player.removeMinion());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Hashtable<T,ratingCoord<T>> processSamplesLandmarks_(long timer, List<T> landmarks,\n\t\t\tMatrix centralizedRatingMat) {\n\t\t// TODO Auto-generated method stub\n\t//\tMatrix mat=centralizedRatingMat.subMatrix(landmarks,landmarks);\n\t\t\n\t\tHashtable<T,ratingCoord<T>> coords = MyConvergeMMMF_bias.getInstance().compute_basicMMMF(landmarks, centralizedRatingMat, dim, level);\n\t\t//Iterator<ratingCoord<T>> ier = coords.iterator();\n\t\t\n\t\treturn coords;\t\t\n\t}",
"void updateDistMatrix(long timeStamp) {\n\n\t\t\t// for each alive landmark, when its ping results are received by\n\t\t\t// the source node,\n\t\t\t// we start the clustering computation process\n\t\t\t// TODO: remove landmarks that return a subset of results 10-12\n\t\t\tLong timer = Long.valueOf(timeStamp);\n\n\t\t\tif (!pendingHSHLandmarks.containsKey(timer)\n\t\t\t\t\t|| pendingHSHLandmarks.get(timer).IndexOfLandmarks == null) {\n\t\t\t\tSystem.err.println(\"$: Null elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHSHRecord CurList = pendingHSHLandmarks.get(timer);\n\t\t\tint NoOfLandmarks = CurList.IndexOfLandmarks.size();\n\t\t\tif(NoOfLandmarks<=0){\n\t\t\t\tSystem.err.println(\"$: Empty elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords = CurList.pendingLandmarkLatency;\n\t\t\tif (LatRecords == null) {\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"$: Null HashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tint receivedLandmarks = LatRecords.keySet().size();\n\t\t\t// empty or incomplete records\n\t\t\tif (LatRecords.isEmpty() || receivedLandmarks < 0.8 * NoOfLandmarks) {\n\t\t\t\tSystem.err.println(\"$: Null LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: total landmarks: \" + NoOfLandmarks\n\t\t\t\t\t+ \", received from \" + receivedLandmarks);\n\t\t\t// use the IndexOfLandmarks as the index of nodes\n\n\t\t\tif (CurList.DistanceMatrix == null\n\t\t\t\t\t|| CurList.DistanceMatrix.length != NoOfLandmarks) {\n\t\t\t\tCurList.DistanceMatrix = null;\n\t\t\t\tCurList.DistanceMatrix = new double[NoOfLandmarks][NoOfLandmarks];\n\t\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\t\tfor (int j = 0; j < NoOfLandmarks; j++) {\n\t\t\t\t\t\tCurList.DistanceMatrix[i][j] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// fill elements\n\t\t\tIterator<Entry<AddressIF, ArrayList<RemoteState<AddressIF>>>> entrySet = LatRecords\n\t\t\t\t\t.entrySet().iterator();\n\n\t\t\twhile (entrySet.hasNext()) {\n\t\t\t\tEntry<AddressIF, ArrayList<RemoteState<AddressIF>>> tmp = entrySet\n\t\t\t\t\t\t.next();\n\t\t\t\t// empty lists\n\t\t\t\tif (tmp.getValue() == null || tmp.getValue().size() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// ===============================================================\n\t\t\t\tAddressIF srcNode = tmp.getKey();\n\t\t\t\t// find the index of landmarks\n\t\t\t\tint from = CurList.IndexOfLandmarks.indexOf(srcNode);\n\t\t\t\tIterator<RemoteState<AddressIF>> ier = tmp.getValue()\n\t\t\t\t\t\t.iterator();\n\t\t\t\tif (from < 0) {\n\t\t\t\t\t// already removed landmarks!\n\t\t\t\t\tSystem.out.println(\"already removed landmarks!\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\twhile (ier.hasNext()) {\n\t\t\t\t\tRemoteState<AddressIF> NP = ier.next();\n\n\t\t\t\t\tif (!CurList.IndexOfLandmarks.contains(NP.getAddress())) {\n\t\t\t\t\t\t// not landmarks\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tint to = CurList.IndexOfLandmarks.indexOf(NP.getAddress());\n\n\t\t\t\t\tdouble rtt = NP.getSample();\n\t\t\t\t\tif (to < 0 || rtt < 0) {\n\t\t\t\t\t\tSystem.err.println(\"$: failed to find the landmarks!\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// System.out.print(\" <\"+to+\", \"+from+\", \"+rtt+\"> \");\n\t\t\t\t\t\t// Note: symmetric RTT\n\t\t\t\t\t\tif (CurList.DistanceMatrix[to][from] > 0) {\n\t\t\t\t\t\t\tdouble avgRTT;\n\t\t\t\t\t\t\tif (rtt > 0) {\n\t\t\t\t\t\t\t\tavgRTT = (rtt + CurList.DistanceMatrix[to][from]) / 2;\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tavgRTT = CurList.DistanceMatrix[to][from];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = avgRTT;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = avgRTT;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// TODO: missing elements\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = rtt;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = rtt;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ======================================================\n\n\t\t\tboolean markZero = false;\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int column = 0; column < NoOfLandmarks; column++) {\n\t\t\t\t\tif (i == column) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (CurList.DistanceMatrix[i][column] > 0) {\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (sum < 0.7 * NoOfLandmarks) {\n\t\t\t\t\tmarkZero = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (markZero) {\n\t\t\t\t// CurList.DistanceMatrix=null;\n\t\t\t\tSystem.err.println(\"$: incomplete CurList.DistanceMatrix!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n\\n$: HSH: Start HSH clustering computation process!\");\n\n\t\t\t// TODO: find accurate clustering number\n\t\t\tint cluNum = MatrixOps.findClusteringNum(CurList.DistanceMatrix);\n\n\t\t\tif(cluNum<=0){\n\t\t\t\tSystem.err.println(\"the clustering number is <=0\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t// version control for dimensions\n\t\t\tif (CurList.S != null && CurList.S.length == cluNum) {\n\n\t\t\t} else {\n\t\t\t\tCurList.version = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\t// initialize the matrixes for computation\n\t\t\tCurList.H = new double[NoOfLandmarks][cluNum];\n\t\t\tCurList.S = new double[cluNum][cluNum];\n\t\t\t// CurList.Coord = new double[cluNum];\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.H[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < cluNum; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.S[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// update coordinate vectors\n\t\t\tMatrixOps.symmetric_NMF(NoOfLandmarks, cluNum,\n\t\t\t\t\tCurList.DistanceMatrix, CurList.H, CurList.S);\n\t\t\tCurList.alreadyComputedClustering = true;\n\n\t\t\t// TODO: H,S is Null\n\t\t\tif (CurList.H == null || CurList.S == null) {\n\t\t\t\tSystem.err.println(\"$: after HSH computation, NULL results!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// after centralized computation, the core node should send its H &\n\t\t\t// S to all the landmark nodes\n\t\t\tissueCoords(timeStamp, CurList.IndexOfLandmarks, new CB1<String>() {\n\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Core node has issued its H & S to all landmarks.\");\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public void updateMarks() {\n this.marks.addAll(thisTurnMarks);\n thisTurnMarks.clear();\n if(game != null)\n game.notifyUpdateMarks(this);\n }",
"private void readLandmarks() {\n landmarks.readBathrooms();\n landmarks.readCampsTSV();\n landmarks.readFavoritesTSV();\n System.out.println();\n }",
"private void restoreSelectedLandmark(List<HistoricLandmarkDistanceSelect> landmarks) {\n int position = mSelectedPositionId.position;\n if (position >= 0 && position < landmarks.size()) {\n HistoricLandmarkDistanceSelect landmarkDistanceSelect = landmarks.get(position);\n // Previously selected is still in the same position\n if (landmarkDistanceSelect.landmark.id == mSelectedPositionId.id) {\n landmarkDistanceSelect.isSelected = true;\n }\n // A different landmark is in the previously selected position\n else {\n mSelectedPositionId = PositionId.NO_POSITION_ID;\n }\n\n }\n // Previously selected position is now out of bounds\n else {\n mSelectedPositionId = PositionId.NO_POSITION_ID;\n }\n }",
"private void updateArrayListCoordinates() {\n this.coordinates = makeCoordinatesFromCenterCoordinate(centerPointCoordinate);\n }",
"private void seekLandmarks(final long timeStamp, final AddressIF addr,\n\t\t\t\tfinal Barrier barrier,\n\t\t\t\tfinal Map<Long, HSHRecord> pendingHSHLandmarks,\n\t\t\t\tStringBuffer errorBuffer) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tif (Ninaloader.me.equals(addr)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tLandmarkRequestMsg msg = new LandmarkRequestMsg(Ninaloader.me,\n\t\t\t\t\ttimeStamp);\n\t\t\tbarrier.fork();\n\t\t\tcomm.sendRequestMessage(msg, addr,\n\t\t\t\t\tnew ObjCommRRCB<LandmarkResponseMsg>() {\n\t\t\t\t\t\tprotected void cb(CBResult result,\n\t\t\t\t\t\t\t\tfinal LandmarkResponseMsg responseMsg,\n\t\t\t\t\t\t\t\tAddressIF node, Long ts) {\n\t\t\t\t\t\t\tswitch (result.state) {\n\t\t\t\t\t\t\tcase OK: {\n\t\t\t\t\t\t\t\t// System.out.println(\"$Landmark Request is acked! We have received ACK from\"+addr);\n\n\t\t\t\t\t\t\t\t// we override previous landmarks\n\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Long\n\t\t\t\t\t\t\t\t\t\t.valueOf(timeStamp))) {\n\t\t\t\t\t\t\t\t\tpendingHSHLandmarks.put(Long\n\t\t\t\t\t\t\t\t\t\t\t.valueOf(timeStamp), new HSHRecord(\n\t\t\t\t\t\t\t\t\t\t\tLong.valueOf(timeStamp)));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpendingHSHLandmarks\n\t\t\t\t\t\t\t\t\t\t.get(Long.valueOf(timeStamp))\n\t\t\t\t\t\t\t\t\t\t.addLandmarks(addr);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks\n\t\t\t\t\t\t\t\t\t\t.get(Long.valueOf(timeStamp)).alreadyComputedClustering = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase ERROR:\n\t\t\t\t\t\t\tcase TIMEOUT: {\n\t\t\t\t\t\t\t\tString error = addr.toString(false)\n\t\t\t\t\t\t\t\t\t\t+ \"has not received requirement, as: \"\n\t\t\t\t\t\t\t\t\t\t+ result.toString();\n\t\t\t\t\t\t\t\tlog.warn(error);\n\n\t\t\t\t\t\t\t\t// remove pending neighbor\n\t\t\t\t\t\t\t\t// addDownNeighbor(addr);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbarrier.join();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t}",
"private double[] y_landmark(VectorN x, Time t, int p,\r\n VectorN s, int lindex, boolean inoise) {\r\n \r\n // We'll need a Gaussian random number generator\r\n //Random randn = new Random(System.currentTimeMillis()); \t\r\n \r\n double y = 0;\r\n VectorN dydx = new VectorN(x.length);\r\n \r\n // TODO: Do we need t to be relative?\r\n // jd=jd0+t/86400;\r\n \r\n // If the number of states is greater than 6, assume that the \r\n // components 7-9 are the body-fixed coordinates of the landmark, \r\n // otherwise, it is assumed the landmark is known and specified by \r\n // the structure.\r\n CentralBody body = gravbody.get(p);\r\n VectorN lf = null;\r\n if (x.length == 9) {\r\n lf = x.get(6, 3);\r\n \t //Landmark mark = new Landmark(20, x.get(6), x.get(7), x.get(8),LunaRef.R_Luna);\r\n \t //lf = mark.lmf;\r\n }\r\n else {\r\n lf = body.getLandmark(lindex).lmf;\r\n }\r\n \r\n // Compute the coordinate transformation from body-fixed to inertial\r\n ReferenceFrameTranslater xlater = \r\n new ReferenceFrameTranslater(body.bodyFixedRef, body.inertialRef, t);\r\n VectorN li = xlater.translatePoint(lf);\r\n\r\n // Compute the vector from the spacecraft to the landmark\r\n VectorN d = li.minus(x.get(0, 3));\r\n double dmag = d.mag();\r\n VectorN dhat = d.unitVector();\r\n if ((s != null) && (s.length == 3)) {\r\n // Referece unit vector is provided. Compute measurment\r\n // between LOS.\r\n \r\n // Compute predicted measurement cos(theta)\r\n y = dhat.dotProduct(s);\r\n\r\n if (inoise) {\r\n // Assume similar noise as star and zero bias for now\r\n // TODO: Make arnd and abias configurable instead of\r\n // hardcoded.\r\n double arnd=.0034*Math.PI/180.0;\r\n //arnd=.07*Math.PI/180.0;\r\n arnd=Rdeg*Math.PI/180.0;\r\n double abias=0;\r\n y=Math.cos(Math.acos(y)+arnd*rnd.nextGaussian()+abias);\r\n }\r\n\r\n // (1/dmag)*s'*(-eye(3)+dhat*dhat')\r\n VectorN rdot = s.divide(dmag);\r\n Matrix tmp = dhat.outerProduct(dhat).minus(Matrix.identity(3,3));\r\n rdot = rdot.times(tmp);\r\n dydx.set(0, rdot);\r\n // vdot is 0\r\n \r\n if (x.length == 9) {\r\n //VectorN ldot = xlater.translatePointBack(rdot);//.times(-1);\r\n VectorN ldot = xlater.translatePointBack(rdot.times(-1));\r\n dydx.set(6, ldot);\r\n }\r\n }\r\n else {\r\n // No reference unit vector is provided. Compute pseudo range.\r\n \r\n // measurement is tan((D/2)/r)\r\n double D = body.getLandmark(lindex).D;\r\n y=D*.5/dmag;\r\n \r\n if (inoise) {\r\n // 1-sigma noise and bias on angular measurement\r\n double[] noiseFactors = camerr(dmag,p);\r\n double arnd = noiseFactors[0];\r\n double abias = noiseFactors[1];\r\n y=Math.tan(Math.atan(y)+arnd*rnd.nextGaussian()+abias);\r\n }\r\n\r\n double scale = (0.5 * D) / (dmag * dmag * dmag);\r\n VectorN rpart = d.times(scale);\r\n \r\n if (x.length == 9) {\r\n VectorN ldot = xlater.translatePointBack(rpart).times(-1);\r\n dydx.set(6, ldot);\r\n }\r\n }\r\n\r\n // TODO: Do we really want to shmoosh these into one array\r\n // just to return it?\r\n // We combine the angle and the Jacobian into a single array to return it\r\n double[] out = new double[x.length+1];\r\n out[0] = y;\r\n //System.arraycopy(dydx, 0, toReturn, 1, dydx.length);\r\n\t\tfor(int i=1; i<x.length+1; i++) out[i] = dydx.x[i-1];\r\n return out; \r\n }",
"private void update() {\n int curRegionX = client.getRegionBaseX();\n int curRegionY = client.getRegionBaseY();\n if(lastRegionX != curRegionX || lastRegionY != curRegionY) {\n //Search for Altars:\n altars.clear();\n Landscape.accept(new LandscapeVisitor() {\n @Override\n public void acceptObject(RSEntityMarker marker) {\n int id = UID.getEntityID(marker.getUid());\n RSObjectDefinition def = client.getObjectDef(id);\n if(def == null || def.getName() == null) return;\n if(def.getName().equals(\"Altar\")) {\n altars.add(marker);\n }\n }\n });\n }\n }",
"protected abstract void setMarkers();",
"public synchronized void landmarkStateChanged (CityMap sender, MapLandmark mapLandmark) {\n if (mapLandmark.isActive ()) {\n lastActivated = mapLandmark;\n repaint ();\n }\n else {\n calculateViewportOffset (tmpXY, visitorX, visitorY);\n\n int offsetX = tmpXY[X];\n int offsetY = tmpXY[Y];\n int x0 = mapLandmark.getX () - 16 - offsetX;\n int y0 = mapLandmark.getY () - 16 - offsetY;\n repaint (x0, y0, 32, 32);\n\n if (lastActivated == mapLandmark) {\n lastActivated = null;\n repaint ();\n }\n }\n }",
"public void updateMarkers(){\n markerMap = new HashMap<>();\n googleMap.clear();\n for (Station station : main.getStations()) {\n float fillLevel = station.getFillLevel();\n float colour = fillLevel * 120;\n Marker marker = googleMap.addMarker(new MarkerOptions().position(station.getLocation()).title(station.getName()).snippet(Integer.toString(station.getOccupancy())).icon(BitmapDescriptorFactory.defaultMarker(colour)));\n marker.setTag(station.getId());\n markerMap.put(station.getId(), marker);\n }\n }",
"public void setEpochLongitude(double value) {\n this.epochLongitude = value;\n }",
"protected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//====================================================\n\t\t\t\t\t\t\t\t\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\t\t\t\t\t\t\t\t\t//=====================================================\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void setEstimatedTrainLocations() {\n\t\t// TODO: for each train\n\t\tfor (Train t : trains) {\n\t\t\t// calculate the distance traveled since the last tick\n\t\t\tdouble speed = t.currSpeed * 0.488888889; // in yards/second\n\t\t\tdouble elapsedTime = SimClock.getDeltaMs() * 0.001; //in seconds\n\t\t\tdouble distanceTraveled = speed*elapsedTime; //yards\n\t\t\tDefaultBlock block = ((DefaultBlock)blockData.get(t.currentBlock));\n\t\t\tif (distanceTraveled > t.authority) {\n\t\t\t\tdistanceTraveled = t.authority;\n\t\t\t\tt.currSpeed = 0;\n\t\t\t}\n\t\t\telse if (trainRoutes.get(t.trainId).route.size() == 1) {\n\t\t\t\tif (t.distanceTraveledOnBlock + distanceTraveled > block.blockLength/2) {\n\t\t\t\t\tdistanceTraveled = block.blockLength/2 - t.distanceTraveledOnBlock;\n\t\t\t\t\tt.distanceTraveledOnBlock = block.blockLength/2;\n\t\t\t\t\tt.currSpeed = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check if the train has entered a new block\n\t\t\tif (block.occupied == false) {\n\t\t\t\t// it has.\n\t\t\t\tt.currentBlock = trainRoutes.get(t.trainId).route.get(1);\n\t\t\t\tt.distanceTraveledOnBlock = block.blockLength - t.distanceTraveledOnBlock;\n\t\t\t\tt.currSpeed = ((DefaultBlock) blockData.get(t.currentBlock)).speedLimit;\n\t\t\t\tif (t.currSpeed > t.maxSpeed) {\n\t\t\t\t\tt.currSpeed = t.maxSpeed;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// calculate the distance traveled on block\n\t\t\telse if ((t.distanceTraveledOnBlock + distanceTraveled) > block.blockLength) {\n\t\t\t\tt.distanceTraveledOnBlock = block.blockLength;\n\t\t\t}\n\t\t\tt.authority -= distanceTraveled;\n\t\t\tt.currSpeed = trainRoutes.get(t.trainId).speed;\n\t\t\tt.distanceTraveledOnBlock += distanceTraveled;\n\t\t\t\n\t\t}\n\t}",
"public Matrix processSamples_Landmarks(long timer, List<T> landmarks,\n\t\t\tMatrix centralizedRatingMat) {\n\t\t// TODO Auto-generated method stub\n\t\tMatrix mat=centralizedRatingMat.subMatrix(landmarks,landmarks);\n\t\t\n\t\tHashtable<T,ratingCoord<T>> coords = MyConvergeMMMF_bias.getInstance().compute_basicMMMF(landmarks, mat, dim, level);\n\t\t//Iterator<ratingCoord<T>> ier = coords.iterator();\n\t\tIterator<Entry<T, ratingCoord<T>>> pair = coords.entrySet().iterator();\n\n\t\twhile(pair.hasNext()){\n\t\t\t\tEntry<T, ratingCoord<T>> tmp = pair.next();\n\t\t\t\t\n\t\t\t\tthis.ratingCache.put(tmp.getKey(),tmp.getValue());\n\t\t\t\t\n\t\t}\n\t\t//===========================\n\t\treturn mat;\n\t\t\n\t}",
"public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}",
"private void drawMarker(Location location){\n LatLng currentPosition = new LatLng(location.getLatitude(),location.getLongitude());\r\n runlist.add(currentPosition);\r\n\r\n\r\n for(int i = 0; i<runlist.size();i++){\r\n\r\n\r\n\r\n Marker marker = mGoogleMap.addMarker(new MarkerOptions()\r\n .position(runlist.get(i))\r\n .title(\"TRACKING\")\r\n .snippet(\"Real Time Locations\"));\r\n\r\n\r\n\r\n }\r\n\r\n AddLines();\r\n //mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0),13));\r\n mGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(runlist.get(0), 13.9f));\r\n\r\n\r\n }",
"void initWatermarks(Map<String, Long> initialWatermarks);",
"@Override\n public void onLocationChanged(Location location) {\n //update current lacation when the GPS changed\n c = new LatLng(location.getLatitude(), location.getLongitude());\n updateCameraBearing(map, location.getBearing());\n nearestPointIndex = findNearestPoint(c,points2);\n if(nearestPointIndex>0){\n ArrayList p3 = new ArrayList();\n for (int j = nearestPointIndex; j < points2.size(); j++) {\n LatLng point = (LatLng) points2.get(j);\n p3.add(point);\n }\n points2 = p3;\n DrawDots(listResult,points2);\n }\n }",
"public void land(Date currentDate) {\n \tthis.lastTimeLanded = currentDate;\r\n \tthis.passengers.clear();\r\n }",
"void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }",
"private void plottingMarkers(){\r\n if (nameList.size()==0) {\r\n }\r\n else {\r\n for (int i = 0; i < nameList.size(); i++) {\r\n Loc2LatLng = new LatLng(Double.parseDouble(latList.get(i)), Double.parseDouble(lngList.get(i)));\r\n MarkerOptions markerSavedLocations = new MarkerOptions();\r\n markerSavedLocations.title(nameList.get(i));\r\n markerSavedLocations.position(Loc2LatLng);\r\n map.addMarker(markerSavedLocations);\r\n }\r\n }\r\n }",
"public final void updateTimeline()\r\n {\r\n Kml placesKml = myModel.getMyPlaces();\r\n\r\n Feature feature = placesKml.getFeature();\r\n\r\n if (feature instanceof Document)\r\n {\r\n Document doc = (Document)feature;\r\n List<Placemark> timedPoints = New.list();\r\n getTimedPlacemarks(doc.getFeature(), timedPoints);\r\n\r\n myTimelineRegistry.removeLayer(ourKey);\r\n if (!timedPoints.isEmpty())\r\n {\r\n Placemark mark = timedPoints.get(0);\r\n Color color = PlacemarkUtils.getPlacemarkColor(mark);\r\n myTimelineRegistry.addLayer(ourKey, \"My Places\", color, true);\r\n addPointsToTimeline(timedPoints);\r\n }\r\n }\r\n }",
"public void add(Landmark landmark) {\n\t\tlogger.debug(\"Adding new Landmark\");\n\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\n\t\t// Save\n\t\tsession.save(landmark);\n\t}",
"private void initializationMapOfLastDistance(){\r\n Float val = 0.00f;\r\n for(Build b: allBuildings_){\r\n saveLastDistance.put(b.getName(), val);\r\n }\r\n }",
"private void addLandmarkFromJSONMap(int landmarkType, JSONObject mapObj, String landmarkName){\n try{\n JSONArray landmarks = mapObj.getJSONArray(landmarkName);\n for(int i = 0; i<landmarks.length(); i++){\n if(landmarkType==C.LANDMARK_OBSTACLE) {\n JSONObject landmark = landmarks.getJSONObject(i).getJSONObject(\"corners\");\n String[] corners = new String[]{landmark.getString(\"0\"), landmark.getString(\"1\"), landmark.getString(\"2\"), landmark.getString(\"3\")};\n loomoMap.addLandmark(landmarkType,corners);\n } else {\n String id = landmarks.getJSONObject(i).getString(\"name\");\n int x_coordinate = (int) Math.round(landmarks.getJSONObject(i).getDouble(C.X_COORD));\n int y_coordinate = (int) Math.round(landmarks.getJSONObject(i).getDouble(C.Y_COORD));\n float thetha = (float) landmarks.getJSONObject(i).getDouble(C.THETHA);\n loomoMap.addLandmark(landmarkType, id, x_coordinate, y_coordinate, thetha);\n }\n }\n } catch (Exception e) {\n Log.d(TAG, \"No \"+landmarkName+\" landmarks found in JSONMap\");\n }\n }",
"void UpdateMarkers(){\n final Vector3f eye_pos = new Vector3f();\n final Vector3f lookat_pos = new Vector3f();\n Matrix4f.decompseRigidMatrix(m_params.g_ModelViewMatrix, eye_pos, lookat_pos, null);\n\n final float intersectionHeight = g_ocean_param_quadtree.sea_level;\n final float lambda = (intersectionHeight - eye_pos.getY())/(lookat_pos.getY() - eye_pos.getY());\n// const XMVECTOR sea_level_pos = (1.f - lambda) * eye_pos + lambda * lookat_pos;\n final Vector3f sea_level_pos = Vector3f.linear(eye_pos, 1.f - lambda, lookat_pos, lambda, null);\n// const XMVECTOR sea_level_xy = XMVectorSet(XMVectorGetX(sea_level_pos), XMVectorGetZ(sea_level_pos), 0, 0);\n final Vector3f sea_level_xy = new Vector3f(sea_level_pos.x, sea_level_pos.z, 0);\n\n // Update local marker coords, we could need them any time for remote\n for(int x = 0; x != NumMarkersXY; ++x)\n {\n for(int y = 0; y != NumMarkersXY; ++y)\n {\n// XMVECTOR offset = XMVectorSet(2.f * (x - ((NumMarkersXY - 1) / 2)), 2.f * (y - ((NumMarkersXY - 1) / 2)), 0, 0);\n// XMVECTOR newPos = sea_level_xy / kWaterScale + offset;\n float offsetX = 2.f * (x - ((NumMarkersXY - 1) / 2));\n float offsetY = 2.f * (y - ((NumMarkersXY - 1) / 2));\n float newPosX = sea_level_xy.x/kWaterScale + offsetX;\n float newPosY = sea_level_xy.y/kWaterScale + offsetY;\n\n g_local_marker_coords[y * NumMarkersXY + x].x = newPosX;\n g_local_marker_coords[y * NumMarkersXY + x].x = newPosY;\n }\n }\n\n // Do local readback, if requested\n if(g_ocean_simulation_settings.readback_displacements)\n {\n if(g_ReadbackCoord >= 1.f)\n {\n final float coord = g_ReadbackCoord - (g_LastReadbackKickID[0]-g_LastArchivedKickID[0]) * 1.f/ReadbackArchiveInterval;\n GFSDK_WaveWorks.GFSDK_WaveWorks_Simulation_GetArchivedDisplacements(g_hOceanSimulation, coord, g_local_marker_coords, displacements, NumMarkers);\n }\n else\n {\n GFSDK_WaveWorks.GFSDK_WaveWorks_Simulation_GetDisplacements(g_hOceanSimulation, g_local_marker_coords, displacements, NumMarkers);\n }\n\n for(int ix = 0; ix != NumMarkers; ++ix)\n {\n g_local_marker_positions[ix].x = displacements[ix].x + g_local_marker_coords[ix].x;\n g_local_marker_positions[ix].y = displacements[ix].y + g_local_marker_coords[ix].y;\n g_local_marker_positions[ix].z = displacements[ix].z;\n g_local_marker_positions[ix].w = 1.f;\n }\n }\n\n// if(g_bShowRemoteMarkers && NULL != g_pNetworkClient)\n// {\n// g_pNetworkClient->RequestRemoteMarkerPositions(g_remote_marker_coords,NumMarkers);\n// }\n }",
"@Override\n\tpublic void marks() {\n\t\t\n\t}",
"public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }",
"private void updateMarkers()\n {\n if( mPopulateImagesTask != null )\n mPopulateImagesTask.cancel(true);\n\n mPopulateImagesTask = new PopulateBirdImagesTask()\n {\n @Override\n protected void onPostExecute(List<RemoteSighting> remoteSightings) {\n super.onPostExecute(remoteSightings);\n\n if( mSelectedMarker != null ) {\n // refresh\n mSelectedMarker.hideInfoWindow();\n mSelectedMarker.showInfoWindow();\n }\n }\n };\n mPopulateImagesTask.execute(mBirds);\n\n\n // Now let's create the markers\n Marker marker;\n MarkerOptions markerOptions;\n LatLng location;\n boolean isSelectedMarker = false;\n\n mLocationBirdsMap.clear();\n mMarkerBirdsMap.clear();\n\n float maxbirds = 1.0f; // For marker hue\n\n for( RemoteSighting bird: mBirds )\n {\n location = new LatLng(bird.getLat(), bird.getLng());\n\n if( !mLocationBirdsMap.containsKey(location) )\n mLocationBirdsMap.put(location, new ArrayList<RemoteSighting>());\n\n ArrayList<RemoteSighting> birdsAtLocation = mLocationBirdsMap.get(location);\n birdsAtLocation.add(bird);\n\n if( birdsAtLocation.size() > maxbirds )\n maxbirds = birdsAtLocation.size();\n }\n\n for (Map.Entry<LatLng, ArrayList<RemoteSighting>> entry : mLocationBirdsMap.entrySet()) {\n ArrayList<RemoteSighting> birds = (entry.getValue());\n RemoteSighting firstBird = birds.get(0);\n markerOptions = new MarkerOptions().\n position(entry.getKey()).\n alpha( ((birds.size()/maxbirds) * 0.5f) + 0.5f).\n title(firstBird.getLocName()).\n snippet(birds.size() + (birds.size() > 1 ? \" birds\" : \" bird\") );\n\n if (mSelectedBird != null)\n {\n LatLng birdLocation = entry.getKey();\n LatLng selectedBirdLocation = new LatLng(mSelectedBird.getLat(), mSelectedBird.getLng());\n\n if( selectedBirdLocation.equals(birdLocation)) {\n isSelectedMarker = true;\n }\n }\n\n marker = mMap.addMarker(markerOptions);\n\n if( !mMarkerBirdsMap.containsKey(marker) )\n mMarkerBirdsMap.put(marker, entry.getValue());\n\n if( isSelectedMarker ) {\n mSelectedMarker = marker;\n marker.showInfoWindow();\n isSelectedMarker = false;\n }\n }\n\n\n }",
"public List<Landmark> getLandmarks() {\n return Landmarks;\n }",
"public void updateMarkers() {\n\t\tArrayList<Parking> items = getMarkersForLocation();\n\t\tfor (Parking item : items) {\n\t\t\tint id = item.getParkingId();\n\t\t\tParking inHashItem = parkingsArray.get(id);\n\t\t\tparkingsArray.delete(id);\n\t\t\t// if the item already exists, update the position\n\t\t\tif (inHashItem != null) {\n\t\t\t\tLog.d(\"Markers\", \"An old item\");\n\t\t\t\tparkingsArray.put(id, inHashItem); // put it at the end\n\t\t\t} else {\n\t\t\t\tLog.d(\"Markers\", \"A new item\");\n\t\t\t\titem.addMarkerToMap(map);\n\t\t\t\tparkingsArray.put(id, item);\n\t\t\t}\n\t\t}\n\n\t\t// remove extras\n\t\tremoveOldMarkers();\n\t}",
"public void reloadMarkers() {\n this.markers.reload();\n }",
"public void setMark(int neighbour, boolean mark){\n\tedgMark[neighbour] = mark;\n }",
"public void construct(String landmark) {\n for (int i = 0; i < Landmarks.size(); i++) {\n if (Landmarks.get(i).getName().equals(landmark)) {\n Landmarks.get(i).setConstructed(true);\n coins = coins - Landmarks.get(i).getCost();\n }\n }\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tmSensors.resume();\n\t\tLLACoordinate lla = mSensors.getLocation();\n\t\tif(lla!=null){\n\t\t\t_myselfLLA = new LLACoordinate(lla);\n\t\t}\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState){\n super.onCreate(savedInstanceState);\n setContentView(R.layout.landmark_activity);\n\n landmarkIntent = getIntent();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ) {\n checkPermission();\n }\n\n startLocationUpdates();\n SetLandmarks landmarkTask = new SetLandmarks();\n landmarkTask.execute();\n\n layout = (ConstraintLayout) findViewById(R.id.landmark_layout);\n\n recList = (RecyclerView) findViewById(R.id.cardList);\n recList.setHasFixedSize(true);\n LinearLayoutManager llm = new LinearLayoutManager(this);\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n recList.setLayoutManager(llm);\n\n }",
"@Override\n\tpublic void onLocationSensorChanged(LLACoordinate location) {\n\t\t_myselfLLA = new LLACoordinate(location);\n\t\tLog.i(\"debug\", \"my location lat:\" + location.getLatitude() + \" lng:\" + location.getLongitude());\n\t\tif(mSurfaceView!=null){\n\t\t\tmSurfaceView.queueEvent(new Runnable()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tif(mAnnotatedGeometriesGroup!=null && mRadar!=null){\n\t\t\t\t\t\t_mIGeometryList.clear();\n\t\t\t\t\t\tmRadar.removeAll();\n\t\t\t\t\t\tIGeometryVector geometries = metaioSDK.getLoadedGeometries();\n\t\t\t\t\t\tfor (int i=0; i<geometries.size(); i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t metaioSDK.unloadGeometry(geometries.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (String stopInfomation : _taipeiBusStopList) {\n\t\t\t\t\t\t\t//0=index, 1=busStopNumber, 2=Chinese name 3=latitude 4=longitude\n\t\t\t\t\t\t\tString[] split = stopInfomation.split(\",\");\n\t\t\t\t\t\t\tLLACoordinate stop = new LLACoordinate(Double.valueOf(split[3]), Double.valueOf(split[4]), 0.0, 0.0);\n\t\t\t\t\t\t\tdouble distance = _myselfLLA.distanceTo(stop);\n\t\t\t\t\t\t\tif(distance <= _showRange){\n\t\t\t\t\t\t\t\tIGeometry ig = createPOIGeometry(stop);\n\t\t\t\t\t\t\t\tig.setName(stopInfomation+\",\"+String.valueOf((int)distance));\n\t\t\t\t\t\t\t\t_mIGeometryList.add(ig);\n\t\t\t\t\t\t\t\tmAnnotatedGeometriesGroup.addGeometry(ig, stopInfomation+\",\"+String.valueOf((int)distance));\n\t\t\t\t\t\t\t\tmRadar.add(ig);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"public static void setMarker() {\n\t\tfor (Picture p : pictures) {\n\t\t\tif (p.getLon() < 200 && p.getLat() < 200) {\n\t\t\t\tMarker myMarker = mMap.addMarker(\n\t\t\t\t\t\tnew MarkerOptions()\n\t\t\t\t\t\t\t\t.position(new LatLng(p.getLat(), p.getLon()))\n\t\t\t\t\t\t\t\t.visible(true)\n\t\t\t\t\t\t//.icon(BitmapDescriptorFactory.fromResource(R.drawable.ic_brightness_1_black_24dp))\n\t\t\t\t);\n\t\t\t\tmarkers.put(myMarker, p);\n\t\t\t}\n\t\t}\n\t}",
"public void addNextLandMark(double val, Color c) {\n\tthis.landmarkValues.add(val);\n\tthis.landmarkColors.add(c);\n }",
"private void UpdateMap(){\n Log.d(\"data\", lati + \" \" + longi );\n// sydney = new LatLng(lati, longi);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}",
"void onLocationChanged()\n\t{\n\t\tgetLoaderManager().restartLoader(FORECAST_LOADER_ID, null, this);\n\t}",
"public void getSample(T landmark){\n\t\t\n\t}",
"public void setEpochLongitudeDelta(double value) {\n this.epochLongitudeDelta = value;\n }",
"public void setAfter() {\r\n\t\t\tbasemapAfter = new HashMap<Location, SurfaceEntity>(surface.basemap);\r\n\t\t\tsurfaceAfter = new ArrayList<SurfaceFeature>(surface.features);\r\n\t\t\t\r\n\t\t\tbuildingmapAfter = new HashMap<Location, SurfaceEntity>(surface.buildingmap);\r\n\t\t\tbuildingsAfter = new ArrayList<Building>(surface.buildings);\r\n\t\t}",
"private void addMakerToMap() {\n if (mapboxMap != null) {\r\n mapboxMap.removeAnnotations();\r\n if (res.getData().size() > 0) {\r\n for (UserBasicInfo info : res.getData()) {\r\n if (info.getRole().equalsIgnoreCase(\"student\")) {\r\n if (isStudentSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n if (info.getRole().equalsIgnoreCase(\"teacher\")) {\r\n if (isTeacherSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n }\r\n } else {\r\n getMvpView().noRecordFound();\r\n }\r\n }\r\n }",
"private void PopulateCheckpointList()\n {\n checkpoints.add(FindNextCheckpoint(startTile, directions = FindNextDirection(startTile)));\n \n int counter = 0;\n boolean cont = true;\n while (cont)\n {\n int[] currentDirection = FindNextDirection(checkpoints.get(counter).getTile());\n \n // Check if a next direction/checkpoint exists and end after 20 chekpoints(arbitrary).\n if(currentDirection[0] == 2 || counter == 20)\n {\n cont = false;\n }\n else\n {\n checkpoints.add(FindNextCheckpoint(checkpoints.get(counter).getTile(),\n directions = FindNextDirection(checkpoints.get(counter).getTile())));\n }\n counter++;\n }\n }",
"public void setActualTrainLocations(HashMap<String, Integer> trainLocations) {\n\t\t// TODO: for each train\n\t\t\t// calculate the distance traveled on block\n\t\t\t// update the total distance traveled for the train.\n\t}",
"public void setLocation(float[] llpoints, boolean isRadian) {\n this.llpoints = llpoints;\n if (!isRadian) {\n float cv = (float) (Math.PI / 180.0);\n for (int i = 0; i < llpoints.length; i++)\n llpoints[i] *= cv;\n }\n compute();\n }",
"@Override\n protected void onResume() {\n super.onResume();\n if(mvTencentMapView != null) {\n mvTencentMapView.onResume();\n }\n if(!isfist) {\n\n// tencentMap.clearAllOverlays();\n for(Marker item:markerListArticle){\n// item.remove();\n item.setVisible(false);\n }\n for(Marker item:markerListApplyVillage){\n// item.remove();\n item.setVisible(false);\n }\n for(Marker item:markerListBooth){\n// item.remove();\n item.setVisible(false);\n }\n// markerListArticle.clear();\n// markerListApplyVillage.clear();\n// markerListBooth.clear();\n// province1 = null;\n getMapArticle(1);\n initCollectVillageRV();\n// bindListener();\n// initLocation();\n\n\n }\n isfist = false;\n\n\n// getApplyVillage();\n }",
"public void setMarks(int[] newMarks){\n marks = newMarks;\n }",
"@Override\n\tpublic void onLandmarkSelected(Marker landmark) {\n\t}",
"private void loadAddressFromLatches(){\r\n horizontalTileCounter = horizontalTileLatch;\r\n verticalTileCounter = verticalTileLatch;\r\n horizontalNameCounter = horizontalNameLatch; // single bit\r\n verticalNameCounter = verticalNameLatch; // single bit\r\n fineVerticalCounter = fineVerticalLatch;\r\n }",
"private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n }",
"public void run(){\n\n for (int locIdx = begN; locIdx < endN; locIdx++) {\n\n // do mean-shift for profiles at these locations\n\n for (int profileIdx=0; profileIdx<profiles.get(locIdx).size(); profileIdx++) {\n\n // access the detection\n// int profileLength = profiles.get(locIdx).get(profileIdx).length;\n\n // calculate peaks for the ring 'profileIdx'\n ArrayList<Float> currPeaks = extractPeakIdxsList(profiles.get(locIdx).get(profileIdx), startIdx.get(profileIdx), finishIdx.get(locIdx).get(profileIdx));\n\n //if (currPeaks.size()<3) {\n // // it is not a bifurcation according to MS for this ring, don't calculate further, leave empty fields of peakIdx at this location\n // break;\n //}\n //else {\n // add those points\n for (int pp=0; pp<currPeaks.size(); pp++){\n peakIdx.get(locIdx).get(profileIdx).add(pp, currPeaks.get(pp));\n }\n //}\n\n/*\n\t\t\t\tfor (int k=0; k<nrPoints; k++) {\n start[k] = ((float) k / nrPoints) * profileLength;\n }\n\n\t\t\t\tTools.runMS( \tstart,\n \tprofiles.get(locIdx).get(profileIdx),\n \tmaxIter,\n \tepsilon,\n \th,\n\t\t\t\t\t\t\t\tmsFinish);\n*/\n\n /*\n for (int i1=0; i1<nrPoints; i1++) {\n convIdx.get(locIdx).get(profileIdx)[i1] = (float) msFinish[i1];\n }\n*/\n/*\n int inputProfileLength = profiles.get(locIdx).get(profileIdx).length;\n Vector<float[]> cls = Tools.extractClusters1(msFinish, minD, M, inputProfileLength);\n\t\t\t\textractPeakIdx(cls, locIdx, profileIdx); // to extract 3 major ones (if there are three)\n*/\n\n }\n\n }\n\n }",
"public void m2836a(LatLng latLng) {\r\n this.f1761e = latLng;\r\n }",
"public void update( int[] lasers ){\n\t\tPVector positions[] = new PVector[activePointers()];\n\t\t//for (int i = 0; i < activePointers(); i++) {\n\t\tfor (int i = 0; i < pointers.size(); i++) {\n\t\t\tfloat _x = pointers.get(i).x;\n\t\t\tfloat _y = pointers.get(i).y;\n\t\t\t//System.out.println(\"pointer \" + i + \": position:\" + _x + \",\" + _y );\n\t\t\tpositions[i] = new PVector(_x,_y);\n\t\t}\n\t\tupdate( positions, lasers, false); //retransmiting position with no transformation\n\t}",
"@Override\n public void run() {\n LatLng myLoc = new LatLng(myLatitude, myLongitude);\n myMarker.setPosition(myLoc);\n }",
"public void updateLongitude(double longitude) {\n\t\tif (this.minLongitude > longitude) {\n\t\t\tthis.minLongitude = longitude - Plane.SmallestGrain;\n\t\t}\n\t\t\n\t\tif (this.maxLongitude < longitude) {\n\t\t\tthis.maxLongitude = longitude + Plane.SmallestGrain;\n\t\t}\n\t}",
"public void updateLocation()\r\n {\r\n\t\timg.setUserCoordinator(latitude, longitude);\r\n\t\timg.invalidate();\r\n\t}",
"public void edit(Landmark landmark) {\n\t\tlogger.debug(\"Editing existing person\");\n\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\n\t\t// Retrieve existing person via id\n\t\tLandmark existingLandmark = (Landmark) session.get(Landmark.class,\n\t\t\t\tlandmark.getLandmark_id());\n\n\t\t// Assign updated values to this person\n\t\texistingLandmark.setName(landmark.getName());\n\n\t\t// Save updates\n\t\tsession.save(existingLandmark);\n\t}",
"private void initializeOffsets () {\n exampleStartOffsets.clear();\n int window = exampleLength + predictLength;\n for (int i = 0; i < train.size() - window; i++) { exampleStartOffsets.add(i); }\n }",
"private void xxx() {\n LatLng westfieldNJ = new LatLng(40.659, -74.3474);\n mMap.addMarker(new MarkerOptions().position(westfieldNJ).title(\"Westfield, New Jersey\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(westfieldNJ));\n\n }",
"@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}",
"public void refresh() {\n if (mMarkerView != null) {\n mMarkerView.setLatLng(GeoJSONUtils.toLatLng(mCoordinate));\n }\n }",
"public void updateLaps() {\n\t\tint totSegs = (segments.size()-1)/2;\n\t\tif (oldSeg == totSegs && curSeg == 0) {\n\t\t\tif (!cheatedLap) {\n\t\t\t\tlaps++;\n\t\t\t} else cheatedLap = false;\n\t\t} else if (oldSeg == 0 && curSeg == totSegs){\n\t\t\tcheatedLap = true;\n\t\t}\n\t}",
"private void drawMarkers () {\n // Danh dau chang chua di qua\n boolean danhDauChangChuaDiQua = false;\n // Ve tat ca cac vi tri chang tren ban do\n for (int i = 0; i < OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().size(); i++) {\n\n TourTimesheet timesheet = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().get(i);\n // Khoi tao vi tri chang\n LatLng position = new LatLng(timesheet.getmBuildingLocation().latitude, timesheet.getmBuildingLocation().longitude);\n // Thay doi icon vi tri chang\n MapNumberMarkerLayoutBinding markerLayoutBinding = DataBindingUtil.inflate(getLayoutInflater(), R.layout.map_number_marker_layout, null, false);\n // Thay doi so thu tu timesheet\n markerLayoutBinding.number.setText(String.valueOf(i + 1));\n // Thay doi trang thai markup\n // Lay ngay cua tour\n Date tourDate = OnlineManager.getInstance().mTourList.get(tourOrder).getmDate();\n // Kiem tra xem ngay dien ra tour la truoc hay sau hom nay. 0: hom nay, 1: sau, -1: truoc\n int dateEqual = Tour.afterToday(tourDate);\n // Kiem tra xem tour da dien ra chua\n if (dateEqual == -1) {\n // Tour da dien ra, thay doi mau sac markup thanh xam\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n } else if (dateEqual == 1) {\n // Tour chua dien ra, thay doi mau sac markup thanh vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Kiem tra xem chang hien tai la truoc hay sau gio nay. 0: gio nay, 1: gio sau, -1: gio truoc\n int srcStartEqual = Tour.afterCurrentHour(timesheet.getmStartTime());\n int srcEndEqual = Tour.afterCurrentHour(timesheet.getmEndTime());\n if(srcStartEqual == 1){\n // Chang chua di qua\n if (danhDauChangChuaDiQua == true) {\n // Neu la chang sau chang sap toi thi chuyen thanh mau mau vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Neu la chang ke tiep thi giu nguyen mau do\n danhDauChangChuaDiQua = true;\n }\n } else if(srcStartEqual == -1 && srcEndEqual == 1){\n // Chang dang di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP);\n } else{\n // Chang da di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n }\n }\n // Marker google map\n View markerView = markerLayoutBinding.getRoot();\n // Khoi tao marker\n MarkerOptions markerOptions = new MarkerOptions()\n .draggable(false)\n .title(timesheet.getmBuildingName() + '-' + timesheet.getmClassroomName())\n .position(position)\n .icon(BitmapDescriptorFactory.fromBitmap(getMarkerBitmapFromView(markerView)));\n if (timesheet.getmClassroomNote() != null && !timesheet.getmClassroomNote().equals(\"\") && !timesheet.getmClassroomNote().equals(\"null\")) {\n markerOptions.snippet(timesheet.getmClassroomNote());\n }\n mMap.addMarker(markerOptions);\n // add marker to the array list to display on AR Camera\n markerList.add(markerOptions);\n // Goi su kien khi nhan vao tieu de marker\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n // TODO: Chuyen sang man hinh thong tin chang khi nhan vao tieu de chang\n openTimesheetInfo(marker.getTitle());\n }\n });\n }\n }",
"public\n BioterrainMarker() {\n\t\tmarker = new BioterrainMarkerDb();\n\t\tisNew = true;\n }",
"private void markAllAirfields() {\n nations.forEach(this::markAirfields);\n }",
"private void setTrackDescriptionsAndID() {\n\t\t// Compute new definitions for all tracks\n\t\tllahTrackingOps.clearDocuments();\n\t\ttrackId_to_globalId.clear();\n\t\tglobalId_to_track.forEachEntry(( globalID, track ) -> {\n\t\t\ttrack.trackDoc = llahTrackingOps.createDocument(track.predicted.toList());\n\t\t\t// copy global landmarks into track so that in the next iteration the homography will be correct\n\t\t\ttrack.trackDoc.landmarks.reset();\n\t\t\ttrack.trackDoc.landmarks.copyAll(track.globalDoc.landmarks.toList(), ( src, dst ) -> dst.setTo(src));\n\t\t\ttrackId_to_globalId.put(track.trackDoc.documentID, globalID);\n\t\t\treturn true;\n\t\t});\n\t}",
"void renderHotspots() {\n boolean afterCurrent = false;\n boolean hasLastPos = false;\n float lastX = 0.0f;\n float lastY = 0.0f;\n float lastZ = 0.0f;\n \n final float halfWidth = 0.1f / 2;\n final float halfLength = 0.1f / 2;\n final float halfHeight = 0.1f / 2;\n final float eyeHeight = 0.91712f;//1.1f;\n \n // Find pan position offset vector\n if (selectedTimeInterval.getLocationMetadataEntry() == null) {\n return;\n }\n \n if (!dstLocationVectorExists)\n return;\n \n GL11.glLoadIdentity();\n // set up for tracking hotspot screen x,y\n\t\tfloat projectedXYZ[] = new float[3]; \t\t\n\t\tprojectionMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_PROJECTION_MATRIX, projectionMatrix);\n\t\tgetMatrixAsArray(projectionMatrix, projectionArray);\n\t\tviewportMatrix.clear();\n\t\tGL11.glGetInteger(GL11.GL_VIEWPORT, viewportMatrix);\n\t\tviewportArray[0] = viewportMatrix.get(0);\n\t\tviewportArray[1] = viewportMatrix.get(1);\n\t\tviewportArray[2] = viewportMatrix.get(2);\n\t\tviewportArray[3] = viewportMatrix.get(3);\n //System.out.println(\"\"+viewportArray[0] + \" \"+ viewportArray[1]+\" \"+viewportArray[2]+\" \"+viewportArray[3] ); \n\t\tmodelMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_MODELVIEW_MATRIX, modelMatrix);\n\t\tgetMatrixAsArray(modelMatrix, modelArray);\n \n GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); // no texture\n \n for (int i=0; i<roverTrackingList.size()-1; i++) {\n \tRoverTrackingListEntry listEntry = (RoverTrackingListEntry) roverTrackingList.get(i);\n\t\t\tlistEntry.screenX = 0.0f;\n\t\t\tlistEntry.screenY = 0.0f;\n \t\n double da = listEntry.locationMetadataEntry.rover_origin_offset_vector_a + listEntry.siteMetadataEntry.offset_vector_a - currentLocationVectorA;\n double db = listEntry.locationMetadataEntry.rover_origin_offset_vector_b + listEntry.siteMetadataEntry.offset_vector_b - currentLocationVectorB;\n double dc = listEntry.locationMetadataEntry.rover_origin_offset_vector_c + listEntry.siteMetadataEntry.offset_vector_c - currentLocationVectorC;\n \n float x = (float) db;\n float y = (-(float)dc) - eyeHeight;\n float z = - (float) da;\n\n // calculate brightness of point based on number of images visible for location\n float brightness = 0.0f;\n \n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getNumEnabledImages() > 2) {\n \t// track screen x, y of hotspot\n \t\t\tGLU.gluProject(x, y, z, modelArray, projectionArray, viewportArray, projectedXYZ);\n \t\t\tif (projectedXYZ[2] < 1.0f) {\n\t \t\t\tlistEntry.screenX = projectedXYZ[0];\n\t \t\t\t// transform y from opengl screen coords to regular screen coords\n\t \t\t\tlistEntry.screenY = viewportArray[3] - projectedXYZ[1];\n \t\t\t}\n \t\n \t// render hotspot\n GL11.glLoadIdentity();\n GL11.glTranslatef(x, y, z);\n //System.out.println(\"\"+listEntry.screenX+\" \"+listEntry.screenY);\n \n brightness = 0.5f + 0.1f * listEntry.locationListEntry.getNumEnabledImages();\n if (brightness > 1.0f) {\n brightness = 1.0f;\n }\n \n GL11.glBegin(GL11.GL_QUADS); // D draw A Quad\n \n if (listEntry.locationListEntry.getStartLocation().equals(selectedTimeInterval.getStartLocation())) {\n GL11.glColor3f(brightness, 0.0f, brightness); \n }\n else if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n }\n \n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Bottom Left Of The Quad (Top)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Bottom Right Of The Quad (Top)\n\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Top Right Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Top Left Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Bottom)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Bottom)\n\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Front)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Front)\n\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Back)\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Back)\n\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Left)\n\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Right)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Right)\n \n GL11.glEnd(); // Done Drawing The Quads\n\t }\n \n if (hasLastPos && !listEntry.segmentStart) {\n brightness = 0.5f;\n if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n } \n GL11.glLoadIdentity();\n GL11.glBegin(GL11.GL_LINES); \n// GL11.glColor3f(1.0f, 0.0f, 0.0f); \n GL11.glVertex3f(lastX, lastY, lastZ);\n GL11.glVertex3f(x, y, z);\n GL11.glEnd();\n }\n \n lastX = x;\n lastY = y;\n lastZ = z;\n hasLastPos = true;\n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getStartLocation().equals(this.selectedTimeInterval.getStartLocation())) {\n afterCurrent = true;\n }\n }\n }",
"private void updateMapWithLatestDetectedPOIs(List<SKDetectedPOI> detectedPois) {\n List<Integer> detectedIdsList = new ArrayList<Integer>();\n for (SKDetectedPOI detectedPoi : detectedPois) {\n detectedIdsList.add(detectedPoi.getPoiID());\n }\n for (int detectedPoiId : detectedIdsList) {\n if (detectedPoiId == -1) {\n continue;\n }\n if (drawnTrackablePOIs.get(detectedPoiId) == null) {\n drawnTrackablePOIs.put(detectedPoiId, trackablePOIs.get(detectedPoiId));\n drawDetectedPOI(detectedPoiId);\n }\n }\n for (int drawnPoiId : new ArrayList<Integer>(drawnTrackablePOIs.keySet())) {\n if (!detectedIdsList.contains(drawnPoiId)) {\n drawnTrackablePOIs.remove(drawnPoiId);\n mapView.deleteAnnotation(drawnPoiId);\n }\n }\n }",
"public void incrementPoints(){\n nbPointsMap++;\n if(getNbPointsMap()==getNbPointsMapMax()){\n ConclusionPacman conclusion = new ConclusionPacman(stage,true,nbPoints.get(), this);\n }\n }",
"private void loadCrimes(LatLng Loc){\n //create a new instance of parser class. Parser class queries Data.octo.dc.gov for crime data\n mParser = new Parser();\n\n //try and parse data\n try {\n mParser.parse(getResources().getAssets().open(DATA, 0));\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //get the data from the parser and stores in TreeSet\n mCrimesList= mParser.nearestCrimes(Loc.latitude, Loc.longitude, mRadius);\n\n //Loop through and plot crimes\n List<Address> address;\n int i = 1;\n\n //iterate through crimes and querey google to get latitude and longitude of particular addresses\n for(Crime c: mCrimesList){\n try {\n address = mGeocoder.getFromLocationName(c.address ,1,\n mBounds[0], mBounds[1],mBounds[2], mBounds[3]);\n if(address == null || address.size() == 0){\n Log.i(TAG, \"***Crime:\" + c.offense + \" @ \" + c.address + \" NOT PLOTTED\");\n /*Crimes with addresses that can't be found are added to bad crimes list\n to be removed */\n mBadCrimesList.add(c);\n Log.i(TAG, mBadCrimesList.toString());\n if(i<=MAX_CRIMES) {\n continue;\n }else{\n removeBadCrimes();\n return;\n }\n }\n LatLng coor = new LatLng(address.get(0).getLatitude(), address.get(0).getLongitude());\n\n //Create pin\n Marker crime_marker = mMap.addMarker(new MarkerOptions()\n .position(coor));\n\n //this put geofence around crime points. Team decided to comment out to remove clutter\n /*Circle crime_circle = mMap.addCircle(new CircleOptions()\n .center(new LatLng(coor.latitude, coor.longitude))\n .radius(CIRCLE_SIZE)\n .strokeColor(Color.RED)\n .fillColor(RED_COLOR));\n c.circle = crime_circle;*/\n\n\n //crime object gets reference to its own pin\n c.marker = crime_marker;\n if(c.marker == null){\n Log.i(TAG, \"null marker\");\n }\n if(c.circle == null){\n Log.i(TAG, \"null circle\");\n }\n c.Lat = coor.latitude;\n c.Long = coor.longitude;\n\n //start out crime by being invisible\n c.setVisable(false);\n Log.i(TAG, \"Crime:\" + c.offense + \" @ \" + c.address + \" PLOTTED\");\n }catch(IOException e){\n //catch any issue that google throws\n Log.i(TAG, \"I/O EXCEPTION while plotting crime\");\n mBadCrimesList.add(c);\n continue;\n }\n i++;\n if(i > MAX_CRIMES ){\n removeBadCrimes();\n return;\n }\n }\n\n }",
"private void updateMyMarkers(List<MarkerOptions> markers) {\n if(myGoogleMap == null) return;\n\n myGoogleMap.clear();\n LatLngBounds.Builder builder = new LatLngBounds.Builder();\n for (MarkerOptions m : markers) {\n myGoogleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(m.getPosition(), 15), 1000, null);\n myGoogleMap.addMarker(new MarkerOptions()\n .position(m.getPosition())\n .title(m.getTitle())/*.snippet(m.getSnippet())*/.icon(m.getIcon()));\n builder.include(m.getPosition());\n }\n\n LatLngBounds bounds = builder.build();\n int padding = 0; // offset from edges of the map in pixels\n CameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, padding);\n myGoogleMap.animateCamera(cu);\n }",
"public void onScrubGeo(long arg0, long arg1) { }",
"public void mark()\n {\n mark = true;\n }",
"private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }",
"@Override\r\n\t\t\tpublic void onScrubGeo(long arg0, long arg1) {\n\r\n\t\t\t}",
"public void updateFrontKnown() {\n\t\tfrontKnown = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < maxX; i++) {\n\t\t\tfor (int j = 0; j < maxY; j++) {\n\t\t\t\tif (coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK && findAdjacentUnknown(new int[]{i, j}).size() > 0) {\n\t\t\t\t\tfrontKnown.add(new int[]{i,j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void setSeen(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setSeen(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}",
"private void loadMarkers(){\n if (partnerLocs){\n latLngs = dataStorage.getPartnerLatLngList();\n locationNames = dataStorage.getPartnerLocNameList();\n }else{\n String favLatLngFromJson = dataStorage.getLatLngList();\n String favNamesFromJson = dataStorage.getLocNameList();\n\n if(favNamesFromJson != null && favLatLngFromJson != null){\n String[] favNames = new Gson().fromJson(favNamesFromJson, String[].class);\n LatLng[] favLatLng = new Gson().fromJson(favLatLngFromJson, LatLng[].class);\n\n //Convert json to the actual ArrayLists\n latLngs = Arrays.asList(favLatLng);\n latLngs = new ArrayList<LatLng>(latLngs);\n locationNames = Arrays.asList(favNames);\n locationNames = new ArrayList<String>(locationNames);\n }\n }\n\n\n\n\n //Add the markers back onto the map\n for (int i = 0; i < latLngs.size(); i++) {\n LatLng point = latLngs.get(i);\n String name = locationNames.get(i);\n Marker addedMarker = mMap.addMarker(new MarkerOptions().position(new LatLng\n (point.latitude, point.longitude)).title(name));\n if(partnerLocs){\n addedMarker.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE));\n }\n\n if(name.equals(locClicked)){\n markerClicked = addedMarker;\n }\n }\n }",
"public void updateYLoc();",
"public void updateScrambleLocation(LatLng latLng)\n {\n SharedPreferences.Editor editor = sharedPrefs.edit();\n editor.putLong(\"Latitude\", Double.doubleToLongBits(latLng.latitude));\n editor.putLong(\"Longitude\", Double.doubleToLongBits(latLng.longitude));\n editor.commit();\n }",
"private void addCurrentMarker(double lat, double lon) {\n mLatLng = new LatLng(lat, lon);\n marker_inter = map.addMarker(new MarkerViewOptions()\n .position(mLatLng)\n .title(\"Intervention\")\n .snippet(\"Desc inter\")\n .icon(iconUsr));\n run = 1;\n }",
"@Override\n public void onScrubGeo(long arg0, long arg1) {\n }",
"public void updateValues() {\r\n\t\tSystem.out.println(\"LastTime: \" + lastTime);\r\n\t\t// System.out.println(\"Rerouted: \" + restoredLSP.toString());\r\n\t\t// System.out.println(\"Crack rerouted success: \" +\r\n\t\t// reroutedLSP.toString());\r\n\t\tSystem.out.println(\"Number of Crack rerouted success: \"\r\n\t\t\t\t+ reroutedLSP.size());\r\n\t}",
"private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}",
"void setMapChanged();",
"public void updateOnMaskChange() {\n if(maskList != null) {\n int[] displayMaskData = resolveMasks();\n maskRaster.setDataElements(0, 0, imgWidth, imgHeight, displayMaskData);\n maskImage.setData(maskRaster);\n }\n }"
] | [
"0.67875576",
"0.6538378",
"0.6482766",
"0.6458184",
"0.6317998",
"0.62549794",
"0.62532616",
"0.6052111",
"0.6030935",
"0.60007966",
"0.599691",
"0.59584635",
"0.58668226",
"0.57774687",
"0.5746022",
"0.5681231",
"0.5678471",
"0.56772494",
"0.5641742",
"0.56209606",
"0.55370826",
"0.54586554",
"0.54577374",
"0.54265875",
"0.5404149",
"0.54038095",
"0.53985137",
"0.53549963",
"0.53400517",
"0.5338571",
"0.5327653",
"0.53133136",
"0.5310365",
"0.5252381",
"0.5245728",
"0.523653",
"0.52087176",
"0.5201696",
"0.520022",
"0.51999265",
"0.5189998",
"0.5155275",
"0.5151585",
"0.5146813",
"0.5145537",
"0.5138752",
"0.512169",
"0.51171654",
"0.5109539",
"0.5108071",
"0.51014787",
"0.5079461",
"0.50706345",
"0.5069951",
"0.5056851",
"0.5053566",
"0.5039907",
"0.50368077",
"0.5028311",
"0.502072",
"0.50073355",
"0.4986008",
"0.49825904",
"0.4974307",
"0.49710456",
"0.49617708",
"0.49597874",
"0.4950035",
"0.4949142",
"0.49466377",
"0.49459517",
"0.49383226",
"0.49356872",
"0.49325064",
"0.49310446",
"0.49306008",
"0.4929686",
"0.49289808",
"0.49279803",
"0.4922691",
"0.49139813",
"0.49029273",
"0.48912102",
"0.4880805",
"0.48738804",
"0.48716664",
"0.4864546",
"0.48577976",
"0.48509422",
"0.4850607",
"0.4847075",
"0.48452434",
"0.48441866",
"0.4837881",
"0.4830466",
"0.48258433",
"0.48229736",
"0.48222464",
"0.4820516",
"0.4817587"
] | 0.7587671 | 0 |
send data request message to the core node | protected void cb(CBResult ncResult, Set<NodesPair> nps,
String errorString) {
long timer=System.currentTimeMillis();
if (nps != null && nps.size() > 0) {
System.out
.println("\n==================\n Alive No. of landmarks: "
+ nps.size()
+ "\n==================\n");
Iterator<NodesPair> NP = nps.iterator();
while (NP.hasNext()) {
NodesPair tmp = NP.next();
if (tmp != null && tmp.rtt >= 0) {
AddressIF peer = (AddressIF)tmp.endNode;
//====================================================
if (!ncManager.pendingLatency.containsKey(peer)) {
ncManager.pendingLatency.put(peer,
new RemoteState<AddressIF>(peer));
}
ncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);
//=====================================================
if (!pendingHSHLandmarks.containsKey(Timer)
|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {
continue;
}
int index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks
.indexOf(peer);
if (index < 0) {
continue;
} else {
// found the element, and it is smaller
// than
// rank, i.e., it is closer to the
// target
aliveLandmarks.add(peer);
continue;
}
} else {
// wrong measurements
}
}
} else {
// empty
// all nodes fail, so there are no alive nodes
if (pendingHSHLandmarks.containsKey(Timer)) {
pendingHSHLandmarks.get(Timer).clear();
pendingHSHLandmarks.remove(Timer);
}
}
// some landmarks are offline, we clear records and
// start
if (pendingHSHLandmarks.containsKey(Timer)) {
if (aliveLandmarks.size() < 0.8 * expectedLandmarks) {
pendingHSHLandmarks.get(Timer).clear();
pendingHSHLandmarks.remove(Timer);
} else {
// the landmarks are healthy, so we can sleep
// awhile
// TODO: remove dead landmarks, and resize the
// landmarks
pendingHSHLandmarks.get(Timer).IndexOfLandmarks
.clear();
pendingHSHLandmarks.get(Timer).IndexOfLandmarks
.addAll(aliveLandmarks);
// pendingHSHLandmarks.get(Timer).readyForUpdate=false;
final Set<AddressIF> nodes = new HashSet<AddressIF>(
1);
nodes
.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);
pendingHSHLandmarks.get(Timer).readyForUpdate = true;
//update the rtts
updateRTTs(Timer.longValue(),nodes, new
CB1<String>(){ protected void cb(CBResult
ncResult, String errorString){ switch
(ncResult.state) { case OK: {
System.out.println("$: Update completed");
System.out.println();
if(errorString.length()<=0){
pendingHSHLandmarks
.get(Timer).readyForUpdate=true; }
break; } case ERROR: case TIMEOUT: { break; }
} nodes.clear(); } });
return;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void requestData();",
"public void startData()\n\t\t\t{\n\t\t\t\tsend(\"<data>\", false);\n\t\t\t}",
"public void sendData(String data) {// send data\n\t\tthis.data = data;\n\t\tthis.start();// spin up a new thread to send data\n\t}",
"private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }",
"public void sendRequest(){\n fileServer.sendMessage(this.packet,new FileNode(ip,port));\n }",
"void sendData(String request) throws IOException {\n if (mmDevice == null) {\n Log.d(TAG, \"No device set\");\n }\n\n Log.d(TAG, \"Request is \" + request);\n if (mmOutputStream != null){\n mmOutputStream.write(request.getBytes(Charset.forName(\"UTF-8\")));\n }\n\n if (false && request.contains(\"travel\")) {\n closeBT();\n openBT();\n }\n }",
"private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }",
"public void send(Object data) {\n\t\t//do nothing - override to do something\n\t}",
"private void sendMsg()\n {\n try {\n spauldingApp.println(\"AckRequest.sendMsg() - sending request to nodeID= \" + node.getNodeID() + \" ...\");\n this.nbrTransmits++;\n //spauldingApp.eventLogger.writeMsgSentPing(fetchReqMsg);\n spauldingApp.getMoteIF().send(node.getNodeID(), requestMsg);\n } catch (Exception e) {\n spauldingApp.println(\"ERROR: Can't send message: \" + e);\n e.printStackTrace();\n }\n }",
"private void data(Messenger replyTo, int encoderId, Bundle data) {\n\n // obtain new message\n Message message = obtainMessage(Geotracer.MESSAGE_TYPE_DATA, encoderId, 0);\n message.setData(data);\n\n // send response\n send(replyTo, message);\n }",
"@ReactMethod\n public void send(ReadableArray data) {\n byte[] payload = new byte[data.size()];\n for (int i = 0; i < data.size(); i++) {\n payload[i] = (byte)data.getInt(i);\n }\n\n long maxSize = chirpConnect.maxPayloadLength();\n if (maxSize < payload.length) {\n onError(context, \"Invalid payload\");\n return;\n }\n ChirpError error = chirpConnect.send(payload);\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n }\n }",
"SendToDataLayerThread(String p, String msg) {\n path = p;\n message = msg;\n }",
"public void sendMessage(DeployableNode node, byte[] data)\n {\n try{\n Protos.FrameworkMessage message = Protos.FrameworkMessage.newBuilder()\n .setTaskId(node.getTask().getTaskInfo().getTaskId())\n .setData(ByteString.copyFrom( data ) )\n .build();\n\n this.scheduler.sendFrameworkMessage( node, message );\n }catch (Exception e)\n {\n LOGGER.error( \"Caught exception in sendMessage: \"+e);\n e.printStackTrace();\n }\n }",
"private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}",
"public void sendData(String data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.getBytes().length + 10);\n\t\tbuf.put(data.getBytes());\n\t\tbuf.put((byte)0x00);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}",
"private void ipcSend(JSONObject data) {\n JSONObject json = data;\n try {\n json.put(IPC_MESSAGE_APPID, mAppId);\n\n if (mIpcChannel != null) {\n log.e(\"ipcSend:[\" + json.toString() + \"]\");\n\n mIpcChannel.send(json.toString());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void sendData(byte[] data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.length + 10);\n\t\tbuf.put(data);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}",
"private void sendDataToQueue(byte[] data){\n\t\t//*****************************************\n\t\t//Se possuir o Prefixo de Comando Interno, então envia o Comando para a Fila de Comandos Internos do Core\n\t\t// Do contrário envia o Comando para a Fila de Dados a Serem enviados pelo BluetootSenderWorker ao Carro\n\t\tif(new String(data).contains(SystemProperties.COMANDO_INTERNO_PREFIXO)){\n\t\t\tthis.systemCore.addDataToInternalCommandQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Comando enviado a Fila de comandos Internos do Dispositivo Android...\");\n\t\t}else{\n\t\t\tthis.systemCore.addDataToCarControlQueue(data);\n\t\t\tthis.sendMessageToPrompt(\"Controle enviado a Fila de dados a serem enviados ao Carro...\");\n\t\t}\n\t}",
"private void sendData() throws DataProcessingException, IOException {\n Data cepstrum = null;\n do {\n cepstrum = frontend.getData();\n if (cepstrum != null) {\n if (!inUtterance) {\n if (cepstrum instanceof DataStartSignal) {\n inUtterance = true;\n dataWriter.writeDouble(Double.MAX_VALUE);\n dataWriter.flush();\n } else {\n throw new IllegalStateException\n (\"No DataStartSignal read\");\n }\n } else {\n if (cepstrum instanceof DoubleData) {\n // send the cepstrum data\n double[] data = ((DoubleData) cepstrum).getValues();\n for (double val : data) {\n dataWriter.writeDouble(val);\n }\n } else if (cepstrum instanceof DataEndSignal) {\n // send a DataEndSignal\n dataWriter.writeDouble(Double.MIN_VALUE);\n inUtterance = false;\n } else if (cepstrum instanceof DataStartSignal) {\n throw new IllegalStateException\n (\"Too many DataStartSignals.\");\n }\n dataWriter.flush();\n }\n }\n } while (cepstrum != null);\n }",
"public boolean sendData(String data, String prefix) throws IOException;",
"protected void sendDataToRobot(byte[] data) {\n\t\thandler.sendData(data);\n\t}",
"void sendData() throws IOException\n\t{\n\t}",
"public void sendRemainData();",
"@Override\n\tpublic void sendData(int type, byte[] data) {\n\t\t\n\t}",
"public boolean send(NetData data)\n {\n writer.println(data.toString());\n xMessenger.miniMessege(\">>>\"+ data.toString());\n return true;\n }",
"@Override\n public void channelRead0(ChannelHandlerContext ctx, String request) throws Exception {\n final JsonObject json = (JsonObject) parser.parse(request);\n if(json.has(\"operation\") && ((json.get(\"operation\").getAsString()).equals(\"data\"))) {\n final DataToProcess obj = GSON.fromJson(json, DataToProcess.class);\n QueuerManager.getInstance().pushPacket(ctx.channel().id().asShortText(), obj);\n// System.out.println(\"REC Data Received \" + ctx.channel().id().asShortText());\n }\n else {\n// System.out.println(\"REC hello packet\");\n }\n }",
"@Override\n\tpublic void sendData(CharSequence data) {\n\t\t\n\t}",
"public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }",
"public String sendDataToChildren(byte[] data) throws RemoteException;",
"private void sendRequest( String msg ){ \r\n\r\n\t\tRequest message = new Request(); // construction of Request object\r\n\t\tmessage.c = c_id;\r\n\t\tmessage.s = seq_number;\r\n\t\tmessage.op = msg;\r\n\t\t\r\n\t\tString str_msg = message.toString(); //generate string message\r\n\t\tdisplayArea.append( \"\\nCLI\"+c_id+\" Sending packet containing: \" + str_msg + \"\\n\" );\r\n\t\t\t\t\r\n\t\tbyte data[] = str_msg.getBytes(); // convert to bytes\r\n\t\t \r\n\t\ttry{\t\t\t\t\t\t\t\t\t\r\n\t\t\tDatagramPacket sendPacket = new DatagramPacket( data, data.length, InetAddress.getLocalHost(), serverPort );\r\n\t\t\tsocket.send( sendPacket ); // send packet\r\n\t\t\tdisplayArea.append( \"Packet sent\\n\" );\r\n\t\t\tdisplayArea.setCaretPosition(\r\n\t\t\tdisplayArea.getText().length() );\r\n\t\t\tseq_number++; //increment seq_number\r\n\t\t}\r\n\t\tcatch ( IOException ioException )\r\n\t\t{\r\n\t\t\tdisplayMessage( ioException.toString() + \"\\n\" );\r\n\t\t\tioException.printStackTrace();\r\n\t\t} // end catch\r\n\t\t\r\n\t}",
"private void wrapGuiDataRequest(JSONObject msg)\n\t{\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\n\t\tJSONObject data = (JSONObject) msg.get(\"data\");\n\t\tmap.put(\"data\", data);\n\t\tmap.put(\"msgId\", Server.ServerQueueIds.REQ_MSG_ID);\n\n\t\tJSONObject req = new JSONObject(map);\n\t\tserver.putMsgOnServerQueue(req);\n\t}",
"public void dataSent(LLRPDataSentEvent event);",
"public DataMessage(final Object data){\n\t\tthis.data=data;\n\t}",
"private void doRequest() {\n\n try {\n JsonObject request = new JsonObject()\n .put(\"action\", Math.random() < 0.5 ? \"w\" : \"r\")\n .put(\"timeOfRequest\", System.currentTimeMillis());\n\n if (request.getString(\"action\") == \"w\") {\n request.put(\"data\", new JsonObject()\n .put(\"key\", \"value\")\n );\n logger.debug(\"requesting write: \" + request.toString());\n eb.send(\"storage-write-address\", request, new DeliveryOptions().setSendTimeout(1000), this);\n } else {\n Random random = new Random();\n List<String> keys = new ArrayList<String>(map.keySet());\n String randomKey = keys.get(random.nextInt(keys.size()));\n request.put(\"id\", randomKey);\n logger.debug(\"waiting for read: \" + request.toString());\n eb.send(\"storage-read-address\", request, new DeliveryOptions().setSendTimeout(1000), this);\n }\n } catch (Exception e) {\n logger.warn(\"Error\");\n makeRequest();\n }\n\n }",
"public void send( String data ) {\n SendRunnable sendRunnable = new SendRunnable( data );\n Thread sendThread = new Thread( sendRunnable );\n sendThread.start();\n }",
"public void postData()\n\t{\n\t\tnew NetworkingTask().execute(message);\n\t}",
"private void requestData() {\n Jc11x5Factory.getInstance().getJobPriceList(mHandler);\n }",
"public void send(Opcode opcode, Serializable datum);",
"public abstract void sendData(Float data, int dataType);",
"private static void sendDataMessage() {\r\n\t\tSystem.out.println(\"CLIENT: \" + \" \" + \"DataMessage sent.\");\r\n\t\t\r\n\t\tbyte[] blockNumberAsByteArray = helper.intToByteArray(blockNumberSending);\r\n\t\tsplitUserInput = helper.divideArray(userInputByteArray);\r\n\r\n\t\tsendData = message.dataMessage(blockNumberAsByteArray, splitUserInput[sendingPackageNumber]);\r\n\t\tsendingPackageNumber++;\r\n\t\tblockNumberSending++; // blocknumber that is given to the next message to be transmitted\r\n\r\n\t\t// trims the message (removes empty bytes), so the last message can be detected\r\n\t\ttrimmedSendData = helper.trim(sendData);\r\n\r\n\t\tsendDataMessage = new DatagramPacket(trimmedSendData, trimmedSendData.length, ipAddress, SERVER_PORT);\r\n\t\ttry {\r\n\t\t\tclientSocket.send(sendDataMessage);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tackNeeded = true;\r\n\r\n\t\tif (trimmedSendData.length < 516) {\r\n\t\t\tlastPackage = true;\r\n\t\t}\r\n\t}",
"public void putData(int idData, String data) throws Exception {\n ArrayList<Node> nodes = this.master.getAllDataNode();\n if(!nodes.isEmpty()){\n System.out.println(\"List of registered nodes:\");\n for(int i=0; i<nodes.size(); i++) {\n System.out.println(i + \". \" + nodes.get(i).getHost() + \": \" + nodes.get(i).getPort());\n }\n System.out.println(\"Enter a node id from the list above to put data\");\n int input = scanner.nextInt();\n \n Node selectedNode = nodes.get(input);\n\n // Open up a socket on the selected DataNode\n this.openSocket(selectedNode.getPort(), \"putData/\"+idData+ \"/\"+ data);\n }\n else{\n System.out.println(\"No registered DataNode\");\n }\n }",
"@Override\r\n public void transmitData(IOMSG msg,\r\n ClientContext clientContext, int clientNum) throws Exception\r\n {\r\n // get context handled by server\r\n ServerContext sContext = (ServerContext) getContext();\r\n\r\n if (clientContext != null)\r\n {\r\n clientContext.setIOMSG(msg);\r\n }\r\n // update the clients\r\n messageQueue.appendText(\"Updating client contexts...\\n\");\r\n sContext.updateClients();\r\n // update server message queue\r\n messageQueue.appendText(\"Transmitting IO Message: \"\r\n + msg.toString() + \"\\n\");\r\n switch (msg)\r\n {\r\n case UPDATE_INITIAL_CONTEXT:\r\n getConnection().send(\r\n clientContext, clientNum);\r\n break;\r\n case ROLL:\r\n case MOVE:\r\n case RELAY_CONTEXT:\r\n getConnection().send(\r\n clientContext, clientNum);\r\n break;\r\n }\r\n }",
"public void getData(int idData) throws Exception {\n Node dataNode = this.master.getOneDataNode();\n if(dataNode != null){\n System.out.println(\"Get from DataNode on port \" + dataNode.getPort());\n this.openSocket(dataNode.getPort(), \"getData/\"+idData);\n }\n else {\n System.out.println(\"No registered DataNode\");\n }\n }",
"public boolean sendData(String data) throws IOException;",
"private void recieveData() throws IOException, InterruptedException {\n String senderIP= JOptionPane.showInputDialog(WED_ZERO.lang.getInstruct().get(1)[17]);\n if(senderIP==null) {\n ERROR.ERROR_359(Launch.frame);\n return;\n }\n JOptionPane.showMessageDialog(Launch.frame, WED_ZERO.lang.getInstruct().get(1)[18]);\n Networking net=new Networking(true);\n net.setIPAddress(senderIP);\n String to=net.initClient();\n int res = JOptionPane.showConfirmDialog(null, WED_ZERO.lang.getInstruct().get(1)[19]+\" \"\n +to+\".\", WED_ZERO.lang.getInstruct().get(1)[12],\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); \n if(res==JOptionPane.NO_OPTION||res==JOptionPane.CANCEL_OPTION) {\n return;\n }\n Map<Integer, ArrayList<String>> data=new HashMap<Integer, ArrayList<String>>();\n ArrayList<String> folderName=new ArrayList();\n net.transferData_RECIEVE(folderName, data);\n this.processNewData(data, folderName);\n \n }",
"static public void startSending(String add,int port,byte[] data,int mode){\n }",
"private void getData() {\n\n //Adding the method to the queue by calling the method getDataFromServer\n requestQueue.add(getDataFromServer(pos));\n\n }",
"public void sendData(byte[] data) {\r\n\t\t//send packet\r\n\t\ttry {\r\n\t\t\tout.write(data);\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void sendData(String data, int numCapteur);",
"private void sendRequest(Action action) {\n ACLMessage request = new ACLMessage(ACLMessage.REQUEST);\n request.setLanguage(new SLCodec().getName());\n request.setOntology(MobilityOntology.getInstance().getName());\n try {\n getContentManager().fillContent(request, action);\n request.addReceiver(action.getActor());\n send(request);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private void sendDataMsgToClient(String msg) {\n if (dataConnection == null || dataConnection.isClosed()) {\n sendMsgToClient(\"425 No data connection was established\");\n debugOutput(\"Cannot send message, because no data connection is established\");\n } else {\n dataOutWriter.print(msg + '\\r' + '\\n');\n }\n\n }",
"public void send(byte[] data) {\n final Payload payload = new Payload(OPCODE_BINARY, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n }).start();\n }",
"void getDataFromServer();",
"void sendRequest(String message);",
"public int sendData(String command) throws IOException\n {\n return sendCommandWithID(null, command, null);\n }",
"protected final boolean send(final Object data) {\n\t\t// enviamos los datos\n\t\treturn this.send(data, null);\n\t}",
"public void sendDataToESP(String data){\n\n\n URL remoteurl = null;\n String baseurl = \"http://\"+IpAddress+\"/\";\n String urlString = baseurl + data;\n System.out.println(urlString);\n try {\n remoteurl = new URL(urlString);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n new AutoActivity.pingit().execute(remoteurl);\n }",
"public static void testIBMMQSendData(){\n\n MQParam param = new MQParam();\n param.setHost(\"10.86.92.194\");\n param.setPort(30099);\n param.setCcsid(1208);\n param.setChannel(\"SVRCONN_GW_OUT\");\n param.setQueueManager(\"ESB_OUT\");\n param.setQueueName(\"EIS.QUEUE.REQUEST.OUT.GCDCHZWMES\");\n param.setUserId(\"mqm\");\n param.setPassword(\"mqm\");\n new Thread(new IBMReceiverThread(param)).run();\n }",
"void sendJson(Object data);",
"private void sendData(String data) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Sending data: '\" + data + \"'\");\n\n\t\t\t\t// open the streams and send the \"y\" character\n\t\t\t\toutput = serialPort.getOutputStream();\n\t\t\t\toutput.write(data.getBytes());\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t}",
"TransferInitiateResponse initiateConsumerRequest(DataRequest dataRequest);",
"@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }",
"public static void sendData(String message) {\n try // send object to server\n {\n output.writeObject(message);\n output.flush(); // flush data to output\n displayMessage(\"\\nSend to Server:\");\n displayMessage(\"\\n\" + message);\n } // end try\n catch (IOException ioException) {\n displayArea.append(\"\\nError writing object\");\n } // end catch\n }",
"private void sendRequest() {\n\t\tloading = ProgressDialog.show(this, \"Loading\", \"Please wait...\");\n\n\t\tUri.Builder uri = new Uri.Builder();\n\t\turi.authority(DatabaseContract.PROVIDER_NAME);\n\t\turi.path(Integer.toString(Constants.LOADREQUESTSCMD));\n\t\turi.scheme(\"content\");\n\n\t\tIntent intent = new Intent(this, MyService.class);\n\t\tintent.putExtra(\"ACTION\", \"QUERY\");\n\t\tintent.setData(uri.build());\n\n\t\trequestid = new Date().getTime();\n\t\tintent.putExtra(\"requestid\", requestid);\n\t\tstartService(intent);\n\t}",
"private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }",
"void sendData(String msg) throws IOException\n {\n if ( msg.length() == 0 ) return;\n//\n msg += \"\\n\";\n// Log.d(msg, msg);\n if (outputStream != null)\n outputStream.write(msg.getBytes());\n// myLabel.setText(\"Data Sent\");\n// myTextbox.setText(\" \");\n }",
"public void send(final byte[] data) {\n\t\tsend = new Thread(\"Send\") {\n\t\t\t// anaonymous class prevents us from making new class that implemtents Runnable\n\t\t\tpublic void run(){\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length, ip, port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t};\n\t\tsend.start();\n\t}",
"@Override\n public void onData(SocketIOClient client, Message data, AckRequest ackRequest) {\n data = new Message(\"hello i'm server\");\n //yuyuenamespace.getBroadcastOperations().sendEvent(\"message\", data);\n }",
"default void sendBinary(byte[] data) {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n sendBinary(buffer);\n }",
"public abstract void SendData(int sock, String Data) throws LowLinkException, TransportLayerException, CommunicationException;",
"@Override\n public void send(String key, String data) throws IOException {\n\n }",
"public abstract void send(String data, String toAddress);",
"private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}",
"public void sendRequest() {\r\n\t\t\r\n\t\tclient.join(this, isHost, gameCode, playerName, playerNumber);\r\n\t\t\r\n\t}",
"public void sendRequest(Pdu packet);",
"public void sendmsg(Message msg){\n try {\n oos.writeObject(new Datapacket(1, null, msg,null, null));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public abstract void run(Data data, Socket socket);",
"@Override\r\n public void handleData(Serializable data)\r\n {\r\n try\r\n {\r\n // get the client context\r\n clientContext = (TwoPlayerClientContext) data;\r\n messageQueue.appendText(\r\n \"Received IO Message: \" + clientContext.getIOMSG().toString());\r\n messageQueue.appendText(clientContext.getIOMSG()\r\n .equals(IOMSG.QUERY_INITIAL_CONTEXT) ? \"\\n\"\r\n : \" from \" + clientContext.getClientID() + \"\\n\");\r\n messageQueue.appendText(\"Server received actions: \"\r\n + clientContext.toString() + \"\\n\\n\");\r\n switch (clientContext.getIOMSG())\r\n {\r\n case QUERY_INITIAL_CONTEXT:\r\n transmitData(IOMSG.UPDATE_INITIAL_CONTEXT,\r\n serverContext.createClientContext(true),\r\n serverContext.getNumClients() - 1);\r\n break;\r\n case RELAY_CONTEXT:\r\n processAction(clientContext, \"Updated client context.\");\r\n break;\r\n case ROLL:\r\n processAction(clientContext, clientContext.getSelectedActor() + \" rolled a \"\r\n + clientContext.getDie().toString() + \"!\");\r\n break;\r\n case MOVE:\r\n processAction(clientContext, clientContext.getSelectedActor() + \" moved!\");\r\n break;\r\n default:\r\n break;\r\n }\r\n } catch (Exception ex)\r\n {\r\n Logger.getLogger(EpicDuelsServerController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }",
"public int sendDataPacket()\n{\n \n return(0);\n\n}",
"public void sendData(byte[] data) {\n\t\tDatagramPacket packet = new DatagramPacket(data, data.length, ipAddress, serverPort);\n\n\t\ttry {\n\t\t\tsocket.send(packet);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void send_data(int curr_portNo, String data_send) {\n\t\ttry {\n\t\t\tSocket baseSocket = new Socket(Content_Provider.ipAdd, curr_portNo);\n\t\t\tPrintWriter toPeer = new PrintWriter(new BufferedWriter(\n\t\t\t\t\tnew OutputStreamWriter(baseSocket.getOutputStream())), true);\n\t\t\ttoPeer.println(data_send);\n\t\t\tbaseSocket.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public abstract boolean send(byte[] data);",
"void send(ByteBuffer data) throws CCommException, IllegalStateException;",
"private String requesttosend() throws IOException {\n\t\tsender.sendMsg(Constants.REQSEND);\r\n\t\t//等待接收的返回状态\r\n\t\treturn sender.getMsg();\r\n\t}",
"public void request() {\n }",
"private void openSocket(int port, String request) throws Exception {\n Socket socket = new Socket(InetAddress.getByName(\"localhost\"), port);\n ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());\n oos.writeObject(request);\n ObjectInputStream ois = new ObjectInputStream(socket.getInputStream()); \n String response = (String) ois.readObject(); \n System.out.println(\"Response from DataNode: \" + response);\n socket.close();\n }",
"public void send() {\n\t}",
"void send();",
"void send(SftpDatagram head,byte[] data){\r\n\t\tdata_send = data;\r\n\t\t//first send the first one\r\n\t\ttotal_datagrams = 1;\r\n\t\tcovered_datagrams++;\r\n\t\thead.send_datagram();\r\n\t\tput_and_set_timer(head);\r\n\t\t//sending\r\n\t\tif(data_send != null){\r\n\t\t\tlong size = data_send.length;\r\n\t\t\tif(size != 0)\r\n\t\t\t\ttotal_datagrams = (int)((size+BLOCK_SIZE-1) / BLOCK_SIZE);\r\n\t\t}\r\n\t\t//check sendings(if not small mode)\r\n\t\tcheck_and_send();\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\t\t\tuploadMsg(fUerInfo);\n\t\t\t\t\t}",
"public void infoServiceRequest(String requestType, String param){\r\n \r\n InetAddress destAddr = null;\r\n String[] nodeInfo = null;\r\n String ip = this.getPeerIP().split(\":\")[0].substring(2);\r\n try {\r\n destAddr = InetAddress.getByName(ip);\r\n } catch (UnknownHostException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n int destPort = Integer.parseInt(managerInfoServicePort);\r\n \r\n DataOutputStream output;\r\n DataInputStream input;\r\n \r\n Socket sock = null;\r\n boolean connected = false;\r\n while (!connected) {\r\n try {\r\n sock = new Socket(destAddr, destPort);\r\n connected = true;\r\n } catch (IOException ex) {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException ex1) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex1), \"severe\");\r\n }\r\n }\r\n }\r\n try {\r\n output = new DataOutputStream(sock.getOutputStream());\r\n input = new DataInputStream(sock.getInputStream()); \r\n \r\n if(requestType.equals(\"UPDATE\")){\r\n output.writeUTF(requestType+\"-LOCAL\");\r\n output.flush();\r\n String infoServiceList = input.readUTF();\r\n infoSys.updateInfo(infoServiceList);\r\n }\r\n else if(requestType.equals(\"POISON\")){\r\n output.writeUTF(requestType+\"-LOCAL-\"+param);\r\n output.flush();\r\n infoSys.removeInfo(param);\r\n }\r\n else if(requestType.equals(\"ADD\")){\r\n output.writeUTF(requestType+\"-LOCAL-\"+param);\r\n output.flush();\r\n String infoServiceList = input.readUTF();\r\n //update local information service list\r\n infoSys.updateInfo(infoServiceList);\r\n }\r\n else if(requestType.equals(\"CPT-UPDATE\")){\r\n output.writeUTF(requestType);\r\n output.flush();\r\n String cptNode = input.readUTF();\r\n String[] cptNodes = cptNode.split(\", \");\r\n List singleCptList = new ArrayList<String>();\r\n for(int i = 0 ; i < cptNodes.length; ++i){\r\n singleCptList.add(cptNodes[i].substring(1,cptNodes[i].indexOf(\"]\")));\r\n }\r\n updateSubscriberList(\"CPT\",singleCptList); \r\n }\r\n else if(requestType.equals(\"CPT-DELETE\")){\r\n output.writeUTF(requestType+\"-\"+param);\r\n output.flush();\r\n subscriberList.get(\"CPT\").remove(param);\r\n }\r\n else if(requestType.equals(\"REQ-UPDATE\")){\r\n output.writeUTF(requestType);\r\n output.flush();\r\n String reqNode = input.readUTF();\r\n String[] reqNodes = reqNode.split(\", \");\r\n List reqList = new ArrayList<String>();\r\n for(int i = 0 ; i < reqNodes.length; ++i){\r\n reqList.add(reqNodes[i].substring(1,reqNodes[i].indexOf(\"]\")));\r\n }\r\n updateSubscriberList(\"REQ\",reqList); \r\n }\r\n else if(requestType.equals(\"REQ-DELETE\")){\r\n output.writeUTF(requestType+\"-\"+param);\r\n output.flush();\r\n subscriberList.get(\"REQ\").remove(param);\r\n }\r\n output.close();\r\n input.close();\r\n sock.close();\r\n } catch (IOException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n }",
"void writeData(String messageToBeSent) {\n\n try {\n if (clientSocket != null) {\n outputStream = clientSocket.getOutputStream();\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);\n objectOutputStream.writeObject(messageToBeSent);\n outputStream.flush();\n }\n\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Artifact configurations and test cases data sent to the synapse agent successfully\");\n }\n } catch (IOException e) {\n getLog().error(\"Error while sending deployable data to the synapse agent \", e);\n }\n }",
"public void request(Object content) {\n\t\t\n\t\tif( isInitiator() && (getState() == RequestProtocolState.NOT_STARTED) ){\n\t\t\tsendMessage(content, Performative.REQUEST, getParticipants().get(0));\n\t\t\tsetState(RequestProtocolState.WAITING_ANSWER);\n\t\t}\n\t\telse if( isParticipant() ){\n\t\t\tthis.logger.log(Level.SEVERE, Locale.getString(\"FipaRequestProtocol.0\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tthis.logger.log(Level.SEVERE, Locale.getString(\"FipaRequestProtocol.1\")); //$NON-NLS-1$\n\t\t}\n\t}",
"private void sendRequest(String reqmsg) throws MqttException {\n MqttMessage message = new MqttMessage();\n message.setPayload(reqmsg.getBytes());\n middleware.publish(TOPIC, message);\n }",
"private void sendData(String name, String xCor, String yCor) {\n\t\tint priority = _priorityCh.getSelectedIndex() + 1;\n\t\tdouble xCorD = Double.parseDouble(xCor);\n\t\tdouble yCorD = Double.parseDouble(yCor);\n\n\t\tif (!_clientControl.ifConnect()) {\n\t\t\t_missionTa.append(\"Server not found\\n\\n\");\n\t\t\t_ls.writeLog(\"Server not found\\n\\n\");\n\t\t} else {// Write data to server\n\t\t\t_clientControl.writeToServer(Status.cordinates, priority, xCorD, yCorD);\n\t\t\t// Display to the text area\n\t\t\tif (_clientControl.readIntFromServer() == 1) {\n\t\t\t\t_missionTa.append(\"Id Code: \" + _clientControl.readIntFromServer() + \"\\n\");\n\t\t\t\t_missionTa.append(\"Mission nearest coordinates: \" + _clientControl.readDblFromServer() + \", \"\n\t\t\t\t\t\t+ _clientControl.readDblFromServer() + \"\\n\");\n\n\t\t\t\t_missionTa.append(name + \" have suucssed \\n\");\n\t\t\t\t_ls.writeLog(\"You have suucssed \\n\");\n\t\t\t} else {\n\t\t\t\t_missionTa.append(\"SQL Server or Server not found\\n\\n\");\n\t\t\t\t_ls.writeLog(\"SQL Server or Server not found\\n\\n\");\n\t\t\t}\n\t\t\t//_clientControl.disconnect();\n\t\t}\n\t}",
"void sendRequest() throws IOException {\n InetAddress ipAddress = InetAddress.getByName(RootServers[serverNo]);\r\n\r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);\r\n\r\n dataOutputStream.writeShort(0x1234);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n\r\n String[] domainParts = domain.split(\"\\\\.\");\t//Splits the given domian wrt '.'\r\n for (int i = 0; i < domainParts.length; i++) {\r\n byte[] domainBytes = domainParts[i].getBytes(\"UTF-8\");\r\n dataOutputStream.writeByte(domainBytes.length);\r\n dataOutputStream.write(domainBytes);\r\n }\r\n\r\n dataOutputStream.writeByte(0x00);\t\t\t\r\n\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n\r\n byte[] dnsFrameByteArray = byteArrayOutputStream.toByteArray();\r\n DatagramPacket datagramPacket = new DatagramPacket(dnsFrameByteArray, dnsFrameByteArray.length,\r\n ipAddress, Port);\r\n socket.send(datagramPacket);\t//Sends the request to obtained IP address\r\n }",
"public void sendData(String message) {\n if (asyncClient != null) {\n asyncClient.write(new ByteBufferList(message.getBytes()));\n Timber.d(\"Data sent: %s\", message);\n } else {\n Timber.e(\"cannot send data - socket not yet ready\");\n }\n }",
"public void run(){\n\t\t\t\tDatagramPacket packet = new DatagramPacket(data,data.length, ip, port);\n\t\t\t\ttry {\n\t\t\t\t\tsocket.send(packet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"public Reply sendData(InputStream... ios) throws ThingsException, InterruptedException;",
"public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}"
] | [
"0.6807434",
"0.67398065",
"0.65678394",
"0.65237963",
"0.6449077",
"0.6446587",
"0.64242846",
"0.62889373",
"0.6255656",
"0.6186445",
"0.6176969",
"0.6164932",
"0.61492646",
"0.6137298",
"0.61302733",
"0.6110994",
"0.6107857",
"0.61020607",
"0.60986185",
"0.6057591",
"0.6052695",
"0.604915",
"0.60475147",
"0.60417545",
"0.6037846",
"0.6016239",
"0.6015601",
"0.60077584",
"0.6006541",
"0.6006166",
"0.60025376",
"0.5972228",
"0.59719944",
"0.596857",
"0.5951577",
"0.5919022",
"0.59158903",
"0.59142953",
"0.5893711",
"0.58918047",
"0.5881063",
"0.5873486",
"0.58682084",
"0.58517367",
"0.58475876",
"0.5835929",
"0.5817667",
"0.5802979",
"0.57978535",
"0.579133",
"0.5777306",
"0.5757804",
"0.5754462",
"0.5753249",
"0.5732791",
"0.5724692",
"0.57234347",
"0.571651",
"0.571616",
"0.571597",
"0.57123023",
"0.5711805",
"0.5710478",
"0.57058835",
"0.5693362",
"0.5693304",
"0.5691744",
"0.5682967",
"0.56662047",
"0.56650275",
"0.5663029",
"0.5655876",
"0.5640339",
"0.56272393",
"0.5599688",
"0.5599296",
"0.5598383",
"0.55973715",
"0.5595421",
"0.5594329",
"0.5589224",
"0.55880994",
"0.55873513",
"0.55858",
"0.55639523",
"0.55621433",
"0.55536413",
"0.5547356",
"0.55403686",
"0.55381924",
"0.5523845",
"0.5523035",
"0.55210197",
"0.5520695",
"0.5513308",
"0.5512803",
"0.5505637",
"0.5505204",
"0.54968834",
"0.5491987",
"0.54881316"
] | 0.0 | -1 |
seek landmarks from pending neighbors | private void seekLandmarks(final long timeStamp, final AddressIF addr,
final Barrier barrier,
final Map<Long, HSHRecord> pendingHSHLandmarks,
StringBuffer errorBuffer) {
// TODO Auto-generated method stub
if (Ninaloader.me.equals(addr)) {
return;
}
LandmarkRequestMsg msg = new LandmarkRequestMsg(Ninaloader.me,
timeStamp);
barrier.fork();
comm.sendRequestMessage(msg, addr,
new ObjCommRRCB<LandmarkResponseMsg>() {
protected void cb(CBResult result,
final LandmarkResponseMsg responseMsg,
AddressIF node, Long ts) {
switch (result.state) {
case OK: {
// System.out.println("$Landmark Request is acked! We have received ACK from"+addr);
// we override previous landmarks
if (!pendingHSHLandmarks.containsKey(Long
.valueOf(timeStamp))) {
pendingHSHLandmarks.put(Long
.valueOf(timeStamp), new HSHRecord(
Long.valueOf(timeStamp)));
}
pendingHSHLandmarks
.get(Long.valueOf(timeStamp))
.addLandmarks(addr);
pendingHSHLandmarks
.get(Long.valueOf(timeStamp)).alreadyComputedClustering = false;
break;
}
case ERROR:
case TIMEOUT: {
String error = addr.toString(false)
+ "has not received requirement, as: "
+ result.toString();
log.warn(error);
// remove pending neighbor
// addDownNeighbor(addr);
break;
}
}
barrier.join();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Location> neighbors (Location pos);",
"private LinkedList<int[]> neighborFinder(){\n LinkedList<int[]> neighborhood= new LinkedList<>();\n int[] curr_loc = blankFinder();\n int x = curr_loc[0];\n int y = curr_loc[1];\n if(x >0){\n neighborhood.add(new int[]{x-1, y});\n }\n if(x < n-1){\n neighborhood.add(new int[]{x+1, y});\n }\n if(y > 0){\n neighborhood.add(new int[]{x, y-1});\n }\n if(y < n-1) {\n neighborhood.add(new int[]{x, y+1});\n }\n\n\n return neighborhood;\n }",
"public void getLandmarksToBeDrawn(){\n ((Pane) mapImage.getParent()).getChildren().removeIf(x->x instanceof Circle || x instanceof Text || x instanceof Line);\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n CostedPath path=shortestRouteDij(lm1,lm2); \n GraphNodeAL<MapPoint> prev=null;\n for(GraphNodeAL<?> n : path.pathList) { \n drawLandmarks((GraphNodeAL<MapPoint>) n);\n if(prev!=null) lineDraw(prev, (GraphNodeAL<MapPoint>) n);\n prev= (GraphNodeAL<MapPoint>) n;\n }\n }",
"void updateLandmarks() {\n\n\t\t\tregisterUpdateLandmarksTimer();\n\n\t\t\tint m = 2;\n\t\t\tfinal int expectedLandmarks = NumberOfLandmarks + m;\n\t\t\tIterator<Long> ier = pendingHSHLandmarks.keySet().iterator();\n\n\t\t\tSet<AddressIF> tmpList = new HashSet<AddressIF>(1);\n\t\t\tLong curRecord = null;\n\n\t\t\t// get a non-empty list of landmarks\n\t\t\twhile (ier.hasNext()) {\n\t\t\t\tLong nxt = ier.next();\n\t\t\t\tif (pendingHSHLandmarks.get(nxt).IndexOfLandmarks != null\n\t\t\t\t\t\t&& pendingHSHLandmarks.get(nxt).IndexOfLandmarks.size() > 0) {\n\t\t\t\t\ttmpList\n\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(nxt).IndexOfLandmarks);\n\t\t\t\t\tcurRecord = nxt;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if empty, we need to update landmarks immediately\n\t\t\tif (tmpList.size() == 0) {\n\t\t\t\t// remove the record\n\t\t\t\tif (curRecord != null) {\n\t\t\t\t\tpendingHSHLandmarks.get(curRecord).clear();\n\t\t\t\t\tpendingHSHLandmarks.remove(curRecord);\n\t\t\t\t} else {\n\t\t\t\t\t// null curRecord\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tfinal Long Timer = curRecord;\n\t\t\t\t// ping landmarks, if several of them fails, p percentage p=0.2\n\t\t\t\t// , we remove the records, and restart the landmark process\n\t\t\t\t// =================================================================\n\t\t\t\tfinal List<AddressIF> aliveLandmarks = new ArrayList<AddressIF>(\n\t\t\t\t\t\t1);\n\n\t\t\t\tNNManager.collectRTTs(tmpList, new CB2<Set<NodesPair>, String>() {\n\t\t\t\t\tprotected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\t// send data request message to the core node\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//====================================================\n\t\t\t\t\t\t\t\t\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\t\t\t\t\t\t\t\t\t//=====================================================\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\t// ==================================================================\n\n\t\t\t// expected landmarks, K+m\n\n\t\t\tfinal Set<AddressIF> pendingNodes = new HashSet<AddressIF>(1);\n\n\t\t\tgetRandomNodes(pendingNodes, expectedLandmarks);\n\n\t\t\t// remove myself\n\t\t\tif (pendingNodes.contains(Ninaloader.me)) {\n\t\t\t\tpendingNodes.remove(Ninaloader.me);\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: Total number of landmarks are: \"\n\t\t\t\t\t+ pendingNodes.size());\n\n\t\t\tif (pendingNodes.size() == 0) {\n\t\t\t\tString errorString = \"$: HSH no valid nodes\";\n\t\t\t\tSystem.out.println(errorString);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBarrier barrierUpdate = new Barrier(true);\n\t\t\tfinal StringBuffer errorBuffer = new StringBuffer();\n\n\t\t\tfinal long TimeStamp = System.currentTimeMillis();\n\n\t\t\tfor (AddressIF addr : pendingNodes) {\n\t\t\t\tseekLandmarks(TimeStamp, addr, barrierUpdate,\n\t\t\t\t\t\tpendingHSHLandmarks, errorBuffer);\n\t\t\t}\n\n\t\t\tEL.get().registerTimerCB(barrierUpdate, new CB0() {\n\t\t\t\tprotected void cb(CBResult result) {\n\t\t\t\t\tString errorString;\n\t\t\t\t\tif (errorBuffer.length() == 0) {\n\t\t\t\t\t\terrorString = new String(\"Success\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrorString = new String(errorBuffer);\n\t\t\t\t\t}\n\n\t\t\t\t\t// finish the landmark seeking process\n\n\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Long\n\t\t\t\t\t\t\t.valueOf(TimeStamp))\n\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks == null) {\n\t\t\t\t\t\tSystem.out.println(\"$: NULL elements! \");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks\n\t\t\t\t\t\t\t.size() < (0.7 * expectedLandmarks)) {\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp))\n\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\tpendingHSHLandmarks.remove(Long.valueOf(TimeStamp));\n\t\t\t\t\t\tSystem.out.println(\"$: not enough landmark nodes\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t//\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp)).readyForUpdate = true;\n\t\t\t\t\t\tSystem.out.println(\"$: enough landmark nodes\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(1);\n\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks);\n\t\t\t\t\t\tupdateRTTs(Long.valueOf(TimeStamp), nodes, new CB1<String>() {\n\t\t\t\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\t\t\t\tswitch (ncResult.state) {\n\t\t\t\t\t\t\t\tcase OK: {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase ERROR:\n\t\t\t\t\t\t\t\tcase TIMEOUT: {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnodes.clear();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"synchronized void updateActivatedLandmarks () {\n calculateViewportOffset (tmpXY, visitorX, visitorY);\n\n int offsetX = tmpXY[X];\n int offsetY = tmpXY[Y];\n\n for (int i = 0; i < mapLandmarks.length; ++i) {\n if (mapLandmarks[i].isActive ()) {\n int x0 = mapLandmarks[i].getX () - 16 - offsetX;\n int y0 = mapLandmarks[i].getY () - 16 - offsetY;\n repaint (x0, y0, 32, 32);\n }\n }\n }",
"static void visible() {\n int x, y;\n int[][] res = deepClone( pgmInf.img );\n\n System.out.print(\"Enter reference point: \");\n y = scan.nextInt();\n x = scan.nextInt();\n scan.nextLine(); // flush\n \n System.out.printf(\"Marking all pixels visible from %d,%d as white.\\n\", x, y);\n // mark visible points\n for (int i=0 ; i < pgmInf.width ; i++) {\n for (int j=0 ; j < pgmInf.height ; j++) {\n if ( lineBetween(x, y, i, j) ) res[j][i] = 9;\n }\n }\n pgmInf.img = res;\n System.out.println(\"Done.\");\n }",
"private void readLandmarks() {\n landmarks.readBathrooms();\n landmarks.readCampsTSV();\n landmarks.readFavoritesTSV();\n System.out.println();\n }",
"public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}",
"private List<GeographicPoint> backTrack(HashMap<GeographicPoint, List<GeographicPoint>> prev, GeographicPoint goal) {\n\t\tList<GeographicPoint> ans = new ArrayList<GeographicPoint>();\n\t\tList<GeographicPoint> temp = prev.get(goal);\n\t\tif (temp.size() != 0) {\n\t\t\tans.add(goal);\n\t\t\twhile (temp.size() != 0) {\n//\t\t\t\tSystem.out.print(\"Neighbours: \");\n\t\t\t\t// lastNeighbour will be the neighbour node we visited right before moving to the current node\n\t\t\t\tGeographicPoint lastNeighbour = temp.get(temp.size() - 1);\n\t\t\t\tans.add(lastNeighbour);\n\t\t\t\ttemp = prev.get(lastNeighbour);\n\t\t\t}\n\t\t\tCollections.reverse(ans);\n\t\t}\n\t\tif (ans.isEmpty())\n\t\t\treturn null;\n\t\treturn ans;\n\t}",
"@Override\n\tprotected void landAction(){\n\t\tdestIndex++;\n\t\tif(destIndex>=track.size())\n\t\t\tdestIndex=0;\n\t\tdestination=track.get(destIndex);\n\t\t\n\t}",
"public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}",
"@Override\n\t\t\t\tprotected void cb(CBResult result) {\n\t\t\t\t\tupdateLandmarks();\n\t\t\t\t}",
"public synchronized void landmarksChanged (CityMap sender) {\n mapLandmarks = cityMap.getMapLandmarks ();\n lastActivated = null;\n repaint ();\n }",
"@Override public ArrayList<Location> neighbors(final Location id) {\n ArrayList<Location> neighbours = new ArrayList<>();\n for (Location direction : directions){\n\n Location position = new Location(direction.x + id.x, direction.y + id.y);\n\n if (inBounds(position) && isPassable(position))\n neighbours.add(position);\n }\n return neighbours;\n }",
"public synchronized void landmarkStateChanged (CityMap sender, MapLandmark mapLandmark) {\n if (mapLandmark.isActive ()) {\n lastActivated = mapLandmark;\n repaint ();\n }\n else {\n calculateViewportOffset (tmpXY, visitorX, visitorY);\n\n int offsetX = tmpXY[X];\n int offsetY = tmpXY[Y];\n int x0 = mapLandmark.getX () - 16 - offsetX;\n int y0 = mapLandmark.getY () - 16 - offsetY;\n repaint (x0, y0, 32, 32);\n\n if (lastActivated == mapLandmark) {\n lastActivated = null;\n repaint ();\n }\n }\n }",
"public void updateFrontKnown() {\n\t\tfrontKnown = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < maxX; i++) {\n\t\t\tfor (int j = 0; j < maxY; j++) {\n\t\t\t\tif (coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK && findAdjacentUnknown(new int[]{i, j}).size() > 0) {\n\t\t\t\t\tfrontKnown.add(new int[]{i,j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void showAllLandmarks(){\n ((Pane) mapImage.getParent()).getChildren().removeIf(x->x instanceof Circle || x instanceof Text || x instanceof Line);\n for(int i = 0; i<landmarkList.size(); i++){\n if(landmarkList.get(i).data.type == \"Landmark\")\n drawLandmarks(landmarkList.get(i));\n }\n }",
"public void setMark(int neighbour, boolean mark){\n\tedgMark[neighbour] = mark;\n }",
"public void goToLocation (Locator checkpoint) { //Patrolling Guard and Stationary Guard\r\n\t\tVector2i start = new Vector2i((int)(creature.getXlocation()/Tile.TILEWIDTH), (int)(creature.getYlocation()/Tile.TILEHEIGHT));\r\n\t\tint destx = (int)(checkpoint.getX()/Tile.TILEWIDTH);\r\n\t\tint desty = (int)(checkpoint.getY()/Tile.TILEHEIGHT);\r\n\t\tif (!checkCollision(destx, desty)) {\r\n\t\tVector2i destination = new Vector2i(destx, desty);\r\n\t\tpath = pf.findPath(start, destination);\r\n\t\tfollowPath(path);\r\n\t\t}\r\n\t\tarrive();\r\n\t}",
"@Override\n public void onCameraIdle() {\n Location centerLocation = new Location(\"\");\n LatLng midLatLng = this.map.getCameraPosition().target;\n centerLocation.setLatitude(midLatLng.latitude);\n centerLocation.setLongitude(midLatLng.longitude);\n hitNeighboursApi(centerLocation);\n HomeActivity activity = (HomeActivity) getActivity();\n activity.setmRequestLocation(midLatLng);\n requestedLocation.setText(\"\"+centerLocation.getLatitude()+\",\"+centerLocation.getLongitude());\n\n }",
"public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override public void onLocationChanged(Location location) {\n if (mCurrentLocation == null) {\n map.getController().animateTo(new GeoPoint(location));\n }\n\n mCurrentLocation = location;\n\n long currentTime = System.currentTimeMillis();\n\n if (networkLocationIgnorer.shouldIgnore(location.getProvider(), currentTime))\n return;\n\n double dT = currentTime - mLastTime;\n if (dT < 200.0){\n return;\n };\n\n mLastTime = currentTime;\n\n if (!currentLocationOverlay.isEnabled()){\n currentLocationOverlay.setEnabled(true);\n }\n\n currentLocationOverlay.setLocation(new GeoPoint(location));\n currentLocationOverlay.setBearing(location.getBearing());\n currentLocationOverlay.setAccuracy((int) location.getAccuracy());\n\n // Navigation mode\n if (mNavigationMode) {\n if(!mNavigationRunning) {\n // Location for the first time -> get road\n mNavigationRunning = true;\n\n ArrayList<GeoPoint> wayPoints = new ArrayList<GeoPoint>();\n // Start location\n wayPoints.add(new GeoPoint(location));\n // Destination location\n wayPoints.add(getLocationFromAddress(destinationAddress));\n\n new RoadTask().execute(wayPoints);\n }\n else if (mNextNode != null) {\n GeoPoint currentGeoPoint = new GeoPoint(mCurrentLocation);\n int distance = currentGeoPoint.distanceTo(mNextNode.mLocation);\n boolean readInstructions = false;\n\n // TODO: Test which distance is good for marking node as reached\n // TODO: Preveri kako zaznati ali je šel čez node\n // TODO: Povej navodila tik preden zavije\n if ( distance < 4 ) {\n map.getController().animateTo(new GeoPoint(location));\n\n // Node reached, increase node index\n mNodeIndex++;\n\n if (mNodeIndex >= mRoad.mNodes.size()) {\n // Last node reached - turn navigation off\n mNavigationMode = false;\n mNavigationRunning = false;\n mNextNode = null;\n mCurrentNode = null;\n mNodeIndex = 0;\n\n Button button = (Button)findViewById(R.id.current_instruction_button);\n button.setVisibility(View.GONE);\n\n Button buttonFavPaths = (Button)findViewById(R.id.favourite_paths_button);\n buttonFavPaths.setVisibility(View.VISIBLE);\n }\n else {\n // Get next node\n mCurrentNode = mNextNode;\n mNextNode = mRoad.mNodes.get(mNodeIndex);\n\n readInstructions = true;\n }\n }\n else if (distance < 6) {\n readInstructions = true;\n }\n\n // Set new instruction\n setInstruction(readInstructions);\n }\n }\n\n map.invalidate();\n }",
"protected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//====================================================\n\t\t\t\t\t\t\t\t\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\t\t\t\t\t\t\t\t\t//=====================================================\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"private AugmentedImage detectMarker(Frame frame) {\n for (AugmentedImage augmentedImage : frame.getUpdatedTrackables(AugmentedImage.class)) {\n if (augmentedImage.getTrackingState() == TrackingState.PAUSED || augmentedImage.getTrackingMethod() == AugmentedImage.TrackingMethod.FULL_TRACKING)\n {\n Log.d(\"SCAN_ACTIVITY_DETECT\", String.valueOf(augmentedImage.getIndex()));\n return augmentedImage;\n }\n }\n return null;\n }",
"private void PopulateCheckpointList()\n {\n checkpoints.add(FindNextCheckpoint(startTile, directions = FindNextDirection(startTile)));\n \n int counter = 0;\n boolean cont = true;\n while (cont)\n {\n int[] currentDirection = FindNextDirection(checkpoints.get(counter).getTile());\n \n // Check if a next direction/checkpoint exists and end after 20 chekpoints(arbitrary).\n if(currentDirection[0] == 2 || counter == 20)\n {\n cont = false;\n }\n else\n {\n checkpoints.add(FindNextCheckpoint(checkpoints.get(counter).getTile(),\n directions = FindNextDirection(checkpoints.get(counter).getTile())));\n }\n counter++;\n }\n }",
"private static void exploreLand(final char[][] matrix,\n final int n,\n final int m,\n final Point coordinates) {\n\n queue.add(coordinates);\n\n while (!queue.isEmpty()) {\n final Point visited = queue.remove();\n if (matrix[visited.x][visited.y] != '1') {\n continue;\n }\n\n // Visit current cell\n matrix[visited.x][visited.y] = '0';\n\n // Visit neighbors.\n\n // Left\n final int yLeft = visited.y - 1;\n if (yLeft >= 0) {\n final int xLeft = visited.x;\n if (matrix[xLeft][yLeft] == '1') {\n queue.add(new Point(xLeft, yLeft));\n }\n }\n\n // Right\n final int yRight = visited.y + 1;\n if (yRight < m) {\n final int xRight = visited.x;\n if (matrix[xRight][yRight] == '1') {\n queue.add(new Point(xRight, yRight));\n }\n }\n\n // Upper\n final int xUpper = visited.x - 1;\n if (xUpper >= 0) {\n final int yUpper = visited.y;\n if (matrix[xUpper][yUpper] == '1') {\n queue.add(new Point(xUpper, yUpper));\n }\n }\n\n // Lower\n final int xLower = visited.x + 1;\n if (xLower < n) {\n final int yLower = visited.y;\n if (matrix[xLower][yLower] == '1') {\n queue.add(new Point(xLower, yLower));\n }\n }\n }\n }",
"public abstract void notifyScanResult(int distancesToWallsInEachDirection);",
"boolean land();",
"void onStartFindDirection();",
"private StatusEnum stepInternal()\n {\n if (initialStep)\n {\n this.tail = map.getStart();\n this.openSet.push(map.getStart());\n initialStep = false;\n }\n\n if (status != StatusEnum.RUNNING)\n return status;\n\n cursor = openSet.pop(); // Pull the cursor off the open set min-heap\n if (cursor == null)\n {\n // The open set was empty, so although we have not reached the goal, there are no more points to investigate\n return StatusEnum.COMPLETED_NOT_FOUND;\n }\n\n while (closedSet.contains(cursor) || !map.isTraversable(cursor))\n {\n // The cursor is in the closed set (meaning it was already investigated) or the cursor point is non traversable on the map\n cursor = openSet.pop();\n if (cursor == null)\n {\n return StatusEnum.COMPLETED_NOT_FOUND;\n }\n }\n\n // The goal has been reached, the path is complete\n if (cursor.equals(map.getGoal()))\n {\n tail = cursor; // Set the member tail to be used in the reconstruction done in getPath()\n return StatusEnum.COMPLETED_FOUND;\n }\n\n // Add the cursor point to the closed set\n closedSet.add(cursor);\n\n // Get the list of neighboring points\n List<WeightedPoint> neighbors = neighborSelector.getNeighbors(map, cursor, heuristic);\n\n // Link the neighbors to the cursor (for backtracking the path when the goal is reached) and calculate their weight\n for (WeightedPoint wp : neighbors)\n {\n if (map.isTraversable(wp.getRow(), wp.getCol()) && !closedSet.contains(wp))\n {\n wp.setFromCost(cursor.getFromCost() + heuristic.distance(cursor, wp));\n\n if (dijkstra)\n {\n wp.setToCost(0);\n }\n else\n {\n wp.setToCost(heuristic.distance(wp, map.getGoal()));\n }\n wp.setPrev(cursor);\n }\n }\n\n if (shuffle)\n {\n // Shuffle the neighbors to randomize the order of testing nodes with the same cost value\n Collections.shuffle( neighbors );\n }\n Collections.sort( neighbors );\n\n // Put the neighbors on the open set\n for (WeightedPoint wp : neighbors)\n {\n if (!openSet.contains(wp))\n openSet.push(wp);\n }\n\n return StatusEnum.RUNNING;\n }",
"int matchingLandmark(int x, int y) {\n System.out.println(\"matching lansg \" + x + \" \" + y);\n for (int i = 0; i < 50; i++) {\n if (landmarks[i][0] == x && landmarks[i][1] == y) {\n return i;\n }\n }\n return -1;\n }",
"public void changingNeighbor() {\n }",
"public void onBlockNeighborChange(int l) {}",
"private void initializeLandmarks()\n\t{\n\t\t// Do nothing if not set\n\t\tif (startingMinionPerArea == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Check starting landmark for each area\n\t\tfor(Area area : board.getAreaList())\n\t\t{\n\t\t\tint number = area.getNumber();\n\t\t\tInteger minionCount = startingMinionPerArea.get(number);\n\t\t\tif (minionCount != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < minionCount; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(Player player : playerList)\n\t\t\t\t\t{\n\t\t\t\t\t\tarea.addMinion(player.removeMinion());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test (expected=AssertionError.class)\n\tpublic final void testCurrentBoundaryNeighbor() {\n\t\tint boundarySize = totalSize/elementsPerDim;\n\t\tBoundaryIterator bdIterator = block.getBoundaryIterator();\n\t\tbdIterator.setBoundaryToIterate(new BoundaryId(0, false));\n\t\t// Step to middle of the boundary\n\t\tfor (int i=0; i< boundarySize/2; i++) {\n\t\t\tbdIterator.next();\n\t\t}\n\t\tbdIterator.currentNeighbor(0, extent + 1);\n\t}",
"public static void hint(int[][] map, int x, int y) {\n\t\t// show neighbor of this shot\n\t\tfor (int i = -1; i < 2; i++) {\n\t\t\tfor (int j = -1; j < 2; j++) {\n\n\t\t\t\tif (x + i < 0 || y + j < 0 || x + i > 9 || y + j > 9) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (map[x + i][y + j] == 0) {\n\t\t\t\t\tmap[x + i][y + j] = 3;\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\"x axis is \" + (x + i) + \" and y axis is \" + (y + j) + \"\" + \", it is not the target!\");\n\t\t\t\t} else if (map[x + i][y + j] == 1) {\n\t\t\t\t\t// map[x + i][y + j] = MINE_FOUND;\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"x axis is \" + (x + i) + \" and y axis is \" + (y + j) + \"\" + \", this is a target!\");\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------\");\n\t\t// print all the previous shots.\n\t\tfor (int i = 0; i < map.length; i++) {\n\t\t\tfor (int j = 0; j < map[i].length; j++) {\n\t\t\t\tif (map[i][j] == 3) {\n\t\t\t\t\tSystem.out.println(\"x axis is \" + i + \" and y axis is \" + j + \"\" + \", it is not the target!\");\n\t\t\t\t} else if (map[i][j] == 2) {\n\t\t\t\t\tSystem.out.println(\"x axis is \" + i + \" and y axis is \" + j + \"\" + \", it is a found target!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void getCurrentDetectedLipCoordinates(float coor[]) {\n if (coor.length != porc_lipstick_down_highlight_filter_refrence_feature_table.length * 2)\n return;\n\n for (int i = 0; i < porc_lipstick_down_highlight_filter_refrence_feature_table.length; i++) {\n coor[2 * i] = facesFeaturesCoordinates[2 * porc_lipstick_down_highlight_filter_refrence_feature_table[i]];\n coor[2 * i + 1] = facesFeaturesCoordinates[2 * porc_lipstick_down_highlight_filter_refrence_feature_table[i] + 1];\n }\n\n }",
"public int infectNeighbours(Map map);",
"@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgentHasKey()){\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add to visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){ //this is important else if(cTemp!='~'), not barely else,\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' ){\n\t\t\t\t\t\t\tif(cTemp=='~' &&s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasAxe()){ //only have axe\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited every loop\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0,s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move north\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){//state move south\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}else if(m.isAgentHasKey()){ //only have key\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\t//Visited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation());\n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head,in this fashion, return the right order of route\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY()); \n\t\t\t\tif(m.hasCoordinate(temp)){//state move east\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY()); //state that move west\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1); //state move north\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1); //state move south\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){//at least has 1 stone\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for initial state\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * \n\t\t **/\t\t\n\t\telse{ //have no key and axe\n\t\t\tSystem.out.println(\"come into the last elas clause\");\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\n\t\t\tArrayList<MapCoordinate> Visited=new ArrayList<MapCoordinate>();\n\t\t\t\n\t\t\tVisited.add(loc1);\n\t\t\tState s1=new State(loc1,m.getAgentHasNStones(),null);\n\t\t\tqueue.add(s1);\n\t\t\t\n\t\t\t//int i=0;\n\t\t\twhile(!queue.isEmpty()){\n\t\t\t\t//i++;\n\t\t\t\t//System.out.println(\"come into while: \"+i);\n\t\t\t\tState s=queue.remove();\n\t\t\t\tMapCoordinate currentLocation=s.getLocation();\n\t\t\t\tVisited.add(s.getLocation()); //add visited, let program won't stuck in \n\t\t\t\tif(loc2.equals(currentLocation)){\n\t\t\t\t\t//means could reach loc2 from loc1\n\t\t\t\t\tSystem.out.println(\"return computed route\");\n\t\t\t\t\tArrayList<MapCoordinate> route=new ArrayList<MapCoordinate>();\n\t\t\t\t\twhile(s.getPrevState()!=null){\n\t\t\t\t\t\troute.add(0, s.getLocation()); //add to head\n\t\t\t\t\t\ts=s.getPrevState();\n\t\t\t\t\t}\n\t\t\t\t\tfor(MapCoordinate mc:route){\n\t\t\t\t\t\t//System.out.println(\"print returned route in bfssearch\");\n\t\t\t\t\t\tSystem.out.print(\"mc:\"+mc.getX()+\" \"+mc.getY()+\"->\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\treturn route;\n\t\t\t\t}\n\t\t\t\tMapCoordinate temp=new MapCoordinate(currentLocation.getX()+1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\t//System.out.println(\"1 if\");\n\t\t\t\t\tif(s.getPrevState()!=null &&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if\");\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 if\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 if\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 else\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX()-1,currentLocation.getY());\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.add(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tSystem.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()+1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*'&&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp=new MapCoordinate(currentLocation.getX(),currentLocation.getY()-1);\n\t\t\t\tif(m.hasCoordinate(temp)){\n\t\t\t\t\tif(s.getPrevState()!=null&&!temp.equals(s.getPrevState().getLocation())){\n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\tif(!Visited.contains(temp)&&cTemp!='*' &&cTemp!='T' &&cTemp!='-' ){\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(s.getPrevState()==null){ //for the initial state \n\t\t\t\t\t\tchar cTemp=m.getSymbol(temp);\n\t\t\t\t\t\t//System.out.println(\"2 if lalala\");\n\t\t\t\t\t\tif(cTemp!='*' &&cTemp!='T'&&cTemp!='-' ){\n\t\t\t\t\t\t\t//System.out.println(\"3 iflalala\");\n\t\t\t\t\t\t\tif(cTemp=='~' && s.getStoneNumber()>0){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 iflalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber()-1,s);\n\t\t\t\t\t\t\t\tqueue.addLast(newState);\n\t\t\t\t\t\t\t}else if(cTemp!='~'){\n\t\t\t\t\t\t\t\t//System.out.println(\"4 elselalala\");\n\t\t\t\t\t\t\t\tState newState=new State(new MapCoordinate(temp),s.getStoneNumber(),s);\n\t\t\t\t\t\t\t\tqueue.addFirst(newState);\n\t\t\t\t\t\t\t}//do not do any action for not enough stones situation\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t}",
"private void scanForBlockFarAway() {\r\n\t\tList<MapLocation> locations = gameMap.senseNearbyBlocks();\r\n\t\tlocations.removeAll(stairs);\r\n\t\tif (locations.size() == 0) {\r\n\t\t\tblockLoc = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/* remove blocks that can be sensed */\r\n\t\tIterator<MapLocation> iter = locations.iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tMapLocation loc = iter.next();\r\n\t\t\tif (myRC.canSenseSquare(loc))\r\n\t\t\t\titer.remove();\r\n\t\t} \r\n\t\t\r\n\t\tlocations = navigation.sortLocationsByDistance(locations);\r\n\t\t//Collections.reverse(locations);\r\n\t\tfor (MapLocation block : locations) {\r\n\t\t\tif (gameMap.get(block).robotAtLocation == null){\r\n\t\t\t\t/* this location is unoccupied */\r\n\t\t\t\tblockLoc = block;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tblockLoc = null;\r\n\t}",
"public void seekRooms () {\n\t\tint num = 0;//room number\n\t\tfor (int i=0; i<w; i++) {\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tif (visited[i][j] == 0) {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t\tnum++;//room number start from 1\n\t\t\t\t\tdfs(i,j,num);\n\t\t\t\t\n\t\t\t\t\t//update the number of rooms and max room size\t\t\t\n\t\t\t\t\tmax = Math.max(max, cnt); \n\t\t\t\t\ttotal = num;\n\t\t\t\t\tmap.put(num, cnt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfindMaxComb();// find the max size after breaking a wall!!!\n\t\t\n\t}",
"void renderHotspots() {\n boolean afterCurrent = false;\n boolean hasLastPos = false;\n float lastX = 0.0f;\n float lastY = 0.0f;\n float lastZ = 0.0f;\n \n final float halfWidth = 0.1f / 2;\n final float halfLength = 0.1f / 2;\n final float halfHeight = 0.1f / 2;\n final float eyeHeight = 0.91712f;//1.1f;\n \n // Find pan position offset vector\n if (selectedTimeInterval.getLocationMetadataEntry() == null) {\n return;\n }\n \n if (!dstLocationVectorExists)\n return;\n \n GL11.glLoadIdentity();\n // set up for tracking hotspot screen x,y\n\t\tfloat projectedXYZ[] = new float[3]; \t\t\n\t\tprojectionMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_PROJECTION_MATRIX, projectionMatrix);\n\t\tgetMatrixAsArray(projectionMatrix, projectionArray);\n\t\tviewportMatrix.clear();\n\t\tGL11.glGetInteger(GL11.GL_VIEWPORT, viewportMatrix);\n\t\tviewportArray[0] = viewportMatrix.get(0);\n\t\tviewportArray[1] = viewportMatrix.get(1);\n\t\tviewportArray[2] = viewportMatrix.get(2);\n\t\tviewportArray[3] = viewportMatrix.get(3);\n //System.out.println(\"\"+viewportArray[0] + \" \"+ viewportArray[1]+\" \"+viewportArray[2]+\" \"+viewportArray[3] ); \n\t\tmodelMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_MODELVIEW_MATRIX, modelMatrix);\n\t\tgetMatrixAsArray(modelMatrix, modelArray);\n \n GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); // no texture\n \n for (int i=0; i<roverTrackingList.size()-1; i++) {\n \tRoverTrackingListEntry listEntry = (RoverTrackingListEntry) roverTrackingList.get(i);\n\t\t\tlistEntry.screenX = 0.0f;\n\t\t\tlistEntry.screenY = 0.0f;\n \t\n double da = listEntry.locationMetadataEntry.rover_origin_offset_vector_a + listEntry.siteMetadataEntry.offset_vector_a - currentLocationVectorA;\n double db = listEntry.locationMetadataEntry.rover_origin_offset_vector_b + listEntry.siteMetadataEntry.offset_vector_b - currentLocationVectorB;\n double dc = listEntry.locationMetadataEntry.rover_origin_offset_vector_c + listEntry.siteMetadataEntry.offset_vector_c - currentLocationVectorC;\n \n float x = (float) db;\n float y = (-(float)dc) - eyeHeight;\n float z = - (float) da;\n\n // calculate brightness of point based on number of images visible for location\n float brightness = 0.0f;\n \n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getNumEnabledImages() > 2) {\n \t// track screen x, y of hotspot\n \t\t\tGLU.gluProject(x, y, z, modelArray, projectionArray, viewportArray, projectedXYZ);\n \t\t\tif (projectedXYZ[2] < 1.0f) {\n\t \t\t\tlistEntry.screenX = projectedXYZ[0];\n\t \t\t\t// transform y from opengl screen coords to regular screen coords\n\t \t\t\tlistEntry.screenY = viewportArray[3] - projectedXYZ[1];\n \t\t\t}\n \t\n \t// render hotspot\n GL11.glLoadIdentity();\n GL11.glTranslatef(x, y, z);\n //System.out.println(\"\"+listEntry.screenX+\" \"+listEntry.screenY);\n \n brightness = 0.5f + 0.1f * listEntry.locationListEntry.getNumEnabledImages();\n if (brightness > 1.0f) {\n brightness = 1.0f;\n }\n \n GL11.glBegin(GL11.GL_QUADS); // D draw A Quad\n \n if (listEntry.locationListEntry.getStartLocation().equals(selectedTimeInterval.getStartLocation())) {\n GL11.glColor3f(brightness, 0.0f, brightness); \n }\n else if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n }\n \n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Bottom Left Of The Quad (Top)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Bottom Right Of The Quad (Top)\n\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Top Right Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Top Left Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Bottom)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Bottom)\n\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Front)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Front)\n\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Back)\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Back)\n\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Left)\n\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Right)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Right)\n \n GL11.glEnd(); // Done Drawing The Quads\n\t }\n \n if (hasLastPos && !listEntry.segmentStart) {\n brightness = 0.5f;\n if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n } \n GL11.glLoadIdentity();\n GL11.glBegin(GL11.GL_LINES); \n// GL11.glColor3f(1.0f, 0.0f, 0.0f); \n GL11.glVertex3f(lastX, lastY, lastZ);\n GL11.glVertex3f(x, y, z);\n GL11.glEnd();\n }\n \n lastX = x;\n lastY = y;\n lastZ = z;\n hasLastPos = true;\n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getStartLocation().equals(this.selectedTimeInterval.getStartLocation())) {\n afterCurrent = true;\n }\n }\n }",
"private void evaluateNeighborhood(List<Sequence> neighbors) {\n Sequence current = sequence;\n\t\tfor (Sequence s : neighbors) {\n\t\t\tapplySequence(s);\n\t\t\tif (isValid()) {\n\t\t\t\tevaluate();\n\t\t\t\ts.setScore(this.getScore());\n\t\t\t}\n\t\t}\n // restore sequence\n applySequence(current); \n }",
"public boolean sps() {\n\t\tupdateFrontUnknown();\n\t\tboolean successful = false;\n\t\tfor (int i = 0; i < frontUnknown.size(); i++) {\n\t\t\tint x = frontUnknown.get(i)[0];\n\t\t\tint y = frontUnknown.get(i)[1];\n\t\t\tArrayList<int[]> knownNeighbors = findAdjacentSafe(frontUnknown.get(i));\n\t\t\tfor (int[] j: knownNeighbors) {\n\t\t\t\t//all clear neighbours\n\t\t\t\tif (answerMap[j[0]][j[1]] == findAdjacentMark(j).size()) {\n\t\t\t\t\tprobe(x, y);\n\t\t\t\t\tsuccessful = true;\n\t\t\t\t\tSystem.out.println(\"SPS: probe[\" + x + \",\" + y + \"]\");\n\t\t\t\t\tspsCount++;\n\t\t\t\t\tshowMap();\n\t\t\t\t\ti--;\n\t\t\t\t\tupdateFrontUnknown();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//all marked neighbours\n\t\t\t\t\tif (answerMap[j[0]][j[1]] == findAdjacentRisk(j).size()) {\n\t\t\t\t\t\tmark(x, y);\n\t\t\t\t\t\tsuccessful = true;\n\t\t\t\t\t\tSystem.out.println(\"SPS: probe[\" + x + \",\" + y + \"]\");\n\t\t\t\t\t\tspsCount++;\n\t\t\t\t\t\tshowMap();\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tupdateFrontUnknown();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn successful;\n\t}",
"private void findLaneLines(int[] pixels, int row, int leftStartingX, int rightStartingX) {\n if (row > getCameraHeight() * LOOK_DIST) {\n Point lastLeftPoint = leftLine.getLeftPoint(pixels, row, getScreenWidth(), leftStartingX);\n Point lastRightPoint = rightLine.getRightPoint(pixels, row, getScreenWidth(), rightStartingX, getCameraWidth());\n leftLine.getLanePoints().add(lastLeftPoint);\n rightLine.getLanePoints().add(lastRightPoint);\n\n // If no lane was found, search from the last startingX\n if (lastLeftPoint.isEmpty() && lastRightPoint.isEmpty()) {\n findLaneLines(pixels, row - 1, leftStartingX, rightStartingX);\n\n // If Only the right lane was found, right starts from last starting X. Left starts from last startingX\n } else if (lastLeftPoint.isEmpty()) {\n int startSearchX = lastRightPoint.getX() - SEARCH_OFFSET;\n findLaneLines(pixels, row - 1, startSearchX, startSearchX);\n\n // If Only the left lane was found, left starts from last starting X. Right starts from last startingX\n } else if (lastRightPoint.isEmpty()) {\n int startSearchX = lastLeftPoint.getX() + SEARCH_OFFSET;\n findLaneLines(pixels, row - 1, startSearchX, startSearchX);\n\n // If Both lanes are found start search from last X + or - 100.\n } else {\n findLaneLines(pixels, row - 1, lastLeftPoint.getX() + SEARCH_OFFSET,\n lastRightPoint.getX() - SEARCH_OFFSET);\n }\n }\n }",
"public void land() {\n Game currentGame = this.getGame();\n this.setHasBeenVisited(true);\n currentGame.setMode( Game.Mode.GAME_WON);\n\n }",
"protected void reportPointsInSearch( ) {\n\t\tfor( SearchProgressCallback progress : progressListeners )\n\t\t\tprogress.pointsInSearch(this, open_from_start.size() + (bidirectional ? open_from_goal.size() : 0), closed_from_start.size() + (bidirectional ? closed_from_goal.size() : 0));\n\t}",
"private void getNeighbors() {\n\t\tRowIterator iterator = currentGen.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tint numNeighbors = 0;\n\t\t\t\tfor (int i = -1; i < 2; i++) { // loops through row above,\n\t\t\t\t\t\t\t\t\t\t\t\t// actual row, and row below\n\t\t\t\t\tfor (int j = -1; j < 2; j++) { // loops through column left,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// actual column, coloumn\n\t\t\t\t\t\t\t\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (!currentGen.elementAt(row + i, col + j).equals(\n\t\t\t\t\t\t\t\tfalse)) // element is alive, add 1 to neighbor\n\t\t\t\t\t\t\t\t\t\t// total\n\t\t\t\t\t\t\tnumNeighbors += 1;\n\t\t\t\t\t\telse { // element is not alive, add 1 to its total\n\t\t\t\t\t\t\t\t// number of neighbors\n\t\t\t\t\t\t\tInteger currentNeighbors = (Integer) neighbors\n\t\t\t\t\t\t\t\t\t.elementAt(row + i, col + j);\n\t\t\t\t\t\t\tneighbors.setValue(row + i, col + j,\n\t\t\t\t\t\t\t\t\tcurrentNeighbors + 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneighbors.setValue(row, col, numNeighbors - 1); // -1 to account\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for counting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// itself as a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbor\n\t\t\t}\n\t\t}\n\t}",
"public void updateNeighbours(int i) {\n if (currentState[i] != 0) {\n int ix0 = (i - STEPX) & MASKX;\n int iy0 = (i - STEPY) & MASKY;\n int iz0 = (i - STEPZ) & MASKZ;\n\n int ix1 = (i) & MASKX;\n int iy1 = (i) & MASKY;\n int iz1 = (i) & MASKZ;\n\n int ix2 = (i + STEPX) & MASKX;\n int iy2 = (i + STEPY) & MASKY;\n int iz2 = (i + STEPZ) & MASKZ;\n\n ++nextState[ix0 | iy0 | iz0];\n ++nextState[ix0 | iy0 | iz1];\n ++nextState[ix0 | iy0 | iz2];\n ++nextState[ix0 | iy1 | iz0];\n ++nextState[ix0 | iy1 | iz1];\n ++nextState[ix0 | iy1 | iz2];\n ++nextState[ix0 | iy2 | iz0];\n ++nextState[ix0 | iy2 | iz1];\n ++nextState[ix0 | iy2 | iz2];\n\n ++nextState[ix1 | iy0 | iz0];\n ++nextState[ix1 | iy0 | iz1];\n ++nextState[ix1 | iy0 | iz2];\n ++nextState[ix1 | iy1 | iz0];\n\n //!\t\t++nextState[ix1|iy1|iz1];\n ++nextState[ix1 | iy1 | iz2];\n ++nextState[ix1 | iy2 | iz0];\n ++nextState[ix1 | iy2 | iz1];\n ++nextState[ix1 | iy2 | iz2];\n\n ++nextState[ix2 | iy0 | iz0];\n ++nextState[ix2 | iy0 | iz1];\n ++nextState[ix2 | iy0 | iz2];\n ++nextState[ix2 | iy1 | iz0];\n ++nextState[ix2 | iy1 | iz1];\n ++nextState[ix2 | iy1 | iz2];\n ++nextState[ix2 | iy2 | iz0];\n ++nextState[ix2 | iy2 | iz1];\n ++nextState[ix2 | iy2 | iz2];\n }\n }",
"private static void broadcastLandingLocations() {\n ArrayList<Pair<Integer, Integer>> ccBySize = new ArrayList<>();\n for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n ccBySize.add(new Pair<Integer, Integer>(cc, CONNECTED_COMPONENT_SIZES.get(cc)));\n }\n // Sort connected components by size, decreasing\n ccBySize.sort(new Comparator<Pair<Integer, Integer>>() {\n @Override\n public int compare(Pair<Integer, Integer> o1, Pair<Integer, Integer> o2) {\n return o2.getSecond() - o1.getSecond();\n }\n });\n int[][] locationsWithinCC = new int[CONNECTED_COMPONENT_SIZES.size()][];\n ArrayList<HashSet<Integer>> landingCoordinates = new ArrayList<>(CONNECTED_COMPONENT_SIZES.size());\n for (int cc = 0; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n locationsWithinCC[cc] = new int[CONNECTED_COMPONENT_SIZES.get(cc)];\n landingCoordinates.add(new HashSet<>());\n }\n // Indices within locationsWithinCC arrays\n int[] locationsWithinCCIndices = new int[CONNECTED_COMPONENT_SIZES.size()];\n for (int r = 0; r < MAP_HEIGHT; ++r) {\n for (int c = 0; c < MAP_WIDTH; ++c) {\n int cc = CONNECTED_COMPONENTS[r][c];\n if (cc == IMPASSIBLE_TERRAIN) continue;\n int coord = (r << 16) | c;\n locationsWithinCC[cc][locationsWithinCCIndices[cc]++] = coord;\n }\n }\n //System.out.println(Arrays.deepToString(locationsWithinCC));\n int communicationArrayIndex = 1;\n int totalNumCoords = 0; // Keep track of the size of a set of landing coordinates that spans all connected components\n // Fill communication array until we can no longer fit a set of totalNumCoords into the array\n while (COMMUNICATION_ARRAY_LENGTH - communicationArrayIndex >= totalNumCoords) {\n totalNumCoords = 0;\n // Choose (cc size)^(1/4) locations in each cc\n for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n HashSet<Integer> chosenCoords = landingCoordinates.get(cc);\n // Clear any previously generated landing locations for each connected component\n chosenCoords.clear();\n // Generate new unique landing locations (not necessarily distinct from previously generated locations)\n int numDesiredCoords = (int) Math.pow(CONNECTED_COMPONENT_SIZES.get(cc), 1d/4d);\n int[] locations = locationsWithinCC[cc];\n for (; chosenCoords.size() < numDesiredCoords;) {\n int randCoord = locations[rand.nextInt(locations.length)];\n chosenCoords.add(randCoord);\n }\n totalNumCoords += numDesiredCoords;\n }\n if (totalNumCoords > COMMUNICATION_ARRAY_LENGTH - communicationArrayIndex) {\n // Prevent overflow of communication array\n break;\n }\n //for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n // System.out.println(landingCoordinates.get(cc));\n //}\n // Write landing locations to communication array in decreasing order of connected component size\n for (Pair<Integer, Integer> ccSizePair : ccBySize) {\n int cc = ccSizePair.getFirst();\n for (Integer coord : landingCoordinates.get(cc)) {\n gc.writeTeamArray(communicationArrayIndex, coord);\n ++communicationArrayIndex;\n }\n }\n }\n gc.writeTeamArray(0, communicationArrayIndex - 1); // write number of generated landing locations\n }",
"@Override\n public Iterator<Location> iterator() {\n return new NeighborhoodIterator(this, new Location(0, 0));\n }",
"void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }",
"private void drive2Neighbor(int nx, int ny) throws Exception {\n\t\t//note that since the map is upside down, so all left-right turn is switched here\n\t\tswitch(robot.getCurrentDirection()) {\n\t\tcase East:\n\t\t\tif (nx > robot.getCurrentPosition()[0]){\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\telse if (nx == robot.getCurrentPosition()[0]) {\n\t\t\t\tif (ny > robot.getCurrentPosition()[1]) {\n\t\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trobot.rotate(Turn.AROUND);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase West:\n\t\t\tif (nx < robot.getCurrentPosition()[0]){\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\telse if (nx == robot.getCurrentPosition()[0]) {\n\t\t\t\tif (ny > robot.getCurrentPosition()[1]) {\n\t\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trobot.rotate(Turn.AROUND);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase North:\n\t\t\tif (nx > robot.getCurrentPosition()[0]){\n\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\telse if (nx == robot.getCurrentPosition()[0]) {\n\t\t\t\tif (ny > robot.getCurrentPosition()[1]) {\n\t\t\t\t\trobot.rotate(Turn.AROUND);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase South:\n\t\t\tif (nx < robot.getCurrentPosition()[0]){\n\t\t\t\trobot.rotate(Turn.LEFT);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\telse if (nx == robot.getCurrentPosition()[0]) {\n\t\t\t\tif (ny > robot.getCurrentPosition()[1]) {\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}else{\n\t\t\t\t\trobot.rotate(Turn.AROUND);\n\t\t\t\t\trobot.move(1, false);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trobot.rotate(Turn.RIGHT);\n\t\t\t\trobot.move(1, false);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"public Collection<N> neighbors();",
"private void checkOffset() {\n\t\tfloat CurZ=mApplications.get(CurIndex).getZ();\r\n\t\tfloat diff=0;\r\n\t\tfloat offset=ApplicationInfo.getOffset();\r\n\t\tLog.d(TAG, \"checkOffset: \"+ApplicationInfo.Destination);\r\n\t\tif(ApplicationInfo.IsScrolling)\r\n\t\t{\r\n\t\t\tif(offset > 0 && CurZ < Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=diff;\r\n\t\t\t}\r\n\t\t\telse if(offset < 0 && CurZ > Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=-diff;\r\n\t\t\t}\r\n\t\t\tApplicationInfo.setOffset(offset);\r\n\t\t\treturn ;\r\n\t\t}\r\n \t\tswitch(ApplicationInfo.Destination)\r\n \t\t{\r\n \t\tcase Constants.TO_BACK:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.originPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_BACKWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FORWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FRONT:\r\n \t\t\tif((diff=glview.floorby2(Constants.disapearedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t\tApplicationInfo.setOffset(offset);\r\n\t}",
"public void discoverZeroNeighbors(int x, int y) {\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] == SIGN_UNKNOWN) {\n\t\t\t\t\tprobe(i, j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected ArrayList<int[]> findAdjacentMark(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] == SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tshowProgress(false, null);\n\t\t\tboolean canRoute = false;\n\t\t\tfor (FloorInfo floorInfo : floorList) {\n\t\t\t\tArrayList<LocatorGeocodeResult> shelfList = floorInfo\n\t\t\t\t\t\t.getShelfList();\n\t\t\t\tif (shelfList.size() > 0) {\n\t\t\t\t\tStopGraphic points[] = new StopGraphic[shelfList.size()];\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor (LocatorGeocodeResult result : shelfList) {\n\t\t\t\t\t\tString address = result.getAddress();\n\t\t\t\t\t\tif (index >= shelfList.size()\n\t\t\t\t\t\t\t\t&& !address.equals(floorInfo.getStartPoint())) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tPoint p = (Point) GeometryEngine.project(\n\t\t\t\t\t\t\t\tresult.getLocation(), wm, egs);\n\t\t\t\t\t\tif (address.equals(floorInfo.getStartPoint())) {\n\t\t\t\t\t\t\tpoints[0] = new StopGraphic(p);\n\n\t\t\t\t\t\t\tSystem.out.println(\"起始点x:\" + p.getX() + \" y:\"\n\t\t\t\t\t\t\t\t\t+ p.getY());\n\n\t\t\t\t\t\t} else if (floorInfo.getEndPoint() != null\n\t\t\t\t\t\t\t\t&& address.equals(floorInfo.getEndPoint())) {\n\t\t\t\t\t\t\tpoints[shelfList.size() - 1] = new StopGraphic(p);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpoints[index++] = new StopGraphic(p);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tif (points[0] != null && points.length >= 2) {\n\t\t\t\t\t\tcanRoute = true;\n\t\t\t\t\t\trouteCount++;\n\t\t\t\t\t}\n\t\t\t\t\tfloorInfo.setPoints(points);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tclearAll();\n\t\t\tif (!canRoute) {\n\t\t\t\tToast.makeText(MapActivity.this, \"没有找到足够的点,无法导航\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tQueryDirections();\n\t\t\t}\n\t\t}",
"@Test\r\n public void Test016FindLiveNeighbours()\r\n {\r\n\r\n gol.makeLiveCell(1, 1);\r\n\r\n assertEquals(1, gol.findLiveNeighbours(0, 0));\r\n }",
"public abstract LinkedList<Integer> getNeighbours(int index);",
"private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"public ArrayList<SearchNode> neighbors() {\n ArrayList<SearchNode> neighbors = new ArrayList<SearchNode>();\n // StdOut.println(\"before: \" + this.snBoard);\n Iterable<Board> boards = new ArrayList<Board>();\n boards = this.snBoard.neighbors();\n // StdOut.println(\"after: \" + this.snBoard);\n for (Board b: boards) {\n // StdOut.println(b);\n // StdOut.println(\"checking: \"+b);\n // StdOut.println(\"checking father: \"+this.getPredecessor());\n if (this.getPredecessor() == null) {\n SearchNode sn = new SearchNode(b,\n b.hamming(),\n this,\n b.manhattan(),\n this.moves+1);\n // StdOut.println(\"checking: \"+(this.priority - this.snBoard.hamming()));\n // StdOut.println(\"checking: \"+(this.priority - this.snBoard.hamming()));\n // sn.addMovesToPriority(this.priority - this.snBoard.hamming()+1);\n neighbors.add(sn);\n } else { \n if (!b.equals(this.getPredecessor().snBoard)) {\n SearchNode sn = new SearchNode(b,\n b.hamming(),\n this,\n b.manhattan(),\n this.moves+1);\n neighbors.add(sn);\n }\n }\n \n }\n return neighbors;\n }",
"public Position[] getWinningPositions();",
"void diplayNeighborPoints() {\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (point[i].position.dist(P) < 10) {\n\t\t\t\tmyParent.pushStyle();\n\t\t\t\tmyParent.fill(255, 255, 0);\n\t\t\t\tmyParent.text(i, point[i].x + 10, point[i].y + 5); // draw\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// selected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// point\n\t\t\t\tmyParent.text(\"left neighbor\", point[neighbor(i)[0]].x, point[neighbor(i)[0]].y);\n\t\t\t\tmyParent.text(\"right neighbor\", point[neighbor(i)[1]].x, point[neighbor(i)[1]].y);\n\t\t\t\tmyParent.text(\"opposite\", point[neighbor(i)[2]].x, point[neighbor(i)[2]].y);\n\t\t\t\t// neighbor(int sourcePointId)\n\t\t\t\tmyParent.noFill();\n\t\t\t\tmyParent.popStyle();\n\t\t\t}\n\t\t}\n\n\t\tif (state == State.SCALE_PORPORTIONALLY_POINT || state == State.SCALE_FREE_POINT)\n\t\t\tdisplayLineBetweenCurrentAndOppositePoints();\n\t}",
"public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }",
"private void addAllNeighbours(@NonNull final Location searchLoc) {\n for (int x = -1; x < 2; x++) {\n for (int y = -1; y < 2; y++) {\n if ((x == 0) && (y == 0)) {\n continue;\n }\n final long foundKey = Location.getKey(searchLoc.getScX() + x, searchLoc.getScY() + y,\n searchLoc.getScZ());\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }\n }\n \n final long foundKey = Location.getKey(searchLoc.getScX(), searchLoc.getScY(), searchLoc.getScZ() + 1);\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }",
"public void getSample(List<T> landmarks){\n\t\tIterator<T> ier = landmarks.iterator();\n\t\twhile(ier.hasNext()){\n\t\t\tT tmp = ier.next();\n\t\t\tthis.getSample(tmp);\t\t\t\n\t\t}\n\t\t\n\t}",
"public static LinkedList2 generateNeighbors(LocNode state) {\n\t \n\t \n\t\n\t LinkedList2 Neighbors = new LinkedList2();\n\t \n\n\t\n\tchar [][] Matrix = state.getData(); \n\t\n\t\n\t\n\tchar [][] Neighbor = copyMatrix(Matrix);\n\n\t\t\n\t\tfor(int i=0 ;i<size ;i++ ) {\n\t\tfor (int j=0 ;j<size ;j++) {\n\t\t\tif (Neighbor[i][j]=='-'||Neighbor[i][j]=='v') {\n\t\t\t\tNeighbor[i][j]='c';\n\t\t\t\t\n\t\t\t\t\n\t updateVisibility(i,j,Neighbor);\n\t \n\t Neighbors.insert(Neighbor, calculateOpjectiveFunction(Neighbor));\n\t \n\t \n\t \n\t\t\t\tNeighbor = copyMatrix(Matrix);\n\t\n\t\t\t\n\t\t\t}\n\t\t}\t\n\t\t}\n\t\t\n\tLinkedList2 ApplyingRemoveAction=removeOneCamera(state.data);\n\t\n\n\tif(!ApplyingRemoveAction.empty()){\n\t\t\n\t\tApplyingRemoveAction.findFirst();\n\t\twhile(!ApplyingRemoveAction.last()) {\n\t\t\t Neighbors.insert(ApplyingRemoveAction.retrieve_data(), ApplyingRemoveAction.retrieve_opjectiveFunctoin());\n\t\t\t ApplyingRemoveAction.findNext();\n\t\t}\n\t\t\n\t\t Neighbors.insert(ApplyingRemoveAction.retrieve_data(), ApplyingRemoveAction.retrieve_opjectiveFunctoin());\n\t}\n\t\t\n\t\t\n\t return Neighbors;\n\t \n\t \n}",
"Set<MacAddress> neighbors();",
"private void loadAddressFromLatches(){\r\n horizontalTileCounter = horizontalTileLatch;\r\n verticalTileCounter = verticalTileLatch;\r\n horizontalNameCounter = horizontalNameLatch; // single bit\r\n verticalNameCounter = verticalNameLatch; // single bit\r\n fineVerticalCounter = fineVerticalLatch;\r\n }",
"public abstract List<AStarNode> getNeighbours();",
"@Override\n public HashMap<Direction,Cell> getNeighbors() throws StateNotSupportedException{\n if (status==CellStatus.PreInitialized)\n throw new StateNotSupportedException();\n else return neighbors;\n }",
"@Override\n\tpublic void pathFinderVisited(int x, int y) {\n\t}",
"public abstract int getNumberOfLivingNeighbours(int x, int y);",
"private void recalculateNeighbours(int x, int y) {\r\n\t\tTile t = map.getTile(x, y + 1, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x, y + 1, false);\r\n\t\t}\r\n\t\tt = map.getTile(x + 1, y, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x + 1, y, false);\r\n\t\t}\r\n\t\tt = map.getTile(x, y - 1, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x, y - 1, false);\r\n\t\t}\r\n\t\tt = map.getTile(x - 1, y, 0);\r\n\t\tif (t != null) {\r\n\t\t\tt.toMap(this, x - 1, y, false);\r\n\t\t}\r\n\t}",
"public interface FindDirectionListener {\n\n /**\n * Method initiates finding directions beetwen two points on the route (clean auxiliary variables)\n */\n void onStartFindDirection();\n\n /**\n * Method downloads url of polylines beetwen two points on the route\n */\n void onSucceedFindDirection(List<RouteBeetweenTwoPointsDTO> route);\n\n /**\n * Method is nesecery for selecting if the current position of user is on the route\n */\n void onStoreFindDirection();\n}",
"private void retrieveListings(GoogleMap googleMap) {\n Projection projection = googleMap.getProjection();\n VisibleRegion visibleRegion = projection.getVisibleRegion();\n LatLng sw = visibleRegion.latLngBounds.southwest;\n LatLng ne = visibleRegion.latLngBounds.northeast;\n double left = sw.longitude;\n double bottom = sw.latitude;\n double right = ne.longitude;\n double top = ne.latitude;\n\n // Find listings on the visible region of the map\n queryListings(left, right, top, bottom);\n }",
"private void QueryDirections() {\n\t\tshowProgress(true, \"正在搜索导航路线...\");\n\t\t// Spawn the request off in a new thread to keep UI responsive\n\t\tfor (final FloorInfo floorInfo : floorList) {\n\t\t\tif (floorInfo.getPoints() != null\n\t\t\t\t\t&& floorInfo.getPoints().length >= 2) {\n\n\t\t\t\tThread t = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start building up routing parameters\n\t\t\t\t\t\t\tRouteTask routeTask = RouteTask\n\t\t\t\t\t\t\t\t\t.createOnlineRouteTask(\n\t\t\t\t\t\t\t\t\t\t\tfloorInfo.getRouteServerPath(),\n\t\t\t\t\t\t\t\t\t\t\tnull);\n\n\t\t\t\t\t\t\tRouteParameters rp = routeTask\n\t\t\t\t\t\t\t\t\t.retrieveDefaultRouteTaskParameters();\n\t\t\t\t\t\t\tNAFeaturesAsFeature rfaf = new NAFeaturesAsFeature();\n\t\t\t\t\t\t\t// Convert point to EGS (decimal degrees)\n\t\t\t\t\t\t\t// Create the stop points (start at our location, go\n\t\t\t\t\t\t\t// to pressed location)\n\t\t\t\t\t\t\t// StopGraphic point1 = new StopGraphic(mLocation);\n\t\t\t\t\t\t\t// StopGraphic point2 = new StopGraphic(p);\n\t\t\t\t\t\t\trfaf.setFeatures(floorInfo.getPoints());\n\t\t\t\t\t\t\trfaf.setCompressedRequest(true);\n\t\t\t\t\t\t\trp.setStops(rfaf);\n\n\t\t\t\t\t\t\t// Set the routing service output SR to our map\n\t\t\t\t\t\t\t// service's SR\n\t\t\t\t\t\t\trp.setOutSpatialReference(wm);\n\t\t\t\t\t\t\trp.setFindBestSequence(true);\n\t\t\t\t\t\t\trp.setPreserveFirstStop(true);\n\t\t\t\t\t\t\tif (floorInfo.getEndPoint() != null) {\n\t\t\t\t\t\t\t\trp.setPreserveLastStop(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Solve the route and use the results to update UI\n\t\t\t\t\t\t\t// when received\n\t\t\t\t\t\t\tfloorInfo.setRouteResult(routeTask.solve(rp));\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmException = e;\n\t\t\t\t\t\t\t// mHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trouteIndex++;\n\t\t\t\t\t\tif (routeIndex >= routeCount) {\n\t\t\t\t\t\t\tmHandler.post(mSetCheckMap);\n\t\t\t\t\t\t\tmHandler.post(mUpdateResults);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t// Start the operation\n\t\t\t\tt.start();\n\t\t\t}\n\t\t}\n\n\t}",
"public void findRobotPosition(){\n targetVisible = false;\n for (VuforiaTrackable trackable : allTrackables) {\n if (((VuforiaTrackableDefaultListener)trackable.getListener()).isVisible()) {\n telemetry.addData(\"Visible Target\", trackable.getName());\n targetVisible = true;\n\n // Get the position of the visible target and put the X & Y position in visTgtX and visTgtY\n // We will use these for determining bearing and range to the visible target\n OpenGLMatrix tgtLocation = trackable.getLocation();\n VectorF tgtTranslation = tgtLocation.getTranslation();\n visTgtX = tgtTranslation.get(0) / mmPerInch;\n visTgtY = tgtTranslation.get(1) / mmPerInch;\n //telemetry.addData(\"Tgt X & Y\", \"{X, Y} = %.1f, %.1f\", visTgtX, visTgtY);\n\n // getUpdatedRobotLocation() will return null if no new information is available since\n // the last time that call was made, or if the trackable is not currently visible.\n OpenGLMatrix robotLocationTransform = ((VuforiaTrackableDefaultListener)trackable.getListener()).getUpdatedRobotLocation();\n if (robotLocationTransform != null) {\n lastLocation = robotLocationTransform;\n }\n break;\n }\n }\n\n // Provide feedback as to where the robot is located (if we know).\n if (targetVisible) {\n // express position (translation) of robot in inches.\n VectorF translation = lastLocation.getTranslation();\n //telemetry.addData(\"Pos (in)\", \"{X, Y, Z} = %.1f, %.1f, %.1f\",\n // translation.get(0) / mmPerInch, translation.get(1) / mmPerInch, translation.get(2) / mmPerInch);\n\n // express the rotation of the robot in degrees.\n Orientation rotation = Orientation.getOrientation(lastLocation, EXTRINSIC, XYZ, DEGREES);\n //telemetry.addData(\"Rot (deg)\", \"{Roll, Pitch, Heading} = %.0f, %.0f, %.0f\", rotation.firstAngle, rotation.secondAngle, rotation.thirdAngle);\n\n // Robot position is defined by the standard Matrix translation (x and y)\n robotX = translation.get(0)/ mmPerInch;\n robotY = translation.get(1)/ mmPerInch;\n\n // Robot bearing (in +vc CCW cartesian system) is defined by the standard Matrix z rotation\n robotBearing = rotation.thirdAngle;\n\n // target range is based on distance from robot position to the visible target\n // Pythagorean Theorum\n targetRange = Math.sqrt((Math.pow(visTgtX - robotX, 2) + Math.pow(visTgtY - robotY, 2)));\n\n // target bearing is based on angle formed between the X axis to the target range line\n // Always use \"Head minus Tail\" when working with vectors\n targetBearing = Math.toDegrees(Math.atan((visTgtY - robotY)/(visTgtX - robotX)));\n\n // Target relative bearing is the target Heading relative to the direction the robot is pointing.\n // This can be used as an error signal to have the robot point the target\n relativeBearing = targetBearing - robotBearing;\n // Display the current visible target name, robot info, target info, and required robot action.\n\n telemetry.addData(\"Robot\", \"[X]:[Y] (Heading) [%5.0fin]:[%5.0fin] (%4.0f°)\",\n robotX, robotY, robotBearing);\n telemetry.addData(\"Target\", \"[TgtRange] (TgtBearing):(RelB) [%5.0fin] (%4.0f°):(%4.0f°)\",\n targetRange, targetBearing, relativeBearing);\n }\n else {\n telemetry.addData(\"Visible Target\", \"none\");\n }\n }",
"private IPoint2D updateGoalPoint(IPoint2D loc, ArenaMap map, double lookAhead) {\n\t\tIPoint2D tmp = map.lastPointInRange(loc, lookAhead, true);\n\t\tRobot.managedPrinter.println(getClass(), \"next goal point: \" + tmp);\n\t\tif (tmp != null) {\n\t\t\ttmp.toDashboard(\"Goal point\");\n\t\t\tNetworkTable.getTable(\"motion\").putNumber(\"pointIdx\", ((IndexedPoint2D) tmp).getIndex());\n\t\t}\n\t\treturn tmp;\n\t}",
"public WorldCoord getFrameLinkset()\r\n/* 45: */ {\r\n/* 46: 34 */ return null;\r\n/* 47: */ }",
"private void updateTempVisiblePoints() {\n for (int[] point : tempVisiblePoints) {\n point[3] -= 1;\n if (point[3] <= 0) {\n map.setPointHidden(point[0], point[1]);\n }\n }\n }",
"@Test\r\n public void Test025FindLiveNeighbours()\r\n {\r\n\r\n gol.makeLiveCell(18, 0);\r\n\r\n gol.makeLiveCell(19, 1);\r\n assertEquals(2, gol.findLiveNeighbours(19, 0));\r\n }",
"public Matrix_4_HSH getRelativeCoordinates(AddressIF currentNode,Collection<AddressIF > allNodes,\n\t\t\tCollection<AddressIF > landmarks, double[] lat) {\n\t\treturn null;\n\t}",
"@Override\n\tvoid createNeighbourhood() {\n\t\t\n\t}",
"public abstract LinkedList<Point> traverse(Grid grid);",
"void onNodeNeighbourChange(World world, BlockPos pos, BlockPos neighbourPos);",
"@Override\n public Iterable<WorldState> neighbors() {\n Queue<WorldState> neighbor = new ArrayDeque<>();\n int xDim = 0, yDim = 0;\n int[][] tiles = new int[_N][_N];\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n tiles[i][j] = _tiles[i][j];\n if (_tiles[i][j] == 0) {\n xDim = i;\n yDim = j;\n }\n }\n }\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (Math.abs(i - xDim) + Math.abs(j - yDim) == 1) {\n tiles[i][j] = _tiles[xDim][yDim];\n tiles[xDim][yDim] = _tiles[i][j];\n neighbor.add(new Board(tiles));\n // System.out.println(new Board(tiles));\n tiles[xDim][yDim] = _tiles[xDim][yDim];\n tiles[i][j] = _tiles[i][j];\n }\n }\n }\n return neighbor;\n }",
"public HashSet<Position> getNeighborPos() { return neighborPos; }",
"public static void runFocusPoint() {\n //center map to current point\n point = getPoint(currentPoint);\n\n if (prevPoint[0] != point[0]) {\n if (prevPoint[0] > point[0]) {\n diff[0] = prevPoint[0] - point[0];\n prevPoint[0] -= FImageGrid.scrollIncrement;\n } else {\n diff[0] = point[0] - prevPoint[0];\n prevPoint[0] += FImageGrid.scrollIncrement;\n }\n }\n if (prevPoint[1] != point[1]) {\n diff[1] = prevPoint[1] - point[1];\n if (prevPoint[1] > point[1]) {\n diff[1] = prevPoint[1] - point[1];\n prevPoint[1] -= FImageGrid.scrollIncrement;\n } else {\n diff[1] = point[1] - prevPoint[1];\n prevPoint[1] += FImageGrid.scrollIncrement;\n }\n }\n if (diff[0] > 0 || diff[1] > 0) {\n diff[0] -= FImageGrid.scrollIncrement;\n diff[1] -= FImageGrid.scrollIncrement;\n if (diff[0] <= FImageGrid.scrollIncrement) {\n diff[0] = 0;\n prevPoint[0] = point[0];\n }\n if (diff[1] <= FImageGrid.scrollIncrement) {\n diff[1] = 0;\n prevPoint[1] = point[1];\n }\n //System.out.print(\"prev[\" + prevPoint[0] + \",\" + prevPoint[1] + \"] | \");\n //System.out.print(\"next[\" + point[0] + \",\" + point[1] + \"] | \");\n //System.out.println(\"diff[\" + diff[0] + \",\" + diff[1] + \"]\");\n centerMapTo(prevPoint[0] + transformCoordenate(mapPos, X_COORD),\n prevPoint[1] + transformCoordenate(mapPos, Y_COORD));\n } else {\n diff = new int[]{0, 0};\n if (currentPoint - 1 > 0) {\n prevPoint = getPoint(currentPoint - 1);\n } else {\n prevPoint = point;\n }\n centerMapTo(point[0] + transformCoordenate(mapPos, X_COORD),\n point[1] + transformCoordenate(mapPos, Y_COORD));\n }\n }",
"ArrayList<PathFindingNode> neighbours(PathFindingNode node);",
"private void setNeighbors()\r\n {\r\n for (int x = 0; x < length+2; ++x)\r\n {\r\n for (int y = 0; y < width+2; ++y)\r\n {\r\n // North\r\n if (!this.board[x][y].northwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y-1]);\r\n }\r\n // South\r\n if (!this.board[x][y].southwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y+1]);\r\n }\r\n // East\r\n if (!this.board[x][y].eastwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x+1][y]);\r\n }\r\n // West\r\n if (!this.board[x][y].westwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x-1][y]);\r\n }\r\n }\r\n }\r\n }",
"public Iterable<Board> neighbors() {\n LinkedList<Board> states = new LinkedList<>();\n LinkedList<int[]> neighbors = neighborFinder();\n int[] curr_loc = blankFinder();\n\n for(int[] temp : neighbors){\n tiles[curr_loc[0]][curr_loc[1]] = tiles[temp[0]][temp[1]];\n tiles[temp[0]][temp[1]] = 0;\n states.add(new Board(deepCopy(tiles)));\n tiles[temp[0]][temp[1]] = tiles[curr_loc[0]][curr_loc[1]];\n tiles[curr_loc[0]][curr_loc[1]] = 0;\n\n }\n return states;\n }",
"public @Override int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a,\n int direction, Position.Bias[] biasRet) throws BadLocationException {\n\n return ViewUtilitiesImpl.getNextVisualPositionFrom(\n this, pos, b, a, direction, biasRet);\n }",
"public List<Sequence> createNeighborhood(Sequence seq, int range) {\n \tList<Sequence> neighbors = new ArrayList<Sequence>();\n \t\n \tfor (SingleConstraint c : singleConstraints) {\n Game game = c.getGame();\n // too early, move forward\n if (c.earliestStartPenalty() > 0) {\n Sequence copy;\n for (int i = 1; i <= range; i++) {\n copy = new Sequence(seq);\n for (int j = 1; j <= i; j++) {\n \tif(Constants.DEBUG) {\n \t\tSystem.out.println(\"Neighbor with Move Forward game\" + game.getName());\n \t\tSystem.out.println(\" \" + copy.toString());\n \t}\n copy.moveGameForward(game);\n }\n neighbors.add(copy);\n }\n }\n // too late, move backward\n if (c.latestStartPenalty() > 0) {\n Sequence copy;\n for (int i = 1; i <= range; i++) {\n copy = new Sequence(seq);\n for (int j = 1; j <= i; j++) {\n \tif(Constants.DEBUG) {\n \t\tSystem.out.println(\"Neighbor with Move Backward game\" + game.getName());\n \t\tSystem.out.println(\" \" + copy.toString());\n \t}\n copy.moveGameBackward(game);\n }\n neighbors.add(copy);\n }\n }\n }\n for (PairConstraint c : pairConstraints) {\n Game game1 = c.getGame1();\n Game game2 = c.getGame2();\n // games too far apart, move closer\n if (c.maxLagPenalty() > 0) {\n Sequence copy1; // move earlier game\n Sequence copy2; // move later game\n Sequence copy3; // move both\n for (int i = 1; i <= range; i++) {\n copy1 = new Sequence(seq);\n copy2 = new Sequence(seq);\n copy3 = new Sequence(seq);\n for (int j = 1; j <= i; j++) {\n copy1.moveGameForward(game1);\n copy2.moveGameBackward(game2);\n copy3.moveGameForward(game1);\n copy3.moveGameBackward(game2);\n if(Constants.DEBUG) {\n \t\tSystem.out.println(\"Neighbor with 1) Foward \" + game1.getName() + \"; 2) Backward \" + game2.getName() + \"; and 1) and 2) together\");\n \t\tSystem.out.println(\" 1) \" + copy1.toString());\n \t\tSystem.out.println(\" 2) \" + copy2.toString());\n \t\tSystem.out.println(\" 3) \" + copy3.toString());\n }\n }\n neighbors.add(copy1);\n neighbors.add(copy2);\n neighbors.add(copy3);\n }\n }\n // games too close, move apart\n if (c.minLagPenalty() > 0) {\n Sequence copy1; // move earlier game\n Sequence copy2; // move later game\n Sequence copy3; // move both\n for (int i = 1; i <= range; i++) {\n copy1 = new Sequence(seq);\n copy2 = new Sequence(seq);\n copy3 = new Sequence(seq);\n for (int j = 1; j <= i; j++) {\n copy1.moveGameBackward(game1);\n copy2.moveGameForward(game2);\n copy3.moveGameBackward(game1);\n copy3.moveGameForward(game2);\n }\n if(Constants.DEBUG) {\n \t\tSystem.out.println(\"Neighbor with 1) Backward \" + game1.getName() + \"; 2) Forward \" + game2.getName() + \"; and 1) and 2) together\");\n \t\tSystem.out.println(\" 1) \" + copy1.toString());\n \t\tSystem.out.println(\" 2) \" + copy2.toString());\n \t\tSystem.out.println(\" 3) \" + copy3.toString());\n }\n neighbors.add(copy1);\n neighbors.add(copy2);\n neighbors.add(copy3);\n }\n }\n }\n \n \n return neighbors;\n }",
"static public ArrayList<MapLocation> bresenham(MapLocation start, MapLocation end) {\n ArrayList<MapLocation> ray = new ArrayList<MapLocation>();\n int startX = start.getColumn();\n int startY = start.getRow();\n int endX = end.getColumn();\n int endY = end.getRow();\n ray.add(new MapLocation(startY, startX));\n\n int dx = endX - startX;\n int dy = endY - startY;\n int D = 2 * dy - dx;\n int y = startY;\n if (D > 0) {\n y = y + 1;\n D = D - (2 * dx);\n }\n for (int x = startX + 1; x < endX; x++) {\n ray.add(new MapLocation(y, x));\n D = D + (2 * dy);\n if (D > 0) {\n y = y + 1;\n D = D - (2 * dx);\n }\n }\n return ray;\n }",
"void obstaclesCallback(final GridCells msg){\n int num_obst = msg.getCells().size();\n me.obstacle_lock_.lock();\n try{\n me.obstacle_points_.clear();\n\n for (int i = 0; i < num_obst; i++) {\n PointStamped in=messageFactory.newFromType(PointStamped._TYPE);\n PointStamped result=messageFactory.newFromType(PointStamped._TYPE);\n in.setHeader(msg.getHeader());\n in.setPoint(msg.getCells().get(i));\n //ROS_DEBUG(\"obstacle at %f %f\",msg->cells[i].x,msg->cells[i].y);\n //TODO:Need Transform\n/* try {\n tf_->waitForTransform(global_frame_, robot_base_frame_, msg->header.stamp, ros::Duration(0.2));\n\n tf_->transformPoint(global_frame_, in, result);\n }\n catch (tf::TransformException ex){\n ROS_ERROR(\"%s\",ex.what());\n return;\n };*/\n\n me.obstacle_points_.add(new Vector2(result.getPoint().getX(),result.getPoint().getY()));\n }\n }finally {\n me.obstacle_lock_.unlock();\n }\n\n }",
"public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }",
"public int stapelPosition(Farbe farbe);"
] | [
"0.6396758",
"0.6174815",
"0.61436963",
"0.60356367",
"0.5872774",
"0.5797389",
"0.5598392",
"0.55763423",
"0.55400014",
"0.54842466",
"0.5446501",
"0.5445052",
"0.5444121",
"0.54035234",
"0.5388264",
"0.538654",
"0.5386461",
"0.53845066",
"0.53830516",
"0.5374683",
"0.536538",
"0.53628695",
"0.53434366",
"0.5322523",
"0.53217006",
"0.5300603",
"0.529767",
"0.5294536",
"0.5285087",
"0.527806",
"0.52517605",
"0.5237246",
"0.52072644",
"0.51831955",
"0.51829463",
"0.51776296",
"0.51751864",
"0.51725316",
"0.5153128",
"0.51425505",
"0.5140232",
"0.51180375",
"0.5116687",
"0.5103814",
"0.51014024",
"0.5101209",
"0.50961345",
"0.5090646",
"0.50859725",
"0.5079981",
"0.5076968",
"0.5075161",
"0.5074403",
"0.50734115",
"0.50590795",
"0.50554734",
"0.50538033",
"0.50527537",
"0.5047962",
"0.5043275",
"0.5036354",
"0.5036219",
"0.5030153",
"0.50240445",
"0.50235116",
"0.50231797",
"0.50140953",
"0.50122577",
"0.50085574",
"0.5007274",
"0.5000288",
"0.49997792",
"0.49884894",
"0.49838215",
"0.49822015",
"0.4977056",
"0.49769983",
"0.4976363",
"0.49729654",
"0.49678597",
"0.49662215",
"0.49646598",
"0.49592197",
"0.49587005",
"0.49570447",
"0.495678",
"0.4955923",
"0.4947616",
"0.49448672",
"0.4944479",
"0.49404114",
"0.4935301",
"0.4919846",
"0.4918128",
"0.49169365",
"0.49165982",
"0.49134046",
"0.4909149",
"0.49039683",
"0.49023846"
] | 0.58181345 | 5 |
send the update request | void updateRTT(long timeStamp, final AddressIF remNode,
Set<AddressIF> landmarkList, final Barrier barrier,
final StringBuffer errorBuffer) {
if (Ninaloader.me.equals(remNode))
return;
ClustUpdateRequestMsg msg = new ClustUpdateRequestMsg(
Ninaloader.me, landmarkList, timeStamp);
// System.out.println("ask " + remNode + " to update rtt");
barrier.fork();
comm.sendRequestMessage(msg, remNode,
new ObjCommRRCB<ClustUpdateResponseMsg>() {
protected void cb(CBResult result,
final ClustUpdateResponseMsg responseMsg,
AddressIF node, Long ts) {
switch (result.state) {
case OK: {
System.out
.println("$ ! We have received ACK from"
+ responseMsg.from);
break;
}
case ERROR:
case TIMEOUT: {
String error = remNode.toString(false)
+ "has not received requirement, as: "
+ result.toString();
System.out.println(error);
errorBuffer.append(error);
break;
}
}
barrier.join();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int updateUser(Candidat c) {\n String url = StaticVars.baseURL + \"/updateuser\";\n System.out.println(url);\n ConnectionRequest req = new ConnectionRequest();\n\n req.setUrl(url);\n req.setPost(true);\n\nreq.setHttpMethod(\"PUT\"); \n\n\n String can = String.valueOf(currentCandidat.getId());\n req.addArgument(\"id\", can);\n String login =String .valueOf(currentCandidat.getLogin());\n req.addArgument(\"login\",login);\n req.addArgument(\"email\", String .valueOf(currentCandidat.getEmail()));\n req.addArgument(\"pays\", String .valueOf(currentCandidat.getPays()));\n req.addArgument(\"ville\", String .valueOf(currentCandidat.getVille()));\n req.addArgument(\"tel\", Integer.toString(currentCandidat.getTel()));\n req.addArgument(\"domaine\", String .valueOf(currentCandidat.getDomaine()));\n\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n result = req.getResponseCode();\n \n System.out.println(result);\n }\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n\n return result;\n }",
"public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }",
"public abstract Response update(Request request, Response response);",
"public void update(){}",
"public void update(){}",
"public void receivedUpdateFromServer();",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"public void sendUpdate() {\n JSONObject obj = new JSONObject();\n String url = (\"http://coms-309-hv-3.cs.iastate.edu:8080/user/update\");\n RequestQueue queue = Volley.newRequestQueue(this);\n\n try {\n obj.put(\"email\", emailEdit.getText()); //string\n obj.put(\"name\", nameEdit.getText()); //string\n obj.put(\"age\", Integer.parseInt(ageEdit.getText().toString())); //int\n obj.put(\"height\", Integer.parseInt(heightEdit.getText().toString())); //int\n obj.put(\"weight\", Integer.parseInt(weightEdit.getText().toString())); //int\n obj.put(\"lifestyle\", lifestyleString(activityEdit)); //string\n obj.put(\"gender\", genderEdit.getSelectedItem().toString()); //string\n\n } catch (JSONException ex) {\n ex.printStackTrace();\n }\n\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, url, obj,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n int responseCode = 1;\n String responseMessage = \"\";\n try {\n responseCode = response.getInt(\"response\");\n responseMessage = response.getString(\"message\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n toastKickoff(\"User Updated: \" + responseCode + \" \" + responseMessage);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"HttpClient\", \"error: \" + error.toString());\n toastKickoff(\"Internal Error\");\n }\n });\n\n queue.add(request);\n\n }",
"JobResponse.Update update();",
"@Override\r\n\tpublic void doUpdate(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"public void executeUpdate(String request) {\n try {\r\n st.executeUpdate(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public abstract void update(@Nonnull Response response);",
"public String update(String id, String datetime, String description, String request, String status);",
"public void update() {}",
"public void executeUpdate();",
"void executeUpdate();",
"private void sendUpdateConnectionInfo() {\n\n }",
"private void update() {\n ambianceModel.ambiance.uniq_id = ambianceModel._id.$oid;\n\n RestAdapter restAdapter = new RestAdapter.Builder().setLogLevel(RestAdapter.LogLevel.FULL).setEndpoint(getResources().getString(R.string.api)).build();\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.disableHtmlEscaping();\n final Gson gson = builder.create();\n Request r = new Request(Singleton.token, ambianceModel._id.$oid, ambianceModel);\n String json = gson.toJson(r);\n Log.v(\"Ambiance activity\", json);\n\n final Lumhueapi lumhueapi = restAdapter.create(Lumhueapi.class);\n lumhueapi.updateAmbiance(r, new Callback<AmbianceApplyResponse>() {\n @Override\n public void success(AmbianceApplyResponse ambianceApplyResponse, Response response) {\n Log.v(\"Ambiance activity\", \"It worked\");\n }\n\n @Override\n public void failure(RetrofitError error) {\n String tv = error.getMessage();\n Log.v(\"Ambiance activity\", tv + \"\");\n }\n });\n }",
"public void update(int updateType);",
"@PUT\n @Path(\"/update\")\n public void put() {\n System.out.println(\"PUT invoked\");\n }",
"private void updateFromProvider() {\n if(isUpdating.get()){\n isHaveUpdateRequest.set(true);\n return;\n }\n mUpdateExecutorService.execute(new UpdateThread());\n }",
"private void update(RequestInfo requestInfo) throws DefectException {\r\n\t\tlog.info(\"Start - update\");\r\n\t\tcreateInstance();\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to update, request information is missing\");\r\n\t\t}\r\n try{\r\n\r\n \tString ref = requestInfo.getRefField();\r\n\r\n \t//Update\r\n \tJsonObject updateEntry = convertMapToJson(requestInfo.getEntry().get(RallyConstants.UPDATE));\t \r\n \tUpdateRequest updateRequest = new UpdateRequest(ref, updateEntry);\r\n \tUpdateResponse updateResponse = null;\r\n\r\n \ttry {\r\n \t \t\t\tupdateResponse = restApi.update(updateRequest);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"failed to update, message : \" + e.toString() + \"RequestInfo -\" + requestInfo);\r\n\t \tthrow new DefectException(\"failed to update, message : \" + e.toString());\r\n\t\t\t}\r\n\r\n if (updateResponse.wasSuccessful()) {\r\n \tlog.info(String.format(\"Updated %s\", updateResponse.getObject().get(RallyConstants._REF).getAsString())); \r\n } else {\r\n List<String> lstResult = new ArrayList<String>();\r\n for (String err : updateResponse.getErrors()) {\r\n System.err.println(\"\\t\" + err);\r\n lstResult.add(err);\r\n }\r\n log.error(\"Error in updating : \" + lstResult);\r\n throw new DefectException(\"Error in updating : \" + lstResult);\r\n }\r\n } finally {\r\n \tcloseDefect();\r\n \tlog.info(\"End - update\");\r\n }\r\n \t}",
"@Override\r\n\tpublic void update(HttpServletResponse paramHttpServletResponse) {\n\t\t\r\n\t}",
"public UpdateRequest() {\n super(ServiceType.UPDATE);\n }",
"public void update(Object updateMsg) {\n\t\tSystem.out.println(\"\\n-----------------------Update message from server---------------------\");\n\t\tSystem.out.println(updateMsg);\n\t}",
"@Override\r\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\r\n\t}",
"Motivo update(Motivo update);",
"public void update(int i) {\n\t\t System.out.println(\"update..\" + i);\n\t\t try {\n\t\t\t List<Data> messages = new ArrayList<Data>();\n\t\t\t messages.add(new Data(\"testing\" + count++));\n\t\t\t Collection sessions = serverContext.getScriptSessionsByPage(\"/lebah4/push/index.html\");\n\t\t\t Util util = new Util(sessions);\n\t\t\t util.addOptions(\"updates\", messages, \"value\");\n\n\t\t } catch (Exception e) {\n\t\t\t System.out.println(\"Error in Update\");\n\t\t\t e.printStackTrace();\n\t\t }\n\t }",
"@ResponseStatus(code=HttpStatus.OK)\r\n\t@RequestMapping(value=\"/update\", method=RequestMethod.GET)\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"StudentRestController.Update()_________\");\r\n\t}",
"public void update() {\n }",
"boolean update();",
"public void update() {\n\t\t\n\t}",
"@Override\n\tpublic void updateRequest(TestExec testExec, Request request) {\n\t\tthis.updateRequest(request);\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() ;",
"public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }",
"void requestUpdate(UUIDBase uuid, OpResult opResult) {\n if (opResult.isComplete()) {\n requestComplete(uuid, opResult);\n } else {\n _requestInProgress(uuid);\n }\n }",
"public void update() {\n\n }",
"public void update() {\n\n }",
"private void sendUpdateMessage() {\n Hyperium.INSTANCE.getHandlers().getGeneralChatHandler().sendMessage(\n \"A new version of Particle Addon is out! Get it at https://api.chachy.co.uk/download/ParticleAddon/\" + ChachyMod.INSTANCE.getVersion(() -> \"ParticleAddon\"));\n }",
"public void update(){\r\n\t\t\r\n\t}",
"public void update() {\n manager.update();\n }",
"@Override\n\tpublic void update(UpdateInfo updateInfo) {\n\t\t\n\t}",
"@Test\r\n\tpublic void updateUpdate() throws InterruptedException, ExecutionException {\r\n\t\tLOGGER.debugf(\"BEGINN\");\r\n\t\t\r\n\t\t// Given\r\n\t\tfinal Long zahlId = ZAHLUNGSINFORMATION_ID_UPDATE;\r\n \tfinal String neuerKontoinhaber = NEUER_KONTOINHABER;\r\n \tfinal String neuerKontoinhaber2 = NEUER_KONTOINHABER_2;\r\n\t\tfinal String username = USERNAME_ADMIN;\r\n\t\tfinal String password = PASSWORD_ADMIN;\r\n\t\t\r\n\t\t// When\r\n\t\tResponse response = given().header(ACCEPT, APPLICATION_JSON)\r\n\t\t\t\t .pathParameter(ZAHLUNGSINFORMATIONEN_ID_PATH_PARAM, zahlId)\r\n .get(ZAHLUNGSINFORMATIONEN_ID_PATH);\r\n\t\tJsonObject jsonObject;\r\n\t\ttry (final JsonReader jsonReader =\r\n\t\t\t\t getJsonReaderFactory().createReader(new StringReader(response.asString()))) {\r\n\t\t\tjsonObject = jsonReader.readObject();\r\n\t\t}\r\n\r\n \t// Konkurrierendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n \tfinal JsonObjectBuilder job2 = getJsonBuilderFactory().createObjectBuilder();\r\n \tSet<String> keys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob2.add(\"kontoinhaber\", neuerKontoinhaber2);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob2.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tfinal JsonObject jsonObject2 = job2.build();\r\n \tfinal ConcurrentUpdate concurrentUpdate = new ConcurrentUpdate(jsonObject2, ZAHLUNGSINFORMATIONEN_PATH,\r\n \t\t\t username, password);\r\n \tfinal ExecutorService executorService = Executors.newSingleThreadExecutor();\r\n\t\tfinal Future<Response> future = executorService.submit(concurrentUpdate);\r\n\t\tresponse = future.get(); // Warten bis der \"parallele\" Thread fertig ist\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_NO_CONTENT));\r\n\t\t\r\n \t// Fehlschlagendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n\t\tfinal JsonObjectBuilder job1 = getJsonBuilderFactory().createObjectBuilder();\r\n \tkeys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob1.add(\"kontoinhaber\", neuerKontoinhaber);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob1.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tjsonObject = job1.build();\r\n\t\tresponse = given().contentType(APPLICATION_JSON)\r\n\t\t\t\t .body(jsonObject.toString())\r\n\t\t .auth()\r\n\t\t .basic(username, password)\r\n\t\t .put(ZAHLUNGSINFORMATIONEN_PATH);\r\n \t\r\n\t\t// Then\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_CONFLICT));\r\n\t\t\r\n\t\tLOGGER.debugf(\"ENDE\");\r\n\t}",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void updateData() {}",
"@Override\n\tpublic void updateAction(Client input) {\n\t\t\n\t}",
"public void customUpdate(String query) {\n sendUpdate(query);\n }",
"public void update() {\r\n\t\t\r\n\t}",
"@Override\n\tpublic void update(BatimentoCardiaco t, String[] params) {\n\t\t\n\t}",
"Account.Update update();",
"public int updateOrderRequest(OrderEntity orderEntity);",
"public Ordercl askUpdate (Ordercl toUpdate){\n Double value = askDouble(\"Set a new order value: \");\n System.out.println(\"Set a new order status: \");\n String status = in.nextLine();\n Integer client_id = askInt(\"Set a new order receiver (client_id) \");\n \n toUpdate.setOrd_value(value);\n toUpdate.setStatus(status);\n toUpdate.setClient(client_id);\n \n return toUpdate;\n }",
"public void update(String msg){\n //Do something\n\t\tSystem.out.println(\"----------------------------------------------\");\n System.out.println(\"HTTPAction was fired: \" + strHTTPAction);\n\t\tSystem.out.println(\"Observer Type: \" + type);\n System.out.println(\"Message from Observable Activity: \" + msg);\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tsetActionDone(true);\n\t\tif(!action.equals(\"none\")){\n\t\t\ttry{\n\t\t\t\tgenerateAndSendEmail(this.getAction(),this.getObserverHTTPAction(),Integer.toString(getJavaproductModel().getproductId()));\n\t\t\t\tSystem.out.println(\"\\n\\n ===> Your Java Program has just sent an Email successfully. Check your email..\");\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n }",
"public void update(){\r\n }",
"@Override\r\n public void update(String message) {\r\n send(message);\r\n }",
"public String doUpdate(HttpServletRequest request,\n HttpServletResponse response) {\n return null;\n }",
"public void update() throws VcsException;",
"protected abstract void update();",
"protected abstract void update();",
"@Override\n\tpublic Integer update(Map<String, Object> params) throws Exception {\n\t\treturn bankService.update(params);\n\t}",
"private void updateQueryServer(){\n final ProgressDialog loading = ProgressDialog.show(this,\"Updating...\",\"Please wait...\",false,false);\n StringRequest stringRequest = new StringRequest(Request.Method.POST, AppConfig.URL_FORUM_UPDATE,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String s) {\n //Disimissing the progress dialog\n loading.dismiss();\n try {\n //Showing toast message of the response\n Toast.makeText(UpdateQueryActivity.this, s , Toast.LENGTH_LONG).show();\n }catch (Exception e){\n Log.i(\"Volley_Response: \",e.toString());\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError volleyError) {\n //Dismissing the progress dialog\n loading.dismiss();\n try {\n //Showing toast\n Toast.makeText(UpdateQueryActivity.this, volleyError.getMessage().toString(), Toast.LENGTH_LONG).show();\n }catch (Exception e){\n Log.i(\"Volley_error: \",e.toString());\n }\n\n }\n }){\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n //Getting Image Name\n String query = editTextQuery.getText().toString().trim();\n\n //Creating parameters\n Map<String,String> params = new Hashtable<String, String>();\n\n //Adding parameters\n params.put(KEY_QUERY, query);\n\n //returning parameters\n return params;\n }\n };\n\n //Creating a Request Queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n\n //Adding request to the queue\n requestQueue.add(stringRequest);\n }",
"@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}",
"@Override\n\tpublic void update(Map<String, Object> params)\n\t{\n\t}",
"@Override\r\n\tpublic String update() {\n\t\tSystem.out.println(\"updateView.\");\r\n\t\t\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\t\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\t\r\n\t\t\t\trequest.put(\"Id\", bean.getId());\r\n\t\t\t\trequest.put(\"lineName\", bean.getLineName());\r\n\t\t\t\trequest.put(\"lineLink\", bean.getLineLink());\r\n\t\t\t\t//request.put(\"lineImg\", bean.getLineImg());\r\n\t\t\t\treturn \"update\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_preload\";\r\n\t}",
"public boolean update(ModelObject obj);",
"public MRequestUpdate( MRequest parent ) {\n super( parent.getCtx(),0,parent.get_TrxName());\n setClientOrg( parent );\n setR_Request_ID( parent.getR_Request_ID());\n set_ValueNoCheck( \"Created\",parent.getUpdated());\n set_ValueNoCheck( \"CreatedBy\",new Integer( parent.getUpdatedBy()));\n set_ValueNoCheck( \"Updated\",parent.getUpdated());\n set_ValueNoCheck( \"UpdatedBy\",new Integer( parent.getUpdatedBy()));\n\n //\n\n setStartTime( parent.getStartTime());\n setEndTime( parent.getEndTime());\n setResult( parent.getResult());\n setQtySpent( parent.getQtySpent());\n setQtyInvoiced( parent.getQtyInvoiced());\n setM_ProductSpent_ID( parent.getM_ProductSpent_ID());\n setConfidentialTypeEntry( parent.getConfidentialTypeEntry());\n }",
"@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}",
"@Override\n protected void executeUpdate(final String requestId, DSRequest request, final DSResponse response)\n {\n JavaScriptObject data = request.getData();\n final ListGridRecord rec = new ListGridRecord(data);\n ContactDTO testRec = new ContactDTO();\n copyValues(rec, testRec);\n service.update(testRec, new AsyncCallback<Void>()\n {\n @Override\n public void onFailure(Throwable caught)\n {\n response.setStatus(RPCResponse.STATUS_FAILURE);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have NOT been saved!\");\n }\n\n @Override\n public void onSuccess(Void result)\n {\n ListGridRecord[] list = new ListGridRecord[1];\n // We do not receive removed record from server.\n // Return record from request.\n list[0] = rec;\n response.setData(list);\n processResponse(requestId, response);\n SC.say(\"Contact Edit Save\", \"Contact edits have been saved!\");\n }\n });\n }",
"public void update(){\n }",
"public void doUpdate() throws Exception\r\n\t\t{\r\n\t\tmyRouteGroup.update(tuList);\r\n\t\t}",
"public int updateRequestData(Request input) throws SQLException{\n String sqlquery = \"UPDATE Request SET Requester=?, ModelName=?, Worker=?,Ps=?, Status=?, ExecutionTime=?,Accuracy=?, DownloadUrl=? WHERE id=?\";\n PreparedStatement statement = this.connection.prepareStatement(sqlquery);\n this.setCreateAndUpdateStatement(statement,input);\n statement.setInt(9,input.getId());\n return statement.executeUpdate();\n }",
"void update(Information info);",
"UpdateWorkerResult updateWorker(UpdateWorkerRequest updateWorkerRequest);",
"<T extends BaseDto> void executeUpdate(String reqQuery, T req, Connection conn);",
"private void updateForecastRequest() {\n\t\tMyApplication.instance.getServiceManager().getForecastServiceUpdater()\n\t\t\t\t.updateForecastFromServer(new ForecastCallBack() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void forecastLoaded(List<YahooForcast> forecasts) {\n\t\t\t\t\t\tforecastUpdatedFromServiceUpdater(forecasts);\n\t\t\t\t\t}\n\t\t\t\t}, woeid);\n\t}",
"@Action(value=\"update\",results={@Result(name=\"queryAll\",location=\"/zjwqueryMange.jsp\")})\n\tpublic String update()\n\t{\n\t\tkehuDAO.update(kehu);\n\t\t//查询 id kehu\n\t\tkehuList = (ArrayList) kehuDAO.findAll();\n\t\treturn \"queryAll\";\n\t}",
"public abstract void update(Message message);",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"public void attemptToUpdate();",
"public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }",
"public void update(User user);",
"public void update() {\n Dashboard.sendToDash(\"/update Servo \" + id + \" \" + servo.getPosition());\n }",
"public void update(){\n \t//NOOP\n }",
"@Override\r\n\tpublic void update(BbsDto dto) {\n\t\t\r\n\t}",
"private void btnUpdateActionPerformed(java.awt.event.ActionEvent evt) throws IOException {\n\t\tInteger id = Integer.parseInt(txtId.getText()); \n\t\tBoolean Alert = Boolean.parseBoolean(txtAlert.getText());\n\t\tInteger NbMax = Integer.parseInt(txtNbMax.getText());\n\t\tInteger nbactuel = Integer.parseInt(textnbactuel.getText());\n\t\tif (!Alert.toString().isEmpty()\n\t\t\t\t&& !NbMax.toString(NbMax).isEmpty() && !id.toString(id).isEmpty()) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tfinal int SERVER_PORT = Integer.parseInt(serveconfig.getProperty(\"serverportClient\"));\n\t\t\t\tfinal String SERVER_ADDRESS = serveconfig.getProperty(\"serveraddress\");\n\n\t\t\t\tConvertJSON converter = new ConvertJSON();\n\n\t\t\t\tRequest req = new Request();\n\t\t\t\tinfotraffic infotraffic = new infotraffic();\n\t\t\t\t\n\t\t\t\treq.setSource(\"client\");\n\t\t\t\treq.setOperation_type(\"selectID\");\n\t\t\t\treq.setTarget(\"infotraffic\");\n\t\t\t\treq.setObj(id.toString());\n\n\t\t\t\t//client.startConnection(SERVER_ADDRESS, SERVER_PORT);\n\n\t\t\t\tResponse resp = new Response();\n\n\t\t\t\tresp = client.sendMessage(req);\n\t\t\t\tArrayList<String> info = resp.getValues();\n\t\t\t\tif (!info.isEmpty()) {\n\t\t\t\t\t\n\n\t\t\t\t\tupdate(id, Alert, NbMax,nbactuel, client);\n\n\t\t\t\t\tDefaultTableModel model = (DefaultTableModel) tblBollard.getModel();\n\t\t\t\t\tmodel.setRowCount(0);\n\t\t\t\t\tfetch(client);\n\t\t\t\t\t//client.stopConnection();\n\t\t\t\t\talert(\"Update was successful\");\n\n\t\t\t\t} else {\n\t\t\t\t\talert(\"There is no such info\", \"Update error\");\n\t\t\t\t\tclear();\n\t\t\t\t}\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLogger.getLogger(Frame3.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t} else {\n\t\t\talert(\"There is nothing to update :(\", \"No row selected\");\n\t\t}\n\t}",
"public void updateEntity();",
"public MRequestUpdate( Properties ctx,int R_RequestUpdate_ID,String trxName ) {\n super( ctx,R_RequestUpdate_ID,trxName );\n }",
"void update(Order order);",
"void update(User user);"
] | [
"0.7178771",
"0.7100238",
"0.6871218",
"0.68680614",
"0.68680614",
"0.6785826",
"0.67770976",
"0.6640783",
"0.66227734",
"0.6607027",
"0.65667903",
"0.6520186",
"0.6490331",
"0.6477306",
"0.64735746",
"0.6356267",
"0.6342298",
"0.6337627",
"0.6334674",
"0.6304137",
"0.62895",
"0.62811124",
"0.6249857",
"0.62470967",
"0.6235793",
"0.62335336",
"0.62221164",
"0.6221913",
"0.62204194",
"0.6195863",
"0.61825264",
"0.6181244",
"0.6176721",
"0.61748767",
"0.61748767",
"0.61748767",
"0.61748767",
"0.6172311",
"0.61699647",
"0.61687475",
"0.6159512",
"0.6159512",
"0.6147236",
"0.61390966",
"0.61326283",
"0.6107909",
"0.6096302",
"0.6092578",
"0.6092578",
"0.6092578",
"0.6092578",
"0.6092578",
"0.6092578",
"0.6092578",
"0.60867345",
"0.6086422",
"0.6077588",
"0.60747504",
"0.60711426",
"0.6057679",
"0.60534596",
"0.6045142",
"0.6043299",
"0.6041228",
"0.6040507",
"0.6035397",
"0.60306257",
"0.60061824",
"0.60061824",
"0.599809",
"0.5987363",
"0.59605944",
"0.5957388",
"0.59573734",
"0.5956883",
"0.5955054",
"0.5951987",
"0.59457356",
"0.59446895",
"0.59437525",
"0.5940042",
"0.59372085",
"0.5933423",
"0.59274614",
"0.5921708",
"0.5919719",
"0.5914809",
"0.5912798",
"0.5912798",
"0.5912798",
"0.59118074",
"0.5902435",
"0.5902027",
"0.59019804",
"0.5900207",
"0.58967483",
"0.58946157",
"0.58924097",
"0.5887259",
"0.58825046",
"0.5878026"
] | 0.0 | -1 |
latency information from all other nodes has been received by core node and recorded in its Set TODO: update latency | void updateDistMatrix(long timeStamp) {
// for each alive landmark, when its ping results are received by
// the source node,
// we start the clustering computation process
// TODO: remove landmarks that return a subset of results 10-12
Long timer = Long.valueOf(timeStamp);
if (!pendingHSHLandmarks.containsKey(timer)
|| pendingHSHLandmarks.get(timer).IndexOfLandmarks == null) {
System.err.println("$: Null elements!");
return;
}
HSHRecord CurList = pendingHSHLandmarks.get(timer);
int NoOfLandmarks = CurList.IndexOfLandmarks.size();
if(NoOfLandmarks<=0){
System.err.println("$: Empty elements!");
return;
}
HashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords = CurList.pendingLandmarkLatency;
if (LatRecords == null) {
System.err
.println("$: Null HashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords!");
return;
}
int receivedLandmarks = LatRecords.keySet().size();
// empty or incomplete records
if (LatRecords.isEmpty() || receivedLandmarks < 0.8 * NoOfLandmarks) {
System.err.println("$: Null LatRecords!");
return;
}
System.out.println("$: HSH: total landmarks: " + NoOfLandmarks
+ ", received from " + receivedLandmarks);
// use the IndexOfLandmarks as the index of nodes
if (CurList.DistanceMatrix == null
|| CurList.DistanceMatrix.length != NoOfLandmarks) {
CurList.DistanceMatrix = null;
CurList.DistanceMatrix = new double[NoOfLandmarks][NoOfLandmarks];
for (int i = 0; i < NoOfLandmarks; i++) {
for (int j = 0; j < NoOfLandmarks; j++) {
CurList.DistanceMatrix[i][j] = 0;
}
}
}
// fill elements
Iterator<Entry<AddressIF, ArrayList<RemoteState<AddressIF>>>> entrySet = LatRecords
.entrySet().iterator();
while (entrySet.hasNext()) {
Entry<AddressIF, ArrayList<RemoteState<AddressIF>>> tmp = entrySet
.next();
// empty lists
if (tmp.getValue() == null || tmp.getValue().size() == 0) {
continue;
}
// ===============================================================
AddressIF srcNode = tmp.getKey();
// find the index of landmarks
int from = CurList.IndexOfLandmarks.indexOf(srcNode);
Iterator<RemoteState<AddressIF>> ier = tmp.getValue()
.iterator();
if (from < 0) {
// already removed landmarks!
System.out.println("already removed landmarks!");
continue;
}
while (ier.hasNext()) {
RemoteState<AddressIF> NP = ier.next();
if (!CurList.IndexOfLandmarks.contains(NP.getAddress())) {
// not landmarks
continue;
}
int to = CurList.IndexOfLandmarks.indexOf(NP.getAddress());
double rtt = NP.getSample();
if (to < 0 || rtt < 0) {
System.err.println("$: failed to find the landmarks!");
continue;
} else {
// System.out.print(" <"+to+", "+from+", "+rtt+"> ");
// Note: symmetric RTT
if (CurList.DistanceMatrix[to][from] > 0) {
double avgRTT;
if (rtt > 0) {
avgRTT = (rtt + CurList.DistanceMatrix[to][from]) / 2;
} else {
avgRTT = CurList.DistanceMatrix[to][from];
}
CurList.DistanceMatrix[from][to] = avgRTT;
CurList.DistanceMatrix[to][from] = avgRTT;
} else {
// TODO: missing elements
CurList.DistanceMatrix[from][to] = rtt;
CurList.DistanceMatrix[to][from] = rtt;
}
}
}
}
// ======================================================
boolean markZero = false;
for (int i = 0; i < NoOfLandmarks; i++) {
int sum = 0;
for (int column = 0; column < NoOfLandmarks; column++) {
if (i == column) {
continue;
}
if (CurList.DistanceMatrix[i][column] > 0) {
sum++;
}
}
if (sum < 0.7 * NoOfLandmarks) {
markZero = true;
break;
}
}
if (markZero) {
// CurList.DistanceMatrix=null;
System.err.println("$: incomplete CurList.DistanceMatrix!");
return;
}
System.out
.println("\n\n$: HSH: Start HSH clustering computation process!");
// TODO: find accurate clustering number
int cluNum = MatrixOps.findClusteringNum(CurList.DistanceMatrix);
if(cluNum<=0){
System.err.println("the clustering number is <=0");
return;
}
// version control for dimensions
if (CurList.S != null && CurList.S.length == cluNum) {
} else {
CurList.version = System.currentTimeMillis();
}
// initialize the matrixes for computation
CurList.H = new double[NoOfLandmarks][cluNum];
CurList.S = new double[cluNum][cluNum];
// CurList.Coord = new double[cluNum];
for (int i = 0; i < NoOfLandmarks; i++) {
for (int j = 0; j < cluNum; j++) {
CurList.H[i][j] = 0;
}
}
for (int i = 0; i < cluNum; i++) {
for (int j = 0; j < cluNum; j++) {
CurList.S[i][j] = 0;
}
}
// update coordinate vectors
MatrixOps.symmetric_NMF(NoOfLandmarks, cluNum,
CurList.DistanceMatrix, CurList.H, CurList.S);
CurList.alreadyComputedClustering = true;
// TODO: H,S is Null
if (CurList.H == null || CurList.S == null) {
System.err.println("$: after HSH computation, NULL results!");
return;
}
// after centralized computation, the core node should send its H &
// S to all the landmark nodes
issueCoords(timeStamp, CurList.IndexOfLandmarks, new CB1<String>() {
protected void cb(CBResult ncResult, String errorString) {
System.out
.println("Core node has issued its H & S to all landmarks.");
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getLatency() {\n return latency;\n }",
"public Double latency() {\n return this.latency;\n }",
"public Long getTotal_latency() {\n return total_latency;\n }",
"public String getTotal_latency() {\n return total_latency;\n }",
"public BigDecimal getTotalLatency() {\n return totalLatency;\n }",
"private double pingGetLatency(){\n\t\t int NUMBER_OF_PACKTETS=10;\n\t String pingCommand = \"/system/bin/ping -c \" + NUMBER_OF_PACKTETS + \" \" + ip;\n\t String inputLine = \"\";\n\t double avgRtt = 0;\n\n\t try {\n\t // execute the command on the environment interface\n\t Process process = Runtime.getRuntime().exec(pingCommand);\n\t // gets the input stream to get the output of the executed command\n\t BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n\n\t inputLine = bufferedReader.readLine();\n\t while ((inputLine != null)) {\n\t if (inputLine.length() > 0 && inputLine.contains(\"avg\")) { // when we get to the last line of executed ping command\n\t break;\n\t }\n//\t \t if (inputLine.length()>0) inputLine = bufferedReader.readLine();\n\t inputLine = bufferedReader.readLine();\n\t }\n\t }\n\t catch (IOException e){\n\t \t pingParameters=\"Error in ping\";\n\t e.printStackTrace();\n\t }\n\n\t // Extracting the average round trip time from the inputLine string\n\t String afterEqual = inputLine.substring(inputLine.indexOf(\"=\"), inputLine.length()).trim();\n\t String afterFirstSlash = afterEqual.substring(afterEqual.indexOf('/') + 1, afterEqual.length()).trim();\n\t String strAvgRtt = afterFirstSlash.substring(0, afterFirstSlash.indexOf('/'));\n\t avgRtt = Double.valueOf(strAvgRtt);\n\t pingParameters=inputLine;\n\t return avgRtt;\n\t }",
"public Long getMinLatency() {\n return minLatency;\n }",
"public void setTotal_latency(Long total_latency) {\n this.total_latency = total_latency;\n }",
"public int latencyMsgsPerSec()\n\t{\n\t\treturn _latencyMsgsPerSec;\n\t}",
"public String getAvg_latency() {\n return avg_latency;\n }",
"@Override\n public void addNew(int latency) {\n count.getAndIncrement();\n }",
"public Long getAvg_latency() {\n return avg_latency;\n }",
"public void setLatencyParameters(int input, int output){\n\t\tif (input < 10000){Ts = (double)input/500000;}\n\t\tif (input >= 10000 && input <= 50000 ){Ts = (double)input/700000;}\n\t\tif (input > 50000){Ts = (double)input/900000;}\n\t\t\n\t\tif(output < 10000){Tr = (double)output/500000;}\n\t\tif (output >= 10000 && output <= 50000 ){Tr = (double)output/700000;}\n\t\tif (output > 50000){Tr = (double)output/900000;}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*for(int i = 0; i < nSN; i++ ){\n\t\t\tlatencyRemote[i][mthMD] = (Ts + Tp + Tr);\n\t\t\t}*/\n\t\t}",
"public Long getMaxLatency() {\n return maxLatency;\n }",
"public Long getMax_latency() {\n return max_latency;\n }",
"public BigDecimal getAvgLatency() {\n return avgLatency;\n }",
"public void latencyMsgsPerSec(int latencyMsgsPerSec)\n\t{\n\t\t_latencyMsgsPerSec = latencyMsgsPerSec;\n\t}",
"public void addLatency(AbstractBenchmarkState state, BenchmarkInteraction interaction, long latency) {\n // Latency only makes sense if there was an interaction.\n if (interaction == null)\n return;\n String stateName = state.getStateName();\n String interactionName = interaction.fullName;\n addLatency(stateName, interactionName, latency);\n }",
"public String getMax_latency() {\n return max_latency;\n }",
"public void setMinLatency(Long minLatency) {\n this.minLatency = minLatency;\n }",
"void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }",
"public int getShortestPathLatency(Node a, Node b) {\n HashMap<String,Integer> pathWeight = getShortestPath(a,b);\n\n if(pathWeight!=null && pathWeight.size()==1) {\n return pathWeight.entrySet().iterator().next().getValue();\n }\n return 0;\n }",
"public static long getCumulativeLatencyMs() {\n\t\treturn requestsCumulativeLatency.longValue();\n\t}",
"public void setAvg_latency(Long avg_latency) {\n this.avg_latency = avg_latency;\n }",
"private HashMap<String, Integer> getShortestPathBetweenSameNodes(Node node, int latency) {\n HashMap<String,Integer> allPaths = getAllPaths(node,Selection.MAX_LATENCY,latency);\n if(allPaths.isEmpty() && isEdge(node)) {\n allPaths = getShortestPathBetweenSameNodes(node,latency * 2);\n }\n\n String key = Collections.min(allPaths.entrySet(), Map.Entry.comparingByValue()).getKey();\n int value = Collections.min(allPaths.entrySet(), Map.Entry.comparingByValue()).getValue();\n allPaths.clear();\n allPaths.put(key,value);\n\n return allPaths;\n }",
"@Override\n public synchronized void receiveStats(String entityName, PerfMetricSet metricSet) {\n MOREFRetriever morefRetriever = this.context.getMorefRetriever();\n Integer frequencyInSeconds = this.context.getConfiguration().getFrequencyInSeconds();\n\n try {\n String entityNameParsed = \"\";\n logger.debug(\"MetricsReceiver in receiveStats\");\n if (metricSet != null) {\n String cluster = null;\n\n if((metricSet.getEntityName().contains(\"VirtualMachine\")) || (metricSet.getEntityName().contains(\"HostSystem\"))){\n\n entityNameParsed = morefRetriever.parseEntityName(metricSet.getEntityName());\n\n if(entityNameParsed.equals(\"\")){\n logger.warn(\"Received Invalid Managed Entity. Failed to Continue.\");\n return;\n }\n cluster = String.valueOf(clusterMap.get(entityNameParsed.replace(\" \", \"_\")));\n if(cluster == null || cluster.equals(\"\")){\n logger.warn(\"Cluster Not Found for Entity \" + entityNameParsed.replace(\" \", \"_\"));\n return;\n }\n logger.debug(\"Cluster and Entity: \" + cluster + \" : \" + entityNameParsed.replace(\" \", \"_\"));\n }\n\n String instanceName = (this.rules.get(\"instanceName\") != null)? RuleUtils.applyRules(metricSet.getInstanceId(),this.rules.get(\"instanceName\")):metricSet.getInstanceId();\n \n if( ( this.globalInstance == true ) && ( instanceName == null || instanceName.isEmpty() ) )\n {\n instanceName = \"global\";\n }\n\n String statType=metricSet.getStatType();\n\n\n int interval=metricSet.getInterval();\n\n String rollup;\n String hostName = null;\n if(entityName.contains(\"[VirtualMachine]\")) {\n hostName = (this.rules.get(\"hostName\") != null)?RuleUtils.applyRules(entityNameParsed,this.rules.get(\"hostName\")):entityNameParsed;\n }\n\n String eName = Utils.getEName(this.use_entity_type_prefix, this.use_fqdn, entityName, entityNameParsed, this.rules.get(\"eName\"));\n logger.debug(\"Container Name :\" + morefRetriever.getContainerName(eName) + \" Interval: \"+Integer.toString(interval)+ \" Frequency :\"+Integer.toString(frequencyInSeconds));\n\n /*\n Finally node contains these fields (depending on properties)\n graphite_prefix.cluster.eName.groupName.instanceName.metricName_rollup_statType\n graphite_prefix.cluster.eName.groupName.instanceName.metricName_statType_rollup\n\n NOTES: if cluster is null cluster name disappears from node string.\n if instanceName is null instanceName name disappears from node string.\n */\n //Get group name (xxxx) metric name (yyyy) and rollup (zzzz)\n // from \"xxxx.yyyyyy.xxxxx\" on the metricName\n if(cluster != null) {\n cluster = (this.rules.get(\"cluster\") != null)?RuleUtils.applyRules(cluster,this.rules.get(\"cluster\")):cluster;\n\n }\n\n String[] counterInfo = Utils.splitCounterName(metricSet.getCounterName());\n String groupName = counterInfo[0];\n String metricName = counterInfo[1];\n rollup = counterInfo[2];\n\n Map<String,String> graphiteTree = new HashMap<String, String>();\n graphiteTree.put(\"graphite_prefix\", this.props.getProperty(\"prefix\"));\n graphiteTree.put(\"cluster\", cluster); //\n graphiteTree.put(\"eName\", eName); //\n graphiteTree.put(\"groupName\", groupName);\n graphiteTree.put(\"instanceName\", instanceName); //\n graphiteTree.put(\"metricName\", metricName);\n graphiteTree.put(\"statType\", statType);\n graphiteTree.put(\"rollup\", rollup);\n graphiteTree.put(\"counterName\", metricSet.getCounterName());\n graphiteTree.put(\"hostName\", hostName); //\n\n String node = Utils.getNode(graphiteTree, place_rollup_in_the_end, this.isHostMap, this.hostMap);\n\n metricsCount += metricSet.size();\n if(node != null) {\n if(this.instanceMetrics) {\n if(instanceName == null || instanceName.isEmpty()) {\n this.sendMetric(metricSet, node, rollup);\n }\n } else {\n this.sendMetric(metricSet, node, rollup);\n }\n }\n } else {\n logger.debug(\"MetricsReceiver MetricSet is NULL\");\n }\n } catch(Exception e){\n logger.fatal(\"Unexpected error occurred during metrics collection.\", e);\n }\n }",
"public Long getLock_latency() {\n return lock_latency;\n }",
"public void setLock_latency(Long lock_latency) {\n this.lock_latency = lock_latency;\n }",
"public int getTransitionLatency() {\n\t\t\tif (mTransitionLatency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + TRANSITION_LATENCY);\n\t\t\t\tif (list == null || list.isEmpty()) return 0;\n\t\t\t\tint value = 0;\n\t\t\t\ttry { value = Integer.valueOf(list.get(0)); }\n\t\t\t\tcatch (NumberFormatException ignored) {}\n\t\t\t\tmTransitionLatency = value;\t\t\t\n\t\t\t}\n\t\t\treturn mTransitionLatency;\n\t\t}",
"public int getShortestPathLatency(Node node) {\n HashMap<String, Integer> pathWeight = getShortestPath(node);\n if(pathWeight!=null && pathWeight.size()==1) {\n return pathWeight.entrySet().iterator().next().getValue();\n }\n return 0;\n }",
"public static void loadTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tTpsLatHistoryEntity tpsLabHis = new TpsLatHistoryEntity();\n\t\tsetTPSLatencyHistory(envId, conponentId, tpsVaule, latencyValue, todayDate, tpsLabHis);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"@Override\n public void onTrafficStatusUpdate() {\n\n }",
"public Long getTraffic() {\n\t\treturn traffic;\n\t}",
"public void run() {\n\t\ttry {\r\n\t\t\tInetAddress localHost = InetAddress.getLocalHost();\r\n\t\t\tString ip_address = localHost.getHostAddress().trim();\r\n\t\t\tSocket socket = new Socket(this.ip_address_server, this.port_server);\r\n\t\t\twhile (socket.isClosed() == true) {\r\n\t\t\t\tsocket = new Socket(this.ip_address_server, this.port_server);\r\n\t\t\t}\r\n\t\t\tString request = \"HELLO \" + ip_address + \" \" + socket \r\n\t\t\t\t\t+ \" \" + this.client_id;\r\n\t\t\tOutputStream output = socket.getOutputStream();\r\n\t\t\tPrintWriter writer = new PrintWriter(output, true);\t\r\n\t\t\t// while <300 send request\r\n\t\t\tint requests = 0;\r\n\t\t\tlong sum=0;\r\n\t\t\twhile (requests < 300) {\r\n\t\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\t\twriter.println(request);\r\n\t\t\t\tDataInputStream reader = new DataInputStream(new BufferedInputStream(socket.getInputStream()));\r\n\t\t\t\treader.readUTF();\r\n\t\t\t\tint length = reader.readInt();\r\n\t\t\t\tif(length>0){\r\n\t\t\t\t\tbyte[] payload = new byte[length];\r\n\t\t\t\t reader.readFully(payload, 0, payload.length); // read the message\r\n\t\t\t\t}\r\n\t\t\t\trequests++;\r\n\t\t\t\tlong endTime = System.currentTimeMillis();\r\n\t\t\t\tlong time = endTime - startTime;\r\n\t\t\t\tsum+=time;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Client \" + this.client_id + \" has finished after \"\r\n\t\t\t\t\t+ requests + \" requests\");\r\n\t\t\tdouble averTime = sum / 300;\r\n\t\t\tString text = \"Average Communication Latency (\" + this.client_id + \"): \" + averTime + \"\\n\";\r\n\t\t\tFiles.write(Paths.get(this.latencyTimes.getName()), text.getBytes(), StandardOpenOption.APPEND);\r\n\t\t\tsocket.close();\t\r\n\t\t} catch (UnknownHostException ex) {\r\n\t\t\tSystem.out.println(\"Server not found: \" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(\"I/O error: \" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"private void diffusionPhase() {\n if (prevMaxTimestamp == -1 || currMaxTimestamp == -1 || prevMaxTimestamp == currMaxTimestamp) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n if (client.player.getVs() == null\n || inboxHistory.get(father).getLatestTimestamp() > client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = (client.player.getVs() == null) ? availableDescriptionsAtFather : (client.player.getVs()\n .getAvailableDescriptions(prevMaxTimestamp)).getDelta(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(prevMaxTimestamp, currMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n if (client.player.getVs() != null) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n }\n alreadyRequested.update(requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }",
"@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}",
"@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}",
"public LatencyBucket(int latency) {\n this.latency = latency;\n this.count = new AtomicLong(0);\n }",
"public void setTotalLatency(BigDecimal totalLatency) {\n this.totalLatency = totalLatency;\n }",
"public void update(Packet p)\r\n {\r\n int[] min_distance = new int[NetworkSimulator.NUMENTITIES];\r\n boolean table_changed = false;\r\n\r\n System.out.println();\r\n System.out.println(\"--------------------------------\");\r\n System.out.println(\"update() for Node \" + NODE_NUM);\r\n System.out.println(\"--------------------------------\");\r\n System.out.println(\"Packet Sender: Node \" + p.getSource());\r\n\r\n for (int i = 0; i < NetworkSimulator.NUMENTITIES; i++) {\r\n int current_cost = distanceTable[NODE_NUM][i];\r\n int source_cost = distanceTable[NODE_NUM][p.getSource()];\r\n int packet_cost = p.getMincost(i);\r\n\r\n if (source_cost + packet_cost < current_cost) {\r\n min_distance[i] = source_cost + packet_cost;\r\n distanceTable[NODE_NUM][i] = min_distance[i];\r\n table_changed = true;\r\n } else {\r\n min_distance[i] = current_cost;\r\n }\r\n\r\n distanceTable[p.getSource()][i] = packet_cost;\r\n }\r\n\r\n if (table_changed) {\r\n System.out.println(\"*Distance table changed*\");\r\n System.out.println(\"Minimum distances sent: \" + Arrays.toString(min_distance));\r\n\r\n for (int neighbor : NEIGHBORS) {\r\n Packet dtPacket = new Packet(NODE_NUM, neighbor, min_distance);\r\n NetworkSimulator.toLayer2(dtPacket);\r\n }\r\n } else {\r\n System.out.println(\"Distance table not changed.\");\r\n }\r\n\r\n printDT();\r\n }",
"@Stability.Volatile\n public long dispatchLatency() {\n return dispatchLatency;\n }",
"public static void loadK8sTpsLatencyHistory(final int envId, int conponentId , float tpsVaule, float latencyValue) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tK8sTpsLatHistoryEntity tpsLabHis = new K8sTpsLatHistoryEntity();\n\t\tEnvironmentEntity environment = new EnvironmentEntity();\n\t\tenvironment.setEnvironmentId(envId);\n\t\ttpsLabHis.setEnvironment(environment);\n\t\ttpsLabHis.setStatusDate(todayDate);\n\t\t\n\t\tComponentEntity component = new ComponentEntity();\n\t\tcomponent.setComponentId(conponentId);\n\t\ttpsLabHis.setComponent(component);\n\t\ttpsLabHis.setTpsValue(tpsVaule);\n\t\ttpsLabHis.setLatencyValue(latencyValue);\n\t\tsession.save(tpsLabHis);\n\t\ttxn.commit();\n\t}",
"@SuppressLint(\"DefaultLocale\")\n void updateM2Status(boolean connected, int latency, int rate) {\n sendM2Event(\"status\", String.format(\"[%b, %d, %d]\", connected, latency, rate));\n }",
"public void setTotal_latency(String total_latency) {\n this.total_latency = total_latency == null ? null : total_latency.trim();\n }",
"public float getSpeed(List<Integer> collectTime);",
"public EndpointDetail withLatency(Double latency) {\n this.latency = latency;\n return this;\n }",
"protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}",
"public void addCronetLatency(final long cronetLatency) {\n\n totalLatency += cronetLatency;\n numberOfImages++;\n\n if (numberOfImages == ImageRepository.numberOfImages()) {\n final long averageLatency = totalLatency / numberOfImages;\n android.util.Log.i(TAG,\n \"All Cronet Requests Complete, the average latency is \" + averageLatency);\n final TextView cronetTime = (TextView) findViewById(R.id.cronet_time_label);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n cronetTime.setText(String.format(getResources()\n .getString(R.string.images_loaded), averageLatency));\n }\n });\n this.cronetLatency.set(averageLatency);\n }\n }",
"public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}",
"public void setMax_latency(Long max_latency) {\n this.max_latency = max_latency;\n }",
"public int getCpuLoad() { return cpuLoad; }",
"public double getTraffic() {\n return traffic;\n }",
"private void updateNetworkSpeed() {\n Message obtain = Message.obtain();\n obtain.what = 200000;\n long j = 0;\n if (isDemoOrDrive() || this.mDisabled || !this.mIsNetworkConnected) {\n obtain.arg1 = 0;\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n return;\n }\n long currentTimeMillis = System.currentTimeMillis();\n long totalByte = getTotalByte();\n if (totalByte == 0) {\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n totalByte = getTotalByte();\n }\n long j2 = this.mLastTime;\n if (j2 != 0 && currentTimeMillis > j2) {\n long j3 = this.mTotalBytes;\n if (!(j3 == 0 || totalByte == 0 || totalByte <= j3)) {\n j = ((totalByte - j3) * 1000) / (currentTimeMillis - j2);\n }\n }\n obtain.arg1 = 1;\n obtain.obj = Long.valueOf(j);\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = currentTimeMillis;\n this.mTotalBytes = totalByte;\n postUpdateNetworkSpeedDelay((long) this.mNetworkUpdateInterval);\n }",
"private void sendTrafficSummary() {\n\t\ttry {\n\t\t\tregistry.getSender().sendData(\n\t\t\t\t\tnew OverlayNodeReportsTrafficSummary(myAssignedID,\n\t\t\t\t\t\t\tsendTracker, relayTracker, sendSummation,\n\t\t\t\t\t\t\treceiveTracker, receiveSummation).getBytes());\n\t\t\tthis.sendTracker = 0; // reset all counters after reporting\n\t\t\tthis.relayTracker = 0;\n\t\t\tthis.receiveTracker = 0;\n\t\t\tthis.sendSummation = 0;\n\t\t\tthis.receiveSummation = 0;\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble reporting traffic summary or closing sockets.\");\n\t\t}\n\t}",
"private static void getStat(){\n\t\tfor(int key : Initial_sequences.keySet()){\n\t\t\tint tmNo = Initial_sequences.get(key);\n\t\t\tif (tmNo > 13){\n\t\t\t\ttmInitLarge ++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(tmInit.containsKey(tmNo)){\n\t\t\t\t\tint temp = tmInit.get(tmNo);\n\t\t\t\t\ttemp++;\n\t\t\t\t\ttmInit.put(tmNo, temp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttmInit.put(tmNo, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Go through all the proteins in SC\n\t\tfor(int key : SC_sequences.keySet()){\n\t\t\tint tmNo = SC_sequences.get(key);\n\t\t\t\n\t\t\tint loop = Loop_lengths.get(key);\n\t\t\tint tmLen = TM_lengths.get(key);\n\t\t\t\n\t\t\tLoopTotalLen = LoopTotalLen + loop;\n\t\t\tTMTotalLen = TMTotalLen + tmLen;\n\t\t\t\n\t\t\t\n\t\t\tif (tmNo > 13){\n\t\t\t\ttmSCLarge ++;\n\t\t\t\tLoopLargeLen = LoopLargeLen + loop;\n\t\t\t\tTMLargeLen = TMLargeLen + tmLen;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(tmSC.containsKey(tmNo)){\n\t\t\t\t\tint temp = tmSC.get(tmNo);\n\t\t\t\t\ttemp++;\n\t\t\t\t\ttmSC.put(tmNo, temp);\n\t\t\t\t\t\n\t\t\t\t\tint looptemp = Loop_SC.get(tmNo);\n\t\t\t\t\tlooptemp = looptemp + loop;\n\t\t\t\t\tLoop_SC.put(tmNo, looptemp);\n\t\t\t\t\t\n\t\t\t\t\tint tmlenTemp = TM_len_SC.get(tmNo);\n\t\t\t\t\ttmlenTemp = tmlenTemp + tmLen;\n\t\t\t\t\tTM_len_SC.put(tmNo, tmlenTemp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttmSC.put(tmNo, 1);\n\t\t\t\t\t\n\t\t\t\t\tLoop_SC.put(tmNo, 1);\n\t\t\t\t\tTM_len_SC.put(tmNo, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void init()\n {\n boolean tHotspot = true;\n // Figures below valid for 1000TPS\n double tGcRateFactor = 1000.0D / ((1000.0D * 1000.0) * cClientTransPerMicro) ;\n if (tHotspot)\n {\n // tax average 6ms, max 65, every 20 seconds\n // me1 27ms, max 83ms, every 20 seconds\n // me1s 27ms, max 87, every 22seconds\n mTaxJvm = new GcService(9908.0D*1000 * tGcRateFactor, 9.0D*1000); \n mMeJvm = new GcService(2509.0D*1000 * tGcRateFactor, 17.0D*1000); \n mMeStandbyJvm = new GcService(2257.0D*1000 * tGcRateFactor, 15.0D*1000);\n }\n else\n {\n // Metronome \n mTaxJvm = new GcService(100*1000, 500);\n mMeJvm = new GcService(100*1000, 500);\n mMeStandbyJvm = new GcService(100*1000, 500);\n }\n\n String tName;\n mClient.init(new ServerConfig(mClient, mClientTaxNwDelay, \"Client\", cClientCount, cClientCount, 0.1));\n {\n mClientTaxNwDelay.init(new ServerConfig(mClientTaxNwDelay, mTaxTcp, \"ClientTaxNwDelay\", 1, 1, 0.1)); \n {\n tName = \"TaxServer\";\n mTaxTcp.init(new ServerConfig(mTaxJvm, mTaxTcp, mTaxPool, tName + \"_Tcp\", 1, 1, 22)); \n mTaxPool.init(new ServerConfig(mTaxJvm, mTaxPool, mTaxMeNwDelay, tName + \"_ServerPool\", 5, 150, 11)); \n\n {\n mTaxMeNwDelay.init(new ServerConfig(mTaxMeNwDelay, mMePrimaryTcp, \"TaxMeNwDelay\", 1, 1, 100)); \n {\n tName=\"MatchingEngine\";\n mMePrimaryTcp.init(new ServerConfig(mMeJvm, mMePrimaryTcp, mMePrimaryServerPool, tName + \"Tcp\", 1, 1, 14));\n mMePrimaryServerPool.init(new ServerConfig(mMeJvm, mMePrimaryServerPool, mMePrimarySorter, tName + \"_ServerPool\", 5, 150, 12)); \n mMePrimarySorter.init(new ServerConfig(mMeJvm, mMePrimarySorter, mMePrimaryChainUnit0, tName + \"_Sorter\", 1, 1, 13));\n mMePrimaryChainUnit0.init(new ServerConfig(mMeJvm, mMePrimaryChainUnit0, mMePrimaryPostChain, tName + \"_ChainUnit0\", 1, 1, 59)); \n mMePrimaryBatchSender.init(new ServerConfig(mMeJvm, mMePrimaryBatchSender, mMeMesNwDelay, tName + \"_BatchSender\", 10, 10, 1)); \n mMePrimaryRecoveryLog.init(new ServerConfig(mMeJvm, mMePrimaryRecoveryLog, mMePrimaryPostChain, tName + \"_RecoveryLog\", 1, 1, 50)); \n mMePrimaryPostChain.init(new ServerConfig(mMeJvm, mMePrimaryPostChain, mMePrimaryResponsePool, tName + \"_PostChain\", 1, 1, 46)); \n mMePrimaryResponsePool.init(new ServerConfig(mMeJvm, mMePrimaryResponsePool, mMeTaxNwDelay, tName + \"_ResponsePool\", 5, 25, 16)); \n\n {\n mMeMesNwDelay.init(new ServerConfig(mMeMesNwDelay, mMeStandbyTcp, \"MeMesNwDelay\", 1, 1, 90)); \n {\n tName=\"MatchingEngineStandby\";\n mMeStandbyTcp.init(new ServerConfig(mMeStandbyJvm, mMeStandbyTcp, mMeStandbyServerPool, tName + \"_Tcp\", 1, 1, 13)); \n mMeStandbyServerPool.init(new ServerConfig(mMeStandbyJvm, mMeStandbyServerPool, mMesMeNwDelay, tName + \"_ServerPool\", 5, 150, 18)); \n }\n mMesMeNwDelay.init(new ServerConfig(mMesMeNwDelay, mMePrimaryPostChain, \"MesMeNwDelay\", 1, 1, 90)); \n }\n }\n mMeTaxNwDelay.init(new ServerConfig(mMeTaxNwDelay, mTaxCollector, \"MeTaxNwDelay\", 1, 1, 100));\n }\n } \n mTaxCollector.init(new ServerConfig(mTaxJvm, mTaxCollector, mTaxClientNwDelay, tName + \"_Collector\", 1, 1, 0.1)); \n mTaxClientNwDelay.init(new ServerConfig(mTaxClientNwDelay, null, \"TaxClientNwDelay\", 1, 1, 0.1));\n }\n }",
"public void showServerStats(double totalTime) {\n System.out.println(\"ServerID \" + \"Efficiency \" + \"CustomersServed \" + \"IdleTime \");\n for(int i = 0; i < cntServer; i++){\n serverArray[i].idleTime = totalTime - serverArray[i].busyTime;\n System.out.println(serverArray[i].toString());\n }\n }",
"private void cekStatusGPSpeed() {\n\t\t\n\t\tlokasimanager = (LocationManager) Kecepatan.this.getSystemService(Context.LOCATION_SERVICE);\n\t\t\n\t\tcekGpsNet = new CekGPSNet(Kecepatan.this);\n\t\tisInternet = cekGpsNet.cekStatsInternet();\n\t\tisNetworkNyala = cekGpsNet.cekStatsNetwork();\n\t\tisGPSNyala = cekGpsNet.cekStatsGPS();\n\t\t\n\t\tstatusInternet = cekGpsNet.getKondisiNetwork(isInternet, isNetworkNyala);\n\t\tstatusGPS = cekGpsNet.getKondisiGPS(isGPSNyala);\n\t\t\n\t\tLog.w(\"STATUS GPS INTERNET\", \"GPS \" + statusGPS + \" INTERNET \" + statusInternet);\n\t\t\n\t\tif (statusInternet == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListNetwork);\n\t\t\tLog.w(\"Network\", \"Network\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG NETWORK\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif (statusGPS == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListGPS);\n\t\t\tLog.w(\"GPS\", \"GPS\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG GPS\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public void setMaxLatency(Long maxLatency) {\n this.maxLatency = maxLatency;\n }",
"public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }",
"@Test\n public void testExpandNotificationsLatency() throws Exception {\n if (isTracesEnabled()) {\n createTraceDirectory();\n }\n for (int i = 0; i < mIterationCount; i++) {\n if (null != mAtraceLogger) {\n mAtraceLogger.atraceStart(mTraceCategoriesSet, mTraceBufferSize,\n mTraceDumpInterval, mRootTrace,\n String.format(\"%s-%d\", TEST_EXPANDNOTIFICATIONS, i));\n }\n swipeDown();\n mDevice.waitForIdle();\n swipeUp();\n mDevice.waitForIdle();\n\n // Wait for clocks to settle down\n SystemClock.sleep(CLOCK_SETTLE_DELAY);\n if (null != mAtraceLogger) {\n mAtraceLogger.atraceStop();\n }\n\n }\n }",
"public SocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)\r\n/* 196: */ {\r\n/* 197:204 */ this.javaSocket.setPerformancePreferences(connectionTime, latency, bandwidth);\r\n/* 198:205 */ return this;\r\n/* 199: */ }",
"public static void throughput(BasicGraphService bgs) {\n \tRandom random = new Random();\n \tlong timer = System.currentTimeMillis();\n\t\tlong dif = 0l;\n\t\tint ops = 0;\n\t\twhile(dif < 1000) {\n\t\t\tint key = random.nextInt(maxRandInt);\n\t\t\tbgs.getConnections(key);\n\t\t\tdif = System.currentTimeMillis() - timer;\n\t\t\tops++;\n\t\t}\n\t\tdebug(debug, \"operations in 1 second: \" + ops);\n }",
"public static void benchmarkAttrUpdateTime()\n\t{\n\t\t\n\t\tString selectTableSQL = \"SELECT HEX(nodeGUID) as nodeGUID FROM subspaceId0DataStorage\";\n\t\t\n\t\tConnection myConn = null;\n\t\tStatement statement = null;\n\t\ttry\n\t\t{\n\t\t\tmyConn = dsInst.getConnection();\n\t\t\t\n\t\t\tstatement = (Statement) myConn.createStatement();\n\t\t\t\n\t\t\tResultSet rs = statement.executeQuery(selectTableSQL);\n\t\t\t\n\t\t\tVector<String> guidList = new Vector<String>();\n\t\t\t\n\t\t\twhile( rs.next() )\n\t\t\t{\n\t\t\t\t//Retrieve by column name\n\t\t\t\t//double value \t = rs.getDouble(\"value\");\n\t\t\t\tString nodeGUID = rs.getString(\"nodeGUID\");\n\t\t\t\tguidList.add(nodeGUID);\n\t\t\t}\n\t\t\t\n\t\t\tVector<Double> resultlist = new Vector<Double>();\n\t\t\tRandom rand = new Random();\n\t\t\tfor(int i=0; i<100; i++)\n\t\t\t{\n\t\t\t\tString updateGUID = guidList.get(rand.nextInt(guidList.size()));\n\t\t\t\tString updateAttr = \"attr\"+rand.nextInt(6);\n\t\t\t\tdouble udpateVal = rand.nextDouble()*1500.0;\n\t\t\t\t\n\t\t\t\tString updateTableSQL = \"UPDATE subspaceId0DataStorage \"+\n\t\t\t\t\t\t\" SET \"+updateAttr+\" = \"+udpateVal+\" WHERE nodeGUID=X'\"+updateGUID+\"'\";\n\t\t\t\t\n\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\tstatement.executeUpdate(updateTableSQL);\n\t\t\t\tlong end = System.currentTimeMillis();\n\t\t\t\t\n\t\t\t\tdouble timeTaken = end-start;\n\t\t\t\tresultlist.add(timeTaken);\n\t\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t} catch (InterruptedException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"benchmarkAttrUpdateTime: Update times \"+\n\t\t\tStatisticsClass.toString(StatisticsClass.computeStats(resultlist)));\n\t\t} catch (SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} finally\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif( statement != null )\n\t\t\t\t\tstatement.close();\n\t\t\t\t\n\t\t\t\tif( myConn != null )\n\t\t\t\t\tmyConn.close();\n\t\t\t\t\n\t\t\t} catch (SQLException e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void run() {\n\t\t\n\t\tfor (int i=0; i<cnnode.NeigList1.size(); i++) {\n\t\t\tcnnode.FormerNeigList1.get(i).SetSendNum(cnnode.NeigList1.get(i).GetSendNum());\n\t\t\tcnnode.FormerNeigList1.get(i).SetReceiveNum(cnnode.NeigList1.get(i).GetReceiveNum());\n\t\t\tSystem.out.print(\"[\"+System.currentTimeMillis()+\"] Link to Node \"+ cnnode.FormerNeigList1.get(i).GetNeigPort() +\": \" + cnnode.FormerNeigList1.get(i).GetSendNum() + \" packets sent, \" + (cnnode.FormerNeigList1.get(i).GetSendNum()-cnnode.FormerNeigList1.get(i).GetReceiveNum()) + \" packets lost, loss rate \");\n\t\t\tSystem.out.printf(\"%.2f\\n\", (float)(cnnode.FormerNeigList1.get(i).GetSendNum()-cnnode.FormerNeigList1.get(i).GetReceiveNum())/cnnode.FormerNeigList1.get(i).GetSendNum());\n\t\t}\n\t}",
"public static int getPlayerLatency(final Player player)\n {\n if (player == null) return -1;\n\n try\n {\n return (int) Reflection.getFieldValue(NMSNetwork.getPlayerHandle(player), \"ping\");\n }\n catch (InvocationTargetException | IllegalAccessException | NoSuchFieldException e)\n {\n PluginLogger.error(\"Unable to retrieve {0}'s latency.\", e, player.getName());\n return -1;\n }\n }",
"public double getTrafficFromEachSuperAS() {\n return this.trafficFromSuperAS;\n }",
"double smem_lti_activate(long lti, boolean add_access, long num_edges) throws SQLException\n {\n // TODO: SMem Timers\n // //////////////////////////////////////////////////////////////////////////\n // my_agent->smem_timers->act->start();\n // //////////////////////////////////////////////////////////////////////////\n \n long time_now;\n if(add_access)\n {\n time_now = this.smem_max_cycle++;\n \n if((this.params.activation_mode.get() == DefaultSemanticMemoryParams.ActivationChoices.base_level)\n && (this.params.base_update.get() == DefaultSemanticMemoryParams.BaseUpdateChoices.incremental))\n {\n long time_diff;\n \n // for ( std::set< int64_t >::iterator\n // b=my_agent->smem_params->base_incremental_threshes->set_begin();\n // b!=my_agent->smem_params->base_incremental_threshes->set_end();\n // b++ )\n for(Iterator<Long> b = this.params.base_incremental_threshes.get().iterator(); b.hasNext();)\n {\n Long next = b.next();\n \n if(next > 0)\n {\n time_diff = (time_now - next);\n \n if(time_diff > 0)\n {\n List<Long> to_update = new ArrayList<>();\n \n db.lti_get_t.setLong(1, time_diff);\n try(ResultSet rs = db.lti_get_t.executeQuery();)\n {\n \n // while (\n // my_agent->smem_stmts->lti_get_t->execute() ==\n // soar_module::row )\n \n while(rs.next())\n {\n to_update.add(rs.getLong(0 + 1));\n }\n }\n \n // for ( std::list< smem_lti_id >::iterator\n // it=to_update.begin(); it!=to_update.end(); it++ )\n for(Long l : to_update)\n {\n smem_lti_activate(l, false);\n }\n }\n }\n }\n }\n }\n else\n {\n time_now = smem_max_cycle;\n \n this.stats.act_updates.set(this.stats.act_updates.get() + 1);\n }\n \n // access information\n long prev_access_n = 0;\n @SuppressWarnings(\"unused\")\n long prev_access_t = 0;\n long prev_access_1 = 0;\n {\n // get old (potentially useful below)\n db.lti_access_get.setLong(1, lti);\n try(ResultSet rs = db.lti_access_get.executeQuery())\n {\n rs.next();\n prev_access_n = rs.getLong(0 + 1);\n prev_access_t = rs.getLong(1 + 1);\n prev_access_1 = rs.getLong(2 + 1);\n }\n \n // set new\n if(add_access)\n {\n db.lti_access_set.setLong(1, (prev_access_n + 1));\n db.lti_access_set.setLong(2, time_now);\n db.lti_access_set.setLong(3, ((prev_access_n == 0) ? (time_now) : (prev_access_1)));\n \n db.lti_access_set.setLong(4, lti);\n db.lti_access_set.executeUpdate();\n }\n }\n \n // get new activation value (depends upon bias)\n double new_activation = 0.0;\n ActivationChoices act_mode = this.params.activation_mode.get();\n if(act_mode == ActivationChoices.recency)\n {\n new_activation = time_now;\n }\n else if(act_mode == ActivationChoices.frequency)\n {\n new_activation = prev_access_n + ((add_access) ? (1) : (0));\n }\n else if(act_mode == ActivationChoices.base_level)\n {\n if(prev_access_n == 0)\n {\n if(add_access)\n {\n db.history_add.setLong(1, lti);\n db.history_add.setLong(2, time_now);\n db.history_add.executeUpdate();\n }\n \n new_activation = 0;\n }\n else\n {\n if(add_access)\n {\n db.history_push.setLong(1, time_now);\n db.history_push.setLong(2, lti);\n db.history_push.executeUpdate();\n }\n \n new_activation = smem_lti_calc_base(lti, time_now + ((add_access) ? (1) : (0)), prev_access_n + ((add_access) ? (1) : (0)), prev_access_1);\n }\n }\n \n // get number of augmentations (if not supplied)\n if(num_edges == SMEM_ACT_MAX)\n {\n ResultSet rs = null;\n try\n {\n db.act_lti_child_ct_get.setLong(1, lti);\n rs = db.act_lti_child_ct_get.executeQuery();\n rs.next();\n num_edges = rs.getLong(0 + 1);\n }\n finally\n {\n rs.close();\n }\n }\n \n // only if augmentation count is less than threshold do we associate\n // with edges\n if(num_edges < this.params.thresh.get())\n {\n // activation_value=? WHERE lti=?\n db.act_set.setDouble(1, new_activation);\n db.act_set.setLong(2, lti);\n db.act_set.executeUpdate();\n }\n \n // always associate activation with lti\n {\n // activation_value=? WHERE lti=?\n db.act_lti_set.setDouble(1, new_activation);\n db.act_lti_set.setLong(2, lti);\n db.act_lti_set.executeUpdate();\n }\n \n // TODO: SMem Timers\n // //////////////////////////////////////////////////////////////////////////\n // my_agent->smem_timers->act->stop();\n // //////////////////////////////////////////////////////////////////////////\n \n return new_activation;\n }",
"private SimulationReport calculateDataPerNode(SimulationReport simulationReport){\n // should return list, since it's per node\n int meanRunTimePerNode;\n int totalFailedRequests = 0;\n Map<String, Map<String, Long>> nodeMeanResponseTimes = new HashMap<String, Map<String, Long>>();\n\n // This seems like it may be overly complex; it seems like we're keeping a handle to several\n // different data structures when a single map might suffice. We also probably should clean\n // up the class / method names a bit to make it more clear what the cardinality is between\n // a \"Simulation\" and a \"Node\".\n List<SimulationConfig> simulationConfig = simulationReport.getSimulationConfig();\n Map<String, NodeSimulationData> simulationData = simulationReport.getNodeSimulationData();\n\n for (Map.Entry<String, NodeSimulationData> entry : simulationData.entrySet()) {\n String groupName = entry.getKey();\n NodeSimulationData nodeSimulationData = entry.getValue();\n SimulationData groupData = nodeSimulationData.getGroupData();\n List<SimulationData> requestData = nodeSimulationData.getRequestData();\n if (requestData.size() > 0){\n for (SimulationData sd : requestData){\n logger.println(\"[PuppetGatling] - Getting mean run time for: \" + sd.getKey() + \" (\" + sd.getMeanResponseTime() + \")\");\n totalFailedRequests += sd.getFailedRequests();\n\n String cat = sd.getRequestName().trim();\n if (PIE_CHART_CATEGORIES.contains(cat)) {\n addNodeMeanResponseTime(nodeMeanResponseTimes, sd.getKey(), cat, (long) sd.getMeanResponseTime());\n }\n }\n\n logger.println(\"Here are the mean response times:\");\n for (Map.Entry<String, Map<String, Long>> node : nodeMeanResponseTimes.entrySet()) {\n logger.println(\"\\tNODE: '\" + node.getKey() + \"'\");\n for (String cat : node.getValue().keySet()) {\n logger.println(\"\\t\\t\" + cat + \": '\" + node.getValue().get(cat) + \"'\");\n }\n }\n\n\n SimulationConfig localSimConfig = getSimConfig(simulationConfig, entry.getKey());\n if (localSimConfig == null){\n // needs a better way to quit out of this\n logger.println(\"[PuppetGatling] - ERROR: There is no sim config by the name '\" + entry.getKey() + \"'\");\n throw new IllegalStateException(\"[PuppetGatling] - ERROR: There is no sim config by that name\");\n }\n else{\n meanRunTimePerNode = groupData.getMeanResponseTime();\n logger.println(\"[PuppetGatling] - Here is the mean run time per node of \" + localSimConfig.getSimulationName() + \": \" + meanRunTimePerNode);\n\n\n addNodeMeanResponseTime(nodeMeanResponseTimes, getSimConfig(simulationConfig, entry.getKey()).getSimulationName(), \"agent\", meanRunTimePerNode);\n\n // TODO: I don't know if this is exactly right. I think that\n // when we're in this loop, we, are looping over the\n // Sims, and there may be multiple nodes in a sim?\n String node = getSimConfig(simulationConfig, entry.getKey()).getSimulationName();\n Map<String, Long> times = nodeMeanResponseTimes.get(node);\n int sum = 0;\n for (String cat : PIE_CHART_CATEGORIES) {\n if (times.containsKey(cat)) {\n logger.println(\"About to look up time for node '\" + node + \"', cat: '\" + cat + \"'\");\n sum += times.get(cat);\n } else {\n logger.println(\"[PuppetGatling] - ERROR: Request \\\"\" + cat + \"\\\" does not have an associated time. The request likely failed.\");\n }\n }\n long otherTime = meanRunTimePerNode - sum;\n addNodeMeanResponseTime(nodeMeanResponseTimes, node, \"other\", otherTime);\n }\n }\n }\n\n simulationReport.setNodeMeanResponseTimes(nodeMeanResponseTimes);\n\n simulationReport.setTotalFailedRequests(totalFailedRequests);\n return simulationReport;\n }",
"public java.lang.Boolean getLatencySensitivitySupported() {\r\n return latencySensitivitySupported;\r\n }",
"public int getNetworkPFOutputTraffic() { return networkPFOutputTraffic; }",
"public void observeNanoLatency(long nanoLatency, int times) {\n if (nanoLatency < 0) {\n return;\n }\n /* Round the latency to determine where to mark the histogram. */\n final int millisRounded =\n (int) ((nanoLatency + (1000000L / 2)) / 1000000L);\n observe(millisRounded, times);\n }",
"public static Map<Integer, List<Float>> getTpsLatencyHsitory(int envId, String platform) {\n\t\tString queryStr = null;\n\t\tif(platform.equals(\"K8s\")){\n\t\t\tqueryStr = HQLConstants.GET_K8S_TPS_LAT_HISTORY;\n\t\t}else if(platform.equals(\"Mesos\")){\n\t\t\tqueryStr = HQLConstants.GET_MESOS_TPS_LAT_HISTORY;\n\t\t}else{\n\t\t\tlogger.error(\"Not a valid platform\");\n\t\t}\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(queryStr);\n\t\tquery.setInteger(\"envId\", envId);\n\t\tquery.setDate(\"statusDate\", todayDate);\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> resultList = query.list();\n\t\ttxn.commit();\n\t\tMap<Integer, List<Float>> mapTpsLat = new HashMap<Integer, List<Float>>();\n\t\tList<Float> listTpsLat = null;\n\t\tfor(Object[] resultObj : resultList){\n\t\t\tFloat tpsValue = (Float)resultObj[0];\n\t\t\tFloat latencyValues = (Float)resultObj[1];\n\t\t\tInteger comId = (Integer)resultObj[2];\n\t\t\tlistTpsLat = new ArrayList<Float>();\n\t\t\tlistTpsLat.add(tpsValue);\n\t\t\tlistTpsLat.add(latencyValues);\n\t\t\tmapTpsLat.put(comId, listTpsLat);\n\t\t}\n\t\treturn mapTpsLat;\n\t}",
"public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}",
"public void collect() {\n _collectorMotor.set(collectSpeed);\n //system..out.println(\"Collector Power: \" + _collectorMotor.get());\n }",
"private void computePerformance(int ticks) {\n System.out.println(\"Avergae number of packets in queue: \" + (_cumulativePacketsInQueue / (double)ticks));\n \n // Average time spent in queue per packet\n System.out.println(\"Average sojurn time: \" + (_totalSojurnTime / (double)_numPacketsProcessed));\n\n // Percentage idle time\n System.out.println(\"Percentage idle time: \" + ((_totalIdleTime / (double)ticks) * 100) + \"%\");\n\n // Packet loss probability\n System.out.println(\"Packet loss proability: \" + ((_numPacketsDropped / (double)(_numPacketsDropped + _numPacketsProcessed)) * 100) + \"%\");\n }",
"public void run() {\n\t\tdouble t0 = System.nanoTime()/sec;\n\t\tnow = 0;\n\t\tdouble helloTime, pvSendTime;\n\t\thelloTime = pvSendTime = now;\n\t\twhile (!quit) {\n\t\t\tnow = System.nanoTime()/sec - t0;\n\t\t\t// if it's time to send hello packets, do it\n\t\t\tif(helloTime + 1 < now){//send once every second\n\t\t\t\thelloTime = now;\n\t\t\t\tsendHellos();\n\t\t\t}\n\t\t\t// else if it's time to send advertisements, do it\n\t\t\telse if(pvSendTime + 10 < now){//once every 10 seconds\n\t\t\t\tpvSendTime = now;\n\t\t\t\tsendAdverts();\n\t\t\t}\n\n\t\t\t// else if the forwarder has an incoming packet\n\t\t\t// to be processed, retrieve it and process it\n\t\t\telse if(fwdr.incomingPkt()){\n\t\t\t\thandleIncoming();\n\t\t\t}\n\n\t\t\t// else nothing to do, so take a nap\n\t\t\telse{\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(1);\n\t\t\t\t}\n\t\t\t\tcatch(InterruptedException e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tString s = String.format(\"Router link cost statistics\\n\" + \n\t\t\t\t\"%8s %8s %8s %8s %8s\\n\",\"peerIp\",\"count\",\"avgCost\",\n\t\t\t\t\"minCost\",\"maxCost\");\n\t\tfor (LinkInfo lnk : lnkVec) {\n\t\t\tif (lnk.count == 0) continue;\n\t\t\ts += String.format(\"%8s %8d %8.3f %8.3f %8.3f\\n\",\n\t\t\t\t\tUtil.ip2string(lnk.peerIp), lnk.count,\n\t\t\t\t\tlnk.totalCost/lnk.count,\n\t\t\t\t\tlnk.minCost, lnk.maxCost);\n\t\t}\n\t\tSystem.out.println(s);\n\t}",
"public Float getTraffic() {\r\n return traffic;\r\n }",
"public void setAvgLatency(BigDecimal avgLatency) {\n this.avgLatency = avgLatency;\n }",
"@Override\n\tpublic Map<String, String> stats(InetSocketAddress arg0, long arg1)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}",
"private void getCpuInfo() {\n\t\ttry {\n\t\t\tRandomAccessFile reader = new RandomAccessFile(\"/proc/stat\", \"r\");\n\t\t\tString load = reader.readLine();\n\n\t\t\tString[] toks = load.split(\" \");\n\n\t\t\tlong idle1 = Long.parseLong(toks[5]);\n\t\t\tlong cpu1 = Long.parseLong(toks[2]) + Long.parseLong(toks[3])\n\t\t\t\t\t+ Long.parseLong(toks[4]) + Long.parseLong(toks[6])\n\t\t\t\t\t+ Long.parseLong(toks[7]) + Long.parseLong(toks[8]);\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t\t//get process name list in this time\n\t\t\tgetTopCpu();\n\n\t\t\treader.seek(0);\n\t\t\tload = reader.readLine();\n\t\t\treader.close();\n\n\t\t\ttoks = load.split(\" \");\n\n\t\t\t// find right data is the key\n\t\t\t// System.out.println(toks[0]+\" 1 \"+toks[1]+\" 2 \"+toks[2]+\" \"+toks[3]+\" \"+toks[4]+\" \"+toks[5]+\" \"+toks[6]+\" \"+toks[7]+\" 8 \"+toks[8]);\n\t\t\tlong idle2 = Long.parseLong(toks[5]);\n\t\t\tlong cpu2 = Long.parseLong(toks[2]) + Long.parseLong(toks[3])\n\t\t\t\t\t+ Long.parseLong(toks[4]) + Long.parseLong(toks[6])\n\t\t\t\t\t+ Long.parseLong(toks[7]) + Long.parseLong(toks[8]);\n\n\t\t\t// System.out.println(idle2+\" \"+cpu2);\n\t\t\trate = (float) (cpu2 - cpu1)\n\t\t\t\t\t/ (float) ((cpu2 + idle2) - (cpu1 + idle1));\n\t\t\t// System.out.println(rate);\n\t\t\tint temprate = (int) ((rate + 0.05) * 100);\n\t\t\tif (temprate < 0 || temprate > 100) {\n\t\t\t\t// System.out.println(toks[0]+\" 1 \"+toks[1]+\" 2 \"+toks[2]+\" \"+toks[3]+\" \"+toks[4]+\" \"+toks[5]+\" \"+toks[6]+\" \"+toks[7]+\" 8 \"+toks[8]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcpuChart.addData(temprate);\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public long logicalRequestLatency() {\n long createdAt = request.createdAt();\n if (logicallyCompletedAt == 0 || logicallyCompletedAt <= createdAt) {\n return 0;\n }\n return logicallyCompletedAt - createdAt;\n }",
"public void readPullTrafficSummary() {\n\t\ttry {\n\t\t\tMessage message = new TrafficSummary (node.ipAddr,node.portNum, node.getSendTracker(), node.getSendSummation(),node.getReceiveTracker(),node.getReceiveSummation(),node.getRelayTracker());\n\t\t\tSocket socketReturn = node.getConnections().getSocketWithName(node.getRegistryName());\n\t\t\tnew TCPSender (socketReturn, message);\n\t\t} catch (IOException e) { e.printStackTrace();}\n\t\tnode.resetTrafficStats();\t\t//reset node statistics after sent for ease of testing multiple runs\n\t}",
"private void totalCPUCores_EntityChanged(Object sender, EventArgs args) {\n removeCPUListeners();\n\n behavior.totalCpuCoresChanged();\n\n // start listening again\n addCPUListeners();\n }",
"public void mergeStatistics(BenchmarkStatistics other) {\n for (String stateName : other.latenciesByStateAndInteraction.keySet()) {\n Map<String, List<Long>> latenciesByInteraction = other.latenciesByStateAndInteraction.get(stateName);\n for (String interactionName : latenciesByInteraction.keySet())\n for (long latency : latenciesByInteraction.get(interactionName))\n this.addLatency(stateName, interactionName, latency);\n }\n this.exceptionalSessions += other.exceptionalSessions;\n this.unexpectedSessions += other.unexpectedSessions;\n }",
"public boolean isLatencySuspendAble() {\n return false;\n }",
"public short getLatencyTimer() throws FTD2XXException {\n ByteByReference byReference = new ByteByReference();\n ensureFTStatus(ftd2xx.FT_GetLatencyTimer(ftHandle, byReference));\n return (short) (byReference.getValue() & 0xFF);\n }",
"public int getNetworkApplicationOutputTraffic() { return networkApplicationOutputTraffic; }",
"private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}",
"public Map<String, Map<String, List<Long>>> getLatenciesByInteraction() {\n return latenciesByStateAndInteraction;\n }",
"@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}",
"@Override\r\n public Set<Integer> getAllReachableNodes(int sourceId, int numberOfHops) {\n if (reachabilityTwoHops.containsKey(sourceId))\r\n return reachabilityTwoHops.get(sourceId);\r\n return new HashSet<Integer>();\r\n }",
"Energy getMaxLoad();",
"private void sendHeartbeats() {\n\t\tHashSet<InetAddress> addresses = new HashSet<>(nodes.keySet());\n\t\t\n for (InetAddress addr : addresses) {\n\t\t\t// Take the mutex to ensure that no modifications are made to nodes\n\t\t\t// or channels while checking this node\n\t\t\tmutexLock.lock();\n\n // Check if the last heartbeat was responded to\n if (!nodes.containsKey(addr)) {\n mutexLock.unlock();\n continue;\n }\n\n NodeStatus node = nodes.get(addr);\n if (!(node.getLastResponse() == heartbeat.get())) {\n\n if (node.isAvailable()) {\n node.setAvailable(false);\n System.out.println(\"[\" + System.currentTimeMillis() + \" :: Node at \" + addr + \" is not available\");\n }\n }\n\n // Send the new heartbeat\n if (!channels.containsKey(addr)) {\n mutexLock.unlock();\n continue;\n }\n\n HeartbeatRequestMessage hrm = new HeartbeatRequestMessage(heartbeat.get()+1);\n SocketChannel channel = channels.get(addr);\n byte[] message = hrm.serialize();\n\n try {\n channel.write(ByteBuffer.wrap(message));\n } catch (ClosedChannelException cce) {\n channels.remove(addr);\n } catch (IOException e) {\n // Do something?\n }\n\n\t\t\t// Release the mutex\n\t\t\tmutexLock.unlock();\n }\n\n heartbeat.getAndIncrement();\n lastHeartbeatTime = System.currentTimeMillis();\n }",
"public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }",
"public void determineDataPathPriority() {\n long calculatedTxBad;\n if (this.mCmi.isConnected() && this.mWifiInfo.getRssi() != -127 && this.mOldWifiRssi != -127) {\n logv(\"determineSubflowPriority: mIsSwitchBoardPerferDataPathWifi =\" + this.mIsSwitchBoardPerferDataPathWifi);\n long calculatedTxBad2 = this.mWifiInfo.txBad - this.mOldWifiTxBad;\n long calculatedTxRetriesRate = 0;\n long txFrames = (this.mWifiInfo.txSuccess + this.mWifiInfo.txBad) - (this.mOldWifiTxSuccess + this.mOldWifiTxBad);\n if (txFrames > 0) {\n calculatedTxRetriesRate = (this.mWifiInfo.txRetries - this.mOldWifiTxRetries) / txFrames;\n }\n logv(\"wifiMetric New [\" + String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txSuccess)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txBad)}) + \"]\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"wifiMetric Old [\");\n sb.append(String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mOldWifiRssi)}));\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxRetries)}));\n String str = \"]\";\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxSuccess)}));\n long calculatedTxBad3 = calculatedTxBad2;\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxBad)}));\n sb.append(str);\n logv(sb.toString());\n logv(\"wifiMetric [\" + String.format(\"RSSI: %4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"Retry: %4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries - this.mOldWifiTxRetries)}) + String.format(\"TXGood: %4d, \", new Object[]{Long.valueOf(txFrames)}) + String.format(\"TXBad: %4d, \", new Object[]{Long.valueOf(calculatedTxBad3)}) + String.format(\"RetryRate%4d\", new Object[]{Long.valueOf(calculatedTxRetriesRate)}) + str);\n int i = this.mIsSwitchBoardPerferDataPathWifi;\n if (i == 1) {\n if (calculatedTxRetriesRate <= 1 && calculatedTxBad3 <= 2) {\n calculatedTxBad = calculatedTxBad3;\n } else if (this.mWifiInfo.getRssi() >= -70 || this.mOldWifiRssi >= -70) {\n calculatedTxBad = calculatedTxBad3;\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Case0, triggered - txRetriesRate(\");\n sb2.append(calculatedTxRetriesRate);\n sb2.append(\"), txBad(\");\n long calculatedTxBad4 = calculatedTxBad3;\n sb2.append(calculatedTxBad4);\n sb2.append(\")\");\n logd(sb2.toString());\n setWifiDataPathPriority(0);\n long j = calculatedTxBad4;\n }\n if (this.mWifiInfo.getRssi() >= -85 || this.mOldWifiRssi >= -85) {\n long j2 = calculatedTxBad;\n } else {\n logd(\"Case1, triggered\");\n setWifiDataPathPriority(0);\n long j3 = calculatedTxBad;\n }\n } else {\n long calculatedTxBad5 = calculatedTxBad3;\n if (i == 0) {\n if (txFrames > 0 && calculatedTxRetriesRate < 1 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -75 && this.mOldWifiRssi > -75) {\n logd(\"Case2, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (txFrames > 0 && calculatedTxRetriesRate < 2 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -70 && this.mOldWifiRssi > -70) {\n logd(\"Case3, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (this.mWifiInfo.getRssi() > -60 && this.mOldWifiRssi > -60) {\n logd(\"Case4, triggered RSSI is higher than -60dBm\");\n setWifiDataPathPriority(1);\n }\n }\n }\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (this.mCmi.isConnected() && (this.mWifiInfo.getRssi() != -127 || this.mOldWifiRssi != -127)) {\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (!this.mCmi.isConnected() && this.mOldWifiRssi != -127) {\n this.mOldWifiRssi = -127;\n this.mOldWifiTxSuccess = 0;\n this.mOldWifiTxBad = 0;\n this.mOldWifiTxRetries = 0;\n }\n }",
"public void ping(boolean lastPing) {\n\n\t\tSystem.out.println(\"Host is sending a ping...\");\n\t\t\n\t\ttry {\n\t\t\tDatagramSocket pingSocket = new DatagramSocket(Constants.Network.HOST_UDP_PORT);\n\n\t\t\tfor(ClientConnection cc : clients.values()) {\n\n\t\t\t\tInetAddress address = cc.addr;\n\t\t\t\tint port = cc.udpPort; \n\n\t\t\t\tSystem.out.println(\"Sending ping to \" + address.toString() + \":\" + port);\n\n\t\t\t\tlong currentTime = System.currentTimeMillis();\n\n\t\t\t\tbyte[] buf = new byte[9];\n\n\t\t\t\t//byte[] buf = Utils.longToBytes(currentTime);\n\n\t\t\t\tboolean successfulReceipt = false;\n\n\t\t\t\twhile(! successfulReceipt ) {\n\n\t\t\t\t\t// If this is the last ping, we set the last byte to be our LAST_PING flag, and \n\t\t\t\t\t// tell the client how much they should buffer before playing.\n\t\t\t\t\tif(lastPing) {\n\t\t\t\t\t\tbuf[8] = Constants.Network.STOP_WAITING_FOR_PINGS;\n\n\t\t\t\t\t\tlong bufferingAmount = calculateInitialBufferTimeForClient(cc, bufferTime);\n\n\t\t\t\t\t\tUtils.inPlaceLongToBytes(bufferingAmount, buf);\n\n\t\t\t\t\t\tSystem.out.println(\"Telling client to set initial buffering time to \" + bufferingAmount);\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDatagramPacket packet = new DatagramPacket(buf, buf.length, address, port);\n\t\t\t\t\t\tpingSocket.send(packet);\n\n\n\t\t\t\t\t\tpingSocket.setSoTimeout((int) (cc.averageLatencyInMillis() + 1000));\n\t\t\t\t\t\tDatagramPacket receipt = new DatagramPacket(buf, buf.length);\n\t\t\t\t\t\tpingSocket.receive(receipt);\n\t\t\t\t\t\tsuccessfulReceipt = true;\n\t\t\t\t\t} catch (SocketTimeoutException e) {\n\t\t\t\t\t\tSystem.out.println(\"Did not receive a response in \" + (cc.averageLatencyInMillis() + 1000) + \" ms, trying again...\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tlong timeDifference = (System.currentTimeMillis() - currentTime) / 2;\n\n\t\t\t\tSystem.out.println(\"Host reported a time difference of \" + timeDifference + \" milliseconds from \" + cc.addr);\n\n\t\t\t\tcc.addLatencyNumber((System.currentTimeMillis() - currentTime) / 2);\n\t\t\t}\n\n\t\t\tpingSocket.close();\n\n\t\t} catch(SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif(lastPing)\n\t\t\tSystem.out.println(\"Host done sending pings.\");\n\n\t}",
"private static void compute_performances(Server server) {\n System.out.println(\"E[N]: Average number of packets in the buffer/queue: \" + round((double) runningBufferSizeCount / totalTicks));\n System.out.println(\"E[T]: Average sojourn time: \" + round((double) server.getTotalPacketDelay() / totalPackets + (double) serviceTime)\n + \"/packet\");\n System.out.println(\"P(idle): The proportion of time the server is idle: \"\n + round((double) server.getIdleServerCount() / totalTicks * 100) + \"%\");\n if (maxBufferSize >= 0) {\n System.out.println(\"P(loss): The packet loss probability: \" + round((double) droppedPacketCount / totalPackets * 100) + \"%\");\n }\n }",
"@java.lang.Override\n public long getServerMs() {\n return serverMs_;\n }",
"public static void main(String[] args) throws Exception {\n \r\n long beginTime = System.nanoTime();\r\n for (int i = 0; i < 50000000; i++) {\r\n// System.out.println(getFlowNo());\r\n getFlowNo();\r\n \r\n }\r\n long endTime = System.nanoTime();\r\n System.out.println(\"onLineWithTransaction cost:\"+((endTime-beginTime)/1000000000) + \"s \" + ((endTime-beginTime)%1000000000) + \"us\");\r\n// \r\n// System.out.println(System.currentTimeMillis());\r\n// TimeUnit.SECONDS.sleep(3);\r\n// System.out.println(System.currentTimeMillis());\r\n }"
] | [
"0.69661504",
"0.68619007",
"0.6475051",
"0.63558406",
"0.629922",
"0.59613794",
"0.5952961",
"0.58949566",
"0.57747674",
"0.5698136",
"0.5676802",
"0.5658275",
"0.5649337",
"0.5622867",
"0.5611155",
"0.55995315",
"0.5572308",
"0.5551601",
"0.55133706",
"0.55045205",
"0.55012614",
"0.54539543",
"0.5452506",
"0.5424339",
"0.5394909",
"0.527534",
"0.526864",
"0.5239247",
"0.52304906",
"0.5206158",
"0.5148444",
"0.51454633",
"0.5140758",
"0.5129029",
"0.5110974",
"0.5065727",
"0.50390595",
"0.5032306",
"0.5025265",
"0.5022157",
"0.5021783",
"0.50106",
"0.4997498",
"0.49859744",
"0.49764",
"0.49758676",
"0.4969309",
"0.49615142",
"0.4955501",
"0.4953994",
"0.4953466",
"0.49458185",
"0.49438933",
"0.4890485",
"0.48889717",
"0.4875319",
"0.4874475",
"0.4830866",
"0.48295316",
"0.4810868",
"0.47877744",
"0.4768699",
"0.47593552",
"0.47589794",
"0.4758453",
"0.4757514",
"0.47440985",
"0.4739821",
"0.47364113",
"0.47341552",
"0.47328308",
"0.47234395",
"0.4715679",
"0.47087118",
"0.47075576",
"0.4705905",
"0.46980277",
"0.46870938",
"0.46850115",
"0.46807432",
"0.46684387",
"0.46403018",
"0.4626352",
"0.46246064",
"0.46195105",
"0.46118614",
"0.4611789",
"0.45991972",
"0.4595669",
"0.45933175",
"0.4590548",
"0.4587044",
"0.45846945",
"0.4582011",
"0.45817202",
"0.45815974",
"0.4580521",
"0.45754278",
"0.45694214",
"0.45676133"
] | 0.5135453 | 33 |
A host to all the landmarks, it's a row vector | protected void cb(
CBResult ncResult,
Set<NodesPair> nps,
String errorString) {
Matrix_4_HSH host2Landmark = new Matrix_4_HSH(
1, NODES_NUM);
// After call
// D_N_S_NMF(host2Landmark),
// the result returned as
// coord
Matrix_4_HSH coord = new Matrix_4_HSH(
1, NC_NUM_DIMS);
Iterator ier = nps
.iterator();
while (ier.hasNext()) {
NodesPair tmp = (NodesPair) ier
.next();
int to = responseMsg.landmarks
.indexOf(tmp.endNode);
if (to < 0) {
continue;
} else {
host2Landmark.mat[0][to] = tmp.rtt;
}
}
coord = MatrixOps
.D_N_S_NMF(
host2Landmark,
_H, _S);
// initialize my coordinate
Coord = new double[NC_NUM_DIMS];
// record the coordinate in
// Coord
for (int i = 0; i < NC_NUM_DIMS; i++)
Coord[i] = coord.mat[0][i];
versionNumber = responseMsg.version;
try {
logHSHClusteringResults();
} catch (IOException e) {
// TODO Auto-generated
// catch block
e.printStackTrace();
}
nodes.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showAllLandmarks(){\n ((Pane) mapImage.getParent()).getChildren().removeIf(x->x instanceof Circle || x instanceof Text || x instanceof Line);\n for(int i = 0; i<landmarkList.size(); i++){\n if(landmarkList.get(i).data.type == \"Landmark\")\n drawLandmarks(landmarkList.get(i));\n }\n }",
"boolean land();",
"public FaceLandmarks faceLandmarks() {\n return this.faceLandmarks;\n }",
"synchronized void updateActivatedLandmarks () {\n calculateViewportOffset (tmpXY, visitorX, visitorY);\n\n int offsetX = tmpXY[X];\n int offsetY = tmpXY[Y];\n\n for (int i = 0; i < mapLandmarks.length; ++i) {\n if (mapLandmarks[i].isActive ()) {\n int x0 = mapLandmarks[i].getX () - 16 - offsetX;\n int y0 = mapLandmarks[i].getY () - 16 - offsetY;\n repaint (x0, y0, 32, 32);\n }\n }\n }",
"public void getLandmarksToBeDrawn(){\n ((Pane) mapImage.getParent()).getChildren().removeIf(x->x instanceof Circle || x instanceof Text || x instanceof Line);\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n CostedPath path=shortestRouteDij(lm1,lm2); \n GraphNodeAL<MapPoint> prev=null;\n for(GraphNodeAL<?> n : path.pathList) { \n drawLandmarks((GraphNodeAL<MapPoint>) n);\n if(prev!=null) lineDraw(prev, (GraphNodeAL<MapPoint>) n);\n prev= (GraphNodeAL<MapPoint>) n;\n }\n }",
"@Override\n\tpublic List<Land> displayLand() {\n\t\treturn dao.displayLand();\n\t}",
"private Matrix getV(List<T> landmarks,\n\t\t\tHashtable<T, ratingCoord<T>> landmark_x) {\n\t\tint n=landmarks.size();\n\t\tint p=dim;\n\t\tMatrix mat=new DenseMatrix(n,p,0);\n\t\t\n\t\tIterator<T> ier = landmarks.iterator();\n\t\tint indexRow=0;\n\t\twhile(ier.hasNext()){\n\t\t\tT tmp = ier.next();\n\t\t\tif(!landmark_x.containsKey(tmp)){\n\t\t\t\tSystem.err.println(\"V: missing: \"+tmp);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tVec uu = landmark_x.get(tmp).q;\n\t\t\tfor(int i=0;i<p;i++){\n\t\t\t\tmat.setValue(indexRow, i, uu.direction[i]);\n\t\t\t}\n\t\t\tindexRow++;\n\t\t}\n\t\treturn mat;\t\n\t}",
"org.landxml.schema.landXML11.LanesDocument.Lanes getLanesArray(int i);",
"public void getSample(List<T> landmarks){\n\t\tIterator<T> ier = landmarks.iterator();\n\t\twhile(ier.hasNext()){\n\t\t\tT tmp = ier.next();\n\t\t\tthis.getSample(tmp);\t\t\t\n\t\t}\n\t\t\n\t}",
"public List<Landmark> getLandmarks() {\n return Landmarks;\n }",
"public List<Location> neighbors (Location pos);",
"org.landxml.schema.landXML11.LanesDocument.Lanes[] getLanesArray();",
"Pointer getHostPointer(INDArray array);",
"protected abstract void getAllUniformLocations();",
"public abstract ArrayList<String> neighbours(String vertLabel);",
"private static void broadcastLandingLocations() {\n ArrayList<Pair<Integer, Integer>> ccBySize = new ArrayList<>();\n for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n ccBySize.add(new Pair<Integer, Integer>(cc, CONNECTED_COMPONENT_SIZES.get(cc)));\n }\n // Sort connected components by size, decreasing\n ccBySize.sort(new Comparator<Pair<Integer, Integer>>() {\n @Override\n public int compare(Pair<Integer, Integer> o1, Pair<Integer, Integer> o2) {\n return o2.getSecond() - o1.getSecond();\n }\n });\n int[][] locationsWithinCC = new int[CONNECTED_COMPONENT_SIZES.size()][];\n ArrayList<HashSet<Integer>> landingCoordinates = new ArrayList<>(CONNECTED_COMPONENT_SIZES.size());\n for (int cc = 0; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n locationsWithinCC[cc] = new int[CONNECTED_COMPONENT_SIZES.get(cc)];\n landingCoordinates.add(new HashSet<>());\n }\n // Indices within locationsWithinCC arrays\n int[] locationsWithinCCIndices = new int[CONNECTED_COMPONENT_SIZES.size()];\n for (int r = 0; r < MAP_HEIGHT; ++r) {\n for (int c = 0; c < MAP_WIDTH; ++c) {\n int cc = CONNECTED_COMPONENTS[r][c];\n if (cc == IMPASSIBLE_TERRAIN) continue;\n int coord = (r << 16) | c;\n locationsWithinCC[cc][locationsWithinCCIndices[cc]++] = coord;\n }\n }\n //System.out.println(Arrays.deepToString(locationsWithinCC));\n int communicationArrayIndex = 1;\n int totalNumCoords = 0; // Keep track of the size of a set of landing coordinates that spans all connected components\n // Fill communication array until we can no longer fit a set of totalNumCoords into the array\n while (COMMUNICATION_ARRAY_LENGTH - communicationArrayIndex >= totalNumCoords) {\n totalNumCoords = 0;\n // Choose (cc size)^(1/4) locations in each cc\n for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n HashSet<Integer> chosenCoords = landingCoordinates.get(cc);\n // Clear any previously generated landing locations for each connected component\n chosenCoords.clear();\n // Generate new unique landing locations (not necessarily distinct from previously generated locations)\n int numDesiredCoords = (int) Math.pow(CONNECTED_COMPONENT_SIZES.get(cc), 1d/4d);\n int[] locations = locationsWithinCC[cc];\n for (; chosenCoords.size() < numDesiredCoords;) {\n int randCoord = locations[rand.nextInt(locations.length)];\n chosenCoords.add(randCoord);\n }\n totalNumCoords += numDesiredCoords;\n }\n if (totalNumCoords > COMMUNICATION_ARRAY_LENGTH - communicationArrayIndex) {\n // Prevent overflow of communication array\n break;\n }\n //for (int cc = 1; cc < CONNECTED_COMPONENT_SIZES.size(); ++cc) {\n // System.out.println(landingCoordinates.get(cc));\n //}\n // Write landing locations to communication array in decreasing order of connected component size\n for (Pair<Integer, Integer> ccSizePair : ccBySize) {\n int cc = ccSizePair.getFirst();\n for (Integer coord : landingCoordinates.get(cc)) {\n gc.writeTeamArray(communicationArrayIndex, coord);\n ++communicationArrayIndex;\n }\n }\n }\n gc.writeTeamArray(0, communicationArrayIndex - 1); // write number of generated landing locations\n }",
"@Override\n public List<Landmark> getLandmarks(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,2,3);\n List<Landmark> landmarks = new ArrayList<>();\n try {\n List<Map<String,Object>> data = get(\"SELECT * FROM TblLandmarks\");\n for(Map<String,Object> map: data){\n Landmark landmark = new Landmark(map);\n landmark.setRoute(new Route(landmark.getForeignKey(\"route\"),null));\n landmarks.add(landmark);\n }\n return landmarks;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }",
"public void afficherPoints(){\n for(Point point : pointArrayList){\n getMapPane().getChildren().add(point.getImageView());\n visualObjects.add(point);\n }\n }",
"void updateDistMatrix(long timeStamp) {\n\n\t\t\t// for each alive landmark, when its ping results are received by\n\t\t\t// the source node,\n\t\t\t// we start the clustering computation process\n\t\t\t// TODO: remove landmarks that return a subset of results 10-12\n\t\t\tLong timer = Long.valueOf(timeStamp);\n\n\t\t\tif (!pendingHSHLandmarks.containsKey(timer)\n\t\t\t\t\t|| pendingHSHLandmarks.get(timer).IndexOfLandmarks == null) {\n\t\t\t\tSystem.err.println(\"$: Null elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHSHRecord CurList = pendingHSHLandmarks.get(timer);\n\t\t\tint NoOfLandmarks = CurList.IndexOfLandmarks.size();\n\t\t\tif(NoOfLandmarks<=0){\n\t\t\t\tSystem.err.println(\"$: Empty elements!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tHashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords = CurList.pendingLandmarkLatency;\n\t\t\tif (LatRecords == null) {\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"$: Null HashMap<AddressIF, ArrayList<RemoteState<AddressIF>>> LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tint receivedLandmarks = LatRecords.keySet().size();\n\t\t\t// empty or incomplete records\n\t\t\tif (LatRecords.isEmpty() || receivedLandmarks < 0.8 * NoOfLandmarks) {\n\t\t\t\tSystem.err.println(\"$: Null LatRecords!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: total landmarks: \" + NoOfLandmarks\n\t\t\t\t\t+ \", received from \" + receivedLandmarks);\n\t\t\t// use the IndexOfLandmarks as the index of nodes\n\n\t\t\tif (CurList.DistanceMatrix == null\n\t\t\t\t\t|| CurList.DistanceMatrix.length != NoOfLandmarks) {\n\t\t\t\tCurList.DistanceMatrix = null;\n\t\t\t\tCurList.DistanceMatrix = new double[NoOfLandmarks][NoOfLandmarks];\n\t\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\t\tfor (int j = 0; j < NoOfLandmarks; j++) {\n\t\t\t\t\t\tCurList.DistanceMatrix[i][j] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// fill elements\n\t\t\tIterator<Entry<AddressIF, ArrayList<RemoteState<AddressIF>>>> entrySet = LatRecords\n\t\t\t\t\t.entrySet().iterator();\n\n\t\t\twhile (entrySet.hasNext()) {\n\t\t\t\tEntry<AddressIF, ArrayList<RemoteState<AddressIF>>> tmp = entrySet\n\t\t\t\t\t\t.next();\n\t\t\t\t// empty lists\n\t\t\t\tif (tmp.getValue() == null || tmp.getValue().size() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t// ===============================================================\n\t\t\t\tAddressIF srcNode = tmp.getKey();\n\t\t\t\t// find the index of landmarks\n\t\t\t\tint from = CurList.IndexOfLandmarks.indexOf(srcNode);\n\t\t\t\tIterator<RemoteState<AddressIF>> ier = tmp.getValue()\n\t\t\t\t\t\t.iterator();\n\t\t\t\tif (from < 0) {\n\t\t\t\t\t// already removed landmarks!\n\t\t\t\t\tSystem.out.println(\"already removed landmarks!\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\twhile (ier.hasNext()) {\n\t\t\t\t\tRemoteState<AddressIF> NP = ier.next();\n\n\t\t\t\t\tif (!CurList.IndexOfLandmarks.contains(NP.getAddress())) {\n\t\t\t\t\t\t// not landmarks\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tint to = CurList.IndexOfLandmarks.indexOf(NP.getAddress());\n\n\t\t\t\t\tdouble rtt = NP.getSample();\n\t\t\t\t\tif (to < 0 || rtt < 0) {\n\t\t\t\t\t\tSystem.err.println(\"$: failed to find the landmarks!\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// System.out.print(\" <\"+to+\", \"+from+\", \"+rtt+\"> \");\n\t\t\t\t\t\t// Note: symmetric RTT\n\t\t\t\t\t\tif (CurList.DistanceMatrix[to][from] > 0) {\n\t\t\t\t\t\t\tdouble avgRTT;\n\t\t\t\t\t\t\tif (rtt > 0) {\n\t\t\t\t\t\t\t\tavgRTT = (rtt + CurList.DistanceMatrix[to][from]) / 2;\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tavgRTT = CurList.DistanceMatrix[to][from];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = avgRTT;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = avgRTT;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// TODO: missing elements\n\t\t\t\t\t\t\tCurList.DistanceMatrix[from][to] = rtt;\n\t\t\t\t\t\t\tCurList.DistanceMatrix[to][from] = rtt;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ======================================================\n\n\t\t\tboolean markZero = false;\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tint sum = 0;\n\t\t\t\tfor (int column = 0; column < NoOfLandmarks; column++) {\n\t\t\t\t\tif (i == column) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (CurList.DistanceMatrix[i][column] > 0) {\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (sum < 0.7 * NoOfLandmarks) {\n\t\t\t\t\tmarkZero = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (markZero) {\n\t\t\t\t// CurList.DistanceMatrix=null;\n\t\t\t\tSystem.err.println(\"$: incomplete CurList.DistanceMatrix!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n\\n$: HSH: Start HSH clustering computation process!\");\n\n\t\t\t// TODO: find accurate clustering number\n\t\t\tint cluNum = MatrixOps.findClusteringNum(CurList.DistanceMatrix);\n\n\t\t\tif(cluNum<=0){\n\t\t\t\tSystem.err.println(\"the clustering number is <=0\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t// version control for dimensions\n\t\t\tif (CurList.S != null && CurList.S.length == cluNum) {\n\n\t\t\t} else {\n\t\t\t\tCurList.version = System.currentTimeMillis();\n\t\t\t}\n\n\t\t\t// initialize the matrixes for computation\n\t\t\tCurList.H = new double[NoOfLandmarks][cluNum];\n\t\t\tCurList.S = new double[cluNum][cluNum];\n\t\t\t// CurList.Coord = new double[cluNum];\n\t\t\tfor (int i = 0; i < NoOfLandmarks; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.H[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < cluNum; i++) {\n\t\t\t\tfor (int j = 0; j < cluNum; j++) {\n\t\t\t\t\tCurList.S[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// update coordinate vectors\n\t\t\tMatrixOps.symmetric_NMF(NoOfLandmarks, cluNum,\n\t\t\t\t\tCurList.DistanceMatrix, CurList.H, CurList.S);\n\t\t\tCurList.alreadyComputedClustering = true;\n\n\t\t\t// TODO: H,S is Null\n\t\t\tif (CurList.H == null || CurList.S == null) {\n\t\t\t\tSystem.err.println(\"$: after HSH computation, NULL results!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// after centralized computation, the core node should send its H &\n\t\t\t// S to all the landmark nodes\n\t\t\tissueCoords(timeStamp, CurList.IndexOfLandmarks, new CB1<String>() {\n\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Core node has issued its H & S to all landmarks.\");\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"void tickHost(INDArray array);",
"List<Coord> allActiveCells();",
"public native vector kbGetMapCenter();",
"public Entry[] local_vec(char area) {\n // Get local vec\n Entry[] lvec = neig.local_vec(true, area);\n if (lvec == null) { // No local information ??\n win.Log(\"Internal error in routing.local_vec\\n\");\n return null;\n }\n\n // This code is incomplete for the case where multiple areas coexist\n // When sending to non-zero areas, the core('0') routes must be sent\n // excluding routes that may produce loops!\n // ...\n\n return lvec; \n }",
"java.util.List<org.landxml.schema.landXML11.LanesDocument.Lanes> getLanesList();",
"private double[] y_landmark(VectorN x, Time t, int p,\r\n VectorN s, int lindex, boolean inoise) {\r\n \r\n // We'll need a Gaussian random number generator\r\n //Random randn = new Random(System.currentTimeMillis()); \t\r\n \r\n double y = 0;\r\n VectorN dydx = new VectorN(x.length);\r\n \r\n // TODO: Do we need t to be relative?\r\n // jd=jd0+t/86400;\r\n \r\n // If the number of states is greater than 6, assume that the \r\n // components 7-9 are the body-fixed coordinates of the landmark, \r\n // otherwise, it is assumed the landmark is known and specified by \r\n // the structure.\r\n CentralBody body = gravbody.get(p);\r\n VectorN lf = null;\r\n if (x.length == 9) {\r\n lf = x.get(6, 3);\r\n \t //Landmark mark = new Landmark(20, x.get(6), x.get(7), x.get(8),LunaRef.R_Luna);\r\n \t //lf = mark.lmf;\r\n }\r\n else {\r\n lf = body.getLandmark(lindex).lmf;\r\n }\r\n \r\n // Compute the coordinate transformation from body-fixed to inertial\r\n ReferenceFrameTranslater xlater = \r\n new ReferenceFrameTranslater(body.bodyFixedRef, body.inertialRef, t);\r\n VectorN li = xlater.translatePoint(lf);\r\n\r\n // Compute the vector from the spacecraft to the landmark\r\n VectorN d = li.minus(x.get(0, 3));\r\n double dmag = d.mag();\r\n VectorN dhat = d.unitVector();\r\n if ((s != null) && (s.length == 3)) {\r\n // Referece unit vector is provided. Compute measurment\r\n // between LOS.\r\n \r\n // Compute predicted measurement cos(theta)\r\n y = dhat.dotProduct(s);\r\n\r\n if (inoise) {\r\n // Assume similar noise as star and zero bias for now\r\n // TODO: Make arnd and abias configurable instead of\r\n // hardcoded.\r\n double arnd=.0034*Math.PI/180.0;\r\n //arnd=.07*Math.PI/180.0;\r\n arnd=Rdeg*Math.PI/180.0;\r\n double abias=0;\r\n y=Math.cos(Math.acos(y)+arnd*rnd.nextGaussian()+abias);\r\n }\r\n\r\n // (1/dmag)*s'*(-eye(3)+dhat*dhat')\r\n VectorN rdot = s.divide(dmag);\r\n Matrix tmp = dhat.outerProduct(dhat).minus(Matrix.identity(3,3));\r\n rdot = rdot.times(tmp);\r\n dydx.set(0, rdot);\r\n // vdot is 0\r\n \r\n if (x.length == 9) {\r\n //VectorN ldot = xlater.translatePointBack(rdot);//.times(-1);\r\n VectorN ldot = xlater.translatePointBack(rdot.times(-1));\r\n dydx.set(6, ldot);\r\n }\r\n }\r\n else {\r\n // No reference unit vector is provided. Compute pseudo range.\r\n \r\n // measurement is tan((D/2)/r)\r\n double D = body.getLandmark(lindex).D;\r\n y=D*.5/dmag;\r\n \r\n if (inoise) {\r\n // 1-sigma noise and bias on angular measurement\r\n double[] noiseFactors = camerr(dmag,p);\r\n double arnd = noiseFactors[0];\r\n double abias = noiseFactors[1];\r\n y=Math.tan(Math.atan(y)+arnd*rnd.nextGaussian()+abias);\r\n }\r\n\r\n double scale = (0.5 * D) / (dmag * dmag * dmag);\r\n VectorN rpart = d.times(scale);\r\n \r\n if (x.length == 9) {\r\n VectorN ldot = xlater.translatePointBack(rpart).times(-1);\r\n dydx.set(6, ldot);\r\n }\r\n }\r\n\r\n // TODO: Do we really want to shmoosh these into one array\r\n // just to return it?\r\n // We combine the angle and the Jacobian into a single array to return it\r\n double[] out = new double[x.length+1];\r\n out[0] = y;\r\n //System.arraycopy(dydx, 0, toReturn, 1, dydx.length);\r\n\t\tfor(int i=1; i<x.length+1; i++) out[i] = dydx.x[i-1];\r\n return out; \r\n }",
"void renderHotspots() {\n boolean afterCurrent = false;\n boolean hasLastPos = false;\n float lastX = 0.0f;\n float lastY = 0.0f;\n float lastZ = 0.0f;\n \n final float halfWidth = 0.1f / 2;\n final float halfLength = 0.1f / 2;\n final float halfHeight = 0.1f / 2;\n final float eyeHeight = 0.91712f;//1.1f;\n \n // Find pan position offset vector\n if (selectedTimeInterval.getLocationMetadataEntry() == null) {\n return;\n }\n \n if (!dstLocationVectorExists)\n return;\n \n GL11.glLoadIdentity();\n // set up for tracking hotspot screen x,y\n\t\tfloat projectedXYZ[] = new float[3]; \t\t\n\t\tprojectionMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_PROJECTION_MATRIX, projectionMatrix);\n\t\tgetMatrixAsArray(projectionMatrix, projectionArray);\n\t\tviewportMatrix.clear();\n\t\tGL11.glGetInteger(GL11.GL_VIEWPORT, viewportMatrix);\n\t\tviewportArray[0] = viewportMatrix.get(0);\n\t\tviewportArray[1] = viewportMatrix.get(1);\n\t\tviewportArray[2] = viewportMatrix.get(2);\n\t\tviewportArray[3] = viewportMatrix.get(3);\n //System.out.println(\"\"+viewportArray[0] + \" \"+ viewportArray[1]+\" \"+viewportArray[2]+\" \"+viewportArray[3] ); \n\t\tmodelMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_MODELVIEW_MATRIX, modelMatrix);\n\t\tgetMatrixAsArray(modelMatrix, modelArray);\n \n GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); // no texture\n \n for (int i=0; i<roverTrackingList.size()-1; i++) {\n \tRoverTrackingListEntry listEntry = (RoverTrackingListEntry) roverTrackingList.get(i);\n\t\t\tlistEntry.screenX = 0.0f;\n\t\t\tlistEntry.screenY = 0.0f;\n \t\n double da = listEntry.locationMetadataEntry.rover_origin_offset_vector_a + listEntry.siteMetadataEntry.offset_vector_a - currentLocationVectorA;\n double db = listEntry.locationMetadataEntry.rover_origin_offset_vector_b + listEntry.siteMetadataEntry.offset_vector_b - currentLocationVectorB;\n double dc = listEntry.locationMetadataEntry.rover_origin_offset_vector_c + listEntry.siteMetadataEntry.offset_vector_c - currentLocationVectorC;\n \n float x = (float) db;\n float y = (-(float)dc) - eyeHeight;\n float z = - (float) da;\n\n // calculate brightness of point based on number of images visible for location\n float brightness = 0.0f;\n \n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getNumEnabledImages() > 2) {\n \t// track screen x, y of hotspot\n \t\t\tGLU.gluProject(x, y, z, modelArray, projectionArray, viewportArray, projectedXYZ);\n \t\t\tif (projectedXYZ[2] < 1.0f) {\n\t \t\t\tlistEntry.screenX = projectedXYZ[0];\n\t \t\t\t// transform y from opengl screen coords to regular screen coords\n\t \t\t\tlistEntry.screenY = viewportArray[3] - projectedXYZ[1];\n \t\t\t}\n \t\n \t// render hotspot\n GL11.glLoadIdentity();\n GL11.glTranslatef(x, y, z);\n //System.out.println(\"\"+listEntry.screenX+\" \"+listEntry.screenY);\n \n brightness = 0.5f + 0.1f * listEntry.locationListEntry.getNumEnabledImages();\n if (brightness > 1.0f) {\n brightness = 1.0f;\n }\n \n GL11.glBegin(GL11.GL_QUADS); // D draw A Quad\n \n if (listEntry.locationListEntry.getStartLocation().equals(selectedTimeInterval.getStartLocation())) {\n GL11.glColor3f(brightness, 0.0f, brightness); \n }\n else if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n }\n \n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Bottom Left Of The Quad (Top)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Bottom Right Of The Quad (Top)\n\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Top Right Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Top Left Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Bottom)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Bottom)\n\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Front)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Front)\n\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Back)\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Back)\n\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Left)\n\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Right)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Right)\n \n GL11.glEnd(); // Done Drawing The Quads\n\t }\n \n if (hasLastPos && !listEntry.segmentStart) {\n brightness = 0.5f;\n if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n } \n GL11.glLoadIdentity();\n GL11.glBegin(GL11.GL_LINES); \n// GL11.glColor3f(1.0f, 0.0f, 0.0f); \n GL11.glVertex3f(lastX, lastY, lastZ);\n GL11.glVertex3f(x, y, z);\n GL11.glEnd();\n }\n \n lastX = x;\n lastY = y;\n lastZ = z;\n hasLastPos = true;\n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getStartLocation().equals(this.selectedTimeInterval.getStartLocation())) {\n afterCurrent = true;\n }\n }\n }",
"void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }",
"public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }",
"public ArrayList<DetectInfo> getAllDetects(){\n return orderedLandingPads;\n }",
"public Matrix_4_HSH getRelativeCoordinates(AddressIF currentNode,Collection<AddressIF > allNodes,\n\t\t\tCollection<AddressIF > landmarks, double[] lat) {\n\t\treturn null;\n\t}",
"private void readLandmarks() {\n landmarks.readBathrooms();\n landmarks.readCampsTSV();\n landmarks.readFavoritesTSV();\n System.out.println();\n }",
"public void directCompute() {\r\n\t\t\tshort[] rgb = new short[3];\r\n\t\t\tint offset = yMin * width;\r\n\t\t\tfor (int y = yMin; y < yMax; y++) {\r\n\t\t\t\tfor (int x = 0; x < width; x++) {\r\n\t\t\t\t\tPoint3D screenPoint = screenCorner.add(xAxis.scalarMultiply(x * 1.0 / (width - 1) * horizontal))\r\n\t\t\t\t\t\t\t.sub(yAxis.scalarMultiply(y * 1.0 / (height - 1) * vertical));\r\n\r\n\t\t\t\t\tRay ray = Ray.fromPoints(eye, screenPoint);\r\n\t\t\t\t\ttracer(scene, ray, rgb);\r\n\t\t\t\t\t// applying color to pixel\r\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\r\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\r\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\r\n\r\n\t\t\t\t\toffset++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"private void loadAddressFromLatches(){\r\n horizontalTileCounter = horizontalTileLatch;\r\n verticalTileCounter = verticalTileLatch;\r\n horizontalNameCounter = horizontalNameLatch; // single bit\r\n verticalNameCounter = verticalNameLatch; // single bit\r\n fineVerticalCounter = fineVerticalLatch;\r\n }",
"void updateLandmarks() {\n\n\t\t\tregisterUpdateLandmarksTimer();\n\n\t\t\tint m = 2;\n\t\t\tfinal int expectedLandmarks = NumberOfLandmarks + m;\n\t\t\tIterator<Long> ier = pendingHSHLandmarks.keySet().iterator();\n\n\t\t\tSet<AddressIF> tmpList = new HashSet<AddressIF>(1);\n\t\t\tLong curRecord = null;\n\n\t\t\t// get a non-empty list of landmarks\n\t\t\twhile (ier.hasNext()) {\n\t\t\t\tLong nxt = ier.next();\n\t\t\t\tif (pendingHSHLandmarks.get(nxt).IndexOfLandmarks != null\n\t\t\t\t\t\t&& pendingHSHLandmarks.get(nxt).IndexOfLandmarks.size() > 0) {\n\t\t\t\t\ttmpList\n\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(nxt).IndexOfLandmarks);\n\t\t\t\t\tcurRecord = nxt;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if empty, we need to update landmarks immediately\n\t\t\tif (tmpList.size() == 0) {\n\t\t\t\t// remove the record\n\t\t\t\tif (curRecord != null) {\n\t\t\t\t\tpendingHSHLandmarks.get(curRecord).clear();\n\t\t\t\t\tpendingHSHLandmarks.remove(curRecord);\n\t\t\t\t} else {\n\t\t\t\t\t// null curRecord\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tfinal Long Timer = curRecord;\n\t\t\t\t// ping landmarks, if several of them fails, p percentage p=0.2\n\t\t\t\t// , we remove the records, and restart the landmark process\n\t\t\t\t// =================================================================\n\t\t\t\tfinal List<AddressIF> aliveLandmarks = new ArrayList<AddressIF>(\n\t\t\t\t\t\t1);\n\n\t\t\t\tNNManager.collectRTTs(tmpList, new CB2<Set<NodesPair>, String>() {\n\t\t\t\t\tprotected void cb(CBResult ncResult, Set<NodesPair> nps,\n\t\t\t\t\t\t\tString errorString) {\n\t\t\t\t\t\t// send data request message to the core node\n\t\t\t\t\t\tlong timer=System.currentTimeMillis();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (nps != null && nps.size() > 0) {\n\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t.println(\"\\n==================\\n Alive No. of landmarks: \"\n\t\t\t\t\t\t\t\t\t\t\t+ nps.size()\n\t\t\t\t\t\t\t\t\t\t\t+ \"\\n==================\\n\");\n\n\t\t\t\t\t\t\tIterator<NodesPair> NP = nps.iterator();\n\t\t\t\t\t\t\twhile (NP.hasNext()) {\n\t\t\t\t\t\t\t\tNodesPair tmp = NP.next();\n\t\t\t\t\t\t\t\tif (tmp != null && tmp.rtt >= 0) {\n\n\t\t\t\t\t\t\t\t\tAddressIF peer = (AddressIF)tmp.endNode;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//====================================================\n\t\t\t\t\t\t\t\t\tif (!ncManager.pendingLatency.containsKey(peer)) {\n\t\t\t\t\t\t\t\t\t\tncManager.pendingLatency.put(peer,\n\t\t\t\t\t\t\t\t\t\t\t\tnew RemoteState<AddressIF>(peer));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tncManager.pendingLatency.get(peer).addSample(tmp.rtt, timer);\n\t\t\t\t\t\t\t\t\t//=====================================================\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Timer)\n\t\t\t\t\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Timer).IndexOfLandmarks == null) {\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tint index = pendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(peer);\n\n\t\t\t\t\t\t\t\t\tif (index < 0) {\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// found the element, and it is smaller\n\t\t\t\t\t\t\t\t\t\t// than\n\t\t\t\t\t\t\t\t\t\t// rank, i.e., it is closer to the\n\t\t\t\t\t\t\t\t\t\t// target\n\t\t\t\t\t\t\t\t\t\taliveLandmarks.add(peer);\n\n\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// wrong measurements\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// empty\n\t\t\t\t\t\t\t// all nodes fail, so there are no alive nodes\n\t\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// some landmarks are offline, we clear records and\n\t\t\t\t\t\t// start\n\t\t\t\t\t\tif (pendingHSHLandmarks.containsKey(Timer)) {\n\n\t\t\t\t\t\t\tif (aliveLandmarks.size() < 0.8 * expectedLandmarks) {\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.remove(Timer);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// the landmarks are healthy, so we can sleep\n\t\t\t\t\t\t\t\t// awhile\n\t\t\t\t\t\t\t\t// TODO: remove dead landmarks, and resize the\n\t\t\t\t\t\t\t\t// landmarks\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).IndexOfLandmarks\n\t\t\t\t\t\t\t\t\t\t.addAll(aliveLandmarks);\n\n\t\t\t\t\t\t\t\t// pendingHSHLandmarks.get(Timer).readyForUpdate=false;\n\t\t\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(\n\t\t\t\t\t\t\t\t\t\t1);\n\n\t\t\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Timer).IndexOfLandmarks);\n\t\t\t\t\t\t\t\tpendingHSHLandmarks.get(Timer).readyForUpdate = true;\n\n\t\t\t\t\t\t\t\t//update the rtts\n\t\t\t\t\t\t\t\t updateRTTs(Timer.longValue(),nodes, new\n\t\t\t\t\t\t\t\t CB1<String>(){ protected void cb(CBResult\n\t\t\t\t\t\t\t\t ncResult, String errorString){ switch\n\t\t\t\t\t\t\t\t (ncResult.state) { case OK: {\n\t\t\t\t\t\t\t\t System.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t System.out.println();\n\t\t\t\t\t\t\t\t if(errorString.length()<=0){\n\t\t\t\t\t\t\t\t pendingHSHLandmarks\n\t\t\t\t\t\t\t\t .get(Timer).readyForUpdate=true; }\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t break; } case ERROR: case TIMEOUT: { break; }\n\t\t\t\t\t\t\t\t } nodes.clear(); } });\n\t\t\t\t\t\t\t\t \n\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\t// ==================================================================\n\n\t\t\t// expected landmarks, K+m\n\n\t\t\tfinal Set<AddressIF> pendingNodes = new HashSet<AddressIF>(1);\n\n\t\t\tgetRandomNodes(pendingNodes, expectedLandmarks);\n\n\t\t\t// remove myself\n\t\t\tif (pendingNodes.contains(Ninaloader.me)) {\n\t\t\t\tpendingNodes.remove(Ninaloader.me);\n\t\t\t}\n\n\t\t\tSystem.out.println(\"$: HSH: Total number of landmarks are: \"\n\t\t\t\t\t+ pendingNodes.size());\n\n\t\t\tif (pendingNodes.size() == 0) {\n\t\t\t\tString errorString = \"$: HSH no valid nodes\";\n\t\t\t\tSystem.out.println(errorString);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBarrier barrierUpdate = new Barrier(true);\n\t\t\tfinal StringBuffer errorBuffer = new StringBuffer();\n\n\t\t\tfinal long TimeStamp = System.currentTimeMillis();\n\n\t\t\tfor (AddressIF addr : pendingNodes) {\n\t\t\t\tseekLandmarks(TimeStamp, addr, barrierUpdate,\n\t\t\t\t\t\tpendingHSHLandmarks, errorBuffer);\n\t\t\t}\n\n\t\t\tEL.get().registerTimerCB(barrierUpdate, new CB0() {\n\t\t\t\tprotected void cb(CBResult result) {\n\t\t\t\t\tString errorString;\n\t\t\t\t\tif (errorBuffer.length() == 0) {\n\t\t\t\t\t\terrorString = new String(\"Success\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrorString = new String(errorBuffer);\n\t\t\t\t\t}\n\n\t\t\t\t\t// finish the landmark seeking process\n\n\t\t\t\t\tif (!pendingHSHLandmarks.containsKey(Long\n\t\t\t\t\t\t\t.valueOf(TimeStamp))\n\t\t\t\t\t\t\t|| pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks == null) {\n\t\t\t\t\t\tSystem.out.println(\"$: NULL elements! \");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks\n\t\t\t\t\t\t\t.size() < (0.7 * expectedLandmarks)) {\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp))\n\t\t\t\t\t\t\t\t.clear();\n\t\t\t\t\t\tpendingHSHLandmarks.remove(Long.valueOf(TimeStamp));\n\t\t\t\t\t\tSystem.out.println(\"$: not enough landmark nodes\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t//\n\t\t\t\t\t\tpendingHSHLandmarks.get(Long.valueOf(TimeStamp)).readyForUpdate = true;\n\t\t\t\t\t\tSystem.out.println(\"$: enough landmark nodes\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tfinal Set<AddressIF> nodes = new HashSet<AddressIF>(1);\n\t\t\t\t\t\tnodes\n\t\t\t\t\t\t\t\t.addAll(pendingHSHLandmarks.get(Long.valueOf(TimeStamp)).IndexOfLandmarks);\n\t\t\t\t\t\tupdateRTTs(Long.valueOf(TimeStamp), nodes, new CB1<String>() {\n\t\t\t\t\t\t\tprotected void cb(CBResult ncResult, String errorString) {\n\t\t\t\t\t\t\t\tswitch (ncResult.state) {\n\t\t\t\t\t\t\t\tcase OK: {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"$: Update completed\");\n\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcase ERROR:\n\t\t\t\t\t\t\t\tcase TIMEOUT: {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnodes.clear();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"public void leerPlanesDietas();",
"public abstract CDasherView.DRect VisibleRegion();",
"public Hashtable<T,ratingCoord<T>> processRatingSamplesHost(long timer,List<T> hosts, \n\t\t\tList<T> landmarks, Matrix host2Landmarks, Hashtable<T,ratingCoord<T>> landmark_x) {\t\t\t\n\t\t//construct landmark coordinate matrix based on caches\n\t\tdouble lambda=2.4;\n\t\tHashtable<T,ratingCoord<T>> coords = GradientBasedMMMF.getInstance().compute_basicMMMF(hosts,host2Landmarks, host2Landmarks.transpose(),\n\t\t\t\tthis.getU(landmarks, landmark_x), this.getV(landmarks, landmark_x), this.getTheta(landmarks, landmark_x), dim, level,lambda);\t\t\n\t\treturn coords;\n\n\t}",
"public ArrayList<Collidable> getNeighbors();",
"public MapCell[] getNeighbors(){\n\t\tMapCell[] neighbors = new MapCell[4];\n\t\tneighbors[0] = getNeighbor(\"east\");\n\t\tneighbors[1] = getNeighbor(\"north\");;\n\t\tneighbors[2] = getNeighbor(\"west\");\n\t\tneighbors[3] = getNeighbor(\"south\");\n\t\treturn neighbors;\n\t}",
"public void placeIslands(ObservableList<Node> root, int scale) {\n\t\tRandom rand = new Random();\n\t\tfor (int i=0; i<10; i++) {\n\t\t\tint x = rand.nextInt(dimensions) + 0;\n\t\t\tint y = rand.nextInt(dimensions) + 0;\n\t\t\twhile(oceanGrid[x][y] == 1) {\n\t\t\t\t//don't duplicate island position\n\t\t\t\tx = rand.nextInt(dimensions) + 0;\n\t\t\t}\n\t\t\tRectangle rect = new Rectangle(x*scale, y*scale, scale, scale);\n\t\t\trect.setStroke(Color.BLACK);\n\t\t\trect.setFill(Color.DARKCYAN);\n\t\t\troot.add(rect);\n\t\t\toceanGrid[x][y] = 1;\n\t\t}\n\t}",
"void setLanesArray(int i, org.landxml.schema.landXML11.LanesDocument.Lanes lanes);",
"public List<int[]> getCoords(Board lev){\n \tint[][] coords;\n \tColumn c = lev.getColumns().get(col);\n \tint[] p1 = c.getFrontPoint1();\n \tint[] p2 = c.getFrontPoint2();\n\n \tif (isPod && z < Board.BOARD_DEPTH) {\n \t\tint cx = p1[0] + (p2[0]-p1[0])/2;\n \t\tint cy = p1[1] + (p2[1]-p1[1])/2;\n\n \t\t// define outer and inner diamonds\n \t\tint[][] outer = new int[4][3];\n \t\tint[][] inner = new int[4][3];\n \t\touter[0][0] = cx;\n \t\touter[0][1] = cy - PODSIZE;\n \t\touter[0][2] = (int)z;\n \t\touter[1][0] = cx + PODSIZE;\n \t\touter[1][1] = cy;\n \t\touter[1][2] = (int) z;\n \t\touter[2][0] = cx;\n \t\touter[2][1] = cy + PODSIZE;\n \t\touter[2][2] = (int) z;\n \t\touter[3][0] = cx - PODSIZE;\n \t\touter[3][1] = cy;\n \t\touter[3][2] = (int) z;\n \t\tinner[0][0] = cx;\n \t\tinner[0][1] = cy - PODSIZE/3;\n \t\tinner[0][2] = (int) z;\n \t\tinner[1][0] = cx + PODSIZE/3;\n \t\tinner[1][1] = cy;\n \t\tinner[1][2] = (int) z;\n \t\tinner[2][0] = cx;\n \t\tinner[2][1] = cy + PODSIZE/3;\n \t\tinner[2][2] = (int) z;\n \t\tinner[3][0] = cx - PODSIZE/3;\n \t\tinner[3][1] = cy;\n \t\tinner[3][2] = (int) z;\n\n \t\t// define line path through those diamonds:\n \t\tcoords = new int[17][3];\n \t\tcoords[0] = outer[0];\n \t\tcoords[1] = outer[1];\n \t\tcoords[2] = inner[1];\n \t\tcoords[3] = inner [0];\n \t\tcoords[4] = outer[1];\n \t\tcoords[5] = outer[2];\n \t\tcoords[6] = inner[2];\n \t\tcoords[7] = inner[1];\n \t\tcoords[8] = outer[2];\n \t\tcoords[9] = outer[3];\n \t\tcoords[10]= inner[3];\n \t\tcoords[11]= inner[2];\n \t\tcoords[12]= outer[3];\n \t\tcoords[13]= outer[0];\n \t\tcoords[14]= inner[0];\n \t\tcoords[15]= inner[3];\n \t\tcoords[16]= outer[0];\n \t}\n \telse { \n \t\tcoords = new int[7][3];\n \t\tswitch (s) {\n \t\tcase STRAIGHT:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) (z-EXHEIGHT_H);\n \t\t\tcoords[1][0] = p2[0];\n \t\t\tcoords[1][1] = p2[1];\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H);\n \t\t\tcoords[2][0] = p2[0] - (p2[0]-p1[0])/3;\n \t\t\tcoords[2][1] = p2[1] - (p2[1]-p1[1])/3;\n \t\t\tcoords[2][2] = (int) z;\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) (z-EXHEIGHT_H);\n \t\t\tcoords[4][0] = p1[0];\n \t\t\tcoords[4][1] = p1[1];\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H);\n \t\t\tcoords[5][0] = p1[0] + (p2[0]-p1[0])/3;\n \t\t\tcoords[5][1] = p1[1] + (p2[1]-p1[1])/3;\n \t\t\tcoords[5][2] = (int) z;\n \t\t\tcoords[6][0] = p1[0];\n \t\t\tcoords[6][1] = p1[1];\n \t\t\tcoords[6][2] = (int) (z-EXHEIGHT_H);\n \t\t\tbreak;\n\n \t\tcase JUMPRIGHT1:\n \t\tcase LANDRIGHT2:\n \t\t\tcoords[0][0] = p1[0] + (p2[0]-p1[0])/4;\n \t\t\tcoords[0][1] = p1[1] + (p2[1]-p1[1])/4;\n \t\t\tcoords[0][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[1][0] = p2[0] + (p2[0]-p1[0])/4;\n \t\t\tcoords[1][1] = p2[1] + (p2[1]-p1[1])/4;\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[2][0] = p2[0] - (p2[0]-p1[0])/11;\n \t\t\tcoords[2][1] = p2[1] - (p2[1]-p1[1])/11;\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) z;\n \t\t\tcoords[4][0] = (int) (p1[0] + (p2[0]-p1[0])/2);\n \t\t\tcoords[4][1] = (int) (p1[1] + (p2[1]-p1[1])/2);\n \t\t\tcoords[4][2] = (int) (z+ EXHEIGHT_H*5);\n \t\t\tcoords[5][0] = (int) (p2[0] - (p2[0]-p1[0])/2.5);\n \t\t\tcoords[5][1] = (int) (p2[1] - (p2[1]-p1[1])/2.5);\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H *2.6);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPLEFT1:\n \t\tcase LANDLEFT2:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) z;\n \t\t\tcoords[1][0] = (int) (p1[0] + (p2[0]-p1[0])/2);\n \t\t\tcoords[1][1] = (int) (p1[1] + (p2[1]-p1[1])/2);\n \t\t\tcoords[1][2] = (int) (z+ EXHEIGHT_H*5);\n \t\t\tcoords[2][0] = (int) (p1[0] + (p2[0]-p1[0])/2.5);\n \t\t\tcoords[2][1] = (int) (p1[1] + (p2[1]-p1[1])/2.5);\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H *2.6);\n \t\t\tcoords[3][0] = p2[0] - (p2[0]-p1[0])/4;\n \t\t\tcoords[3][1] = p2[1] - (p2[1]-p1[1])/4;\n \t\t\tcoords[3][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[4][0] = p1[0] - (p2[0]-p1[0])/4;\n \t\t\tcoords[4][1] = p1[1] - (p2[1]-p1[1])/4;\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[5][0] = p1[0] + (p2[0]-p1[0])/11;\n \t\t\tcoords[5][1] = p1[1] + (p2[1]-p1[1])/11;\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPLEFT2:\n \t\tcase LANDLEFT1:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) z;\n \t\t\tcoords[1][0] = (int) (p1[0] + (p2[0]-p1[0])/4.5);\n \t\t\tcoords[1][1] = (int) (p1[1] + (p2[1]-p1[1])/4.5);\n \t\t\tcoords[1][2] = (int) (z+ EXHEIGHT_H*8);\n \t\t\tcoords[2][0] = (int) (p1[0] + (p2[0]-p1[0])/4.5);\n \t\t\tcoords[2][1] = (int) (p1[1] + (p2[1]-p1[1])/4.5);\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H *4);\n \t\t\tcoords[3][0] = p2[0] - (p2[0]-p1[0])/2;\n \t\t\tcoords[3][1] = p2[1] - (p2[1]-p1[1])/2;\n \t\t\tcoords[3][2] = (int) (z+EXHEIGHT_H*4);\n \t\t\tcoords[4][0] = (int) (p1[0] - (p2[0]-p1[0])/3.5);\n \t\t\tcoords[4][1] = (int) (p1[1] - (p2[1]-p1[1])/3.5);\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[5][0] = p1[0];// - (p2[0]-p1[0])/15;\n \t\t\tcoords[5][1] = p1[1];// - (p2[1]-p1[1])/15;\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPRIGHT2:\n \t\tcase LANDRIGHT1:\n \t\t\tcoords[0][0] = p2[0] - (p2[0]-p1[0])/2;\n \t\t\tcoords[0][1] = p2[1] - (p2[1]-p1[1])/2;\n \t\t\tcoords[0][2] = (int) (z+EXHEIGHT_H*4);\n \t\t\tcoords[1][0] = (int) (p2[0] + (p2[0]-p1[0])/3.5);\n \t\t\tcoords[1][1] = (int) (p2[1] + (p2[1]-p1[1])/3.5);\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[2][0] = p2[0];// - (p2[0]-p1[0])/15;\n \t\t\tcoords[2][1] = p2[1];// - (p2[1]-p1[1])/15;\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) z;\n \t\t\tcoords[4][0] = (int) (p2[0] - (p2[0]-p1[0])/4.5);\n \t\t\tcoords[4][1] = (int) (p2[1] - (p2[1]-p1[1])/4.5);\n \t\t\tcoords[4][2] = (int) (z+ EXHEIGHT_H*8);\n \t\t\tcoords[5][0] = (int) (p2[0] - (p2[0]-p1[0])/4.5);\n \t\t\tcoords[5][1] = (int) (p2[1] - (p2[1]-p1[1])/4.5);\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H *4);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n \t\t}\n \t}\n\n \treturn Arrays.asList(coords);\n }",
"Vec3 getHomeCoords(IGeneticMob geneticMob);",
"public void getSample(T landmark){\n\t\t\n\t}",
"@Override\n\t\t\t\tprotected void cb(CBResult result) {\n\t\t\t\t\tupdateLandmarks();\n\t\t\t\t}",
"public Collection<N> neighbors();",
"@Override\n\tvoid createNeighbourhood() {\n\t\t\n\t}",
"public ArrayList<RTLight> getVisibleLights(Point p){\n\r\n\t\tArrayList<RTLight> visibleLights=new ArrayList<RTLight>();\r\n\t\tfor(RTLight temp: lights){\r\n\t\t\t\r\n\t\t\r\n\t\t\tIntersection lightInt = trace(p,temp.getCenter());\r\n\t\t\t\r\n\t\t\tif(lightInt.getThing() == temp){\r\n\t\t\t\tvisibleLights.add((RTLight)lightInt.getThing());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn visibleLights;\r\n\t}",
"private void addSite(Vec2D v)\n\t\t{\n\t\tvoronoi.addPoint(v);\n\t\tstroke(0, 255, 255);\n\t\tpos.add(v);\n\t\t}",
"private boolean hayRayaHorizontal() {\n for (Casilla[] casilla : casillas) {\n if (linea(casilla))\n return true;\n }\n\n return false;\n }",
"List<double[]> getHorizontalWalls();",
"private String land() {\r\n\t\tint[] temp=tile.getLand();\r\n\t\tString out=\"Tile Land: \\n\\n\";\r\n\t\tint square=(int)Math.sqrt(temp.length);\r\n\t\tif(square*square<temp.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<temp.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<temp.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%4s\", temp[i]));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"static void visible() {\n int x, y;\n int[][] res = deepClone( pgmInf.img );\n\n System.out.print(\"Enter reference point: \");\n y = scan.nextInt();\n x = scan.nextInt();\n scan.nextLine(); // flush\n \n System.out.printf(\"Marking all pixels visible from %d,%d as white.\\n\", x, y);\n // mark visible points\n for (int i=0 ; i < pgmInf.width ; i++) {\n for (int j=0 ; j < pgmInf.height ; j++) {\n if ( lineBetween(x, y, i, j) ) res[j][i] = 9;\n }\n }\n pgmInf.img = res;\n System.out.println(\"Done.\");\n }",
"private boolean hayRayaVertical() {\n for (int j = 0; j < casillas[0].length; j++) {\n Casilla[] columna = new Casilla[casillas.length];\n for (int i = 0; i < casillas.length; i++) {\n columna[i] = casillas[i][j];\n }\n if (linea(columna))\n return true;\n }\n\n return false;\n }",
"GameBoardVertex(ArrayList<GameBoardVertex> neighbors){this.neighbors = neighbors;}",
"@Override\n public FacialLandmarkResult run(Mat frame) {\n return runByDetections(frame, new ResultList<>(Collections.singletonList(\n new ObjectDetectionResult(0, \"face\", 1.0f, 0, 0, frame.size().width(), frame.size().height())\n ))).get(0);\n }",
"org.jacorb.imr.HostInfo[] list_hosts();",
"public int getViewAreas(Map<String, ViewArea> _output)\n/* 207: */ {\n/* 208:281 */ if (_output != null) {\n/* 209:282 */ _output.put(\"_origin_VA\", this._origin_VA);\n/* 210: */ }\n/* 211:284 */ return 1 + super.getViewAreas(_output);\n/* 212: */ }",
"public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }",
"public List<Landmark> getAll() {\n\t\t// Retrieve session from Hibernate\n\t\tSession session = sessionFactory.getCurrentSession();\n\n\t\t// Create a Hibernate query (HQL)\n\t\tQuery query = session.createQuery(\"FROM Landmark\");\n\n\t\t// Retrieve all\n\t\treturn query.list();\n\t}",
"private Matrix getU(List<T> landmarks,\n\t\t\tHashtable<T, ratingCoord<T>> landmark_x) {\n\t\tint n=landmarks.size();\n\t\tint p=dim;\n\t\tMatrix mat=new DenseMatrix(n,p,0);\n\t\t\n\t\tIterator<T> ier = landmarks.iterator();\n\t\tint indexRow=0;\n\t\twhile(ier.hasNext()){\n\t\t\tT tmp = ier.next();\n\t\t\tif(!landmark_x.containsKey(tmp)){\n\t\t\t\tSystem.err.println(\"U: missing: \"+tmp);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tVec uu =landmark_x.get(tmp).p;\n\t\t\t\n\t\t\tfor(int i=0;i<p;i++){\n\t\t\t\tmat.setValue(indexRow,i, uu.direction[i]);\n\t\t\t}\n\t\t\tindexRow++;\n\t\t}\n\t\treturn mat;\t\n\t}",
"public synchronized void landmarksChanged (CityMap sender) {\n mapLandmarks = cityMap.getMapLandmarks ();\n lastActivated = null;\n repaint ();\n }",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n return world.keySet();\n }",
"public boolean hasLandList() {\r\n return hasLandList;\r\n }",
"public interface SpatialRelationshipGeneratorService {\n public ArrayList<SpatialRelation>[][] getSpatialRelationshipMatrixOfObject(List<GraphicalImageComponent> objectList);\n\n}",
"@Override\r\n\tpublic void buildImpl() {\n\t\tint nbLasers =(int)Math.ceil((double)lanesPerLink.length / (double)linksPerLaser);\r\n\t\tlasers = new Laser[nbLasers];\r\n\t\tpoweredChannelForLaserI = new int[nbLasers];\r\n\t\tpoweredHorizonForLaserI = new double[nbLasers];\r\n\t\tcanBeExtended = new boolean[nbLasers];\r\n\t\tboolean timeLine = lue.isWithTimeLine();\r\n\t\tfor (int i = 0; i < nbLasers ; i++) {\r\n\t\t\tlasers[i] = laserTemplate.getCopy(i, nbLasers, timeLine);\r\n\t\t\tlasers[i].setLinkUtilisationExperiment(lue);\r\n\t\t}\r\n\t}",
"public ArrayList<Anchor> findAnchors(){\n ArrayList<Anchor> anchors = new ArrayList<Anchor>();\n //BoardSpace[][] boardSpaces = Board.getInstance().getBoardSpaces(); this is now set from the outside because my solver is using the ai\n for (int row = 0 ; row < boardSpaces.length ; row ++){\n for (int col = 0 ; col < boardSpaces[0].length ; col ++){\n Tile exp = boardSpaces[row][col].getTile();\n if (exp != null){ //if no tile here\n\n int startCol = col;\n int endCol = col;\n\n //check how far left the word can go without collisions\n if (col > 0 && boardSpaces[row][col - 1].getTile() == (null)){\n while (startCol > 0){\n if (row != Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row + 1][startCol - 1].getTile() != null){\n break;\n }\n if ( row != 0 && boardSpaces[row - 1][startCol - 1].getTile() != null){\n break;\n }\n if (startCol == 1){\n startCol--;\n break;\n }\n if (boardSpaces[row ][startCol -2].getTile() != null){\n break;\n }\n startCol--;\n }\n }\n\n //check how far right the word can go without collisions\n if (col < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row][col + 1].getTile() == null){\n while (endCol < Constants.BOARD_DIMENSIONS -1 ){\n\n if (row != Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row + 1][endCol + 1].getTile() != null){\n break;\n }\n if ( row != 0 && boardSpaces[row - 1][endCol + 1].getTile() != null ){\n break;\n }\n if (endCol == Constants.BOARD_DIMENSIONS - 2){\n endCol++;\n break;\n }\n if (boardSpaces[row ][endCol + 2].getTile() != (null)){\n break;\n }\n endCol++;\n }\n }\n\n //add the horizontal anchors\n if (col - startCol > 0 && endCol - col > 0){ // words that can go left or right\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), col - startCol, endCol - col , true));\n } else {\n //if only one then we need to do additional checks\n if (col - startCol > 0){\n if (col < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row][col + 1].getTile() != (null)){ // words that can only go left I need to readd this later.\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), col - startCol, endCol - col , true));\n }\n }\n if (endCol - col > 0){\n if (col > 0 && boardSpaces[row][col - 1 ].getTile() != (null)){ // words that can only go right\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), col - startCol, endCol - col , true));\n }\n }\n }\n\n int startRow = row;\n int endRow = row;\n\n //check how high the word can go without collisions\n if (row > 0 && boardSpaces[row - 1][col].getTile() == null){\n while (startRow > 0){\n if (col < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[startRow - 1][col + 1].getTile() != (null)){\n break;\n }\n if (col > 0 && boardSpaces[startRow - 1][col - 1].getTile() != (null)){\n break;\n }\n if (startRow == 1){\n startRow--;\n break;\n }\n if (boardSpaces[startRow - 2][col ].getTile() != (null)){\n break;\n }\n startRow--;\n }\n\n }\n\n //check how low the word can go without collisions\n if (row < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[row + 1][col].getTile() == (null)){\n while (endRow < Constants.BOARD_DIMENSIONS -1){\n if (col < Constants.BOARD_DIMENSIONS - 1 && boardSpaces[endRow + 1][col + 1].getTile() !=(null)){\n break;\n }\n if (col > 0 &&\tboardSpaces[endRow + 1][col - 1].getTile() != (null)){\n break;\n }\n if (endRow == Constants.BOARD_DIMENSIONS - 2){\n endRow++;\n break;\n }\n if(boardSpaces[endRow + 2][col].getTile() != (null)){\n break;\n }\n\n endRow++;\n }\n }\n\n\n if (row - startRow > 0 && endRow - row > 0){\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), row - startRow, endRow - row, false));\n } else{//if only one then we need to do additional checks\n if (row - startRow > 0){ //words that can only go up I'm not using these yet because It's been causing bugs but I should fix this\n if (row < Constants.BOARD_DIMENSIONS-1 && boardSpaces[row+1][col].getTile() == (null)){\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), row - startRow, endRow - row, false));\n }\n }\n if (endRow - row > 0){ //words that can only go down\n if (row > 0 && boardSpaces[row-1][col].getTile() == (null)){\n anchors.add(new Anchor(row, col, boardSpaces[row][col].getTile(), row - startRow, endRow - row, false));\n }\n }\n }\n }\n }\n }\n return anchors;\n }",
"public Hashtable<T,ratingCoord<T>> processSamplesLandmarks_(long timer, List<T> landmarks,\n\t\t\tMatrix centralizedRatingMat) {\n\t\t// TODO Auto-generated method stub\n\t//\tMatrix mat=centralizedRatingMat.subMatrix(landmarks,landmarks);\n\t\t\n\t\tHashtable<T,ratingCoord<T>> coords = MyConvergeMMMF_bias.getInstance().compute_basicMMMF(landmarks, centralizedRatingMat, dim, level);\n\t\t//Iterator<ratingCoord<T>> ier = coords.iterator();\n\t\t\n\t\treturn coords;\t\t\n\t}",
"@Override public ArrayList<Location> neighbors(final Location id) {\n ArrayList<Location> neighbours = new ArrayList<>();\n for (Location direction : directions){\n\n Location position = new Location(direction.x + id.x, direction.y + id.y);\n\n if (inBounds(position) && isPassable(position))\n neighbours.add(position);\n }\n return neighbours;\n }",
"public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }",
"static public ArrayList<MapLocation> bresenham(MapLocation start, MapLocation end) {\n ArrayList<MapLocation> ray = new ArrayList<MapLocation>();\n int startX = start.getColumn();\n int startY = start.getRow();\n int endX = end.getColumn();\n int endY = end.getRow();\n ray.add(new MapLocation(startY, startX));\n\n int dx = endX - startX;\n int dy = endY - startY;\n int D = 2 * dy - dx;\n int y = startY;\n if (D > 0) {\n y = y + 1;\n D = D - (2 * dx);\n }\n for (int x = startX + 1; x < endX; x++) {\n ray.add(new MapLocation(y, x));\n D = D + (2 * dy);\n if (D > 0) {\n y = y + 1;\n D = D - (2 * dx);\n }\n }\n return ray;\n }",
"public visibleObject[][] getVisibility() {\n\n\t\tvisibleObject visiblility[][] = new GridCell.visibleObject[2 * visionRange + 1][2 * visionRange + 1];\n\t\tGridCell[][] cellArray = MazeGame.worldGraph.cellArray;\n\n\t\tfor (int i = (-visionRange); i < visionRange + 1; i++) {\n\t\t\tfor (int j = (-visionRange); j < visionRange + 1; j++) {\n\n\t\t\t\tGridCell cell = MazeGame.worldGraph.cellArray[currentCell.rowIndex + i][currentCell.columnIndex + j];\n\n\t\t\t\tfor (int k = currentCell.rowIndex - visionRange; k < currentCell.rowIndex + visionRange + 1; k++) {\n\t\t\t\t\tfor (int l = (currentCell.columnIndex - visionRange); l < currentCell.columnIndex + visionRange\n\t\t\t\t\t\t\t+ 1; l++) {\n\n\t\t\t\t\t\tif (!cellArray[k][l].hasEastEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + j + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!cellArray[k][l].hasSouthEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(currentCell.columnIndex + j + 0.5, currentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, currentCell.rowIndex + 0.5, cellArray[k][l].columnIndex,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex +1 , cellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tif(visiblility[i + visionRange][j + visionRange] != visibleObject.NULL){\n//\n//\t\t\t\t\tif (cell.cheese != null) {\n//\t\t\t\t\t\tif (cell.jerry != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY_AND_CHEESE;\n//\t\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM_AND_CHEESE;\n//\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.CHEESE;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t} else if (cell.jerry != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY;\n//\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM;\n//\t\t\t\t\t} else {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.EMPTY_SPACE;\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.visiblility = visiblility;\n\t\treturn visiblility;\n\t}",
"private void connectWithVirtualSites(int row, int col) {\n if (row == 1) {\n UF.union(0, getIndex(row, col));\n } else {\n UF.union(getSize() * getSize() + 1, getIndex(row, col));\n }\n }",
"@Override\n\tpublic List<Location> getVertices() {\n\t\treturn locations;\n\t}",
"void synchronizeHostData(INDArray array);",
"public static void printAllAreas() {\r\n\t for (int i = 0; i <= 2967; i++) {\r\n\t System.out.println(\"Load Shedding Inforamtion: \" + LSItemsArray[i].getInformation()\r\n + \": Corresponding Areas: \" + LSItemsArray[i].getAreas());\r\n\r\n\t }\r\n\t }",
"@Override\n public boolean onClusterClick(Cluster<Company> cluster) {\n LatLngBounds.Builder builder = LatLngBounds.builder();\n for (ClusterItem item : cluster.getItems()) {\n builder.include(item.getPosition());\n }\n // Get the LatLngBounds\n final LatLngBounds bounds = builder.build();\n\n // Animate camera to the bounds\n try {\n mMap.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 200));\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return true;\n }",
"public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@OnClick(R.id.toggle_view_action)\n public void onToggleView() {\n logD(\"Be kind and implement map view of landmarks\");\n }",
"@SuppressWarnings(\"unused\")\r\n private void JCATsegmentVisceralFat2D01() {\r\n \r\n // get the VOI for the external boundary of the abdomen\r\n VOIVector vois = abdomenImage.getVOIs();\r\n if(vois.size() != 1) {\r\n System.err.println(\"segmentVisceralFat2D() Error, did not get 1 VOI\");\r\n return;\r\n }\r\n\r\n // abdomenImage has one VOI, lets get it\r\n VOI theVOI = vois.get(0);\r\n \r\n // find the center-of-mass of the contour\r\n VOIContour maxContour = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals = new int [maxContour.size()];\r\n int[] yVals = new int [maxContour.size()];\r\n int[] zVals = new int [maxContour.size()];\r\n maxContour.exportArrays(xVals, yVals, zVals);\r\n \r\n int xcm = 0, ycm = 0, zcm = 0;\r\n for (int idx = 0; idx < maxContour.size(); idx++) {\r\n xcm += xVals[idx];\r\n ycm += yVals[idx];\r\n zcm += zVals[idx];\r\n }\r\n \r\n xcm /= maxContour.size();\r\n ycm /= maxContour.size();\r\n zcm /= maxContour.size();\r\n \r\n ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm +\" Zcm: \" +zcm+\"\\n\", ViewJFrameMessage.DEBUG);\r\n \r\n // This point should be inside the abdomen\r\n // walk right until you find the external border of the abdomen\r\n \r\n // update the volumeBitSet to match the closed abdomenImage\r\n short[] srcSliceBuffer = new short[sliceSize];\r\n short[] profile = new short[xDim];\r\n try {\r\n abdomenImage.exportData(0, sliceSize, sliceBuffer);\r\n srcImage.exportData(0, sliceSize, srcSliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"Error exporting data\");\r\n return;\r\n }\r\n\r\n int x = xcm;\r\n int elementCount = 0;\r\n int yOffset = ycm * xDim;\r\n while (x < xDim && sliceBuffer[x + yOffset] == abdomenTissueLabel) {\r\n profile[elementCount] = srcSliceBuffer[x + yOffset];\r\n x++;\r\n elementCount++;\r\n } // end while(...)\r\n \r\n // profile has an intensity profile of the pixels along the ray from the \r\n // contour CM to the external skin boundary. \r\n \r\n \r\n }",
"public void roadList(){\n for(int i = 0; i < roads.size(); i++){\n System.out.println(i + \" \" + roads.get(i).start.getCityName() + \", \" + roads.get(i).end.getCityName());\n }\n }",
"int matchingLandmark(int x, int y) {\n System.out.println(\"matching lansg \" + x + \" \" + y);\n for (int i = 0; i < 50; i++) {\n if (landmarks[i][0] == x && landmarks[i][1] == y) {\n return i;\n }\n }\n return -1;\n }",
"private void mapContinents() {\n\t\tElevationMap elevs = mRegion.getElevationMap();\r\n\t\tif (elevs.w != w || elevs.h != h)\r\n\t\t\tthrow new RuntimeException(\"Elevation map and continent map are not the same size.\");\r\n\t\t\r\n\t\t// Create continent map\r\n\t\tthis.mContinents = new int[w][h];\r\n\t\t// Set points below sea level to 0, all else to 2\r\n\t\tfor (int x = 0; x < w; ++x) {\r\n\t\t\tfor (int y = 0; y < h; ++y) {\r\n\t\t\t\t// MUST CHANGE THIS; SEA LEVEL HARD CODED TO 5\r\n\t\t\t\tif (elevs.getElev(x, y) < 5) mContinents[x][y] = 0;\r\n\t\t\t\telse mContinents[x][y] = 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Previous step separated land and water; now we distinguish unique land masses\r\n\t\tfor (int x = 0; x < w; ++x) {\r\n\t\t\tfor (int y = 0; y < h; ++y) {\r\n\t\t\t\t// \r\n\t\t\t\tif (mContinents[x][y] == 0) continue;\r\n\t\t\t\telse if (mContinents[x][y] == 2) {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void cluster() {\n\t\tint index = 0;\n\t\tfor (DataObject obj : objects) {\n\t\t\tindex = getNearestCenterIndex(obj, centers);\n\t\t\tclusters.get(index).add(obj);\n\t\t}\n\t}",
"@PostConstruct\n public void initRoad(){\n LinearReference();\n }",
"@Override\n public Iterator<Location> iterator() {\n return new NeighborhoodIterator(this, new Location(0, 0));\n }",
"void setLanesArray(org.landxml.schema.landXML11.LanesDocument.Lanes[] lanesArray);",
"private void initializeLandmarks()\n\t{\n\t\t// Do nothing if not set\n\t\tif (startingMinionPerArea == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Check starting landmark for each area\n\t\tfor(Area area : board.getAreaList())\n\t\t{\n\t\t\tint number = area.getNumber();\n\t\t\tInteger minionCount = startingMinionPerArea.get(number);\n\t\t\tif (minionCount != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < minionCount; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(Player player : playerList)\n\t\t\t\t\t{\n\t\t\t\t\t\tarea.addMinion(player.removeMinion());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void beginHostile()\r\n\t{\n\t\t\r\n\t}",
"int[] getLogicalToVisualMap() {\n if (l2vMap == null) {\n l2vMap = getInverseOrder(getVisualToLogicalMap());\n }\n return l2vMap;\n }",
"public void highlightTransportLine(AnchorPane anchor_pane_map, ArrayList<Street> streets_list, ArrayList<Line> all_streets_lines)\r\n {\r\n Line line1 = null;\r\n for (Street s : streets_list) {\r\n if (this.getStreetsMap().get(0).equals(s)) // highlight first street of line\r\n {\r\n int begin_stop_x = this.getStopsMap().get(0).getCoordinate().getX();\r\n int begin_stop_y = this.getStopsMap().get(0).getCoordinate().getY();\r\n\r\n Coordinate begin_street_1 = s.getCoordinates().get(0);\r\n Coordinate begin_street_2 = s.getCoordinates().get(2);\r\n\r\n Coordinate second_street_1 = this.getStreetsMap().get(1).getCoordinates().get(0);\r\n Coordinate second_street_2 = this.getStreetsMap().get(1).getCoordinates().get(2);\r\n\r\n if ((begin_street_1.getX() == second_street_1.getX() && begin_street_1.getY() == second_street_1.getY()) || (begin_street_1.getX() == second_street_2.getX() && begin_street_1.getY() == second_street_2.getY())) {\r\n line1 = new Line(begin_stop_x, begin_stop_y, begin_street_1.getX(), begin_street_1.getY());\r\n line1.setStroke(this.getTransportLineColor());\r\n line1.setStrokeWidth(5);\r\n anchor_pane_map.getChildren().addAll(line1);\r\n } else if ((begin_street_2.getX() == second_street_1.getX() && begin_street_2.getY() == second_street_1.getY()) || (begin_street_2.getX() == second_street_2.getX() && begin_street_2.getY() == second_street_2.getY())) {\r\n line1 = new Line(begin_stop_x, begin_stop_y, begin_street_2.getX(), begin_street_2.getY());\r\n line1.setStroke(this.getTransportLineColor());\r\n line1.setStrokeWidth(5);\r\n anchor_pane_map.getChildren().addAll(line1);\r\n }\r\n } else if (this.getStreetsMap().get(this.getStreetsMap().size() - 1).equals(s)) // end street of line\r\n {\r\n int end_stop_x = this.getStopsMap().get(this.getStopsMap().size() - 1).getCoordinate().getX();\r\n int end_stop_y = this.getStopsMap().get(this.getStopsMap().size() - 1).getCoordinate().getY();\r\n\r\n Coordinate end_street_1 = s.getCoordinates().get(0);\r\n Coordinate end_street_2 = s.getCoordinates().get(2);\r\n\r\n Coordinate nexttolast_street_1 = this.getStreetsMap().get(this.getStreetsMap().size() - 2).getCoordinates().get(0);\r\n Coordinate nexttolast_street_2 = this.getStreetsMap().get(this.getStreetsMap().size() - 2).getCoordinates().get(2);\r\n\r\n if ((end_street_1.getX() == nexttolast_street_1.getX() && end_street_1.getY() == nexttolast_street_1.getY()) || (end_street_1.getX() == nexttolast_street_2.getX() && end_street_1.getY() == nexttolast_street_2.getY())) {\r\n line1 = new Line(end_stop_x, end_stop_y, end_street_1.getX(), end_street_1.getY());\r\n line1.setStroke(this.getTransportLineColor());\r\n line1.setStrokeWidth(5);\r\n anchor_pane_map.getChildren().addAll(line1);\r\n } else if ((end_street_2.getX() == nexttolast_street_1.getX() && end_street_2.getY() == nexttolast_street_1.getY()) || (end_street_2.getX() == nexttolast_street_2.getX() && end_street_2.getY() == nexttolast_street_2.getY())) {\r\n line1 = new Line(end_stop_x, end_stop_y, end_street_2.getX(), end_street_2.getY());\r\n line1.setStroke(this.getTransportLineColor());\r\n line1.setStrokeWidth(5);\r\n anchor_pane_map.getChildren().addAll(line1);\r\n }\r\n } else if (this.getStreetsMap().contains(s)) { // highlight whole street from line\r\n s.highlightStreet(anchor_pane_map, all_streets_lines, this.getTransportLineColor());\r\n }\r\n }\r\n }",
"public ArrayList<Lane> getLanes() {\r\n return lanes;\r\n }",
"private void getCurrentDetectedLipCoordinates(float coor[]) {\n if (coor.length != porc_lipstick_down_highlight_filter_refrence_feature_table.length * 2)\n return;\n\n for (int i = 0; i < porc_lipstick_down_highlight_filter_refrence_feature_table.length; i++) {\n coor[2 * i] = facesFeaturesCoordinates[2 * porc_lipstick_down_highlight_filter_refrence_feature_table[i]];\n coor[2 * i + 1] = facesFeaturesCoordinates[2 * porc_lipstick_down_highlight_filter_refrence_feature_table[i] + 1];\n }\n\n }",
"@Override\n public ArrayList<ICatLocDetail> getLocalities() {\n return localities;\n }",
"@Override\n public void call(List<HistoricLandmarkDistanceSelect> landmarks) {\n if (!query.equals(lastQuery.get())) {\n return;\n }\n\n restoreSelectedLandmark(landmarks);\n\n mLandmarks = landmarks;\n\n bus.publish(new OnLandmarkLoadEvent());\n }",
"public int[][] place(){\r\n\t\treturn coords(pos);\r\n\t}",
"private static void AddFocusedDetectorPositions( DataSet DS,\n float angle_deg,\n float final_L_m )\n {\n float[] position = new float[3];\n float angleRad = (float)(angle_deg*Math.PI/180);\n\n position[0] = (float)( final_L_m*Math.cos( angleRad ));\n position[1] = (float)( final_L_m*Math.sin( angleRad ));\n position[2] = 0;\n\n Vector3D pos = new Vector3D(position[0], position[1], position[2]);\n\n int pixelNum = 1;\n for( int i = 0; i < DS.getNum_entries(); i++)\n {\n Data D = DS.getData_entry(i);\n DetectorPosition dp = new DetectorPosition( pos );\n D.setAttribute( new DetPosAttribute(Attribute.DETECTOR_POS, dp ));\n\n Vector3D up_vec = new Vector3D(0,0,1);\n Vector3D base_vec = new Vector3D();\n Vector3D radial_vec = new Vector3D( pos );\n radial_vec.normalize();\n base_vec.cross( up_vec, radial_vec );\n int id = D.getGroup_ID();\n\n UniformGrid grid = new UniformGrid( id, \"m\", pos, base_vec, up_vec,\n .2f, .2f, .002f, 1, 1);\n DetectorPixelInfo pix =\n new DetectorPixelInfo( pixelNum,(short)1, (short)1,grid );\n\n D.setAttribute( new PixelInfoListAttribute( Attribute.PIXEL_INFO_LIST,\n new PixelInfoList(pix)) );\n }\n }",
"public static ArrayList<XYCoord> findVisibleLocations(GameMap map, Unit viewer, int x, int y, boolean piercing)\n {\n ArrayList<XYCoord> viewables = new ArrayList<XYCoord>();\n\n if( map.isLocationValid(x, y) )\n {\n int range = (piercing)? viewer.model.visionRangePiercing : viewer.model.visionRange;\n // if it's a surface unit, give it the boost the terrain would provide\n if( viewer.model.isSurfaceUnit() )\n range += map.getEnvironment(x, y).terrainType.getVisionBoost();\n viewables.addAll(findVisibleLocations(map, new XYCoord(x, y), range, piercing));\n }\n \n return viewables;\n }",
"Set<MacAddress> neighbors();",
"public WorldCoord getFrameLinkset()\r\n/* 45: */ {\r\n/* 46: 34 */ return null;\r\n/* 47: */ }"
] | [
"0.56027234",
"0.5593807",
"0.5497396",
"0.5388202",
"0.5387952",
"0.53703886",
"0.5337849",
"0.5297724",
"0.5294891",
"0.52768475",
"0.52463657",
"0.5215418",
"0.5189524",
"0.5108677",
"0.5030658",
"0.5025717",
"0.49922717",
"0.49894834",
"0.4959149",
"0.49564445",
"0.49519476",
"0.4947461",
"0.49454612",
"0.49328014",
"0.49186194",
"0.4899502",
"0.4882709",
"0.4872022",
"0.48682278",
"0.48606744",
"0.48576167",
"0.48420554",
"0.48211822",
"0.4810643",
"0.48075503",
"0.4795354",
"0.47911176",
"0.47859746",
"0.47515303",
"0.47480857",
"0.4728775",
"0.47276172",
"0.47262523",
"0.4717292",
"0.46996588",
"0.46993446",
"0.46893117",
"0.46860445",
"0.46740127",
"0.4670748",
"0.46668383",
"0.46565923",
"0.46553785",
"0.46548435",
"0.46548185",
"0.46511707",
"0.464288",
"0.46425605",
"0.46368575",
"0.46349898",
"0.46336636",
"0.46299043",
"0.46232292",
"0.46131402",
"0.46128747",
"0.4603968",
"0.4597498",
"0.45935526",
"0.4591055",
"0.45893157",
"0.45869064",
"0.45856702",
"0.4582078",
"0.4580303",
"0.45773008",
"0.45736",
"0.45581833",
"0.45563996",
"0.4549304",
"0.4546236",
"0.45430228",
"0.45357278",
"0.4533815",
"0.45315453",
"0.4528455",
"0.45210052",
"0.45200628",
"0.45177525",
"0.45171303",
"0.45165095",
"0.45156923",
"0.45059833",
"0.45017684",
"0.4499683",
"0.44966167",
"0.4495622",
"0.4494928",
"0.44948643",
"0.44940552",
"0.44867823",
"0.44853538"
] | 0.0 | -1 |
TODO Autogenerated method stub | public Matrix_4_HSH getRelativeCoordinates(AddressIF currentNode,Collection<AddressIF > allNodes,
Collection<AddressIF > landmarks, double[] lat) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void doInitialClustering(AddressIF me, Matrix_4_HSH tmp) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
DataService dataservice = new DataService();
System.out.println(dataservice.addUser("Thomas")); // addUser(string username)
System.out.println(dataservice.addUser("AmirAli"));
System.out.println(dataservice.addUser("Rabih"));
System.out.println(dataservice.addList("Code")); // addList(string name)
System.out.println(dataservice.addList("Description"));
System.out.println(dataservice.addList("Misc"));
System.out.println(dataservice.addTask("Code", "Do Everything", 12, 1, "Write the whole code"));
/*
* addTask(string list, string name, unsigned int estimatedTime, unsigned int
* priority, string description)
*/
System.out.println(dataservice.editTask("Do Everything", 12, 10, "Write the whole code"));
/*
* editTask(string task, unsigned int estimatedTime, unsigned int priority,
* string description)
*/
System.out.println(dataservice.assignTask("Do Everything", "Rabih")); // assignTask(string task, string user)
System.out.println(dataservice.printTask("Do Everything")); // printTask(string task)
System.out.println(dataservice.addTask("Code", "Destroy code formatting", 1, 2,
"Rewrite the whole code in a worse format"));
System.out.println(dataservice.assignTask("Destroy code formatting", "Thomas"));
System.out.println(dataservice.addTask("Description", "Write Description", 3, 1, "Write the damn description"));
System.out.println(dataservice.assignTask("Write Description", "AmirAli"));
System.out.println(dataservice.addTask("Misc", "Upload Assignment", 1, 1, "Upload it"));
System.out.println(dataservice.completeTask("Do Everything")); // completeTask(string task)
System.out.println(dataservice.printUsersByPerformance());
System.out.println(dataservice.printUsersByWorkload());
System.out.println(dataservice.printUnassignedTasksByPriority());
System.out.println(dataservice.deleteTask("Upload Assignment")); // deleteTask(string task)
System.out.println(dataservice.printAllUnfinishedTasksByPriority());
System.out.println(dataservice.addTask("Misc", "Have fun", 10, 2, "Just do it"));
System.out.println(dataservice.moveTask("Have fun", "Code")); // moveTask(string task, string list)
System.out.println(dataservice.printTask("Have fun"));
System.out.println(dataservice.printList("Code")); // printList(string list)
System.out.println(dataservice.printAllLists());
System.out.println(dataservice.printUserTasks("AmirAli")); // printUserTasks(string user)
System.out.println(dataservice.printUnassignedTasksByPriority());
System.out.println(dataservice.printAllUnfinishedTasksByPriority());
// TODO Write all the prints into a file.
final File file = new File("../output.txt");
try (PrintWriter writer = new PrintWriter(new FileOutputStream(file, true));) {
writer.println(dataservice.getOutput());
writer.flush();
} catch (FileNotFoundException e) {
e.printStackTrace();
}
// TODO Save users in a db.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
get the parent and the current node | public Node<E> delete(E payload) {
Node<E> parent = searchParent(payload);
Node<E> current = search(payload);
if (current != null)
return delete(current, parent);
else
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node getParent();",
"public TreeNode getParentNode();",
"public TreeNode getParent() { return par; }",
"public TreeNode getParent ()\r\n {\r\n return parent;\r\n }",
"Node<T> parent();",
"public Node getParent(){\n return parent;\n }",
"public XMLElement getParent()\n/* */ {\n/* 323 */ return this.parent;\n/* */ }",
"public ParseTreeNode getParent() {\r\n return _parent;\r\n }",
"@JsProperty\n Node getParentNode();",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public Node getParent() {\r\n\t\t\treturn parent;\r\n\t\t}",
"public IRNode getParent(IRNode node);",
"public Node getParent() {\n return parent;\n }",
"public Node getParent() {\n return parent;\n }",
"CoreParentNode coreGetParent();",
"public int getParentNode(){\n\t\treturn parentNode;\n\t}",
"public int getParent();",
"public PageTreeNode getParent() {\n return parent;\n }",
"public TreeNode getParent() {\n\t\treturn null;\n\t}",
"public SearchTreeNode getParent() { return parent; }",
"Object getParent();",
"public TreeNode getParent()\n {\n return mParent;\n }",
"public TreeNode getParent()\r\n\t{\r\n\t\treturn m_parent;\r\n\t}",
"@Override\r\n\t\tpublic Node getParentNode()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\n\tpublic TreeNode getParent() {\n\t\treturn this.parent ;\n\t}",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"TMNodeModelComposite getParent() {\n return parent;\n }",
"@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn parent;\r\n\t}",
"public Node getParentNode() {\n return parentNode;\n }",
"public XMLPath getParent() {\r\n return this.parent == null ? null : this.parent.get();\r\n }",
"@Override\r\n\tpublic TreeNode getParent() {\n\t\treturn this.parent;\r\n\t}",
"public Object getParent()\n {\n return traversalStack.get(traversalStack.size() - 2);\n }",
"public EventNode getParent() {\n\t\treturn parent;\n\t}",
"public Node<T> getParent() {\n return this.parent;\n }",
"@Override\n\tpublic WhereNode getParent() {\n\t\treturn parent;\n\t}",
"MenuEntry getParent();",
"public String getParent() {\n return _theParent;\n }",
"@Override\n\tpublic TreeNode getParent() {\n\t\treturn this.parent;\n\t}",
"TreeNode<T> getParent();",
"private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}",
"public String getParentNode()\r\n\t{\r\n\t\tif (roadBelongingType.equals(\"inbound\"))\r\n\t\t{\r\n\t\t\treturn endNode;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn startNode;\r\n\t\t}\r\n\t}",
"public Integer getParent(Integer e){\n\t\ttry{\n\t\t\treturn searchNodeRef(e).father.element;\n\t\t} catch (Exception exc) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public int Parent() { return this.Parent; }",
"public IAVLNode getParent() {\n\t\t\treturn this.parent; // to be replaced by student code\n\t\t}",
"public BinomialTree<KEY, ITEM> parent()\n\t{\n\t\treturn _parent;\n\t}",
"public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }",
"public String getParent() {\r\n return parent;\r\n }",
"public SearchNode<S, A> getParent() {\r\n\t\treturn parent;\r\n\t}",
"public String getParent() {\n return _parent;\n }",
"@Pure\n\tpublic TreeNode<?, ?> getParentNode() {\n\t\treturn (TreeNode<?, ?>) getSource();\n\t}",
"public RBNode<T> parentOf(RBNode<T> node) {\n return node != null? node.parent : null;\r\n }",
"public Object getParent() {\r\n return this.parent;\r\n }",
"public CompoundExpression getParent (){\n return _parent;\n }",
"public String getParent() {\r\n return this.parent;\r\n }",
"public int getParent_id() {\n return this.parent_id;\n }",
"public CompositeObject getParent(\n )\n {return (parentLevel == null ? null : (CompositeObject)parentLevel.getCurrent());}",
"public CompoundExpression getParent()\r\n\t\t{\r\n\t\t\treturn _parent;\r\n\t\t}",
"@Override\n public Node getParentNode() {\n return null;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public Object getParent() {\n return this.parent;\n }",
"public FileNode getParent() {\r\n return this.parent;\r\n }",
"IMenuItem getParent();",
"public UpTreeNode<E> getParent() {\n\t\t\treturn parent;\n\t\t}",
"RegistryNode getParentNode() {\n return parentNode;\n }",
"@VTID(7)\r\n void getParent();",
"public MenuTree getParent(){\n return this.parentMenuTree;\n }",
"public TestResultTable.TreeNode getParent() {\n return parent;\n }",
"public String getParent() {\n return parent;\n }",
"public VRL getParentLocation()\n {\n \tif (this.getVRL()==null)\n \t\treturn null; \n \t\n \treturn this._nodeVRL.getParent();\n }",
"public BSTNode getParentNode() {\n\t\treturn parentNode;\n\t}",
"public Comment getParent () {\n return parentComment;\n }",
"public Tree<T> getParent()\n {\n return this.parent;\n }",
"private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }",
"@Override\n\tpublic ASTNode getParent() {\n\t\treturn this.parent;\n\t}",
"java.lang.String getParent();",
"java.lang.String getParent();",
"public Foo getParent() {\n return parent;\n }",
"public HuffmanNode getParentNode()\n\t{\n\t\treturn parent;\n\t}",
"public VNode getParent() throws VlException\n {\n VRL pvrl=getParentLocation(); \n \n if (pvrl==null)\n \treturn null; \n \n return vrsContext.openLocation(getParentLocation());\n }",
"public StructuredId getParent()\r\n {\r\n return parent;\r\n }",
"public CommitNode parent() {\r\n\t\treturn parentCommit;\r\n\t}",
"public Entity getParent() {\n return parent;\n }",
"public AccessibleElement getParent();",
"DendrogramNode<T> getParent();",
"public GitCommit getParent() { return _par!=null? _par : (_par=getParentImpl()); }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"protected LambdaTerm getParent() { return parent; }",
"public Path getParent(\n ) {\n return this.parent;\n }",
"TreeNodeValueModel<T> parent();",
"public SqlFromSubSelect getParent() {\n return parent;\n }",
"@Override\n\tpublic Tag getParent() {\n\t\treturn this.parentTag;\n\t}",
"public PlanNode getParent() {\n return parent;\n }",
"@JsProperty\n Element getParentElement();",
"private Node getGrandparent(Node n) {\n return n.mParent.mParent;\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"ContentIdentifier getParent(ContentIdentifier cid);",
"@VTID(9)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject getParent();",
"public String getParentLabel(){\n\t\treturn this.parentLabel;\n\t}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"Object getParentNode(Object contextNode) throws UnsupportedAxisException;"
] | [
"0.78334844",
"0.76603043",
"0.7644241",
"0.7625416",
"0.75762016",
"0.7535022",
"0.7433843",
"0.7408577",
"0.74081546",
"0.7402976",
"0.7402976",
"0.7383657",
"0.73390764",
"0.73390764",
"0.7318582",
"0.7287142",
"0.7265421",
"0.7264318",
"0.7254458",
"0.7244195",
"0.72426206",
"0.7211294",
"0.71875846",
"0.7185256",
"0.7176099",
"0.71598303",
"0.71419096",
"0.71416",
"0.71276",
"0.7124772",
"0.7116646",
"0.7111467",
"0.7082056",
"0.7058569",
"0.70526004",
"0.7048712",
"0.7032105",
"0.7007062",
"0.70051926",
"0.69984674",
"0.6998036",
"0.6983334",
"0.69728416",
"0.69663656",
"0.6954786",
"0.6945217",
"0.6936846",
"0.6928619",
"0.69138545",
"0.6911719",
"0.6896179",
"0.6895888",
"0.6873765",
"0.6871273",
"0.6864623",
"0.6860807",
"0.6842595",
"0.68288285",
"0.68280905",
"0.68280905",
"0.68280905",
"0.68263096",
"0.68064994",
"0.67873406",
"0.6785551",
"0.6775159",
"0.67634547",
"0.67619056",
"0.6750409",
"0.6739892",
"0.67328537",
"0.6730678",
"0.67177606",
"0.6712308",
"0.67119026",
"0.67084783",
"0.67084783",
"0.6699265",
"0.6696208",
"0.6695171",
"0.6693588",
"0.6689424",
"0.66588783",
"0.6651729",
"0.6637065",
"0.66212654",
"0.66208863",
"0.6604618",
"0.66045785",
"0.6604015",
"0.6601209",
"0.65970415",
"0.6596823",
"0.65963393",
"0.65605545",
"0.654273",
"0.6523759",
"0.6519519",
"0.6497904",
"0.6493227",
"0.6491382"
] | 0.0 | -1 |
returns the size of item data MUST return the size of the Data | @Override
public int getItemCount() {
return mActivityList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDataSize() {\n\t\treturn (int)this.getSize(data);\n\t}",
"public int size()\r\n\t{\r\n\t\treturn data.size();\r\n\t}",
"public int size()\n\t{\n\t\treturn _data.size();\n\t}",
"public int size()\n\t{\n\t\treturn data.length;\n\t}",
"int size() {\n return data.size();\r\n }",
"public int size() {\r\n return theData.size();\r\n }",
"public int size() {\n\t\treturn data.length;\n\t}",
"public long getItemCount() {\n\t\treturn this.getSize(data);\n\t}",
"public int size() {\n return data.length;\n }",
"public int size() {\n return data.size();\n }",
"@Override\r\n\tpublic int size() {\r\n\r\n\t\treturn data.size();\r\n\t}",
"@Override\n\tpublic int getSize() {\n\t\treturn datas.size();\n\t}",
"@Override\n public int getSize() {\n return this.numItems;\n }",
"public int size() {\n return dataSize;\n }",
"@Override\n public int getSize() {\n return numItems;\n }",
"public int dataSize() {\n\t\treturn data.size();\n\t}",
"public int getSize() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }",
"public int getLength(){\n\t\treturn data.length;\n\t}",
"@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}",
"public int size() {\n \treturn numItems;\n }",
"public int size()\r\n {\r\n return nItems;\r\n }",
"public int size(){\n int size = 0;\n for(LinkedList<E> item : this.data){\n size += item.size();\n }\n return size;\n }",
"public long getDataSize() {\n return dataSize;\n }",
"public int size(){\n return numItems;\n }",
"public int size() {\n return nItems;\n }",
"@Override\n\tpublic int size() {\n\t\treturn numItems;// numItems represents size\n\t}",
"@Override\n public int size() {\n return mData.size();\n }",
"public int getSizeOfData() {\n\t\treturn sizeOfData;\n\t}",
"public int getLength() { return dataLength; }",
"public int length() {\n return numberOfItems;\n }",
"public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}",
"public int getLength() {\n\t\treturn data.length;\n\t\t\n\t}",
"public int size() {\n return numItems;\n }",
"public int get_size();",
"public int get_size();",
"public int getSize() {\r\n return list.getItemCount();\r\n }",
"@Nonnegative\n public int getSize()\n {\n return items.size();\n }",
"public int length() {\n return data.length;\n }",
"public int getSize() {\n synchronized (itemsList) {\n return itemsList.size();\n }\n }",
"public int length() {\n\n\t\treturn numItems;\n\n\t}",
"public int size(){ return itemCount;}",
"public int length() {\n return data.length;\n }",
"public int size()\n \t{\n \t\treturn getLength();\n \t}",
"@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}",
"public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}",
"@Override\n public int getSize() {\n return items.size();\n }",
"public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }",
"public int getDataCount() {\n return data_.size();\n }",
"public int getDataCount() {\n return data_.size();\n }",
"public int getDataCount() {\n return data_.size();\n }",
"public int getDataCount() {\n return data_.size();\n }",
"public int getDataCount() {\n return data_.size();\n }",
"public int getDataCount() {\n return data_.size();\n }",
"public int getItemSize() {\n \t\tPointerSizes sizes = getSizes();\n \t\treturn sizes.getMapSize() + 2 + 2 + 3;\n \t}",
"private int getSize() {\r\n\t\treturn this.size;\r\n\t}",
"@Override\r\n \tpublic int size() {\r\n \t\t// TODO\r\n \t\treturn size;\r\n \t}",
"@Override\n public int size() {\n return (totalSize - offset);\n }",
"public int getCount() {\n if(data.size()<=0) return 1;\n return data.size();\n }",
"int getItemSize();",
"public int getDataCount() {\n return data_.size();\n }",
"public int getDataCount() {\n return data_.size();\n }",
"public int size() {\n\t\tif (baos == null || baos.toByteArray() == null) return 0;\n\t\telse return baos.toByteArray().length;\n\t}",
"public int size(){\n return items.size();\n }",
"@Override\n\tpublic int size() {\n\t\treturn getSize();\n\t}",
"public abstract String get_size(DataRequest source) throws ConnectorOperationException;",
"public int getSize(){\n\t\treturn this.size;\n\t}",
"@Override\n public long size(String reference) throws DataStoreException\n {\n if (!dataMap.containsKey(reference)) {\n throw new DataStoreException(\"Failed to retrieve data, the asset does not exist.\");\n }\n return dataMap.get(reference).length;\n }",
"@Override\n public int size() {\n return this.size; // Returns value in size field\n }",
"public int getCountOfData (){\n return getData() == null ? 0 : getData().size();\n }",
"public int size() { return _size;}",
"public int getSize()\n\t{\n\t\treturn this.size;\n\t}",
"public long dataSize() {\n return this.dataSize;\n }",
"public int returnSize()\r\n {\r\n \treturn length;\r\n }",
"public int size() { return this.size; }",
"public int getSize() {\r\n return _size;\r\n }",
"public int size () {\r\n return this.size;\r\n }",
"@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }",
"@Override\n\tpublic long size() {\n\t\t\n\t\treturn mySize;\n\t}",
"private int infoCount() {\n return data.size();\n }",
"public int getCount() {\n\t\treturn data.size();\r\n\t}",
"@Override\n\t\tpublic long size() {\n\t\t\t\n\t\t\treturn super.size();\n\t\t}",
"public int getSize() {\n\t\treturn _size;\n\t}",
"public int getSize() {\r\n \treturn size;\r\n }",
"public int getSize()\n {\n return this.size;\n }",
"public int getSize( )\n {\n return size;\n }",
"private int getSize() {\n\t\t\treturn size;\n\t\t}",
"public int size() {\n // TODO: YOUR CODE HERE\n return size;\n }",
"public int dataSize() {\n\t\treturn _dataSet.dataSize();\n\t}",
"public int getSize()\n\t{\n\t\treturn size;\n\t}",
"public int getSize()\n\t{\n\t\treturn size;\n\t}",
"public int size() {\n return _size;\n }",
"public int getSize() {\r\n return size;\r\n }",
"public int getCount() {\n\t\t\treturn data.size();\n\t\t}",
"@Override\n public int size() {\n return _size;\n }",
"public int getSize() {\r\n\t\treturn this.size;\r\n\t}",
"public int getSize() {\r\n\t\treturn this.size;\r\n\t}",
"public int Size(){\n \treturn size;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}"
] | [
"0.79654974",
"0.78638333",
"0.78508836",
"0.7798403",
"0.77973324",
"0.7789236",
"0.7780944",
"0.7772474",
"0.77709603",
"0.7744857",
"0.77323264",
"0.7711371",
"0.7694389",
"0.76131487",
"0.7569038",
"0.7550133",
"0.7535173",
"0.7508759",
"0.7493382",
"0.74382794",
"0.7396101",
"0.7396087",
"0.73919356",
"0.73619765",
"0.7343038",
"0.73378366",
"0.7334424",
"0.73300666",
"0.7326262",
"0.73257506",
"0.73184377",
"0.73102134",
"0.7304103",
"0.729049",
"0.729049",
"0.72522116",
"0.7251825",
"0.72397625",
"0.7204139",
"0.7193239",
"0.7182662",
"0.71814024",
"0.71736306",
"0.71581304",
"0.71565366",
"0.71511793",
"0.7142328",
"0.71343577",
"0.7121434",
"0.7121434",
"0.7121434",
"0.7121434",
"0.7121434",
"0.7116276",
"0.70996314",
"0.7096817",
"0.70816225",
"0.70640266",
"0.7049924",
"0.70489246",
"0.70489246",
"0.7044435",
"0.70384026",
"0.70375735",
"0.7035769",
"0.70252484",
"0.7005989",
"0.70041394",
"0.7002061",
"0.699314",
"0.69926214",
"0.6992284",
"0.6991692",
"0.6986207",
"0.6985353",
"0.6985163",
"0.69779164",
"0.69765115",
"0.6962699",
"0.69602865",
"0.695927",
"0.6956164",
"0.6954279",
"0.69480187",
"0.69478333",
"0.69445115",
"0.693741",
"0.693502",
"0.6923971",
"0.6923971",
"0.69189966",
"0.69174224",
"0.6917156",
"0.6913042",
"0.69075525",
"0.69075525",
"0.69066614",
"0.69064504",
"0.69064504",
"0.69064504",
"0.69064504"
] | 0.0 | -1 |
Clears all the items from the Adapter | public void clear() {
mActivityList.clear();
notifyDataSetChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clear() {\n\n mItems.clear();\n notifyDataSetChanged();\n\n }",
"public void clear() {\n mItems.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n mItems.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n listItems.clear();\n notifyDataSetChanged();\n }",
"public void clearItems(){\n conversationsList.clear();\n notifyDataSetChanged();\n }",
"public void clearItems(){\n items.clear();\n }",
"public void clear() {\n list.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n final int itemCount = mItems.size();\n mItems.clear();\n mDatasourceObservable.notifyItemRangeRemoved(0, itemCount);\n }",
"public void clear(){\n this.items.clear();\n }",
"public void clear(){\n listData.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n int count = mItems.size();\n mItems.clear();\n getFastAdapter().notifyAdapterItemRangeRemoved(getFastAdapter().getItemCount(getOrder()), count);\n }",
"public void clear(){\n nyts.clear();\n notifyDataSetChanged();\n }",
"public void clearList() {\n data.clear();\n notifyDataSetChanged();\n }",
"@Override\n public void clear() {\n original.clear();\n filtered.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\r\n\t\titems.clear();\r\n\t}",
"void clear()\n\t{\n\t\tgetItems().clear();\n\t}",
"public void clear() {\n\t\tsynchronized (mLock) {\n\t\t\tif (data != null) {\n\t\t\t\tdata.clear();\n\t\t\t}\n\t\t}\n\t\tnotifyDataSetChanged();\n\t}",
"public void clear() {\n items.clear();\n update();\n }",
"public void empty() {\n _items.clear();\n }",
"public void clearData() {\n mData.clear();\n notifyDataSetChanged();\n }",
"public void clearData() {\n mRecipes.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n tweetList.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n mStrings.clear();\n notifyDataSetChanged();\n }",
"void onItemClear();",
"void onItemClear();",
"public void removeAllItems() {\n mPapers.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n mTweets.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n mTweets.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n mTweets.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n tweets.clear();\n notifyDataSetChanged();\n }",
"public void clearItems() {\n grabbedItems.clear();\n }",
"public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n posts.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n mComments.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n if (mOriginalValues != null) {\n synchronized (mLock) {\n mOriginalValues.clear();\n }\n } else {\n mObjects.clear();\n }\n if (mNotifyOnChange) notifyDataSetChanged();\n }",
"public void clear() {\n if (this.mTakings != null) {\n this.mTakings.clear();\n notifyDataSetChanged();\n }\n }",
"public void clearList()\n {\n for (Category item : itemsList)\n {\n item.setSelected(false);\n }\n notifyDataSetChanged();\n }",
"public void removeAllItems() {\n contents.clear();\n }",
"public void clear() {\r\n items = Arrays.copyOf(new int[items.length], items.length);\r\n NumItems = 0;\r\n }",
"private void deleteAllTodo() {\n todos.clear();\n adapter.notifyDataSetChanged();\n }",
"public void clear() {\n size = 0;\n Arrays.fill(items, null);\n }",
"public void clear() {\n mAllSavedTrips.clear();\n mTrips.clear();\n notifyDataSetChanged();\n }",
"public void clearData() {\n int size = this.feedList.size();\n this.feedList.clear();\n notifyItemRangeRemoved(0, size);\n }",
"public void clear() {\r\n items.clear();\r\n keys.clear();\r\n }",
"public void removeAllItems ();",
"public void removeAll() {\n if(checkouts == null) return;\n this.checkouts.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n this.next = null;\n this.mList.clear();\n this.notifyDataSetChanged();\n }",
"public Builder clearItems() {\n items_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public void resetAdapter() {\n\n // Hide ProgressBar\n mBinding.searchUserLayout.getUvm().hideProgress();\n\n // Cancel any pending searches\n mSearchHandler.removeCallbacksAndMessages(null);\n\n // Clear the Adapter\n mAdapter.clear();\n }",
"public void clearAll()\r\n {\r\n if(measurementItems!=null) measurementItems.clear();\r\n itemsQuantity=(measurementItems!=null)?measurementItems.size():0;\r\n }",
"void clearAllItemsTable();",
"public void clearList() {\n ShoppingList.deleteAll(ShoppingList.class);\n ShoppingItem.deleteAll(ShoppingItem.class);\n lists.clear();\n notifyDataSetChanged();\n }",
"public void clear() {\n\t\tallItems.clear();\n\t\tminimums.clear();\n\t}",
"public void clearMovieListings() {\n movieListings.clear();\n notifyDataSetChanged();\n }",
"public void clearItems(){\n\t\tinnerItemShippingStatusList.clear();\n\t}",
"public void clear() {\n\trows.removeAllElements();\n\tfireTableDataChanged();\n}",
"@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}",
"public void clear() {\n\t\tthis.count = (emptyItem ? 1 : 0);\n\t\tpages.clear();\n\t}",
"public void clear() {\n this.collection.clear();\n }",
"public Builder clearItems() {\n if (itemsBuilder_ == null) {\n items_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n itemsBuilder_.clear();\n }\n return this;\n }",
"public void clear() {\n\t\tcollection.clear();\n\t}",
"public void reset() {\n this.list.clear();\n }",
"public void clearAll();",
"public void clearAll();",
"@Override\n\tpublic void clearAll() {\n\t\t\n\t}",
"private void resetAdapter() {\n\n\t\tmSwipeList.discardUndo();\n\n\t\tString[] items = new String[20];\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\titems[i] = String.format(\"Test Item %d\", i);\n\t\t}\n\n\t\tmAdapter = new ArrayAdapter<String>(this,\n\t\t\tandroid.R.layout.simple_list_item_1,\n\t\t\tandroid.R.id.text1,\n\t\t\tnew ArrayList<String>(Arrays.asList(items)));\n\t\tsetListAdapter(mAdapter);\n\n\t}",
"@Override\n public void clear() {\n elements.clear();\n indexByElement.clear();\n }",
"public void clear() {collection.clear();}",
"public void clear() {\n mMenuItems.clear();\n mModelList.clear();\n mActionViewLayout.clear();\n }",
"private void clearAllState() {\n // Clear all layout records and views\n mLayoutRecords.clear();\n removeAllViews();\n\n // Reset to the top of the grid\n resetStateForGridTop();\n\n // Clear recycler because there could be different view types now\n mRecycler.clear();\n }",
"public void deleteAllItineraryItems() {\n\t\tmEditor.clear();\n\t\tmEditor.commit();\n\t}",
"public void clear() {\n doClear();\n }",
"public void clearItemSelections() {\n mQuantityOrdered = new int[EMOJI_DOLLARSIGN.length];\n notifyDataSetChanged();\n if (mTotalItemsChangedListener != null) {\n mTotalItemsChangedListener.onTotalItemsChanged(0);\n }\n }",
"public void resetAll() {\n reset(getAll());\n }",
"public void clear() {\n this.data().clear();\n }",
"protected abstract void clearAll();",
"public void removeAllItem() {\n orderList.clear();\n }",
"@Override\n public void clear() {\n sortOrder = null;\n selection = Selection.with();\n }",
"public void clear() {\n\t\tlists.clear();\n\t}",
"public void clear(){\r\n BarsList.clear();\r\n }",
"@RequestMapping(method=RequestMethod.DELETE, value = \"/item\", produces = \"application/json\")\n public void clearItems()\n {\n this.itemRepository.clearItems();\n }",
"public void reset() {\n Log.i(TAG, \"Clearing everything from the notifications table\");\n this.cancelAllNotifications();\n this.ntfcn_items.reset();\n }",
"public void clear() {\n\t\tsuper.clear();\n\t\tthis.modelList.clear();\n\t\tif (elementoSeleccionar != null) {\n\t\t\tinsertItem(adapter.getListBoxDescription(elementoSeleccionar), elementoSeleccionar, 0);\n\t\t}\n\t}",
"public void clear()\n {\n int llSize = ll.getSize();\n for(int i=0; i<llSize; i++){\n ll.remove(0);\n }\n }",
"public void reset() {\n \titems.clear();\n \tsetProcessCount(0);\n }",
"public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }",
"@Override\n public void clear() {\n for (E e : this) {\n remove(e);\n }\n }",
"@Override\r\n public void removeFirstObjectInAdapter() {\n Log.d(\"LIST\", \"removed object!\");\r\n al.remove(0);\r\n arrayAdapter.notifyDataSetChanged();\r\n }",
"public void clear()\n {\n }",
"void clear() {\n\t\t// Initialize new empty list, clearing out old data\n\t\tmNewsList = new ArrayList<>();\n\t}",
"public void clearList(View view) {\n list.clear();\n adapter.notifyDataSetChanged();\n progressBar.setProgress(0);\n\n Toast toast = Toast.makeText(getApplicationContext(), \"List cleared\", Toast.LENGTH_SHORT);\n toast.show();\n }",
"public void clearDeviceLists()\n {\n deviceList.clear();\n deviceMap.clear();\n adapter.notifyDataSetChanged();\n }",
"public synchronized void clear()\n\t{\n\t\tthis.mApList.clear();\n\t}",
"@Override\n public void clear() {\n for (int i = 0; i < this.size; i++) {\n this.data[i] = null;\n }\n\n this.size = 0;\n }"
] | [
"0.8408082",
"0.8357383",
"0.8357383",
"0.81336415",
"0.80787855",
"0.8027206",
"0.794497",
"0.79406327",
"0.7927418",
"0.78676075",
"0.784805",
"0.7821456",
"0.7820869",
"0.78094316",
"0.773761",
"0.7736922",
"0.7722338",
"0.7605282",
"0.759135",
"0.7590589",
"0.75853777",
"0.75412047",
"0.75404495",
"0.7528216",
"0.7528216",
"0.75251114",
"0.75151944",
"0.75151944",
"0.75151944",
"0.7513091",
"0.74390703",
"0.74224263",
"0.74224263",
"0.74224263",
"0.74224263",
"0.74224263",
"0.74224263",
"0.74224263",
"0.739763",
"0.73413575",
"0.7304278",
"0.7303981",
"0.7246417",
"0.7235656",
"0.71928257",
"0.7174709",
"0.71632886",
"0.7146804",
"0.71427554",
"0.7119348",
"0.70995635",
"0.7087215",
"0.7083733",
"0.7065053",
"0.7045222",
"0.70391154",
"0.7020988",
"0.7005091",
"0.69479793",
"0.6911567",
"0.69064206",
"0.68879795",
"0.68879795",
"0.6868531",
"0.68420905",
"0.68060803",
"0.6798907",
"0.6767595",
"0.6759304",
"0.6759304",
"0.67495596",
"0.6741097",
"0.6736147",
"0.6728578",
"0.6717215",
"0.6689181",
"0.66648954",
"0.66604894",
"0.6647137",
"0.66363496",
"0.66328967",
"0.66304016",
"0.66204864",
"0.6588136",
"0.65875936",
"0.65798205",
"0.65757096",
"0.65634865",
"0.6563141",
"0.65492034",
"0.6547404",
"0.65349424",
"0.6528403",
"0.6524664",
"0.65240026",
"0.6522099",
"0.6514935",
"0.65115434",
"0.6508459",
"0.6500207"
] | 0.76465446 | 17 |
Adds all the items passed as param to the Adapter | public void addAll(List<Activities> list) {
mActivityList.addAll(list);
notifyDataSetChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void additems() {\n MaVolleyRequest.getInstance(getApplicationContext()).GetMethodRequest(getLink(), null, new VolleyRequestOnResultListener() {\n @Override\n public void onSucces(String result) {\n Log.d(\"qwerty\", getLink());\n ResearchResultBeanz item = (new Gson()).fromJson((new Gson()).fromJson(result, JsonObject.class).getAsJsonObject(\"data\"), ResearchResultBeanz.class);\n if (adapter == null) {\n adapter = new GridViewAdapter2(ImageGridViewActivity.this, Utils.fromArrayToList(item.items));\n gridView.setAdapter(adapter);\n } else {\n adapter.appendData (Utils.fromArrayToList(item.items));\n }\n flag_loading = false;\n }\n @Override\n public void onFailure(String error) {\n makeToast(\"Loading failure\");\n flag_loading = false;\n }\n });\n }",
"public void addDataSet(List<Movie> items){\n mValues.addAll(items);\n notifyDataSetChanged();\n }",
"public void addAll(ArrayList<Taking> items){\n if(this.mTakings == null){\n this.mTakings = new ArrayList<>();\n }\n this.mTakings.addAll(items);\n notifyDataSetChanged();\n }",
"public SurveyAdapter(List<Object> items) {\n this.items = items;\n }",
"public void AddItemsToRecyclerView()\n {\n source = new Vector();\n source.add(\"排班\");\n source.add(\"加班\");\n source.add(\"打卡\");\n source.add(\"請假\");\n source.add(\"文件\");\n source.add(\"訂餐\");\n }",
"ExerciseAdapter(List<Programme.MyItems> items)\n {\n this.myItems = items;\n }",
"@Override\n public void onLoadMoreItems() {\n if (mAdapter.hasMoreItems()) {\n requestData(mAdapter.getItems() == null ? 0 : mAdapter.getItems().size(), false);\n } else {\n mAdapter.onFinishLoading(false);\n }\n }",
"public void addAll(List<ImageContent> items) {\n _data = items;\n }",
"public MyOrdersRecyclerViewAdapter(List<OrdersContent> items){\n mValues = items;\n }",
"public void addItem(String item){\n adapter.add(item);\n }",
"private void setAdapter(ArrayList<Record> allRecordItems) {\n AllRecordsAdapter allRecordsAdapter;\n if (allRecordItems.size() <=0 ){\n noBudgetData.setVisibility(View.VISIBLE);\n noDataGif.setVisibility(View.VISIBLE);\n }\n else {\n allRecordsAdapter = new AllRecordsAdapter(allRecordItems, this);\n allRecordsAdapter.onItemClickListener(new AllRecordsAdapter.onItemClick() {\n @Override\n public void itemClick(Record record) {\n ux.showRecordDetailsDialog(R.layout.dialog_record_short_details, record, new UX.onDialogOkListener() {\n @Override\n public void onClick() {\n }\n });\n }\n });\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setAdapter(allRecordsAdapter);\n allRecordsAdapter.notifyDataSetChanged();\n }\n }",
"public void addAll(E[] es){\n for(E e: es) {\n \tmData.add(e);\n }\n notifyDataSetChanged();\n }",
"@Override\npublic void add(ObjectAdapter compAdapter) {\n\t\n}",
"public interface BasePageAdapter<T> {\n void clearAll();\n\n void addAll(List<T> list);\n}",
"protected abstract SingleTypeAdapter<E> createAdapter( final List<E> items );",
"public void addAll(Collection<E> es) {\n \tmData.addAll(es);\n notifyDataSetChanged();\n }",
"@Override\n public void addAll(@NonNull Collection<? extends CurrencyModel> items) {\n if (items instanceof List) {\n this.currencyRates = (List<CurrencyModel>) items;\n }\n super.addAll(items);\n }",
"public void updateComponents(){\n adapter.updateItems();\n }",
"public CustomAdapter(List<Quiz> quizList) {// Now lets add stuff to the quiz.\n this.quizList = quizList;\n }",
"MyAdapter(List<FakeNews> myList) {\n list = myList;\n }",
"private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }",
"public void addItems(ResultItem rItem) {\r\n\t\titems.add(rItem);\r\n\t}",
"public void add(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems.addAll(items);\n mapPossibleTypes(items);\n getFastAdapter().notifyAdapterItemRangeInserted(getFastAdapter().getItemCount(getOrder()), items.size());\n }",
"AdapterItems(int ID, String product)\n {\n this.ID=ID;\n this.product=product;\n //this. Description=Description;\n }",
"public void addAll(AudioFile ... items) {\n if (mOriginalValues != null) {\n synchronized (mLock) {\n for (AudioFile item : items) {\n mOriginalValues.add(item);\n }\n if (mNotifyOnChange) notifyDataSetChanged();\n }\n } else {\n for (AudioFile item : items) {\n mObjects.add(item);\n }\n if (mNotifyOnChange) notifyDataSetChanged();\n }\n }",
"public void addItemsOnSpinner() {\n Data dataset = new Data(getApplicationContext());\n List<String> list = new ArrayList<String>();\n list = dataset.getClasses();\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(dataAdapter);\n }",
"private void populateAdapter(){\n mAdapter = new MovieRecyclerAdapter(context, moviesList, this);\n mRecyclerView.setAdapter(mAdapter);\n }",
"private void updateAdapter() {\n iga = new IngredientGridAdapter(getApplicationContext(), ingredientList);\n gridView.setAdapter(iga);\n iga.notifyDataSetChanged();\n }",
"private void LoadItems() {\n\n Call<NewsResponce> callNews = null;\n\n if (SourceId != null && DateTo != null && DateAt != null) {\n callNews = newsApiInterface.GetEverything(NewsClient.API_KEY, DateAt, DateTo, currentPage, SourceId);\n\n } else if (SourceId != null && DateAt != null) {\n callNews = newsApiInterface.GetEverything(NewsClient.API_KEY, DateAt, currentPage, SourceId);\n\n } else if (SourceId != null && DateTo != null) {\n callNews = newsApiInterface.GetEverythingDateTo(NewsClient.API_KEY, DateTo, currentPage, SourceId);\n\n } else {\n DialogAlert(R.string.dialog_title_no_criterias, R.string.dialog_message_no_criterias);\n }\n\n if (callNews != null)\n callNews.enqueue(new Callback<NewsResponce>() {\n @Override\n public void onResponse(Call<NewsResponce> call, final Response<NewsResponce> response) {\n if (response.body() != null) {\n if (response.body().getTotalResults() > articleList.size()) {\n articleList.addAll(response.body().getArticles());\n newsAdapter.notifyDataSetChanged();\n ++currentPage;\n }\n } else\n articleList.clear();\n\n Log.d(TAG, articleList.size() + \"\");\n }\n\n @Override\n public void onFailure(Call<NewsResponce> call, Throwable t) {\n Log.e(TAG, t.getMessage());\n }\n });\n }",
"public ItemsAdapter() {\n\n\n }",
"public RecyclerFilterAdapter(@Nullable List<T> items) {\n super(items);\n }",
"@DebugLog\n public void setItems(ArrayList<Update> items) {\n if (items != null) {\n for (Update item : items) {\n mItems.add(new OverviewItem(item));\n }\n }\n notifyDataSetChanged();\n //Remove the isloading\n if (getBasicItemCount() <= 0) return;\n try {\n OverviewItem overviewItem = mItems.get(getBasicItemCount() - items.size() - 1);\n if (overviewItem.isLoadingItem) {\n mItems.remove(getBasicItemCount() - items.size() - 1);\n notifyDataSetChanged();\n }\n }catch(ArrayIndexOutOfBoundsException e)\n {\n //theres no loading overview\n return;\n }\n\n }",
"public void addAll(List<Feed> object) {\n try {\n feedList.addAll(object);\n notifyDataSetChanged();\n } catch (Exception e) {\n //FirebaseCrash.report(e);\n }\n }",
"public void setItems(){\n }",
"void addAll(List<News> data) {\n\t\t// Traverse the data list to add news item to the adapter's data set\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\t// Get the book at current index\n\t\t\tNews newsStory = data.get(i);\n\t\t\t// Add the book to the data set\n\t\t\tmNewsList.add(newsStory);\n\n\t\t\t// Notify the adapter of the change in the data set\n\t\t\t// so that it repopulates the view with the updated data set\n\t\t\tnotifyDataSetChanged();\n\t\t}\n\t}",
"private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }",
"RecyclerViewAdapter(ArrayList namaList, ArrayList jurusanList, ArrayList nimList){\n this.namaList = namaList;\n this.jurusanList = jurusanList;\n this.nimList = nimList;\n }",
"public OrderAdapter(RealmResults<OrderItem> items,View.OnClickListener listener) {\n mDataset = items;\n this.listener=listener;\n }",
"List<Item<T>> addItemsForPage(final long page);",
"private void updateWhereItemListData() {\n ModelWhereItem itemDB = new ModelWhereItem(database);\n ArrayList<WhereItem> itemList = itemDB.WSfindItemsByFields(selectedCityId,selectedDistrictId,selectedStreetId,selectedCategoryId);\n RecyclerViewAdapter recyclerViewAdapter = new RecyclerViewAdapter(getContext(),itemList,gridViewMenuAdapter,viewPagerSlideAdapter);\n recyclerView.setAdapter(recyclerViewAdapter);\n\n // tweaks cho recycler view\n recyclerView.setHasFixedSize(true);\n //recyclerView.setItemViewCacheSize(20);\n recyclerView.setDrawingCacheEnabled(true);\n //recyclerView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);\n\n changeTab(0);\n }",
"public listAdapter(List<Genres> myDataset,List<Anime> anime) {\n values = myDataset;\n animevalues = anime;\n }",
"private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}",
"private void addDataToRv() {\n RealmResults<NewsModel> newsModels = realm.where(NewsModel.class).findAll();\n //initialize our adapter\n adapter = new NewsAdapter(new ArrayList<>(newsModels), this);\n mRvNewsList.setLayoutManager(new LinearLayoutManager(this));\n mRvNewsList.setAdapter(adapter);\n //notify the adapter that we have new data\n adapter.notifyDataSetChanged();\n }",
"public IngredientAdapter(@NonNull Context context, ArrayList<Ingredient> list){\n super(context, 0, list);\n mContext = context;\n ingredientList = list;\n }",
"public RowListaCustomAdapter ( Context c, ArrayList<Row>data){\n Log.v(TAG, \"Construir Adaptador\");\n this.data = data;\n inflater = LayoutInflater.from(c);\n\n }",
"public MyAdapter(ArrayList<GpsData> myDataset) {\r\n dataset = myDataset;\r\n }",
"public OrderAdapter() {\n super(new ArrayList<MultiItemEntity>());\n addItemType(TYPE_HEAD, R.layout.item_order_head);\n addItemType(TYPE_CONTENT, R.layout.item_order_content);\n addItemType(TYPE_FOOTER, R.layout.item_order_foot);\n }",
"public void addAll(Collection<CustomerRequest> request) {\n\t\tfor (CustomerRequest o: request) {\n\t\t\tmAdapter.add(o);\n\t\t}\n\t\tmAdapter.notifyDataSetChanged();\n\t}",
"@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n itemsToAdapt.clear();\n itemsToAdapt.addAll((List) results.values);\n notifyDataSetChanged();\n }",
"private void addItems(RegularItem...pItems)\r\n\t{\r\n\t\tfor (RegularItem item : pItems) {\r\n\t\t\tassert item != null;\r\n\t\t\taItems.add(item);\r\n\t\t};\r\n\t}",
"public void setDataAndRefresh(List<T> data) {\n this.data = data;\n// views = new ArrayList<>(data.size());\n// // builder data set of all item view\n// for (int i = 0; i < data.size(); i++) {\n// int itemLayoutId = getItemLayoutId();\n// LayoutInflater inflater = LayoutInflater.from(getContext());\n// View itemView = inflater.inflate(itemLayoutId, null);\n// fillData(itemView, data.get(i));\n// // add item titleView\n// views.add(itemView);\n// }\n notifyDataSetChanged();\n }",
"public void addAll(int index, List<Post> list) {\n posts.addAll(index, list);\n notifyItemInserted(index);\n //notifyDataSetChanged();\n }",
"public FeedCustomAdapter(List<Post> dataSet) {\n outfitDataSet = dataSet;\n }",
"public Item_Check_List_Adapter(Activity activity, ArrayList<Item> data)\n {\n this.activity=activity;\n this.data=new ArrayList<Item>(data);\n //arrayItem = new String[data.size()];\n }",
"public void addItem(Item param) {\r\n if (localItem == null) {\r\n localItem = new Item[] { };\r\n }\r\n\r\n //update the setting tracker\r\n localItemTracker = true;\r\n\r\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem);\r\n list.add(param);\r\n this.localItem = (Item[]) list.toArray(new Item[list.size()]);\r\n }",
"public void setNewList(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems = new ArrayList<>(items);\n mapPossibleTypes(mItems);\n getFastAdapter().notifyAdapterDataSetChanged();\n }",
"public customAdapter() {\n super(SeekerRatingsListActivity.this, R.layout.rating_content, seekerRatingsList);\n }",
"@SuppressWarnings (\"unchecked\") public void addAll(ItemList list){\n items.addAll(list.items);\n }",
"public Adapter() {\n super();\n this.listItemsBT = new ArrayList<>();\n /*Random random = new Random();\n for(int i = 0; i<50;i++){\n listItemsBT.add(new ItemBT(\"El vic xd\" + i, \"10:12:... NUMBER: \"+i, random.nextBoolean()));\n }*/\n }",
"void add(MediaItem... items);",
"public void set(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n\n //first collapse all items\n getFastAdapter().collapse();\n\n //get sizes\n int newItemsCount = items.size();\n int previousItemsCount = mItems.size();\n int itemsBeforeThisAdapter = getFastAdapter().getItemCount(getOrder());\n\n //make sure the new items list is not a reference of the already mItems list\n if (items != mItems) {\n //remove all previous items\n if (!mItems.isEmpty()) {\n mItems.clear();\n }\n\n //add all new items to the list\n mItems.addAll(items);\n }\n\n //map the types\n mapPossibleTypes(items);\n\n //now properly notify the adapter about the changes\n if (newItemsCount > previousItemsCount) {\n if (previousItemsCount > 0) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, previousItemsCount);\n }\n getFastAdapter().notifyAdapterItemRangeInserted(itemsBeforeThisAdapter + previousItemsCount, newItemsCount - previousItemsCount);\n } else if (newItemsCount > 0 && newItemsCount < previousItemsCount) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, newItemsCount);\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter + newItemsCount, previousItemsCount - newItemsCount);\n } else if (newItemsCount == 0) {\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter, previousItemsCount);\n } else {\n getFastAdapter().notifyAdapterDataSetChanged();\n }\n }",
"public AlbumAdapter(@NonNull Context context, ArrayList<Album> albums) {\n super(context, 0, albums);\n }",
"public MyAdapter(ArrayList<MyData> myDataset) {\n\n mDataset = myDataset;\n }",
"public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }",
"private void prepareArrayLits(){\t\n\t\tprogressDialog_1 = ProgressDialog.show(SlyThemesActivity.this, \"\",Constants.PROCESSING_REQUEST);\n\n\t\tadapter = new ListViewNewRestaurantAdapter(this, itemList);\n\t\tlistview.setAdapter(adapter);\n\t\tprogressDialog_1.dismiss();\n\t}",
"public abstract ItemListAdapter getAdapter(RecyclerView recyclerView);",
"public OrderDetailAdapter(@Nullable List<OutputPickingItemEntity> items) {\n super(items);\n }",
"public MyRecyclerViewAdapter(Context context, ArrayList<itemView> data) {\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n }",
"public RecyclerTransactionAdaptor(List<Transaction> myDataset) {\n mDataset = myDataset;\n }",
"@Override\n public void onAdapterAboutToEmpty(int itemsInAdapter) {\n arrayAdapter.notifyDataSetChanged();\n Log.d(\"LIST\", \"notified\");\n i++;\n }",
"public ItemAdapter(Context context, int textViewResourceId, ArrayList<item> objects) {\n\t\tsuper(context, textViewResourceId, objects);\n\t\tthis.objects = objects;\n\t}",
"public void addItemsOnSpinner2() {\n }",
"public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }",
"public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }",
"public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }",
"public void addAll(List<Post> list) {\n posts.addAll(list);\n notifyDataSetChanged();\n }",
"public void setAdapter() {\n datalist = new ArrayList<>();\n\n adapter = new SoundListAdapter(context, datalist, new AdapterClickListener() {\n @Override\n public void onItemClick(View view, int pos, Object object) {\n\n SoundsModel item = (SoundsModel) object;\n\n if (view.getId() == R.id.done) {\n stopPlaying();\n downLoadMp3(item.id, item.sound_name, item.acc_path);\n } else if (view.getId() == R.id.fav_btn) {\n callApiForFavSound(pos, item);\n } else {\n if (thread != null && !thread.isAlive()) {\n stopPlaying();\n playaudio(view, item);\n } else if (thread == null) {\n stopPlaying();\n playaudio(view, item);\n }\n }\n }\n });\n\n recyclerView.setAdapter(adapter);\n\n\n }",
"@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n clear();\n Datos=(ArrayList<Busqueda>)results.values;\n addAll(Datos);\n notifyDataSetChanged();\n }",
"public DetailAdapter(List<Detail> items){//}, OnListFragmentInteractionListener listener) {\n this.items = items;\n // mListener = listener;\n }",
"@Override\n public void onClick(View view) {\n\n addItem();\n recyclerAdapterHeader.swap(rowsCalculated(dataCategories));\n //all really bad practices, bound to be bugs\n }",
"public interface DynamicAdapterInterface<T> {\n\n public void addItem(T item);\n public void clearItems();\n}",
"private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }",
"MyRecyclerViewAdapter(Context context, List<String> data,List<String> giorno,List<String> primo,List<String> secondo,List<String> contorno,List<String> dolce) {\n this.mInflater = LayoutInflater.from(context);\n this.mdata = data;\n this.mgiorno = giorno;\n this.mprimo = primo;\n this.msecondo = secondo;\n this.mcontorno = contorno;\n this.mdolce = dolce;\n\n\n\n }",
"public MyAdapter(ArrayList<String> myDataset) {\n mDataset = myDataset;\n }",
"@Override\n public void setUpAdapterAndView(List<ListItem> listOfData) {\n this.listOfData = listOfData;\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n\n recyclerView.setLayoutManager(layoutManager);\n\n adapter = new CustomAdapter();\n recyclerView.setAdapter(adapter);\n\n DividerItemDecoration itemDecoration = new DividerItemDecoration(\n recyclerView.getContext(),\n layoutManager.getOrientation()\n );\n\n itemDecoration.setDrawable(\n ContextCompat.getDrawable(\n ListActivity.this,\n R.drawable.divider_white\n )\n );\n\n recyclerView.addItemDecoration(\n itemDecoration\n );\n\n ItemTouchHelper itemTouchHelper = new ItemTouchHelper(createHelperCallback());\n itemTouchHelper.attachToRecyclerView(recyclerView);\n\n\n }",
"void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}",
"private void prepareTheList()\n {\n int count = 0;\n for (String imageName : imageNames)\n {\n RecyclerUtils pu = new RecyclerUtils(imageName, imageDescription[count] ,images[count]);\n recyclerUtilsList.add(pu);\n count++;\n }\n }",
"public MyNewCustomerRecyclerViewAdapter(List<Mobile_Adjust_DB> items) { // , OnListFragmentInteractionListener listener\n lstTaxInvoice = items;\n// mListener = listener;\n }",
"public MyAdapter(List<Track> myDataset, Activity activity) {\n values = myDataset;\n this.activity = activity;\n }",
"private void addItem() {\n\t\tString message = edtMessage.getText().toString();\n\t\t// build the human\n\t\tHuman hum = new Human(message, humans.size());\n\t\t// 1° method\n\t\tarrayAdapter.add(hum);\n\t\t// 2° method\n\t\t// messages.add(message);\n\t\t// arrayAdapter.notifyDataSetChanged();\n\t\t// and flush\n\t\tedtMessage.setText(\"\");\n\t}",
"private void initializeAdapter() {\n }",
"public void refreshDatas(GsonNews requestNews){\n if (newsItems != null){\n Log.e(\"xx\", \"suaxinshuju\");\n// newsItems.setAdapter(newsAdapter);\n newsAdapter.setItems(requestNews.getData());\n// newsAdapter.notifyDataSetChanged();\n }\n }",
"private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}",
"public CineAdapter(List<Cine> items, CineInterfaz cineInterfaz)\n {\n this.items = items;\n this.cineInterfaz = cineInterfaz;\n }",
"@SafeVarargs\n public final void add(Item... items) {\n add(asList(items));\n }",
"public void setAdapter() {\n\t\tactivityAdapter = new ActivitiesAdapter(getActivity(), List,\n\t\t\t\ttotalmintxt);\n\t\tSystem.out.println(\"listsize=\" + List.size());\n\t\tif (List.size() > 0) {\n\t\t\tint totalmin = 0, totalcal = 0;\n\t\t\tfor (int i = 0; i < List.size(); i++) {\n\t\t\t\ttotalmin += Integer.parseInt(List.get(i).get(\n\t\t\t\t\t\tBaseActivity.total_time_minutes));\n\t\t\t\ttotalcal += Integer.parseInt(List.get(i).get(\n\t\t\t\t\t\tBaseActivity.calories_burned));\n\n\t\t\t}\n\t\t\ttotalmintxt.setText(\"\" + totalmin + \" min\");// calories_burned\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// calories_burned\n\t\t\ttotalcaltxt.setText(\"\" + totalcal + \" cal\");\n\t\t\tactivityListView.setAdapter(activityAdapter);\n\n\t\t\tcom.fitmi.utils.Constants.totalcal = totalcal;\n\n\t\t\tHomeFragment tosetCalory = new HomeFragment();\n\t\t\tNotificationCaloryBurn callBack = (NotificationCaloryBurn) tosetCalory;\n\n\t\t\tcallBack.setTotalCaloryBurn(com.fitmi.utils.Constants.totalcal);\n\t\t} else {\n\n\t\t\ttotalcaltxt.setText(\"0 cal\");\n\t\t\tactivityListView.setAdapter(activityAdapter);\n\t\t}\n\n\t\tsetActivitySpinner();\n\t}",
"public void init(List<ClientDownloadItem> list) {\n if (list != null) {\n mItemlist.clear();\n mItemlist.addAll(list);\n Log.i(TAG, \"mItemlist.size = \" + mItemlist.size());\n notifyDataSetChanged();\n }\n }",
"public MyAdapter(ArrayList<pets> myDataset) {\n this.mDataset = myDataset;\n }",
"@Override\n public void loadItems(){\n Log.d(\"Presenter\",\"Loading Items\");\n mRepository.getItems(new DataSource.LoadItemsCallback() {\n @Override\n public void onItemsLoaded(List<Session> sessions) {\n Log.d(\"PRESENTER\",\"Loaded\");\n\n //mView.showItems(Items);\n }\n\n @Override\n public void onDataNotAvailable() {\n Log.d(\"PRESENTER\",\"Not Loaded\");\n }\n });\n }",
"public interface RecyclerViewInterface {\n\n public void bindData(List<Active> activeList);\n\n}",
"public void updateData(List<AddingTopItem> mList){\n mData.clear();\n mData.addAll(mList);\n this.notifyDataSetChanged();\n }"
] | [
"0.6997334",
"0.6627025",
"0.6555234",
"0.64162666",
"0.64098847",
"0.64094603",
"0.63161725",
"0.62630177",
"0.61335355",
"0.6104521",
"0.60818243",
"0.6074487",
"0.60629785",
"0.6042441",
"0.6026598",
"0.6007464",
"0.59605324",
"0.59299034",
"0.59287983",
"0.59284437",
"0.5916835",
"0.5839477",
"0.58091825",
"0.5796007",
"0.5788939",
"0.57703084",
"0.5750688",
"0.57468325",
"0.57380825",
"0.5736521",
"0.573414",
"0.5702285",
"0.5684168",
"0.56787515",
"0.5678418",
"0.5674059",
"0.56605035",
"0.565268",
"0.5650406",
"0.5641951",
"0.5635842",
"0.5632781",
"0.5632362",
"0.56259716",
"0.5625969",
"0.56229705",
"0.5621624",
"0.5616768",
"0.56167185",
"0.5605538",
"0.5601065",
"0.5587391",
"0.5580149",
"0.55633754",
"0.5563085",
"0.55546314",
"0.5544067",
"0.55364823",
"0.5524141",
"0.55223083",
"0.5519161",
"0.5509927",
"0.55022824",
"0.55000615",
"0.5495025",
"0.5491753",
"0.54896045",
"0.54881376",
"0.5484035",
"0.5483559",
"0.5481745",
"0.54799575",
"0.54712427",
"0.54712427",
"0.54712427",
"0.54712427",
"0.54698",
"0.5463331",
"0.5462144",
"0.5461157",
"0.54600257",
"0.54572177",
"0.54544646",
"0.5449905",
"0.5449204",
"0.54476863",
"0.5444357",
"0.54414636",
"0.5436274",
"0.54354846",
"0.5430142",
"0.5422496",
"0.5418985",
"0.541806",
"0.5417844",
"0.5413904",
"0.5406487",
"0.54051304",
"0.54048777",
"0.5401354",
"0.5390933"
] | 0.0 | -1 |
Copy full database from asset Folder to database Folder | @Override
protected String doInBackground(Void... params) {
copyDatabaseFromAsset();
//insertValue();
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void copyDatabaseFromAsset() {\n\n /** Just to calculate time How much it will take to copy database */\n //Utility t = new Utility();\n\n\t\t/* Insert Database */\n DBHelper db = new DBHelper(this);\n\n try {\n boolean dbExist = db.isDataBaseAvailable();\n\n if (!dbExist)\n db.copyDataBaseFromAsset();\n\n /* Force fully calling onCreate to create table of Favourite*/\n //db.onCreate(db.getWritableDatabase());\n\n } catch (Exception e) {\n AppLogger.writeLog(\"state \" + TAG + \" -- \" + e.toString());\n\n if (AppConstants.DEBUG)\n Log.e(\"\", e.toString());\n }\n }",
"private void copyDatabase() throws IOException {\n\n AssetManager assetManager = mContext.getAssets();\n InputStream myInput = assetManager.open(DATABASE_NAME);\n\n getReadableDatabase();\n File mDbFile = mContext.getDatabasePath(DATABASE_NAME);\n// File mDbFile = new File(\"/data/data/\" + PACKAGE + \"/databases/\"+DATABASE_NAME);\n OutputStream myOutput = new FileOutputStream(mDbFile);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDatabase() throws IOException {\n // Open your local database as the input stream\n InputStream inputStream = mContext.getAssets().open(DB_NAME);\n try {\n // Path to the newly created empty database\n String outFileName = DB_PATH + DB_NAME;\n OutputStream outputStream = new FileOutputStream(outFileName);\n try {\n // Transfer bytes from input file to output file\n byte[] buffer = new byte[1024];\n int len;\n while ((len = inputStream.read(buffer)) > 0) {\n outputStream.write(buffer, 0, len);\n }\n outputStream.flush();\n } finally {\n outputStream.close();\n }\n } finally {\n inputStream.close();\n }\n }",
"private void copyDataBase() throws IOException {\n //Open a stream for reading from our ready-made database\n //The stream source is located in the assets\n InputStream externalDbStream = context.getAssets().open(DB_NAME);\n\n //Path to the created empty database on your Android device\n String outFileName = DB_PATH + DB_NAME;\n\n //Now create a stream for writing the database byte by byte\n OutputStream localDbStream = new FileOutputStream(outFileName);\n\n //Copying the database\n byte[] buffer = new byte[1024];\n int bytesRead;\n while ((bytesRead = externalDbStream.read(buffer)) > 0) {\n localDbStream.write(buffer, 0, bytesRead);\n }\n //Don’t forget to close the streams\n localDbStream.close();\n externalDbStream.close();\n }",
"private void copyDataBase() throws IOException {\n\n\t\tInputStream myInput = rssContext.getAssets().open(DATABASE_NAME);\n\t\tString outFileName = DATABASE_PATH + DATABASE_NAME;\n\t\tOutputStream myOutput = new FileOutputStream(outFileName);\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = myInput.read(buffer)) > 0) {\n\t\t\tmyOutput.write(buffer, 0, length);\n\t\t}\n\t\tmyOutput.flush();\n\t\tmyOutput.close();\n\t\tmyInput.close();\n\t}",
"private void copyDataBase() throws IOException {\n InputStream myInput = myContext.getAssets().open(\"db/\" + DB_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DB_NAME;\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"private void copyDataBase() throws IOException\n {\n \tInputStream myInput = myContext.getAssets().open(DB_NAME);\n \n \t// Path to the just created empty db\n \tString outFileName = DB_PATH + DB_NAME;\n \n \t//Open the empty db as the output stream\n \tOutputStream myOutput = new FileOutputStream(outFileName);\n \n \t//transfer bytes from the inputfile to the outputfile\n \tbyte[] buffer = new byte[1024];\n \tint length;\n \twhile ((length = myInput.read(buffer))>0){\n \t\tmyOutput.write(buffer, 0, length);\n \t}\n \n \t//Close the streams\n \tmyOutput.flush();\n \tmyOutput.close();\n \tmyInput.close();\n \t\n \tLog.d(\"COPY\", \"DONE\");\n \n }",
"private void copyDataBase() throws IOException\n {\n \tInputStream myInput = myContext.getAssets().open(DB_NAME);\n \n \t// Path to the just created empty db\n \tString outFileName = DB_PATH + DB_NAME;\n \n \t//Open the empty db as the output stream\n \tOutputStream myOutput = new FileOutputStream(outFileName);\n \n \t//transfer bytes from the inputfile to the outputfile\n \tbyte[] buffer = new byte[1024];\n \tint length;\n \twhile ((length = myInput.read(buffer))>0){\n \t\tmyOutput.write(buffer, 0, length);\n \t}\n \n \t//Close the streams\n \tmyOutput.flush();\n \tmyOutput.close();\n \tmyInput.close();\n \t\n \tLog.d(\"COPY\", \"DONE\");\n \n }",
"public void copyDataBase() throws IOException{\n try {\n InputStream myInput = context.getAssets().open(DB_NAME);\n String outputFileName = DB_PATH + DB_NAME;\n OutputStream myOutput = new FileOutputStream(outputFileName);\n\n byte[] buffer = new byte[1024];\n int length;\n\n while((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n myOutput.flush();\n myOutput.close();\n myInput.close();\n } catch (Exception e) {\n Log.e(\"tle99 - copyDatabase\", e.getMessage());\n }\n\n }",
"private void copyDataBase() throws IOException {\n InputStream myInput = myContext.getAssets().open(DATABASE_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DATABASE_NAME;\n\n //Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDataBase() throws IOException{\n\n //Open your local db as the input stream\n InputStream myInput = myContext.getAssets().open(DB_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DB_NAME;\n\n //Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDataBase() throws IOException{\n\n //Open your local db as the input stream\n InputStream myInput = myContext.getAssets().open(DB_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DB_NAME;\n\n //Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDataBase() throws IOException\r\n\t{\r\n\t\t// Open your local db as the input stream\r\n\t\tInputStream myInput = myContext.getAssets().open(DB_NAME);\r\n\r\n\t\t// Path to the just created empty db\r\n\t\tString outFileName = DB_PATH + DB_NAME;\r\n\r\n\t\t// Open the empty db as the output stream\r\n\t\tOutputStream myOutput = new FileOutputStream(outFileName);\r\n\r\n\t\t// transfer bytes from the inputfile to the outputfile\r\n\t\tbyte[] buffer = new byte[1024];\r\n\t\tint length;\r\n\t\twhile ((length = myInput.read(buffer)) > 0)\r\n\t\t{\r\n\t\t\tmyOutput.write(buffer, 0, length);\r\n\t\t}\r\n\r\n\t\t// Close the streams\r\n\t\tmyOutput.flush();\r\n\t\tmyOutput.close();\r\n\t\tmyInput.close();\r\n\r\n\t}",
"public void copyDataBase() throws IOException {\n\n // Open your local db as the input stream\n InputStream myInput = ApplicationContextProvider.getContext().getAssets().open(DATABASE_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DATABASE_NAME;\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"private void copyDataBase()\r\n throws IOException\r\n {\r\n // Open your local db as the input stream\r\n InputStream myInput\r\n = myContext.getAssets()\r\n .open(DATABASE_NAME);\r\n\r\n // Path to the just created empty db\r\n String outFileName = DB_PATH;\r\n\r\n // Open the empty db as the output stream\r\n OutputStream myOutput\r\n = new FileOutputStream(outFileName);\r\n\r\n // transfer bytes from the\r\n // inputfile to the outputfile\r\n byte[] buffer = new byte[1024];\r\n int length;\r\n while ((length = myInput.read(buffer)) > 0) {\r\n myOutput.write(buffer, 0, length);\r\n }\r\n\r\n // Close the streams\r\n myOutput.flush();\r\n myOutput.close();\r\n myInput.close();\r\n }",
"private void copyDataBase() throws IOException {\n\t\tInputStream mInput = mContext.getAssets().open(DATABASE_NAME);\r\n\t\tString outFileName = DATABASE_PATH + DATABASE_NAME;\r\n\t\tOutputStream mOutput = new FileOutputStream(outFileName);\r\n\r\n\t\t// transferer donnees de la db\r\n\t\tbyte[] buffer = new byte[1024];\r\n\t\tint length;\r\n\t\twhile ((length = mInput.read(buffer)) > 0) {\r\n\t\t\tmOutput.write(buffer, 0, length);\r\n\t\t}\r\n\t\t// fermeture\r\n\t\tmOutput.flush();\r\n\t\tmOutput.close();\r\n\t\tmInput.close();\r\n\t}",
"private void copyDataBase() throws IOException {\n\n //Open your local db as the input stream\n InputStream myInput = context.getAssets().open(DATABASE_NAME);\n\n // Path to the just created empty db\n String outFileName = DATABASE_PATH + DATABASE_NAME;\n\n //Open the empty db as the output stream\n OutputStream myOutput = null;\n myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDatabaseToDevice() throws IOException {\n try {\n InputStream input = context.getAssets().open(DB_NAME);\n String outputName = DB_PATH + DB_NAME;\n OutputStream output = new FileOutputStream(outputName);\n\n byte[] buff = new byte[1024];\n int length = input.read(buff);\n\n while(length >0){\n output.write(buff, 0, length);\n length = input.read(buff);\n }\n\n output.flush();\n output.close();\n input.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public void copyDatabase(Context context) {\n try {\n AssetManager assetManager = context.getAssets();\n InputStream is = null;\n try {\n is = assetManager.open(DATABASE_NAME);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //mo file de ghi\n String path = DATABASE_PATH + DATABASE_NAME;\n File f = new File(path);\n if (f.exists()) {\n return;\n } else {\n f.createNewFile();\n }\n FileOutputStream fos = new FileOutputStream(f);\n byte[] b = new byte[1024];\n int lenght = 0;\n\n while ((lenght = is.read(b)) != -1) {\n fos.write(b, 0, lenght);\n fos.flush();\n }\n is.close();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void copyDatabaseFile(String destinationPath) throws IOException {\n InputStream assetsDB = this.getAssets().open(DB_NAME);\n OutputStream dbOut = new FileOutputStream(destinationPath);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = assetsDB.read(buffer)) > 0) {\n dbOut.write(buffer, 0, length);\n }\n dbOut.flush();\n dbOut.close();\n }",
"private void copyDataBase() throws IOException{\n \tLog.d(\"We're Here\", \"Copy Database\");\n \t//Open your local db as the input stream\n \tInputStream myInput = myContext.getAssets().open(DB_NAME);\n \tLog.d(\"We're Here\", \"SQLite db opened)\");\n \n \t// Path to the just created empty db\n \tString outFileName = DB_PATH + DB_NAME;\n \n \t//Open the empty db as the output stream\n \tOutputStream myOutput = new FileOutputStream(outFileName);\n \tLog.d(\"We're Here\", \"Output Stream Obtained)\");\n \n \t//transfer bytes from the inputfile to the outputfile\n \tbyte[] buffer = new byte[1024];\n \tint length;\n \twhile ((length = myInput.read(buffer))>0){\n \t\tmyOutput.write(buffer, 0, length);\n \t}\n \tLog.d(\"We're Here\", \"Copy Database Successful)\");\n \t//Close the streams\n \tmyOutput.flush();\n \tmyOutput.close();\n \tmyInput.close(); \t\n }",
"private void copyDBFromAssets() throws IOException\n {\n InputStream dbInput = null;\n Log.e(\"Openassets\",\"arghh\");\n OutputStream dbOutput = null;\n Log.e(\"Openassets\",\"arghh\");\n String dbFileName = DB_PATH +DB_NAME;\n try\n {\n Log.e(\"Openassets\",\"arghh\");\n dbInput = appContext.getAssets().open(DB_NAME);\n dbOutput = new FileOutputStream(dbFileName);\n //transfer bytes from db Input to the db Output\n byte[] buffer = new byte[1024];\n int length;\n while ((length = dbInput.read(buffer))>0)\n {\n dbOutput.write(buffer, 0, length);\n }\n //close the stream\n dbOutput.flush();\n dbOutput.close();\n dbInput.close();\n }catch(IOException e)\n {\n throw new Error(\"Problems copying DB\");\n }\n }",
"private void copyDataBase() throws IOException {\n InputStream myInput = this.getAssets().open(\"nes.sqlite\");\n // Path to the just created empty db\n\n String outFileName = getApplicationInfo().dataDir + \"/databases/\" + \"nes.sqlite\";\n //String outFileName = \"/data/data/\" +getApplicationContext().getPackageName() + \"/databases/\" + \"nes.sqlite\";\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n\n }\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n //Toast toast = Toast.makeText(getApplicationContext(),\n // \"Creating nes database\",\n // Toast.LENGTH_SHORT);\n //toast.show();\n }",
"protected static void copyDataBaseFromAssets(Context context) throws IOException {\n InputStream myInput = context.getAssets().open(\"employee_mobile.db\");\n\n // Path to the just created empty db\n String outFileName = \"/data/data/com.example.multiframe/databases/\" + ETConstants.DB_NAME;\n\n SQLiteDatabase db = context.openOrCreateDatabase(\"employee_mobile.db\", context.MODE_PRIVATE, null);\n db.close();\n Log.w(\"DBHelper\", \"Copying file from \"+myInput+\" to \"+outFileName);\n //Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"public void copyDataBase() throws IOException {\n InputStream assetInput = context.getAssets().open(ZIP_DB_NAME);\r\n Log.i(LOG_TAG, \"opened zip_db\");\r\n ZipInputStream zipIn = new ZipInputStream(assetInput);\r\n\r\n ZipEntry entry = zipIn.getNextEntry();\r\n\r\n entry.getName();\r\n\r\n // path to the just created empty database\r\n String DBFileName = DB_PATH + DB_NAME;\r\n\r\n OutputStream DBOutput = new FileOutputStream(DBFileName);\r\n\r\n byte[] buffer = new byte[1024];\r\n\r\n int length;\r\n\r\n while ((length = zipIn.read(buffer)) > 0) {\r\n DBOutput.write(buffer, 0, length);\r\n Log.i(LOG_TAG, \"zipread\" + length);\r\n }\r\n Log.i(LOG_TAG, \"read end\");\r\n // close the streams\r\n DBOutput.flush();\r\n DBOutput.close();\r\n\r\n zipIn.close();\r\n assetInput.close();\r\n }",
"public void createDatabaseFromAssets() throws IOException {\n try {\n copyDatabase();\n }\n catch (IOException e) {\n LogUtility.NoteLog(e);\n throw new Error(\"Error copying database\");\n }\n }",
"protected Boolean doInBackground(final String... args) {\r\n\r\n File dbFile = new File(context.getDatabasePath(DatabaseHelper.DATABASE_NAME).toString());\r\n System.out.println(context.getDatabasePath(DatabaseHelper.DATABASE_NAME.toString()));\r\n File exportDir = new File(Environment.getExternalStorageDirectory(), \"\");\r\n if (!exportDir.exists()) {\r\n exportDir.mkdirs();\r\n }\r\n File file = new File(exportDir, \"LandlordBuddy_DB\");\r\n\r\n try {\r\n file.createNewFile();\r\n this.copyFile(dbFile, file);\r\n return true;\r\n } catch (IOException e) {\r\n Log.e(\"mypck\", e.getMessage(), e);\r\n return false;\r\n }\r\n }",
"public void importDatabase (String name) throws IOException {\n // Closes all database connections to commit to mem\n databaseHandler.close();\n // Determines paths\n String inFileName = BACKUP_DB_PATH_DIR + name;\n\n File fromDB = new File(inFileName);\n File toDB = new File(CURRENT_DB_PATH);\n // Copy the database to the new location\n copyFile(new FileInputStream(fromDB), new FileOutputStream(toDB));\n Log.d(\"Import Database\", \"succeeded\");\n }",
"private void createDatabase() {\n String parentPath = mContext.getDatabasePath(DBNAME).getParent();\n String path = mContext.getDatabasePath(DBNAME).getPath();\n\n File file = new File(parentPath);\n if (!file.exists()) {\n if (!file.mkdir()) {\n Log.w(TAG, \"Unable to create database directory\");\n return;\n }\n }\n\n InputStream is = null;\n OutputStream os = null;\n try {\n is = mContext.getAssets().open(DBNAME);\n os = new FileOutputStream(path);\n\n byte[] buffer = new byte[1024];\n int length;\n while ((length = is.read(buffer)) > 0) {\n os.write(buffer, 0, length);\n }\n os.flush();\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(mContext);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(SP_KEY_DB_VER, DATABASE_VERSION);\n editor.commit();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public void copyConfigFile() throws IOException {\n InputStream myInput = ApplicationContextProvider.getContext().getAssets().open(CONFIG_FILE);\n\n // Path to the just created empty db\n //String outFileName = DB_PATH + DATABASE_NAME;\n String outFileName = \"/sdcard/games/Config/ConfigA.txt\";\n\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"private void moveDatabase(File srcDir, File dstDir) {\n // store the sub-folders\n File[] files = srcDir.listFiles();\n\n // create the destination folder\n dstDir.mkdirs();\n\n // move to destination\n for (File f : files) {\n f.renameTo(new File(dstDir, f.getName()));\n }\n }",
"public static void backupDatabase() throws IOException {\n\t\tString inFileName = \"/data/data/com.tip.mefgps/databases/MEF\";\n\t\tFile dbFile = new File(inFileName);\n\t\tFileInputStream fis = new FileInputStream(dbFile);\n\n\t\tString outFileName = Environment.getExternalStorageDirectory()+\"/MEF.sqlite3\";\n\t\t//Open the empty db as the output stream\n\t\tOutputStream output = new FileOutputStream(outFileName);\n\t\t//transfer bytes from the inputfile to the outputfile\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = fis.read(buffer))>0){\n\t\t\toutput.write(buffer, 0, length);\n\t\t}\n\t\t//Close the streams\n\t\toutput.flush();\n\t\toutput.close();\n\t\tfis.close();\n\t}",
"public static boolean copyDBToDownloadDirectory(String dbName) {\n File file = null;\n String packageName = MiscUtilities.getPackageName();\n try {\n file = new File(\"/data/data/\" + packageName + \"/files/\" + dbName);\n } catch (Exception e) {\n e.printStackTrace();\n }\n FileInputStream fis = null;\n FileOutputStream fos = null;\n boolean success = false;\n try {\n if (file == null) {\n return false;\n }\n fis = new FileInputStream(file);\n long currTime = DateUtilities.getCurrentDateLong();\n fos = new FileOutputStream(FileUtilities.getFileWriteDirectory() +\n \"/Download/\" + dbName + \"_copy_\" + currTime + \".db\");\n while (true) {\n int i = fis.read();\n if (i != -1) {\n fos.write(i);\n } else {\n break;\n }\n }\n fos.flush();\n success = true;\n\n } catch (Exception e) {\n e.printStackTrace();\n success = false;\n\n } finally {\n try {\n fos.close();\n fis.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (NullPointerException e1) {\n //Null\n success = false;\n }\n }\n return success;\n }",
"public void exportDB(){\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n\n\t\tprgUserData.setMessage(getResources().getText(R.string.please_wait_data_dump) );\n\t\tprgUserData.show();\n\n\t\tint myDeviceId = prefs.getInt(\"my_device_id\", 0);\n\t\t// String currentDateTimeString = DateFormat.getDateTimeInstance().format(\"dd-MM-yyyyhh:mm:ssa\");\n\t\tFile sd =new File(Environment.getExternalStorageDirectory().getPath() + \"/vkb_database\");\n\t\tsd.mkdirs();\n\t\tFile data = Environment.getDataDirectory();\n\t\tLog.d(\"dump1\",\"file sd:\"+sd);\n\t\tLog.d(\"dump1\",\"file data:\"+data);\n\t\tFileChannel source=null,sourceSess=null;\n\t\tFileChannel destination=null,destinationSess=null;\n\n\t\tString currentDBPath = \"/data/game.Typing/databases/UT_Marathi\";\n\t\tString currentDBSessPath = \"/data/game.Typing/databases/\"+ApplicationConstants.DATABASE_NAME;\n\n\t\tString backupDBPath = myDeviceId+\"_UT_Users\"+DateFormat.format(\"dd_MM_yyyy_hh_mm_ssa\",new Date(System.currentTimeMillis())).toString();\n\t\tString backupDBSessPath = myDeviceId+\"_UT_Sessions\"+DateFormat.format(\"dd_MM_yyyy_hh_mm_ssa\",new Date(System.currentTimeMillis())).toString();\n\n\t\tFile currentDB = new File(data, currentDBPath);\n\t\tFile currentSessDB = new File(data, currentDBSessPath);\n\n\t\tFile backupDB = new File(sd, backupDBPath);\n\t\tFile backupDBSess = new File(sd, backupDBSessPath);\n\n\t\ttry {\n\t\t\tsource = new FileInputStream(currentDB).getChannel();\n\t\t\tsourceSess = new FileInputStream(currentSessDB).getChannel();\n\n\t\t\tdestination = new FileOutputStream(backupDB).getChannel();\n\t\t\tdestinationSess = new FileOutputStream(backupDBSess).getChannel();\n\n\t\t\tdestination.transferFrom(source, 0, source.size());\n\t\t\tdestinationSess.transferFrom(sourceSess, 0, sourceSess.size());\n\n\t\t\tsource.close();\n\t\t\tsourceSess.close();\n\n\t\t\tdestination.close();\n\t\t\tdestinationSess.close();\n\n\t\t\tToast.makeText(this, \"DB Exported!\", Toast.LENGTH_LONG).show();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tToast.makeText(this, \"DB Exception!\", Toast.LENGTH_LONG).show();\n\t\t}\n\t\ttry{\n\t\t\tprgUserData.hide();\n\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"private void backUpDb() throws FileNotFoundException, IOException {\n backUpDb(Options.toString(Options.DATABASE));\n }",
"public static void backupDatabase(Context context) throws IOException {\n String backupFileName = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\")\n .format(System.currentTimeMillis()) + \".backup\";\n\n File from = context.getDatabasePath(DatabaseHelper.DATABASE_NAME);\n File to = new File(Environment.getExternalStorageDirectory(),\n BACKUP_DIR + backupFileName);\n\n // Create missing directories.\n if (!to.exists()) {\n to.getParentFile().mkdirs();\n to.createNewFile();\n }\n\n FileUtils.copyFile(from, to);\n }",
"public void copyDB(InputStream inputStream, OutputStream outputStream)\n\t\t\tthrows IOException\n\t{\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = inputStream.read(buffer)) > 0)\n\t\t{\n\t\t\toutputStream.write(buffer, 0, length);\n\t\t}\n\t\tinputStream.close();\n\t\toutputStream.close();\n\t}",
"private void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if (dbExist) {\n // do nothing - database already exist\n Log.d(\"DATABASE\",\"Database Exit Already.\");\n\n } else {\n\n // Create Folder\n String newFolder = \"/games\";\n String extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n File myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n // Create Folder\n// newFolder = \"/FishRisk/Game\";\n// extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n// myNewFolder = new File(extStorageDirectory + newFolder);\n// myNewFolder.mkdir();\n\n // Create Folder\n newFolder = \"/games/Report\";\n extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n // Create Folder\n newFolder = \"/games/Config\";\n extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n //copyConfigFile();\n\n // By calling this method an empty database will be created into\n // the default system path\n // of your application so we are gonna be able to overwrite that\n // database with our database.\n this.getReadableDatabase();\n\n try {\n copyDataBase();\n copyConfigFile();\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n }\n }\n }",
"public void createDataBase() throws IOException{\n \n \tboolean dbExist = checkDataBase();\n \t\n \n \tif(dbExist){\n \t\t//do nothing - database already exists\n \t\tLog.d(\"Database Check\", \"Database Exists\");\n\n \t}else{\n \t\tLog.d(\"Database Check\", \"Database Doesn't Exist\");\n \t\tthis.close();\n \t\t//By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n \tthis.getReadableDatabase();\n \tthis.close();\n \ttry {\n \t\t\tcopyDataBase();\n \t\t\tLog.d(\"Database Check\", \"Database Copied\");\n \n \t\t} catch (IOException e) {\n \t\tLog.d(\"I/O Error\", e.toString());\n\n \t\tthrow new Error(\"Error copying database\");\n \t}\n \tcatch (Exception e) { \n \t\tLog.d(\"Exception in createDatabase\", e.toString());\n \t\t\n \t}\n \t}\n \n }",
"public static void deploy(SQLiteDatabase sqlLiteDb, Context context, String dbName) throws IOException {\n Log.i(TAG, \"reading zip file: \" + dbName);\n InputStream dbStream = context.getAssets().open(dbName);\n\n deploy(sqlLiteDb, dbStream);\n\n dbStream.close();\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t\tFile file=new File(getFilesDir(),dbname);\r\n\t\t\t\tif(file.exists()&& file.length()>0){\r\n\t\t\t\t\tSystem.out.println(\"数据库已经存在\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tInputStream is=getAssets().open(dbname);\r\n\t\t\t\t\tFileOutputStream fos=openFileOutput(dbname, MODE_PRIVATE);\r\n\t\t\t\t\tbyte[] buffer=new byte[1024];\r\n\t\t\t\t\tint len=0;\r\n\t\t\t\t\twhile ((len=is.read(buffer))!=-1) {\r\n\t\t\t\t\t\tfos.write(buffer,0,len);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tis.close();\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"public void initializeDataBase() {\r\n\r\n\r\n\r\n\t\tgetWritableDatabase();\r\n\t\tLog.e(\"DBHelper initializeDataBase \", \"Entered\");\r\n\t\tcreateDatabase = true;\r\n\t\tif (createDatabase) {\r\n\t\t\tLog.e(\"DBHelper createDatabase \", \"true\");\r\n\t\t\t/*\r\n\t\t\t * If the database is created by the copy method, then the creation\r\n\t\t\t * code needs to go here. This method consists of copying the new\r\n\t\t\t * database from assets into internal storage and then caching it.\r\n\t\t\t */\r\n\t\t\ttry {\r\n\t\t\t\t/*\r\n\t\t\t\t * Write over the empty data that was created in internal\r\n\t\t\t\t * storage with the one in assets and then cache it.\r\n\t\t\t\t */\r\n\t\t\t\tcopyStream(DB_PATH_IN, new FileOutputStream(DB_PATH));\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) \r\n\t\t\t{\r\n\t\t\t\tthrow new Error(\"Error copying database\");\r\n\t\t\t}\r\n\t\t} \r\n\t\telse if (upgradeDatabase) \r\n\t\t{\r\n\t\t\tLog.e(\"DBHelper upgradeDatabase \", \"true\");\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t/*\r\n\t\t\t\t * Write over the empty data that was created in internal\r\n\t\t\t\t * storage with the one in assets and then cache it.\r\n\t\t\t\t */\r\n\t\t\t\tcopyStream(DB_PATH_IN, new FileOutputStream(DB_PATH));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tthrow new Error(\"Error copying database\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tLog.e(\"DBHelper clear \", \"true\");\r\n\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n BackupModel model = backupList.get(position);\n String inPath = Environment.getExternalStorageDirectory() + \"/InsuranceBackup/\";\n String inFile = model.getFileName();\n String outPath = getDatabasePath(\"MyDB1\").toString();\n copyFile(inPath, inFile, outPath);\n }",
"private void copyFiles(String Language) {\n try {\n String filepath = mDataPath + \"/tessdata/\" + Language + \".traineddata\";\n AssetManager assetManager = getAssets();\n InputStream instream = assetManager.open(\"tessdata/\"+Language+\".traineddata\");\n OutputStream outstream = new FileOutputStream(filepath);\n byte[] buffer = new byte[1024];\n int read;\n while ((read = instream.read(buffer)) != -1) {\n outstream.write(buffer, 0, read);\n }\n outstream.flush();\n outstream.close();\n instream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public SQLiteDatabase openDatabase() {\n synchronized (mLock) {\n Log.d(\"Opening database.\");\n File path = mContext.getDatabasePath(DatabaseOpenHelper.NAME);\n //Check if database exists and if not copy from assests folder\n if (!path.exists()) {\n try {\n mOpenHelper = new DatabaseOpenHelper(mContext);\n mOpenHelper.getWritableDatabase();\n\n copyDataBase();\n }\n catch (IOException e) {\n Log.e(\"Could not copy dictionary.\", e);\n }\n }\n if (mOpenHelper == null) {\n mOpenHelper = new DatabaseOpenHelper(mContext);\n }\n return mOpenHelper.getWritableDatabase();\n }\n }",
"public void createDataBase() throws IOException {\n boolean dbExist = checkDataBase();\n\n if (dbExist) {\n\n } else {\n this.getReadableDatabase();\n try {\n copyDataBase();\n } catch (IOException e) {\n Log.e(\"tle99 - create\", e.getMessage());\n }\n }\n }",
"@Override\n public void onClick(View view) {\n File direct = new File(Environment.getExternalStorageDirectory() + \"/Scrittor_Backup\");\n\n if (!direct.exists()) {\n if (direct.mkdir()) {\n exportDB();\n } else {\n direct.mkdir();\n exportDB();\n }\n }\n exportDB();\n }",
"private void loadDatabase() {\n Runnable load = new Runnable() {\n public void run() {\n try {\n boolean isSuccess = false;\n File data = Environment.getDataDirectory();\n\n String currentDbPath = \"//data//com.udacity.adcs.app.goodintents//databases//goodintents.db\";\n\n File currentDb = new File(data, currentDbPath);\n File restoreDb = getFileFromAsset(mActivity, mActivity.getExternalFilesDir(null) + \"/\", \"goodintents.db\");\n\n if (restoreDb != null ? restoreDb.exists() : false) {\n FileInputStream is = new FileInputStream(restoreDb);\n FileOutputStream os = new FileOutputStream(currentDb);\n\n FileChannel src = is.getChannel();\n FileChannel dst = os.getChannel();\n dst.transferFrom(src, 0, src.size());\n\n is.close();\n os.close();\n src.close();\n dst.close();\n isSuccess = true;\n }\n\n if (isSuccess) {\n PreferencesUtils.setBoolean(mActivity, R.string.initial_db_load_key, true);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n } finally {\n mActivity.runOnUiThread(loadDatabaseRunnable);\n }\n }\n };\n\n Thread thread = new Thread(null, load, \"loadDatabase\");\n thread.start();\n }",
"public void copyAssets(View view) {\n log(\"copy assets to fon\");\n try {\n String [] list = getApplicationContext().getAssets().list(\"\");\n if (list.length > 0) {\n for (String file : list) {\n copyAssetFile(file, getApplicationContext());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n log(\"copy finished\");\n log(\"deploy assets start\");\n executeCommand(\"deploy.sh\");\n log(\"deploy assets finished\");\n }",
"public void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if(dbExist){\n //do nothing - database already exist\n }else{\n\n //By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n this.getReadableDatabase();\n\n try {\n\n copyDataBase();\n\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n\n }\n }\n\n }",
"public void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if(dbExist){\n //do nothing - database already exist\n }else{\n\n //By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n this.getReadableDatabase();\n\n try {\n\n copyDataBase();\n\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n\n }\n }\n\n }",
"protected void relocateDatabaseIfNeeded() {\n File databaseDir = new File(config.dataDir(), Constants.DATABASE_DIR);\n File blocksDir = new File(databaseDir, \"block\");\n\n if (blocksDir.exists()) {\n LeveldbDatabase db = new LeveldbDatabase(blocksDir);\n byte[] header = db.get(Bytes.merge((byte) 0x00, Bytes.of(0L)));\n db.close();\n\n if (header == null || header.length < 33) {\n logger.info(\"Unable to decode genesis header. Quit relocating\");\n } else {\n String hash = Hex.encode(Arrays.copyOfRange(header, 1, 33));\n switch (hash) {\n case \"1d4fb49444a5a14dbe68f5f6109808c68e517b893c1e9bbffce9d199b5037c8e\":\n moveDatabase(databaseDir, config.databaseDir(Network.MAINNET));\n break;\n case \"abfe38563bed10ec431a4a9ad344a212ef62f6244c15795324cc06c2e8fa0f8d\":\n moveDatabase(databaseDir, config.databaseDir(Network.TESTNET));\n break;\n default:\n logger.info(\"Unable to recognize genesis hash. Quit relocating\");\n }\n }\n }\n }",
"public abstract boolean copyStatistics(DatabaseLoginConfiguration emptyDB, String localPath);",
"private void create1108(SQLiteDatabase db) {\n try (InputStream input = getTestContext().getAssets().open(CONTACTS2_DB_1108_ASSET_NAME);) {\n BufferedReader r = new BufferedReader(new InputStreamReader(input));\n String query;\n while ((query = r.readLine()) != null) {\n db.execSQL(query);\n }\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n }",
"private void migrate (String name)\t{\n\t\ttry{\n\t\t\tFile f1 = new File( sourceDir + name);\n\t\t\t\n\t\t\tif (!f1.exists())\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tFile f2 = new File(targetDir +name);\n\t\t\t\n\t\t InputStream in = new FileInputStream(f1);\n\t\t \n\t\t OutputStream out = new FileOutputStream(f2);\n\n\t\t byte[] buf = new byte[1024];\n\t\t int len;\n\t\t while ((len = in.read(buf)) > 0){\n\t\t out.write(buf, 0, len);\n\t\t }\n\t\t in.close();\n\t\t out.close();\n\t\t System.out.println(\"File copied.\");\n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t System.out.println(ex.getMessage() + \" in the specified directory.\");\n\t\t System.exit(0);\n\t\t }\n\t\t catch(IOException e){\n\t\t System.out.println(e.getMessage()); \n\t\t }\n\t}",
"public static boolean dumpDatabase() {\n Statement stm = null;\n try {\n stm = getConnection().createStatement();\n stm.executeUpdate(\"backup to db/backup.db\");\n }\n catch(Exception e) {\n e.printStackTrace();\n return false;\n }\n finally {\n try {\n stm.close();\n }\n catch (Exception e) { \n e.printStackTrace();\n }\n }\n return true;\n }",
"public void dbCreate() throws IOException\n {\n boolean dbExist = dbCheck();\n\n if(!dbExist)\n {\n //By calling this method an empty database will be created into the default system patt\n //of the application so we can overwrite that db with our db.\n this.getReadableDatabase(); // create a new empty database in the correct path\n try\n {\n //copy the data from the database in the Assets folder to the new empty database\n copyDBFromAssets();\n }\n catch(IOException e)\n {\n throw new Error(\"Error copying database\");\n }\n }\n }",
"public void exportDbFileToDownloadFoler(final Activity curr_activity){\n buttonImportExportDB.setOnClickListener(\n new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n try {\n app_utils.copyAppDbToDownloadFolder(curr_activity, getApplicationContext(), app_db.getDatabaseName());\n Toast.makeText(MainActivity.this, \"DB File copied to Download folder\", Toast.LENGTH_LONG).show();\n return;\n } catch (IOException e) {\n Toast.makeText(MainActivity.this, \"Error exporting to Download folder\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n }\n );\n }",
"private boolean databaseExists() {\n SQLiteDatabase checkDB = null;\n try {\n String myPath = DATABASE_PATH + DATABASE_NAME;\n checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);\n } catch (SQLiteException e) {\n Log.i(\"burra\",\"Database \"+DATABASE_PATH+DATABASE_NAME+\"not found. Will copy from assets folder\");\n }\n if(null!=checkDB){\n checkDB.close();\n return true;\n }\n return false;\n }",
"private void updateDatabaseFile() {\n Log.i(\"updateDatabaseFile\", \"Updating server app database\");\n try {\n FileInputStream inputStream = new FileInputStream(databaseFile);\n DropboxAPI.Entry response = MainActivity.mDBApi.putFileOverwrite(databaseFile.getName(), inputStream,\n databaseFile.length(), null);\n Log.i(\"updateDatabaseFile\", \"The uploaded file's rev is: \" + response.rev);\n } catch (Exception e) {\n Log.e(\"updateDatabaseFile\", e.toString(), e);\n }\n }",
"public void createDatabase() throws IOException {\n boolean dbExist = checkDataBase();\n// if(dbExist) {\n// Log.d(\"E\", \"Database exists.\");\n// try {\n// copyDataBase();\n// } catch (IOException e) {\n// Log.e(\"Error\", e.getMessage());\n// }\n// } else {\n// try {\n// copyDataBase();\n// } catch (IOException e) {\n// Log.e(\"Error1\", e.getMessage());\n// }\n// }\n\n if (!dbExist) {\n this.getReadableDatabase();\n this.close();\n try {\n //Copy the database from assests\n copyDataBase();\n Log.e(TAG, \"createDatabase database created\");\n } catch (IOException mIOException) {\n throw new Error(\"ErrorCopyingDataBase\");\n }\n }\n\n }",
"public static boolean exportDB(String path, String dbname) {\n\n try {\n\n File sd = Environment.getExternalStorageDirectory();\n File data = Environment.getDataDirectory();\n File dir = new File(path);\n if (!dir.exists()){\n if (!dir.mkdir()){\n // directory creation failed\n return false;\n }\n }\n if (sd.canWrite()) {\n String currentDBPath= \"//data//\" + \"selfdriving.streaming\"\n + \"//databases//\" + dbname;\n\n File currentDB = new File(data, currentDBPath);\n File backupDB = new File(dir, dbname);\n\n FileChannel src = new FileInputStream(currentDB).getChannel();\n FileChannel dst = new FileOutputStream(backupDB).getChannel();\n dst.transferFrom(src, 0, src.size());\n src.close();\n dst.close();\n return true;\n }\n } catch (Exception e) {\n Log.e(\"DbHelper\", \"Error in exporting database : \" + e.getMessage());\n }\n return false;\n }",
"public void backupAll() throws Exception {\n // create DataSet from database.\n IDataSet ds = conn.createDataSet();\n\n // write the content of database to temp file\n FlatXmlDataSet.write(ds, new FileWriter(backupFile), \"UTF-8\");\n }",
"void copyFolder(OrionCMContext ctx, Long sourceId, Long targetFolderId, List<SolutionParam> solutions) throws PhoenixDataAccessException, IOException;",
"public void copyAll(String src_path, String dest_path) {\n String sub_directory = null;\n for (String device : this.execAdbDevices()) {\n sub_directory = this.deviceid_hostname_map.get(device);\n this.copy(device, src_path, dest_path + File.separator + sub_directory);\n }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmyAssetInstaller.copyAll();\n\n\t\t\t\t\tringProgressDialog.dismiss();\n\t\t\t\t}",
"private static void deploy(SQLiteDatabase sqlLiteDb, InputStream dbStream) throws IOException {\n ZipInputStream zis = new ZipInputStream(new BufferedInputStream(dbStream));\n ZipEntry entry = null;\n while ((entry = zis.getNextEntry()) != null) {\n Log.i(TAG, \"deploying zip entry: \" + entry);\n InputStreamReader dbReader = new InputStreamReader(zis);\n deploy(sqlLiteDb, dbReader);\n }\n }",
"public String getDatabaseName()\n {\n return \"assetdr\";\n }",
"@Override\n public void finish() {\n storeProperties();\n // retrieve the full list of files according to the selected mode\n List<org.jajuk.base.File> files = getFiles();\n if (files == null) {\n return;\n }\n // define the target directory\n final Date curDate = new Date();\n // Do not use ':' character in destination directory, it's\n // forbidden under Windows\n final SimpleDateFormat stamp = new SimpleDateFormat(\"yyyyMMdd-HHmm\", Locale.getDefault());\n final String dirName = \"Party-\" + stamp.format(curDate);\n final java.io.File destDir = new java.io.File(((String) data.get(Variable.DEST_PATH)), dirName);\n if (!destDir.mkdir()) {\n Log.warn(\"Could not create destination directory \" + destDir);\n }\n Log.debug(\"Going to copy \" + files.size() + \" files to directory {{\"\n + destDir.getAbsolutePath() + \"}}\");\n // perform the actual copying\n UtilPrepareParty.copyFiles(files, destDir, isTrue(Variable.NORMALIZE_FILENAME),\n isTrue(Variable.ONE_MEDIA_ENABLED) && isTrue(Variable.CONVERT_MEDIA),\n (String) data.get(Variable.ONE_MEDIA), (String) data.get(Variable.CONVERT_COMMAND));\n }",
"public File getOutputDb();",
"void createDatabaseOnDevice() throws IOException {\n boolean databaseExists = checkIfDatabaseOnDevice();\n\n if (!databaseExists) {\n this.getReadableDatabase();\n\n try {\n copyDatabaseToDevice();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public static void createNewDatabaseFile(String startPath)\r\n throws ConnectionFailedException, DatabaseException {\r\n boolean databaseCreated;\r\n try {\r\n databaseCreated = database.createNewFile();\r\n if (!databaseCreated) {\r\n throw new IOException(\"Cannot create file\");\r\n }\r\n\r\n URL databaseResource = Objects.requireNonNull(Paths.get(\r\n startPath + \"resources/database/database.sql\").toUri().toURL());\r\n String decodedPath = URLDecoder.decode(databaseResource.getPath(), \"UTF-8\");\r\n\r\n try (BufferedReader in = new BufferedReader(new FileReader(decodedPath))) {\r\n StringBuilder sqlQuery = new StringBuilder();\r\n while (in.ready()) {\r\n sqlQuery.append(in.readLine());\r\n if (sqlQuery.toString().endsWith(\";\")) {\r\n createBasicSqlTable(sqlQuery.toString());\r\n sqlQuery = new StringBuilder();\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n throwException(e);\r\n }\r\n }",
"public void saveDatabase() {\r\n\t\ttry {\r\n\t\t\tFile databaseDirectory = new File (System.getProperty(\"user.home\")\r\n\t\t\t\t\t+ File.separator + \"Documents\" + File.separator + \"DatabaseUniverse\"\r\n\t\t\t\t\t+ File.separator + name);\r\n\t\t\tdatabaseDirectory.mkdirs();\r\n\t\t\tFile[] files = databaseDirectory.listFiles();\r\n\t\t\tSystem.gc();\r\n\t\t\tfor (File file : files) {\r\n\t\t\t\tFiles.delete(file.toPath());\r\n\t\t\t}\r\n\t\t\tfor (Table table : tables) {\r\n\t\t\t\ttable.saveTable(databaseDirectory.getPath());\r\n\t\t\t}\r\n\t\t} catch (SecurityException e) {\r\n\t\t\tSystem.out.println(\"Access Denied in Documents folder. Please check your security settings\"\r\n\t\t\t\t\t+ \"to enable file saving\");\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tSystem.err.print(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\t}",
"public Database(final Database toCopy) {\n this.source = toCopy.source;\n this.catalog = toCopy.catalog;\n this.schema = toCopy.schema;\n this.timezone = toCopy.timezone;\n this.hints = toCopy.hints;\n this.properties = toCopy.properties;\n }",
"public static void updateDatabase(){\n\t\ttry {\n\t\t\tPrintWriter pwFLU = new PrintWriter(filePath);\n\t\t\tfor(Entry<String, Pair<FileID, Integer>> entry : Peer.fileList.entrySet()){\n\t\t\t\tString path = entry.getKey();\n\t\t\t\tPair<FileID, Integer> pair = entry.getValue();\n\t\t\t\tpwFLU.println(path + \"|\" + pair.getFirst().toString() + \"|\" + pair.getSecond());\n\t\t\t}\n\t\t\tpwFLU.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*\n\t\t * UPDATE THE CHUNKS\n\t\t */\n\t\ttry {\n\t\t\tPrintWriter pwCLU = new PrintWriter(chunkPath);\n\t\t\tfor(ChunkInfo ci : Peer.chunks){\n\t\t\t\tpwCLU.println(ci.getFileId() + \"|\" + ci.getChunkNo() + \"|\" + ci.getDesiredRD() + \"|\" + ci.getActualRD());\n\t\t\t}\n\t\t\tpwCLU.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void backupToFile(String filePath) throws DatabaseWrapperOperationException {\r\n \t\t// create temporary directory which includes backup files\r\n \t\tString tempDirName = java.util.UUID.randomUUID().toString();\r\n \t\tFile tempDir = new File(System.getProperty(\"user.home\") + File.separator, tempDirName);\r\n \t\tif (!tempDir.exists() && !tempDir.mkdir()) {\r\n \t\t\tLOGGER.error(\"Could not create temp directory\");\r\n \t\t}\r\n \t\r\n \t\t// backup home directory\r\n \t\tFile tempAppDataDir = new File(tempDir.getPath());\r\n \t\tFile sourceAppDataDir = new File(FileSystemLocations.getActiveHomeDir());\r\n \t\ttry {\r\n \t\t\tString excludeRegex = LOCK_FILE_REGEX + REGEX_OR + DATABASE_FILE_REGEX; \r\n \t\t\tFileSystemAccessWrapper.copyDirectory(sourceAppDataDir, tempAppDataDir, excludeRegex);\r\n \t\t} catch (IOException e) {\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_DIRTY_STATE,e);\r\n \t\t}\r\n \t\r\n \t\t// backup database to file\r\n \t\ttry (Statement statement = ConnectionManager.getConnection().createStatement()){\t\t\t\t\r\n \t\t\tstatement.executeUpdate(BACKUP_TO + \"'\" + tempDir.getPath() + File.separatorChar + FileSystemLocations.DATABASE_TO_RESTORE_NAME + \"'\");\r\n \t\t} catch (SQLException e) {\r\n \t\t\tthrow new DatabaseWrapperOperationException(DBErrorState.ERROR_DIRTY_STATE,e);\r\n \t\t}\r\n \t\r\n \t\t// zip the whole temp folder\r\n \t\tFileSystemAccessWrapper.zipFolderToFile(tempDir.getPath(), filePath);\r\n \t\r\n \t\t// delete temp folder\r\n \t\tFileSystemAccessWrapper.deleteDirectoryRecursively(tempDir);\r\n \t}",
"private void createDatabase(final String databaseName) {\n\n try {\n final Connection connection =\n DriverManager.getConnection(url + databaseName, databaseProperties);\n\n try {\n NaviLogger.info(\"[i] Generating database tables for %s.\", databaseName);\n connection.prepareStatement(AbstractSQLProvider.parseResourceAsSQLFile(\n this.getClass().getResourceAsStream(TEST_DATA_DIRECTORY + \"database_schema.sql\")))\n .execute();\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n final File testDataDir = new File(\n \"./third_party/zynamics/javatests/com/google/security/zynamics/binnavi/testdata/\"\n + databaseName + \"/\");\n\n final CopyManager manager = new CopyManager((BaseConnection) connection);\n\n for (final File currentFile : testDataDir.listFiles()) {\n try (FileReader reader = new FileReader(currentFile)) {\n final String tableName = currentFile.getName().split(\".sql\")[0];\n NaviLogger.info(\"[i] Importing: %s.%s from %s\", databaseName, tableName,\n currentFile.getAbsolutePath());\n manager.copyIn(\"COPY \" + tableName + \" FROM STDIN\", reader);\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n }\n\n try {\n NaviLogger.warning(\"[i] Generating constraints for %s.\", databaseName);\n connection.prepareStatement(AbstractSQLProvider.parseResourceAsSQLFile(\n this.getClass().getResourceAsStream(TEST_DATA_DIRECTORY + \"database_constraints.sql\")))\n .execute();\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n final String findSequencesQuery = \"SELECT 'SELECT SETVAL(' ||quote_literal(S.relname)|| \"\n + \"', MAX(' ||quote_ident(C.attname)|| ') ) FROM ' ||quote_ident(T.relname)|| ';' \"\n + \" FROM pg_class AS S, pg_depend AS D, pg_class AS T, pg_attribute AS C \"\n + \" WHERE S.relkind = 'S' AND S.oid = D.objid AND D.refobjid = T.oid \"\n + \" AND D.refobjid = C.attrelid AND D.refobjsubid = C.attnum ORDER BY S.relname; \";\n\n try (PreparedStatement statement = connection.prepareStatement(findSequencesQuery);\n ResultSet resultSet = statement.executeQuery()) {\n while (resultSet.next()) {\n final PreparedStatement fixSequence = connection.prepareStatement(resultSet.getString(1));\n fixSequence.execute();\n }\n } catch (final SQLException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n } catch (final SQLException exception) {\n CUtilityFunctions.logException(exception);\n }\n }",
"public void restoreDB(String databaseName) throws Exception {\n boolean isBackup = this.uFile.isFileExists(context, \"backup-\" + databaseName);\n if (isBackup) {\n // check if database exists\n boolean isDB = this.uFile.isFileExists(context, databaseName);\n if (isDB) {\n boolean retD = this.uFile.deleteFile(context, databaseName);\n if (!retD) {\n String msg = \"Error: restoreDB: delete file \";\n msg += databaseName;\n throw new Exception(msg);\n } else {\n boolean retC = this.uFile.copyFile(context, \"backup-\" + databaseName, databaseName);\n if (!retC) {\n String msg = \"Error: restoreDB: copyItem\";\n msg += \" failed\";\n throw new Exception(msg);\n }\n }\n }\n } else {\n String msg = \"Error: restoreDB: backup-\" + databaseName;\n msg += \" does not exist\";\n throw new Exception(msg);\n }\n }",
"void initializeBath( File destinationFolderFile );",
"private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }",
"private void loadDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Check to make sure the Bmod Database is there, if not, try \n\t\t\t\t// downloading from the website.\n\t\t\t\tif(!Files.exists(m_databaseFile))\n\t\t\t\t{\n\t\t\t\t\tFiles.createDirectories(m_databaseFile.getParent());\n\t\t\t\t\n\t\t\t\t\tbyte[] file = ExtensionPoints.readURLAsBytes(\"http://\" + Constants.API_HOST + HSQL_DATABASE_PATH);\n\t\t\t\t\tif(file.length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t\t\t\tFiles.write(m_databaseFile, file, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// make sure we have the proper scriptformat.\n\t\t\t\tsetScriptFormatCorrectly();\n\t\t\t}catch(NullPointerException|IOException ex)\n\t\t\t{\n\t\t\t\tm_logger.error(\"Could not fetch database from web.\", ex);\n\t\t\t}\n\t\t\t\n\t\n\t\t\t\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\n\t\t\n\t\t\t\n\t\t\tString db = ExtensionPoints.getBmodDirectory(\"database\").toUri().getPath();\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:file:\" + db, \"sa\", \"\");\n\t\t\t\n\t\t\t// Setup Connection\n\t\t\tCSVRecordLoader ldr = new CSVRecordLoader();\n\t\t\n\t\t\t// Load all of the building independent plugins\n\t\t\tfor(Record<?> cp : ldr.getRecordPluginManagers())\n\t\t\t{\n\t\t\t\tm_logger.debug(\"Creating table: \" + cp.getTableName());\n\t\t\t\t// Create a new table\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tgetPreparedStatement(cp.getSQLTableDefn()).execute();\n\t\t\t\t} catch(SQLException ex)\n\t\t\t\t{\n\t\t\t\t\t// Table exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_logger.debug(\"Doing index:\" + cp.getIndexDefn());\n\t\t\t\t\tif(cp.getIndexDefn() != null)\n\t\t\t\t\t\tgetPreparedStatement(cp.getIndexDefn()).execute();\n\t\t\t\t}catch(SQLException ex)\n\t\t\t\t{\t// index exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tif(ex instanceof DatabaseIntegrityException)\n\t\t\t\tDatabase.handleCriticalError((DatabaseIntegrityException)ex);\n\t\t\telse\n\t\t\t\tDatabase.handleCriticalError(new DatabaseIntegrityException(ex));\n\t\t}\n\t\t\n\t}",
"private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}",
"public static File getSqliteDb(String name) {\n\n File nwdSqliteFolder = getDirectoryStoragePath(\"/NWD/sqlite\");\n\n String dbFilePath = nwdSqliteFolder.getAbsolutePath() + File.separator + name;\n\n if (!dbFilePath.endsWith(\".db\"))\n {\n dbFilePath += \".db\" ;\n }\n\n return new File(dbFilePath);\n }",
"private String db4oDBFullPath(Context ctx) {\t\n\t\treturn ctx.getDir(\"data\", 0) + \"/\" + LOCAL_SERVER;\n\t\n\t}",
"private File createBackupFile() throws IOException {\n File[] listFiles = dbBackupDir.listFiles();\n int length = listFiles.length;\n\n //Delete old copies\n if (length > 2) {\n for (int i = 0; i < length - 2; i++) {\n listFiles[i].delete();\n }\n }\n\n File dbBackup = new File(databaseFolderPath + \"/backup/db\" + time + \".db\");\n if (!dbBackup.exists()) {\n if (!dbBackup.createNewFile()) {\n throw new IOException(\"Cannot create backup file.\");\n }\n\n }\n return dbBackup;\n }",
"public boolean exportDB(Context context, String absolutePath) {\n boolean result = false;\n FileChannel src = null, dst = null;\n\n File applicationDB = context.getDatabasePath(DATABASE_NAME);\n\n if(applicationDB.exists()) {\n if (isExternalStorageWritable()) {\n try {\n new File(absolutePath.substring(0,absolutePath.lastIndexOf(\"/\"))).mkdirs(); // Create all dirs from filepath if they don't already exists\n File exportedDB = new File(absolutePath);\n src = new FileInputStream(applicationDB).getChannel();\n dst = new FileOutputStream(exportedDB).getChannel();\n dst.transferFrom(src, 0, src.size());\n result = true;\n\n } catch (IOException e) {\n e.printStackTrace();\n\n } finally {\n if (src != null) {\n try {\n src.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (dst != null) {\n try {\n dst.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n } else {\n Toast.makeText(context, \"Erreur, impossible d'écrire dans la mémoire.\", Toast.LENGTH_LONG).show();\n }\n }\n else {\n Toast.makeText(context, \"Erreur, base de données inexistante. Avez-vous déjà ajouté des données ?\", Toast.LENGTH_LONG).show();\n }\n return result;\n }",
"private static void initializeDatabase()\n\t{\n\t\tResultSet resultSet = dbConnect.getMetaData().getCatalogs();\n\t\tStatment statement = dbConnect.createStatement();\n\t\t\n\t\tif (resultSet.next())\n\t\t{\n\t\t\tstatement.execute(\"USE \" + resultSet.getString(1));\n\t\t\tstatement.close();\n\t\t\tresultSet.close();\n\t\t\treturn; //A database exists already\n\t\t}\n\t\tresultSet.close();\n\t\t//No database exists yet, create it.\n\t\t\n\t\tstatement.execute(\"CREATE DATABASE \" + dbName);\n\t\tstatement.execute(\"USE \" + dbName);\n\t\tstatement.execute(createTableStatement);\n\t\tstatement.close();\n\t\treturn;\n\t}",
"public BackupManager(Context context) {\n this.context = context;\n dbOriginal = context.getDatabasePath(\"library_database.db\");\n databaseFolderPath = dbOriginal.getAbsolutePath().replace(\"library_database.db\", \"\");\n dbBackupDir = new File(databaseFolderPath + \"/backup\");\n\n time = new SimpleDateFormat(\"yyyy-MM-dd_HH:mm:ss\", Locale.getDefault()).format(new Date());\n standardCoverUrl = context.getApplicationInfo().dataDir + \"/files/covers/standard_cover.jpg\";\n }",
"public void toSql(String baseDir, String out) throws IOException {\n Path pBase = Paths.get(baseDir);\n final String format = \"insert into files values(null,'%s','%s');\";\n List<String> files = new ArrayList<>();\n Files.walkFileTree(pBase, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n String fileName = file.getFileName().toString();\n String path = file.toAbsolutePath().toString();\n if (filter(path) || filter(fileName)) {\n return FileVisitResult.CONTINUE;\n }\n if (fileName.length() > 128 || path.length() > 8096) {\n System.out.println(String.format(\"warning : %s %s exced the limit\", fileName, path));\n }\n\n\n String insert = String.format(format, fileName, path);\n files.add(insert);\n if (files.size() >= 10240) {\n write2File(out, files);\n files.clear();\n }\n return FileVisitResult.CONTINUE;\n }\n });\n write2File(out, files);\n }",
"public DatabaseMerger(SQLiteDatabase pDataBase) {\r\n\t\tsetDatabse(pDataBase);\r\n\t}",
"String getDatabaseDirectoryPath();",
"public void createDatabase() throws IOException {\n boolean dbExists = checkDatabase();\n\n if (dbExists) {\n // Do nothing - database already exists\n } else {\n // By calling this method an empty database will be created into the\n // default system path of our application so we are going to be able\n // to overwrite the database with our database.\n this.getReadableDatabase();\n\n try {\n copyDatabase();\n } catch (IOException e) {\n throw new Error(\"Error copying database\");\n }\n }\n }",
"private void copyData(CopyTable table) throws Exception\n\t{\n\t\tLOG.info(\"Starting with copy of data from '\" + table.getDescription() + \"' to disk...\");\n\t\t\n\t\t// select data from source database\n\t\tStatement selectStmt =\n\t\t\tCopyToolConnectionManager.getInstance().getSourceConnection(table.getSource()).createStatement();\n\n\t\t// get number of rows in table\n\t\tResultSet resultSet =\n\t\t\tselectStmt.executeQuery(table.generateCountQuery());\n\t\tresultSet.next();\n\t\t\n\t\tlong rowCount = resultSet.getLong(1);\n\t\tLOG.info(\"Found \" + rowCount + \" rows in '\" + table.getDescription() + \"'\");\n\t\t\n\t\tresultSet.close();\n\t\t\n\t\t// get all data from table\n\t\tresultSet = selectStmt.executeQuery(table.generateSelectQuery());\n\n\t\t// get meta data (column info and such)\n\t\tResultSetMetaData metaData = resultSet.getMetaData();\n\t\t\n\t\tString tmpDir = config.getTempDirectory();\n\t\t\n\t\tString tmpFilePrefix = table.getTempFilePrefix();\n\t\t\n\t\t// serialize meta data to disk\n\t\tFile metaDataFile = new File(tmpDir, tmpFilePrefix + \"_metadata.ser\");\n\t\tFileOutputStream fileOut = new FileOutputStream(metaDataFile);\n\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t\tout.writeObject(new SerializableResultSetMetaData(metaData));\n\t\tout.close();\n\t\tfileOut.close();\n\t\tLOG.info(\"Serialized metadata to temp file: \" + metaDataFile.getAbsolutePath());\n\t\n\t\t\n\t\tif (rowCount == 0)\n\t\t{\n\t\t\twriteInsertCountFile(tmpDir, tmpFilePrefix, 0L);\n\t\t\tLOG.info(\"Finished copying data of '{}' to disk (no data to copy)\", table.getDescription());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// write data to disk\n\t\tFile temp = new File(tmpDir, tmpFilePrefix + \"_data.csv\");\t\t\n\t\tLOG.info(\"Writing data to temp file: \" + temp.getAbsolutePath());\n\t\t\n\t\tBufferedWriter bw = new BufferedWriter\n\t\t\t (new OutputStreamWriter(new FileOutputStream(temp), \"UTF-8\"));\n\n\t\tlong startTime = System.currentTimeMillis();\n\t\tlong insertCount = 0;\n\t\tint columnCount = metaData.getColumnCount();\n\t\t\n\t\twhile (resultSet.next())\n\t\t{\n\t\t\tfor (int i = 1; i <= columnCount; i++)\n\t\t\t{\n\t\t\t\tObject value = resultSet.getObject(i);\n\n\t\t\t\tif (value == null)\n\t\t\t\t{\n\t\t\t\t\tbw.write(NULL_VALUE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString valueStr;\n\t\t\t\t\tif (value instanceof BigDecimal)\n\t\t\t\t\t{\n\t\t\t\t\t\tvalueStr = ((BigDecimal)value).toPlainString();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tvalueStr = value.toString();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (table.isAutoTrim())\n\t\t\t\t\t\tvalueStr = valueStr.trim();\n\n\t\t\t\t\t// escape \\ with \\\\\n\t\t\t\t\tvalueStr = valueStr.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\n\n\t\t\t\t\t// escape \" with \\\"\n\t\t\t\t\tvalueStr = valueStr.replaceAll(\"\\\"\", \"\\\\\\\\\\\"\");\n\t\t\t\t\t\n\t\t\t\t\tbw.write(\"\\\"\" + valueStr + \"\\\"\");\n\t\t\t\t}\t\t\t\n\n\t\t\t\t// column separator (not for last column)\n\t\t\t\tif (i < columnCount)\n\t\t\t\t{\n\t\t\t\t\tbw.write(\",\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// record separator\n\t\t\tbw.newLine();\n\n\t\t\tinsertCount++;\n\n\t\t\tif (insertCount % 100000 == 0)\n\t\t\t{\n\t\t\t\tbw.flush();\n\t\t\t\tprintInsertProgress(startTime, insertCount, rowCount, \"written to disk\");\n\t\t\t}\n\t\t}\n\t\tbw.flush();\n\t\tbw.close();\n\t\tprintInsertProgress(startTime, insertCount, rowCount, \"written to disk\");\n\t\t\n\t\twriteInsertCountFile(tmpDir, tmpFilePrefix, insertCount);\n\t\t\n\t\tLOG.info(\"Finished copying data of '\" + table.getDescription() + \"' to disk!\");\n\t}",
"public void copyAssets(String dist) {\n copyFile(dist, \"pointer.png\");\n copyFile(dist, \"WebElementRecorder.js\");\n }",
"String getDbPath(String dbName);",
"private File getAppDatabaseFile() {\n Log.i(\"getAppDatabase\", \"Getting app database\");\n try {\n File file = new File(this.context.getFilesDir(), SecretConstants.DATABASE_NAME);\n Log.i(\"getAppDatabase\", \"File name: \" + file.getName());\n FileOutputStream outputStream = new FileOutputStream(file);\n DropboxAPI.DropboxFileInfo info =\n MainActivity.mDBApi.getFile(file.getName(), null, outputStream, null);\n Log.i(\"getAppDatabase\", \"The file's rev is: \" + info.getMetadata().rev);\n return file;\n } catch (Exception e) {\n Log.e(\"getAppDatabase\", e.toString(), e);\n }\n return null;\n }",
"public void createDatabase() throws IOException{\r\n\r\n boolean dbDoesExist = checkDatabase();\r\n if(!dbDoesExist)\r\n {\r\n // Create or open db if db is not connected\r\n this.getReadableDatabase();\r\n try{\r\n createNewDB();\r\n }catch (IOException e){\r\n throw new Error(\"DB Copy Failed\");\r\n }\r\n }\r\n }",
"@Override\n\tpublic void CreateDatabaseFromFile() {\n\t\tfinal String FILENAME = \"fandv.sql\";\n\t\tint[] updates = null;\n\t\ttry {\n\t\t\tMyDatabase db = new MyDatabase();\n\t\t\tupdates = db.updateAll(FILENAME);\n\t\t} catch (FileNotFoundException | SQLException | ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Database issue\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < updates.length; i++) {\n\t\t\tsum += updates[i];\n\t\t}\n\t\tSystem.out.println(\"Number of updates: \" + sum);\n\t}",
"public void prepareDatabase(String testName) throws Exception {\n prepareDatabaseFromPath('/' + testName + \"/\" + prepareFileName);\n }",
"static void resetTestDatabase() {\n String URL = \"jdbc:mysql://localhost:3306/?serverTimezone=CET\";\n String USER = \"fourthingsplustest\";\n\n InputStream stream = UserStory1Test.class.getClassLoader().getResourceAsStream(\"init.sql\");\n if (stream == null) throw new RuntimeException(\"init.sql\");\n try (Connection conn = DriverManager.getConnection(URL, USER, null)) {\n conn.setAutoCommit(false);\n ScriptRunner runner = new ScriptRunner(conn);\n runner.setStopOnError(true);\n runner.runScript(new BufferedReader(new InputStreamReader(stream)));\n conn.commit();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n System.out.println(\"Done running migration\");\n }"
] | [
"0.79277176",
"0.77122295",
"0.756796",
"0.74811995",
"0.7472862",
"0.743923",
"0.74348325",
"0.74348325",
"0.7428797",
"0.7398534",
"0.7359405",
"0.7359405",
"0.73483944",
"0.7336346",
"0.7332154",
"0.73315525",
"0.7326524",
"0.73188853",
"0.7299768",
"0.7253241",
"0.7179236",
"0.71327007",
"0.70971316",
"0.6845189",
"0.6782423",
"0.66526544",
"0.6552809",
"0.6286176",
"0.6189075",
"0.60643667",
"0.59110147",
"0.5903321",
"0.59022677",
"0.58906776",
"0.5840074",
"0.57722956",
"0.57273245",
"0.55826926",
"0.55780715",
"0.55191123",
"0.5513667",
"0.54367745",
"0.5416158",
"0.5412003",
"0.5398411",
"0.53757435",
"0.53695345",
"0.53575796",
"0.5350808",
"0.53449374",
"0.53449374",
"0.5339924",
"0.53314817",
"0.5325105",
"0.53245395",
"0.5308212",
"0.52851564",
"0.52595013",
"0.5238558",
"0.52069163",
"0.5169433",
"0.51319516",
"0.51263344",
"0.5123041",
"0.5110493",
"0.5098894",
"0.50759876",
"0.5051173",
"0.50286937",
"0.50143266",
"0.5006361",
"0.500257",
"0.5002522",
"0.49955007",
"0.49661347",
"0.49648353",
"0.49631044",
"0.49555647",
"0.49540016",
"0.4952654",
"0.49386033",
"0.49084377",
"0.4892718",
"0.48885506",
"0.4884378",
"0.48509234",
"0.4833812",
"0.4830777",
"0.48206353",
"0.48183492",
"0.47975042",
"0.47926486",
"0.47897053",
"0.47839198",
"0.47614598",
"0.47542024",
"0.47503525",
"0.47468537",
"0.4742675",
"0.47364002"
] | 0.585918 | 34 |
Copy Database from asset Folder to data directory | public void copyDatabaseFromAsset() {
/** Just to calculate time How much it will take to copy database */
//Utility t = new Utility();
/* Insert Database */
DBHelper db = new DBHelper(this);
try {
boolean dbExist = db.isDataBaseAvailable();
if (!dbExist)
db.copyDataBaseFromAsset();
/* Force fully calling onCreate to create table of Favourite*/
//db.onCreate(db.getWritableDatabase());
} catch (Exception e) {
AppLogger.writeLog("state " + TAG + " -- " + e.toString());
if (AppConstants.DEBUG)
Log.e("", e.toString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void copyDatabase() throws IOException {\n\n AssetManager assetManager = mContext.getAssets();\n InputStream myInput = assetManager.open(DATABASE_NAME);\n\n getReadableDatabase();\n File mDbFile = mContext.getDatabasePath(DATABASE_NAME);\n// File mDbFile = new File(\"/data/data/\" + PACKAGE + \"/databases/\"+DATABASE_NAME);\n OutputStream myOutput = new FileOutputStream(mDbFile);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDataBase() throws IOException {\n //Open a stream for reading from our ready-made database\n //The stream source is located in the assets\n InputStream externalDbStream = context.getAssets().open(DB_NAME);\n\n //Path to the created empty database on your Android device\n String outFileName = DB_PATH + DB_NAME;\n\n //Now create a stream for writing the database byte by byte\n OutputStream localDbStream = new FileOutputStream(outFileName);\n\n //Copying the database\n byte[] buffer = new byte[1024];\n int bytesRead;\n while ((bytesRead = externalDbStream.read(buffer)) > 0) {\n localDbStream.write(buffer, 0, bytesRead);\n }\n //Don’t forget to close the streams\n localDbStream.close();\n externalDbStream.close();\n }",
"private void copyDataBase() throws IOException {\n\n\t\tInputStream myInput = rssContext.getAssets().open(DATABASE_NAME);\n\t\tString outFileName = DATABASE_PATH + DATABASE_NAME;\n\t\tOutputStream myOutput = new FileOutputStream(outFileName);\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = myInput.read(buffer)) > 0) {\n\t\t\tmyOutput.write(buffer, 0, length);\n\t\t}\n\t\tmyOutput.flush();\n\t\tmyOutput.close();\n\t\tmyInput.close();\n\t}",
"private void copyDatabase() throws IOException {\n // Open your local database as the input stream\n InputStream inputStream = mContext.getAssets().open(DB_NAME);\n try {\n // Path to the newly created empty database\n String outFileName = DB_PATH + DB_NAME;\n OutputStream outputStream = new FileOutputStream(outFileName);\n try {\n // Transfer bytes from input file to output file\n byte[] buffer = new byte[1024];\n int len;\n while ((len = inputStream.read(buffer)) > 0) {\n outputStream.write(buffer, 0, len);\n }\n outputStream.flush();\n } finally {\n outputStream.close();\n }\n } finally {\n inputStream.close();\n }\n }",
"private void copyDataBase() throws IOException\n {\n \tInputStream myInput = myContext.getAssets().open(DB_NAME);\n \n \t// Path to the just created empty db\n \tString outFileName = DB_PATH + DB_NAME;\n \n \t//Open the empty db as the output stream\n \tOutputStream myOutput = new FileOutputStream(outFileName);\n \n \t//transfer bytes from the inputfile to the outputfile\n \tbyte[] buffer = new byte[1024];\n \tint length;\n \twhile ((length = myInput.read(buffer))>0){\n \t\tmyOutput.write(buffer, 0, length);\n \t}\n \n \t//Close the streams\n \tmyOutput.flush();\n \tmyOutput.close();\n \tmyInput.close();\n \t\n \tLog.d(\"COPY\", \"DONE\");\n \n }",
"private void copyDataBase() throws IOException\n {\n \tInputStream myInput = myContext.getAssets().open(DB_NAME);\n \n \t// Path to the just created empty db\n \tString outFileName = DB_PATH + DB_NAME;\n \n \t//Open the empty db as the output stream\n \tOutputStream myOutput = new FileOutputStream(outFileName);\n \n \t//transfer bytes from the inputfile to the outputfile\n \tbyte[] buffer = new byte[1024];\n \tint length;\n \twhile ((length = myInput.read(buffer))>0){\n \t\tmyOutput.write(buffer, 0, length);\n \t}\n \n \t//Close the streams\n \tmyOutput.flush();\n \tmyOutput.close();\n \tmyInput.close();\n \t\n \tLog.d(\"COPY\", \"DONE\");\n \n }",
"public void copyDataBase() throws IOException{\n try {\n InputStream myInput = context.getAssets().open(DB_NAME);\n String outputFileName = DB_PATH + DB_NAME;\n OutputStream myOutput = new FileOutputStream(outputFileName);\n\n byte[] buffer = new byte[1024];\n int length;\n\n while((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n myOutput.flush();\n myOutput.close();\n myInput.close();\n } catch (Exception e) {\n Log.e(\"tle99 - copyDatabase\", e.getMessage());\n }\n\n }",
"private void copyDataBase() throws IOException {\n InputStream myInput = myContext.getAssets().open(\"db/\" + DB_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DB_NAME;\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"private void copyDataBase() throws IOException {\n\t\tInputStream mInput = mContext.getAssets().open(DATABASE_NAME);\r\n\t\tString outFileName = DATABASE_PATH + DATABASE_NAME;\r\n\t\tOutputStream mOutput = new FileOutputStream(outFileName);\r\n\r\n\t\t// transferer donnees de la db\r\n\t\tbyte[] buffer = new byte[1024];\r\n\t\tint length;\r\n\t\twhile ((length = mInput.read(buffer)) > 0) {\r\n\t\t\tmOutput.write(buffer, 0, length);\r\n\t\t}\r\n\t\t// fermeture\r\n\t\tmOutput.flush();\r\n\t\tmOutput.close();\r\n\t\tmInput.close();\r\n\t}",
"private void copyDatabaseFile(String destinationPath) throws IOException {\n InputStream assetsDB = this.getAssets().open(DB_NAME);\n OutputStream dbOut = new FileOutputStream(destinationPath);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = assetsDB.read(buffer)) > 0) {\n dbOut.write(buffer, 0, length);\n }\n dbOut.flush();\n dbOut.close();\n }",
"public void copyDataBase() throws IOException {\n\n // Open your local db as the input stream\n InputStream myInput = ApplicationContextProvider.getContext().getAssets().open(DATABASE_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DATABASE_NAME;\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"private void copyDataBase()\r\n throws IOException\r\n {\r\n // Open your local db as the input stream\r\n InputStream myInput\r\n = myContext.getAssets()\r\n .open(DATABASE_NAME);\r\n\r\n // Path to the just created empty db\r\n String outFileName = DB_PATH;\r\n\r\n // Open the empty db as the output stream\r\n OutputStream myOutput\r\n = new FileOutputStream(outFileName);\r\n\r\n // transfer bytes from the\r\n // inputfile to the outputfile\r\n byte[] buffer = new byte[1024];\r\n int length;\r\n while ((length = myInput.read(buffer)) > 0) {\r\n myOutput.write(buffer, 0, length);\r\n }\r\n\r\n // Close the streams\r\n myOutput.flush();\r\n myOutput.close();\r\n myInput.close();\r\n }",
"private void copyDataBase() throws IOException {\n InputStream myInput = myContext.getAssets().open(DATABASE_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DATABASE_NAME;\n\n //Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDataBase() throws IOException\r\n\t{\r\n\t\t// Open your local db as the input stream\r\n\t\tInputStream myInput = myContext.getAssets().open(DB_NAME);\r\n\r\n\t\t// Path to the just created empty db\r\n\t\tString outFileName = DB_PATH + DB_NAME;\r\n\r\n\t\t// Open the empty db as the output stream\r\n\t\tOutputStream myOutput = new FileOutputStream(outFileName);\r\n\r\n\t\t// transfer bytes from the inputfile to the outputfile\r\n\t\tbyte[] buffer = new byte[1024];\r\n\t\tint length;\r\n\t\twhile ((length = myInput.read(buffer)) > 0)\r\n\t\t{\r\n\t\t\tmyOutput.write(buffer, 0, length);\r\n\t\t}\r\n\r\n\t\t// Close the streams\r\n\t\tmyOutput.flush();\r\n\t\tmyOutput.close();\r\n\t\tmyInput.close();\r\n\r\n\t}",
"private void copyDatabaseToDevice() throws IOException {\n try {\n InputStream input = context.getAssets().open(DB_NAME);\n String outputName = DB_PATH + DB_NAME;\n OutputStream output = new FileOutputStream(outputName);\n\n byte[] buff = new byte[1024];\n int length = input.read(buff);\n\n while(length >0){\n output.write(buff, 0, length);\n length = input.read(buff);\n }\n\n output.flush();\n output.close();\n input.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"private void copyDataBase() throws IOException{\n\n //Open your local db as the input stream\n InputStream myInput = myContext.getAssets().open(DB_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DB_NAME;\n\n //Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDataBase() throws IOException{\n\n //Open your local db as the input stream\n InputStream myInput = myContext.getAssets().open(DB_NAME);\n\n // Path to the just created empty db\n String outFileName = DB_PATH + DB_NAME;\n\n //Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"private void copyDataBase() throws IOException {\n\n //Open your local db as the input stream\n InputStream myInput = context.getAssets().open(DATABASE_NAME);\n\n // Path to the just created empty db\n String outFileName = DATABASE_PATH + DATABASE_NAME;\n\n //Open the empty db as the output stream\n OutputStream myOutput = null;\n myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"public void copyDatabase(Context context) {\n try {\n AssetManager assetManager = context.getAssets();\n InputStream is = null;\n try {\n is = assetManager.open(DATABASE_NAME);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //mo file de ghi\n String path = DATABASE_PATH + DATABASE_NAME;\n File f = new File(path);\n if (f.exists()) {\n return;\n } else {\n f.createNewFile();\n }\n FileOutputStream fos = new FileOutputStream(f);\n byte[] b = new byte[1024];\n int lenght = 0;\n\n while ((lenght = is.read(b)) != -1) {\n fos.write(b, 0, lenght);\n fos.flush();\n }\n is.close();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void copyDBFromAssets() throws IOException\n {\n InputStream dbInput = null;\n Log.e(\"Openassets\",\"arghh\");\n OutputStream dbOutput = null;\n Log.e(\"Openassets\",\"arghh\");\n String dbFileName = DB_PATH +DB_NAME;\n try\n {\n Log.e(\"Openassets\",\"arghh\");\n dbInput = appContext.getAssets().open(DB_NAME);\n dbOutput = new FileOutputStream(dbFileName);\n //transfer bytes from db Input to the db Output\n byte[] buffer = new byte[1024];\n int length;\n while ((length = dbInput.read(buffer))>0)\n {\n dbOutput.write(buffer, 0, length);\n }\n //close the stream\n dbOutput.flush();\n dbOutput.close();\n dbInput.close();\n }catch(IOException e)\n {\n throw new Error(\"Problems copying DB\");\n }\n }",
"private void copyDataBase() throws IOException{\n \tLog.d(\"We're Here\", \"Copy Database\");\n \t//Open your local db as the input stream\n \tInputStream myInput = myContext.getAssets().open(DB_NAME);\n \tLog.d(\"We're Here\", \"SQLite db opened)\");\n \n \t// Path to the just created empty db\n \tString outFileName = DB_PATH + DB_NAME;\n \n \t//Open the empty db as the output stream\n \tOutputStream myOutput = new FileOutputStream(outFileName);\n \tLog.d(\"We're Here\", \"Output Stream Obtained)\");\n \n \t//transfer bytes from the inputfile to the outputfile\n \tbyte[] buffer = new byte[1024];\n \tint length;\n \twhile ((length = myInput.read(buffer))>0){\n \t\tmyOutput.write(buffer, 0, length);\n \t}\n \tLog.d(\"We're Here\", \"Copy Database Successful)\");\n \t//Close the streams\n \tmyOutput.flush();\n \tmyOutput.close();\n \tmyInput.close(); \t\n }",
"private void copyDataBase() throws IOException {\n InputStream myInput = this.getAssets().open(\"nes.sqlite\");\n // Path to the just created empty db\n\n String outFileName = getApplicationInfo().dataDir + \"/databases/\" + \"nes.sqlite\";\n //String outFileName = \"/data/data/\" +getApplicationContext().getPackageName() + \"/databases/\" + \"nes.sqlite\";\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n\n }\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n //Toast toast = Toast.makeText(getApplicationContext(),\n // \"Creating nes database\",\n // Toast.LENGTH_SHORT);\n //toast.show();\n }",
"public void createDatabaseFromAssets() throws IOException {\n try {\n copyDatabase();\n }\n catch (IOException e) {\n LogUtility.NoteLog(e);\n throw new Error(\"Error copying database\");\n }\n }",
"protected static void copyDataBaseFromAssets(Context context) throws IOException {\n InputStream myInput = context.getAssets().open(\"employee_mobile.db\");\n\n // Path to the just created empty db\n String outFileName = \"/data/data/com.example.multiframe/databases/\" + ETConstants.DB_NAME;\n\n SQLiteDatabase db = context.openOrCreateDatabase(\"employee_mobile.db\", context.MODE_PRIVATE, null);\n db.close();\n Log.w(\"DBHelper\", \"Copying file from \"+myInput+\" to \"+outFileName);\n //Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n //transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer))>0){\n myOutput.write(buffer, 0, length);\n }\n\n //Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n\n }",
"public void copyDataBase() throws IOException {\n InputStream assetInput = context.getAssets().open(ZIP_DB_NAME);\r\n Log.i(LOG_TAG, \"opened zip_db\");\r\n ZipInputStream zipIn = new ZipInputStream(assetInput);\r\n\r\n ZipEntry entry = zipIn.getNextEntry();\r\n\r\n entry.getName();\r\n\r\n // path to the just created empty database\r\n String DBFileName = DB_PATH + DB_NAME;\r\n\r\n OutputStream DBOutput = new FileOutputStream(DBFileName);\r\n\r\n byte[] buffer = new byte[1024];\r\n\r\n int length;\r\n\r\n while ((length = zipIn.read(buffer)) > 0) {\r\n DBOutput.write(buffer, 0, length);\r\n Log.i(LOG_TAG, \"zipread\" + length);\r\n }\r\n Log.i(LOG_TAG, \"read end\");\r\n // close the streams\r\n DBOutput.flush();\r\n DBOutput.close();\r\n\r\n zipIn.close();\r\n assetInput.close();\r\n }",
"protected Boolean doInBackground(final String... args) {\r\n\r\n File dbFile = new File(context.getDatabasePath(DatabaseHelper.DATABASE_NAME).toString());\r\n System.out.println(context.getDatabasePath(DatabaseHelper.DATABASE_NAME.toString()));\r\n File exportDir = new File(Environment.getExternalStorageDirectory(), \"\");\r\n if (!exportDir.exists()) {\r\n exportDir.mkdirs();\r\n }\r\n File file = new File(exportDir, \"LandlordBuddy_DB\");\r\n\r\n try {\r\n file.createNewFile();\r\n this.copyFile(dbFile, file);\r\n return true;\r\n } catch (IOException e) {\r\n Log.e(\"mypck\", e.getMessage(), e);\r\n return false;\r\n }\r\n }",
"public void importDatabase (String name) throws IOException {\n // Closes all database connections to commit to mem\n databaseHandler.close();\n // Determines paths\n String inFileName = BACKUP_DB_PATH_DIR + name;\n\n File fromDB = new File(inFileName);\n File toDB = new File(CURRENT_DB_PATH);\n // Copy the database to the new location\n copyFile(new FileInputStream(fromDB), new FileOutputStream(toDB));\n Log.d(\"Import Database\", \"succeeded\");\n }",
"private void createDatabase() {\n String parentPath = mContext.getDatabasePath(DBNAME).getParent();\n String path = mContext.getDatabasePath(DBNAME).getPath();\n\n File file = new File(parentPath);\n if (!file.exists()) {\n if (!file.mkdir()) {\n Log.w(TAG, \"Unable to create database directory\");\n return;\n }\n }\n\n InputStream is = null;\n OutputStream os = null;\n try {\n is = mContext.getAssets().open(DBNAME);\n os = new FileOutputStream(path);\n\n byte[] buffer = new byte[1024];\n int length;\n while ((length = is.read(buffer)) > 0) {\n os.write(buffer, 0, length);\n }\n os.flush();\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(mContext);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(SP_KEY_DB_VER, DATABASE_VERSION);\n editor.commit();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (os != null) {\n try {\n os.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"private void moveDatabase(File srcDir, File dstDir) {\n // store the sub-folders\n File[] files = srcDir.listFiles();\n\n // create the destination folder\n dstDir.mkdirs();\n\n // move to destination\n for (File f : files) {\n f.renameTo(new File(dstDir, f.getName()));\n }\n }",
"public void copyConfigFile() throws IOException {\n InputStream myInput = ApplicationContextProvider.getContext().getAssets().open(CONFIG_FILE);\n\n // Path to the just created empty db\n //String outFileName = DB_PATH + DATABASE_NAME;\n String outFileName = \"/sdcard/games/Config/ConfigA.txt\";\n\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"@Override\n protected String doInBackground(Void... params) {\n copyDatabaseFromAsset();\n //insertValue();\n return \"\";\n }",
"public void createDataBase() throws IOException{\n \n \tboolean dbExist = checkDataBase();\n \t\n \n \tif(dbExist){\n \t\t//do nothing - database already exists\n \t\tLog.d(\"Database Check\", \"Database Exists\");\n\n \t}else{\n \t\tLog.d(\"Database Check\", \"Database Doesn't Exist\");\n \t\tthis.close();\n \t\t//By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n \tthis.getReadableDatabase();\n \tthis.close();\n \ttry {\n \t\t\tcopyDataBase();\n \t\t\tLog.d(\"Database Check\", \"Database Copied\");\n \n \t\t} catch (IOException e) {\n \t\tLog.d(\"I/O Error\", e.toString());\n\n \t\tthrow new Error(\"Error copying database\");\n \t}\n \tcatch (Exception e) { \n \t\tLog.d(\"Exception in createDatabase\", e.toString());\n \t\t\n \t}\n \t}\n \n }",
"public static boolean copyDBToDownloadDirectory(String dbName) {\n File file = null;\n String packageName = MiscUtilities.getPackageName();\n try {\n file = new File(\"/data/data/\" + packageName + \"/files/\" + dbName);\n } catch (Exception e) {\n e.printStackTrace();\n }\n FileInputStream fis = null;\n FileOutputStream fos = null;\n boolean success = false;\n try {\n if (file == null) {\n return false;\n }\n fis = new FileInputStream(file);\n long currTime = DateUtilities.getCurrentDateLong();\n fos = new FileOutputStream(FileUtilities.getFileWriteDirectory() +\n \"/Download/\" + dbName + \"_copy_\" + currTime + \".db\");\n while (true) {\n int i = fis.read();\n if (i != -1) {\n fos.write(i);\n } else {\n break;\n }\n }\n fos.flush();\n success = true;\n\n } catch (Exception e) {\n e.printStackTrace();\n success = false;\n\n } finally {\n try {\n fos.close();\n fis.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } catch (NullPointerException e1) {\n //Null\n success = false;\n }\n }\n return success;\n }",
"public void exportDB(){\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n\n\t\tprgUserData.setMessage(getResources().getText(R.string.please_wait_data_dump) );\n\t\tprgUserData.show();\n\n\t\tint myDeviceId = prefs.getInt(\"my_device_id\", 0);\n\t\t// String currentDateTimeString = DateFormat.getDateTimeInstance().format(\"dd-MM-yyyyhh:mm:ssa\");\n\t\tFile sd =new File(Environment.getExternalStorageDirectory().getPath() + \"/vkb_database\");\n\t\tsd.mkdirs();\n\t\tFile data = Environment.getDataDirectory();\n\t\tLog.d(\"dump1\",\"file sd:\"+sd);\n\t\tLog.d(\"dump1\",\"file data:\"+data);\n\t\tFileChannel source=null,sourceSess=null;\n\t\tFileChannel destination=null,destinationSess=null;\n\n\t\tString currentDBPath = \"/data/game.Typing/databases/UT_Marathi\";\n\t\tString currentDBSessPath = \"/data/game.Typing/databases/\"+ApplicationConstants.DATABASE_NAME;\n\n\t\tString backupDBPath = myDeviceId+\"_UT_Users\"+DateFormat.format(\"dd_MM_yyyy_hh_mm_ssa\",new Date(System.currentTimeMillis())).toString();\n\t\tString backupDBSessPath = myDeviceId+\"_UT_Sessions\"+DateFormat.format(\"dd_MM_yyyy_hh_mm_ssa\",new Date(System.currentTimeMillis())).toString();\n\n\t\tFile currentDB = new File(data, currentDBPath);\n\t\tFile currentSessDB = new File(data, currentDBSessPath);\n\n\t\tFile backupDB = new File(sd, backupDBPath);\n\t\tFile backupDBSess = new File(sd, backupDBSessPath);\n\n\t\ttry {\n\t\t\tsource = new FileInputStream(currentDB).getChannel();\n\t\t\tsourceSess = new FileInputStream(currentSessDB).getChannel();\n\n\t\t\tdestination = new FileOutputStream(backupDB).getChannel();\n\t\t\tdestinationSess = new FileOutputStream(backupDBSess).getChannel();\n\n\t\t\tdestination.transferFrom(source, 0, source.size());\n\t\t\tdestinationSess.transferFrom(sourceSess, 0, sourceSess.size());\n\n\t\t\tsource.close();\n\t\t\tsourceSess.close();\n\n\t\t\tdestination.close();\n\t\t\tdestinationSess.close();\n\n\t\t\tToast.makeText(this, \"DB Exported!\", Toast.LENGTH_LONG).show();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tToast.makeText(this, \"DB Exception!\", Toast.LENGTH_LONG).show();\n\t\t}\n\t\ttry{\n\t\t\tprgUserData.hide();\n\n\t\t}catch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void createDataBase() throws IOException {\n boolean dbExist = checkDataBase();\n\n if (dbExist) {\n\n } else {\n this.getReadableDatabase();\n try {\n copyDataBase();\n } catch (IOException e) {\n Log.e(\"tle99 - create\", e.getMessage());\n }\n }\n }",
"private void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if (dbExist) {\n // do nothing - database already exist\n Log.d(\"DATABASE\",\"Database Exit Already.\");\n\n } else {\n\n // Create Folder\n String newFolder = \"/games\";\n String extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n File myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n // Create Folder\n// newFolder = \"/FishRisk/Game\";\n// extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n// myNewFolder = new File(extStorageDirectory + newFolder);\n// myNewFolder.mkdir();\n\n // Create Folder\n newFolder = \"/games/Report\";\n extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n // Create Folder\n newFolder = \"/games/Config\";\n extStorageDirectory = Environment.getExternalStorageDirectory().toString();\n myNewFolder = new File(extStorageDirectory + newFolder);\n myNewFolder.mkdir();\n\n //copyConfigFile();\n\n // By calling this method an empty database will be created into\n // the default system path\n // of your application so we are gonna be able to overwrite that\n // database with our database.\n this.getReadableDatabase();\n\n try {\n copyDataBase();\n copyConfigFile();\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n }\n }\n }",
"public void initializeDataBase() {\r\n\r\n\r\n\r\n\t\tgetWritableDatabase();\r\n\t\tLog.e(\"DBHelper initializeDataBase \", \"Entered\");\r\n\t\tcreateDatabase = true;\r\n\t\tif (createDatabase) {\r\n\t\t\tLog.e(\"DBHelper createDatabase \", \"true\");\r\n\t\t\t/*\r\n\t\t\t * If the database is created by the copy method, then the creation\r\n\t\t\t * code needs to go here. This method consists of copying the new\r\n\t\t\t * database from assets into internal storage and then caching it.\r\n\t\t\t */\r\n\t\t\ttry {\r\n\t\t\t\t/*\r\n\t\t\t\t * Write over the empty data that was created in internal\r\n\t\t\t\t * storage with the one in assets and then cache it.\r\n\t\t\t\t */\r\n\t\t\t\tcopyStream(DB_PATH_IN, new FileOutputStream(DB_PATH));\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) \r\n\t\t\t{\r\n\t\t\t\tthrow new Error(\"Error copying database\");\r\n\t\t\t}\r\n\t\t} \r\n\t\telse if (upgradeDatabase) \r\n\t\t{\r\n\t\t\tLog.e(\"DBHelper upgradeDatabase \", \"true\");\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t/*\r\n\t\t\t\t * Write over the empty data that was created in internal\r\n\t\t\t\t * storage with the one in assets and then cache it.\r\n\t\t\t\t */\r\n\t\t\t\tcopyStream(DB_PATH_IN, new FileOutputStream(DB_PATH));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tthrow new Error(\"Error copying database\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tLog.e(\"DBHelper clear \", \"true\");\r\n\t}",
"public static void backupDatabase() throws IOException {\n\t\tString inFileName = \"/data/data/com.tip.mefgps/databases/MEF\";\n\t\tFile dbFile = new File(inFileName);\n\t\tFileInputStream fis = new FileInputStream(dbFile);\n\n\t\tString outFileName = Environment.getExternalStorageDirectory()+\"/MEF.sqlite3\";\n\t\t//Open the empty db as the output stream\n\t\tOutputStream output = new FileOutputStream(outFileName);\n\t\t//transfer bytes from the inputfile to the outputfile\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = fis.read(buffer))>0){\n\t\t\toutput.write(buffer, 0, length);\n\t\t}\n\t\t//Close the streams\n\t\toutput.flush();\n\t\toutput.close();\n\t\tfis.close();\n\t}",
"public static void backupDatabase(Context context) throws IOException {\n String backupFileName = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\")\n .format(System.currentTimeMillis()) + \".backup\";\n\n File from = context.getDatabasePath(DatabaseHelper.DATABASE_NAME);\n File to = new File(Environment.getExternalStorageDirectory(),\n BACKUP_DIR + backupFileName);\n\n // Create missing directories.\n if (!to.exists()) {\n to.getParentFile().mkdirs();\n to.createNewFile();\n }\n\n FileUtils.copyFile(from, to);\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t\tFile file=new File(getFilesDir(),dbname);\r\n\t\t\t\tif(file.exists()&& file.length()>0){\r\n\t\t\t\t\tSystem.out.println(\"数据库已经存在\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tInputStream is=getAssets().open(dbname);\r\n\t\t\t\t\tFileOutputStream fos=openFileOutput(dbname, MODE_PRIVATE);\r\n\t\t\t\t\tbyte[] buffer=new byte[1024];\r\n\t\t\t\t\tint len=0;\r\n\t\t\t\t\twhile ((len=is.read(buffer))!=-1) {\r\n\t\t\t\t\t\tfos.write(buffer,0,len);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tis.close();\r\n\t\t\t\t\tfos.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"private void copyFiles(String Language) {\n try {\n String filepath = mDataPath + \"/tessdata/\" + Language + \".traineddata\";\n AssetManager assetManager = getAssets();\n InputStream instream = assetManager.open(\"tessdata/\"+Language+\".traineddata\");\n OutputStream outstream = new FileOutputStream(filepath);\n byte[] buffer = new byte[1024];\n int read;\n while ((read = instream.read(buffer)) != -1) {\n outstream.write(buffer, 0, read);\n }\n outstream.flush();\n outstream.close();\n instream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if(dbExist){\n //do nothing - database already exist\n }else{\n\n //By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n this.getReadableDatabase();\n\n try {\n\n copyDataBase();\n\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n\n }\n }\n\n }",
"public void createDataBase() throws IOException {\n\n boolean dbExist = checkDataBase();\n\n if(dbExist){\n //do nothing - database already exist\n }else{\n\n //By calling this method and empty database will be created into the default system path\n //of your application so we are gonna be able to overwrite that database with our database.\n this.getReadableDatabase();\n\n try {\n\n copyDataBase();\n\n } catch (IOException e) {\n\n throw new Error(\"Error copying database\");\n\n }\n }\n\n }",
"private void backUpDb() throws FileNotFoundException, IOException {\n backUpDb(Options.toString(Options.DATABASE));\n }",
"public void dbCreate() throws IOException\n {\n boolean dbExist = dbCheck();\n\n if(!dbExist)\n {\n //By calling this method an empty database will be created into the default system patt\n //of the application so we can overwrite that db with our db.\n this.getReadableDatabase(); // create a new empty database in the correct path\n try\n {\n //copy the data from the database in the Assets folder to the new empty database\n copyDBFromAssets();\n }\n catch(IOException e)\n {\n throw new Error(\"Error copying database\");\n }\n }\n }",
"public void copyDB(InputStream inputStream, OutputStream outputStream)\n\t\t\tthrows IOException\n\t{\n\t\tbyte[] buffer = new byte[1024];\n\t\tint length;\n\t\twhile ((length = inputStream.read(buffer)) > 0)\n\t\t{\n\t\t\toutputStream.write(buffer, 0, length);\n\t\t}\n\t\tinputStream.close();\n\t\toutputStream.close();\n\t}",
"public static void deploy(SQLiteDatabase sqlLiteDb, Context context, String dbName) throws IOException {\n Log.i(TAG, \"reading zip file: \" + dbName);\n InputStream dbStream = context.getAssets().open(dbName);\n\n deploy(sqlLiteDb, dbStream);\n\n dbStream.close();\n }",
"private void loadDatabase() {\n Runnable load = new Runnable() {\n public void run() {\n try {\n boolean isSuccess = false;\n File data = Environment.getDataDirectory();\n\n String currentDbPath = \"//data//com.udacity.adcs.app.goodintents//databases//goodintents.db\";\n\n File currentDb = new File(data, currentDbPath);\n File restoreDb = getFileFromAsset(mActivity, mActivity.getExternalFilesDir(null) + \"/\", \"goodintents.db\");\n\n if (restoreDb != null ? restoreDb.exists() : false) {\n FileInputStream is = new FileInputStream(restoreDb);\n FileOutputStream os = new FileOutputStream(currentDb);\n\n FileChannel src = is.getChannel();\n FileChannel dst = os.getChannel();\n dst.transferFrom(src, 0, src.size());\n\n is.close();\n os.close();\n src.close();\n dst.close();\n isSuccess = true;\n }\n\n if (isSuccess) {\n PreferencesUtils.setBoolean(mActivity, R.string.initial_db_load_key, true);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n } finally {\n mActivity.runOnUiThread(loadDatabaseRunnable);\n }\n }\n };\n\n Thread thread = new Thread(null, load, \"loadDatabase\");\n thread.start();\n }",
"public void createDatabase() throws IOException {\n boolean dbExist = checkDataBase();\n// if(dbExist) {\n// Log.d(\"E\", \"Database exists.\");\n// try {\n// copyDataBase();\n// } catch (IOException e) {\n// Log.e(\"Error\", e.getMessage());\n// }\n// } else {\n// try {\n// copyDataBase();\n// } catch (IOException e) {\n// Log.e(\"Error1\", e.getMessage());\n// }\n// }\n\n if (!dbExist) {\n this.getReadableDatabase();\n this.close();\n try {\n //Copy the database from assests\n copyDataBase();\n Log.e(TAG, \"createDatabase database created\");\n } catch (IOException mIOException) {\n throw new Error(\"ErrorCopyingDataBase\");\n }\n }\n\n }",
"@Override\n public void onClick(View view) {\n File direct = new File(Environment.getExternalStorageDirectory() + \"/Scrittor_Backup\");\n\n if (!direct.exists()) {\n if (direct.mkdir()) {\n exportDB();\n } else {\n direct.mkdir();\n exportDB();\n }\n }\n exportDB();\n }",
"void createDatabaseOnDevice() throws IOException {\n boolean databaseExists = checkIfDatabaseOnDevice();\n\n if (!databaseExists) {\n this.getReadableDatabase();\n\n try {\n copyDatabaseToDevice();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void makeData() {\n\t\tFile file = null;\r\n try {\r\n if (!m.getDataFolder().exists()) { //Check if the directory of the plugin exists...\r\n \tm.getDataFolder().mkdirs(); //If not making one.\r\n }\r\n file = new File(m.getDataFolder(), \"data.yml\"); // Defining file to data.yml NOTE: This file has to be also in your Project, even if it's empty.\r\n if (!file.exists()) { //Check if it exists\r\n \tm.getLogger().info(\"data.yml not found, creating!\"); //Log that it is creating\r\n \tm.saveResource(\"data.yml\", true); //Saving the resource, This is all by Java done no Spigot noeeded. \r\n } else {\r\n \tm.getLogger().info(\"data.yml found, loading!\"); //If it is already there, load it.\r\n \t//TODO: Loading...\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();//If something returned a NPE or something it will print a stacktrace...\r\n }\r\n\t}",
"public static void createDatabaseIfNotExists() throws DaoException {\n\n Path data = Paths.get(DATA_DIR);\n if (!Files.exists(data)) {\n try {\n Files.createDirectory(data);\n Files.createDirectory(Paths.get(DATA_DIR, ACCOUNT_DATA_DIR));\n } catch (IOException ex) {\n throw new DaoException(\"Could not create data directory\", ex);\n }\n }\n\n }",
"public File prepareDataFolder() {\n if (!dataFolder.exists()) {\n dataFolder.mkdirs();\n }\n return dataFolder;\n }",
"private boolean databaseExists() {\n SQLiteDatabase checkDB = null;\n try {\n String myPath = DATABASE_PATH + DATABASE_NAME;\n checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY);\n } catch (SQLiteException e) {\n Log.i(\"burra\",\"Database \"+DATABASE_PATH+DATABASE_NAME+\"not found. Will copy from assets folder\");\n }\n if(null!=checkDB){\n checkDB.close();\n return true;\n }\n return false;\n }",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n BackupModel model = backupList.get(position);\n String inPath = Environment.getExternalStorageDirectory() + \"/InsuranceBackup/\";\n String inFile = model.getFileName();\n String outPath = getDatabasePath(\"MyDB1\").toString();\n copyFile(inPath, inFile, outPath);\n }",
"public static void insertTestDataExport() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_export.sql\");\n\t}",
"public SQLiteDatabase openDatabase() {\n synchronized (mLock) {\n Log.d(\"Opening database.\");\n File path = mContext.getDatabasePath(DatabaseOpenHelper.NAME);\n //Check if database exists and if not copy from assests folder\n if (!path.exists()) {\n try {\n mOpenHelper = new DatabaseOpenHelper(mContext);\n mOpenHelper.getWritableDatabase();\n\n copyDataBase();\n }\n catch (IOException e) {\n Log.e(\"Could not copy dictionary.\", e);\n }\n }\n if (mOpenHelper == null) {\n mOpenHelper = new DatabaseOpenHelper(mContext);\n }\n return mOpenHelper.getWritableDatabase();\n }\n }",
"public String getDatabaseName()\n {\n return \"assetdr\";\n }",
"public void copyAssets(View view) {\n log(\"copy assets to fon\");\n try {\n String [] list = getApplicationContext().getAssets().list(\"\");\n if (list.length > 0) {\n for (String file : list) {\n copyAssetFile(file, getApplicationContext());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n log(\"copy finished\");\n log(\"deploy assets start\");\n executeCommand(\"deploy.sh\");\n log(\"deploy assets finished\");\n }",
"private void downloadData(SQLiteDatabase db){\n DeviceDataManager.downloadDeviceData(db);\n CustomerDataManager.downloadCustomerData(db);\n CheckInTypeDataManager.downloadCheckInTypeData(db);\n CheckInPointDataManager.downloadCheckInPointData(db);\n PhotographerDataManager.downloadPhotographerData(db);\n }",
"public static boolean exportDB(String path, String dbname) {\n\n try {\n\n File sd = Environment.getExternalStorageDirectory();\n File data = Environment.getDataDirectory();\n File dir = new File(path);\n if (!dir.exists()){\n if (!dir.mkdir()){\n // directory creation failed\n return false;\n }\n }\n if (sd.canWrite()) {\n String currentDBPath= \"//data//\" + \"selfdriving.streaming\"\n + \"//databases//\" + dbname;\n\n File currentDB = new File(data, currentDBPath);\n File backupDB = new File(dir, dbname);\n\n FileChannel src = new FileInputStream(currentDB).getChannel();\n FileChannel dst = new FileOutputStream(backupDB).getChannel();\n dst.transferFrom(src, 0, src.size());\n src.close();\n dst.close();\n return true;\n }\n } catch (Exception e) {\n Log.e(\"DbHelper\", \"Error in exporting database : \" + e.getMessage());\n }\n return false;\n }",
"public void exportDbFileToDownloadFoler(final Activity curr_activity){\n buttonImportExportDB.setOnClickListener(\n new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n try {\n app_utils.copyAppDbToDownloadFolder(curr_activity, getApplicationContext(), app_db.getDatabaseName());\n Toast.makeText(MainActivity.this, \"DB File copied to Download folder\", Toast.LENGTH_LONG).show();\n return;\n } catch (IOException e) {\n Toast.makeText(MainActivity.this, \"Error exporting to Download folder\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n }\n );\n }",
"private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }",
"private void create1108(SQLiteDatabase db) {\n try (InputStream input = getTestContext().getAssets().open(CONTACTS2_DB_1108_ASSET_NAME);) {\n BufferedReader r = new BufferedReader(new InputStreamReader(input));\n String query;\n while ((query = r.readLine()) != null) {\n db.execSQL(query);\n }\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n }",
"public abstract boolean copyStatistics(DatabaseLoginConfiguration emptyDB, String localPath);",
"public void processInsertData(MongoDatabase database) throws IOException {\n\t\tFile folder = new File(GenericConstants.folderName);\n\t\tList<String> fileList= listFilesForFolder(folder);\n\t\tfor(String file: fileList) {\n\t\t\tString s = file.substring(0, file.lastIndexOf(\".\"));\n\t\t\tBufferedReader fileInput;\n\t\t\tString header=\"\";\n\t\t\ttry {\n\t\t\t\tfileInput = new BufferedReader(new FileReader(\"Data/\"+file));\n\t\t\t\theader = fileInput.readLine();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcheckAndInsertData(database,GenericConstants.folderName, file, s, header);\n\t\t}\n\t}",
"public static boolean dumpDatabase() {\n Statement stm = null;\n try {\n stm = getConnection().createStatement();\n stm.executeUpdate(\"backup to db/backup.db\");\n }\n catch(Exception e) {\n e.printStackTrace();\n return false;\n }\n finally {\n try {\n stm.close();\n }\n catch (Exception e) { \n e.printStackTrace();\n }\n }\n return true;\n }",
"private void loadDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Check to make sure the Bmod Database is there, if not, try \n\t\t\t\t// downloading from the website.\n\t\t\t\tif(!Files.exists(m_databaseFile))\n\t\t\t\t{\n\t\t\t\t\tFiles.createDirectories(m_databaseFile.getParent());\n\t\t\t\t\n\t\t\t\t\tbyte[] file = ExtensionPoints.readURLAsBytes(\"http://\" + Constants.API_HOST + HSQL_DATABASE_PATH);\n\t\t\t\t\tif(file.length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t\t\t\tFiles.write(m_databaseFile, file, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// make sure we have the proper scriptformat.\n\t\t\t\tsetScriptFormatCorrectly();\n\t\t\t}catch(NullPointerException|IOException ex)\n\t\t\t{\n\t\t\t\tm_logger.error(\"Could not fetch database from web.\", ex);\n\t\t\t}\n\t\t\t\n\t\n\t\t\t\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\n\t\t\n\t\t\t\n\t\t\tString db = ExtensionPoints.getBmodDirectory(\"database\").toUri().getPath();\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:file:\" + db, \"sa\", \"\");\n\t\t\t\n\t\t\t// Setup Connection\n\t\t\tCSVRecordLoader ldr = new CSVRecordLoader();\n\t\t\n\t\t\t// Load all of the building independent plugins\n\t\t\tfor(Record<?> cp : ldr.getRecordPluginManagers())\n\t\t\t{\n\t\t\t\tm_logger.debug(\"Creating table: \" + cp.getTableName());\n\t\t\t\t// Create a new table\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tgetPreparedStatement(cp.getSQLTableDefn()).execute();\n\t\t\t\t} catch(SQLException ex)\n\t\t\t\t{\n\t\t\t\t\t// Table exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_logger.debug(\"Doing index:\" + cp.getIndexDefn());\n\t\t\t\t\tif(cp.getIndexDefn() != null)\n\t\t\t\t\t\tgetPreparedStatement(cp.getIndexDefn()).execute();\n\t\t\t\t}catch(SQLException ex)\n\t\t\t\t{\t// index exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tif(ex instanceof DatabaseIntegrityException)\n\t\t\t\tDatabase.handleCriticalError((DatabaseIntegrityException)ex);\n\t\t\telse\n\t\t\t\tDatabase.handleCriticalError(new DatabaseIntegrityException(ex));\n\t\t}\n\t\t\n\t}",
"public static void createNewDatabaseFile(String startPath)\r\n throws ConnectionFailedException, DatabaseException {\r\n boolean databaseCreated;\r\n try {\r\n databaseCreated = database.createNewFile();\r\n if (!databaseCreated) {\r\n throw new IOException(\"Cannot create file\");\r\n }\r\n\r\n URL databaseResource = Objects.requireNonNull(Paths.get(\r\n startPath + \"resources/database/database.sql\").toUri().toURL());\r\n String decodedPath = URLDecoder.decode(databaseResource.getPath(), \"UTF-8\");\r\n\r\n try (BufferedReader in = new BufferedReader(new FileReader(decodedPath))) {\r\n StringBuilder sqlQuery = new StringBuilder();\r\n while (in.ready()) {\r\n sqlQuery.append(in.readLine());\r\n if (sqlQuery.toString().endsWith(\";\")) {\r\n createBasicSqlTable(sqlQuery.toString());\r\n sqlQuery = new StringBuilder();\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n throwException(e);\r\n }\r\n }",
"private void createDatabase(final String databaseName) {\n\n try {\n final Connection connection =\n DriverManager.getConnection(url + databaseName, databaseProperties);\n\n try {\n NaviLogger.info(\"[i] Generating database tables for %s.\", databaseName);\n connection.prepareStatement(AbstractSQLProvider.parseResourceAsSQLFile(\n this.getClass().getResourceAsStream(TEST_DATA_DIRECTORY + \"database_schema.sql\")))\n .execute();\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n final File testDataDir = new File(\n \"./third_party/zynamics/javatests/com/google/security/zynamics/binnavi/testdata/\"\n + databaseName + \"/\");\n\n final CopyManager manager = new CopyManager((BaseConnection) connection);\n\n for (final File currentFile : testDataDir.listFiles()) {\n try (FileReader reader = new FileReader(currentFile)) {\n final String tableName = currentFile.getName().split(\".sql\")[0];\n NaviLogger.info(\"[i] Importing: %s.%s from %s\", databaseName, tableName,\n currentFile.getAbsolutePath());\n manager.copyIn(\"COPY \" + tableName + \" FROM STDIN\", reader);\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n }\n\n try {\n NaviLogger.warning(\"[i] Generating constraints for %s.\", databaseName);\n connection.prepareStatement(AbstractSQLProvider.parseResourceAsSQLFile(\n this.getClass().getResourceAsStream(TEST_DATA_DIRECTORY + \"database_constraints.sql\")))\n .execute();\n } catch (final IOException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n final String findSequencesQuery = \"SELECT 'SELECT SETVAL(' ||quote_literal(S.relname)|| \"\n + \"', MAX(' ||quote_ident(C.attname)|| ') ) FROM ' ||quote_ident(T.relname)|| ';' \"\n + \" FROM pg_class AS S, pg_depend AS D, pg_class AS T, pg_attribute AS C \"\n + \" WHERE S.relkind = 'S' AND S.oid = D.objid AND D.refobjid = T.oid \"\n + \" AND D.refobjid = C.attrelid AND D.refobjsubid = C.attnum ORDER BY S.relname; \";\n\n try (PreparedStatement statement = connection.prepareStatement(findSequencesQuery);\n ResultSet resultSet = statement.executeQuery()) {\n while (resultSet.next()) {\n final PreparedStatement fixSequence = connection.prepareStatement(resultSet.getString(1));\n fixSequence.execute();\n }\n } catch (final SQLException exception) {\n CUtilityFunctions.logException(exception);\n }\n\n } catch (final SQLException exception) {\n CUtilityFunctions.logException(exception);\n }\n }",
"public void saveDatabase() {\r\n\t\ttry {\r\n\t\t\tFile databaseDirectory = new File (System.getProperty(\"user.home\")\r\n\t\t\t\t\t+ File.separator + \"Documents\" + File.separator + \"DatabaseUniverse\"\r\n\t\t\t\t\t+ File.separator + name);\r\n\t\t\tdatabaseDirectory.mkdirs();\r\n\t\t\tFile[] files = databaseDirectory.listFiles();\r\n\t\t\tSystem.gc();\r\n\t\t\tfor (File file : files) {\r\n\t\t\t\tFiles.delete(file.toPath());\r\n\t\t\t}\r\n\t\t\tfor (Table table : tables) {\r\n\t\t\t\ttable.saveTable(databaseDirectory.getPath());\r\n\t\t\t}\r\n\t\t} catch (SecurityException e) {\r\n\t\t\tSystem.out.println(\"Access Denied in Documents folder. Please check your security settings\"\r\n\t\t\t\t\t+ \"to enable file saving\");\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tSystem.err.print(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\t}",
"public void copyAll(String src_path, String dest_path) {\n String sub_directory = null;\n for (String device : this.execAdbDevices()) {\n sub_directory = this.deviceid_hostname_map.get(device);\n this.copy(device, src_path, dest_path + File.separator + sub_directory);\n }\n }",
"public void createDatabase() throws IOException {\n boolean dbExists = checkDatabase();\n\n if (dbExists) {\n // Do nothing - database already exists\n } else {\n // By calling this method an empty database will be created into the\n // default system path of our application so we are going to be able\n // to overwrite the database with our database.\n this.getReadableDatabase();\n\n try {\n copyDatabase();\n } catch (IOException e) {\n throw new Error(\"Error copying database\");\n }\n }\n }",
"public void createDatabase() throws IOException{\r\n\r\n boolean dbDoesExist = checkDatabase();\r\n if(!dbDoesExist)\r\n {\r\n // Create or open db if db is not connected\r\n this.getReadableDatabase();\r\n try{\r\n createNewDB();\r\n }catch (IOException e){\r\n throw new Error(\"DB Copy Failed\");\r\n }\r\n }\r\n }",
"private void setupDatabase()\n {\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n }\n catch (ClassNotFoundException e)\n {\n simpleEconomy.getLogger().severe(\"Could not load database driver.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n\n try\n {\n connection = DriverManager\n .getConnection(String.format(\"jdbc:mysql://%s/%s?user=%s&password=%s\",\n simpleEconomy.getConfig().getString(\"db.host\"),\n simpleEconomy.getConfig().getString(\"db.database\"),\n simpleEconomy.getConfig().getString(\"db.username\"),\n simpleEconomy.getConfig().getString(\"db.password\")\n ));\n\n // Loads the ddl from the jar and commits it to the database.\n InputStream input = getClass().getResourceAsStream(\"/ddl.sql\");\n try\n {\n String s = IOUtils.toString(input);\n connection.createStatement().execute(s);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n input.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n catch (SQLException e)\n {\n simpleEconomy.getLogger().severe(\"Could not connect to database.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n }",
"DatabaseTable_DataSource(SQLiteDatabase db) {\n createIfNotExists(db);\n }",
"private void migrate (String name)\t{\n\t\ttry{\n\t\t\tFile f1 = new File( sourceDir + name);\n\t\t\t\n\t\t\tif (!f1.exists())\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tFile f2 = new File(targetDir +name);\n\t\t\t\n\t\t InputStream in = new FileInputStream(f1);\n\t\t \n\t\t OutputStream out = new FileOutputStream(f2);\n\n\t\t byte[] buf = new byte[1024];\n\t\t int len;\n\t\t while ((len = in.read(buf)) > 0){\n\t\t out.write(buf, 0, len);\n\t\t }\n\t\t in.close();\n\t\t out.close();\n\t\t System.out.println(\"File copied.\");\n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t System.out.println(ex.getMessage() + \" in the specified directory.\");\n\t\t System.exit(0);\n\t\t }\n\t\t catch(IOException e){\n\t\t System.out.println(e.getMessage()); \n\t\t }\n\t}",
"private void m14053d() {\n try {\n File file = new File(f18051l);\n File file2 = new File(f18052m);\n if (!file.exists()) {\n file.mkdirs();\n }\n if (!file2.exists()) {\n file2.createNewFile();\n }\n if (file2.exists()) {\n SQLiteDatabase openOrCreateDatabase = SQLiteDatabase.openOrCreateDatabase(file2, null);\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS bdcltb09(id CHAR(40) PRIMARY KEY,time DOUBLE,tag DOUBLE, type DOUBLE , ac INT);\");\n openOrCreateDatabase.execSQL(\"CREATE TABLE IF NOT EXISTS wof(id CHAR(15) PRIMARY KEY,mktime DOUBLE,time DOUBLE, ac INT, bc INT, cc INT);\");\n openOrCreateDatabase.setVersion(1);\n openOrCreateDatabase.close();\n }\n this.f18053a = true;\n } catch (Exception e) {\n }\n }",
"public void prepareDatabase(String testName) throws Exception {\n prepareDatabaseFromPath('/' + testName + \"/\" + prepareFileName);\n }",
"public void backupAll() throws Exception {\n // create DataSet from database.\n IDataSet ds = conn.createDataSet();\n\n // write the content of database to temp file\n FlatXmlDataSet.write(ds, new FileWriter(backupFile), \"UTF-8\");\n }",
"private void copyData(CopyTable table) throws Exception\n\t{\n\t\tLOG.info(\"Starting with copy of data from '\" + table.getDescription() + \"' to disk...\");\n\t\t\n\t\t// select data from source database\n\t\tStatement selectStmt =\n\t\t\tCopyToolConnectionManager.getInstance().getSourceConnection(table.getSource()).createStatement();\n\n\t\t// get number of rows in table\n\t\tResultSet resultSet =\n\t\t\tselectStmt.executeQuery(table.generateCountQuery());\n\t\tresultSet.next();\n\t\t\n\t\tlong rowCount = resultSet.getLong(1);\n\t\tLOG.info(\"Found \" + rowCount + \" rows in '\" + table.getDescription() + \"'\");\n\t\t\n\t\tresultSet.close();\n\t\t\n\t\t// get all data from table\n\t\tresultSet = selectStmt.executeQuery(table.generateSelectQuery());\n\n\t\t// get meta data (column info and such)\n\t\tResultSetMetaData metaData = resultSet.getMetaData();\n\t\t\n\t\tString tmpDir = config.getTempDirectory();\n\t\t\n\t\tString tmpFilePrefix = table.getTempFilePrefix();\n\t\t\n\t\t// serialize meta data to disk\n\t\tFile metaDataFile = new File(tmpDir, tmpFilePrefix + \"_metadata.ser\");\n\t\tFileOutputStream fileOut = new FileOutputStream(metaDataFile);\n\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t\tout.writeObject(new SerializableResultSetMetaData(metaData));\n\t\tout.close();\n\t\tfileOut.close();\n\t\tLOG.info(\"Serialized metadata to temp file: \" + metaDataFile.getAbsolutePath());\n\t\n\t\t\n\t\tif (rowCount == 0)\n\t\t{\n\t\t\twriteInsertCountFile(tmpDir, tmpFilePrefix, 0L);\n\t\t\tLOG.info(\"Finished copying data of '{}' to disk (no data to copy)\", table.getDescription());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// write data to disk\n\t\tFile temp = new File(tmpDir, tmpFilePrefix + \"_data.csv\");\t\t\n\t\tLOG.info(\"Writing data to temp file: \" + temp.getAbsolutePath());\n\t\t\n\t\tBufferedWriter bw = new BufferedWriter\n\t\t\t (new OutputStreamWriter(new FileOutputStream(temp), \"UTF-8\"));\n\n\t\tlong startTime = System.currentTimeMillis();\n\t\tlong insertCount = 0;\n\t\tint columnCount = metaData.getColumnCount();\n\t\t\n\t\twhile (resultSet.next())\n\t\t{\n\t\t\tfor (int i = 1; i <= columnCount; i++)\n\t\t\t{\n\t\t\t\tObject value = resultSet.getObject(i);\n\n\t\t\t\tif (value == null)\n\t\t\t\t{\n\t\t\t\t\tbw.write(NULL_VALUE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString valueStr;\n\t\t\t\t\tif (value instanceof BigDecimal)\n\t\t\t\t\t{\n\t\t\t\t\t\tvalueStr = ((BigDecimal)value).toPlainString();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tvalueStr = value.toString();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (table.isAutoTrim())\n\t\t\t\t\t\tvalueStr = valueStr.trim();\n\n\t\t\t\t\t// escape \\ with \\\\\n\t\t\t\t\tvalueStr = valueStr.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\n\n\t\t\t\t\t// escape \" with \\\"\n\t\t\t\t\tvalueStr = valueStr.replaceAll(\"\\\"\", \"\\\\\\\\\\\"\");\n\t\t\t\t\t\n\t\t\t\t\tbw.write(\"\\\"\" + valueStr + \"\\\"\");\n\t\t\t\t}\t\t\t\n\n\t\t\t\t// column separator (not for last column)\n\t\t\t\tif (i < columnCount)\n\t\t\t\t{\n\t\t\t\t\tbw.write(\",\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// record separator\n\t\t\tbw.newLine();\n\n\t\t\tinsertCount++;\n\n\t\t\tif (insertCount % 100000 == 0)\n\t\t\t{\n\t\t\t\tbw.flush();\n\t\t\t\tprintInsertProgress(startTime, insertCount, rowCount, \"written to disk\");\n\t\t\t}\n\t\t}\n\t\tbw.flush();\n\t\tbw.close();\n\t\tprintInsertProgress(startTime, insertCount, rowCount, \"written to disk\");\n\t\t\n\t\twriteInsertCountFile(tmpDir, tmpFilePrefix, insertCount);\n\t\t\n\t\tLOG.info(\"Finished copying data of '\" + table.getDescription() + \"' to disk!\");\n\t}",
"public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"String getDatabaseDirectoryPath();",
"public synchronized void createIfNotExists(SQLiteDatabase db) {\n db.execSQL(SQL_CREATE_DATASOURCE);\n }",
"private static void deploy(SQLiteDatabase sqlLiteDb, InputStream dbStream) throws IOException {\n ZipInputStream zis = new ZipInputStream(new BufferedInputStream(dbStream));\n ZipEntry entry = null;\n while ((entry = zis.getNextEntry()) != null) {\n Log.i(TAG, \"deploying zip entry: \" + entry);\n InputStreamReader dbReader = new InputStreamReader(zis);\n deploy(sqlLiteDb, dbReader);\n }\n }",
"public DatabaseMerger(SQLiteDatabase pDataBase) {\r\n\t\tsetDatabse(pDataBase);\r\n\t}",
"public File getOutputDb();",
"protected abstract void createDatabaseData(EntityManager entityManager);",
"abstract public String getDataResourcesDir();",
"public boolean exportDB(Context context, String absolutePath) {\n boolean result = false;\n FileChannel src = null, dst = null;\n\n File applicationDB = context.getDatabasePath(DATABASE_NAME);\n\n if(applicationDB.exists()) {\n if (isExternalStorageWritable()) {\n try {\n new File(absolutePath.substring(0,absolutePath.lastIndexOf(\"/\"))).mkdirs(); // Create all dirs from filepath if they don't already exists\n File exportedDB = new File(absolutePath);\n src = new FileInputStream(applicationDB).getChannel();\n dst = new FileOutputStream(exportedDB).getChannel();\n dst.transferFrom(src, 0, src.size());\n result = true;\n\n } catch (IOException e) {\n e.printStackTrace();\n\n } finally {\n if (src != null) {\n try {\n src.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (dst != null) {\n try {\n dst.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n } else {\n Toast.makeText(context, \"Erreur, impossible d'écrire dans la mémoire.\", Toast.LENGTH_LONG).show();\n }\n }\n else {\n Toast.makeText(context, \"Erreur, base de données inexistante. Avez-vous déjà ajouté des données ?\", Toast.LENGTH_LONG).show();\n }\n return result;\n }",
"DataBase createDataBase();",
"private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}",
"private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}",
"public void database() throws IOException\n {\n \tFile file =new File(\"data.txt\");\n\t if(!file.exists())\n\t {\n\t \tSystem.out.println(\"File 'data.txt' does not exit\");\n\t System.out.println(file.createNewFile());\n\t file.createNewFile();\n\t databaseFileWrite(file);//call the databaseFileRead() method, to initialize data from ArrayList and write data into data.txt\n\t }\n\t else\n\t {\n\t \tdatabaseFileRead();//call the databaseFileRead() method, to load data directly from data.txt\n\t }\n }",
"public void insertData(SQLiteDatabase db) {\n String sql;\n try {\n\n InputStream in = this.context.getResources().openRawResource(R.raw.data);\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document doc = builder.parse(in, null);\n NodeList statements = doc.getElementsByTagName(\"statement\");\n for (int i = 0; i < statements.getLength(); i++) {\n sql = \"INSERT INTO \" + this.tableName + \" \" + statements.item(i).getChildNodes().item(0).getNodeValue();\n db.execSQL(sql);\n sql = \"\";\n }\n } catch (Throwable t) {\n Toast.makeText(context, t.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"@Before\n public void seedDatabase() {\n final String seedDataScript = loadAsString(\"pacmabooks.sql\");\n\n try (Connection connection = ds.getConnection()) {\n for (String statement : splitStatements(new StringReader(\n seedDataScript), \";\")) {\n connection.prepareStatement(statement).execute();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n System.out.println(\"--------------------------------------------------- Seeding DID NOT WOKK\");\n e.printStackTrace();\n throw new RuntimeException(\"Failed seeding database\", e);\n }\n System.out.println(\"Seeding works\");\n\n }",
"@Override\n public void finish() {\n storeProperties();\n // retrieve the full list of files according to the selected mode\n List<org.jajuk.base.File> files = getFiles();\n if (files == null) {\n return;\n }\n // define the target directory\n final Date curDate = new Date();\n // Do not use ':' character in destination directory, it's\n // forbidden under Windows\n final SimpleDateFormat stamp = new SimpleDateFormat(\"yyyyMMdd-HHmm\", Locale.getDefault());\n final String dirName = \"Party-\" + stamp.format(curDate);\n final java.io.File destDir = new java.io.File(((String) data.get(Variable.DEST_PATH)), dirName);\n if (!destDir.mkdir()) {\n Log.warn(\"Could not create destination directory \" + destDir);\n }\n Log.debug(\"Going to copy \" + files.size() + \" files to directory {{\"\n + destDir.getAbsolutePath() + \"}}\");\n // perform the actual copying\n UtilPrepareParty.copyFiles(files, destDir, isTrue(Variable.NORMALIZE_FILENAME),\n isTrue(Variable.ONE_MEDIA_ENABLED) && isTrue(Variable.CONVERT_MEDIA),\n (String) data.get(Variable.ONE_MEDIA), (String) data.get(Variable.CONVERT_COMMAND));\n }",
"protected void executeSQLScript(SQLiteDatabase database, String assetName) {\n /*\n * variables locales para manejar la lectura del archivo de scripts\n */\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n byte buf[] = new byte[1024];\n int len;\n AssetManager assetManager = context.getAssets();\n InputStream inputStream = null;\n\n try {\n /*\n * obtenemos el asset y lo convertimos a string\n */\n inputStream = assetManager.open(assetName);\n while ((len = inputStream.read(buf)) != -1) {\n outputStream.write(buf, 0, len);\n }\n outputStream.close();\n inputStream.close();\n\n /*\n * desencriptamos el archivo\n */\n String sqlClear = Cypher.decrypt(SD, outputStream.toString());\n // String sqlClear = outputStream.toString();\n\n /*\n * separamos la cadena por el separador de sentencias\n */\n String[] createScript = sqlClear.split(\";\");\n\n /*\n * por cada sentencia del archivo ejecutamos la misma en la base de\n * datos\n */\n for (int i = 0; i < createScript.length; i++) {\n String sqlStatement = createScript[i].trim();\n\n if (sqlStatement.startsWith(\"--\")) {\n continue;\n }\n\n if (sqlStatement.length() > 0) {\n Log.i(CsTigoApplication.getContext().getString(\n CSTigoLogTags.DATABASE.getValue()),\n CsTigoApplication.getContext().getString(\n R.string.database_exec_sql)\n + sqlStatement);\n\n try {\n database.execSQL(sqlStatement + \";\");\n } catch (SQLException e) {\n Notifier.error(\n getClass(),\n CsTigoApplication.getContext().getString(\n R.string.database_statement_exec)\n + e.getMessage());\n } catch (Exception e) {\n Notifier.error(\n getClass(),\n CsTigoApplication.getContext().getString(\n R.string.database_decypt_error)\n + e.getMessage());\n }\n }\n }\n\n } catch (IOException e) {\n Notifier.error(\n getClass(),\n CsTigoApplication.getContext().getString(\n R.string.database_read_asset)\n + e.getMessage());\n } catch (SQLException e) {\n Notifier.error(\n getClass(),\n CsTigoApplication.getContext().getString(\n R.string.database_statement_exec)\n + e.getMessage());\n } catch (Exception e) {\n Notifier.error(\n getClass(),\n CsTigoApplication.getContext().getString(\n R.string.database_decypt_error)\n + e.getMessage());\n }\n }",
"public void copyAssets(String dist) {\n copyFile(dist, \"pointer.png\");\n copyFile(dist, \"WebElementRecorder.js\");\n }"
] | [
"0.7717768",
"0.76297945",
"0.76063365",
"0.7549046",
"0.7527499",
"0.7527499",
"0.75263476",
"0.7486872",
"0.7474391",
"0.7423929",
"0.742366",
"0.7415285",
"0.7394694",
"0.7393586",
"0.73741156",
"0.7373619",
"0.7373619",
"0.7366836",
"0.7364048",
"0.7206925",
"0.72047687",
"0.7193871",
"0.7111179",
"0.70147586",
"0.69590974",
"0.6737895",
"0.6524563",
"0.64361525",
"0.6107432",
"0.60684234",
"0.6046975",
"0.5975131",
"0.59638405",
"0.59616536",
"0.59268343",
"0.59072053",
"0.58971983",
"0.5850578",
"0.5823151",
"0.5821947",
"0.5809298",
"0.5788711",
"0.5788711",
"0.5771872",
"0.57629675",
"0.5718088",
"0.5702172",
"0.55460525",
"0.5517898",
"0.5458945",
"0.5452901",
"0.5446838",
"0.5406932",
"0.5390602",
"0.53836036",
"0.5361479",
"0.5340783",
"0.53403443",
"0.52910167",
"0.5278661",
"0.5273518",
"0.52674973",
"0.5234276",
"0.52203435",
"0.5217164",
"0.51858306",
"0.51786035",
"0.51607406",
"0.51606137",
"0.51404715",
"0.51345485",
"0.51327366",
"0.51326805",
"0.5129726",
"0.51296806",
"0.51277006",
"0.5120463",
"0.5111568",
"0.5100682",
"0.5099297",
"0.5093696",
"0.507423",
"0.50709075",
"0.50578535",
"0.50555104",
"0.5051961",
"0.50487655",
"0.5045303",
"0.50379705",
"0.50137335",
"0.5009756",
"0.50085527",
"0.50013584",
"0.4989311",
"0.49870202",
"0.49804822",
"0.4973325",
"0.497092",
"0.49646476",
"0.49642596"
] | 0.8152262 | 0 |
Inser Value from text file to database | public void insertValue() {
// boolean isDrop = this.deleteDatabase(DatabaseHelper.DATABASE_NAME);
Utility t = new Utility();
/* Insert Database */
DBHelper db = new DBHelper(this);
// /db.executeStatement(dropDB);
/* State Entry */
int count = db.getTableRowCount(TableContract.Name.TABLE_NAME, null);
if (count == 0) {
try {
InputStream im = getAssets().open("BabyName.Sqlite");
BufferedReader br = new BufferedReader(new InputStreamReader(im, "UTF-8"));
String line = br.readLine();
List<M_Name> lst = new ArrayList<M_Name>();
do {
String temp[] = line.split(",");
String gender_cast = "";
if (temp.length == 4)
gender_cast = temp[3];
M_Name s1 = new M_Name(temp[1], temp[0], Integer.parseInt(temp[2]), gender_cast);
lst.add(s1);
count++;
if (count % 5000 == 0) {
Log.i("Count", count + " - " + t.getTime(t));
}
} while ((line = br.readLine()) != null);
db.insertNameInsertHelperLock(lst);
} catch (IOException e) {
AppLogger.writeLog("state " + TAG + " -- " + e.toString());
if (AppConstants.DEBUG)
Log.e("", e.toString());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insertData() throws SQLException, URISyntaxException, FileNotFoundException {\n\t \t\t//On vide la base en premier\n\t \t\tdropDB();\n\t \t\t\n\t \t\t//Fichier contenant les jeux de test\n\t \t\tBufferedReader br = new BufferedReader(new FileReader(\"./data.txt\"));\n\t \t \n\t \t PreparedStatement pstmt = null;\n\t \t Connection conn = null;\n\t \t int id;\n\t \t String lastname, firstname, cardNumber, expirationMonth, expirationYear, cvv, query;\n\t \t try {\n\t \t conn = this.connectToBDD();\n\t \t \n\t \t String line = null;\n\t \t \n\t \t //On lit le fichier data.txt pour inserer en base\n\t \t while((line=br.readLine()) != null) {\n\t \t \t String tmp[]=line.split(\",\");\n\t \t \t id=Integer.parseInt(tmp[0]);\n\t\t\t \t lastname=tmp[1];\n\t\t\t \t firstname=tmp[2];\n\t\t\t \t cardNumber=tmp[3];\n\t\t\t \t expirationMonth=tmp[4];\n\t\t\t \t expirationYear=tmp[5];\n\t\t\t \t cvv=tmp[6];\n\t\t\t \t \n\t\t\t \t //Insertion des clients\n\t\t\t \t query = \"INSERT INTO consumer VALUES(\"+ id + \",'\" +firstname+\"','\"+lastname+\"')\";\n\t\t\t \t \n\t\t\t \t pstmt = conn.prepareStatement(query);\n\t\t\t \t pstmt.executeUpdate();\n\t\t\t \t \n\t\t\t \t \n\t\t\t \t //Insertion des comptes\n\t\t\t \t query = \"INSERT INTO account (card_number, expiration_month, expiration_year, cvv, remain_balance, consumer_id) \"\n\t\t \t\t\t\t+ \"VALUES ('\"+cardNumber+\"','\"+expirationMonth+\"','\"+expirationYear+\"','\"+cvv+\"',300,\"+id+\")\";\n\t\t\t \t\n\t\t\t \t pstmt = conn.prepareStatement(query);\n\t\t\t \t pstmt.executeUpdate();\n\t \t }\n\t \t \n\t \t \n\t \t } catch (Exception e) {\n\t \t System.err.println(\"Error: \" + e.getMessage());\n\t \t e.printStackTrace();\n\t \t }\n\t \t }",
"private void SetTextInDb(SubtitleFile subtitleFile){\n String req = \"INSERT INTO `sous_titres`(`id_film`, `numero_sous_titre`, `texte`, `texte_traduit`, `start_time`, `end_time`) VALUES (?,?,?,?,?,?)\";\n PreparedStatement preparedStatement = null;\n\n try {\n //boucle de parcours de tous les sous-titres du fichier de sous-titres\n for (Subtitle subtitle : subtitleFile.getSubtitles()) {\n\n int idFilm = subtitleFile.getIdFilm();\n int number = subtitle.getNumber();\n String text = subtitle.getText();\n String translatedText = subtitle.getTranslatedText();\n String startTime = subtitle.getStartTime();\n String endTime = subtitle.getEndTime();\n preparedStatement = connection.prepareStatement(req);\n\n preparedStatement.setInt(1, idFilm);\n preparedStatement.setInt(2, number);\n preparedStatement.setString(3, text);\n preparedStatement.setString(4, translatedText);\n preparedStatement.setString(5, startTime);\n preparedStatement.setString(6, endTime);\n\n preparedStatement.executeUpdate();\n }\n\n\n } catch (SQLException e) {\n e.printStackTrace();\n System.out.println(\"SaveSubFilesInDB : fail\");\n }\n }",
"public void insertdata(String file) {\n\r\n\r\n final String csvFile = file;\r\n\r\n try (BufferedReader br = new BufferedReader(new FileReader(csvFile))) {\r\n\r\n\r\n while ((line = br.readLine()) != null) {\r\n\r\n\r\n // use comma as separator\r\n String[] country = line.split(\",\");\r\n\r\n if (country.length == 12) {\r\n model_lacakMobil = new Model_LacakMobil();\r\n realmHelper = new RealmHelper(realm);\r\n\r\n model_lacakMobil.setNama_mobil(country[1]);\r\n model_lacakMobil.setNo_plat(country[2]);\r\n model_lacakMobil.setNamaunit(country[3]);\r\n model_lacakMobil.setFinance(country[4]);\r\n model_lacakMobil.setOvd(country[5]);\r\n model_lacakMobil.setSaldo(country[6]);\r\n model_lacakMobil.setCabang(country[7]);\r\n model_lacakMobil.setNoka(country[8]);\r\n model_lacakMobil.setNosin(country[9]);\r\n model_lacakMobil.setTahun(country[10]);\r\n model_lacakMobil.setWarna(country[11]);\r\n realmHelper.save(model_lacakMobil);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n// fixing_data();\r\n\r\n }\r\n }",
"private void insertIntoFile(String data){\n\t\tOutputStream os = null;\n try {\n os = new FileOutputStream(file);\n os.write(data.getBytes(), 0, data.length());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\t}",
"int insert(DiaryFile record);",
"@Insert({ \"insert into csv_file (id, pid, \", \"filename, start_time, \", \"end_time, length, \", \"density, machine, \",\n\t\t\t\"ar, path, size, \", \"uuid, header_time, \", \"last_update, conflict_resolved, \", \"status, comment, \",\n\t\t\t\"width, start_version, \", \"end_version)\", \"values (#{id,jdbcType=INTEGER}, #{pid,jdbcType=VARCHAR}, \",\n\t\t\t\"#{filename,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{endTime,jdbcType=TIMESTAMP}, #{length,jdbcType=INTEGER}, \",\n\t\t\t\"#{density,jdbcType=DOUBLE}, #{machine,jdbcType=VARCHAR}, \",\n\t\t\t\"#{ar,jdbcType=BIT}, #{path,jdbcType=VARCHAR}, #{size,jdbcType=BIGINT}, \",\n\t\t\t\"#{uuid,jdbcType=CHAR}, #{headerTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{lastUpdate,jdbcType=TIMESTAMP}, #{conflictResolved,jdbcType=BIT}, \",\n\t\t\t\"#{status,jdbcType=INTEGER}, #{comment,jdbcType=VARCHAR}, \",\n\t\t\t\"#{width,jdbcType=INTEGER}, #{startVersion,jdbcType=INTEGER}, \", \"#{endVersion,jdbcType=INTEGER})\" })\n\tint insert(CsvFile record);",
"public void insert( RssGeneratedFile rssFile )\n {\n int nNewPrimaryKey = newPrimaryKey( );\n rssFile.setId( nNewPrimaryKey );\n\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT );\n daoUtil.setInt( 1, rssFile.getId( ) );\n daoUtil.setInt( 2, rssFile.getPortletId( ) );\n daoUtil.setString( 3, rssFile.getName( ) );\n daoUtil.setInt( 4, rssFile.getState( ) );\n daoUtil.setTimestamp( 5, new java.sql.Timestamp( new java.util.Date( ).getTime( ) ) );\n daoUtil.setString( 6, rssFile.getDescription( ) );\n daoUtil.setString( 7, rssFile.getWorkgroup( ) );\n daoUtil.setString( 8, rssFile.getTypeResourceRss( ) );\n daoUtil.setInt( 9, rssFile.getMaxItems( ) );\n daoUtil.setString( 10, rssFile.getFeedType( ) );\n daoUtil.setString( 11, rssFile.getEncoding( ) );\n daoUtil.executeUpdate( );\n daoUtil.free( );\n }",
"public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void database() throws IOException\n {\n \tFile file =new File(\"data.txt\");\n\t if(!file.exists())\n\t {\n\t \tSystem.out.println(\"File 'data.txt' does not exit\");\n\t System.out.println(file.createNewFile());\n\t file.createNewFile();\n\t databaseFileWrite(file);//call the databaseFileRead() method, to initialize data from ArrayList and write data into data.txt\n\t }\n\t else\n\t {\n\t \tdatabaseFileRead();//call the databaseFileRead() method, to load data directly from data.txt\n\t }\n }",
"private void insertFromFile(ArrayList<String> obj){\r\n\t\tsetIdString(obj.get(1));\t\r\n\t\tsetLogin(obj.get(2));\r\n\t\tsetSenha(obj.get(3));\r\n\t\tsetImei(obj.get(4));\r\n\t\tsetMac(obj.get(5));\r\n\t\tString date = Util.convertDateToDateStr(Util.getCurrentDateTime());\t\r\n\t\tsetUltimaAlteracao(date);\t\t\t\r\n\t}",
"@Override\n\tpublic void insert(Vehicle v, File file) {\n\t\ttry {\n\t\t\tint modelID = VehicleModelDAOImpl.getInstance()\n\t\t\t\t\t.getAll()\n\t\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(m-> m.getDescription().equals(v.getModel()))\n\t\t\t\t\t.findFirst()\n\t\t\t\t\t.get()\n\t\t\t\t\t.getModelID();\n\n\t\t\tint categoryID = VehicleCategoryDAOImpl.getInstance()\n\t\t\t\t\t.getAll()\n\t\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(c->c.getDescription().equals(v.getType()))\n\t\t\t\t\t.findFirst()\n\t\t\t\t\t.get()\n\t\t\t\t\t.getCategoryID();\n\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\t\n\t\t\tPreparedStatement st = Database.getInstance().getDBConn().prepareStatement(\"INSERT INTO vehicles(vehicle_ID,plate_number,mv_number,engine_number,chassis_number,model_ID,category_ID,encumbered_to,amount,maturity_date,status,image) VALUES(?,?,?,?,?,?,?,?,?,?,?,?)\");\n\t\t\t\n\t\t\tst.setInt(1, v.getVehicleID());\n\t\t\tst.setString(2, v.getPlateNumber());\n\t\t\tst.setString(3, v.getMvNumber());\n\t\t\tst.setString(4, v.getEngineNumber());\n\t\t\tst.setString(5, v.getChassisNumber());\n\t\t\tst.setInt(6, modelID);\n\t\t\tst.setInt(7, categoryID);\n\t\t\tst.setString(8, v.getEncumberedTo());\n\t\t\tst.setDouble(9, v.getAmount());\n\t\t\tst.setString(10, v.getMaturityDate().toString());\n\t\t\tst.setString(11, v.getStatus());\n\t\t\tst.setBinaryStream(12, (InputStream) fis, (int)file.length());\n\t\t\tst.executeUpdate();\n\t\t\t\n\t\t\tst.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t}",
"int insert(TParklotstatusFile record);",
"int insert(NewsFile record);",
"int insert(EhrPersonFile record);",
"public void insertFromFile() throws IOException {\n File file = new File(Main.DATA_FILE_PATH);\n Scanner sc = new Scanner(file);\n\n dictionary = new Dictionary();\n TreeMap<String, ArrayList<String>> wordList = new TreeMap<>();\n String target = sc.nextLine().substring(1).trim();\n ArrayList<String> explain = new ArrayList<>();\n while (sc.hasNextLine()) {\n String str = sc.nextLine();\n if (str.indexOf(\"@\") == 0) {\n wordList.put(target, explain);\n target = str.substring(1).trim();\n explain = new ArrayList<>();\n } else if (str.indexOf(\"=\") == 0) {\n str = str.replace(\"+\", \" : \");\n String word = \" = \" + str.substring(1);\n explain.add(word);\n } else if (str.indexOf(\"#\") == 0 || str.indexOf(\"*\") == 0) {\n explain.add(str);\n } else {\n explain.add(\" \" + str);\n }\n }\n dictionary.setWordList(wordList);\n sc.close();\n }",
"public synchronized void writeFromFileIntoDB()throws IOWrapperException, IOIteratorException{\r\n \r\n fromFile_Name=Controller.CLASSES_TMP_FILENAME;\r\n iow_ReadFromFile = new IOWrapper();\r\n \r\n //System.out.println(\"Readin' from \"+fromFile_Name);\r\n \r\n iow_ReadFromFile.setupInput(fromFile_Name,0);\r\n \r\n iter_ReadFromFile = iow_ReadFromFile.getLineIterator();\r\n iow_ReadFromFile.setupOutput(this.dbname,this.username,this.password,this.hostname,this.port);\r\n \r\n iow_ReadFromFile.sendOutputQuery(\"DROP TABLE IF EXISTS \"+outtable);\r\n \r\n iow_ReadFromFile.sendOutputQuery(\r\n \"CREATE TABLE IF NOT EXISTS \"\r\n +outtable+\" (\"\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[0]+\" int(10) NOT NULL AUTO_INCREMENT, \"//wort_nr\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[1]+\" varchar(225), \"//wort_alph\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[2]+\" int(10), \"//krankheit \r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[3]+\" int(10), \"//farbe1 \r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[4]+\" real(8,2), \"//farbe1prozent\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[5]+\" int(10), \"//farbe2\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[6]+\" real(8,2), \"//farbe2prozent\r\n +\"PRIMARY KEY (\"+Controller.COLUMN_NAMES_FOR_DB_OUT[0]+\")) \"\r\n +\"ENGINE=MyISAM\"\r\n );\r\n while(iter_ReadFromFile.hasNext()){\r\n singleProgress+=1;\r\n String[] data = (String[])iter_ReadFromFile.next();\r\n \r\n //System.out.println(\"--> processing line \"+data);\r\n //escape quotes ' etc for SQL query\r\n if(data[1].matches(\".*'.*\")||data[1].matches(\".*\\\\.*\")){\r\n int sl = data[1].length();\r\n String escapedString = \"\";\r\n \r\n for (int i = 0; i < sl; i++) {\r\n char ch = data[1].charAt(i);\r\n switch (ch) {\r\n case '\\'':\r\n escapedString +='\\\\';\r\n escapedString +='\\'';\r\n break;\r\n case '\\\\':\r\n escapedString +='\\\\';\r\n escapedString +='\\\\';\r\n break;\r\n default :\r\n escapedString +=ch;\r\n break;\r\n }\r\n }\r\n data[1]=escapedString;\r\n }\r\n \r\n String insertStatement=\"INSERT INTO \"\r\n +outtable+\" (\"\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[0]+\", \"//node id\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[1]+\", \"//label\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[2]+\", \"//class id \r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[3]+\", \"//class id 1 \r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[4]+\", \"//percent\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[5]+\", \"//class id 2\r\n +Controller.COLUMN_NAMES_FOR_DB_OUT[6]+\") \"//percent \r\n +\"VALUES ('\"\r\n +data[0]+\"', '\"\r\n +data[1]+\"', '\"\r\n +data[2]+\"', '\"\r\n +data[3]+\"', '\"\r\n +data[4]+\"', '\"\r\n +data[5]+\"', '\"\r\n +data[6]+\"')\";\r\n \r\n //System.out.println(\"Sending insert statement:\"+insertStatement);\r\n iow_ReadFromFile.sendOutputQuery(insertStatement);\r\n }\r\n \r\n \r\n //iow_ReadFromFile.closeOutput();\r\n \r\n this.stillWorks=false;\r\n writeIntoDB=false;\r\n System.out.println(\"*\\tData written into database.\");\r\n\t}",
"public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void insertData(String CSVPath, String tablename) throws IOException{\n BufferedReader reader = new BufferedReader(new FileReader(new File(CSVPath)));\n String line = reader.readLine();\n String[] attributes = line.split(\",\");\n\n String sql = \"INSERT INTO \" + tablename + \" (\" + attributes[0];\n for (int i = 1; i < attributes.length; i++){\n sql += \", \";\n sql += attributes[i];\n }\n\n sql += \" ) VALUES \";\n\n while ((line = reader.readLine()) != null){\n line = reader.readLine();\n String[] cols = line.split(\",\");\n session.execute(sql + this.produceSQL(cols));\n }\n return;\n }",
"public static void populateTable(Connection conn,\n String fileName)\n throws SQLException {\n ArrayList<Customer> people = new ArrayList<Customer>();\n try {\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n String line;\n while ((line = br.readLine()) != null) {\n String[] split = line.split(\",\");\n people.add(new Customer(split));\n }\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n String sql = createInsertSQL(people);\n\n /**\n * Create and execute an SQL statement\n *\n * execute only returns if it was successful\n */\n Statement stmt = conn.createStatement();\n stmt.execute(sql);\n }",
"int insert(AvwFileprocess record);",
"public void run() throws DatabaseException, FileNotFoundException {\n new File(FileName).delete();\n\n // Create the database object.\n // There is no environment for this simple example.\n DatabaseConfig config = new DatabaseConfig();\n config.setErrorStream(System.err);\n config.setErrorPrefix(\"BulkAccessExample\");\n config.setType(DatabaseType.BTREE);\n config.setAllowCreate(true);\n config.setMode(0644);\n Database table = new Database(FileName, null, config);\n\n //\n // Insert records into the database, where the key is the user\n // input and the data is the user input in reverse order.\n //\n InputStreamReader reader = new InputStreamReader(System.in);\n\n for (;;) {\n String line = askForLine(reader, System.out, \"input> \");\n if (line == null || (line.compareToIgnoreCase(\"end\") == 0))\n break;\n\n String reversed = (new StringBuffer(line)).reverse().toString();\n\n // See definition of StringEntry below\n //\n StringEntry key = new StringEntry(line);\n StringEntry data = new StringEntry(reversed);\n\n try {\n if (table.putNoOverwrite(null, key, data) == OperationStatus.KEYEXIST)\n System.out.println(\"Key \" + line + \" already exists.\");\n } catch (DatabaseException dbe) {\n System.out.println(dbe.toString());\n }\n System.out.println(\"\");\n }\n\n // Acquire a cursor for the table.\n Cursor cursor = table.openCursor(null, null);\n DatabaseEntry foo = new DatabaseEntry();\n\n MultipleKeyDataEntry bulk_data = new MultipleKeyDataEntry();\n bulk_data.setData(new byte[1024 * 1024]);\n bulk_data.setUserBuffer(1024 * 1024, true);\n\n // Walk through the table, printing the key/data pairs.\n //\n while (cursor.getNext(foo, bulk_data, null) == OperationStatus.SUCCESS) {\n StringEntry key, data;\n key = new StringEntry();\n data = new StringEntry();\n\n while (bulk_data.next(key, data))\n System.out.println(key.getString() + \" : \" + data.getString());\n }\n cursor.close();\n table.close();\n }",
"int insert(FileSet record);",
"int insert(FileRecordAdmin record);",
"public void addFile() \n {\n try {\n //JFileChooser jf=new JFileChooser();\n //jf.showOpenDialog(null);\n // String fp=jf.getSelectedFile().getAbsolutePath();\n File file2=new File(\"trial.txt\");\n BufferedReader br=new BufferedReader(new FileReader (file2));\n Object[] tableLines=br.lines().toArray();\n for (Object tableLine : tableLines) {\n String line = tableLine.toString().trim();\n String[] dataRow=line.split(\",\");\n jtModel.addRow(dataRow);\n jtModel.setValueAt(Integer.valueOf(dataRow[2]), jtModel.getRowCount()-1, 2);\n }\n br.close();\n }\n catch(Exception ex) {\n JOptionPane.showMessageDialog(rootPane,\"Nothing was selected\");\n }\n }",
"private void importData(Connection conn,String filename)\n {\n\t\t\n Statement stmt;\n String query;\n try {\n\t\t\t\t// Step 1: Allocate a database \"Connection\" object\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:\" + PORT_NUMBER + \"/Experiences?user=root&password=root\"); // MySQL\n\t\t\t\t// Step 2: Allocate a \"Statement\" object in the Connection\n\t\t\t\t stmt = conn.createStatement();\n\t\t\t\t {\n\t\t\t\n\n\t\t} }catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\t\n\t\t}\n \n \n try\n {\n stmt = conn.createStatement(\n ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n \n \n query = \"LOAD DATA LOCAL INFILE '\"+filename+\"' INTO TABLE t1 FIELDS TERMINATED BY ',' (question1,question2,question3,question4,question5,question6,question7,question8,question9)\";\n \n stmt.executeUpdate(query);\n \n }\n catch(Exception e)\n {\n e.printStackTrace();\n stmt = null;\n }\n }",
"@Override\n\tpublic void CreateDatabaseFromFile() {\n\t\tfinal String FILENAME = \"fandv.sql\";\n\t\tint[] updates = null;\n\t\ttry {\n\t\t\tMyDatabase db = new MyDatabase();\n\t\t\tupdates = db.updateAll(FILENAME);\n\t\t} catch (FileNotFoundException | SQLException | ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Database issue\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < updates.length; i++) {\n\t\t\tsum += updates[i];\n\t\t}\n\t\tSystem.out.println(\"Number of updates: \" + sum);\n\t}",
"private static void insertRecordIntoDbUserTable(ArrayList<String> xmlList) throws SQLException {\n\t \n\t\tConnection dbConnection = null;\n\t\tPreparedStatement statement = null;\n\n\t\ttry {\n\t\t\tdbConnection = getDBConnection();\n\t\t\tstatement = dbConnection.prepareStatement(SQL_INSERT, Statement.RETURN_GENERATED_KEYS);\n\t\t\t\n\t\t\tint batchSize = 0;\n\t\t\t\n\t\t\tfor (int a = 0; a < xmlList.size(); a++) { // for each xml file\n\t\t\t\tArrayList<String> keywords = new ArrayList<String>(generateKeywords(xmlList.get(a))); //gets the file's keywords\n\t\t\t\tArrayList<String> xmlKeywords = new ArrayList<String>(curate(keywords)); //filter keywords\n\n\t\t\t\t //start appending keywords of that xml file to database\n\t\t\t\tif (xmlKeywords.size() == 1) { //if xml file has no keywords and thus list only consists of the file name\n\t\t\t\t\tstatement.setString(1, xmlKeywords.get(0));\n\t\t\t\t\tstatement.setString(2, \"\");\n\t\t\t\t\tstatement.addBatch();\n\t\t\t\t\tbatchSize++;\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 1; i < xmlKeywords.size(); i++) { //for each keyword following the file name\n\t\t\t\t\tstatement.setString(1, xmlKeywords.get(0)); //set file name\n\t\t\t\t\tstatement.setString(2, xmlKeywords.get(i)); //set keyword\n\t\t\t\t\tstatement.addBatch();\n\t\t\t\t\tbatchSize++;\n\t\t\t\t\tif ((i) % 1000 == 0) {\n\t\t\t\t\t\tstatement.executeBatch(); // Execute every 1000 items.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (batchSize >= 1000) {\n\t\t\t\t\tstatement.executeBatch();\n\t\t\t\t\tbatchSize = 0;\n\t\t\t\t}\n\t\t\t\t//end appending keywords for each xml file loop\n\t\t\t} //end loop of generating table for all xml files and keywords\n\t\t\tstatement.executeBatch();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} finally {\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\t\t\tif (dbConnection != null) {\n\t\t\t\tdbConnection.close();\n\t\t\t}\n\t\t}\n\t}",
"public void create(DecodedFile decodedFile){\n Connection conn = null;\n String query = \"INSERT INTO decodedFile (fileName, decodeKey, md5, firstWord, secret) VALUES (?,?,?,?,?)\";\n\n try {\n // create connection and prepare the query\n conn = dataSource.getConnection();\n PreparedStatement ps = conn.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, decodedFile.getFileName());\n ps.setString(2, decodedFile.getDecodeKey());\n ps.setString(3, decodedFile.getMd5());\n ps.setString(4, decodedFile.getFirstWorld());\n ps.setString(5, decodedFile.getSecret());\n\n // execute the query and close connection\n ps.executeUpdate();\n LOG.info(\"DecodedFile added : \" + decodedFile.toString());\n ps.close();\n } catch (SQLException e) {\n LOG.error(\"Error when try to add decodedFile : \" + decodedFile.toString() + e);\n } finally {\n closeConnection(conn);\n }\n }",
"public static void saveData() throws FileNotFoundException {\t\n\t\t\t\n\tScanner inputStream = new Scanner(new File(\"bookings.dat\"));\n\t\ttry {\n\t\t\t\n\t\t\tBookingList.surName = inputStream.nextLine();\n\t\t\tBookingList.tableNo = inputStream.nextLine();\n\t\t\tBookingList.sittingTime = inputStream.nextLine();\n\t\t\tBookingList.partyOf = inputStream.nextLine();\n\t\t\t\t\n\t\t\tBooking<?> bookingData = new Booking<Object>(null, surName, tableNo, sittingTime, partyOf);\n\t\t\tb1.insert(bookingData);\n\t\t\t\t\n\t\t}finally {\n\t\t\tinputStream.close();\n\t\t}\n\t\t\t\n\t}",
"public static boolean addFile(TranslationFile bf) {\n System.out.println(\"File added to database.\");\n DatabaseOperations.addOrUpdateFileName(bf.getFileID(), bf.getFileName());\n String sql = \"INSERT OR REPLACE INTO corpus1(id, fileID, fileName, thai, english, committed, removed, rank) VALUES(?,?,?,?,?,?,?,?)\";\n\n try (Connection conn = DatabaseOperations.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n conn.setAutoCommit(false);\n\n // this makes sure that the segments in the file, when retrieved from the db, can be ordered in the proper order.\n // simply increments by 1 on each segment. \n int rank = 0;\n // keeps count of the number of segs added so that the SQL can run a batch transaction (which is much more efficient than individual transactions).\n // when i=1000, or at the last segment, the SQL is then run as one batch transaction.\n int i = 0;\n\n for (Segment seg : bf.getActiveSegs()) {\n\n pstmt.setDouble(1, seg.getID());\n pstmt.setDouble(2, seg.getFileID());\n pstmt.setString(3, seg.getFileName());\n pstmt.setString(4, seg.getThai());\n pstmt.setString(5, seg.getEnglish());\n // committed/removed booleans are stored as binary (0 = false, 1 = true)\n pstmt.setInt(6, seg.isCommitted() ? 1 : 0);\n // removed is set to \"false\"\n pstmt.setInt(7, 0);\n pstmt.setInt(8, rank);\n pstmt.addBatch();\n rank++;\n i++;\n\n if (i % 1000 == 0 || i == bf.getActiveSegs().size()) {\n pstmt.executeBatch(); //Execute every 1000 segments.\n }\n }\n\n // resetting counters\n i = 0;\n rank = 0;\n for (Segment seg : bf.getHiddenSegs()) {\n\n pstmt.setDouble(1, seg.getID());\n pstmt.setDouble(2, seg.getFileID());\n pstmt.setString(3, seg.getFileName());\n pstmt.setString(4, seg.getThai());\n pstmt.setString(5, seg.getEnglish());\n // committed/removed booleans are stored as binary (0 = false, 1 = true)\n pstmt.setInt(6, seg.isCommitted() ? 1 : 0);\n // removed is set to \"true\"\n pstmt.setInt(7, 1);\n pstmt.setInt(8, rank);\n pstmt.addBatch();\n rank++;\n i++;\n\n if (i % 1000 == 0 || i == bf.getHiddenSegs().size()) {\n pstmt.executeBatch(); //Execute every 1000 segments.\n }\n }\n conn.commit();\n return true;\n\n } catch (SQLException e) {\n System.out.println(\"AddFileAsBatch: \" + e.getMessage());\n return false;\n }\n }",
"private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected void createBasicData(File tmpFile)\r\n\t{\t\t \r\n\t\tfileNumber++;\r\n\t\tScanner sc2 = null;\r\n\t try {\r\n\t sc2 = new Scanner(tmpFile);\r\n\t } catch (FileNotFoundException e) {\r\n\t e.printStackTrace(); \r\n\t }\r\n\t while (sc2.hasNextLine()) {\r\n\t Scanner s2 = new Scanner(sc2.nextLine());\r\n\t while (s2.hasNext()) {\r\n\t String tmpWord = s2.next();\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\W\", \"\"); //replace all special characters with \"\"\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\d\", \"\"); //replace all digits with \"\"\r\n\t tmpWord = tmpWord.toLowerCase();\r\n\t if(!(tmpWord.equals(\"\")))\r\n\t {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Inserting into location_order table\r\n\t\t\t\t\t\t String query = \"insert ignore into location_order (word, docID, file_name, visible)\" + \" values (?, ?, ?, ?)\";\r\n\t\t\t\t\t // create the mysql insert preparedstatement\r\n\t\t\t\t\t PreparedStatement preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setInt (2, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (3,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (4, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t //Inserting into soundex table\r\n\t\t\t\t\t query = \"insert ignore into tmp_soundex (word, soundex, docID, file_name, visible)\" + \" values (?, ?, ?, ?, ?)\";\r\n\t\t\t\t\t // insert preparedstatement\r\n\t\t\t\t\t preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setString (2,sndx.encode(tmpWord));\r\n\t\t\t\t\t preparedStmt.setInt (3, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (4,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (5, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t preparedStmt.close();\r\n\t\t\t\t\t System.out.println(\"Inserted the word: \"+tmpWord+\" | DocID is: \"+fileNumber +\"|\" +\" Name:: \"+tmpFile.getName());\r\n\t\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} catch(NumberFormatException nfe){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid data input!\", \"Error!\", 2);\r\n\t\t\t\t\t}\r\n\t }\r\n\t }\r\n\t s2.close();\r\n\t }\r\n\t sc2.close();\r\n\t}",
"public void loadCSVData() throws IOException, SQLException {\r\n //SQL statement to load csv information into data table\r\n String insertvaluesSQL = \"INSERT INTO data\"\r\n + \"(InvoiceNo, StockCode, Description, Quantity, InvoiceDate, UnitPrice, CustomerID, Country)\"\r\n + \" VALUES (?,?,?,?,?,?,?,?);\";\r\n\r\n //code to read csv file taken from W03 practical\r\n BufferedReader br = new BufferedReader(new FileReader(filePath));\r\n String line = br.readLine();\r\n String[] informationArray;\r\n while (line != null) {\r\n informationArray = line.split(\",\");\r\n PreparedStatement preparedStatement = connection.prepareStatement(insertvaluesSQL);\r\n //the first '?' corresponds to the 0th term in the information array\r\n //the second '?' corresponds to the 1st term in the information array\r\n for (int i = 1; i < 9; i++) {\r\n preparedStatement.setString(i, informationArray[i - 1]);\r\n }\r\n preparedStatement.executeUpdate();\r\n line = br.readLine();\r\n }\r\n Statement statement = connection.createStatement();\r\n statement.executeUpdate(\"DELETE FROM data WHERE InvoiceNo = 'InvoiceNo';\");\r\n statement.close();\r\n }",
"public void insertItem(Evaluation evaluation) throws FileNotFoundException, IOException, SQLException {\n DataStore dataStore = DataStoreManager.getDataStore();\n dataStore.setAutoCommit(false);\n // The last evaluation is deleted\n dataStore.execute(new StatementReader(\"sql/evaluation.xml\").getStatement(\"deleteLastEvaluation\"), evaluation);\n dataStore.execute(new StatementReader(\"sql/evaluation.xml\").getStatement(\"insertEvaluation\"), evaluation);\n dataStore.commit();\n }",
"private static void insertTestData(String sqlFileResource) throws ArcException {\t\t\n\t\tString scriptDataTest;\n\t\ttry {\n\t\t\tscriptDataTest = IOUtils.toString(ApiInitialisationService.class.getClassLoader().getResourceAsStream(sqlFileResource), StandardCharsets.UTF_8);\n\t\t} catch (IOException e) {\n\t\t\tthrow new ArcException(e, ArcExceptionMessage.FILE_READ_FAILED);\n\t\t}\n\t\tUtilitaireDao.get(0).executeImmediate(c, scriptDataTest);\n\t\t\n\t}",
"public void importFile() {\n \ttry {\n\t File account_file = new File(\"accounts/CarerAccounts.txt\");\n\n\t FileReader file_reader = new FileReader(account_file);\n\t BufferedReader buff_reader = new BufferedReader(file_reader);\n\n\t String row;\n\t while ((row = buff_reader.readLine()) != null) {\n\t String[] account = row.split(\",\"); //implementing comma seperated value (CSV)\n\t String[] users = account[6].split(\"-\");\n\t int[] usersNew = new int[users.length];\n\t for (int i = 0; i < users.length; i++) {\n\t \tusersNew[i] = Integer.parseInt(users[i].trim());\n\t }\n\t this.add(Integer.parseInt(account[0]), account[1], account[2], account[3], account[4], account[5], usersNew);\n\t }\n\t buff_reader.close();\n } catch (IOException e) {\n System.out.println(\"Unable to read text file this time.\");\n \t}\n\t}",
"public static void addGame(String fileName, String newRec)\n {\n String data[]= new String[20]; //max 20 characters per input\n int count = 0;\n int a = 0;\n try\n {\n DataInput f1 = new DataInputStream(new FileInputStream(fileName));\n String txt = f1.readLine();\n while(txt != null)//Read all records from file\n {\n data[a++] = txt;\n txt = f1.readLine();\n ++count;\n }\n DataOutput f2 = new DataOutputStream(new FileOutputStream(fileName));\n for(int i = 0; i < count; i++)\n {\n f2.writeBytes(data[i] + \"\\r\\n\"); //Write to file\n }\n f2.writeBytes(newRec);//insert new record \n }\n catch(Exception e)\n {\n }\n }",
"public void insertData(String folder, String file, String filewithoutExtension, String header) {\n\t\tRuntime r = Runtime.getRuntime();\n\t\tString command = \"mongoimport --host 127.0.0.1 --port 27017 --db Train --collection \"+filewithoutExtension+\" -f \"+header+\" --type csv --file \\\"Data/\"+file+\"\\\"\";\n\t\ttry {\n\t\t\tr.exec(command); \n\t\t}\tcatch (Exception e){ \n\t\t\tSystem.out.println(\"Error executing \" + command + e.toString());\n\t\t}\n\t}",
"public void store( RssGeneratedFile rssFile )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_UPDATE_RSS_FILE );\n\n daoUtil.setInt( 1, rssFile.getPortletId( ) );\n daoUtil.setString( 2, rssFile.getName( ) );\n daoUtil.setInt( 3, rssFile.getState( ) );\n daoUtil.setTimestamp( 4, new java.sql.Timestamp( new java.util.Date( ).getTime( ) ) );\n daoUtil.setString( 5, rssFile.getDescription( ) );\n daoUtil.setString( 6, rssFile.getWorkgroup( ) );\n daoUtil.setString( 7, rssFile.getTypeResourceRss( ) );\n daoUtil.setInt( 8, rssFile.getMaxItems( ) );\n daoUtil.setString( 9, rssFile.getFeedType( ) );\n daoUtil.setString( 10, rssFile.getEncoding( ) );\n daoUtil.setInt( 11, rssFile.getId( ) );\n\n daoUtil.executeUpdate( );\n daoUtil.free( );\n }",
"@Override\r\n\tpublic int insert(QnaFile qnaFile) {\n\t\tQnaFileDao qnaDao = session.getMapper(QnaFileDao.class);\r\n\t\treturn qnaDao.insert(qnaFile);\r\n\t}",
"private static void writeCLOBData() {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tconn = JDBCUtils.getMySQLConnection();\n\t\t\tString sql = \"INSERT INTO testclob(name, resume) values(?,?)\";\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setString(1, \"ke\");\n\t\t\tFile file = new File(\"D:\" + File.separator + \"test.txt\");\n\t\t\tReader reader = new InputStreamReader(new FileInputStream(file), \"utf-8\");\n\t\t\tstmt.setCharacterStream(2, reader, (int)file.length());\n\t\t\tstmt.executeUpdate();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tJDBCUtils.release(stmt, conn);\n\t\t}\n\t}",
"public void adm4L(String filename) {\n\t\ttry { // Read from file\n\t\t\tFileInputStream fstream = new FileInputStream(filename);\n\t\t\tDataInputStream in = new DataInputStream(fstream);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\t\t\tString strLine;\n\t\t\ttry { // Insert into price table\n\t\t\t\twhile((strLine = br.readLine()) != null) {\n\t\t\t\t\tString[] tokens = strLine.split(\",\");\n\t\t\t\t\tint high_price = 0;\n\t\t\t\t\ttry { high_price = Integer.parseInt(tokens[3]);\n\t\t\t\t\t} catch(NumberFormatException e) {System.out.println(\"STATEMENT CONTAINS INVALID DATA\");}\n\t\t\t\t\tint low_price = 0;\n\t\t\t\t\ttry { high_price = Integer.parseInt(tokens[4]);\n\t\t\t\t\t} catch(NumberFormatException e) {System.out.println(\"STATEMENT CONTAINS INVALID DATA\");}\n\t\t\t\t\tquery = \"insert into PRICE values(?,?,?,?,?)\";\n\t\t\t\t\tPreparedStatement updateStatement = connection.prepareStatement(query);\n\t\t\t\t\tupdateStatement.setString(1,tokens[0]);\n\t\t\t\t\tupdateStatement.setString(2,tokens[1]);\n\t\t\t\t\tupdateStatement.setString(3,tokens[2]);\n\t\t\t\t\tupdateStatement.setInt(4,high_price);\n\t\t\t\t\tupdateStatement.setInt(5,low_price);\n\t\t\t\t\tupdateStatement.executeUpdate();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"PRICES LOADED\");\n\t\t\t} catch(SQLException Ex) {System.out.println(\"Error running the sample queries. Machine Error: \" + Ex.toString());}\n\t\t} catch(IOException e) {System.out.println(\"FILE NOT FOUND\");}\n\t}",
"@Override\r\n\tpublic void insertFile(Map<String, Object> map) {\n\t\t\r\n\t\tsqlSession.insert(namespace + \"insertFile\", map);\r\n\t}",
"public void storeValuesDump() throws SQLException{ //store DUMP values into the database\n \tString sqlDump = \"INSERT INTO dump VALUES ('\" + massSelection + \"', '\" + smokeSelection + \"', '\" + framesText.getText() + \"', '\" + dtDevcText.getText() + \"');\";\n \tConnectionClass connectionClass = new ConnectionClass();\n\t\tConnection connection = connectionClass.getConnection();\n\t\tStatement statement = connection.createStatement();\n\t\tstatement.executeUpdate(sqlDump);\n }",
"@Override\n public void importCSV(File file) {\n System.out.println(\"oi\");\n System.out.println(file.isFile()+\" \"+file.getAbsolutePath());\n if(file.isFile() && file.getPath().toLowerCase().contains(\".csv\")){\n System.out.println(\"Entro\");\n try {\n final Reader reader = new FileReader(file);\n final BufferedReader bufferReader = new BufferedReader(reader);\n String[] cabecalho = bufferReader.readLine().split(\",\");\n int tipo;\n if(cabecalho.length == 3){\n if(cabecalho[2].equalsIgnoreCase(\"SIGLA\")){\n tipo = 1;\n System.out.println(\"TIPO PAIS\");\n }\n else {\n tipo = 2;\n System.out.println(\"TIPO CIDADE\");\n }\n }else {\n tipo = 3;\n System.out.println(\"TIPO ESTADO\");\n }\n \n while(true){\n String linha = bufferReader.readLine();\n if(linha == null){\n break;\n }\n String[] row = linha.split(\",\");\n switch (tipo) {\n case 1:\n Pais pais = new Pais();\n pais.setId(Long.parseLong(row[0]));\n pais.setNome(row[1]);\n pais.setSigla(row[2]);\n new PaisDaoImpl().insert(pais);\n break;\n case 2:\n Cidade cidade = new Cidade();\n cidade.setId(Long.parseLong(row[0]));\n cidade.setNome(row[1]);\n cidade.setEstado(Long.parseLong(row[2]));\n new CidadeDaoImpl().insert(cidade);\n break;\n default:\n Estado estado = new Estado();\n estado.setId(Long.parseLong(row[0]));\n estado.setNome(row[1]);\n estado.setUf(row[2]);\n estado.setPais(Long.parseLong(row[3]));\n new EstadoDaoImpl().insert(estado);\n break;\n }\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void insertData(SQLiteDatabase db) {\n String sql;\n try {\n\n InputStream in = this.context.getResources().openRawResource(R.raw.data);\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document doc = builder.parse(in, null);\n NodeList statements = doc.getElementsByTagName(\"statement\");\n for (int i = 0; i < statements.getLength(); i++) {\n sql = \"INSERT INTO \" + this.tableName + \" \" + statements.item(i).getChildNodes().item(0).getNodeValue();\n db.execSQL(sql);\n sql = \"\";\n }\n } catch (Throwable t) {\n Toast.makeText(context, t.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"public static void testAddDataToGridFile() {\n\n System.out.println(\"\\n--------- Adding Data to Grid File ---------\");\n\n GridFile gridFile = null;\n\n try {\n gridFile = GridFile.open(TEST_FILE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n GridParameters params = gridFile.getParameters();\n\n //Create a row and put some data in it\n int[] rowValues = new int[params.getNumberOfColumns()];\n for (int i = 0; i < rowValues.length; i++) {\n rowValues[i] = i;\n }\n\n try {\n gridFile.putRow(2, rowValues); //store values in row 10\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public long insert(FFileInputDO FFileInput) throws DataAccessException;",
"public void AddInDB(Word newWord) throws SQLException {\n String insertQuery = \"INSERT INTO tbltest(word,pronunciation,define) VALUES(?,?,?)\";\r\n ps = con.prepareStatement(insertQuery);\r\n ps.setString(1, newWord.getWord());\r\n ps.setString(2, newWord.getPronunciation());\r\n ps.setString(3, newWord.getDefine());\r\n\r\n ps.executeUpdate();\r\n }",
"void insert(BnesBrowsingHis record) throws SQLException;",
"@Override\n\tpublic void createFile(FileModel file) {\n\t\tString sql = \"INSERT INTO file VALUES (?,?,?,?,?,?,now(),now())\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tfile.getFile_id(),\n\t\t\t\tfile.getFile_path(),\n\t\t\t\tfile.getFile_name(),\n\t\t\t\tfile.getFile_type(),\n\t\t\t\tfile.getFile_size(),\n\t\t\t\tfile.getCretd_usr()\n\t\t});\n\t}",
"int insertSelective(EhrPersonFile record);",
"public void insert(String name, String fileName) {\n connect(fileName);\n String sql = \"INSERT INTO urls(url) VALUES(?)\";\n\n try (PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setString(1, name);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"private void processRecords()\n {\n // This is the way to connect the file to an inputstream in android\n InputStream inputStream = getResources().openRawResource(R.raw.products);\n\n Scanner scanner = new Scanner(inputStream);\n\n\n // skipping first row by reading it before loop and displaying it as column names\n String[] tableRow = scanner.nextLine().split(\",\");\n\n //Log.e(\"COLUMN NAMES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN NAMES SIZE\", String.valueOf(tableRow.length));\n\n\n // --- Truncate table (delete all rows and reset auto increment --\n // this line of code will be useful because for now we are forced to read file\n // everytime we open app, this way we do not have duplicate data.\n db.resetTable();\n\n while (scanner.hasNextLine())\n {\n tableRow = scanner.nextLine().split(\",\");\n //Log.e(\"COLUMN VALUES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN VALUES SIZE\", String.valueOf(tableRow.length));\n\n /*\n * Possible Change:\n * On each iteration a new Product() can be created and call the setter to set\n * its fields to the elements of the String array, example\n * product = new Product();\n * product.setNumber(tableRow[0]);\n * product.setBusinessName(tableRow[1]);\n * ...\n * db.insertData(product); // because the new insertData method would expect a\n * Product object instead\n *\n */\n\n // insert data\n if (db.insertData(tableRow))\n {\n //Log.e(\"Insert\", \"SUCCESSFUL INSERT AT \" + tableRow[0]);\n }\n else\n {\n //Log.e(\"Insert\", \"UNSUCCESSFUL INSERT\");\n }\n\n }\n }",
"int insertSelective(DiaryFile record);",
"public void insert(ProjectFiles record) {\r\n getSqlMapClientTemplate().insert(\"project_files.ibatorgenerated_insert\", record);\r\n }",
"private static void executeSQL(Connection connection, String file)\n\t\t\tthrows Exception {\n\t\tStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = connection.createStatement();\n\n\t\t\tString[] values = readFile(file).split(\";\");\n\n\t\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\t\tString sql = values[i].trim();\n\t\t\t\tif ((sql.length() != 0) && (!sql.startsWith(\"#\"))) {\n\t\t\t\t\tstmt.executeUpdate(sql);\n\t\t\t\t}\n\t\t\t}\n\t\t} finally {\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t}",
"void insertCSV(String file_path) {\n try {\n InputStream fileStream = new FileInputStream(file_path);\n Reader decoder = new InputStreamReader(fileStream, \"UTF-8\");\n BufferedReader buffered = new BufferedReader(decoder);\n\n for (String line = buffered.readLine(); line != null; line = buffered.readLine()) {\n // process line\n String[] tokens = line.trim().split(\"\\\\s+\"); // split line into different fields\n\n // valid table row should have 16 fields\n if (tokens.length == 16) {\n insertSingleRow(tokens);\n } else {\n continue;\n }\n }\n } catch (Exception e) {\n logger.log(Level.WARNING, \"insertGZip error \", e);\n }\n }",
"void insert(GfanCodeBanner record) throws SQLException;",
"public void importUsers(String filename) throws Exception {\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\r\n\t\twhile(true) {\r\n\t\t\tString line = br.readLine();\r\n\t\t\tif (line == null)\r\n\t\t\t\tbreak;\r\n\t\t\tString[] tokens = line.split(\",\");\r\n\t\t\tString userLastName = tokens[0].trim();\r\n\t\t\tString userFirstName = tokens[1].trim();\r\n\t\t\tString userMiddleName = tokens[2].trim();\t\t\t\r\n\t\t\tString email = tokens[3].trim();\r\n\t\t\tString userName = tokens[4].trim();\r\n\t\t\tString password = tokens[5].trim();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Line:\"+line);\r\n\t\t\tSystem.out.println(\"LastName:\"+userLastName);\r\n\t\t\tSystem.out.println(\"FirstName:\"+userFirstName);\r\n\t\t\tSystem.out.println(\"MiddleName:\"+userMiddleName);\r\n\t\t\tSystem.out.println(\"Email:\"+email);\r\n\t\t\tSystem.out.println(\"UserName:\"+userName);\r\n\t\t\tSystem.out.println(\"Password:\"+password);\r\n\t\t\t\r\n\t\t\tUser user = new User();\r\n\t\t\tuser.setLastName(userLastName);\r\n\t\t\tuser.setFirstName(userFirstName);\r\n\t\t\tuser.setMiddleName(userMiddleName);\r\n\t\t\tuser.setEmailAddress(email);\r\n\t\t\tuser.setUserName(userName);\r\n\t\t\tuser.setPassword(password);\t\t\t\r\n\t\t\tuser.setStatus(UserStatus.ACTIVE);\r\n\t\t\t\r\n\t\t\tem.persist(user);\r\n\t\t}\r\n\t\t\r\n\t\tbr.close();\r\n\t\tfr.close();\r\n\t}",
"public void insertIntoDB () throws SQLException\r\n {\r\n Connection conn = null; \r\n PreparedStatement ps = null;\r\n try {\r\n // i have made changes to the databse string and made is online. am uploading again it to github as talked to you. all other code is same.\r\n conn = (Connection) DriverManager.getConnection(\"jdbc:mysql://50.62.177.180:3306/contacts\",\"harman474\", \"Galaxys3neo\");\r\n String sql = \"INSERT into contacts(firstName, lastName, phoneNumber,address, birthday,imageFile)\"\r\n + \"Values (?,?,?,?,?,?)\";\r\n ps = conn.prepareStatement(sql);\r\n \r\n //4. Convert the birthday into a SQL date\r\n Date dob = Date.valueOf(birthday);\r\n // bind the parameters\r\n ps.setString(1, firstName);\r\n ps.setString(2, lastName);\r\n ps.setString(3, phoneNumber);\r\n ps.setString(4,address);\r\n ps.setDate(5, dob);\r\n ps.setString(6, imageFile.getName());\r\n \r\n ps.execute();\r\n }\r\n catch (Exception e)\r\n {\r\n System.err.println(e.getMessage());\r\n }\r\n finally\r\n {\r\n if \r\n (conn != null)\r\n conn.close();\r\n if \r\n (ps != null)\r\n ps.close();\r\n }\r\n \r\n }",
"public void insert() throws SQLException;",
"public final void execute() {\n try {\n\n StringBuffer preparedTableBuf = new StringBuffer();\n preparedTableBuf.append(\"create table if not exists \");\n preparedTableBuf.append(tableName + \" (\");\n\n boolean isCompoundKey = false;\n boolean isAutoKey = \"generated\".equals(pkey);\n\n String[] pkeys = pkey.split(\",\");\n StringBuffer compoundKey = new StringBuffer();\n if (pkeys.length > 1) {\n isCompoundKey = true;\n compoundKey.append(\", PRIMARY KEY (\");\n for (int i = 0; i < pkeys.length; i++) {\n compoundKey.append(pkeys[i] + (i == pkeys.length - 1 ? \")\" : \", \"));\n }\n }\n\n if (isAutoKey) {\n preparedTableBuf\n .append(\"id integer NOT NULL PRIMARY KEY AUTO_INCREMENT, \");\n }\n for (int i = 0; i < fields.length; i++) {\n preparedTableBuf.append(fields[i]\n + \" \"\n + columnTypes[i]\n + (pkey.equals(fields[i]) ? \" NOT NULL UNIQUE PRIMARY KEY\" : \"\")\n + (i == fields.length - 1 ? (isCompoundKey ? compoundKey.toString()\n : \"\") + \")\" : \", \"));\n }\n\n PreparedStatement preparedTableCreate = conn\n .prepareStatement(preparedTableBuf.toString());\n\n log.info(\"Prepared Table Statement : \" + preparedTableBuf.toString());\n preparedTableCreate.executeUpdate();\n conn.commit();\n\n } catch (Exception e) {\n log.error(e);\n }\n\n try {\n\n StringBuffer preparedInsertBuf = new StringBuffer();\n preparedInsertBuf.append(\"insert into \");\n preparedInsertBuf.append(tableName + \" (\");\n\n for (int i = 0; i < fields.length; i++) {\n preparedInsertBuf.append(fields[i]\n + (i == fields.length - 1 ? \")\" : \", \"));\n }\n\n preparedInsertBuf.append(\" values(\");\n\n for (int i = 0; i < fields.length; i++) {\n preparedInsertBuf.append(\"?\" + (i == fields.length - 1 ? \")\" : \", \"));\n }\n\n PreparedStatement insertItemRecord = conn\n .prepareStatement(preparedInsertBuf.toString());\n\n log.info(\"Rows : \" + fileImporter.getRowCount());\n log.info(\"Prepared Insert Statement : \" + preparedInsertBuf.toString());\n\n Iterator<Row> riter = fileImporter.getRowIterator();\n\n int rows = 0;\n\n int[] result = null;\n\n while (riter.hasNext()) {\n Row row = riter.next();\n\n if (!row.isValid()) {\n continue;\n } else {\n rows++;\n }\n\n try {\n for (int i = 0; i < fields.length; i++) {\n if (columnTypes[i].contains(\"char\")) {\n insertItemRecord.setString(i + 1, row.getValue(fields[i]));\n } else if (\"integer\".equals(columnTypes[i])) {\n try {\n Integer value = Integer.parseInt(row.getValue(fields[i]));\n insertItemRecord.setInt(i + 1, value);\n } catch (Exception e) {\n insertItemRecord.setInt(i + 1, 0);\n }\n } else {\n log.error(\"unsupported column type\");\n }\n }\n\n insertItemRecord.addBatch();\n\n if (rows % batchSize == 0) {\n\n try {\n result = insertItemRecord.executeBatch();\n\n conn.commit();\n log.info(\"batch update : \" + result.length);\n } catch (BatchUpdateException e) {\n log.error(\"Batch Update failed\", e);\n log.error(\"result size: \"\n + (result == null ? \"null\" : result.length));\n\n }\n\n }\n } catch (Exception e) {\n log.error(\"couldn't process row properly\", e);\n }\n }\n // the last set of updates will probably not mod to 0\n\n try {\n result = insertItemRecord.executeBatch();\n conn.commit();\n log.info(\"batch update : \" + result.length);\n } catch (BatchUpdateException e) {\n log.error(\"Batch Update failed\", e);\n log.error(\"\");\n }\n\n } catch (Exception e) {\n log.error(e);\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic int insert_file(Map<String, Object> map) throws Exception {\n\t\treturn sql.insert(\"cms_board.insert_file\", map);\r\n\t}",
"public void insertBig2TextNode(Big2TextSchemaBean value){\r\n\t\tdbDataAccess.initTransaction();\r\n\r\n\t\tdbDataAccess.insertBig2Text(value, TextAnalytics.Text);\r\n\r\n\t\tdbDataAccess.commit();\r\n\t\tdbDataAccess.closeTransaction();\r\n\t}",
"@Override\n public void writeData(String path, String payload) {\n Connection connection = null;\n\n try {\n connection = getConnection();\n connection.setAutoCommit(true);\n\n PreparedStatement pstmt = connection.prepareStatement(\"INSERT INTO DATA VALUES (?,?)\");\n\n pstmt.setString(1, path);\n InputStream in = new ByteArrayInputStream(payload.getBytes());\n pstmt.setBinaryStream(2, in);\n\n pstmt.executeUpdate();\n pstmt.close();\n connection.close();\n\n } catch (SQLException e) {\n logger.log(Level.SEVERE, e.getMessage(), e);\n }\n\n }",
"public void putFile(Connection conn, File cond) throws Exception{\n\t//System.out.println(cond);\n\t//Check for LFN\n\tString LFN = cond.getLogicalFileName ( );\n\tif(LFN == null || LFN==\"\") throw new DBSException(\"Input Data Error\", \"LogicalFileName is expected.\");\n\t//Check is_file_valid\n\tint fileValid = cond.getIsFileValid( );\n if(fileValid == -1) throw new DBSException(\"Input Data Error\", \"Validation of File is expected.\");\n\t//Check if Datset already in db\n\tDataset ds = cond.getDatasetDO();\n\t//System.out.println(ds);\n\tif(ds == null)throw new DBSException(\"Input Data Error\", \"Dataset is expected.\");\n\tif(ds.getDatasetID( ) == 0){\n\t String dsName = ds.getDataset();\n\t if((dsName == null) || (dsName==\"\"))throw new DBSException(\"Input Data Error\", \"Dataset name is missing\");\n\t JSONArray dss = (new DatasetQO()).listDatasets(conn, ds);\n\t if(dss.length() != 1)\n\t\tthrow new DBSException(\"Input Data Error\", \"dataset name :\" + dsName \n\t\t+\" is not found or more than one found in the db.\");\n\t else{ \n\t\tds.setDatasetID(((Dataset)dss.getJSONObject(0)).getDatasetID());\n\t\t//ds.setDataset(((Dataset)dss.getJSONObject(0)).getDataset());\n\t }\n\t}\n //System.out.println(cond);\n\tBlock bk = cond.getBlockDO();\n\tif(bk == null) throw new DBSException(\"Input Data Error\", \"Block is expected.\");\n\tif(bk.getBlockID() == 0){\n\t String bkName = bk.getBlockName();\n\t if(bkName == null || bkName == \"\")throw new DBSException(\"Input Data Error\", \"Block name is missing\");\n\t JSONArray bks = (new BlockQO()).listBlocks(conn, bk);\n\t if(bks.length() != 1 )\n\t\tthrow new DBSException(\"Input Data Error\", \"More than one or no Blocks are found in the db with name: \"\n\t\t + bkName);\n\t else {\n\t\tbk.setBlockID(((Block)bks.getJSONObject(0)).getBlockID());\n\t\t//System.out.println(\"Block : \" + bk);\n\t }\n\t}\n\t//\n\t//System.out.println(\"Check for file_type\");\n\tFileType ft = cond.getFileTypeDO();\n if(ft == null)throw new DBSException(\"Input Data Error\", \"File type is expected.\");\n if(ft.getFileTypeID( ) == 0){\n String ftName = ft.getFileType();\n if((ftName == null) || (ftName == \"\"))throw new DBSException(\"Input Data Error\", \"File type is missing\");\n JSONArray fts = (new FileTypeQO()).listFileTypes(conn, ft);\n if(fts.length() != 1)\n throw new DBSException(\"Input Data Error\", \"File type :\" + ftName\n +\" is not found or more than one found in the db.\");\n else\n ft.setFileTypeID(((FileType)fts.getJSONObject(0)).getFileTypeID());\n }\n\t//System.out.println(\"File type: \" + ft);\n\t//check for Primary key\n\tint fileID = cond.getFileID ( );\n\tif(fileID == 0){\n\t try{\n\t\tfileID = SequenceManager.getSequence(conn, \"SEQ_FL\");\n\t\tcond. setFileID(fileID);\n\t }catch (SQLException ex) {\n\t\tthrow ex;\n\t }\n\t}\n\t//\n\t//System.out.println(\"Check for check-sum\");\n\tString cs = cond.getCheckSum();\n if(cs == null || cs == \"\")throw new DBSException(\"Input Data Error\", \"File check-sum is expected.\");\n\t//check for event_count\n\tif (cond.getEventCount() == -1) throw new DBSException(\"Input Data Error\", \"File event count is expected.\");\n\t//check for file size\n\tif(cond.getFileSize() == -1) throw new DBSException(\"Input Data Error\", \"File size is expected.\");\n\t//System.out.println(\"Check for creation_date and created_by. \\n\");\n\tlong createDate = cond.getCreationDate( );\n\tString createdBy = cond.getCreateBy( );\n\t//System.out.println(\"****File**** \" + cond);\n\tif(createDate == 0)cond.setCreationDate(DBSSrvcUtil.getEpoch());\n if(createdBy == null || createdBy==\"\")cond.setCreateBy(\"WeNeed2FindWhoDidIt\");\n\t \t\n\t//Now we are ready to insert into the dataset\n\t//System.out.println(\"Ready to insert file :\" + cond);\n\tinsertTable(conn, cond, \"FILES\");\n }",
"private void insertToFile (PQNode node) throws Exception{\n int fileId = (node.getPqIndex()-1)/ENTRY_BLOCK_SIZE;\n File file = new File(DIRECTORY + getMapFileName(NAME_PATTERN, fileId));\n\n List<PQNode> nodes = retrieveWholeFile(node.getPqIndex());\n nodes.add(node);\n\n storeToFile(file,nodes, false);\n }",
"void insert(Mi004 record);",
"private void saveToDb() {\r\n ContentValues values = new ContentValues();\r\n values.put(DbAdapter.KEY_DATE, mTime);\r\n if (mPayeeText != null && mPayeeText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_PAYEE, mPayeeText.getText().toString());\r\n if (mAmountText != null && mAmountText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_AMOUNT, mAmountText.getText().toString());\r\n if (mCategoryText != null && mCategoryText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_CATEGORY, mCategoryText.getText().toString());\r\n if (mMemoText != null && mMemoText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_MEMO, mMemoText.getText().toString());\r\n if (mTagText != null && mTagText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_TAG, mTagText.getText().toString());\r\n\r\n \tif (Utils.validate(values)) {\r\n \t\tmDbHelper.open();\r\n \t\tif (mRowId == null) {\r\n \t\t\tlong id = mDbHelper.create(values);\r\n \t\t\tif (id > 0) {\r\n \t\t\t\tmRowId = id;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmDbHelper.update(mRowId, values);\r\n \t\t}\r\n \t\tmDbHelper.close();\r\n \t}\r\n\t}",
"public final /* synthetic */ void saveToDb() {\n DruidPooledConnection druidPooledConnection;\n DruidPooledConnection druidPooledConnection2;\n block18: {\n block17: {\n StringBuilder stringBuilder;\n PreparedStatement preparedStatement;\n MaplePet a2;\n if (!a2.a) {\n return;\n }\n try {\n druidPooledConnection2 = DBConPool.getInstance().getDataSource().getConnection();\n try {\n preparedStatement = druidPooledConnection2.prepareStatement(ConcurrentEnumMap.ALLATORIxDEMO(\";\\t*\\u0018:\\u001cN)\\u000b-\\u001dy=\\u001c:y\\u00008\\u0003<NdNfBy\\u0002<\\u0018<\\u0002ySyQuN:\\u00026\\u001d<\\u0000<\\u001d*NdNfBy\\b,\\u00025\\u0000<\\u001d*NdNfBy\\u001d<\\r6\\u0000=\\u001dySyQuN?\\u00028\\t*NdNfBy\\u000b!\\r5\\u001b=\\u000b=NdNfNuN*\\u001e<\\u000b=NdNfBy\\f,\\b?\\u001d2\\u00075\\u00020\\nySyQuN:\\u000f7>0\\r2;)NdNfBy\\u001d2\\u00075\\u00020\\nySyQy9\\u0011+\\u000b+y\\u001e<\\u001a0\\nySyQ\"));\n try {\n int n2;\n PreparedStatement preparedStatement2 = preparedStatement;\n PreparedStatement preparedStatement3 = preparedStatement;\n preparedStatement.setString(1, a2.h);\n preparedStatement3.setByte(2, a2.e);\n preparedStatement3.setShort(3, a2.B);\n preparedStatement2.setByte(4, a2.H);\n preparedStatement2.setInt(5, a2.J);\n preparedStatement.setShort(6, a2.k);\n stringBuilder = new StringBuilder();\n int n3 = n2 = 0;\n while (n3 < a2.d.length) {\n stringBuilder.append(a2.d[n2]);\n stringBuilder.append(KoreanDateUtil.ALLATORIxDEMO(\"V\"));\n n3 = ++n2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable2;\n if (preparedStatement != null) {\n try {\n preparedStatement.close();\n throwable2 = throwable;\n throw throwable2;\n }\n catch (Throwable throwable3) {\n throwable.addSuppressed(throwable3);\n }\n }\n throwable2 = throwable;\n throw throwable2;\n }\n }\n catch (Throwable throwable) {\n Throwable throwable4;\n if (druidPooledConnection2 != null) {\n try {\n druidPooledConnection2.close();\n throwable4 = throwable;\n throw throwable4;\n }\n catch (Throwable throwable5) {\n throwable.addSuppressed(throwable5);\n }\n }\n throwable4 = throwable;\n throw throwable4;\n }\n }\n catch (SQLException sQLException) {\n FilePrinter.printError(ConcurrentEnumMap.ALLATORIxDEMO(\"\\u0014\\u000f)\\u0002<><\\u001aw\\u001a!\\u001a\"), sQLException, KoreanDateUtil.ALLATORIxDEMO(\"e\\u001b`\\u001fB\\u0015R\\u0018\"));\n return;\n }\n {\n String string = stringBuilder.toString();\n PreparedStatement preparedStatement4 = preparedStatement;\n PreparedStatement preparedStatement5 = preparedStatement;\n PreparedStatement preparedStatement6 = preparedStatement;\n String string2 = string;\n preparedStatement6.setString(7, string2.substring(0, string2.length() - 1));\n preparedStatement6.setInt(8, a2.ALLATORIxDEMO);\n preparedStatement5.setInt(9, a2.I);\n preparedStatement5.setShort(10, a2.K);\n preparedStatement4.setInt(11, a2.M);\n preparedStatement4.setInt(12, a2.D);\n preparedStatement4.executeUpdate();\n a2.a = false;\n if (preparedStatement == null) break block17;\n druidPooledConnection = druidPooledConnection2;\n }\n preparedStatement.close();\n break block18;\n }\n druidPooledConnection = druidPooledConnection2;\n }\n if (druidPooledConnection == null) return;\n druidPooledConnection2.close();\n }",
"public File getInputDb();",
"public void newLanguagesActualTokenFile() throws SQLException, ClassNotFoundException {\t\t\n\t\topenConnection();\n\t\tdropTableIfExists(TEMPORARY);\n\t\tcreateTempTable();\t\n\t\tString prepInsertStatementQuery = \"INSERT INTO \\\"\" + TEMPORARY + \"\\\"(token) VALUES (?)\";\n\t\tprepInsertStatement = connection.prepareStatement(prepInsertStatementQuery);\t\t\n\t}",
"void insertContentFile(@Param(\"contentPath\") String contentPath,\n\t\t\t\t\t\t @Param(\"file\") UserContentFile file);",
"private static void populateTable(String name, File fileObj, Statement stat) {\n\t\tString tableName = \"\";\n\t\tScanner scan = null;\n\t\tString line = \"\";\n\t\tString[] splitLine = null;\n\t\t\n\t\ttableName = \"stevenwbroussard.\" + name;\n\t\ttry {\n\t\t\tscan = new Scanner(fileObj);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Failed make thread with file.\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t//use a for loop to go through, later use a while loop\n\t\twhile (scan.hasNext() != false) {\n\t\t//for (int i = 0; i < 10; i++) {\n\t\t\tline = scan.nextLine();\n\t\t\tsplitLine = line.split(\"\\\\,\");\n\t\t\t\n\t\t\t//if the type for integer column is NULL\n\t\t\tif (splitLine[0].equals(\"NULL\")) {\n\t\t\t\tsplitLine[0] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[1].equals(\"NULL\")) {\n\t\t\t\tsplitLine[1] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[4].equals(\"NULL\")) {\n\t\t\t\tsplitLine[4] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[5].equals(\"NULL\")) {\n\t\t\t\tsplitLine[5] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[7].equals(\"NULL\")) {\n\t\t\t\tsplitLine[7] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[9].equals(\"NULL\")) {\n\t\t\t\tsplitLine[9] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[11].equals(\"NULL\")) {\n\t\t\t\tsplitLine[11] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[13].equals(\"NULL\")) {\n\t\t\t\tsplitLine[13] = \"-1\";\n\t\t\t}\n\t\t\t\n\t\t\t//if the type for double column is NULL\n\t\t\tif (splitLine[6].equals(\"NULL\")) {\n\t\t\t\tsplitLine[6] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[8].equals(\"NULL\")) {\n\t\t\t\tsplitLine[8] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[10].equals(\"NULL\")) {\n\t\t\t\tsplitLine[10] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[12].equals(\"NULL\")) {\n\t\t\t\tsplitLine[12] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[14].equals(\"NULL\")) {\n\t\t\t\tsplitLine[14] = \"-1.0\";\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tstat.executeQuery(comd.insert(tableName, \n\t\t\t\t\t \t Integer.parseInt(splitLine[0]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[1]), \n\t\t\t\t\t \t splitLine[2], \n\t\t\t\t\t \t splitLine[3], \n\t\t\t\t\t \t Integer.parseInt(splitLine[4]),\n\t\t\t\t\t \t Integer.parseInt(splitLine[5]),\n\t\t\t\t\t \t Double.parseDouble(splitLine[6]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[7]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[8]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[9]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[10]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[11]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[12]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[13]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[14])));\n\t\t\t}\n\t\t\tcatch(SQLException s) {\n\t\t\t\tSystem.out.println(\"SQL insert statement failed.\");\n\t\t\t\ts.printStackTrace();\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public static void loadData(DynamoDbClient ddb, String fileName) throws IOException {\r\n\r\n String sqlStatement = \"INSERT INTO MoviesPartiQ VALUE {'year':?, 'title' : ?, 'info' : ?}\";\r\n JsonParser parser = new JsonFactory().createParser(new File(fileName));\r\n com.fasterxml.jackson.databind.JsonNode rootNode = new ObjectMapper().readTree(parser);\r\n Iterator<JsonNode> iter = rootNode.iterator();\r\n ObjectNode currentNode;\r\n int t = 0 ;\r\n List<AttributeValue> parameters = new ArrayList<>();\r\n while (iter.hasNext()) {\r\n\r\n // Add 200 movies to the table.\r\n if (t == 200)\r\n break ;\r\n currentNode = (ObjectNode) iter.next();\r\n\r\n int year = currentNode.path(\"year\").asInt();\r\n String title = currentNode.path(\"title\").asText();\r\n String info = currentNode.path(\"info\").toString();\r\n\r\n AttributeValue att1 = AttributeValue.builder()\r\n .n(String.valueOf(year))\r\n .build();\r\n\r\n AttributeValue att2 = AttributeValue.builder()\r\n .s(title)\r\n .build();\r\n\r\n AttributeValue att3 = AttributeValue.builder()\r\n .s(info)\r\n .build();\r\n\r\n parameters.add(att1);\r\n parameters.add(att2);\r\n parameters.add(att3);\r\n\r\n // Insert the movie into the Amazon DynamoDB table.\r\n executeStatementRequest(ddb, sqlStatement, parameters);\r\n System.out.println(\"Added Movie \" +title);\r\n\r\n parameters.remove(att1);\r\n parameters.remove(att2);\r\n parameters.remove(att3);\r\n t++;\r\n }\r\n }",
"public void init() {\r\n BufferedReader in = null;\r\n String line;\r\n PreparedStatement iStmt;\r\n String insertStmt = \"INSERT INTO \" + schema + \"ULDSHAPE \"\r\n + \"(SHAPE, ALLHGHT, ALLLENG, ALLWDTH, BIGPIC, DESCR, INTERNALVOLUME, INTHGHT, INTLENG, INTWDTH, \"\r\n + \"MAXGROSSWGHT, RATING, TAREWGHT, THUMBNAIL, UPDATED, UPDTUSER, VERSION) VALUES \"\r\n + \"(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n int count = 0;\r\n\r\n LOG.log(Level.INFO, \"Initialize basic Uldshapes in DB from file [{0}]\", path);\r\n\r\n try {\r\n in = new BufferedReader(new InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8));\r\n\r\n iStmt = conn.prepareStatement(insertStmt);\r\n\r\n while ((line = in.readLine()) != null) {\r\n LOG.finer(line);\r\n\r\n UldshapeVO uldshapeVO = parseUldshape(line);\r\n\r\n iStmt.setString(1, uldshapeVO.getShape());\r\n iStmt.setInt(2, uldshapeVO.getAllhght());\r\n iStmt.setInt(3, uldshapeVO.getAllleng());\r\n iStmt.setInt(4, uldshapeVO.getAllwdth());\r\n iStmt.setBytes(5, uldshapeVO.getBigpic());\r\n iStmt.setString(6, uldshapeVO.getDescr());\r\n iStmt.setInt(7, uldshapeVO.getInternalvolume());\r\n iStmt.setInt(8, uldshapeVO.getInthght());\r\n iStmt.setInt(9, uldshapeVO.getIntleng());\r\n iStmt.setInt(10, uldshapeVO.getIntwdth());\r\n iStmt.setInt(11, uldshapeVO.getMaxgrosswght());\r\n iStmt.setString(12, uldshapeVO.getRating());\r\n iStmt.setInt(13, uldshapeVO.getTarewght());\r\n iStmt.setBytes(14, uldshapeVO.getThumbnail());\r\n iStmt.setTimestamp(15, DbUtil.getCurrentTimeStamp());\r\n iStmt.setString(16, uldshapeVO.getUpdtuser());\r\n iStmt.setLong(17, 0);\r\n\r\n // execute insert SQL stetement\r\n iStmt.executeUpdate();\r\n\r\n ++count;\r\n }\r\n LOG.log(Level.INFO, \"Finished: [{0}] ULDSHAPES loaded\", count);\r\n\r\n DbUtil.cleanupJdbc();\r\n }\r\n catch (IOException ioex) {\r\n LOG.log(Level.SEVERE, \"An IO error occured. The error message is: {0}\", ioex.getMessage());\r\n }\r\n catch (SQLException ex) {\r\n LOG.log(Level.SEVERE, \"An SQL error occured. The error message is: {0}\", ex.getMessage());\r\n }\r\n finally {\r\n if (in != null) {\r\n try {\r\n in.close();\r\n }\r\n catch (IOException e) {\r\n }\r\n }\r\n }\r\n }",
"public static void readSQLFile(){\n\n logger.setLevel(Level.ALL);\n\n // Define Appender\n myAppender = new ConsoleAppender(new SimpleLayout());\n\n logger.addAppender(myAppender);\n\n FileInputStream fs = null;\n try{\n fs= new FileInputStream(FILENAME);\n //We should read the data as a byte sequence and not as strings because the JSON object may contain\n //some characters that are escaped e.g. \\\" will be converted automatically to \" when it is insreted\n //and the JSON cannot be restored if it is read again form the database\n\n String oaiid = \"\", uri = \"\", json = \"\";\n //Use ArrayList of bytes as we don't know the length of each field\n ArrayList<Byte> arrBytes = new ArrayList<Byte>();\n byte b;\n //Read byte by byte from the stream and place it in an ArrayList and then convert it into byte array\n while((b = (byte)fs.read()) != -1){\n try{\n\n char ch = (char)b;\n if(ch == '\\n'){\n if(oaiid.equals(\"\")){\n oaiid = new String(convertToByteArray(arrBytes));\n }\n else if(uri.equals(\"\")){\n uri = new String(convertToByteArray(arrBytes));\n }\n else{\n json = new String(convertToByteArray(arrBytes));\n\n JDBC jdbc = JDBC.getDefaultConnection();\n String sqlStmt = \"INSERT INTO \" + TABLENAME + \"(\" + FIELD_OAIID + \", \" +\n FIELD_RESOURCE + \" , \" + FIELD_JSON_BLOB + \" ) VALUES ( ?, ? , ? ) \";\n\n PreparedStatement stmt = jdbc.prepare(sqlStmt,\"\");\n jdbc.executeStatement(stmt, new String[]{oaiid, uri, json});\n logger.info(\"Record for page # \" + oaiid + \", and resource = \" + uri +\n \" has been successfully inserted into database\");\n oaiid = uri = json = \"\";\n }\n arrBytes = new ArrayList<Byte>();\n\n }\n else\n arrBytes.add(b);\n\n }\n catch(Exception exp){\n logger.info(\"Record for page # \" + oaiid + \" cannot be inserted into database\");\n oaiid = uri = json = \"\";\n }\n\n }\n fs.close();\n }\n catch(Exception exp){\n logger.error(\"SQL file cannot be read due to \" + exp.getMessage());\n }\n }",
"public void uploadDataFromFile()\n {\n String jobSeekerFile = (\"JobSeeker.txt\");\n String jobRecruiterFile = (\"JobRecruiter.txt\");\n String jobFile = (\"Job.txt\");\n String notificationFile = (\"Notification.txt\");\n \n String jobSeekerLines = readFile(jobSeekerFile);\n String jobRecruiterLines = readFile(jobRecruiterFile);\n String jobLines = readFile(jobFile);\n String notificationLines = readFile(notificationFile);\n \n storeJobSeekersToJobSeekerList(jobSeekerLines);\n storeJobRecruitersToJobRecruiterList(jobRecruiterLines);\n storeJobsToJobList(jobLines);\n storeNotificationsToNotificationList(notificationLines);\n \n }",
"public void storeValuesMatl() throws SQLException{ //store MATL values into the database\n \tString mainMatlIdString = Integer.toString(mainMatlId);\n \tString sqlMatl = \"INSERT INTO matl VALUES ('\" + mainMatlIdString + \"', '\" + specificText.getText() + \"', '\" + reactionText.getText() + \"', '\" + specIdText.getText() + \"', '\" +\n \t\t\tidText.getText() + \"', '\" + referenceText.getText() + \"', '\" + reactionsText.getText() + \"', '\" + densityText.getText() + \"', '\" + conductivityText.getText() + \"');\";\n \tConnectionClass connectionClass = new ConnectionClass();\n\t\tConnection connection = connectionClass.getConnection();\n\t\tStatement statement = connection.createStatement();\n\t\tstatement.executeUpdate(sqlMatl);\n }",
"int insertSelective(AvwFileprocess record);",
"public void insert(taxi ta)throws ClassNotFoundException,SQLException\r\n {\n String taxino=ta.getTaxino();\r\n String drivername=ta.getDrivername();\r\n String driverno=ta.getDriverno();\r\n String taxitype=ta.getTaxitype();\r\n String state=ta.getState();\r\n String priority=ta.getPriority();\r\n connection= dbconnection.createConnection();\r\nString sqlString=\"INSERT INTO taxi (taxino,drivername,driverno,taxitype,state,priority) VALUES ('\"+taxino+\"','\"+drivername+\"','\"+driverno+\"','\"+taxitype+\"','\"+state+\"','\"+priority+\"')\";\r\n PreparedStatement preparedStmt = connection.prepareStatement(sqlString); \r\n preparedStmt.execute(); \r\n connection.close();\r\n \r\n }",
"public static void main(String[] args) throws IOException {\n\t\tint id_telefone = 4;\n\t\t\n\t\tFileInputStream fis = new FileInputStream(SAMPLE_CSV_FILE_PATH);\n\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF-8\");\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tCSVReader reader = new CSVReader(isr, ';' , '\"' , 0);\n \tString[] nextLine;\n \t\n// \tWriter writer = Files.newBufferedWriter(Paths.get(\"saida.csv\"));\n// \tCSVWriter csvWriter = new CSVWriter(writer,\n// CSVWriter.DEFAULT_SEPARATOR,\n// CSVWriter.NO_QUOTE_CHARACTER,\n// CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n// CSVWriter.DEFAULT_LINE_END);\n \t\n \tFile file = new File(\"Clientes.sql\");\n \n BufferedWriter fr = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),\"UTF-8\"));\n \t\n \twhile ((nextLine = reader.readNext()) != null) {\n \t\t\n if (nextLine != null) {\n \t\n// \tSystem.out.println(nextLine.length);\n \t\n \tString id = nextLine[0];\n \tif(!id.isEmpty()) {\n \t\n \t\tid = id.substring(5);\n \t\tid = id.replace(\".\", \"\");\n \t\t\n \t\tboolean temCEP = false;\n \t\t\n \t\tif(nextLine.length > 12) temCEP = true;\n \t\t\n \t\tString CEP = \"\";\n \t\tif(temCEP) {\n \t\t CEP = nextLine[12];\n CEP = CEP.replace(\".\", \"\");\n CEP = CEP.replaceAll(\"-\",\"\");\n CEP = CEP.replaceAll(\" \",\"\");\n \t\t};\n \n \t\n \n \tfr.write(\"INSERT INTO hmprojetos.cliente values (\" \n + id \n + \",'\" + nextLine[1]\n \t\t+ \"','\" + nextLine[2]\n \t\t\t\t+ \"','\" + nextLine[3]\n \t\t\t\t\t\t+ \"','\" + nextLine[4]\n \t\t\t\t\t\t\t\t+ \"','\" + nextLine[5]\n \t\t\t\t\t\t\t\t\t\t+ \"','\" + CEP\n \t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[10]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[11]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[6]\n + \"');\\n\");\n \t\n \t//Criação dos INSERTS dos telefones\n \tif(!nextLine[7].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[7]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[8].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[8]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[9].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[9]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \t\n \t}\n }\n \t}\n \t\n \tfr.close();\n \tSystem.out.println(\"Done\");\n\t}",
"public static void importFromCSV(Connection conn, String filename)\n throws SQLException {\n String sql = \"MERGE INTO salesperson(SALESPERSON_ID, FIRST_NAME, LAST_NAME, PHONE, EMAIL, DEALER_ID)\"\n + \" SELECT * FROM CSVREAD('\" + filename + \"')\";\n Statement stmt = conn.createStatement();\n stmt.execute(sql);\n\n }",
"public void storeValues() throws SQLException { //store values into the database\n \tstoreValuesDump();\n \tstoreValuesMatl();\n }",
"static void addRecordToDBQueue(HashMap<String, String> data, String tablename) {\r\n try {\r\n String sql;\r\n StringJoiner sqlRowsWithValues = new StringJoiner(\",\");\r\n StringJoiner sqlValues = new StringJoiner(\",\");\r\n\r\n sql = \"INSERT INTO `\" + tablename + \"` (\";\r\n\r\n for (Map.Entry<String, String> entry : data.entrySet()) {\r\n sqlRowsWithValues.add(\" `\" + entry.getKey() + \"`\");\r\n sqlValues.add(\"'\" + entry.getValue() + \"'\");\r\n }\r\n\r\n Run.statement.addBatch(sql + sqlRowsWithValues.toString() + \")\" + \" VALUES( \" + sqlValues.toString() + \")\");\r\n }\r\n catch (SQLException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"public static void main(String[] args){\n\r\n StringDB Database = new StringDB();\r\n Database.execute(\"INSERT INTO teachers VALUES ( 'Martin_Aumüller' , 'maau' ) ;\");\r\n\r\n\r\n\r\n }",
"public CustomerOrderDataBase(String file) {\r\n this.FILE_NAME = file;\r\n orderInfo = new ArrayList<>(4000000);\r\n console = new Scanner(System.in);\r\n try {\r\n loadFile();\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"@PostMapping(\"/importar3\")\r\n String importar3( Map<String, Object> model) {\r\n\r\n iniciarValores();\r\n\r\n ArrayList<String> output = new ArrayList<String>();\r\n try {\r\n Connection connection = dataSource.getConnection();\r\n\r\n //////////////////////////////////\r\n int numArquivos = 1;\r\n int id = this.ID;\r\n while (numArquivos < NUM_ARQUIVOS) {\r\n\r\n StringBuffer conteudo = new StringBuffer();\r\n\r\n //Abre o arquivo\r\n String arq = ARQUIVO_ENTRADA + MIN_INDICE + \"_\" + MAX_INDICE + \".txt\";\r\n //---Local\r\n //BufferedReader file = new BufferedReader(new FileReader(arq));\r\n //---Local/Remote\r\n String linha=\"\";\r\n ClassPathResource resource = new ClassPathResource(arq);\r\n BufferedReader file = new BufferedReader(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8));\r\n\r\n //Primeira linha soh possui os cabecalhos das colunas\r\n linha = file.readLine();\r\n output.add(linha);\r\n\r\n //Proxima linha\r\n linha = file.readLine();\r\n output.add(linha);\r\n System.out.println(linha);\r\n\r\n String[] campo = new String[NUM_CAMPOS];\r\n StringTokenizer token = null;\r\n int numCampos = 0;\r\n int i = 0;\r\n\r\n //Prepara as variaveis para gravacao na BD\r\n Statement stmt = connection.createStatement();\r\n\r\n //id eh um numero sequencial\r\n while (linha != null) {\r\n ///////\r\n //////\r\n\r\n StringBuffer inserirLinha = new StringBuffer();\r\n inserirLinha.append(\"insert into preensao(\"\r\n + \"ladodominante,\"\r\n + \"dir1, \"\r\n + \"esq1, \"\r\n + \"dir2, \"\r\n + \"esq2, \"\r\n + \"dir3, \"\r\n + \"esq3 \"\r\n\r\n + \") values ( \"\r\n +\r\n \"'Esquerdo', \"\r\n + //ladodominante\r\n \"0, \"\r\n + //dir1\r\n \"0, \"\r\n + //esq1\r\n \"0, \"\r\n + //dir2\r\n \"0, \"\r\n + //esq2\r\n \"0, \"\r\n + //dir3\r\n \"0 \"\r\n + //esq3\r\n \")\");\r\n System.out.println(inserirLinha);\r\n output.add(inserirLinha.toString());\r\n stmt.executeUpdate(inserirLinha.toString());\r\n\r\n //Proxima linha do arquivo de cadastros filtrados\r\n linha = file.readLine();\r\n\r\n System.out.println(id + \"-------\");\r\n output.add(id + \"-------\");\r\n\r\n //Incrementa o numero da ficha\r\n id++;\r\n\r\n }//fim while\r\n\r\n /////////////////////////////\r\n MIN_INDICE = MAX_INDICE + 1;\r\n MAX_INDICE += NUM_INDICES;\r\n numArquivos = MAX_INDICE;\r\n\r\n //Proximo arquivo\r\n }//fim while\r\n\r\n output.add(\"Importacao realizada com sucesso!\");\r\n model.put(\"message\", output);\r\n return \"error\";\r\n\r\n } catch (Exception e) {\r\n output.add(\"Excecao1: \" + e.getMessage());\r\n model.put(\"message\", output);\r\n return \"error\";\r\n }\r\n\r\n }",
"void insert(OrderPreferential record) throws SQLException;",
"public static void insert(String[] _args) {\n\t\tif (_args.length < 2) {\n\t\t\tlog.error(\"Insert is used to insert \"\n\t\t\t\t\t+ \"something into anther object. \"\n\t\t\t\t\t+ \"In this case you have \"\n\t\t\t\t\t+ \"a lot of options. \"\n\t\t\t\t\t+ \"\"\n\t\t\t\t\t+ \"To Insert into a AB object then you must provide a abquery file: *.abq\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (_args[1].equalsIgnoreCase(TYPE) || _args[1].equalsIgnoreCase(TYPES)) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// insert type values into a file. \n\t\t\t\t// this is a utiltity application\n\t\t\t\t\n\t\t\t\tGBIO.insertTypeValues(_args);\n\t\t\t\tFile file = new File(_args[2]);\n\t\t\t\tif (!file.exists()) {\n\t\t\t\t\tGB.print(\"\" + file.getAbsolutePath()\n\t\t\t\t\t\t\t+ \" is not a valid file. \");\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tGBIO.promptUserForFieldsAndTypes(file);\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tString file_name = _args[1];\n\t\tArrayList<String> vals = GB.parseArgs(_args);\n\t\tString path = null;\n\t\tboolean into_kw = false;\n\t\tfor (String s : vals) {\n\t\t\tif (s.equalsIgnoreCase(\"into\")) {\n\t\t\t\tinto_kw = true;\n\t\t\t} else if (into_kw) {\n\t\t\t\tpath = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tArrayList<String> wherec = new ArrayList<String>();\n\t\tinto_kw = false;\n\t\t// {{ parse all where values }}\n\t\tfor (String s : vals) {\n\t\t\tif (s.equalsIgnoreCase(\"where\")) {\n\t\t\t\tinto_kw = true;\n\t\t\t}\n\t\t\tif (into_kw) {\n\t\t\t\twherec.add(s);\n\t\t\t}\n\t\t}\n\t\tArrayList<WhereClause> wcl = GBSearch.buildWhere(wherec);\n\t\tif (path == null) {\n\t\t\tlog.error(\"Failed to find the path object in the command \");\n\t\t\treturn;\n\t\t}\n\t\t/* ********************* */\n\t\t/* switch for load type */\n\t\t/* ********************* */\n\t\tlog.debug(\"path : \" + path);\n\t\t// =======\n\t\ttry {\n\t\t\tString t = file_name.toLowerCase();\n\t\t\tif (t.startsWith(\"ab:/\")) {\n\t\t\t\tlog.error(\"Unimplemented protocol.. in development.\");\n\t\t\t}\n\t\t\tProperties p = null;\n\t\t\tGBNodes nodes = GB.getNodes();\n\t\t\tTNode n = nodes.getNode(file_name);\n\t\t\tFile f = new File(file_name);\n\t\t\tif (n != null && f.exists()) {\n\t\t\t\tlog.error(\"The file exists as a local file and as an AB file. \"\n\t\t\t\t\t\t+ \"You should specify which one explicitly by using one of the following: \"\n\t\t\t\t\t\t+ \"file://\" + file_name + \" or ab://\" + file_name);\n\t\t\t} else if (n == null) {\n\t\t\t\ttry {\n\t\t\t\t\tp = ABQFile.load(f);\n\t\t\t\t} catch (UsageException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tlog.error(\"Faild to load the abq file. \" + file_name);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// load the property file\n\t\t\t\tp = new Properties();\n\t\t\t\tp.setProperty(\"query\", \"*:*\");\n\t\t\t\tif (file_name.startsWith(\"/\"))\n\t\t\t\t\tfile_name = file_name.substring(1);\n\t\t\t\tp.setProperty(\"url\", \"ab://\" + file_name);\n\t\t\t\tString target = LAC.getTarget(n.getLink());\n\t\t\t\tGB.print(\"Table : \" + target);\n\t\t\t\tString exported = \"\";\n\t\t\t\ttry {\n\t\t\t\t\tArrayList<GColumn> cols = GB.getGBTables().describeCore(target, null);\n\t\t\t\t\tfor (GColumn col : cols) {\n\t\t\t\t\t\texported += col.getName() + \",\";\n\t\t\t\t\t}\n\t\t\t\t\tif (exported.lastIndexOf(',') > 0)\n\t\t\t\t\t\texported = exported.substring(0,\n\t\t\t\t\t\t\t\texported.lastIndexOf(','));\n\t\t\t\t} catch (ConnectException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tp.setProperty(\"export\", exported);\n\t\t\t}\n\n\t\t\tString query = p.getProperty(\"query\");\n\t\t\tString url = p.getProperty(\"url\");\n\t\t\tString export = p.getProperty(\"export\");\n\t\t\tString[] exported_values = export.split(\",\\\\s*\");\n\n\t\t\tString insert_module_type = getInsertModuleType(url);\n\t\t\tif (insert_module_type == null) {\n\t\t\t\tGB.printUsage(\"Please provide a valid connect url in the abq file. It appears the url \"\n\t\t\t\t\t\t+ url\n\t\t\t\t\t\t+ \" is not correct, as I can't seem to find a module that will be able to load the data\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// QUERY IS NOT BEING SET AT THE MOMENT NEED TO DO THIS.\n\t\t\tGBModule ins = Mod.getModule(GB.INSERT, insert_module_type, p);\n\t\t\tHashMap<String, Object> param_map = new HashMap<String, Object>();\n\t\t\tparam_map.put(GBModule.EXPORT, exported_values);\n\t\t\tparam_map.put(GBModule.WHERE_CLAUSE, wcl);\n\t\t\tparam_map.put(GBModule.PATH, path);\n\t\t\tparam_map.put(GBModule.QUERY, query);\n\t\t\ttry {\n\t\t\t\tins.exec(param_map);\n\t\t\t} catch (UsageException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException _e) {\n\t\t\t_e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (GBModuleNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tlog.debug(e.getLocalizedMessage());\n\t\t\tGB.print(e.getLocalizedMessage());\n\t\t}\n\n\t}",
"@Override\n\tpublic Optional<String> saveFoodTruckDetails(MultipartFile file) throws Exception {\n\t\t\n\t\tList<FoodTruckEntity> entity=csvParser(file);\n\t\trepo.saveAll(entity);\n\t\treturn Optional.of(entity.size()+\" -Record Inserted Successfully\");\n\t}",
"public static void WriteToFile (String filename, String insert) {\r\n\t\t try {\r\n\t\t FileWriter myWriter = new FileWriter(filename + \".txt\");\r\n\t\t myWriter.write(insert);\r\n\t\t myWriter.close();\r\n\t\t System.out.println(\"Successfully wrote to the file.\");\r\n\t\t } catch (IOException e) {\r\n\t\t System.out.println(\"An error occurred.\");\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }",
"public void processInsertData(MongoDatabase database) throws IOException {\n\t\tFile folder = new File(GenericConstants.folderName);\n\t\tList<String> fileList= listFilesForFolder(folder);\n\t\tfor(String file: fileList) {\n\t\t\tString s = file.substring(0, file.lastIndexOf(\".\"));\n\t\t\tBufferedReader fileInput;\n\t\t\tString header=\"\";\n\t\t\ttry {\n\t\t\t\tfileInput = new BufferedReader(new FileReader(\"Data/\"+file));\n\t\t\t\theader = fileInput.readLine();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcheckAndInsertData(database,GenericConstants.folderName, file, s, header);\n\t\t}\n\t}",
"public void insertIntoTable (String tableName , LinkedList<String> values);",
"public void addToDatabaseRecord(ProductionRecord prodRec, String empUsername) {\n // Database credentials\n String pass = \"\";\n\n InputStream passPath = Controller.class.getResourceAsStream(\"/password.txt\");\n if (passPath == null) {\n System.out.println(\"Could not find password in resources folder\");\n }\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(passPath));\n String line = null;\n while (true) {\n try {\n if (!((line = reader.readLine()) != null)) {\n break;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(line);\n if (line != null) {\n pass = line;\n System.out.println(\"Password login: \" + line);\n break;\n }\n }\n Connection conn = null; //Temporary\n PreparedStatement stmt = null; //Temporary\n\n try {\n // STEP 1: Register JDBC driver\n Class.forName(\"org.h2.Driver\");\n\n //STEP 2: Open a connection\n conn = DriverManager.getConnection(\"jdbc:h2:./res/HR\", \"\",\n pass);\n\n stmt = conn.prepareStatement(\n \"INSERT INTO Productionrecord(production_num, product_id, \"\n + \"serial_num, date_produced, username) VALUES (?, ?, ?, ?, ?)\",\n Statement.RETURN_GENERATED_KEYS);\n stmt.setInt(1, prodRec.getProductionNumber());\n stmt.setInt(2, prodRec.getProductID());\n stmt.setString(3, prodRec.serialnumber);\n stmt.setDate(4, prodRec.getDateProduced());\n stmt.setString(5, empUsername);\n\n stmt.executeUpdate();\n\n stmt.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws IOException {\n\t\tString filePath = \"C:/Users/urban/OneDrive/OD-Documents/DEV/Diginamic/Java/workspaceSTS/recensement-jdbc/resources/recensement.csv\";\n//\t\tRecensement recens = new Recensement(filePath);\n\t\tPath pathFile = Paths.get(filePath);\n\t\t// Récupération des lignes du fichier CSV dans une liste de String\n\t\tList<String> infosBrutesVilles = Files.readAllLines(pathFile);\n\t\tinfosBrutesVilles.remove(0); // Je retire la ligne d'entête\n\n\t\tConnection connection = DbManager.connection();\n\n\t\t// Insertion des lignes du fichier recensement (les villes) dans la table ville\n\t\t// de la DB\n\t\tStatement statement = null;\n\t\ttry {\n\t\t\tstatement = connection.createStatement();\n\t\t\tfor (String line : infosBrutesVilles) {\n\n\t\t\t\t// Conversion de chaque ligne CSV en tableau de String\n\t\t\t\tString[] tabInfosVilles = line.split(\";\");\n\n\t\t\t\t// Récupération des colonnes du CSV qui nous intéressent\n\t\t\t\tString codeRegion = tabInfosVilles[0];\n\t\t\t\tString codeDep = tabInfosVilles[2];\n\t\t\t\tString nomCommune = tabInfosVilles[6];\n\t\t\t\tint populationTotale = Integer.parseInt(tabInfosVilles[9].replaceAll(\" \", \"\"));\n\n\t\t\t\tPreparedStatement prepStatement = connection\n\t\t\t\t\t\t.prepareStatement(\"INSERT INTO \" + \"ville(nom, population) \" + \"VALUES (?, ?)\");\n\n\t\t\t\tprepStatement.setString(1, nomCommune);\n\t\t\t\tprepStatement.setInt(2, populationTotale);\n\n\t\t\t\tprepStatement.executeUpdate();\n\t\t\t}\n\n\t\t\tstatement.close();\n\t\t\tconnection.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Echec de la requête SQL : \" + e.getMessage());\n\t\t}\n\n\t}",
"public void store(ArrayList<String> text){\r\n\t\tcopyText(text);\r\n\t\treadData();\r\n\t}",
"private static void fillTableFromFile(HashTable table) {\n Scanner in;\n try {\n in = new Scanner(new FileInputStream(\"File.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"File 'File.txt' not found\");\n return;\n }\n while (in.hasNext()) {\n table.add(in.next());\n }\n }",
"public DataBase(String file) throws IOException {\n\t\tdataBase = new RandomAccessFile(file, \"rw\");\n\t\tdataBase.writeBytes(\"FEATURE_ID|FEATURE_NAME|FEATURE_CLASS|STATE_ALPHA|\"\n\t\t\t\t+ \"STATE_NUMERIC|COUNTY_NAME|COUNTY_NUMERIC|PRIMARY_LAT_DMS|PRIM_LONG_DMS|\"\n\t\t\t\t+ \"PRIM_LAT_DEC|PRIM_LONG_DEC|SOURCE_LAT_DMS|SOURCE_LONG_DMS|SOURCE_LAT_DEC|\"\n\t\t\t\t+ \"SOURCE_LONG_DEC|ELEV_IN_M|ELEV_IN_FT|MAP_NAME|DATE_CREATED|DATE_EDITED\\n\");\n\t}",
"public void save(Item file) {\n\t\tthis.getItemdao().save(file);\r\n\t}"
] | [
"0.672451",
"0.65687525",
"0.64045775",
"0.6322639",
"0.6194128",
"0.6103234",
"0.60989815",
"0.60793936",
"0.60698956",
"0.6066014",
"0.60494596",
"0.60181737",
"0.59802955",
"0.59555715",
"0.59179175",
"0.5889662",
"0.5861402",
"0.5848009",
"0.58413255",
"0.5832574",
"0.5805527",
"0.5747097",
"0.5729148",
"0.5715726",
"0.5715249",
"0.57047427",
"0.57020414",
"0.5695782",
"0.56902075",
"0.56858325",
"0.56820905",
"0.5675021",
"0.5663185",
"0.5644504",
"0.5623815",
"0.56137675",
"0.5602409",
"0.5596572",
"0.5574556",
"0.55592245",
"0.5546915",
"0.5539175",
"0.5535732",
"0.54990834",
"0.54847777",
"0.54793745",
"0.547058",
"0.5458196",
"0.5458066",
"0.5431813",
"0.54221815",
"0.54150087",
"0.5377785",
"0.5368511",
"0.5365119",
"0.5359382",
"0.5353271",
"0.5348872",
"0.53405493",
"0.53336865",
"0.53172493",
"0.5304598",
"0.53010136",
"0.53008693",
"0.52915317",
"0.52886885",
"0.528768",
"0.5286481",
"0.52807575",
"0.5274191",
"0.5253389",
"0.5252089",
"0.5248264",
"0.5235162",
"0.52321446",
"0.5230929",
"0.52287364",
"0.52225286",
"0.52208954",
"0.5211338",
"0.5209859",
"0.52034867",
"0.5196199",
"0.5176697",
"0.5174168",
"0.51729524",
"0.5167185",
"0.51633024",
"0.51600206",
"0.5153801",
"0.5152553",
"0.5142461",
"0.5138474",
"0.51372516",
"0.5123457",
"0.5116767",
"0.5116108",
"0.5113873",
"0.51135975",
"0.51122135",
"0.51116663"
] | 0.0 | -1 |
Close the FSA model assignment dialog. | public void actionPerformed(ActionEvent actionEvent) {
canvas.setUIInteraction(false);
setVisible(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void close() throws PropertyVetoException {\r\n if(saving) throw new PropertyVetoException(EMPTY_STRING,null);\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE) {\r\n if(saveRequired) {\r\n int optionSelected = CoeusOptionPane.showQuestionDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1258\"), \r\n CoeusOptionPane.OPTION_YES_NO_CANCEL, CoeusOptionPane.DEFAULT_NO);\r\n if(optionSelected == CoeusOptionPane.SELECTION_YES) {\r\n try {\r\n //Case 2427 \r\n if(findEmptyGroup()){ \r\n showSavingForm();\r\n }\r\n canClose = false;\r\n throw new PropertyVetoException(EMPTY_STRING,null);\r\n } catch (CoeusUIException coeusUIException) {\r\n throw new PropertyVetoException(EMPTY_STRING,null);\r\n }\r\n }else if(optionSelected == CoeusOptionPane.SELECTION_CANCEL) {\r\n throw new PropertyVetoException(EMPTY_STRING,null);\r\n }\r\n } \r\n }\r\n mdiForm.removeFrame(CoeusGuiConstants.SPONSORHIERARCHY_BASE_WINDOW);\r\n queryEngine.removeDataCollection(queryKey);\r\n cleanUp();\r\n closed = true; \r\n }",
"public void closeModel() {\n \t\tif (checkForSave(\"<html>Save changes before closing?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tresetMouseState();\r\n \r\n \t\t// clear undo history\r\n \t\tgraph.getModel().removeUndoableEditListener(undoProxy);\r\n \t\tundoProxy.discardAllEdits();\r\n \t\t// end\r\n \t\t// graph.setModel(null); //wreaks quite a bit of havoc\r\n \t\tmainWindow.removeGraph();\r\n \t\tgraph = null;\r\n \t\tcloseModel.setEnabled(false);\r\n \t\tsaveModel.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tsaveModelAs.setEnabled(false);\r\n \t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\tcomponentBar.enableButtonGroup(0, false);\r\n \t\tsetConnect.setEnabled(false);\r\n \t\tactionCopy.setEnabled(false);\r\n \t\tactionCut.setEnabled(false);\r\n \t\tactionPaste.setEnabled(false);\r\n \t\tactionDelete.setEnabled(false);\r\n \t\t// FG\r\n \t\tactionSetRight.setEnabled(false);\r\n \t\tactionRotate.setEnabled(false);\r\n \r\n \t\tsetSelect.setEnabled(false);\r\n \t\tsimulate.setEnabled(false);\r\n \t\tsolveAnalitic.setEnabled(false);\r\n \t\tsolveApp.setEnabled(false);\r\n \t\teditUserClasses.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tswitchToExactSolver.setEnabled(false);\r\n \t\t// Disables the botton to start simualtion\r\n \t\tsimulate.setEnabled(false);\r\n \t\teditSimParams.setEnabled(false);\r\n \t\teditPAParams.setEnabled(false);\r\n \t\ttakeScreenShot.setEnabled(false);\r\n \t\t// Disables show results button and measure definition\r\n \t\tshowResults.setSelected(false);\r\n \t\tshowResults.setEnabled(false);\r\n \t\tif (resultsWindow != null) {\r\n \t\t\tresultsWindow.dispose();\r\n \t\t}\r\n \t\tresultsWindow = null;\r\n \t\topenedArchive = null;\r\n \t\tmodel = new JMODELModel();\r\n \t\tmainWindow.updateTitle(null);\r\n \t\t// Free same resources by forcing a garbage collection\r\n \t\tSystem.gc();\r\n \t}",
"private void close(){\r\n boolean saveRequired = false;\r\n String messageKey = null;\r\n updateComments();\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE && isSaveRequired()) {\r\n saveRequired = true;\r\n if(xmlGenerationRequired()){\r\n messageKey = XML_OUT_OF_SYNC;\r\n }else{\r\n messageKey = WANT_TO_SAVE_CHANGES;\r\n }\r\n }else if(getFunctionType() != TypeConstants.DISPLAY_MODE && xmlGenerationRequired()) {\r\n saveRequired = true;\r\n messageKey = XML_OUT_OF_SYNC;\r\n }\r\n \r\n if(saveRequired) {\r\n int selection = CoeusOptionPane.showQuestionDialog(coeusMessageResources.parseMessageKey(messageKey), CoeusOptionPane.OPTION_YES_NO_CANCEL, CoeusOptionPane.DEFAULT_YES);\r\n if(selection == CoeusOptionPane.SELECTION_YES){\r\n save(true);\r\n }else if(selection == CoeusOptionPane.SELECTION_NO) {\r\n subAwardDlgWindow.dispose();\r\n }\r\n }else{\r\n subAwardDlgWindow.dispose();\r\n }\r\n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"private void performWindowClosing() {\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE){\r\n if( isSaveRequired() ){\r\n int option = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n switch( option ){\r\n case ( JOptionPane.YES_OPTION ):\r\n try{\r\n saveRatesData();\r\n }catch (CoeusUIException coeusUIException){\r\n //Validation failed\r\n }\r\n break;\r\n case ( JOptionPane.NO_OPTION ):\r\n cleanUp();\r\n dlgRates.dispose();\r\n break;\r\n }\r\n }else{\r\n dlgRates.dispose();\r\n }\r\n }else{\r\n dlgRates.dispose(); \r\n }\r\n \r\n }",
"private void close() {\n\t\t\t\t// name.getScene().getWindow().hide();\n\t\t\t\tdialogStage.fireEvent(new WindowEvent(dialogStage,WindowEvent.WINDOW_CLOSE_REQUEST));\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"public void close() {\n getCloseButton().click();\n }",
"void close() {\n\t\t\n\t\tthis.frame.setVisible(false);\n\t\tthis.frame.dispose();\n\t\t\n\t}",
"private void close()\n {\n value.setValueString( input.getText() );\n // check to see if the value is valid:\n if( value.isValid() )\n {\n // if so, then set accepted and get rid of window:\n accepted = true;\n dispose();\n }\n else\n {\n // otherwise, throw an error to the user:\n DialogError emsg = new DialogError(this,\" Invalid value, try again. \");\n }\n }",
"private void jbExitActionPerformed(java.awt.event.ActionEvent evt) {\n frame=new JFrame(\"Exit\");\n if(JOptionPane.showConfirmDialog(frame,\"Confirm if you want to exit\",\"Point of Sale-Supplier\",\n JOptionPane.YES_NO_OPTION) == JOptionPane.YES_NO_OPTION){\n this.dispose();\n\n }//GEN-LAST:event_jbExitActionPerformed\n }",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"@Override\n\tpublic void closeWindow() {\n\t\tfrmShip.dispose();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tKIDSRunMeasurementEvalJDialog.this.dispose();\n\t\t\t}",
"@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}",
"public void close() {\n\t\tframe.setVisible(false);\n\t}",
"public void close() {\n closePopup();\n }",
"public void close()\n {\n\n window.close();\n try\n {\n screen.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"public static void closeNew() {\n\t\tDIALOG.dispose();\n\t\tDIALOG = null;\n\t}",
"public void close()\r\n {\r\n myModel.deleteObserver(this);\r\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (model== null) return;\n\t\t\t\n\t\t\tepisodeView.clearInputFields();\n\t\t\t//TODO: close window in this listener\n\t\t\tepisodeView.frame.dispose();\n\t\t}",
"void CloseOkDialog();",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tmgr.save();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tdispose();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}",
"private void closeProgram()\n {\n window.close();\n }",
"private void performCloseAction() throws Exception{\r\n int option = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n JOptionPane.YES_OPTION);\r\n switch( option ) {\r\n case (JOptionPane.YES_OPTION ):\r\n saveFormData();\r\n if(isOkClicked()){\r\n dlgAwardUploadDoc.dispose();\r\n }\r\n break;\r\n case(JOptionPane.NO_OPTION ):\r\n dlgAwardUploadDoc.dispose();\r\n break;\r\n default:\r\n requestDefaultFocusToComp();\r\n break;\r\n }\r\n }",
"public void closeWindow() {\n\t\tgetDriver().close();\n\n\t}",
"public void close() {\r\n\t\tframe.dispose();\r\n\t}",
"private void close() {\n this.frame.setVisible(false);\n this.frame.remove(this);\n this.frame.setTitle(null);\n this.frame.add(this.controller);\n this.frame.revalidate();\n this.frame.pack();\n this.frame.setLocationRelativeTo(null);\n this.frame.setVisible(true);\n }",
"public void clickClose() {\n Stage stage = (Stage) btnClose.getScene().getWindow();\n stage.close();\n }",
"public void close() {\n getMainApplication().getMainWindow().removeWindow(popupWindow);\n }",
"@Action\n public void Close() {\n // just close the Frame\n // This will cause setVisible() in the constructor to return\n setVisible(false);\n \n // show reminder to reference my paper\n String str = \"If you like this program, please cite:\\n\"\n + \"K. P. Pernstich\\n\"\n + \"Instrument Control (iC) – An Open-Source Software to Automate Test Equipment\\n\"\n + \"Journal of Research of the National Institute of Standards and Technology\\n\"\n + \"Volume 117 (2012) http://dx.doi.org/10.6028/jres.117.010\";\n \n JOptionPane.showMessageDialog(null, str,\n \"Humble request\", JOptionPane.INFORMATION_MESSAGE, m_iC_Properties.getLogoSmall());\n }",
"public void close(){\r\n \tStage stage = (Stage) exit.getScene().getWindow();\r\n\t stage.close();\r\n\t main.browserInteraction.close();\r\n }",
"public void closeWindow() {\r\n Stage stage = (Stage) cancelButton.getScene().getWindow();\r\n stage.close();\r\n }",
"public void close()\n {\n setVisible (false);\n dispose();\n }",
"@Override\n public void exit() {\n model.exit();\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tDBSAApplication.dbsaJFrame.dispose();\r\n\t\t\t\t}",
"public void closeView() {\n\t\tframeSystem.dispose();\n\t}",
"public static void closeSaveChangesDialog() {\n\t\twaitForSwing();\n\t\tOptionDialog dialog = getDialogComponent(OptionDialog.class);\n\t\tif (dialog == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString title = dialog.getTitle();\n\t\tboolean isSavePrompt = StringUtils.containsAny(title, \"Changed\", \"Saved\");\n\t\tif (!isSavePrompt) {\n\t\t\tthrow new AssertionError(\"Unexpected dialog with title '\" + title + \"'; \" +\n\t\t\t\t\"Expected a dialog alerting to program changes\");\n\t\t}\n\n\t\tif (StringUtils.contains(title, \"Program Changed\")) {\n\t\t\t// the program is read-only or not in a writable project\n\t\t\tpressButtonByText(dialog, \"Continue\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (StringUtils.contains(title, \"Save Program?\")) {\n\t\t\tpressButtonByText(dialog, \"Cancel\");\n\t\t\treturn;\n\t\t}\n\n\t\tthrow new AssertionError(\"Unexpected dialog with title '\" + title + \"'; \" +\n\t\t\t\"Expected a dialog alerting to program changes\");\n\t}",
"@FXML private void handleCancel() {\r\n\t\tvastaus = null;\r\n\t\tModalController.closeStage(textVastaus);\r\n\t}",
"public void onCloseMeeting() {\n controller.closeMeeting();\n }",
"public void closeWindow() {\n\t\tframeUnableToBuyPopup.dispose();\n\t}",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void closeTestGenerator() {\n\t\ttry {\n\t\t\ttutorControlFrame.dispose();\n\t\t\tTutorControlGui tutorControl = new TutorControlGui();\n\t\t\ttutorControl.showDatabase();\n\t\t} catch(Exception e) {\n\t\t\tshowMessage(\"Could not update Databases.\");\n\t\t}\n\t}",
"@FXML void handleExitForm()\n {\n Stage stage = (Stage) exitForm.getScene().getWindow();\n stage.close();\n }",
"void close() {\n boolean closeable = true;\n if (progressPanel.getStatus() != ReportStatus.CANCELED && progressPanel.getStatus() != ReportStatus.COMPLETE && progressPanel.getStatus() != ReportStatus.ERROR) {\n closeable = false;\n }\n if (closeable) {\n actionListener.actionPerformed(null);\n } else {\n int result = JOptionPane.showConfirmDialog(this,\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.sureToClose.msg\"),\n NbBundle.getMessage(this.getClass(),\n \"ReportGenerationPanel.confDlg.title.closing\"),\n JOptionPane.YES_NO_OPTION);\n if (result == 0) {\n progressPanel.cancel();\n actionListener.actionPerformed(null);\n }\n }\n }",
"private void closeActionPerformed(java.awt.event.ActionEvent evt) {\n this.dispose();\n }",
"private void dataReservationTypeCancelHandle() {\n reservationController.dialogStage.close();\r\n }",
"@Override\r\n\t\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\tjdbcoperate.closeJDBCOperate();\r\n\t\t\tstudent.dispose();\r\n\t\t\tjf.setVisible(true);\r\n\t\t}",
"private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n scheduleSelected = false;\r\n setVisible(false);\r\n dispose();\r\n }",
"void close() {\r\n this.setVisible(false);\r\n this.dispose();\r\n }",
"protected void closeDialog() { setVisible(false); dispose(); }",
"public void close(){\n this.boardController.close();\n }",
"@FXML\r\n protected void close_openDataStage() {\r\n Stage stage = (Stage) btnClose.getScene().getWindow();\r\n stage.close();\r\n }",
"public static void closeMe() {\n window.close();\n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"public void closeWindow() {\n isCancelled = true;\n dialogStage.close();\n }",
"private void buttonOkJDialogActionPerformed(ActionEvent e) {\n IdFail.dispose();\n }",
"protected void closeDialogCancel() {\n dispose();\n }",
"private void window_Closing(WindowEvent e) {\n\t\tif(subjectListFrm!=null) {\n\t\t\tsubjectListFrm.setVisible(true);\n\t\t}\n\t\tthis.dispose();\n\t}",
"public static void close(){\r\n if (showingCloseDialog)\r\n return;\r\n showingCloseDialog = true;\r\n int result = JOptionPane.showConfirmDialog(mainFrame, \"Close Jin?\", \"Confirm\", JOptionPane.OK_CANCEL_OPTION);\r\n showingCloseDialog = false;\r\n switch (result){\r\n case JOptionPane.CANCEL_OPTION:\r\n case JOptionPane.CLOSED_OPTION:\r\n return;\r\n case JOptionPane.OK_OPTION:\r\n Jin.exit();\r\n break;\r\n default:\r\n System.err.println(\"Unknown option type: \"+result);\r\n }\r\n }",
"private void kill () {\n\t\t/*if (savingDlg != null) savingDlg.dispose();\n\t\tdialog.dispose();*/\n\t\tEngine.kill();\n\t}",
"protected void closeDialogOk() {\n dispose();\n }",
"public void dispose()\n {\n if(petal_model.getSuperBox().isRootBox()) {\n int option = JOptionPane.showConfirmDialog(null,\n \"Do you like to save before quitting?\",\n \"Question\" ,\n JOptionPane.YES_NO_CANCEL_OPTION,\n JOptionPane.QUESTION_MESSAGE);\n if (option == JOptionPane.YES_OPTION) {\n save(petal_model.getSuperBox().getParentModel() == null);\n super.dispose();\n }\n else if (option == JOptionPane.NO_OPTION) {\n super.dispose();\n }\n\n } else {\n setVisible(false);\n }\n }",
"@FXML\n public void exit(){\n try {\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Stage stage = (Stage) cancelButton.getScene().getWindow();\n stage.close();\n PassableData.setIsModifyPart(false);\n }",
"public void dismiss() {\r\n\t\tmWindow.dismiss();\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogExit();\r\n\t\t\t}",
"private static void Close () {\n frame.setVisible (false);\n frame.dispose();\n System.exit(0);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n guiD.closeWindow(rootPanel);\n }",
"@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t\t\t{\n\t\t\t\t\t\tframe.dispose();\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t\t\t{\n\t\t\t\t\t\tframe.dispose();\r\n\t\t\t\t\t}",
"private void close() {\r\n this.dispose();\r\n MainClass.gamesPlayed++;\r\n Examples2018.menu();\r\n }",
"public void quit() {\n model.updateFile();\n }",
"public void close() \r\n {\r\n ((GrantsByPIForm) getControlledUI()).setVisible(false);\r\n }",
"public static void closePopupWindow() {\n mPopupStage.close();\n }",
"public void close() {\r\n\t\tStage stage = (Stage) rootPane.getScene().getWindow();\r\n stage.close();\r\n\t}",
"public static void close() {\n\t\tfindWindow();\n\t\t\n\t\tuser32.SendMessageA(handle, CLOSE_COMMAND, 0x00000000, 0x00000000);\n\t}",
"public void close() {\n\t\tgetFrame().dispatchEvent(new WindowEvent(getFrame(), WindowEvent.WINDOW_CLOSING));\n\t\t\n\t}",
"@FXML\n private void selectedBtnClose(ActionEvent event){\n Stage exit = (Stage)btnClose.getScene().getWindow();\n exit.close();\n }",
"@FXML\n public void closeProgram() {\n Stage stage = (Stage) exitButton.getScene().getWindow();\n // do what you have to do\n saveMessagesHistory();\n stage.close();\n controller.shutdown();\n System.exit(0);\n }",
"private void confirmClose(){\n\tJFrame f = new JFrame();\n\tint n = JOptionPane.showConfirmDialog(\n\t\t\t\t\t f,\n\t\t\t\t\t \"Are you sure you want to quit?\\n\"\n\t\t\t\t\t + \"Any unsaved changes\"\n\t\t\t\t\t + \" will be lost.\",\n\t\t\t\t\t \"Confirm Quit\",\n\t\t\t\t\t JOptionPane.YES_NO_OPTION);\n\tif (n == JOptionPane.YES_OPTION)\n\t System.exit(0);\n\tif (n == JOptionPane.NO_OPTION)\n\t f.dispose();\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\t\t\t\t\t\t\tPlayer winningPlayer = model\r\n\t\t\t\t\t\t\t\t\t\t\t.getWinningPlayer();\r\n\r\n\t\t\t\t\t\t\t\t\t// If a winning player was found, present\r\n\t\t\t\t\t\t\t\t\t// the players result to the user with a\r\n\t\t\t\t\t\t\t\t\t// message box\r\n\t\t\t\t\t\t\t\t\tif (winningPlayer != null)\r\n\t\t\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\t\t\t\t\tnull,\r\n\t\t\t\t\t\t\t\t\t\t\t\twinningPlayer.getName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" won the game with \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ winningPlayer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getScore()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" points.\");\r\n\r\n\t\t\t\t\t\t\t\t\t// Change visible window to setup\r\n\t\t\t\t\t\t\t\t\tsetup.setVisible(true);\r\n\t\t\t\t\t\t\t\t\tview.setVisible(false);\r\n\t\t\t\t\t\t\t\t}",
"@Override\n public void close()\n {\n MazeInfo mi = (MazeInfo) mOpenMazes.getList().getSelectedValue();\n if (mi != null)\n {\n if (!mi.isMutable())\n {\n JOptionPane.showMessageDialog(this,\n \"This maze cannot be closed\",\n \"Maze Close\",\n JOptionPane.INFORMATION_MESSAGE);\n return;\n }\n if (mi.isDirty())\n saveCurrent();\n MazeInfoModel mim = Main.getPrimaryFrameInstance().getMazeInfoModel();\n JList list = mOpenMazes.getList();\n list.setSelectedIndex(list.getSelectedIndex() - 1);\n mim.close(mi);\n }\n }",
"@Override\n public void actionPerformed(ActionEvent arg0)\n {\n frame.dispose();\n }",
"private void dialogExit() {\n\t\tint result = showConfirmDialog(frmRentCalc, \"Вы действительно ходите выйти?\", \"Окно подтверждения\", YES_NO_OPTION, QUESTION_MESSAGE);\r\n\t\tif (result == YES_OPTION) {\r\n\t\t\tSystem.exit(0);\r\n\t\t} else {\r\n\t\t\tif (result == NO_OPTION) {\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void closeApp(){\n Boolean answer = ConfirmBox.display(\"ALERT!!\", \"Sure you want to exit?\");\n if (answer)\n window.close();\n }",
"public boolean onClose() {\n\t\topenScreen(new Noticias());\n\t\treturn true ;\n\t}",
"private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}",
"public void close() {\n Stage stage = (Stage) closeButton.getScene().getWindow();\n stage.close();\n }",
"public void finish(){\n \t\tString congrats=\"Congratulations, you won in \" + model.getNumberOfSteps()+\" steps! \";\n \t\tJFrame frame = new JFrame();\n\t\tString[] options = new String[2];\n\t\toptions[0] = new String(\"Play again\");\n\t\toptions[1] = new String(\"Quit\");\n\t\tint result= JOptionPane.showOptionDialog(frame.getContentPane(),congrats,\"Won! \", 0,JOptionPane.INFORMATION_MESSAGE,null,options,null);\n\t\tif (result == JOptionPane.NO_OPTION) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tif (result == JOptionPane.YES_OPTION) {\n\t\t\t\t\tcontroller.reset(); }\n \t}",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tframe.dispose();\n\n\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"@FXML\n\tvoid closeHelp(ActionEvent event) throws IOException {\n\t\tStage stage = (Stage) closeHelp.getScene().getWindow();\n\t stage.close();\n\t}",
"@FXML\n public void closeSecund(ActionEvent event){\n Node source = (Node) event.getSource();\n // Obtenim la finestra associada a aquest objecte\n Stage stage = (Stage) source.getScene().getWindow();\n // tanquem la finestra\n stage.close();\n }",
"private void endingAction() {\n this.detectChanges();\n if (this.isModifed) {\n //System.out.println(JOptionPane.showConfirmDialog(null, \"Do you want to save unsaved changes?\", \"Hey User!\", JOptionPane.YES_NO_CANCEL_OPTION));\n switch (JOptionPane.showConfirmDialog(null, \"Do you want to save current data?\", \"Hey User!\", JOptionPane.YES_NO_CANCEL_OPTION)) {\n case 0: {\n if (this.file != null) {\n INSTANCE.saveData();\n INSTANCE.dispose();\n System.exit(0);\n break;\n }\n }\n\n case 1: {\n INSTANCE.dispose();\n System.exit(0);\n break;\n }\n }\n\n //cancel op 2\n //no op 1\n //yes op 0\n } else {\n INSTANCE.dispose();\n System.exit(0);\n }\n }",
"private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\n setVisible(false); \n actionCommand = false;\n dispose();\n }",
"public void close() {\n\t\tSystem.out.println(\"Closed!\");\n\t\tStage stage = (Stage)gameScene.getWindow();\n\t\tstage.close();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFrame mainF = new Mode_decide(); \n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}"
] | [
"0.6686874",
"0.6685093",
"0.66523194",
"0.6505826",
"0.6504705",
"0.6363191",
"0.6272564",
"0.6228983",
"0.6175351",
"0.6134619",
"0.61167383",
"0.6106954",
"0.60981745",
"0.6088162",
"0.6076926",
"0.605498",
"0.6042162",
"0.6040001",
"0.60361487",
"0.60335284",
"0.60311335",
"0.6026385",
"0.6023111",
"0.60206336",
"0.6018726",
"0.6016596",
"0.6011573",
"0.60051984",
"0.5999883",
"0.5999119",
"0.5972778",
"0.5972134",
"0.5971206",
"0.59643745",
"0.5961006",
"0.59523636",
"0.595179",
"0.5941645",
"0.5940566",
"0.59328264",
"0.591243",
"0.59102404",
"0.5893454",
"0.58931553",
"0.5878312",
"0.5866024",
"0.5855457",
"0.5852468",
"0.5852091",
"0.5842997",
"0.584239",
"0.5841397",
"0.5840993",
"0.5838346",
"0.5833286",
"0.5828797",
"0.582294",
"0.5820931",
"0.581447",
"0.5806803",
"0.58024734",
"0.5802099",
"0.5800966",
"0.57902354",
"0.5781156",
"0.5771109",
"0.5769912",
"0.5766352",
"0.57640404",
"0.5760149",
"0.57488245",
"0.5744266",
"0.57440567",
"0.57440567",
"0.5735845",
"0.5730952",
"0.5729572",
"0.57295644",
"0.5726497",
"0.5711831",
"0.5707304",
"0.5694346",
"0.5690596",
"0.5689589",
"0.56882477",
"0.5685091",
"0.5682467",
"0.5682058",
"0.568147",
"0.5680892",
"0.5677133",
"0.5677059",
"0.56738347",
"0.56734955",
"0.5670255",
"0.5661092",
"0.5651359",
"0.5646555",
"0.56412387",
"0.56364876",
"0.56249684"
] | 0.0 | -1 |
When the main window of IDES is activated because the user clicked on it, cancel the FSA model assignment and close the FSA model assignment dialog. | public void windowActivated(WindowEvent arg0) {
if (arg0.getOppositeWindow() != null && !Hub.getUserInterface().isWindowActivationAfterNoticePopup(arg0)) {
instance().onEscapeEvent();
} else {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
instance().requestFocus();
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cancel() { Common.exitWindow(cancelBtn); }",
"@FXML // This method is configure from fxml file\n private void onCancelButtonClick() {\n this.selectableItem.removeListener(changeListener); // remove the listener when window is closed\n assert this.window != null;\n // close the dialog\n this.window.close();\n }",
"private void performWindowClosing() {\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE){\r\n if( isSaveRequired() ){\r\n int option = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n switch( option ){\r\n case ( JOptionPane.YES_OPTION ):\r\n try{\r\n saveRatesData();\r\n }catch (CoeusUIException coeusUIException){\r\n //Validation failed\r\n }\r\n break;\r\n case ( JOptionPane.NO_OPTION ):\r\n cleanUp();\r\n dlgRates.dispose();\r\n break;\r\n }\r\n }else{\r\n dlgRates.dispose();\r\n }\r\n }else{\r\n dlgRates.dispose(); \r\n }\r\n \r\n }",
"private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFrame mainF = new Mode_decide(); \n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFrame mainF = new Mode_decide(); \n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}",
"private void dataReservationTypeCancelHandle() {\n reservationController.dialogStage.close();\r\n }",
"void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }",
"private void close(){\r\n boolean saveRequired = false;\r\n String messageKey = null;\r\n updateComments();\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE && isSaveRequired()) {\r\n saveRequired = true;\r\n if(xmlGenerationRequired()){\r\n messageKey = XML_OUT_OF_SYNC;\r\n }else{\r\n messageKey = WANT_TO_SAVE_CHANGES;\r\n }\r\n }else if(getFunctionType() != TypeConstants.DISPLAY_MODE && xmlGenerationRequired()) {\r\n saveRequired = true;\r\n messageKey = XML_OUT_OF_SYNC;\r\n }\r\n \r\n if(saveRequired) {\r\n int selection = CoeusOptionPane.showQuestionDialog(coeusMessageResources.parseMessageKey(messageKey), CoeusOptionPane.OPTION_YES_NO_CANCEL, CoeusOptionPane.DEFAULT_YES);\r\n if(selection == CoeusOptionPane.SELECTION_YES){\r\n save(true);\r\n }else if(selection == CoeusOptionPane.SELECTION_NO) {\r\n subAwardDlgWindow.dispose();\r\n }\r\n }else{\r\n subAwardDlgWindow.dispose();\r\n }\r\n }",
"protected void actionPerformedCancel ()\n {\n Preferences rootPreferences = Preferences.systemRoot ();\n PreferencesTableModel rootPrefTableModel = new PreferencesTableModel (rootPreferences);\n rootPrefTableModel.undo ();\n Preferences userPreferences = Preferences.userRoot ();\n PreferencesTableModel userPrefTableModel = new PreferencesTableModel (userPreferences);\n userPrefTableModel.undo ();\n this.setVisible (false);\n this.dispose ();\n }",
"public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tInvoker.getInstance().executeCommand(\n\t\t\t\t\tnew GraphicElementEditCancelCommand(model, dialog.getGraphicElement(), previousShapes));\n\t\t\tGraphicElementInvoker.getInstance().abortSession();\n\t\t\tdialog.setVisible(false);\n\t\t}",
"@Override\r\n public void onEscapeEvent() {\r\n Hub.getMainWindow().removeWindowListener(cancelOnFocusLost);\r\n openModelsCombo.removeActionListener(onSelectModel);\r\n openModelsCombo.removeAllItems();\r\n templatesCombo.removeActionListener(onSelectTemplate);\r\n templatesCombo.removeAllItems();\r\n canvas.setUIInteraction(false);\r\n setVisible(false);\r\n }",
"@FXML private void handleCancel() {\r\n\t\tvastaus = null;\r\n\t\tModalController.closeStage(textVastaus);\r\n\t}",
"private void closeProgram() {\n\t\tSystem.out.println(\"Cancel Button clicked\");\n\t\tif (ConfirmBox.display( \"Exit\", \"Are you sure you want to exit?\")) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"@FXML public void handleCancel() {\n\t\tSystem.out.println(\"Cancel clicked!\");\n\t\tClassifiersWindowsManager.stage.close();\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\r\n\t\t\t\tFirstWindow.main(null);\r\n\t\t\t}",
"public void actionPerformed(ActionEvent L_AE) {\n\t\t\t\tsetVisible(false);\n\t\t\t\tdispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"@FXML\n\tpublic void cancelOption(ActionEvent event) throws IOException, SQLException { //CANCEL\n\t\tif (Values.cancelWarning()){\n\t\t\tValues.cancelForm();\n\t\t\tParent introLayout = FXMLLoader.load(getClass().getResource(\"Intro.fxml\")); //Get the next layout\n\t\t\tScene introScene = new Scene(introLayout, 870, 710); //Pass the layout to the next scene\n\t\t\tStage mainWindow = (Stage)((Node)event.getSource()).getScene().getWindow(); //Get the parent window\n\t\t\t\n\t\t\t\n\t\t\tmainWindow.setScene(introScene);\n\t\t\tmainWindow.show();\n\t\t}\n }",
"public void onCancelClicked() {\r\n // Get a reference to the stage\r\n Stage stage = (Stage) btnCancel.getScene().getWindow();\r\n // Close the window\r\n stage.close();\r\n }",
"private void kill () {\n\t\t/*if (savingDlg != null) savingDlg.dispose();\n\t\tdialog.dispose();*/\n\t\tEngine.kill();\n\t}",
"public void cancelDialog() {dispose();}",
"public void windowClosing(WindowEvent e)\r\n {\n if(panel.hasActiveDownloads())\r\n {\r\n int choice = JOptionPane.showConfirmDialog(frameInstance, \"Cancel all active downloads?\",\r\n \"Active downloads\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\r\n if (choice == JOptionPane.CANCEL_OPTION)\r\n return;\r\n\r\n // Cancel active downloads and clear the monitor panel\r\n panel.cancelActiveDownloads();\r\n panel.clearInactiveDownloads();\r\n }\r\n // Clear sector selector\r\n panel.clearSector();\r\n // Close now\r\n setVisible(false);\r\n }",
"public void closeModel() {\n \t\tif (checkForSave(\"<html>Save changes before closing?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tresetMouseState();\r\n \r\n \t\t// clear undo history\r\n \t\tgraph.getModel().removeUndoableEditListener(undoProxy);\r\n \t\tundoProxy.discardAllEdits();\r\n \t\t// end\r\n \t\t// graph.setModel(null); //wreaks quite a bit of havoc\r\n \t\tmainWindow.removeGraph();\r\n \t\tgraph = null;\r\n \t\tcloseModel.setEnabled(false);\r\n \t\tsaveModel.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tsaveModelAs.setEnabled(false);\r\n \t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\tcomponentBar.enableButtonGroup(0, false);\r\n \t\tsetConnect.setEnabled(false);\r\n \t\tactionCopy.setEnabled(false);\r\n \t\tactionCut.setEnabled(false);\r\n \t\tactionPaste.setEnabled(false);\r\n \t\tactionDelete.setEnabled(false);\r\n \t\t// FG\r\n \t\tactionSetRight.setEnabled(false);\r\n \t\tactionRotate.setEnabled(false);\r\n \r\n \t\tsetSelect.setEnabled(false);\r\n \t\tsimulate.setEnabled(false);\r\n \t\tsolveAnalitic.setEnabled(false);\r\n \t\tsolveApp.setEnabled(false);\r\n \t\teditUserClasses.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tswitchToExactSolver.setEnabled(false);\r\n \t\t// Disables the botton to start simualtion\r\n \t\tsimulate.setEnabled(false);\r\n \t\teditSimParams.setEnabled(false);\r\n \t\teditPAParams.setEnabled(false);\r\n \t\ttakeScreenShot.setEnabled(false);\r\n \t\t// Disables show results button and measure definition\r\n \t\tshowResults.setSelected(false);\r\n \t\tshowResults.setEnabled(false);\r\n \t\tif (resultsWindow != null) {\r\n \t\t\tresultsWindow.dispose();\r\n \t\t}\r\n \t\tresultsWindow = null;\r\n \t\topenedArchive = null;\r\n \t\tmodel = new JMODELModel();\r\n \t\tmainWindow.updateTitle(null);\r\n \t\t// Free same resources by forcing a garbage collection\r\n \t\tSystem.gc();\r\n \t}",
"public void onCancel() {\r\n parentController.switchView();\r\n }",
"private void performWindowClosing() {\r\n if (dataChanged) {\r\n try {\r\n int result = CoeusOptionPane.showQuestionDialog(\r\n coeusMessageResources.parseMessageKey(\r\n \"saveConfirmCode.1002\"),\r\n CoeusOptionPane.OPTION_YES_NO_CANCEL,\r\n CoeusOptionPane.DEFAULT_YES);\r\n if (result == JOptionPane.YES_OPTION) {\r\n saveRolodexInfo();\r\n }else if (result == JOptionPane.NO_OPTION){\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }catch(Exception e){\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n }else {\r\n releaseUpdateLock();\r\n dlgWindow.dispose();\r\n }\r\n }",
"public void cancel ()\r\n\t{\r\n\t\tmyFrame.dispose();\r\n\t}",
"@FXML\n public void exit(){\n try {\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Stage stage = (Stage) cancelButton.getScene().getWindow();\n stage.close();\n PassableData.setIsModifyPart(false);\n }",
"public void onCancelClicked() {\n close();\n }",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\n\t\t// }\n\t}",
"public void onCancelButtonClick() {\n close();\n }",
"private void closeProgram(){\n boolean answer = ConfirmBox.display(\"Title\", \"Sure you want to exit?\");\n if(answer==true){\n window.close();\n }\n }",
"private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog\r\n scheduleSelected = false;\r\n setVisible(false);\r\n dispose();\r\n }",
"private void actionOnClicExit() {\r\n\t\tframe.setVisible(false);\r\n\t\tframe.dispose();\r\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (model== null) return;\n\t\t\t\n\t\t\tepisodeView.clearInputFields();\n\t\t\t//TODO: close window in this listener\n\t\t\tepisodeView.frame.dispose();\n\t\t}",
"private void exitHandler() {\n JOptionPane.showMessageDialog(this.getParent(), \"Thanks for leaving\"\n + \", quitter! >:(\");\n Component possibleFrame = this;\n while (possibleFrame != null && !(possibleFrame instanceof JFrame)) {\n possibleFrame = possibleFrame.getParent();\n }\n JFrame frame = (JFrame) possibleFrame;\n frame.setVisible(false);\n frame.dispose();\n }",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"private void jbExitActionPerformed(java.awt.event.ActionEvent evt) {\n frame=new JFrame(\"Exit\");\n if(JOptionPane.showConfirmDialog(frame,\"Confirm if you want to exit\",\"Point of Sale-Supplier\",\n JOptionPane.YES_NO_OPTION) == JOptionPane.YES_NO_OPTION){\n this.dispose();\n\n }//GEN-LAST:event_jbExitActionPerformed\n }",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"private void cancel(ActionEvent e){\r\n // Clear textfields\r\n clearFields();\r\n // If coming from appt management screen, go back there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n // Otherwise, set the current client to null and go to the landing page \r\n else {\r\n currClient = null;\r\n LandingPage.returnToLandingPage();\r\n }\r\n }",
"@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}",
"@FXML\n void cancelEventEdit () {\n\n// exits to Menu\n exitAddWindow();\n\n// changes Buttons and Labels from Edit to Add mode\n event_addButton.setVisible(true);\n event_addLabel.setVisible(true);\n event_editButton.setVisible(false);\n event_editLabel.setVisible(false);\n\n// re-binds the Button to Add window functionality\n cancelEventButton.setOnAction(cancelEvent -> exitAddWindow());\n\n setMessage(\"Exited Edit mode without any changes.\", false);\n }",
"private void onCancelButtonPressed() {\r\n disposeDialogAndCreateNewGame(); // Reset board,\r\n game.setCanPlaceMarks(false); // But don't start a new game.\r\n }",
"@FXML\n public void modApptCancelBtnClicked(ActionEvent event) throws IOException {\n // when triggered an alert will ask for conformation before taking them back to All_Appointments_Scene.\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.initModality(Modality.NONE);\n alert.setTitle(\"Confirm Cancel\");\n alert.setHeaderText(\"Do you wish to Cancel?\");\n alert.setContentText(\"Appointment information will not be saved.\");\n Optional<ButtonType> result = alert.showAndWait();\n if(result.get() == ButtonType.OK) {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"../resources/All_Appointments_Scene.fxml\"));\n Parent cancelApptRoot = loader.load();\n\n Stage cancelApptStage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n Scene cancelApptScene = new Scene(cancelApptRoot);\n cancelApptStage.setScene(cancelApptScene);\n cancelApptStage.show();\n }\n }",
"@Override\n public void onPositiveClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n quitThisActivity();\n }",
"@Override\n public void windowClosing(java.awt.event.WindowEvent e) {\n setVisible(false);\n }",
"private void btnCancelActionPerformed(ActionEvent e) {\n processWindowEvent(new WindowEvent(this,WindowEvent.WINDOW_CLOSING));\n }",
"private void close(){\n\t\tparent.setEnabled(true);\n\t\tparent.requestFocus();\n\t\tdispose();\n\t}",
"private void jButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {\n System.exit(0);\n \n }",
"@FXML private void CancelHandler (ActionEvent event) throws IOException{\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"This will clear all text field values, do you want to continue?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n Stage stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n Object scene = FXMLLoader.load(getClass().getResource(\"/View_Controller/MainScreen.fxml\"));\r\n stage.setScene(new Scene((Parent) scene));\r\n stage.show();\r\n\r\n }\r\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}",
"private void close() {\n\t\t\t\t// name.getScene().getWindow().hide();\n\t\t\t\tdialogStage.fireEvent(new WindowEvent(dialogStage,WindowEvent.WINDOW_CLOSE_REQUEST));\n\t\t\t}",
"@FXML\n private void Cancel(ActionEvent e) {\n Stage stage = (Stage) btnCancel.getScene().getWindow();\n stage.hide();\n stage.close();\n }",
"public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n guiD.closeWindow(rootPanel);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n imm.hideSoftInputFromWindow(mAmt.getWindowToken(), 0);\n imm.hideSoftInputFromWindow(mFreq.getWindowToken(), 0);\n imm.hideSoftInputFromWindow(mDur.getWindowToken(), 0);\n \n dialogInterface.dismiss();\n if(listener != null) listener.onCancelClick();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// When the button is pressed, close the window.\n\t\t\t\tKIDSSignalSelectionInterface KiSSI = new KIDSSignalSelectionInterface();\n\t\t\t\tKiSSI.testSignalSet(\n\t\t\t\t\t\tourC.o, \n\t\t\t\t\t\tselectedEvent.getIRI(), \n\t\t\t\t\t\tselectedTimePeriod.getIRI());\n\t\t\t}",
"public void closeWindow() {\r\n Stage stage = (Stage) cancelButton.getScene().getWindow();\r\n stage.close();\r\n }",
"@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"@FXML\n\tprivate void handleCancel() {\n\t\tdialogStage.close();\n\t}",
"@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tjDialog.dispose();\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(JOptionPane.showConfirmDialog(f4, \"Confrom if you want to exit\",\"Library Management System\",\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION)==JOptionPane.YES_NO_OPTION) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"@FXML\r\n\tprivate void handleCancel() {\r\n\t\tdialogStage.close();\r\n\t}",
"@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tmgr.save();\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tdispose();\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}",
"@FXML\n private void handleCancelBtn(ActionEvent event)\n {\n Stage stage = (Stage) rootPane.getScene().getWindow();\n stage.close();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tNewMedicineWindow.this.setVisible(false);\n\t\t\t\tNewMedicineWindow.this.dispose();\n\t\t\t}",
"public boolean onClose() {\n\t\topenScreen(new Noticias());\n\t\treturn true ;\n\t}",
"@Override\n\tpublic void close() {\n\t\tframe = null;\n\t\tclassic = null;\n\t\trace = null;\n\t\tbuild = null;\n\t\tbt_classic = null;\n\t\tbt_race = null;\n\t\tbt_build = null;\n\t\tGameView.VIEW.removeDialog();\n\t}",
"private void jButtonCancelActionPerformed() {\r\n\t\texit();\r\n\t}",
"private void closeProgram(){\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to quit?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.setTitle(\"Exit\");\n alert.setHeaderText(null);\n\n alert.showAndWait();\n\n if (alert.getResult() == ButtonType.YES){\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n window.close();\n System.exit(0);\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tBasicInfoFrame.this.dispose();\n\t\t\t\tnew RelationshipFrame();\n\t\t\t}",
"public void close() \r\n {\r\n ((GrantsByPIForm) getControlledUI()).setVisible(false);\r\n }",
"public void closeDialog()\r\n\t{\r\n\t\tharmonyModel.getDialogManager().unlockFrame();\r\n\t}",
"private void jButtonCancelActionPerformed(ActionEvent e)\n {\n \tsetVisible(false);\n }",
"@Override\n public void windowClosing(WindowEvent e) {\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }",
"@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }",
"@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }",
"@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }",
"@FXML\r\n private void handleCancel() {\r\n dialogStage.close();\r\n }",
"GUI(){\r\n super(\"Chess application\");\r\n\r\n setSize(550,700);\r\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n this.addWindowListener( new WindowAdapter(){\r\n public void windowClosing(WindowEvent e)\r\n { \r\n String windowName = \"Exit Application\";\r\n String windowInfo = \"Do you want to exit Webale application?\";\r\n int result = JOptionPane.showConfirmDialog(middlePanel, windowInfo, windowName, JOptionPane.YES_NO_OPTION);\r\n if (result == JOptionPane.YES_OPTION)\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n }\r\n });\r\n \r\n }",
"private void endingAction() {\n this.detectChanges();\n if (this.isModifed) {\n //System.out.println(JOptionPane.showConfirmDialog(null, \"Do you want to save unsaved changes?\", \"Hey User!\", JOptionPane.YES_NO_CANCEL_OPTION));\n switch (JOptionPane.showConfirmDialog(null, \"Do you want to save current data?\", \"Hey User!\", JOptionPane.YES_NO_CANCEL_OPTION)) {\n case 0: {\n if (this.file != null) {\n INSTANCE.saveData();\n INSTANCE.dispose();\n System.exit(0);\n break;\n }\n }\n\n case 1: {\n INSTANCE.dispose();\n System.exit(0);\n break;\n }\n }\n\n //cancel op 2\n //no op 1\n //yes op 0\n } else {\n INSTANCE.dispose();\n System.exit(0);\n }\n }",
"protected void closeDialog() { setVisible(false); dispose(); }",
"private void accionCancelar() {\n\t\tthis.frame.dispose();\n\n\t}",
"public void exitApplication(){\r\n String message = coeusMessageResources.parseMessageKey(\r\n \"toolBarFactory_exitConfirmCode.1149\");\r\n int answer = CoeusOptionPane.showQuestionDialog(message,\r\n CoeusOptionPane.OPTION_YES_NO, CoeusOptionPane.DEFAULT_NO);\r\n if (answer == CoeusOptionPane.SELECTION_YES) {\r\n if( mdiForm.closeInternalFrames() ) {\r\n mdiForm.dispose();\r\n }\r\n }\r\n }",
"@FXML\n void exitAddWindow() {\n drawMenuElements(false);\n window.setTitle(\"Timelines: Menu\");\n\n toggleMenuButtonVisibility(true);\n cancelTimelineButton.setVisible(false);\n cancelEventButton.setVisible(false);\n\n resetAddWindowFields();\n }",
"@Override\n public void windowClosing(WindowEvent we) {\n finishDialog();\n }",
"@FXML\n private void handleCancel() {\n dialogStage.close();\n }",
"@FXML\n private void handleCancel() {\n dialogStage.close();\n }",
"@FXML\n private void handleCancel() {\n dialogStage.close();\n }",
"private void close() {\n this.frame.setVisible(false);\n this.frame.remove(this);\n this.frame.setTitle(null);\n this.frame.add(this.controller);\n this.frame.revalidate();\n this.frame.pack();\n this.frame.setLocationRelativeTo(null);\n this.frame.setVisible(true);\n }",
"@Override\n public void windowClosing(WindowEvent e)\n {\n gui.exitApp();\n }",
"private void window_Closing(WindowEvent e) {\n\t\tif(subjectListFrm!=null) {\n\t\t\tsubjectListFrm.setVisible(true);\n\t\t}\n\t\tthis.dispose();\n\t}",
"@FXML\n void OnActionCancel(ActionEvent event) throws IOException {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"This will clear text field values. Would you like to proceed?\");\n Optional<ButtonType> result = alert.showAndWait();\n if (result.isPresent() && result.get() == ButtonType.OK){\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/view/MainScreen.fxml\"));\n stage.setTitle(\"Inventory Management System\");\n stage.setScene(new Scene(scene));\n stage.show();\n }\n }",
"@Override\r\n \t\t\tpublic void closeDialog() {\n \t\t\t\tunbind();\r\n \t\t\t\tsuper.closeDialog();\r\n \t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent Ae) {\n\t\tif(Ae.getSource() == cancel)\n\t\t{\n\t\t\t\n\t\t}\n\t\tif(Ae.getSource() == confirm)\n\t\t{\n\t\t\tthis.frame.setVisible(false);\n\t\t\tnew AdminHome(con,admin).frame.setVisible(true);\n\t\t}\n\t}",
"protected void closeDialogCancel() {\n dispose();\n }"
] | [
"0.71264666",
"0.6915717",
"0.68855685",
"0.6877785",
"0.6802984",
"0.6802984",
"0.68003815",
"0.67825603",
"0.6758611",
"0.67425007",
"0.6730881",
"0.67294234",
"0.67187667",
"0.67029977",
"0.6668121",
"0.6653912",
"0.6633976",
"0.65376014",
"0.6536828",
"0.6512918",
"0.65047187",
"0.6490753",
"0.64857835",
"0.647305",
"0.64291406",
"0.6422749",
"0.6421874",
"0.6417244",
"0.6415912",
"0.6381153",
"0.63567156",
"0.63556445",
"0.63500875",
"0.6348518",
"0.6342942",
"0.6331617",
"0.6329738",
"0.6329738",
"0.63225734",
"0.6304681",
"0.63024765",
"0.62895095",
"0.628355",
"0.62742454",
"0.62590677",
"0.6257058",
"0.62551546",
"0.6254123",
"0.6250101",
"0.62473214",
"0.6240527",
"0.623148",
"0.623148",
"0.6230954",
"0.62240434",
"0.62140805",
"0.62129235",
"0.6212335",
"0.62042797",
"0.62006986",
"0.61812353",
"0.61750185",
"0.61750185",
"0.61750185",
"0.61750185",
"0.6169364",
"0.6163835",
"0.616382",
"0.61595434",
"0.6158754",
"0.61583513",
"0.6158245",
"0.6158235",
"0.61546403",
"0.61544055",
"0.6154109",
"0.61507547",
"0.61483204",
"0.61472124",
"0.61444265",
"0.61444193",
"0.61444193",
"0.61444193",
"0.61444193",
"0.614379",
"0.6141428",
"0.614052",
"0.6128723",
"0.6127875",
"0.612706",
"0.61171055",
"0.61165917",
"0.61165917",
"0.61165917",
"0.61152434",
"0.61144024",
"0.61135304",
"0.61116236",
"0.6095727",
"0.60934365",
"0.6093395"
] | 0.0 | -1 |
Set up the action. | public NewFSAAction() {
super(Hub.string("TD_comAssignNewFSA"), icon);
icon.setImage(Toolkit.getDefaultToolkit()
.createImage(Hub.getLocalResource(AssignFSADialog.class, "images/icons/new_automaton.gif")));
putValue(SHORT_DESCRIPTION, Hub.string("TD_comHintAssignNewFSA"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setupActions() {\n getActionManager().setup(getView());\n }",
"protected void init_actions()\n {\n action_obj = new CUP$FractalParser$actions(this);\n }",
"@Override\r\n\tpublic void initActions() {\n\t\t\r\n\t}",
"protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }",
"protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }",
"public abstract void init_actions() throws Exception;",
"public void initiateAction() {\r\n\t\t// TODO Auto-generated method stub\t\r\n\t}",
"protected void init_actions()\n {\n action_obj = new CUP$include$actions(this);\n }",
"protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }",
"@Override\r\n public void initAction() {\n \r\n }",
"protected void init_actions()\r\n {\r\n action_obj = new CUP$MJParser$actions(this);\r\n }",
"protected void init_actions()\r\n {\r\n action_obj = new CUP$SintaxAnalysis$actions(this);\r\n }",
"protected void init_actions()\n {\n action_obj = new CUP$ParserForms$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$Asintactico$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$PCLParser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }",
"protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }",
"protected void init_actions()\n {\n action_obj = new CUP$CompParser$actions(this);\n }",
"protected void init_actions() {\r\n action_obj = new CUP$SintacticoH$actions(this);\r\n }",
"@Override\n public void doInit() {\n action = (String) getRequestAttributes().get(\"action\");\n }",
"protected void init_actions()\r\n {\r\n action_obj = new CUP$LuaGrammarCup$actions(this);\r\n }",
"protected void init_actions()\n {\n action_obj = new CUP$Sintactico$actions(this);\n }",
"protected void init_actions()\r\n {\r\n action_obj = new CUP$AnalizadorSintactico$actions(this);\r\n }",
"private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}",
"protected void init_actions()\n {\n action_obj = new CUP$XPathParser$actions(this);\n }",
"public ActionManager() {\n\t\tsuper();\n\t}",
"private void setupActionButtons() {\n setupLikeActionButton();\n setupRepostActionButton();\n setupMoreActionButton();\n }",
"@Override\n protected void setUpActionBuilder()\n {\n super.setUpActionBuilder();\n actionBuilder.getActionStore().addAction(TEST_ACTION);\n }",
"public void initialise() throws ActionLifecycleException;",
"public ConfigAction()\n {\n this(null, null, true);\n }",
"protected PMBaseAction() {\r\n super();\r\n }",
"@Override\n\tpublic void setAction() {\n\t}",
"@Override\n protected void hookUpActionListeners() {\n }",
"private void initActions() \n {\n // Quits the application\n this.quitAction = new AbstractAction (\"Quit\") \n {\n public static final long serialVersionUID = 2L;\n\n @Override\n public void actionPerformed (ActionEvent arg0) \n { \n System.exit(0);\n }\n };\n\n // Creates a new model\n this.newGameAction = new AbstractAction (\"New Game\") \n {\n public static final long serialVersionUID = 3L;\n\n @Override\n public void actionPerformed(ActionEvent arg0) \n {\n AsteroidsFrame.this.newGame ();\n }\n };\n }",
"@Override\n\tvoid setupAction() {\n\n\t\tgetButton().setOnAction(event -> {\n\t\t\tmainPrevCommandBox.addText(mainTextInput.getText());\n\t\t\tfor (Turtle t : getThisTurtleList()) {\n\n\t\t\t\tlanguage = ((LanguageCombo) mainLanguageComboBox).getLanguage();\n\t\t\t\tCommand test = new Command(mainTextInput.getText(), t, variableMap, userCommandMap, language);\n\t\t\t\ttest.execute();\n\n\t\t\t}\n\t\t\tmainVarTable.updateVars(variableMap);\n\t\t\tmainFuncTable.updateCommandFuncs(userCommandMap);\n\t\t\tmainTurtleTable.updateValues();\n\n\t\t\tmainTextInput.clear();\n\n\t\t});\n\t}",
"@Override\n public void initComponent() {\n ActionManager am = ActionManager.getInstance();\n }",
"public UpcomingContestsManagerAction() {\r\n }",
"public void initializeActions(SGControllerActionInitializer actionInitializer);",
"public void setAction(String action) { this.action = action; }",
"public CreateIndividualPreAction() {\n }",
"protected void init_actions()\n {\n action_obj = new CUP$analisis_sintactico_re$actions(this);\n }",
"public void createAction() {\n }",
"public void setAction (String action) {\n this.action = action;\n }",
"public void setAction(Action action) {\n this.action = action;\n }",
"public SearchContestsManagerAction() {\r\n }",
"protected void createActions()\n {\n super.createActions();\n \n wireAction(\n new ContentAssistAction(\n PerlEditorMessages.getResourceBundle(),\n \"ContentAssistProposal.\",\n this),\n PerlEditorCommandIds.CONTENT_ASSIST,\n PerlEditorActionIds.CONTENT_ASSIST);\n \n // each marker clearing action gets its own wiring\n wireAction(new ClearMarkerAction.Critic(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_CRITIC_MARKERS);\n wireAction(new ClearMarkerAction.PodChecker(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_POD_MARKERS);\n wireAction(new ClearMarkerAction.AllMarkers(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_ALL_MARKERS);\n \n wireAction(new PodCheckerAction(this), PerlEditorCommandIds.POD_CHECKER,\n PerlEditorActionIds.POD_CHECKER);\n wireAction(new ToggleCommentAction(this), PerlEditorCommandIds.TOGGLE_COMMENT,\n PerlEditorActionIds.TOGGLE_COMMENT);\n wireAction(new PerlCriticAction(this), PerlEditorCommandIds.CRITIQUE_SOURCE,\n PerlEditorActionIds.PERL_CRITIC);\n wireAction(new FormatSourceAction(this), PerlEditorCommandIds.FORMAT_SOURCE,\n PerlEditorActionIds.FORMAT_SOURCE);\n wireAction(new Jump2BracketAction(this), PerlEditorCommandIds.MATCHING_BRACKET,\n PerlEditorActionIds.MATCHING_BRACKET);\n wireAction(new ExportHtmlSourceAction(this), PerlEditorCommandIds.HTML_EXPORT,\n PerlEditorActionIds.HTML_EXPORT);\n wireAction(new ValidateSourceAction(this), PerlEditorCommandIds.VALIDATE_SYNTAX,\n PerlEditorActionIds.VALIDATE_SYNTAX);\n wireAction(new OpenDeclarationAction(this), PerlEditorCommandIds.OPEN_DECLARATION,\n PerlEditorActionIds.OPEN_DECLARATION);\n wireAction(new PerlDocAction(this), PerlEditorCommandIds.PERL_DOC,\n PerlEditorActionIds.PERL_DOC);\n wireAction(new ExtractSubroutineAction(this), PerlEditorCommandIds.EXTRACT_SUBROUTINE,\n PerlEditorActionIds.EXTRACT_SUBROUTINE);\n }",
"public void setAction(String action);",
"protected void setupActionBar() {\n setTitle();\n setSutTitle();\n setIcon();\n setHomeAsUp(mCallback.getHomeButtonStyle() == HomeButtonStyle.SHOW_HOME_AS_UP);\n }",
"public MemberAction() {\n\t\tsuper();\n\t}",
"private ActionPackage() {}",
"private void setup(){\n getSupportActionBar().setTitle(\"Search Results\");\n\n ArrayList<TodoData> todos = this.getTodos();\n presenter = new SearchResultPresenter(this, todos);\n presenter.onCreate();\n }",
"public RepeaterActionDefinition() {\n }",
"protected void declareGlobalActionKeys() {\n\r\n }",
"protected void setupActionBar()\r\n\t{\r\n\t\tfinal ActionBar actionBar = getActionBar();\r\n\t\tif (actionBar == null)\r\n\t\t\treturn;\r\n\t\tactionBar.setDisplayShowTitleEnabled(true);\r\n\t\tactionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\r\n\t\tactionBar.setDisplayUseLogoEnabled(true);\r\n\t\tactionBar.setLogo(R.drawable.itiffin);\r\n\t\tactionBar.setBackgroundDrawable(getResources().getDrawable(\r\n\t\t\t\tR.drawable.black_semi_trans_strip));\r\n\t\tactionBar.setDisplayHomeAsUpEnabled(true);\r\n\t\tactionBar.setHomeButtonEnabled(true);\r\n\t\tactionBar.setTitle(R.string.app_name);\r\n\r\n\r\n\t}",
"protected void setup() {\r\n }",
"private SelectOSAction() {\r\n }",
"private void setupActions(MediatorListener mediator) {\n\n\t\tProperties hotKeysProperties = null;\n\t\tString fileName = \"hotkeys.properties\";\n\t\ttry {\n\t\t\thotKeysProperties = readPropertiesFromClassPath(fileName);\n\t\t} catch (Exception e) {\n\t\t\thotKeysProperties = new Properties();\n\t\t\thotKeysProperties.put(\"Hotkey.Gui.BaselineMode\", \"B\");\n\t\t\thotKeysProperties.put(\"Hotkey.Gui.Attending\", \"A\");\n\t\t\thotKeysProperties.put(\"Hotkey.Gui.Independent\", \"1\");\n\t\t\thotKeysProperties.put(\"Hotkey.Gui.Verbal\", \"2\");\n\t\t\thotKeysProperties.put(\"Hotkey.Gui.Modeling\", \"3\");\n\t\t\thotKeysProperties.put(\"Hotkey.Gui.NoAnswer\", \"4\");\n\t\t\thotKeysProperties.put(\"Hotkey.Gui.WrongAnswer\", \"5\");\n\t\t\tlog.warn(String.format(\n\t\t\t\t\t\"Problem reading %s. Defaulting hotkeysPropteries=%s\",\n\t\t\t\t\tfileName, hotKeysProperties), e);\n\t\t}\n\n\t\tString hk = (String) hotKeysProperties.get(\"Hotkey.Gui.BaselineMode\");\n\n\t\tbaselineModeAction = new ActionRecorder(Messages\n\t\t\t\t.getString(\"Gui.BaselineMode\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.BaselineModeDescription\"), new Integer( //$NON-NLS-1$\n\t\t\t\t\t\tKeyEvent.VK_F1), KeyStroke.getKeyStroke(hk),\n\t\t\t\tAction.BASELINE_MODE, mediator);\n\n\t\thk = (String) hotKeysProperties.get(\"Hotkey.Gui.Attending\");\n\n\t\tattendingAction = new ActionRecorder(Messages\n\t\t\t\t.getString(\"Gui.Attending\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.AttendingDescription\"), new Integer( //$NON-NLS-1$\n\t\t\t\t\t\tKeyEvent.VK_F1), KeyStroke.getKeyStroke(hk),\n\t\t\t\tAction.ATTENDING, mediator);\n\n\t\thk = (String) hotKeysProperties.get(\"Hotkey.Gui.Independent\");\n\n\t\tindependentAction = new ActionRecorder(Messages\n\t\t\t\t.getString(\"Gui.Independent\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.IndependentDescription\"), new Integer( //$NON-NLS-1$\n\t\t\t\t\t\tKeyEvent.VK_F2), KeyStroke.getKeyStroke(hk),\n\t\t\t\tAction.INDEPENDENT, mediator);\n\n\t\thk = (String) hotKeysProperties.get(\"Hotkey.Gui.Verbal\");\n\n\t\tverbalAction = new ActionRecorder(\n\t\t\t\tMessages.getString(\"Gui.Verbal\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.VerbalDescription\"), //$NON-NLS-1$\n\t\t\t\tnew Integer(KeyEvent.VK_F3), KeyStroke.getKeyStroke(hk),\n\t\t\t\tAction.VERBAL, mediator);\n\n\t\thk = (String) hotKeysProperties.get(\"Hotkey.Gui.Modeling\");\n\n\t\tmodelingAction = new ActionRecorder(\n\t\t\t\tMessages.getString(\"Gui.Modeling\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.ModelingDescriptin\"), new Integer( //$NON-NLS-1$\n\t\t\t\t\t\tKeyEvent.VK_F4), KeyStroke.getKeyStroke(hk),\n\t\t\t\tAction.MODELING, mediator);\n\n\t\thk = (String) hotKeysProperties.get(\"Hotkey.Gui.NoAnswer\");\n\n\t\tnoAnswerAction = new ActionRecorder(\n\t\t\t\tMessages.getString(\"Gui.NoAnswer\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.NoAnswerDescription\"), new Integer(KeyEvent.VK_F5), //$NON-NLS-1$\n\t\t\t\tKeyStroke.getKeyStroke(hk), Action.NO_ANSWER, mediator);\n\n\t\thk = (String) hotKeysProperties.get(\"Hotkey.Gui.WrongAnswer\");\n\t\twrongAnswerAction = new ActionRecorder(\n\t\t\t\tMessages.getString(\"Gui.WrongAnswer\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.WrongAnswerDescription\"), new Integer(KeyEvent.VK_F5), //$NON-NLS-1$\n\t\t\t\tKeyStroke.getKeyStroke(hk), Action.WRONG_ANSWER, mediator);\n\n\t\ttoggleButtonsAction = new ActionRecorder(\n\t\t\t\tMessages.getString(\"Gui.ToggleButtons\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.ToggleButtons.Description\"), new Integer(KeyEvent.VK_L), //$NON-NLS-1$\n\t\t\t\tKeyStroke.getKeyStroke(\"T\"), Action.TOGGLE_BUTTONS, mediator);\n\n\t\tquitAction = new ActionRecorder(\n\t\t\t\tMessages.getString(\"Gui.Quit\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.QuitDescriptino\"), new Integer(KeyEvent.VK_L), //$NON-NLS-1$\n\t\t\t\tKeyStroke.getKeyStroke(\"control Q\"), Action.QUIT, mediator);\n\n\t\ttimerAction = new ActionRecorder(\n\t\t\t\tMessages.getString(\"Gui.TimerSwing\"), null, //$NON-NLS-1$\n\t\t\t\t\"Quit (Exit) the program\", new Integer(KeyEvent.VK_L), //$NON-NLS-1$\n\t\t\t\tKeyStroke.getKeyStroke(\"control F2\"), Action.TIMER, mediator);\n\n\t\ttimerBetweenAction = new ActionRecorder(Messages\n\t\t\t\t.getString(\"Gui.TimerBetweenSwing\"), null, //$NON-NLS-1$\n\t\t\t\t\"Quit (Exit) the program\", new Integer(KeyEvent.VK_L), //$NON-NLS-1$\n\t\t\t\tKeyStroke.getKeyStroke(\"control F2\"), Action.BETWEEN_TIMER,\n\t\t\t\tmediator);\n\n\t\ttimerTimeDelayAutoAdvance = new ActionRecorder(Messages\n\t\t\t\t.getString(\"Gui.TimeDelayAutoAdvance\"), null, //$NON-NLS-1$\n\t\t\t\t\"xxxxxxxxxxxxxx\", new Integer(KeyEvent.VK_L), //$NON-NLS-1$\n\t\t\t\tKeyStroke.getKeyStroke(\"control F2\"),\n\t\t\t\tAction.CHANGE_DELAY_TIMER, mediator);\n\n\t\topenAction = new ActionRecorder(Messages.getString(\"Gui.Open\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.OpenDescription\"), //$NON-NLS-1$\n\t\t\t\tnew Integer(KeyEvent.VK_L),\n\t\t\t\tKeyStroke.getKeyStroke(\"control O\"), Action.OPEN, mediator);\n\n\t\tshowLoggingFrameAction = new ActionRecorder(\n\t\t\t\tMessages.getString(\"Gui.Open.ShowLoggingFrame\"), null, //$NON-NLS-1$\n\t\t\t\tMessages.getString(\"Gui.ShowLoggingFrameDescription\"), //$NON-NLS-1$\n\t\t\t\tnew Integer(KeyEvent.VK_L),\n\t\t\t\tKeyStroke.getKeyStroke(\"control D\"), Action.SHOW_LOGGING_FRAME,\n\t\t\t\tmediator);\n\n\t}",
"public AddApplicationReleaseAction() {\r\n }",
"public void setAction(String action) {\n this.action = action;\n }",
"public void setAction(String action) {\n this.action = action;\n }",
"@Override\n\tpublic void onActionStart(int action) {\n\t\t\n\t}",
"private void setupActionBar() {\n\n setTitle(getString(R.string.new_pub_activity_title));\n\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n final ActionBar actionBar = getSupportActionBar();\n if (actionBar != null)\n actionBar.setDisplayHomeAsUpEnabled(true);\n }",
"@SuppressWarnings(\"serial\")\n @Before\n public void setUp() throws Exception {\n testInstance = new ClientsPrepopulatingBaseAction() {\n };\n }",
"public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance().getGUILog().showMessage(\"Show a popup the proper\n\t\t// way !\");\n\n\t\t// final ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\n\t\t// final MDAction action = new ExampleAction();\n\t\t// Adding action to main menu\n\t\t// manager.addMainMenuConfigurator(new MainMenuConfigurator(action));\n\t\t// Adding action to main toolbar\n\t\t// manager.addMainToolbarConfigurator(new MainToolbarConfigurator(action));\n\n\t\t// pluginDir = getDescriptor().getPluginDirectory().getPath();\n\n\t\t// Creating submenu in the MagicDraw main menu\n\t\t// ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\t\t// manager.addMainMenuConfigurator(new\n\t\t// MainMenuConfigurator(getSubmenuActions()));\n\n\t\t/**\n\t\t * @Todo: load project options (@see myplugin.generator.options.ProjectOptions)\n\t\t * from ProjectOptions.xml and take ejb generator options\n\t\t */\n\n\t\t// for test purpose only:\n\t\t// GeneratorOptions ejbOptions = new GeneratorOptions(\"c:/temp\", \"ejbclass\",\n\t\t// \"templates\", \"{0}.java\", true, \"ejb\");\n\t\t// ProjectOptions.getProjectOptions().getGeneratorOptions().put(\"EJBGenerator\",\n\t\t// ejbOptions);\n\n\t\t// ejbOptions.setTemplateDir(pluginDir + File.separator +\n\t\t// ejbOptions.getTemplateDir()); //apsolutna putanja\n\t}",
"private AliasAction() {\n\n\t}",
"@Override\r\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(codec);\r\n\t\tgetContentManager().registerOntology(ontology);\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\t\tif(args != null && args.length > 0) {\r\n\t\t\tbroker = (Broker)args[0];\r\n\t\t} else {\r\n\t\t\tbroker = new Broker(\"Broker\");\r\n\t\t}\r\n\t\t\r\n\t\tProgramGUI.getInstance().printToLog(broker.hashCode(), getLocalName(), \"created\", Color.GREEN.darker());\r\n\t\t\r\n\t\t// Register in the DF\r\n\t\tDFRegistry.register(this, BROKER_AGENT);\r\n\t\t\r\n\t\tsubscribeToRetailers();\r\n\t\tquery();\r\n\t\tpurchase();\r\n\t}",
"public void setup() {\n }",
"private void initialize() {\r\n\r\n // add default buttons\r\n addButton(getToggleButton(),\"toggle\");\r\n addButton(getFinishButton(),\"finish\");\r\n addButton(getCancelButton(),\"cancel\");\r\n addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n String cmd = e.getActionCommand();\r\n if(\"toggle\".equalsIgnoreCase(cmd)) change();\r\n else if(\"finish\".equalsIgnoreCase(cmd)) finish();\r\n else if(\"cancel\".equalsIgnoreCase(cmd)) cancel();\r\n }\r\n\r\n });\r\n\r\n }",
"public SaveConstitutionInformationAction() {\n }",
"private void initializeActionbar() {\n toolbar = binding.toolbar;\n Objects.requireNonNull(toolbar).setTitle(R.string.navigation_my_pets);\n setSupportActionBar(toolbar);\n ActionBar actionBar = getSupportActionBar();\n Objects.requireNonNull(actionBar).setDisplayHomeAsUpEnabled(true);\n }",
"private void setAction(String action)\r\n/* 46: */ {\r\n/* 47: 48 */ this.action = action;\r\n/* 48: */ }",
"public void setActionInfo(String actionInfo);",
"public UploadProjectAction() {\n\t\tsuper();\n\t}",
"public void setAction(String action) {\n\t\tthis.action = action;\n\t}",
"private void setActions(){\n login.setOnAction(e->login());\n simulate.setOnAction(e->simulate());\n scoreBoardButton.setOnAction(e->scoreBoard());\n viewBracket.setOnAction(e->viewBracket(selectedBracket, playerMap));\n clearButton.setOnAction(e->clear());\n resetButton.setOnAction(e->reset());\n finalizeButton.setOnAction(e->finalizeBracket());\n }",
"@Override\r\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(codec);\r\n\t\tgetContentManager().registerOntology(ontology);\r\n\t\t\r\n\t\t// Register in the DF\r\n\t\tDFRegistry.register(this, BROKER_AGENT);\r\n\t\t\r\n\t\t// Find retailers\r\n\t\tsubscribeToRetailers();\r\n\t\t\r\n\t\t// Run agent\r\n\t\tquery();\r\n\t\tpurchase();\r\n\t}",
"private void initAction() {\n\t\timg_back.setOnClickListener(this);\n\t\tbtn_delete.setOnClickListener(this);\n\t\tbtn_update.setOnClickListener(this);\n\t}",
"public ClickButtonAction() {\n _target = new TargetComponent();\n }"
] | [
"0.7354689",
"0.68476856",
"0.6803962",
"0.677373",
"0.67580587",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.6757469",
"0.67507887",
"0.67507887",
"0.67507887",
"0.67507887",
"0.67507887",
"0.67464733",
"0.67326117",
"0.6723779",
"0.67017657",
"0.6671649",
"0.6671059",
"0.6640393",
"0.6623356",
"0.6587313",
"0.6587313",
"0.65547913",
"0.65215725",
"0.6505019",
"0.6505019",
"0.6469927",
"0.6461643",
"0.6437394",
"0.6402113",
"0.64019346",
"0.6388658",
"0.63687515",
"0.6367963",
"0.63591546",
"0.6355377",
"0.63412076",
"0.6314582",
"0.6280109",
"0.6244609",
"0.6228663",
"0.61874175",
"0.61670274",
"0.6160547",
"0.6157591",
"0.61573064",
"0.6132159",
"0.61285037",
"0.60661656",
"0.60428035",
"0.59995437",
"0.5964264",
"0.59397095",
"0.5937749",
"0.5925238",
"0.59105706",
"0.5901867",
"0.58916736",
"0.5890872",
"0.5881987",
"0.5876168",
"0.5847249",
"0.5838236",
"0.5834696",
"0.5816489",
"0.58087075",
"0.5803054",
"0.57914734",
"0.57767504",
"0.57767504",
"0.57694304",
"0.5759161",
"0.5748882",
"0.57473266",
"0.57469964",
"0.5717686",
"0.5708234",
"0.5700955",
"0.57003474",
"0.56996095",
"0.5674216",
"0.5662556",
"0.5656438",
"0.56526077",
"0.56496483",
"0.5641915",
"0.56208825",
"0.5619055"
] | 0.0 | -1 |
Construct and set up the FSA model assignment dialog. | private AssignFSADialog() {
super(Hub.getMainWindow(), Hub.string("TD_assignFSATitle"));
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
onEscapeEvent();
}
});
this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
this.setMinimumSize(new Dimension(300, 10));
Box mainBox = Box.createHorizontalBox();
mainBox.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
Box newBox = Box.createVerticalBox();
newBox.add(new JLabel(" "));
newBox.add(new JButton(new NewFSAAction()));
mainBox.add(newBox);
mainBox.add(Box.createRigidArea(new Dimension(5, 0)));
openModelsCombo = new JComboBox();
openModelsCombo.setRenderer(new JLabelListRenderer());
Box modelsBox = Box.createVerticalBox();
Box titleBox = Box.createHorizontalBox();
titleBox.add(new JLabel(Hub.string("TD_openModels")));
titleBox.add(Box.createHorizontalGlue());
modelsBox.add(titleBox);
modelsBox.add(openModelsCombo);
mainBox.add(modelsBox);
mainBox.add(Box.createRigidArea(new Dimension(5, 0)));
templatesCombo = new JComboBox();
templatesCombo.setRenderer(new JLabelListRenderer());
Box templatesBox = Box.createVerticalBox();
titleBox = Box.createHorizontalBox();
titleBox.add(new JLabel(Hub.string("TD_templates")));
titleBox.add(Box.createHorizontalGlue());
templatesBox.add(titleBox);
templatesBox.add(templatesCombo);
mainBox.add(templatesBox);
getContentPane().add(mainBox);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setup(){\n\t\t\n\t\t//set the dialog title\n\t\tsetText(LocaleText.get(\"createSPSSFileDialog\"));\n\t\t//create the status text\n\t\tstatusLabel = new Label();\n\t\t\n\t\t//create the buttons\n\t\tButton btnCancel = new Button(LocaleText.get(\"close\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnCreate = new Button(LocaleText.get(\"createSPSSFileDialog\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcreateSPSSFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnSave = new Button(LocaleText.get(\"save\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tsave();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\t\n\t\t\n\t\t//update the languages in the form.\n\t\tFormHandler.updateLanguage(Context.getLocale(), Context.getLocale(), form);\n\t\t//add the languages to the language drop down\n\t\tfor(Locale l : form.getLocales())\n\t\t{\n\t\t\tlistBoxLanguages.addItem(l.getName());\n\t\t}\n\t\t\n\t\t//setup the text area\n\t\tspssText.setCharacterWidth(30);\n\t\tspssText.setPixelSize(300, 300);\n\t\t\n\t\t\n\t\tFlexCellFormatter formatter = table.getFlexCellFormatter();\n\t\t\n\t\t//now add stuff to the UI\n\t\tint row = 0;\n\t\ttable.setWidget(row, 0, new Label(LocaleText.get(\"language\")));\n\t\ttable.setWidget(row, 1, listBoxLanguages);\n\t\trow++;\n\t\ttable.setWidget(row, 0, spssText);\n\t\tformatter.setColSpan(row, 0, 2);\n\t\tformatter.setHeight(row, 0, \"300px\");\n\t\tformatter.setWidth(row, 0, \"300px\");\n\t\trow++;\n\t\ttable.setWidget(row, 0, statusLabel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnCreate);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnSave);\n\t\ttable.setWidget(row, 1, btnCancel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, appletHtml);\n\t\t\n\t\t\t\t\t\t\n\t\t//some random UI stuff to make everything nice and neat\n\t\tVerticalPanel panel = new VerticalPanel();\n\t\tFormUtil.maximizeWidget(panel);\n\t\tpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tpanel.add(table);\n\t\t\n\t\tsetWidget(panel);\n\t\t\n\t\tsetWidth(\"200px\");\t\t\n\t}",
"private void init() {\n \n dialog = new JDialog(this.owner, charField.getName() + \" Post Composition\");\n compFieldPanel = new FieldPanel(false,false, null, this.selectionManager, this.editManager, null); // (searchParams)?\n //compFieldPanel.setSearchParams(searchParams);\n \n // MAIN GENUS TERM\n genusField = CharFieldGui.makePostCompTermList(charField,\"Genus\",minCompChars);\n genusField.setSelectionManager(this.selectionManager); // ??\n //genusField.setListSelectionModel(this.selectionModel);\n compFieldPanel.addCharFieldGuiToPanel(genusField);\n\n // REL-DIFF - put in 1 differentia\n addRelDiffGui();\n\n setGuiFromSelectedModel();\n\n // override FieldPanel preferred size which will set window size\n compFieldPanel.setPreferredSize(null);//new Dimension(700,160));\n dialog.add(compFieldPanel);\n addButtons();\n dialog.pack();\n dialog.setLocationRelativeTo(owner);\n dialog.setVisible(true);\n\n compCharChangeListener = new CompCharChangeListener();\n this.editManager.addCharChangeListener(compCharChangeListener);\n compCharSelectListener = new CompCharSelectListener();\n this.selectionModel.addListSelectionListener(compCharSelectListener);\n }",
"public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }",
"private void submissionGUIsetup()\n\t\t\t{\n\t\t\t\tif(list.getSelectedValue()!= null)\n\t\t\t\t{\t\n\t\t\t\t\tsubmissionGUI = new SubmissionGUI((Assignment)courseGUI.getSelectedValue());\n\t\t\t\t\tVector<Submission> list = client.getSubmissions(submissionGUI.getAssignment());\n\t\t\t\t\tsubmissionGUI.setList(list);\n\t\t\t\t\tsubmissionGUI.setListeners(new SubmissionListener());\n\t\t\t\t\t\n\t\t\t\t\tframeHolder.setVisible(false);\n\t\t\t\t\tframeHolder = submissionGUI.returnFrame();\n\t\t\t\t\tframeHolder.setVisible(true);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"private SPSSDialog(FormDef form)\n\t{\n\t\tthis.form = form;\n\t\tsetup();\n\t}",
"public NewFSAAction() {\r\n super(Hub.string(\"TD_comAssignNewFSA\"), icon);\r\n icon.setImage(Toolkit.getDefaultToolkit()\r\n .createImage(Hub.getLocalResource(AssignFSADialog.class, \"images/icons/new_automaton.gif\")));\r\n putValue(SHORT_DESCRIPTION, Hub.string(\"TD_comHintAssignNewFSA\"));\r\n }",
"public PHConstDialog() {\n\t\tinitComponents();\n\t}",
"private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}",
"public static AssignFSADialog instance() {\r\n if (me == null) {\r\n me = new AssignFSADialog();\r\n }\r\n return me;\r\n }",
"private void initDialog() {\n }",
"public abstract void initDialog();",
"private void initialize() {\n\t\tChoiceScreen = new JFrame();\n\t\tChoiceScreen.setFont(new Font(\"Silom\", Font.PLAIN, 12));\n\t\tChoiceScreen.setType(Type.POPUP);\n\t\tChoiceScreen.setTitle(\"Bank of Programmers - Services\");\n\t\tChoiceScreen.getContentPane().setBackground(new Color(30, 144, 255));\n\t\tChoiceScreen.getContentPane().setLayout(null);\n\t\t\n\t\t\n\t\tJLabel lblBankNameLabel = new JLabel(\"BANK OF PROGRAMMERS\");\n\t\tlblBankNameLabel.setBounds(0, 0, 517, 52);\n\t\tlblBankNameLabel.setForeground(new Color(255, 255, 255));\n\t\tlblBankNameLabel.setFont(new Font(\"Silom\", Font.PLAIN, 40));\n\t\tlblBankNameLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tChoiceScreen.getContentPane().add(lblBankNameLabel);\n\t\t\n\t\tJButton btnAtm = new JButton(\"ATM\");\n\t\tbtnAtm.setForeground(new Color(30, 144, 255));\n\t\tbtnAtm.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tChoiceScreen.dispose();\n\t\t\t\tATM atm = new ATM();\n\t\t\t\tatm.ATMLogIn.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnAtm.setFont(new Font(\"Silom\", Font.PLAIN, 22));\n\t\tbtnAtm.setBounds(89, 129, 337, 92);\n\t\tChoiceScreen.getContentPane().add(btnAtm);\n\t\t\n\t\tJButton btnBank = new JButton(\"BANK (Create an Account!)\");\n\t\tbtnBank.setForeground(new Color(30, 144, 255));\n\t\tbtnBank.setFont(new Font(\"Silom\", Font.PLAIN, 22));\n\t\tbtnBank.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tChoiceScreen.dispose();\n\t\t\t\tAccountTypes acty = new AccountTypes();\n\t\t\t\tacty.AccountType.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnBank.setBounds(89, 270, 337, 92);\n\t\tChoiceScreen.getContentPane().add(btnBank);\n\t\tChoiceScreen.getContentPane().setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{lblBankNameLabel, btnAtm, btnBank}));\n\t\tChoiceScreen.setBounds(100, 100, 517, 475);\n\t\tChoiceScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tChoiceScreen.setLocation(dim.width/2-ChoiceScreen.getSize().width/2, dim.height/2-ChoiceScreen.getSize().height/2);\n\t\t\n\t}",
"public ConfigureUpdatesDialog() {\n super(StrangeEons.getWindow(), ModalityType.TOOLKIT_MODAL);\n initComponents();\n AbstractGameComponentEditor.localizeComboBoxLabels(frequencyCombo, null);\n AbstractGameComponentEditor.localizeComboBoxLabels(actionCombo, null);\n banner.setIcon(new ImageIcon(\n ResourceKit.createBleedBanner(((ImageIcon) banner.getIcon()).getImage())\n ));\n setLocationRelativeTo(getParent());\n\n Settings s = Settings.getUser();\n s.set(\"core-dialog-shown\", \"yes\");\n //doNotShowCheck.setSelected( s.getYesNo( \"core-dialog-autoinstall\" ) );\n\n frequencyCombo.setSelectedIndex(AutomaticUpdater.getUpdateFrequency());\n actionCombo.setSelectedIndex(AutomaticUpdater.getUpdateAction() == 0 ? 0 : 1);\n newPluginsCheck.setSelected(AutomaticUpdater.isShowingNewPlugins());\n appUpdateCheck.setSelected(AutomaticUpdater.isShowingAppUpdates());\n doneInit = true;\n }",
"public SetupScreen() \r\n { \r\n _userLabel = new LabelField(Ipoki._resources.getString(LBL_USER), DrawStyle.ELLIPSIS);\r\n add(_userLabel);\r\n _userEdit = new EditField(\"\", Ipoki._user, 20, Field.EDITABLE);\r\n add(_userEdit);\r\n _passLabel = new LabelField(Ipoki._resources.getString(LBL_PASSWORD), DrawStyle.ELLIPSIS);\r\n add(_passLabel);\r\n _passEdit = new PasswordEditField(\"\", Ipoki._pass, 20, Field.EDITABLE);\r\n add(_passEdit);\r\n _freqLabel = new LabelField(Ipoki._resources.getString(LBL_FREQ), DrawStyle.ELLIPSIS);\r\n add(_freqLabel);\r\n _freqEdit = new EditField(\"\", String.valueOf(Ipoki._freq), 20, Field.EDITABLE | EditField.FILTER_INTEGER);\r\n add(_freqEdit);\r\n }",
"public void initGui() {\r\n\t\tSpieler sieger = dasSpiel.getSieger();\r\n\t\tPopupGUI siegerAnzeigen = new PopupGUI(dasSpiel);\r\n\t\tString anzeige = sieger.getName() + \", hat das Spiel gewonnen! Du kannst nun keine Aktionen mehr durchfuehren ausser dir die Karte anzuschauen.\";\r\n\t\tfor (int i = 0; i < dasSpiel.getSpielerListe().size(); i++) {\r\n\t\t\tsiegerAnzeigen.textAnzeigen(anzeige, dasSpiel.getSpielerListe().get(i));\r\n\t\t}\r\n\t}",
"public void callSetupDialog(JDialog jParent, MainWindow oMain) {\n AllometryParameterEdit oWindow = new AllometryParameterEdit(jParent, m_oManager, oMain, this);\n oWindow.pack();\n oWindow.setLocationRelativeTo(null);\n oWindow.setVisible(true);\n }",
"private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}",
"public FrmAssignPromotions()\n {\n initComponents();\n populateLists();\n }",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"public JDialogParticleAnalysisNew() { }",
"public SelectionDialog(HarmonyModel harmonyModel, Integer mode)\r\n\t{\r\n\t\tsuper((mode==SELECT ? \"Select\" : \"Remove\") + \" Links\");\r\n\t\tthis.harmonyModel = harmonyModel;\r\n\t\tthis.mode = mode;\r\n\t\t\r\n\t\t// Initialize the type filter\r\n\t\ttypeFilter = new OptionPane(\"Type\",new String[]{\"All\",\"User\",\"System\"});\r\n\t\ttypeFilter.setBorder(new EmptyBorder(0,20,0,0));\r\n\t\ttypeFilter.setSelectedButton(\"All\");\r\n\t\t\r\n\t\t// Initialize the focus filter\r\n\t\tfocusFilter = new OptionPane(\"Focus\",new String[]{\"All\",\"Focused\",\"Unfocused\"});\r\n\t\tfocusFilter.setBorder(new EmptyBorder(0,13,0,0));\r\n\t\tfocusFilter.setSelectedButton(mode==SELECT ? \"Focused\" : \"All\");\r\n\t\tfocusFilter.setEnabled(mode==DELETE);\r\n\r\n\t\t// Initialize the visibility filter\r\n\t\tvisibilityFilter = new OptionPane(\"Visibility\",new String[]{\"All\",\"Visible\",\"Hidden\"});\t\t\r\n\t\tvisibilityFilter.setSelectedButton(mode==SELECT ? \"Visible\" : \"All\");\r\n\t\tvisibilityFilter.setEnabled(mode==DELETE);\r\n\t\t\r\n\t\t// Create the info pane\r\n\t\tJPanel infoPane = new JPanel();\r\n\t\tinfoPane.setBorder(new CompoundBorder(new EmptyBorder(5,5,0,5),new CompoundBorder(new LineBorder(Color.gray),new EmptyBorder(5,5,5,5))));\r\n\t\tinfoPane.setLayout(new GridLayout(3,1));\r\n\t\tinfoPane.add(typeFilter);\r\n\t\tinfoPane.add(focusFilter);\r\n\t\tinfoPane.add(visibilityFilter);\r\n\t\t\r\n\t\t// Generate the main dialog pane\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t\tpane.setLayout(new BorderLayout());\r\n\t\tpane.add(infoPane,BorderLayout.CENTER);\r\n\t\tpane.add(new ButtonPane(),BorderLayout.SOUTH);\r\n\t\t\r\n\t\t// Initialize the dialog parameters\r\n\t\tsetContentPane(pane);\r\n\t\tsetSize(200,250);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}",
"private void initialize(ArrayList<Object> data, JComboBox<String> list) {\n\t\t//initiates itself\n\t\tJDialog addingSups = new JDialog();\n\t\t\n\t\t//sets screen properties\n\t\taddingSups.setAlwaysOnTop (true);\n\t\taddingSups.setSize(400,450);\n\t\taddingSups.setLocationRelativeTo(null);\n\t\taddingSups.setVisible(true);\n\t\taddingSups.setModal(true);\n\t\taddingSups.setModalityType(ModalityType.DOCUMENT_MODAL);\n\t\taddingSups.setTitle(\"Add Supplier\");\n\t\taddingSups.getContentPane().setLayout(null);\n\n\t\t//gets database information\n\t\tsuppliers = (SupplierList) data.get(5);\n\t\tConnection connect = (Connection) data.get(0);\n\t\t\n\t\t//labels and TextFields related to Suppliers\n\t\tJLabel lblUsername = new JLabel(\"Supplier Name:*\");\n\t\tlblUsername.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblUsername.setBounds(11, 24, 149, 29);\n\t\taddingSups.add(lblUsername);\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Address:*\");\n\t\tlblPassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblPassword.setBounds(11, 62, 149, 29);\n\t\taddingSups.add(lblPassword);\n\t\t\n\t\tJLabel lblRetypePassword = new JLabel(\"City:*\");\n\t\tlblRetypePassword.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblRetypePassword.setBounds(11, 100, 149, 29);\n\t\taddingSups.add(lblRetypePassword);\n\t\t\n\t\tJLabel lblFirstName = new JLabel(\"State:*\");\n\t\tlblFirstName.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblFirstName.setBounds(11, 138, 149, 29);\n\t\taddingSups.add(lblFirstName);\n\t\t\n\t\tJLabel lblLastName = new JLabel(\"Zip Code:*\");\n\t\tlblLastName.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblLastName.setBounds(11, 176, 149, 29);\n\t\taddingSups.add(lblLastName);\n\t\t\n\t\tJLabel lblEmployeeRole = new JLabel(\"Email:\");\n\t\tlblEmployeeRole.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblEmployeeRole.setBounds(11, 214, 149, 29);\n\t\taddingSups.add(lblEmployeeRole);\n\t\t\n\t\tJLabel lblEmailAddress = new JLabel(\"Website:\");\n\t\tlblEmailAddress.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblEmailAddress.setBounds(11, 252, 149, 29);\n\t\taddingSups.add(lblEmailAddress);\n\t\t\n\t\tJLabel lblPhoneNumber = new JLabel(\"Phone number:\");\n\t\tlblPhoneNumber.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\tlblPhoneNumber.setBounds(11, 290, 149, 29);\n\t\taddingSups.add(lblPhoneNumber);\n\t\t\n\t\tsupNameTextField = new JTextField();\n\t\tsupNameTextField.setBounds(158, 17, 191, 35);\n\t\taddingSups.add(supNameTextField);\n\t\tsupNameTextField.setColumns(10);\n\t\t\n\t\tsupAddressTextField = new JTextField();\n\t\tsupAddressTextField.setColumns(10);\n\t\tsupAddressTextField.setBounds(158, 55, 191, 35);\n\t\taddingSups.add(supAddressTextField);\n\t\t\n\t\tsupCityTextField = new JTextField();\n\t\tsupCityTextField.setColumns(10);\n\t\tsupCityTextField.setBounds(158, 93, 191, 35);\n\t\taddingSups.add(supCityTextField);\n\t\t\n\t\tsupStateTextField = new JTextField();\n\t\tsupStateTextField.setColumns(10);\n\t\tsupStateTextField.setBounds(158, 131, 191, 35);\n\t\taddingSups.add(supStateTextField);\n\t\t\n\t\tsupZipTextField = new JTextField();\n\t\tsupZipTextField.setColumns(10);\n\t\tsupZipTextField.setBounds(158, 169, 191, 35);\n\t\taddingSups.add(supZipTextField);\n\t\t\n\t\tsupEmailTextField = new JTextField();\n\t\tsupEmailTextField.setColumns(10);\n\t\tsupEmailTextField.setBounds(158, 207, 191, 35);\n\t\taddingSups.add(supEmailTextField);\n\t\t\n\t\tsupWebsiteTextField = new JTextField();\n\t\tsupWebsiteTextField.setColumns(10);\n\t\tsupWebsiteTextField.setBounds(158, 245, 191, 35);\n\t\taddingSups.add(supWebsiteTextField);\n\t\t\n\t\tsupPhoneTextField = new JTextField();\n\t\tsupPhoneTextField.setColumns(10);\n\t\tsupPhoneTextField.setBounds(158, 283, 191, 35);\n\t\taddingSups.add(supPhoneTextField);\n\t\t\n\t\t//add supplier button\n\t\tJButton btnAddSupplier = new JButton(\"Add Supplier\");\n\t\tbtnAddSupplier.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//gets information from TextFields\n\t\t\t\tString supName = supNameTextField.getText().trim();\n\t\t\t\tString supAddress = supAddressTextField.getText().trim();\n\t\t\t\tString supCity = supCityTextField.getText().trim();\n\t\t\t\tString supState = supStateTextField.getText().trim();\n\t\t\t\tint supZip = Integer.parseInt(supZipTextField.getText().trim());\n\t\t\t\tString supEmail = supEmailTextField.getText().trim();\n\t\t\t\tString supWebsite = supWebsiteTextField.getText().trim();\n\t\t\t\tString supPhone = supPhoneTextField.getText().trim();\n\t\t\t\t\n\t\t\t\t//check for required information\n\t\t\t\tif(supName.equals(\"\") || supAddress.equals(\"\") || supCity.equals(\"\") || \n\t\t\t\t\t\tsupState.equals(\"\") || supZipTextField.getText().equals(\"\")){\n\t\t\t\t\tsetWarningMsg(\"Please enter information in the *required boxes.\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSupplier temp = new Supplier(supName, supAddress, supCity, supState,\n\t\t\t\t\t\tsupZip, supEmail, supWebsite, supPhone);\n\t\t\t\t\n\t\t\t\t\t//checks for administrator approval\n\t\t\t\t\tAdminVerificationScreen adminveri = new AdminVerificationScreen(data);\n\t\t\t\t\tif (adminveri.verify)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"New Supplier added\");\n\t\t\t\t\t\t//adds supplier to database\n\t\t\t\t\t\ttemp.setID(callAddSupplierProcedure(connect, temp));\n\t\t\t\t\t\t//adds supplier to program\n\t\t\t\t\t\tsuppliers.addSupplier(temp);\n\t\t\t\t\t\tadded = true;\n\t\t\t\t\t\tlist.removeAllItems();\n\t\t\t\t\t\t//adds new supplier to comboBox list and selects it \n\t\t\t\t\t\tfor(int x = 0; x< suppliers.size(); x++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist.addItem(suppliers.getSupplier(x).getName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlist.addItem(\"New Supplier\");\n\t\t\t\t\t\tlist.setSelectedIndex(suppliers.size()-1);\n\t\t\t\t\t\tlist.revalidate();\n\t\t\t\t\t\taddingSups.dispose();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tsetWarningMsg(\"Administrator not verified. No \"\n\t\t\t\t\t\t\t\t+ \"information was saved.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAddSupplier.setBounds(99, 322, 155, 37);\n\t\taddingSups.add(btnAddSupplier);\n\t}",
"public FiltroGirosDialog() {\n \n }",
"public DriftSwing() {\n initComponents();\n \n // Create an invisible options dialog to initialize options\n options = new OptionsDialog(this);\n }",
"public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }",
"public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }",
"private void initialize() {\n\t\tlogMessages = new ArrayBlockingQueue<KIDSGUIAlert>(100);\n\t\tcontroller = new ABOXBuilderController(logMessages);\n\t\tmodel = new ABOXBuilderModel(logMessages, controller);\n\n\t\tframe = new JFrame();\n\t\tmyst8 = new ABOXBuilderState(frame);\n\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\t// Open a JDialog that prompts whether to save the ABOX or now; also write out configuration file\n\t\t\t// to save state for next session.\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tint response = JOptionPane.showConfirmDialog(frame, \"Save ABOX to file?\", \"Warning\", JOptionPane.YES_NO_CANCEL_OPTION);\n\t\t\t\tif (response == JOptionPane.YES_OPTION){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcontroller.save();\n\t\t\t\t\t} catch (OWLOntologyStorageException e1) {\n\t\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(String.format(\"Uh-oh - couldn't save ABOX: %s\",e1.getMessage())));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (response != JOptionPane.CANCEL_OPTION){\n\t\t\t\t\tframe.setVisible(false);\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tframe.setBounds(100, 100, 648, 406);\n\t\tframe.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tframe.setJMenuBar(menuBar);\n\t\t\n\t\tJMenu mnFile = new JMenu(\"File\");\n\t\tmenuBar.add(mnFile);\n\t\t\n\t\tJMenuItem mntmNew = new JMenuItem(\"New\");\n\t\tmntmNew.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// Open a JDialog which prompts for TBOX location, IRI, and desired ABOX IRI; initiate a new ABOX\n\t\t\t\tNewABOXJDialog getStarted = new NewABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initNew(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t\tlogme.error(\"Could not load ontology: \", e1);\n\t\t\t\t} catch (OWLOntologyStorageException e1) {\n\t\t\t\t\tcontroller.logappendError(\"Uh-oh - an exception occurred when writing the ontology: \" + e1.getMessage());\n\t\t\t\t\tlogme.error(\"Could not write ontology: \", e1);\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}\n\t\t});\n\t\tmnFile.add(mntmNew);\n\t\t\n\t\tJMenuItem mntmOpen = new JMenuItem(\"Open\");\n\t\tmntmOpen.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// Open a JDialog which prompts for TBOX location, IRI, and desired ABOX IRI; initiate a new ABOX\n\t\t\t\tOpenABOXJDialog getStarted = new OpenABOXJDialog(frame, myst8);\n\t\t\t\tgetStarted.setModal(true);\n\t\t\t\tgetStarted.setVisible(true);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcontroller.initExisting(getStarted.getTBOXLocationTextField(), \n\t\t\t\t\t\t\t\tgetStarted.getTBOXIRI(), \n\t\t\t\t\t\t\t\tgetStarted.getABOXLocationTextField(),\n\t\t\t\t\t\t\t\tgetStarted.getABOXIRI());\n\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXLoaded);\n\t\t\t\t} catch (OWLOntologyCreationException e1) {\n\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(\"Uh-oh - an exception occurred when loading the ontology: \" + e1.getMessage()));\n\t\t\t\t}\n\t\t\t\tprocessMessageQueue();\n\t\t\t}\n\t\t});\n\t\tmnFile.add(mntmOpen);\n\t\t\n\t\tJMenuItem mntmSave = new JMenuItem(\"Save\");\n\t\tmntmSave.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(String.format(\n\t\t\t\t\t\t\t\t\"Saving ontology...\")));\n\t\t\t\t\t\tcontroller.save();\n\t\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(String.format(\n\t\t\t\t\t\t\t\t\"Done\")));\n\t\t\t\t\t\tmodel.setState(ABOXBuilderGUIState.ABOXSAVED);\n\t\t\t\t\t} catch (OWLOntologyStorageException e1) {\n\t\t\t\t\t\tcontroller.logappend(new KIDSGUIAlertError(String.format(\"Uh-oh - couldn't save ABOX: %s\",e1.getMessage())));\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tprocessMessageQueue();\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmnFile.add(mntmSave);\n\t\t\n\t\tJMenu mnEdit = new JMenu(\"Edit\");\n\t\tmenuBar.add(mnEdit);\n\t\t\n\t\tJMenuItem mntmAddEvent = new JMenuItem(\"Add Event\");\n\t\tmntmAddEvent.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif (model.getState() != ABOXBuilderGUIState.UNINITIALIZED){\n\t\t\t\t\t// Create the AddEventJDialog to create the event\n\t\t\t\t\tKIDSAddIndividualJDialog newEvent = new KIDSAddIndividualJDialog(frame, \n\t\t\t\t\t\t\tcontroller.getABOXPrefix(), \n\t\t\t\t\t\t\tKIDSOracle.eventClass, \n\t\t\t\t\t\t\tcontroller);\n\t\t\t\t\tnewEvent.setModal(true);\n\t\t\t\t\tnewEvent.setVisible(true);\n\t\t\t\t\n\t\t\t\t\tcontroller.addEvent(newEvent.getAddedElementIRI());\n\n\t\t\t\t\tcontroller.logappendInfo(\"Added event: \" + newEvent.getAddedElementIRI());\n\t\t\t\t} else {\n\t\t\t\t\tcontroller.logappendInfo(\"ABOX uninitialized; create new or open existing.\");\n\t\t\t\t}\n\n\t\t\t\tprocessMessageQueue();\n\t\t\t}\n\t\t});\n\t\tmnEdit.add(mntmAddEvent);\n\t\t\n\t\tJMenuItem mntmAddSignal = new JMenuItem(\"Add Signal\");\n\t\tmnEdit.add(mntmAddSignal);\n\t\t\n\t\tJMenu mnModelActions = new JMenu(\"Model Actions\");\n\t\tmenuBar.add(mnModelActions);\n\t\t\n\t\tJMenuItem mntmValidateModel = new JMenuItem(\"Validate Model\");\n\t\tmnModelActions.add(mntmValidateModel);\n\t\t\n\t\tJMenuItem mntmEvalEvent = new JMenuItem(\"Evaluate...\");\n\t\tmntmEvalEvent.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif (model.getState() != ABOXBuilderGUIState.UNINITIALIZED){\n\t\t\t\t\t// Execute the measurement code and return results.\n\t\t\t\t\tKIDSRunMeasurementEvalJDialog getEventInd = new KIDSRunMeasurementEvalJDialog(frame, controller);\n\t\t\t\t\tlogme.debug(String.format(\"KIDSRunMeasurementEvalJDialog loaded...\"));\n\t\t\t\t\tgetEventInd.setModal(true);\n\t\t\t\t\tlogme.debug(String.format(\"KIDSRunMeasurementEvalJDialog set modal...\"));\n\t\t\t\t\tgetEventInd.setVisible(true);\n\t\t\t\t\tlogme.debug(String.format(\"KIDSRunMeasurementEvalJDialog visible...\"));\n\t\t\t\t} else {\n\t\t\t\t\tcontroller.logappendInfo(\"ABOX uninitialized; create new or open existing.\");\n\t\t\t\t}\n\n\t\t\t\tprocessMessageQueue();\n\t\t\t}\n\t\t});\n\t\tmnModelActions.add(mntmEvalEvent);\n\t\t\n\t\tJMenuItem mntmEvalDatasets = new JMenuItem(\"Evaluate datasets...\");\n\t\tmntmEvalDatasets.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif (model.getState() != ABOXBuilderGUIState.UNINITIALIZED){\n\t\t\t\t\t// Execute the measurement code and return results.\n\t\t\t\t\tKIDSEvalDatasetViewsJDialog getDatasetViewD = new KIDSEvalDatasetViewsJDialog(frame, controller);\n\t\t\t\t\tlogme.debug(String.format(\"KIDSEvalDatasetViewsJDialog loaded...\"));\n\t\t\t\t\tgetDatasetViewD.setModal(true);\n\t\t\t\t\tlogme.debug(String.format(\"KIDSEvalDatasetViewsJDialog set modal...\"));\n\t\t\t\t\tgetDatasetViewD.setVisible(true);\n\t\t\t\t\tlogme.debug(String.format(\"KIDSEvalDatasetViewsJDialog visible...\"));\n\t\t\t\t} else {\n\t\t\t\t\tcontroller.logappendInfo(\"ABOX uninitialized; create new or open existing.\");\n\t\t\t\t}\n\n\t\t\t\tprocessMessageQueue();\n\t\t\t}\n\t\t});\n\t\tmnModelActions.add(mntmEvalDatasets);\n\t\t\n\t\tJMenu mnModelInfo = new JMenu(\"Model Info\");\n\t\tmenuBar.add(mnModelInfo);\n\t\t\n\t\tJMenuItem mntmGetAllIndividuals = new JMenuItem(\"Get all individuals\");\n\t\tmntmGetAllIndividuals.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// Add all IRIs to the log window:\n\t\t\t\tSet <IRI> individuals = controller.getKnownIndividuals();\n\t\t\t\tfor (IRI item : individuals){\n\t\t\t\t\tcontroller.logappendInfo(item.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmnModelInfo.add(mntmGetAllIndividuals);\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\n\t\tgridBagLayout.columnWidths = new int[]{0, 0};\n\t\tgridBagLayout.rowHeights = new int[] {0, 0, 0, 0};\n\t\tgridBagLayout.columnWeights = new double[]{1.0, Double.MIN_VALUE};\n\t\tgridBagLayout.rowWeights = new double[]{1.0, Double.MIN_VALUE, 1.0, 1.0};\n\t\tframe.getContentPane().setLayout(gridBagLayout);\n\t\t\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\tGridBagConstraints gbc_tabbedPane = new GridBagConstraints();\n\t\tgbc_tabbedPane.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_tabbedPane.fill = GridBagConstraints.BOTH;\n\t\tgbc_tabbedPane.gridx = 0;\n\t\tgbc_tabbedPane.gridy = 0;\n\t\ttabbedPane.setPreferredSize(new Dimension(1000,500));\n\t\tframe.getContentPane().add(tabbedPane, gbc_tabbedPane);\n\t\t\n\t\tJPanel EventPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.EVENTCLASSIRI);\n\t\ttabbedPane.addTab(\"Events\", null, EventPanel, null);\n\t\t\n\t\tJPanel DatasetPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.DATASETCLASSIRI);\n\t\ttabbedPane.addTab(\"Datasets\", null, DatasetPanel, null);\n\n\t\tJPanel SignalPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.SIGNALCLASSIRI);\n\t\ttabbedPane.addTab(\"Signals\", null, SignalPanel, null);\n\t\t\n\t\tJPanel TimePeriodPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.TIMEPERIODCLASSIRI);\n\t\ttabbedPane.addTab(\"TimePeriods\", null, TimePeriodPanel, null);\n\t\t\n\t\tJPanel DatasetViewPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.DATASETVIEWCLASSIRI);\n\t\ttabbedPane.addTab(\"DatasetViews\", null, DatasetViewPanel, null);\n\n\t\tJPanel DatasetLabelPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.DATASETLABELCLASSIRI);\n\t\ttabbedPane.addTab(\"DatasetLabels\", null, DatasetLabelPanel, null);\n\t\t\n\t\tJPanel DetectorPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.DETECTORCLASSIRI);\n\t\ttabbedPane.addTab(\"Detectors\", null, DetectorPanel, null);\n\t\t\n\t\tJPanel SignalManifestationPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.SIGNALMANIFESTATIONCLASSIRI);\n\t\ttabbedPane.addTab(\"SignalManifestations\", null, SignalManifestationPanel, null);\n\n\t\tJPanel SignalDomainRepresentationPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.SIGNALDOMAINREPRESENTATIONCLASSIRI);\n\t\ttabbedPane.addTab(\"SignalDomainReps\", null, SignalDomainRepresentationPanel, null);\n\n\t\tJPanel SignalDomainContextPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.SIGNALDOMAINCONTEXTCLASSIRI);\n\t\ttabbedPane.addTab(\"SignalDomainContexts\", null, SignalDomainContextPanel, null);\n\t\t\n\t\tJPanel SignalDomainPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.SIGNALDOMAINCLASSIRI);\n\t\ttabbedPane.addTab(\"SignalDomains\", null, SignalDomainPanel, null);\n\t\t\n\t\tJPanel DetectorSyntaxPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.DETECTORSYNTAXCLASSIRI);\n\t\ttabbedPane.addTab(\"DetectorSyntax\", null, DetectorSyntaxPanel, null);\n\t\t\n\t\tJPanel SignalConstraintPanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.SIGNALCONSTRAINTCLASSIRI);\n\t\ttabbedPane.addTab(\"SignalConstraints\", null, SignalConstraintPanel, null);\n\t\t\n\t\tJPanel SignalValuePanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.SIGNALVALUECLASSIRI);\n\t\ttabbedPane.addTab(\"SignalValues\", null, SignalValuePanel, null);\n\t\t\n\t\tJPanel ResourcePanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.RESOURCECLASSIRI);\n\t\ttabbedPane.addTab(\"Resources\", null, ResourcePanel, null);\n\t\t\n\t\tJPanel ResponsePanel = new KIDSIndividualProblemsJPanel(ABOXBuilderController.RESPONSECLASSIRI);\n\t\ttabbedPane.addTab(\"Responses\", null, ResponsePanel, null);\n\t\t\n\t\tJLabel lblLogs = new JLabel(\"Logs\");\n\t\tGridBagConstraints gbc_lblLogs = new GridBagConstraints();\n\t\tgbc_lblLogs.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_lblLogs.gridx = 0;\n\t\tgbc_lblLogs.gridy = 1;\n\t\tframe.getContentPane().add(lblLogs, gbc_lblLogs);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tGridBagConstraints gbc_scrollPane = new GridBagConstraints();\n\t\tgbc_scrollPane.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_scrollPane.fill = GridBagConstraints.BOTH;\n\t\tgbc_scrollPane.gridx = 0;\n\t\tgbc_scrollPane.gridy = 2;\n\t\tframe.getContentPane().add(scrollPane, gbc_scrollPane);\n\t\t\n\t\tlogLines = new JTextPane();\n\t\tscrollPane.setViewportView(logLines);\n\t\tlogLines.setDropMode(DropMode.INSERT);\n\t\tlogLines.setBackground(Color.GRAY);\n\t\tlogLines.setForeground(new Color(0, 255, 0));\n\t\tlogLines.setEditable(false);\n\t\t\n\t\tprocessMessageQueue();\n\t}",
"public FacturarPrincipal() {\n initComponents();\n\n dlgLogin.setSize(692, 345);\n dlgLogin.setLocationRelativeTo(this);\n dlgLogin.setVisible(true);\n dlgCrearProducto.setSize(300, 400);\n dlgCrearProducto.setLocationRelativeTo(this);\n\n //Se inicializan todos los modelos y los objetos.\n modeloClientes = new DefaultListModel<>();\n modeloProductos = new DefaultListModel<>();\n modeloHistorialVentas = new DefaultListModel<>();\n gestionarArchivos = new GestionA();\n //Se asignan a las listas los modelos que les corresponden, además,\n //se cargan los archivos .txt en cada lista.\n lstClientesVentas.setModel(modeloClientes);\n lstClientes.setModel(modeloClientes);\n lstClientes.setModel(gestionarArchivos.lista(\"Archivos/clientes.txt\"));\n lstProductos.setModel(gestionarArchivos.lista(\"Archivos/productos.txt\"));\n lstHistorialVentas.setModel(gestionarArchivos.lista(\"Archivos/facturas.txt\"));\n lstClientesVentas.setModel(gestionarArchivos.lista(\"Archivos/clientes.txt\"));\n lstProductosVentas.setModel(gestionarArchivos.lista(\"Archivos/productos.txt\"));\n modeloClientes = (DefaultListModel) lstClientes.getModel();\n modeloProductos = (DefaultListModel) lstProductos.getModel();\n modeloHistorialVentas = (DefaultListModel) lstHistorialVentas.getModel();\n\n }",
"public AdminJP() {\n initComponents();\n aplicarTextPrompt();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public StandardDialog() {\n super();\n init();\n }",
"private void setupOpnameImportDialog( ) {\n\t// Create modal dialog for editing opname record\n String title = \"Update Opname Import (\" + Integer.toString(opnameKeys.size()) + \" records)\";\n\tif ( parentObject instanceof JFrame ) {\n\t dialog = new JDialog( ( JFrame )parentObject, title, true );\n\t} else if ( parentObject instanceof JDialog ) {\n\t dialog = new JDialog( ( JDialog )parentObject, title, true );\n\t} else {\n\t logger.severe( \"Unexpected parent object class: \" +\n\t\t\t parentObject.getClass( ).getName( ) );\n\t return;\n\t}\n\n\t// Set grid bag layout manager\n\tContainer container = dialog.getContentPane( );\n\tcontainer.setLayout( new GridBagLayout( ) );\n GridBagConstraints constraints = new GridBagConstraints( );\n\n //////////////////////////////////////////\n // Import Type Combo Box, Import Datum\n //////////////////////////////////////////\n\n constraints.anchor = GridBagConstraints.EAST;\n constraints.insets = new Insets( 5, 20, 5, 5 );\n constraints.gridx = 0;\n constraints.gridy = 1;\n constraints.gridwidth = 1;\n container.add( new JLabel( \"Import:\" ), constraints );\n\n // Setup a JComboBox for ImportType\n importTypeComboBox = new ImportTypeComboBox( conn, defaultImportTypeId );\n importTypeComboBox.addActionListener( ( ActionEvent actionEvent ) -> {\n if (importTypeComboBox.getSelectedImportTypeId( ) == 0) {\n importDatumSpinner.setEnabled(false);\n }\n else {\n importDatumSpinner.setEnabled(true);\n }\n } );\n\n final JPanel importPanel = new JPanel();\n importPanel.add( importTypeComboBox );\n\n // Import datum\n GregorianCalendar calendar = new GregorianCalendar( );\n if (defaultImportDatum == null) {\n defaultImportDatum = calendar.getTime();\n }\n\n calendar.add( Calendar.YEAR, -50 );\n Date earliestDate = calendar.getTime( );\n calendar.add( Calendar.YEAR, 100 );\n Date latestDate = calendar.getTime( );\n SpinnerDateModel importDatumSpinnerDatemodel = new SpinnerDateModel(defaultImportDatum,\n earliestDate,\n latestDate,\n Calendar.DAY_OF_MONTH );\n importDatumSpinner = new JSpinner( importDatumSpinnerDatemodel );\n importDatumSpinner.setEditor( new JSpinner.DateEditor( importDatumSpinner, \"dd-MM-yyyy\" ) );\n importPanel.add( importDatumSpinner );\n\n // Set the import datum to enabled or disabled according to the selected medium type ID\n if (importTypeComboBox.getSelectedImportTypeId( ) == 0) {\n importDatumSpinner.setEnabled(false);\n }\n else {\n importDatumSpinner.setEnabled(true);\n }\n\n constraints.insets = new Insets( 5, 0, 5, 20 );\n constraints.anchor = GridBagConstraints.WEST;\n constraints.gridx = GridBagConstraints.RELATIVE;\n constraints.gridwidth = 2;\n container.add( importPanel, constraints );\n\n\n\t//////////////////////////////////////////\n\t// Update/Insert, Cancel buttons\n\t//////////////////////////////////////////\n\n\tJPanel buttonPanel = new JPanel( );\n\n\tActionListener buttonPanelActionListener = ( ActionEvent actionEvent ) -> {\n boolean result = true;\n\n if ( actionEvent.getActionCommand( ).equals( \"updateOpnameImport\" ) ) {\n result = updateOpnameImport( );\n }\n\n // Any other actionCommand, including cancel, has no action\n if ( result ) {\n dialog.setVisible( false );\n }\n };\n\n\tJButton editOpnameButton = new JButton( \"Update (\" + Integer.toString(opnameKeys.size()) + \" opname records)\");\n\teditOpnameButton.setActionCommand( \"updateOpnameImport\" );\n\teditOpnameButton.addActionListener( buttonPanelActionListener );\n\tbuttonPanel.add( editOpnameButton );\n\n\tJButton cancelOpnameButton = new JButton( \"Cancel\" );\n\tcancelOpnameButton.setActionCommand( \"cancelOpnameImport\" );\n\tcancelOpnameButton.addActionListener( buttonPanelActionListener );\n\tbuttonPanel.add( cancelOpnameButton );\n\n constraints.anchor = GridBagConstraints.CENTER;\n constraints.insets = new Insets( 5, 20, 20, 20 );\n\tconstraints.gridx = 0;\n\tconstraints.gridy = 14;\n\tconstraints.gridwidth = 3;\n\tcontainer.add( buttonPanel, constraints );\n\n // Default dialog size\n final Dimension dialogSize = new Dimension( 400, 150 );\n\tdialog.setSize( dialogSize );\n\tdialog.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );\n\tdialog.setVisible( true );\n }",
"public SaddamWindow(SaddamDocument aDocument) {\n super(aDocument);\n setSize(600, 500);\n\ttheDoc = aDocument;\n \tnullDevices = new Vector<String>();\n\tnullDevices.add(\"Pick Sequence\");\n\tnullSignals = new Vector<String>();\n\tnullSignals.add(\"Pick Device Type\");\n\tnullValues = new Vector<String>();\n\tnullValues.add(\"No Values Available\");\n\tactionChoices = new Vector<String>();\n\tactionChoices.add(\"Set Value\");\n\tactionChoices.add(\"Increment Value\");\n\tactionChoices.add(\"Multiply Value\");\t\n\tactionChoice = new JComboBox<String>(actionChoices);\n\t\n makeContent();\n Container container = getContentPane();\n\tcontainer.add(mainPanel);\n\t\n }",
"public ACLPropertyDialog() {\n this.setModal(true);\n try {\n jbInit();\n pack();\n }\n catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"protected ERMinerNodeDialog() {\nsuper();\n \n addDialogComponent(new DialogComponentColumnNameSelection(ERMinerNodeModel.createSeqColumnModel(),\n\t\t\t\t\t\t\"Column containing the sequences: \", 0, true, StringValue.class));\n addDialogComponent(new DialogComponentNumber(ERMinerNodeModel.createMinSupModel(), \"Choose minSup\", 0.05));\n addDialogComponent(new DialogComponentNumber(ERMinerNodeModel.createMinConfModel(), \"Choose minConf\", 0.05));\n }",
"public frmModelMainForm() {\n initComponents();\n }",
"public Form getSeatchform () {\nif (seatchform == null) {//GEN-END:|23-getter|0|23-preInit\n // write pre-init user code here\nseatchform = new Form (\"S\\u00F6k\", new Item[] { getArtistTf (), getSongTF () });//GEN-BEGIN:|23-getter|1|23-postInit\nseatchform.addCommand (getOkCommand ());\nseatchform.addCommand (getBackCommand ());\nseatchform.setCommandListener (this);//GEN-END:|23-getter|1|23-postInit\n // write post-init user code here\n}//GEN-BEGIN:|23-getter|2|\nreturn seatchform;\n}",
"public void setupImport() {\r\n\t\tmnuImport.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew ImportGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public CGPA() {\n initComponents();\n this.setTitle(\"CGPA/SGPA\");\n cgpa_tf.requestFocus();\n }",
"private void courseGUIsetup() {\n\t\t\t\tif(list.getSelectedValue()!= null)\n\t\t\t\t{\n\t\t\t\t\tCourse c = (Course)list.getSelectedValue();\n\t\t\t\t\tcourseGUI = new CourseGUI(c);\n\t\t\t\t\tcourseGUI.setListeners(new profCourseListener());\n\n\t\t\t\t\tframeHolder.setVisible(false);\n\t\t\t\t\tframeHolder = courseGUI.returnFrame();\n\t\t\t\t\tframeHolder.setVisible(true);\n\n\t\t\t\t\t//Initializing Scroll List with Students\n\t\t\t\t\tsetStudentScroll();\n\t\t\t\t\t//courseGUI.list.setModel(courseGUI.model);\n\t\t\t\t}\n\t\t\t}",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public ScrFontImportDialog(DictCore _core) {\n super(_core);\n this.setModal(true);\n initComponents();\n setupListeners();\n }",
"public FRMain() {\n initComponents(); //basically starts the program and creates all GUI panels\n \n \n menuScreen.setVisible(false);\n quizTagsSelectScreen.setVisible(false);\n quizScreen.setVisible(false);\n editScreen.setVisible(false);\n statsScreen.setVisible(false);\n loadFileChooser.setVisible(false);\n saveFileChooser.setVisible(false);\n deleteScreen.setVisible(false);\n saveFileChooser.setFileSelectionMode(javax.swing.JFileChooser.FILES_AND_DIRECTORIES); //can pick a directory to save in and then create file\n loadFileChooser.setFileSelectionMode(javax.swing.JFileChooser.FILES_ONLY); //can load from file only\n \n }",
"private void initialize() {\n\t\tsetModal(true);\n\t\tsetTitle(\"Mode Selector\");\n\t\tsetBounds(100, 100, 550, 343);\n\t\tsetDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\tToolkit toolkit = Toolkit.getDefaultToolkit();\n\t\tImage image = toolkit.getImage(ConfigFilePath.SWING_PATH);\n\t\tsetIconImage(image);\n\t\tgetContentPane().setLayout(null);\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(false);\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(0, 0, 534, 304);\n\t\tgetContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\tbtnMes.setFont(new Font(\"宋体\", Font.PLAIN, 27));\n\t\tbtnMes.setBounds(280, 104, 163, 75);\n\t\tpanel.add(btnMes);\n\t\tbtnOperator.setFont(new Font(\"宋体\", Font.PLAIN, 25));\n\t\tbtnOperator.setBounds(80, 104, 163, 75);\n\t\tpanel.add(btnOperator);\n\n\t\t// mes监听\n\t\tbtnMes.addActionListener(new ModeMesAction(this));\n\t\t// op监听\n\t\tbtnOperator.addActionListener(new ModeOpAction(this));\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n metamodel = new sk.tuke.magsa.maketool.component.ResourceComponent();\n externalParser = new sk.tuke.magsa.maketool.component.ExecutableResourceComponent();\n yajco = new sk.tuke.magsa.maketool.component.ExecutableResourceComponent();\n modelFile = new sk.tuke.magsa.maketool.component.ResourceComponent();\n model = new sk.tuke.magsa.maketool.component.ResourceComponent();\n arrow3 = new sk.tuke.magsa.maketool.component.Arrow();\n arrow4 = new sk.tuke.magsa.maketool.component.Arrow();\n arrow13 = new sk.tuke.magsa.maketool.component.Arrow();\n arrow22 = new sk.tuke.magsa.maketool.component.Arrow();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"sk/tuke/magsa/maketool/Bundle\"); // NOI18N\n metamodel.setLabel(bundle.getString(\"metamodel\")); // NOI18N\n add(metamodel, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 90, 130, 80));\n\n externalParser.setActionName(bundle.getString(\"parse\")); // NOI18N\n externalParser.setLabel(bundle.getString(\"externalParser\")); // NOI18N\n add(externalParser, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 230, 120, 60));\n\n yajco.setActionName(bundle.getString(\"generate\")); // NOI18N\n yajco.setLabel(bundle.getString(\"yajco\")); // NOI18N\n add(yajco, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 100, 100, 60));\n\n modelFile.setLabel(bundle.getString(\"modelFile\")); // NOI18N\n add(modelFile, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 230, 105, 55));\n\n model.setLabel(bundle.getString(\"model\")); // NOI18N\n add(model, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 230, 70, 60));\n\n arrow3.setBarbStyle(sk.tuke.magsa.maketool.component.Arrow.BarbStyle.FILLED);\n add(arrow3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 250, 40, 20));\n\n arrow4.setBarbStyle(sk.tuke.magsa.maketool.component.Arrow.BarbStyle.FILLED);\n add(arrow4, new org.netbeans.lib.awtextra.AbsoluteConstraints(460, 120, 40, 20));\n add(arrow13, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 250, 30, 20));\n\n arrow22.setOrientation(sk.tuke.magsa.maketool.component.Arrow.Orientation.SOUTH);\n add(arrow22, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 170, 40, 50));\n\n jLabel4.setBackground(new java.awt.Color(255, 255, 153));\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(bundle.getString(\"parserGenerationPhase\")); // NOI18N\n jLabel4.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jLabel4.setOpaque(true);\n add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(320, 40, 310, 150));\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 153));\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jLabel5.setOpaque(true);\n add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 40, 140, 260));\n\n jLabel3.setBackground(new java.awt.Color(241, 182, 139));\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18));\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(bundle.getString(\"parsingPhase\")); // NOI18N\n jLabel3.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jLabel3.setOpaque(true);\n add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1070, 530));\n }",
"public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }",
"public EMSimulationSettingsView(SimulationController controller) {\r\n this.controller = controller;\r\n jFileChooser1 = new JFileChooser();\r\n initComponents();\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n jButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton4ActionPerformed(evt);\r\n }\r\n });\r\n loadDefaultSettings();\r\n\r\n }",
"private static void initAndShowGUI() {\n }",
"public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }",
"public MainFrame() {\n initComponents();\n jLabel_Site.setCursor(new Cursor(Cursor.HAND_CURSOR));\n jf = new JFileChooser();\n jf.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n SpinnerNumberModel model = new SpinnerNumberModel(DownTask.getInstance().getPOOL_SIZE(), 1, 500, 1);\n jSpThreadCount.setModel(model);\n jTextField_SavePath.setText(DownTask.getInstance().getSavePath());\n MainFrameUI.setTaskTable(jTable_TaskList);\n MainFrameUI.setDowningTable(jTable_Download);\n }",
"private void initializeUI() {\r\n this.parentFrame = game.getFrame();\r\n parentFrame.setEnabled(false); // Disable main game UI during the ending dialog.\r\n createResultPopup();\r\n }",
"public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"public SignupAccountInfoAvatar() {\n super(\"SignupAvatar.AccountInfo\", BrowserConstants.DIALOGUE_BACKGROUND);\n this.profileConstraints = ProfileConstraints.getInstance();\n this.securityQuestionModel = new DefaultComboBoxModel();\n this.usernameReservations = new HashMap<String, UsernameReservation>();\n this.emailReservations = new HashMap<EMail, EMailReservation>();\n initSecurityQuestionModel();\n initComponents();\n addValidationListeners();\n initFocusListener();\n }",
"public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}",
"public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}",
"public studentGUI() {\n\t\ttry {\n\t\t\tinitialize();\n\t\t} catch (AccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public ManageStudentForm() {\n initComponents();\n \n initTable();\n \n fillTable();\n \n initMajor();\n setLocationRelativeTo(null);\n \n \n }",
"public VModalReimprimirFactura() {\n initComponents();\n this.setLocationRelativeTo(null);\n txtNumFactura.grabFocus();\n unaCuenta=null;\n unUsuario=null;\n usuario=null;\n clpdv = new CLPDV();\n }",
"public void makeScoringOptions() {\n ScoringOptionsGUI scoringOptionsGUI = new ScoringOptionsGUI(player);\n scoringOptionsGUI.setTitle(\"Yahtzee!\");\n scoringOptionsGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n scoringOptionsGUI.setSize(new Dimension(900, 750));\n scoringOptionsGUI.setVisible(true);\n dispose();\n }",
"public SanPhamJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n fileChooser = new JFileChooser();\n\n }",
"public orgGui() {\n initComponents();\n }",
"protected void setupUI() {\n\n }",
"private void init() {\n dominator = \"\";\n firstBlood = false;\n jLabel1.setIcon(new ImageIcon(getClass().getResource(\"/multiagent/resources/title.jpg\")));\n dialog = new ConfigurationDlg(this, true);\n setTitle(\"Game server\");\n agentList = new ArrayList<>();\n playerCount = 0;\n running = true;\n aborted = true;\n playersAgentsMap = new HashMap<>();\n iPlayerList = new HashMap<>();\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n String selected = String.valueOf(dialog.getFieldDimension().getSelectedItem());\n String selected2 = String.valueOf(dialog.getTightnessField().getSelectedItem());\n playingField = new PlayingField(Integer.parseInt(dialog.getResourceField().getText()),\n Integer.parseInt(selected.substring(selected.indexOf(\"x\") + 1)),\n Integer.parseInt(selected2.substring(0, selected2.indexOf(\"%\"))),\n agentList,\n playerCount,\n Integer.parseInt(String.valueOf(dialog.getCountAgents().getSelectedItem())));\n setLocationRelativeTo(null);\n pack();\n }",
"private void initUI() {\n\t\tfileInputPanel.setLayout(new GridBagLayout());\n\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\t\tgridBagConstraints.anchor = GridBagConstraints.NORTH;\n\t\tgridBagConstraints.gridwidth = 2;\n\n\t\tJLabel title = new JLabel(\"Welcome to ANNie\");\n\t\ttitle.setFont(new Font(\"Serif\", Font.BOLD, 36));\n\n\t\tfileInputPanel.add(title, gridBagConstraints);\n\n\t\tgridBagConstraints.gridwidth = 1;\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\n\t\tfileInputPanel.setBorder(BorderFactory.createLineBorder(Color.black));\n\n\t\tcreateFileDropdownArea(gridBagConstraints);\n\t\tcreateLabelSelectArea(gridBagConstraints);\n\t\tcreateButtons(gridBagConstraints);\n\t}",
"public IfController()\n\t{\n\t\t// String title111 = JOptionPane.showInputDialog(\"What is the title of your\n\t\t// movie?\");\n\t\t// String YearReleased111 = JOptionPane.showInputDialog(\"What year was it\n\t\t// released?\");\n\t\t// String RunTime111 = JOptionPane.showInputDialog(\"What is the run time of your\n\t\t// movie?\");\n\t\t// String Comedy111 = JOptionPane.showInputDialog(\"Is your movie a comedy?\");\n\n\t\tmyProperties = new Properties(\"The Man Who Knew Too Little\", 1997, 94.0, true);\n\t\t// myProperties = new Properties(\"The Man Who Knew Too Little\", 1997, 94.0, true\n\t\t// );\n\t}",
"public GUI_Edit_Tour(){\n init();\n }",
"private void initializeDisplayText() {\n // Title and field labels\n Stage stage = (Stage) titleLabel.getScene().getWindow();\n stage.setTitle(rb.getString(\"windowTitle\"));\n if (action.equals(Constants.ADD)) {\n titleLabel.setText(rb.getString(\"addTitleLabel\"));\n } else if (action.equals(Constants.UPDATE)) {\n titleLabel.setText(rb.getString(\"updateTitleLabel\"));\n }\n idLabel.setText(rb.getString(\"idLabel\"));\n nameLabel.setText(rb.getString(\"nameLabel\"));\n addressLabel.setText(rb.getString(\"addressLabel\"));\n cityLabel.setText(rb.getString(\"cityLabel\"));\n countryLabel.setText(rb.getString(\"countryLabel\"));\n divisionLabel.setText(rb.getString(\"divisionLabel\"));\n postalLabel.setText(rb.getString(\"postalLabel\"));\n phoneLabel.setText(rb.getString(\"phoneLabel\"));\n\n // Prompt text\n idField.setPromptText(rb.getString(\"idPrompt\"));\n nameField.setPromptText(rb.getString(\"namePrompt\"));\n addressField.setPromptText(rb.getString(\"addressPrompt\"));\n cityField.setPromptText(rb.getString(\"cityPrompt\"));\n countryComboBox.setPromptText(rb.getString(\"countryPrompt\"));\n divisionComboBox.setPromptText(rb.getString(\"divisionPrompt\"));\n postalField.setPromptText(rb.getString(\"postalPrompt\"));\n phoneField.setPromptText(rb.getString(\"phonePrompt\"));\n\n // Button labels\n Common.scaleButton(saveBtn, rb.getString(\"saveBtn\"));\n Common.scaleButton(cancelBtn, rb.getString(\"cancelBtn\"));\n\n // Error label; initially blank\n errorLabel.setText(\"\");\n }",
"private void startupForm() {\n pers = new PersonManager();\n myCountries = new CountryManager();\n initComponents();\n setLocationRelativeTo(null);\n //Load the Surname lists\n List<String> surnames = pers.getSurnameList();\n this.setTitle(\"View Contacts\");\n //Step through the List and add surnames\n for (String str : surnames) {\n this.surnameCombo.addItem(str);\n }\n this.forenameCombo.removeAllItems();\n this.sectionCombo.removeAllItems();\n this.surnameCombo.setSelectedItem(\"\");\n this.forenameCombo.setSelectedItem(\"\");\n this.sectionCombo.setSelectedItem(\"\");\n this.fillCountryTables();\n }",
"public RJGUIModel () {\n\t}",
"public QFrame(SettingFrame sfin) {\n initComponents();\n\n username = sfin.username;\n idnumber = sfin.idnumber;\n vocabulary = sfin.vocabulary;\n\n modeflag = sfin.modeflag;\n option_number = sfin.option_number;\n time_limit = sfin.time_limit;\n blank_number = sfin.blank_number;\n record_flag = sfin.record_flag;\n CE_flag = sfin.CE_flag;\n\n // Set key type;\n jButton1.setMnemonic(KeyEvent.VK_C);\n jButton2.setMnemonic(KeyEvent.VK_N);\n jButton4.setMnemonic(KeyEvent.VK_F);\n jButton3.setMnemonic(KeyEvent.VK_L);\n\n // Vocabulary source\n if (vocabulary == 0) {\n jLabel9.setText(\"GRE Words\");\n }\n if (vocabulary == 1) {\n jLabel9.setText(\"TOEFL Words\");\n }\n\n // Recording Timer\n second_recorded = 0;\n if (record_flag == 0) {\n ActionListener taskPerformer_record = new ActionListener3(QFrame.this);\n tm_record = new Timer(1000, taskPerformer_record);\n tm_record.start();\n }\n setquestion();\n }",
"public seViewAnswerUI() {\n initComponents();\n }",
"public static void newUAV(){\n GridPane gp = new GridPane();\n Text title = new Text(\"Create a UAV:\\nUAV Settings\");\n title.setTextAlignment(TextAlignment.CENTER);\n title.setId(\"title\"); // Set CSS style for the title\n GridPane.setColumnSpan(title,3);\n GridPane.setHalignment(title, HPos.CENTER);\n\n gp.setId(\"gridpane\"); // Set CSS style ID for the gridpane\n gp.getStyleClass().add(\"grid\");\n\n // Create the labels for the menu\n Label nameLabel = new Label(\"Name:\");\n Label weightLabel = new Label(\"Weight (g):\");\n Label turnRadiusLabel = new Label(\"Turn Radius (m):\");\n Label maxInclineLabel = new Label(\"Max incline angle (deg):\");\n Label batteryLabel = new Label(\"Battery Type:\");\n Label batteryCapacityLabel = new Label(\"Battery Capacity (mAh):\");\n\n name.setPromptText(\"Name of craft\");\n weight.setPromptText(\"Weight of craft\");\n turnRadius.setPromptText(\"Min turn radius of craft\");\n maxIncline.setPromptText(\"Max incline/decline angle\");\n battery.setPromptText(\"Battery used in craft (Lipo, NiMH, Li-ion...)\");\n batteryCapacity.setPromptText(\"Battery capacity in mAh\");\n\n // Create the buttons for the menu\n Button save = new Button(\"Save\");\n Button cancel = new Button(\"Cancel\");\n Button clear = new Button(\"Clear\");\n\n // Add all elements to the menu gridpane\n gp.add(title,0,0);\n\n // Add the components to the menu gridpane\n gp.add(nameLabel,0,1);\n gp.add(weightLabel,0,2);\n gp.add(turnRadiusLabel,0,3);\n gp.add(maxInclineLabel,0,4);\n gp.add(batteryLabel,0,5);\n gp.add(batteryCapacityLabel,0,6);\n\n gp.add(name,1,1);\n gp.add(weight,1,2);\n gp.add(turnRadius,1,3);\n gp.add(maxIncline,1,4);\n gp.add(battery,1,5);\n gp.add(batteryCapacity,1,6);\n\n // Add the buttons to the menu\n gp.add(save,0,7);\n gp.add(cancel,2,7);\n gp.add(clear,1,7);\n\n gp.setHgap(10);\n gp.setVgap(20);\n gp.setAlignment(Pos.CENTER);\n\n // If the save button is pressed\n save.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n // If a name has not been set\n if(name.getText().isEmpty()){\n System.out.println(\"Missing name for UAV\");\n }else {\n File file = new File(\"src/uavs/\"+name.getText()+\".uav\");\n if(file.exists()){\n dialogMessage.setText(\"The filename \"+ name.getText() +\n \".uav already exists in \"+path+\".\\n Would you like to overwrite?\");\n dialog.show();\n }else {\n writeUAV(); // Write the UAV settings\n createStage.close();\n }\n }\n }\n });\n\n // Close the menu\n cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n createStage.close();\n }\n });\n\n // Clear all text fields\n clear.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n name.clear();\n weight.clear();\n turnRadius.clear();\n maxIncline.clear();\n battery.clear();\n batteryCapacity.clear();\n }\n });\n\n createScene = new Scene(gp,500,700);\n createScene.setUserAgentStylesheet(\"style/menus.css\"); // Set the style of the menu\n createStage.setScene(createScene);\n createStage.show();\n }",
"public PrincipalSwing() {\n initComponents();\n }",
"public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }",
"public StartupOptions() {\n initComponents();\n done.addActionListener(Seasonality.bi);\n\n }",
"public soal2GUI() {\n initComponents();\n }",
"public PreferencesDialog (JFrame owner)\n {\n this (owner, \"OPENMARKOV User Preferences\",\n OpenMarkovPreferences.OPENMARKOV_NODE_PREFERENCES, true/*\n * ,\n * OpenMarkovPreferences\n * .\n * OPENMARKOV_KERNEL_PREFERENCES\n * , false\n */);\n }",
"private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setTitle(\"Gesti\\u00F3n de personal y suministros para la estaci\\u00F3n VDNKH\");\r\n\t\tframe.setBounds(300, 100, 700, 550);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\r\n\t\tJMenu mitNew = new JMenu(\"Nuevo\");\r\n\t\tmenuBar.add(mitNew);\r\n\r\n\t\tJMenuItem mitNewSoldier = new JMenuItem(\"Soldado\");\r\n\t\tmitNewSoldier.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tIfrSoldier ifrSoldier = new IfrSoldier();\r\n\t\t\t\tifrSoldier.setBounds(300, 100, 700, 550);\r\n\t\t\t\tframe.getContentPane().add(ifrSoldier);\r\n\t\t\t\tifrSoldier.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tmitNew.add(mitNewSoldier);\r\n\r\n\t\tJMenu mitSearch = new JMenu(\"Buscar\");\r\n\t\tmenuBar.add(mitSearch);\r\n\r\n\t\tJMenuItem mitSearchSoldier = new JMenuItem(\"Soldado\");\r\n\t\tmitSearch.add(mitSearchSoldier);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t}",
"private void setUpGui() {\n \n // make sure that the scroll panes are see-through\n qualityFiltersTableScrollPane.getViewport().setOpaque(false);\n\n // disable column reordering\n qualityFiltersTable.getTableHeader().setReorderingAllowed(false);\n\n // set the validation combo box\n validationLevelJComboBox.setRenderer(new AlignedListCellRenderer(SwingConstants.CENTER));\n validationLevelJComboBox.setEditable(false);\n\n // set up the table header tooltips\n validationTableToolTips = new ArrayList<>(3);\n validationTableToolTips.add(null);\n validationTableToolTips.add(\"Quality Test\");\n validationTableToolTips.add(\"Passed\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n promptUserDialog = new javax.swing.JDialog();\n promptTop = new javax.swing.JPanel();\n promptOuter = new javax.swing.JPanel();\n promptMain = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n promptUserMotifIDField = new javax.swing.JTextField();\n promptUserPropertyField = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n promptUserOldValueField = new javax.swing.JTextField();\n promptUserNewValueField = new javax.swing.JTextField();\n promptBottom = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n promptUseNewValueButton = new javax.swing.JButton();\n promptKeepCurrentValueButton = new javax.swing.JButton();\n promptMergeOrUseNewButton = new javax.swing.JButton();\n promptMergeOrKeepCurrentButton = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jButton4 = new javax.swing.JButton();\n topPanel = new javax.swing.JPanel();\n settingsPanel = new javax.swing.JPanel();\n propertyLabel = new javax.swing.JLabel();\n propertyCombobox = new javax.swing.JComboBox();\n combineStrategyLabel = new javax.swing.JLabel();\n combineStrategyCombobox = new javax.swing.JComboBox();\n mainPanel = new javax.swing.JPanel();\n tabPane = new javax.swing.JTabbedPane();\n parseListTab = new javax.swing.JPanel();\n scrollpane = new javax.swing.JScrollPane();\n parseListTextArea = new javax.swing.JTextArea();\n internal1 = new javax.swing.JPanel();\n parseListDescriptionLabel = new javax.swing.JLabel();\n importCollectionTab = new javax.swing.JPanel();\n buttonsPanel = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n skipUnrecognizedCheckbox = new javax.swing.JCheckBox();\n useTFnames = new javax.swing.JCheckBox();\n jPanel1 = new javax.swing.JPanel();\n okButton = new javax.swing.JButton();\n cancelButton = new javax.swing.JButton();\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(motiflab.gui.MotifLabApp.class).getContext().getResourceMap(AnnotateMotifsDialog.class);\n promptUserDialog.setTitle(resourceMap.getString(\"promptUserDialog.title\")); // NOI18N\n promptUserDialog.setModal(true);\n promptUserDialog.setName(\"promptUserDialog\"); // NOI18N\n\n promptTop.setName(\"promptTop\"); // NOI18N\n promptUserDialog.getContentPane().add(promptTop, java.awt.BorderLayout.PAGE_START);\n\n promptOuter.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n promptOuter.setName(\"promptOuter\"); // NOI18N\n promptOuter.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 10, 10));\n\n promptMain.setName(\"promptMain\"); // NOI18N\n promptMain.setLayout(new java.awt.GridBagLayout());\n\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 20, 5);\n promptMain.add(jLabel1, gridBagConstraints);\n\n jLabel2.setText(resourceMap.getString(\"jLabel2.text\")); // NOI18N\n jLabel2.setName(\"jLabel2\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets(5, 20, 20, 5);\n promptMain.add(jLabel2, gridBagConstraints);\n\n promptUserMotifIDField.setColumns(16);\n promptUserMotifIDField.setEditable(false);\n promptUserMotifIDField.setText(resourceMap.getString(\"promptUserMotifIDField.text\")); // NOI18N\n promptUserMotifIDField.setFocusable(false);\n promptUserMotifIDField.setName(\"promptUserMotifIDField\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 20, 5);\n promptMain.add(promptUserMotifIDField, gridBagConstraints);\n\n promptUserPropertyField.setColumns(12);\n promptUserPropertyField.setEditable(false);\n promptUserPropertyField.setText(resourceMap.getString(\"promptUserPropertyField.text\")); // NOI18N\n promptUserPropertyField.setFocusable(false);\n promptUserPropertyField.setName(\"promptUserPropertyField\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 20, 5);\n promptMain.add(promptUserPropertyField, gridBagConstraints);\n\n jLabel3.setText(resourceMap.getString(\"jLabel3.text\")); // NOI18N\n jLabel3.setName(\"jLabel3\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n promptMain.add(jLabel3, gridBagConstraints);\n\n jLabel4.setText(resourceMap.getString(\"jLabel4.text\")); // NOI18N\n jLabel4.setName(\"jLabel4\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n promptMain.add(jLabel4, gridBagConstraints);\n\n promptUserOldValueField.setColumns(26);\n promptUserOldValueField.setEditable(false);\n promptUserOldValueField.setText(resourceMap.getString(\"promptUserOldValueField.text\")); // NOI18N\n promptUserOldValueField.setFocusable(false);\n promptUserOldValueField.setName(\"promptUserOldValueField\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n promptMain.add(promptUserOldValueField, gridBagConstraints);\n\n promptUserNewValueField.setColumns(26);\n promptUserNewValueField.setEditable(false);\n promptUserNewValueField.setText(resourceMap.getString(\"promptUserNewValueField.text\")); // NOI18N\n promptUserNewValueField.setFocusable(false);\n promptUserNewValueField.setName(\"promptUserNewValueField\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);\n promptMain.add(promptUserNewValueField, gridBagConstraints);\n\n promptOuter.add(promptMain);\n\n promptUserDialog.getContentPane().add(promptOuter, java.awt.BorderLayout.CENTER);\n\n promptBottom.setBorder(javax.swing.BorderFactory.createEmptyBorder(6, 0, 0, 0));\n promptBottom.setName(\"promptBottom\"); // NOI18N\n promptBottom.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setName(\"jPanel3\"); // NOI18N\n jPanel3.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(motiflab.gui.MotifLabApp.class).getContext().getActionMap(AnnotateMotifsDialog.class, this);\n promptUseNewValueButton.setAction(actionMap.get(\"promptUseNewValue\")); // NOI18N\n promptUseNewValueButton.setMnemonic('n');\n promptUseNewValueButton.setName(\"promptUseNewValueButton\"); // NOI18N\n jPanel3.add(promptUseNewValueButton);\n\n promptKeepCurrentValueButton.setAction(actionMap.get(\"promptKeepOldValue\")); // NOI18N\n promptKeepCurrentValueButton.setMnemonic('c');\n promptKeepCurrentValueButton.setName(\"promptKeepCurrentValueButton\"); // NOI18N\n jPanel3.add(promptKeepCurrentValueButton);\n\n promptMergeOrUseNewButton.setAction(actionMap.get(\"promptMergeOrReplaceCurrent\")); // NOI18N\n promptMergeOrUseNewButton.setMnemonic('m');\n promptMergeOrUseNewButton.setName(\"promptMergeOrUseNewButton\"); // NOI18N\n jPanel3.add(promptMergeOrUseNewButton);\n\n promptMergeOrKeepCurrentButton.setAction(actionMap.get(\"promptMergeOrKeepCurrent\")); // NOI18N\n promptMergeOrKeepCurrentButton.setMnemonic('k');\n promptMergeOrKeepCurrentButton.setName(\"promptMergeOrKeepCurrentButton\"); // NOI18N\n jPanel3.add(promptMergeOrKeepCurrentButton);\n\n promptBottom.add(jPanel3, java.awt.BorderLayout.CENTER);\n\n jPanel4.setName(\"jPanel4\"); // NOI18N\n jPanel4.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));\n\n jButton4.setAction(actionMap.get(\"promptCancel\")); // NOI18N\n jButton4.setName(\"jButton4\"); // NOI18N\n jPanel4.add(jButton4);\n\n promptBottom.add(jPanel4, java.awt.BorderLayout.EAST);\n\n promptUserDialog.getContentPane().add(promptBottom, java.awt.BorderLayout.PAGE_END);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setName(\"Form\"); // NOI18N\n\n topPanel.setName(\"topPanel\"); // NOI18N\n topPanel.setLayout(new java.awt.BorderLayout());\n\n settingsPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 5, 4, 5));\n settingsPanel.setName(\"settingsPanel\"); // NOI18N\n settingsPanel.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEADING));\n\n propertyLabel.setText(resourceMap.getString(\"propertyLabel.text\")); // NOI18N\n propertyLabel.setName(\"propertyLabel\"); // NOI18N\n settingsPanel.add(propertyLabel);\n\n propertyCombobox.setName(\"propertyCombobox\"); // NOI18N\n settingsPanel.add(propertyCombobox);\n\n combineStrategyLabel.setText(resourceMap.getString(\"combineStrategyLabel.text\")); // NOI18N\n combineStrategyLabel.setName(\"combineStrategyLabel\"); // NOI18N\n settingsPanel.add(combineStrategyLabel);\n\n combineStrategyCombobox.setName(\"combineStrategyCombobox\"); // NOI18N\n settingsPanel.add(combineStrategyCombobox);\n\n topPanel.add(settingsPanel, java.awt.BorderLayout.SOUTH);\n\n getContentPane().add(topPanel, java.awt.BorderLayout.PAGE_START);\n\n mainPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));\n mainPanel.setName(\"mainPanel\"); // NOI18N\n mainPanel.setLayout(new java.awt.BorderLayout());\n\n tabPane.setBorder(javax.swing.BorderFactory.createEmptyBorder(8, 0, 0, 0));\n tabPane.setName(\"tabPane\"); // NOI18N\n\n parseListTab.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED), javax.swing.BorderFactory.createEmptyBorder(8, 8, 8, 8)));\n parseListTab.setName(\"parseListTab\"); // NOI18N\n parseListTab.setLayout(new java.awt.BorderLayout());\n\n scrollpane.setName(\"scrollpane\"); // NOI18N\n\n parseListTextArea.setColumns(20);\n parseListTextArea.setRows(5);\n parseListTextArea.setName(\"parseListTextArea\"); // NOI18N\n scrollpane.setViewportView(parseListTextArea);\n\n parseListTab.add(scrollpane, java.awt.BorderLayout.CENTER);\n\n internal1.setAlignmentY(0.0F);\n internal1.setMinimumSize(new java.awt.Dimension(96, 70));\n internal1.setName(\"internal1\"); // NOI18N\n internal1.setPreferredSize(new java.awt.Dimension(363, 70));\n internal1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEADING));\n\n parseListDescriptionLabel.setText(resourceMap.getString(\"parseListDescriptionLabel.text\")); // NOI18N\n parseListDescriptionLabel.setMinimumSize(new java.awt.Dimension(86, 62));\n parseListDescriptionLabel.setName(\"parseListDescriptionLabel\"); // NOI18N\n parseListDescriptionLabel.setPreferredSize(new java.awt.Dimension(736, 62));\n internal1.add(parseListDescriptionLabel);\n\n parseListTab.add(internal1, java.awt.BorderLayout.PAGE_START);\n\n tabPane.addTab(resourceMap.getString(\"parseListTab.TabConstraints.tabTitle\"), parseListTab); // NOI18N\n\n importCollectionTab.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n importCollectionTab.setName(\"importCollectionTab\"); // NOI18N\n importCollectionTab.setLayout(new java.awt.BorderLayout());\n tabPane.addTab(resourceMap.getString(\"importCollectionTab.TabConstraints.tabTitle\"), importCollectionTab); // NOI18N\n\n mainPanel.add(tabPane, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(mainPanel, java.awt.BorderLayout.CENTER);\n\n buttonsPanel.setMinimumSize(new java.awt.Dimension(100, 40));\n buttonsPanel.setName(\"buttonsPanel\"); // NOI18N\n buttonsPanel.setPreferredSize(new java.awt.Dimension(400, 40));\n buttonsPanel.setLayout(new java.awt.BorderLayout());\n\n jPanel2.setName(\"jPanel2\"); // NOI18N\n jPanel2.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\n\n skipUnrecognizedCheckbox.setText(resourceMap.getString(\"skipUnrecognizedCheckbox.text\")); // NOI18N\n skipUnrecognizedCheckbox.setToolTipText(resourceMap.getString(\"skipUnrecognizedCheckbox.toolTipText\")); // NOI18N\n skipUnrecognizedCheckbox.setName(\"skipUnrecognizedCheckbox\"); // NOI18N\n jPanel2.add(skipUnrecognizedCheckbox);\n\n useTFnames.setText(resourceMap.getString(\"useTFnames.text\")); // NOI18N\n useTFnames.setToolTipText(resourceMap.getString(\"useTFnames.toolTipText\")); // NOI18N\n useTFnames.setName(\"useTFnames\"); // NOI18N\n jPanel2.add(useTFnames);\n\n buttonsPanel.add(jPanel2, java.awt.BorderLayout.CENTER);\n\n jPanel1.setName(\"jPanel1\"); // NOI18N\n jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));\n\n okButton.setText(resourceMap.getString(\"okButton.text\")); // NOI18N\n okButton.setMaximumSize(new java.awt.Dimension(75, 27));\n okButton.setMinimumSize(new java.awt.Dimension(75, 27));\n okButton.setName(\"okButton\"); // NOI18N\n okButton.setPreferredSize(new java.awt.Dimension(75, 27));\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonPressed(evt);\n }\n });\n jPanel1.add(okButton);\n\n cancelButton.setText(resourceMap.getString(\"cancelButton.text\")); // NOI18N\n cancelButton.setMaximumSize(new java.awt.Dimension(75, 27));\n cancelButton.setMinimumSize(new java.awt.Dimension(75, 27));\n cancelButton.setName(\"cancelButton\"); // NOI18N\n cancelButton.setPreferredSize(new java.awt.Dimension(75, 27));\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelButtonPressed(evt);\n }\n });\n jPanel1.add(cancelButton);\n\n buttonsPanel.add(jPanel1, java.awt.BorderLayout.EAST);\n\n getContentPane().add(buttonsPanel, java.awt.BorderLayout.PAGE_END);\n\n pack();\n }",
"private void initialize() {\r\n\t\t\r\n\t\tfinal List<Caixa> listaCaixa = new CaixaService(JPAUtil.createEntityManager()).getList();\r\n\t\t\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 321, 190);\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tfinal JComboBox cmbCaixa = new JComboBox();\r\n\t\tcmbCaixa.setBounds(10, 11, 285, 20);\r\n\t\tframe.getContentPane().add(cmbCaixa);\r\n\t\t\r\n\t\tString[] itensCombo = new String[listaCaixa.size()];\r\n\t\tfor(int i=0;i<listaCaixa.size();i++) {\r\n\t\t\titensCombo[i]=listaCaixa.get(i).getNome();\r\n\t\t}\r\n\t\t\r\n\t\tDefaultComboBoxModel<String> comboBoxModel = new DefaultComboBoxModel<String>(itensCombo);\r\n\t\tcmbCaixa.setModel(comboBoxModel);\r\n\t\t\r\n\t\t\r\n\t\tJButton btnVerTodos = new JButton(\"Ver todos os caixas\");\r\n\t\tbtnVerTodos.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tTelaCaixaVendaRelatorio tela = new TelaCaixaVendaRelatorio();\r\n\t\t\t\ttela.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVerTodos.setBounds(10, 117, 285, 23);\r\n\t\tframe.getContentPane().add(btnVerTodos);\r\n\t\t\r\n\t\tJButton btnVerCaixaSelecionado = new JButton(\"Ver caixa selecionado\");\r\n\t\tbtnVerCaixaSelecionado.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTelaCaixaVendaRelatorio telaCaixaVendaRelatorio = new TelaCaixaVendaRelatorio(listaCaixa.get(cmbCaixa.getSelectedIndex()));\r\n\t\t\t\t\ttelaCaixaVendaRelatorio.getFrame().setVisible(true);\r\n\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnVerCaixaSelecionado.setBounds(10, 83, 285, 23);\r\n\t\tframe.getContentPane().add(btnVerCaixaSelecionado);\r\n\t}",
"private void initComponents() {\n\n\t\tkDefLabel = new javax.swing.JLabel();\n\t\tjSeparator1 = new javax.swing.JSeparator();\n\t\tcancelButton = new javax.swing.JButton();\n\t\tkLabel = new javax.swing.JLabel();\n\t\tsaveButton = new javax.swing.JButton();\n\t\tTitleLabel = new javax.swing.JLabel();\n\t\tjSeparator2 = new javax.swing.JSeparator();\n\t\tkTextField = new javax.swing.JTextField();\n\t\tkLabel1 = new javax.swing.JLabel();\n\t\tkTextField1 = new javax.swing.JTextField();\n\t\tkDefLabel1 = new javax.swing.JLabel();\n\n\t\t//setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Configuración de Algoritmo\");\n\n\t\tkDefLabel.setText(\"(default = 10)\");\n\n\t\tcancelButton.setText(\"Cancelar\");\n\t\tcancelButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t\tkLabel.setText(\"Número de reglas a buscar:\");\n\n\t\tkLabel1.setText(\"Confianza mínima de una regla: \");\n\n\t\tsaveButton.setText(\"Guardar\");\n\t\tsaveButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGlobalData.getInstance().setCurrentTechnique(FuzzyDataMining.MODEL_FUZZY_APRIORI);\n\t\t\t\tHashMap<String, Object> options = new HashMap<String, Object>();\n\t\t\t\tif(!kTextField.getText().isEmpty())\n\t\t\t\t\toptions.put(\"nr\", kTextField.getText());\n\t\t\t\telse\n\t\t\t\t\toptions.put(\"nr\", \"10\");\n\t\t\t\tif(!kTextField1.getText().isEmpty())\n\t\t\t\t\toptions.put(\"mc\", kTextField1.getText());\n\t\t\t\telse\n\t\t\t\t\toptions.put(\"mc\", \"0.9\");\n\t\t\t\tGlobalData.getInstance().setConfiguredTechnique(options);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t\tTitleLabel.setText(\"Configuración de Apriori Difuso\");\n\n\t\tkDefLabel1.setText(\"(default = 0.9)\");\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setHorizontalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator1)\n\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t\t\t\t.addComponent(TitleLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel1))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(0, 9, Short.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(saveButton)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(cancelButton)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())))\n\t\t\t\t);\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(TitleLabel)\n\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(kLabel)\n\t\t\t\t\t\t\t\t.addComponent(kTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(kDefLabel))\n\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kLabel1)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(kDefLabel1))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(cancelButton)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(saveButton))\n\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t);\n\n\t\tpack();\n\t}",
"public FProfessor() {\n professorRN = new Professor_RN();\n professorVO = new Professor_VO();\n initComponents();\n }",
"public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }",
"public EqGUI() {\n initComponents();\n }",
"private void init()\n {\n // Add listeners to the view\n addEventListeners();\n addSelectionChangeListeners();\n\n // Add listeners to the model\n addBackgroundImageHandler();\n addFrameWidgetHandler();\n addWidgetShapeChangeHandler();\n\n project.addHandler(this,\n Project.DesignChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Project.DesignChange chg =\n (Project.DesignChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == design))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.FrameChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Design.FrameChange chg =\n (Design.FrameChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == frame))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.DeviceTypeChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Set<DeviceType> dts =\n design.getDeviceTypes();\n int deviceTypes =\n DeviceType.buildDeviceSet(dts);\n\n view.resetDeviceTypes(deviceTypes);\n }\n });\n\n // Add listeners to rename events on project and design\n frame.addHandler(this, NameChangeAlert.class, renameHandler);\n design.addHandler(this,\n NameChangeAlert.class,\n renameHandler);\n\n // Some items should always be enabled.\n // Should be the last call in the constructor\n setInitiallyEnabled(true);\n }",
"private void fillAllFields() {\r\n combo.setSelectedItem(moviesModule.getConfig().getOpeningSystem());\r\n fileChooser.setFilePath(moviesModule.getConfig().getFFmpegLocation());\r\n }",
"public GUI() {\n initComponents();\n model = new Model();\n playerTurn = 1;\n JTurnMessage.setText(\"Player X Turn\");\n }",
"private void setupGUI() {\n\t\tcollapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsingToolbarLayout);\n\t\tlogo = (SmartImageView) findViewById(R.id.logoo);\n\t\tnomePosto = (TextView) findViewById(R.id.nomeposto);\n\t\tdescrizione = (TextView) findViewById(R.id.descrizioneposto);\n\t\twebsite = (TextView) findViewById(R.id.websiteposto);\n\t\tnumtelefono = (TextView) findViewById(R.id.telefonoposto);\n\t\tcitta = (TextView) findViewById(R.id.cittaposto);\n\t\tbtnMappa = (FloatingActionButton) findViewById(R.id.fabbuttonmappa);\n\t\tgallery = (LinearLayout) findViewById(R.id.gallery);\n\t\tgalleryContainer = (CardView) findViewById(R.id.cv1);\n\t\t// rvofferte = (RecyclerView) findViewById(R.id.rvofferte);\n\t\t// LinearLayoutManager llm = new\n\t\t// LinearLayoutManager(DetPlaActivity.this);\n\t\t// rvofferte.setLayoutManager(llm);\n\t\t// rvofferte.setSaveEnabled(false);\n\t}",
"public InitOptionDialog(java.awt.Frame parent, ConfigurationOptions config_,boolean modal) {\n super(parent, modal);\n initComponents();\n this.config_ = config_;\n newConfig_ = new ConfigurationOptions();\n \n try {\n BeanUtils.copyProperties(newConfig_,this.config_);//copy the properties of config into newConfig_\n } catch (IllegalAccessException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n } catch (InvocationTargetException ex) {\n ReportingUtils.logError(ex, \"Failed to make copy of settings\");\n }\n\n //how to set the drop down menus\n String[] comboItems;\n comboItems= FovFilterConfig.segAlgNames_;\n DefaultComboBoxModel cdm=new DefaultComboBoxModel(comboItems);\n jComboBox_Counting_SelectAlg.setModel(cdm);\n \n comboItems = LocalAlgParam.methodValues;\n cdm=new DefaultComboBoxModel(comboItems);\n jComboBox_Counting_localMethod.setModel(cdm);\n\n //get the acquisition channel list\n comboItems = getAcqChannelList();\n cdm=new DefaultComboBoxModel(comboItems);\n jComboBox_camConf_Camera.setModel(cdm);\n jComboBox_camConf_Camera.setSelectedIndex(combo_camCurrent);\n reloadSettings();\n }",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}",
"public CreateAccount_GUI() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 453, 301);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblEditTitle = new JLabel(\"EDIT CUSTOMER\");\n\t\tlblEditTitle.setBounds(0, 0, 437, 27);\n\t\tlblEditTitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblEditTitle.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\n\t\tframe.getContentPane().add(lblEditTitle);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Customer CPF to edit:\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel.setBounds(20, 116, 138, 14);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\ttextFieldCpfToEdit = new JTextField();\n\t\ttextFieldCpfToEdit.setBounds(178, 115, 219, 20);\n\t\tframe.getContentPane().add(textFieldCpfToEdit);\n\t\ttextFieldCpfToEdit.setColumns(10);\n\t\t\n\t\tJButton btnEdit = new JButton(\"edit\");\n\t\tbtnEdit.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tbtnEdit.setBounds(163, 206, 89, 23);\n\t\tframe.getContentPane().add(btnEdit);\n\t\tbtnEdit.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEditCustomerMenuView.main(null);\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t}",
"private void initialize() {\r\n\t\tfrmCadastro = new JFrame();\r\n\t\tfrmCadastro.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\r\n\t\tfrmCadastro.setTitle(\"Cadastro\");\r\n\t\tfrmCadastro.setBounds(100, 100, 410, 213);\r\n\t\tfrmCadastro.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmCadastro.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Aluno\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(25, 65, 160, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Funcionario\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton_1.setBounds(217, 65, 152, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tJLabel lblQualCadastroDeseja = new JLabel(\"Qual cadastro deseja realizar?\");\r\n\t\tlblQualCadastroDeseja.setFont(new Font(\"Nirmala UI\", Font.BOLD | Font.ITALIC, 20));\r\n\t\tlblQualCadastroDeseja.setBounds(49, 20, 305, 34);\r\n\t\tfrmCadastro.getContentPane().add(lblQualCadastroDeseja);\r\n\r\n\t\t\r\n\t}",
"public InventoryMainFrame() {\n initComponents();\n jLabel1.setText(\"Inventory Management Application \" + versionID);\n }",
"private void setUpVC() {\n\t\tinitializePackageModel();\n\t\tinitializeRootLayout();\n\t\tinitializeStepCountView();\n\t\tinitializeButtonToScanForBluetoothDevices();\n\t\tinitializeButtonToSendCommands();\n\t\taddAllViewsToRootLayout();\n\t\tinitializeUARTControlFragmentInterface();\n\t\tsetListenerOnLaunchScanForBluetoothDevices();\n\t\tsetListenerOnButtonToSendCommands();\n\t}"
] | [
"0.63099396",
"0.60807914",
"0.60654116",
"0.5970406",
"0.5913682",
"0.588732",
"0.58512133",
"0.57828933",
"0.5744093",
"0.57373655",
"0.5729195",
"0.5721378",
"0.5717747",
"0.5709064",
"0.56561786",
"0.5647039",
"0.56466126",
"0.56024396",
"0.56022614",
"0.55961204",
"0.5594323",
"0.5573128",
"0.55604285",
"0.5555403",
"0.5550341",
"0.55475134",
"0.5545589",
"0.5543783",
"0.5542362",
"0.5541395",
"0.5535856",
"0.5534679",
"0.5526063",
"0.5498296",
"0.54923606",
"0.5491088",
"0.5484376",
"0.54799736",
"0.54739004",
"0.5467697",
"0.5457541",
"0.5434755",
"0.54303306",
"0.54186887",
"0.54079705",
"0.54037595",
"0.54024905",
"0.5400879",
"0.5394837",
"0.53750634",
"0.5371764",
"0.53651637",
"0.5363554",
"0.5363431",
"0.5352532",
"0.5348859",
"0.5338144",
"0.53328484",
"0.53326446",
"0.53303134",
"0.5328215",
"0.5327312",
"0.53242457",
"0.5323919",
"0.5319538",
"0.53188694",
"0.5314807",
"0.53137314",
"0.53114223",
"0.5310125",
"0.53077805",
"0.5305537",
"0.53043914",
"0.53028935",
"0.53006905",
"0.52991503",
"0.529677",
"0.5295641",
"0.5280646",
"0.52805096",
"0.52772224",
"0.52766216",
"0.52705157",
"0.52703273",
"0.52697957",
"0.52679896",
"0.52577657",
"0.5252682",
"0.5251011",
"0.52500665",
"0.52497804",
"0.52475274",
"0.52457154",
"0.52448785",
"0.524327",
"0.52428293",
"0.52320987",
"0.52258736",
"0.52258563",
"0.52236986"
] | 0.76130253 | 0 |
Access the singleton instance of the dialog for the assignment of an FSA model. | public static AssignFSADialog instance() {
if (me == null) {
me = new AssignFSADialog();
}
return me;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private AssignFSADialog() {\r\n super(Hub.getMainWindow(), Hub.string(\"TD_assignFSATitle\"));\r\n addWindowListener(new WindowAdapter() {\r\n @Override\r\n public void windowClosing(WindowEvent e) {\r\n onEscapeEvent();\r\n }\r\n });\r\n this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\r\n this.setMinimumSize(new Dimension(300, 10));\r\n\r\n Box mainBox = Box.createHorizontalBox();\r\n mainBox.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n Box newBox = Box.createVerticalBox();\r\n newBox.add(new JLabel(\" \"));\r\n newBox.add(new JButton(new NewFSAAction()));\r\n mainBox.add(newBox);\r\n\r\n mainBox.add(Box.createRigidArea(new Dimension(5, 0)));\r\n\r\n openModelsCombo = new JComboBox();\r\n openModelsCombo.setRenderer(new JLabelListRenderer());\r\n Box modelsBox = Box.createVerticalBox();\r\n Box titleBox = Box.createHorizontalBox();\r\n titleBox.add(new JLabel(Hub.string(\"TD_openModels\")));\r\n titleBox.add(Box.createHorizontalGlue());\r\n modelsBox.add(titleBox);\r\n modelsBox.add(openModelsCombo);\r\n mainBox.add(modelsBox);\r\n\r\n mainBox.add(Box.createRigidArea(new Dimension(5, 0)));\r\n\r\n templatesCombo = new JComboBox();\r\n templatesCombo.setRenderer(new JLabelListRenderer());\r\n Box templatesBox = Box.createVerticalBox();\r\n titleBox = Box.createHorizontalBox();\r\n titleBox.add(new JLabel(Hub.string(\"TD_templates\")));\r\n titleBox.add(Box.createHorizontalGlue());\r\n templatesBox.add(titleBox);\r\n templatesBox.add(templatesCombo);\r\n mainBox.add(templatesBox);\r\n\r\n getContentPane().add(mainBox);\r\n\r\n }",
"public static SPSSDialog getCurrentInstance()\n\t{\n\t\treturn instance;\n\t}",
"public PHConstDialog() {\n\t\tinitComponents();\n\t}",
"public abstract void initDialog();",
"public NewFSAAction() {\r\n super(Hub.string(\"TD_comAssignNewFSA\"), icon);\r\n icon.setImage(Toolkit.getDefaultToolkit()\r\n .createImage(Hub.getLocalResource(AssignFSADialog.class, \"images/icons/new_automaton.gif\")));\r\n putValue(SHORT_DESCRIPTION, Hub.string(\"TD_comHintAssignNewFSA\"));\r\n }",
"private SPSSDialog(FormDef form)\n\t{\n\t\tthis.form = form;\n\t\tsetup();\n\t}",
"public void addRelationshipDialog() { new RelationshipDialog(); }",
"public static EditProfileDialogue newInstance(){\n EditProfileDialogue dialogue = new EditProfileDialogue();\n\n Log.d(TAG, \"newInstance: NO ARGUMENTS because we are creating new profile.\" );\n return dialogue;\n }",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"public static SPSSDialog getNewInstance(FormDef form)\n\t{\n\t\tinstance = new SPSSDialog(form);\n\t\treturn instance;\n\t}",
"public ConfirmationDialog getDialog() {\n\t\tif (null == fDlg) {\n\t\t\tfDlg = new ConfirmationDialog(getFrame(), getConfig(), \"dlg.abandonChanges\");\n\n\t\t\tString[] values = { ((Questionaire) getApp()).getCurrentDoc().getTitle() };\n\t\t\t\n\t\t\tString title = fDlg.getTitle();\n\t\t\t\t\t\t\n\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\t\n\t\t\tfDlg.setTitle(title);\n\t\t\t\t\t\t\n\t\t\t((Questionaire) getApp()).getCurrentDoc().addPropertyChangeListener(\"title\", new PropertyChangeListener() {\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tString[] values = { (String) evt.getNewValue() };\n\t\t\t\t\tString title = getConfig(\"dlg.abandonChanges.title\");\n\t\t\t\t\t\n\t\t\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\n\t\t\t\t\tgetDialog().setTitle(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t}\n\n\t\treturn fDlg;\n\t}",
"public StandardDialog() {\n super();\n init();\n }",
"static public RSMLGUI getInstance() {return instance;}",
"public JDialogParticleAnalysisNew() { }",
"public FacturarPrincipal() {\n initComponents();\n\n dlgLogin.setSize(692, 345);\n dlgLogin.setLocationRelativeTo(this);\n dlgLogin.setVisible(true);\n dlgCrearProducto.setSize(300, 400);\n dlgCrearProducto.setLocationRelativeTo(this);\n\n //Se inicializan todos los modelos y los objetos.\n modeloClientes = new DefaultListModel<>();\n modeloProductos = new DefaultListModel<>();\n modeloHistorialVentas = new DefaultListModel<>();\n gestionarArchivos = new GestionA();\n //Se asignan a las listas los modelos que les corresponden, además,\n //se cargan los archivos .txt en cada lista.\n lstClientesVentas.setModel(modeloClientes);\n lstClientes.setModel(modeloClientes);\n lstClientes.setModel(gestionarArchivos.lista(\"Archivos/clientes.txt\"));\n lstProductos.setModel(gestionarArchivos.lista(\"Archivos/productos.txt\"));\n lstHistorialVentas.setModel(gestionarArchivos.lista(\"Archivos/facturas.txt\"));\n lstClientesVentas.setModel(gestionarArchivos.lista(\"Archivos/clientes.txt\"));\n lstProductosVentas.setModel(gestionarArchivos.lista(\"Archivos/productos.txt\"));\n modeloClientes = (DefaultListModel) lstClientes.getModel();\n modeloProductos = (DefaultListModel) lstProductos.getModel();\n modeloHistorialVentas = (DefaultListModel) lstHistorialVentas.getModel();\n\n }",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"public ACLPropertyDialog() {\n this.setModal(true);\n try {\n jbInit();\n pack();\n }\n catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private void initDialog() {\n }",
"public FiltroGirosDialog() {\n \n }",
"public static StudentEditPage getInstance(){\n return instance;\n }",
"private JDialog getAboutDialog() {\n\t\tif (aboutDialog == null) {\n\t\t\taboutDialog = new JDialog(getHlavneOkno(), true);\n\t\t\taboutDialog.setTitle(\"O aplikácii SluchAnal\");\n\t\t\taboutDialog.setSize(new Dimension(100, 100));\n\t\t\taboutDialog.setResizable(false);\n\t\t\taboutDialog.setContentPane(getAboutObsah());\n\t\t}\n\t\treturn aboutDialog;\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tStudentManagement studentManagement =new StudentManagement();\n\t\t\t studentManagement.setModal(true);\n\t\t\t studentManagement.setVisible(true);\n\t\t\t}",
"public SelectionDialog(HarmonyModel harmonyModel, Integer mode)\r\n\t{\r\n\t\tsuper((mode==SELECT ? \"Select\" : \"Remove\") + \" Links\");\r\n\t\tthis.harmonyModel = harmonyModel;\r\n\t\tthis.mode = mode;\r\n\t\t\r\n\t\t// Initialize the type filter\r\n\t\ttypeFilter = new OptionPane(\"Type\",new String[]{\"All\",\"User\",\"System\"});\r\n\t\ttypeFilter.setBorder(new EmptyBorder(0,20,0,0));\r\n\t\ttypeFilter.setSelectedButton(\"All\");\r\n\t\t\r\n\t\t// Initialize the focus filter\r\n\t\tfocusFilter = new OptionPane(\"Focus\",new String[]{\"All\",\"Focused\",\"Unfocused\"});\r\n\t\tfocusFilter.setBorder(new EmptyBorder(0,13,0,0));\r\n\t\tfocusFilter.setSelectedButton(mode==SELECT ? \"Focused\" : \"All\");\r\n\t\tfocusFilter.setEnabled(mode==DELETE);\r\n\r\n\t\t// Initialize the visibility filter\r\n\t\tvisibilityFilter = new OptionPane(\"Visibility\",new String[]{\"All\",\"Visible\",\"Hidden\"});\t\t\r\n\t\tvisibilityFilter.setSelectedButton(mode==SELECT ? \"Visible\" : \"All\");\r\n\t\tvisibilityFilter.setEnabled(mode==DELETE);\r\n\t\t\r\n\t\t// Create the info pane\r\n\t\tJPanel infoPane = new JPanel();\r\n\t\tinfoPane.setBorder(new CompoundBorder(new EmptyBorder(5,5,0,5),new CompoundBorder(new LineBorder(Color.gray),new EmptyBorder(5,5,5,5))));\r\n\t\tinfoPane.setLayout(new GridLayout(3,1));\r\n\t\tinfoPane.add(typeFilter);\r\n\t\tinfoPane.add(focusFilter);\r\n\t\tinfoPane.add(visibilityFilter);\r\n\t\t\r\n\t\t// Generate the main dialog pane\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t\tpane.setLayout(new BorderLayout());\r\n\t\tpane.add(infoPane,BorderLayout.CENTER);\r\n\t\tpane.add(new ButtonPane(),BorderLayout.SOUTH);\r\n\t\t\r\n\t\t// Initialize the dialog parameters\r\n\t\tsetContentPane(pane);\r\n\t\tsetSize(200,250);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}",
"public Form getAssignForm() throws ProcessManagerException {\r\n try {\r\n return new XmlForm(getAssignTemplate());\r\n } catch (FormException ex) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.ERR_GET_ASSIGN_FORM\", ex);\r\n }\r\n }",
"private void init() {\n \n dialog = new JDialog(this.owner, charField.getName() + \" Post Composition\");\n compFieldPanel = new FieldPanel(false,false, null, this.selectionManager, this.editManager, null); // (searchParams)?\n //compFieldPanel.setSearchParams(searchParams);\n \n // MAIN GENUS TERM\n genusField = CharFieldGui.makePostCompTermList(charField,\"Genus\",minCompChars);\n genusField.setSelectionManager(this.selectionManager); // ??\n //genusField.setListSelectionModel(this.selectionModel);\n compFieldPanel.addCharFieldGuiToPanel(genusField);\n\n // REL-DIFF - put in 1 differentia\n addRelDiffGui();\n\n setGuiFromSelectedModel();\n\n // override FieldPanel preferred size which will set window size\n compFieldPanel.setPreferredSize(null);//new Dimension(700,160));\n dialog.add(compFieldPanel);\n addButtons();\n dialog.pack();\n dialog.setLocationRelativeTo(owner);\n dialog.setVisible(true);\n\n compCharChangeListener = new CompCharChangeListener();\n this.editManager.addCharChangeListener(compCharChangeListener);\n compCharSelectListener = new CompCharSelectListener();\n this.selectionModel.addListSelectionListener(compCharSelectListener);\n }",
"public synchronized static ApModel getInstance()\n\t{\n\t\tif (INSTANCE == null)\n\t\t\tINSTANCE = new ApModel();\n\t\treturn INSTANCE;\n\t}",
"public EditDialog(Context context, MSDialog dialog)\n {\n super(context);\n \n this.ecu = ApplicationSettings.INSTANCE.getEcuDefinition();\n this.dialog = dialog;\n }",
"@Override\n\tpublic AssignmentBean getModel() {\n\t\treturn assignment;\n\t}",
"public static SelectProjectDialogController init() {\n FXMLLoader loader = new FXMLLoader( SelectProjectDialogController.class.getResource( LAYOUT_FILE ) );\n SelectProjectDialogController controller = null;\n try {\n // Load the fxml file initialize controller it declares.\n Pane pane = loader.load();\n // Create scene and stage\n dialogStage = new Stage();\n dialogStage.setScene( new Scene( pane ) );\n dialogStage.initModality( Modality.APPLICATION_MODAL );\n\n // get the controller from it.\n controller = loader.getController();\n if (!(controller instanceof SelectProjectDialogController))\n throw new IllegalStateException( \"Error creating unlock dialog controller.\" );\n } catch (IOException e1) {\n throw new IllegalStateException(\n \"Error loading dialog box. \" + e1.getLocalizedMessage() + \"\\n\" + e1.getCause().toString() );\n\n }\n positionStage( dialogStage );\n return controller;\n }",
"public boolean showFilmEditDialog(Movie movie) {\r\n try {\r\n // Load the fxml file and create a new stage for the popup dialog.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(FilmApp.class.getResource(\"view/FilmEditDialog.fxml\"));\r\n AnchorPane page = (AnchorPane) loader.load();\r\n\r\n // Create the dialog Stage.\r\n Stage dialogStage = new Stage();\r\n dialogStage.setTitle(\"Edit movie\");\r\n dialogStage.initModality(Modality.WINDOW_MODAL);\r\n dialogStage.initOwner(primaryStage);\r\n Scene scene = new Scene(page);\r\n dialogStage.setScene(scene);\r\n\r\n // Set the movie into the controller.\r\n this.controller = loader.getController();\r\n controller.setDialogStage(dialogStage);\r\n controller.setMovie(movie);\r\n\r\n // Show the dialog and wait until the user closes it\r\n dialogStage.showAndWait();\r\n\r\n return controller.isOkClicked();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n System.out.println(\"je ot tu\");\r\n return false;\r\n }\r\n}",
"public AssignScheduleForm(Object obj, String title, String message, int actionId) {\r\n super(CoeusGuiConstants.getMDIForm(), title,true);\r\n this.actionId = actionId;\r\n this.message = message;\r\n this.vData = (Vector)obj;\r\n initComponents();\r\n actionComponentSettings();\r\n txtCommiteeId.setText((String)vData.get(0));\r\n txtCommitteeName.setText((String)vData.get(1));\r\n registerListeners();\r\n btnCommittee.requestFocusInWindow();\r\n show();\r\n }",
"private JDialog initABM(JDialog parent, boolean isEditing) throws MessageException {\n UsuarioController.checkPermiso(PermisosController.PermisoDe.DATOS_GENERAL);\n if (isEditing) {\n EL_OBJECT = getSelectedFromContenedor();\n if (EL_OBJECT == null) {\n throw new MessageException(\"Debe elegir una fila\");\n }\n }\n return getJDialogABM(parent, isEditing);\n }",
"public Object open() {\n // Create a new shell object and set the text for the dialog.\n Shell parent = getParent();\n shell = new Shell(parent, SWT.DIALOG_TRIM);\n shell.setText(\"Edit Colormaps\");\n\n // Setup all of the layouts and the controls.\n setup();\n\n // Open the shell to display the dialog.\n shell.open();\n\n // Wait until the shell is disposed.\n Display display = parent.getDisplay();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n\n return null;\n }",
"DialogResult show();",
"private SnapshotSaveConfirmationModal newSaveSnapshotModal() {\n\t\tfinal IModel<String> projectNameModel = Model.of(\"\");\r\n\r\n\t\tsaveSnapshotModal = new SnapshotSaveConfirmationModal(\r\n\t\t\t\t\"newSaveSnapshootModal\", projectNameModel) {\r\n\t\t\tprivate static final long serialVersionUID = -5489628601177981259L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onConfirmed(AjaxRequestTarget target) {\r\n\r\n\t\t\t\t// If there is no historic values update before storing the\r\n\t\t\t\t// snapshot\r\n\t\t\t\tif (historicalDataService.countHistValuesForProject(project\r\n\t\t\t\t\t\t.getId()) <= 0) {\r\n\t\t\t\t\tUQasarUtil.updateTree(project);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tproject.addSnapshot(projectNameModel.getObject());\r\n\r\n\t\t\t\tPageParameters parameters = BasePage.appendSuccessMessage(\r\n\t\t\t\t\t\tProjectViewPage.forProject(project),\r\n\t\t\t\t\t\tnew StringResourceModel(\"snapshot.saved.message\", this,\r\n\t\t\t\t\t\t\t\tModel.of(project)));\r\n\t\t\t\tsetResponsePage(ProjectViewPage.class, parameters);\r\n\t\t\t}\r\n\t\t};\r\n\t\treturn saveSnapshotModal;\r\n\t}",
"public FormSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = FormPackage.eINSTANCE;\n\t\t}\n\t}",
"public SearchFileResultsScreen(){\r\n SEARCHFILECONFIRM_INSTANCE = this;\r\n }",
"public void abrirDialogoEspecie() {\n ModalDialogoEspecie modalDialogoEspecie = new ModalDialogoEspecie();\n modalDialogoEspecie.show(getSupportFragmentManager(), \"especie dialog\");\n }",
"private JDialog getAboutDialog() {\n\t\tif (aboutDialog == null) {\n\t\t\taboutDialog = new JDialog(getJFrame(), true);\n\t\t\taboutDialog.setTitle(\"About\");\n\t\t\taboutDialog.setContentPane(getAboutContentPane());\n\t\t}\n\t\treturn aboutDialog;\n\t}",
"public Object getGuiObject();",
"public static StatisticUI getInstance() {\n\t\tif (instance == null)\n\t\t\tinstance = new StatisticUI();\n\t\treturn instance;\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tClassManagement classManagement = new ClassManagement();\n\t\t\t\tclassManagement.setModal(true);\n\t\t\t\tclassManagement.setVisible(true);\n\t\t\t}",
"public void confirmerButtonHandler(ActionEvent actionEvent) throws Exception {\n if(tableOffres.getSelectionModel().getSelectedItem()!=null){\n Offre selectedOffre=new Offre();\n selectedOffre=(Offre)tableOffres.getSelectionModel().getSelectedItem();\n System.out.println(selectedOffre);\n if(selectedOffre.getDisponible().equals(\"non\")){\n showAlert(\"L'offre doit etre disponible !\");\n }else {\n //Now we navigate to the form page\n\n //Getting a reference to the primary stage\n\n Stage primaryStage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n System.out.println(primaryStage);\n //Navigating by switching the scene\n //Loading the scene\n FXMLLoader loader = new FXMLLoader(\n getClass().getResource(\n \"FormScene.fxml\"\n ));\n //Hiding the stage temporarily to configurate the scene\n primaryStage.hide();\n primaryStage.setScene(new Scene(loader.load(), 800, 600));\n FormController formController = loader.<FormController>getController();\n System.out.println(formController);\n formController.initData(selectedOffre);\n // Here where the scene changes and the form screen shows\n primaryStage.show();\n }\n }else{\n showAlert(\"Offre non sélectionnée\");\n }\n }",
"public static OpenflowSfcFlowProgrammer getInstance() {\n return instance;\n }",
"protected abstract JDialog createDialog();",
"public static void openSettingsForm(){\n\n }",
"public void openSaveSelection() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/SaveSelectionView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tSaveSelectionController ssc = fxmlLoader.getController();\n\t\t\tssc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"sSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private JDialog getPomocDialog() {\n\t\tif (pomocDialog == null) {\n\t\t\tpomocDialog = new JDialog(getHlavneOkno());\n\t\t\tpomocDialog.setSize(new Dimension(460, 180));\n\t\t\tpomocDialog.setMinimumSize(new Dimension(400, 150));\n\t\t\tpomocDialog.setPreferredSize(new Dimension(480, 220));\n\t\t\tpomocDialog.setLocation(new Point(200, 100));\n\t\t\tpomocDialog.setContentPane(getJContentPane());\n\t\t}\n\t\treturn pomocDialog;\n\t}",
"public AdminJP() {\n initComponents();\n aplicarTextPrompt();\n }",
"@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}",
"public FrmAssignPromotions()\n {\n initComponents();\n populateLists();\n }",
"private ShowCreateAnswerPage() {\n this.service = UserService.retrieve();\n this.validator = Validator.retrieve();\n }",
"public static AppDescriptor showDialog()\n {\n AppDescriptor app = null;\n \n synchronized( JoingApplicationChooser.class )\n {\n JoingApplicationChooser atp = new JoingApplicationChooser();\n \n if( org.joing.kernel.jvmm.RuntimeFactory.getPlatform().getDesktopManager().getRuntime().\n showAcceptCancelDialog( \"Select Application\", atp ) )\n {\n app = atp.getSelected();\n }\n }\n \n return app;\n }",
"public AlertDialog createSimpleDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Code with love by\")\n .setMessage(\"Alvaro Velasco & Jose Alberto del Val\");\n return builder.create();\n }",
"private static void createAndShowGUI()\n {\n Sudoku s = new Sudoku();\n }",
"public VModalReimprimirFactura() {\n initComponents();\n this.setLocationRelativeTo(null);\n txtNumFactura.grabFocus();\n unaCuenta=null;\n unUsuario=null;\n usuario=null;\n clpdv = new CLPDV();\n }",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"private void openCreateAccountDialog()\n {\n testDialog();\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCoachManagement coachManagement = new CoachManagement();\n\t\t\t\tcoachManagement.setModal(true);\n\t\t\t\tcoachManagement.setVisible(true);\n\t\t\t}",
"public static synchronized MainModel getInstance() {\n\n if (instance == null)\n instance = new MainModel();\n\n return instance;\n\n }",
"public ConfigureUpdatesDialog() {\n super(StrangeEons.getWindow(), ModalityType.TOOLKIT_MODAL);\n initComponents();\n AbstractGameComponentEditor.localizeComboBoxLabels(frequencyCombo, null);\n AbstractGameComponentEditor.localizeComboBoxLabels(actionCombo, null);\n banner.setIcon(new ImageIcon(\n ResourceKit.createBleedBanner(((ImageIcon) banner.getIcon()).getImage())\n ));\n setLocationRelativeTo(getParent());\n\n Settings s = Settings.getUser();\n s.set(\"core-dialog-shown\", \"yes\");\n //doNotShowCheck.setSelected( s.getYesNo( \"core-dialog-autoinstall\" ) );\n\n frequencyCombo.setSelectedIndex(AutomaticUpdater.getUpdateFrequency());\n actionCombo.setSelectedIndex(AutomaticUpdater.getUpdateAction() == 0 ? 0 : 1);\n newPluginsCheck.setSelected(AutomaticUpdater.isShowingNewPlugins());\n appUpdateCheck.setSelected(AutomaticUpdater.isShowingAppUpdates());\n doneInit = true;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_student_feedback_dialog);\n\n return dialog;\n }",
"protected ERMinerNodeDialog() {\nsuper();\n \n addDialogComponent(new DialogComponentColumnNameSelection(ERMinerNodeModel.createSeqColumnModel(),\n\t\t\t\t\t\t\"Column containing the sequences: \", 0, true, StringValue.class));\n addDialogComponent(new DialogComponentNumber(ERMinerNodeModel.createMinSupModel(), \"Choose minSup\", 0.05));\n addDialogComponent(new DialogComponentNumber(ERMinerNodeModel.createMinConfModel(), \"Choose minConf\", 0.05));\n }",
"@Override\n public Dialog onCreateDialog(int id) {\n switch (id) {\n\n case QUALIFICATION_ALERTDIALOG:\n\n AlertDialog.Builder builder1 = new AlertDialog.Builder(UpdateProfileActivity.this)\n .setTitle(\"Job Type\")\n .setSingleChoiceItems(qualificationList, -1, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n // Toast.makeText(getApplicationContext(),\"The selected\" + experienceList[which], Toast.LENGTH_LONG).show();\n etQualification.setText(qualificationList[which]);\n //dismissing the dialog when the user makes a selection.\n dialog.dismiss();\n }\n });\n AlertDialog alertdialog1 = builder1.create();\n return alertdialog1;\n\n\n }\n return null;\n\n }",
"public Assignment getAssignment() {\r\n\r\n //Grab the assignment associated with this analysis in the API\r\n if (assignment == null) {\r\n assignment = CoMoToAPI.getAssignment(connection, id);\r\n }\r\n return assignment;\r\n }",
"public abstract Dialog createDialog(DialogDescriptor descriptor);",
"AlertDialog getAlertDialog();",
"public static AdmBoardOptionActionFactory getInstacne() {\n\t\treturn instance;\r\n\t}",
"@objid (\"7f26b6a4-7bc5-41d9-97b7-99165ce85cd5\")\r\n public FileDialog getDialog() {\r\n return this.dialog;\r\n }",
"void setDialogueManager(IDialogueManager dialogueManager);",
"public FProfessor() {\n professorRN = new Professor_RN();\n professorVO = new Professor_VO();\n initComponents();\n }",
"public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }",
"public NewGame getNewGameDialog() {\n\t\treturn newGameDialog;\n\t}",
"public static ShowCreateAnswerPage getInstance() {\n return ShowCreateAnswerPage.ShowCreateAnswerPageHolder.instance;\n }",
"private JDialog getAboutDialog() {\n if (aboutDialog == null) {\n aboutDialog = new JDialog(getJFrame(), true);\n aboutDialog.setTitle(\"About\");\n aboutDialog.setSize(new Dimension(180, 38));\n aboutDialog.setContentPane(getAboutContentPane());\n }\n return aboutDialog;\n }",
"public Dialog() {\n\t}",
"public SimulationStatisticDialog (SimulationStatistic simulationStatistic) {\r\n \t\tthis.simulationStatistic = simulationStatistic;\r\n \t\tI18NService I18N = I18NSingleton.getInstance();\r\n \t\t\r\n \t\tDisplay display = Display.getCurrent();\r\n \t\tshell = new Shell(display, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\r\n \t\tshell.setText(I18N.getMessage(\"SimulationStatisticDialog.Title\"));\r\n \t\tshell.setSize(SWT.DEFAULT, SWT.DEFAULT);\r\n \t\tshell.setLayout(new GridLayout(1, true));\r\n \t\t\r\n \t\tinitUI();\r\n \t\tMainWindow.center(shell);\r\n \t\tshell.open();\r\n \t}",
"static public GUIAltaHabitacion obtenerInstancia(){\r\n\t\t if(altaHabitacion == null){\r\n\t\t\t altaHabitacion = new GUIAltaHabitacion();\r\n\t\t }\r\n\t\t \r\n\t\t return altaHabitacion;\r\n\t }",
"@ModelAttribute(\"loginForm\")\n public LoginForm getCommandObject() {\n log.debug(\"getCommandObject.START\");\n LoginForm formBean = new LoginForm();\n formBean.setUsername(\"TRUONGMH\");\n return formBean;\n }",
"private void saveViewModel() {\n\t\tJDialog fileDialog = new JDialog(this, \"Open File\", true);\n\t\tFileDialog filePanel = new FileDialog(this, this, true, false, false);\n\t\tfileDialog.getContentPane().add(filePanel);\n\t\tfileDialog.pack();\n\n\t\t// set the location.\n\t\tPoint p1 = this.getLocation();\n\t\tDimension d1 = this.getSize();\n\t\tDimension d2 = fileDialog.getSize();\n\t\tfileDialog.setLocation((p1.x + (d1.width / 2)) - (d2.width / 2),\n\t\t\t\t(p1.y + (d1.height / 2)) - (d2.height / 2));\n\n\t\tfilePanel.setCurrentDirectory(Config.getInstance().getBaseHarvestDir());\n\t\tfileDialog.show();\n\t}",
"public static void Display(AnalysisController pController, String pstrTitle) {\n \n Stage stgAboutMeerkatDialog = new Stage();\n stgAboutMeerkatDialog.initModality(Modality.APPLICATION_MODAL);\n \n //Label lblAboutMeerkat = new Label(strAboutMeerkat);\n \n String aboutMeerkat = \"Meerkat is a social network analysis tool developed at AMII, Department of Computing Science, University of Alberta, \"\n + \"under the leadership of Dr. Osmar Zaïane.\";\n \n String meerkatURL = \"https://www.amii.ca/meerkat\";\n \n Hyperlink link = new Hyperlink(meerkatURL);\n link.setBorder(Border.EMPTY);\n link.setPadding(new Insets(0, 0, 0, 0));\n link.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n try{\n if( Desktop.isDesktopSupported() )\n {\n new Thread(() -> {\n try {\n Desktop.getDesktop().browse( new URI( meerkatURL ) );\n } catch (Exception et) {\n System.out.println(\"Exception in hyperlink click in AboutMeerkat:Disply()\");\n }\n }).start();\n }\n stgAboutMeerkatDialog.close();\n }catch(Exception exp){\n System.out.println(\"Exception in hyperlink click in AboutMeerkat:Disply()\");\n }\n }\n });\n \n \n \n String meerkatEmail = \"meerkat@cs.ualberta.ca \";\n\n String details = \"For more details please visit us online at: \";\n String emailDetails = \" or email us at: meerkat@cs.ualberta.ca\";\n \n String meerkatVersion = \"Meerkat Version: \"+MeerkatSoftwareValidator.getMeerkatVersion();\n String meerkatReleaseDate = \"Version Release Date: 2018 February 02\";\n\n String meerkatcurrentDevs = \"Current Developers : Sankalp Prabhakar, Talat Iqbal Syed\";\n \n String meerkatPastDevs = \"Past and Present Team Members (alphabetically): Abhimanyu Panwar, Ali Yadollahi, Afra Abnar, Amin Travelsi, Eric Verbeek, Farzad Sangi, Justin Fagnan, \\n\" +\n \"Jiyang Chen, Matt Gallivan, Mansoureh Takaffoli, Reihaneh Rabbany, Sankalp Prabhakar, Shiva Zamani Gharaghooshi, \"\n + \"Talat Iqbal Syed, Xiaoxiao Li.\";\n\n \n VBox labels = new VBox();\n Label label1 = new Label(aboutMeerkat);\n Label label2 = new Label(details);\n Label label3 = new Label(emailDetails);\n \n HBox hbox = new HBox();\n hbox.getChildren().addAll(label2, link, label3);\n \n Label version = new Label(meerkatVersion);\n Label releaseDate = new Label(meerkatReleaseDate);\n Label currDevs = new Label(meerkatcurrentDevs);\n Label pastDevs = new Label(meerkatPastDevs);\n \n labels.getChildren().addAll(label1,hbox,version,releaseDate,currDevs,pastDevs);\n labels.setPadding(new Insets(5, 10, 5, 10));\n labels.setSpacing(10);\n \n // Build a VBox\n Button btnOK = new Button(LangConfig.GENERAL_OK);\n VBox vboxRows = new VBox(5);\n vboxRows.setPadding(new Insets(5,10,5,10)); \n vboxRows.getChildren().addAll(labels, btnOK);\n vboxRows.setAlignment(Pos.CENTER);\n \n Scene scnAboutMeerkatDialog = new Scene(vboxRows);\n scnAboutMeerkatDialog.addEventFilter(KeyEvent.KEY_PRESSED, (KeyEvent evt) -> {\n if (evt.getCode().equals(KeyCode.ESCAPE)) {\n stgAboutMeerkatDialog.close();\n pController.updateStatusBar(false, StatusMsgsConfig.WINDOW_CLOSED);\n }\n });\n \n //stgAboutMeerkatDialog.initModality(Modality.WINDOW_MODAL);\n stgAboutMeerkatDialog.setTitle(pstrTitle); \n stgAboutMeerkatDialog.setResizable(false);\n \n \n // Events \n btnOK.setOnAction((ActionEvent e) -> {\n // Close the dialog box\n stgAboutMeerkatDialog.close();\n \n // Update the Status bar\n pController.updateStatusBar(false, StatusMsgsConfig.ABOUT_CLOSED);\n });\n \n stgAboutMeerkatDialog.setScene(scnAboutMeerkatDialog);\n stgAboutMeerkatDialog.show();\n \n // Update the status bar\n pController.updateStatusBar(true, StatusMsgsConfig.ABOUT_SHOW);\n }",
"public Modal(Dashboard dashboard) {\n initComponents();\n this.dashboard = dashboard;\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tDodajStudentaDialog dodajStudenta = new DodajStudentaDialog();\n\t\tdodajStudenta.setVisible(true);\n\t}",
"public void handle(ActionEvent actionEvent) {\n Dialog dialog = new StatsDialog(primaryStage, model);\n dialog.showAndWait();\n }",
"public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }",
"public viewReporteFis(javax.swing.JDialog parent, boolean modal) { \n super(parent, modal);\n initComponents();\n this.modeloTabla = (DefaultTableModel) tablaReporte.getModel();\n }",
"public ExamSelectDialog( java.awt.Frame parent, boolean modal )\n {\n super( parent, modal );\n initComponents();\n listmodel = new DefaultListModel<String>();\n examlist.setModel( listmodel );\n }",
"public DialogoAgregarMatACurso() {\n super();\n \n matricula = -1;\n idalumno = -1;\n \n initComponents();\n \n setearListeners();\n \n setearInicioDeClases();\n \n String sIdCurso = CursosagregarAlumnoCBCurso.getSelectedItem().toString();\n sIdCurso = sIdCurso.substring(0, sIdCurso.indexOf(\"-\"));\n int idCurso = Integer.valueOf(sIdCurso);\n setearGananciaProfesorRecargosYCuotas(idCurso);\n }",
"public void showEditTitleDialog( ){\n FragmentTransaction ft = fragmentManager.beginTransaction();\n Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_DIALOG);\n if (prev != null) {\n ft.remove(prev);\n }\n\n // Send Related Information...\n ModelUpdateItem updateItem = new ModelUpdateItem(\n itemPosition,\n rootParentID, // Sending Root Or Parent ID.\n listManageHome.get(itemPosition).getLayoutID(), listManageHome.get(itemPosition).getLayoutTitle() );\n\n PopUpDialogEditTitle dialogFragment = new PopUpDialogEditTitle( this, updateItem );\n dialogFragment.show( fragmentManager, FRAGMENT_DIALOG );\n }",
"public String getDialogTitle(){\n return getField().getDialogTitle();\n }",
"public static Feudalism getInstance(){\n\t\treturn f;\r\n\t}",
"private void submissionGUIsetup()\n\t\t\t{\n\t\t\t\tif(list.getSelectedValue()!= null)\n\t\t\t\t{\t\n\t\t\t\t\tsubmissionGUI = new SubmissionGUI((Assignment)courseGUI.getSelectedValue());\n\t\t\t\t\tVector<Submission> list = client.getSubmissions(submissionGUI.getAssignment());\n\t\t\t\t\tsubmissionGUI.setList(list);\n\t\t\t\t\tsubmissionGUI.setListeners(new SubmissionListener());\n\t\t\t\t\t\n\t\t\t\t\tframeHolder.setVisible(false);\n\t\t\t\t\tframeHolder = submissionGUI.returnFrame();\n\t\t\t\t\tframeHolder.setVisible(true);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public InspectionModal createNewInspection(){\n waitForLoading();\n clickElement(createNewInspectionButton);\n return new InspectionModal(super.driver); // return pop ap\n }",
"public FWFExecution(java.awt.Frame parent, boolean modal, CompositionModel compositionModel) {\n super(parent, modal);\n initComponents();\n this.compositionModel = compositionModel;\n }",
"public EDTSemaine(EDTApplication_wt _edtAppli) {\n\t\tsemaine= (String)_edtAppli.getListeSemaines().getValueText(); //getSelectedItem();\n\t\tpromotion= (String)_edtAppli.getListePromotions().getValueText(); //getSelectedItem();\n\t\t/*listePlages = _edtAppli.getControleurDb().getPlagesHoraires(semaine, promotion);\n\t\tlisteJoursFeries=_edtAppli.getControleurDb().getJoursFeries(semaine);*/\n\t\t\n\t\t//ControleurDB cdb=_edtAppli.getControleurDb();\n\t\t///WDialog wd= new WDialog(\"semaine=\"+semaine+\",promotion=\"+promotion+\",idAdmin=\"+cdb.getIdAdmin());\n\t\t//wd.show();\n\t\t\n\t\t//semaine = \"31/10/2015\";\n\t\t//promotion = \"DUT QLIO S1\";\n\t\tlistePlages = _edtAppli.getControleurDb().getPlagesHoraires(semaine, promotion);\t\n\t\tlisteJoursFeries= _edtAppli.getControleurDb().getJoursFeries(semaine);\t\t\n\t\t//Utilitaire.showMessageDialog(\"listePlages\",\"\"+listePlages.size());\n\t\t//Utilitaire.showMessageDialog(\"listeJoursFeries\",\"\"+listeJoursFeries.size());\n\t}",
"public ChooseValue getChooseValueDialog() {\n\t\treturn chooseValueDialog;\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMoneyManagement moneyManagement = new MoneyManagement();\n\t\t\t\tmoneyManagement.setModal(true);\n\t\t\t\tmoneyManagement.setVisible(true);\n\t\t\t}",
"private void displayLessonSelectionDialog() {\n\t\tpauseMedia();\n\t\tint requestCode = onLargeScreen ? LessonSelectionDialog.SELECT_TO_CLASS\n\t\t\t\t: LessonSelectionDialog.SELECT_TO_LESSON;\n\t\tlessonSelectionDialog = LessonSelectionDialog.newInstance(\n\t\t\t\tLessonSelectionDialog.CLASS_LESSON_SELECT, requestCode);\n\t\tlessonSelectionDialog.setOnDialogResultListener(this, requestCode);\n\t\tlessonSelectionDialog.show(this.getSupportFragmentManager(),\n\t\t\t\t\"lessonSelectionDialog\");\n\t}",
"private OpenSimDB() {\n instance = this;\n }",
"private void initDialog() {\n Window subWindow = new Window(\"Sub-window\");\n \n FormLayout nameLayout = new FormLayout();\n TextField code = new TextField(\"Code\");\n code.setPlaceholder(\"Code\");\n \n TextField description = new TextField(\"Description\");\n description.setPlaceholder(\"Description\");\n \n Button confirm = new Button(\"Save\");\n confirm.addClickListener(listener -> insertRole(code.getValue(), description.getValue()));\n\n nameLayout.addComponent(code);\n nameLayout.addComponent(description);\n nameLayout.addComponent(confirm);\n \n subWindow.setContent(nameLayout);\n \n // Center it in the browser window\n subWindow.center();\n\n // Open it in the UI\n UI.getCurrent().addWindow(subWindow);\n\t}"
] | [
"0.6662789",
"0.6304438",
"0.55417526",
"0.5470568",
"0.5444934",
"0.5383877",
"0.53653723",
"0.5302766",
"0.52992916",
"0.5287352",
"0.5268985",
"0.5251234",
"0.5237528",
"0.5222913",
"0.52101195",
"0.5206581",
"0.51949227",
"0.51700443",
"0.51641923",
"0.51604146",
"0.51127285",
"0.50935376",
"0.50824237",
"0.5078432",
"0.50716704",
"0.50533116",
"0.5043946",
"0.50345767",
"0.5031031",
"0.5018555",
"0.5008236",
"0.50015455",
"0.49945575",
"0.49890992",
"0.49869144",
"0.49869004",
"0.49794236",
"0.49745294",
"0.4972779",
"0.4971025",
"0.49548075",
"0.49508163",
"0.4938686",
"0.49380168",
"0.49378586",
"0.49344587",
"0.49285835",
"0.49149007",
"0.49069297",
"0.49059877",
"0.4903919",
"0.49021566",
"0.48977292",
"0.48929736",
"0.48926833",
"0.48923075",
"0.48809013",
"0.48774227",
"0.48726162",
"0.48690203",
"0.4868288",
"0.48679078",
"0.48618546",
"0.48599544",
"0.48593324",
"0.4830454",
"0.4828246",
"0.48266965",
"0.48254037",
"0.48242036",
"0.48232058",
"0.48224232",
"0.48215047",
"0.48174793",
"0.48122424",
"0.48118836",
"0.48116326",
"0.48095864",
"0.48051006",
"0.48046234",
"0.48041853",
"0.48039475",
"0.48038277",
"0.48031932",
"0.4798936",
"0.479802",
"0.47952464",
"0.4791746",
"0.47869387",
"0.4783847",
"0.47794783",
"0.4778295",
"0.47724983",
"0.47719753",
"0.47707894",
"0.47626615",
"0.47610092",
"0.47595325",
"0.47562653",
"0.47561058"
] | 0.76576155 | 0 |
Called to cancel the assignment of an FSA model (e.g., when the user presses the Esc key). | @Override
public void onEscapeEvent() {
Hub.getMainWindow().removeWindowListener(cancelOnFocusLost);
openModelsCombo.removeActionListener(onSelectModel);
openModelsCombo.removeAllItems();
templatesCombo.removeActionListener(onSelectTemplate);
templatesCombo.removeAllItems();
canvas.setUIInteraction(false);
setVisible(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"public void cancel()\n\t{\n\t}",
"public void cancel() {\n\t}",
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}",
"public synchronized void cancel() {\n }",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"public void cancel() {\n\t\tcancel(false);\n\t}",
"@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n public void cancel() {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n }",
"protected void cancel() {\n abort();\n if(cancelAction != null) {\n cancelAction.accept(getObject());\n }\n }",
"public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }",
"@Override\n public void cancel() {\n\n }",
"public void cancel() {\n writeData(ESC.CMD_CANCEL);\n }",
"public void cancel();",
"public void cancel() {\n\t\tcancelled = true;\n\t}",
"public void cancel(){\n cancelled = true;\n }",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancelOriginal();",
"public void cancel() {\n btCancel().push();\n }",
"public void cancel() {\n\t\tinterrupt();\n\t}",
"public boolean cancel();",
"void cancelSelectMode();",
"public abstract boolean cancel();",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tInvoker.getInstance().executeCommand(\n\t\t\t\t\tnew GraphicElementEditCancelCommand(model, dialog.getGraphicElement(), previousShapes));\n\t\t\tGraphicElementInvoker.getInstance().abortSession();\n\t\t\tdialog.setVisible(false);\n\t\t}",
"public void cancelState() {\n if (isQuestionEditMode) {\n //deleteAllQuestionInputTextAreas();\n //addCurrentQuestionsToView();\n }\n }",
"public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }",
"public void cancel( String reason );",
"@Override\n\t\t\tpublic void cancel() {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"protected void actionPerformedCancel ()\n {\n Preferences rootPreferences = Preferences.systemRoot ();\n PreferencesTableModel rootPrefTableModel = new PreferencesTableModel (rootPreferences);\n rootPrefTableModel.undo ();\n Preferences userPreferences = Preferences.userRoot ();\n PreferencesTableModel userPrefTableModel = new PreferencesTableModel (userPreferences);\n userPrefTableModel.undo ();\n this.setVisible (false);\n this.dispose ();\n }",
"private void cancelButtonActionPerformed(ActionEvent e) {\n }",
"@FXML private void handleCancel() {\r\n\t\tvastaus = null;\r\n\t\tModalController.closeStage(textVastaus);\r\n\t}",
"protected void cancelChanges() {\n }",
"public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}",
"public void cancel() {\n cancelSoftwareAnimations();\n }",
"private void cancel(ActionEvent e){\r\n // Clear textfields\r\n clearFields();\r\n // If coming from appt management screen, go back there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n // Otherwise, set the current client to null and go to the landing page \r\n else {\r\n currClient = null;\r\n LandingPage.returnToLandingPage();\r\n }\r\n }",
"public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}",
"public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }",
"@FXML\r\n private void cancelAction(ActionEvent event) {\n integerProperty.set(-1);\r\n searchFieldComboBox.getSelectionModel().select(0);\r\n companiesComboBox.setText(\"\");\r\n actionsComboBox.setText(\"\");\r\n yearValue.setText(\"\");\r\n mounthValue.setText(\"\");\r\n dayValue.setText(\"\");\r\n valueText.setText(\"\");\r\n relationComboBox.getSelectionModel().select(0);\r\n searchFieldComboBox.requestFocus();\r\n event.consume();\r\n }",
"@Override\n public void cancel() {\n HologramHandler.despawnHologram(hologram);\n if (!mseEntity.isTamed())\n mseEntity.setCustomName(mseEntity.getDefaultName());\n threadCurrentlyRunning = false;\n super.cancel();\n }",
"public void cancel ()\r\n\t{\r\n\t\tmyFrame.dispose();\r\n\t}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"public void cancelTask() {\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save?\", null,\r\n JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTask();\r\n }\r\n todoListGui();\r\n }",
"public void cancel() {\r\n\t\tbStop = true;\r\n\t}",
"private void onCancelButtonPressed() {\r\n disposeDialogAndCreateNewGame(); // Reset board,\r\n game.setCanPlaceMarks(false); // But don't start a new game.\r\n }",
"void cancelProduction();",
"private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}",
"private void cancelPressed() {\n\t\tVideoPlayer.mediaPlayer.stop();\n\t\tl.clear();\n\t\tpaths.clear();\n\t\tsizes.clear();\n\t\tcancelPlayingList.setEnabled(false);\n\t\tplayTheList.setEnabled(true);\n\t}",
"public void actionCancel() {\n stage.close();\n }",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"void onCancel(int key);",
"public void cancelButtonPressed(ActionEvent event) throws IOException {\n returnToMainScreen(event);\n }",
"public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"abstract protected void cancelCommands();",
"@Override\n\tpublic void cancelCellEditing() {\n\t\tlog.info(\"|------表格单元格编辑模型------|\\t\"+\"cancelCellEditing\\t\");\n\t}",
"private void cancel() {\n\t\tfinish();\n\t}",
"public void cancelar() {\n setCancelado(true);\n }",
"public void cancelCurrentComputation(){\n\t\tft.cancel(true);\n\t}",
"public void onCancel();",
"public void cancel() throws Exception {\n SFXPlayer.getInstance().setSFX(0);\n sceneSwitcher.switchScene(cancelButton, \"start.fxml\");\n }",
"protected abstract void onCancel();",
"@Override\r\n\t\tpublic void onCancel() {\n\t\t}",
"@FXML public void handleCancel() {\n\t\tSystem.out.println(\"Cancel clicked!\");\n\t\tClassifiersWindowsManager.stage.close();\n\t}",
"public void cancel() {\n request.disconnect();\n }",
"protected abstract void handleCancel();",
"private void cancelInput(TextArea textField){\n mainMessage.setText(\"Canceled operation.\");\n stage.setScene(main);\n }",
"public void setCancel(javafx.event.ActionEvent actionEvent) {\n backToMenu(actionEvent);\n }",
"private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}",
"@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\n public void setCancelOp(boolean cancel) {\n cancelOp = cancel;\n }",
"@Override\n public void setCancelOp(boolean cancel) {\n cancelOp = cancel;\n }",
"public void doCancel() {\n\t\tannotationManager.removeAllProviders();\n\t}",
"private void onCancel() {\n\t\tdispose();\n\t}",
"private void onCancel()\n\t{\n\t\tdispose();\n\t}",
"public void cancelCard() {}",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }"
] | [
"0.76490575",
"0.76490575",
"0.72498924",
"0.72498876",
"0.7225616",
"0.7223936",
"0.7212391",
"0.7212391",
"0.7212391",
"0.7212391",
"0.7212391",
"0.7212391",
"0.72056377",
"0.71724504",
"0.7165569",
"0.7113859",
"0.7100966",
"0.7076423",
"0.70389336",
"0.70389336",
"0.70389336",
"0.70117664",
"0.7009213",
"0.70083755",
"0.70083755",
"0.70083755",
"0.6992893",
"0.6991511",
"0.6977449",
"0.6954186",
"0.6945908",
"0.69118357",
"0.68891746",
"0.68651825",
"0.68493724",
"0.6840392",
"0.68302464",
"0.68302464",
"0.68302464",
"0.68302464",
"0.68302464",
"0.6821014",
"0.6813647",
"0.68106693",
"0.6797637",
"0.6793682",
"0.67759645",
"0.6657338",
"0.66498595",
"0.66021365",
"0.6600687",
"0.65987223",
"0.657571",
"0.65732306",
"0.6558314",
"0.6556834",
"0.65498406",
"0.6547335",
"0.6533579",
"0.6526494",
"0.6510019",
"0.6495717",
"0.6458038",
"0.6444043",
"0.64404595",
"0.64059865",
"0.64051896",
"0.6385697",
"0.63814926",
"0.63747877",
"0.6374272",
"0.634657",
"0.63458085",
"0.63458085",
"0.63133043",
"0.6309962",
"0.62970436",
"0.6293015",
"0.62821186",
"0.6277295",
"0.62758785",
"0.6274103",
"0.6270109",
"0.6262619",
"0.62603843",
"0.6258015",
"0.6246649",
"0.62287545",
"0.62254333",
"0.62085927",
"0.6202942",
"0.61720055",
"0.61663634",
"0.61627996",
"0.6156021",
"0.6156021",
"0.6150082",
"0.61485344",
"0.614817",
"0.6143574",
"0.6140642"
] | 0.0 | -1 |
Graph, der gerichtet oder ungerichtet sein kann. Der Graph ist gewichtet. Falls keine Gewichte angegeben werden, dann sind die Gewichte implizit auf 1 gesetzt. Der Graph einth??lt keine Mehrfachkanten und keine Schleifen (Kanten von Knoten zu sich selbst). | public interface Graph<V> {
/**
* F??gt neuen Knoten zum Graph dazu.
* @param v Knoten
* @return true, falls Knoten noch nicht vorhanden war.
*/
boolean addVertex(V v);
/**
* F??gt neue Kante (mit Gewicht 1) zum Graph dazu.
* @param v Startknoten
* @param w Zielknoten
* @throws IllegalArgumentException falls einer der Knoten
* nicht im Graph vorhanden ist oder Knoten identisch sind.
* @return true, falls Kante noch nicht vorhanden war.
*/
boolean addEdge(V v, V w);
/**
* F??gt neue Kante mit Gewicht weight zum Graph dazu.
* @param v Startknoten
* @param w Zielknoten
* @param weight Gewicht
* @throws IllegalArgumentException falls einer der Knoten
* nicht im Graph vorhanden ist oder Knoten identisch sind.
* @return true, falls Kante noch nicht vorhanden war.
*/
boolean addEdge(V v, V w, double weight);
/**
* Pr??ft ob Knoten v im Graph vorhanden ist.
* @param v Knoten
* @return true, falls Knoten vorhanden ist.
*/
boolean containsVertex(V v);
/**
* Pr??ft ob Kante im Graph vorhanden ist.
* @param v Startknoten
* @param w Endknoten
* @throws IllegalArgumentException falls einer der Knoten
* nicht im Graph vorhanden ist.
* @return true, falls Kante vorhanden ist.
*/
boolean containsEdge(V v, V w);
/**
* Liefert Gewicht der Kante zur??ck.
* @param v Startknoten
* @param w Endknoten
* @throws IllegalArgumentException falls einer der Knoten
* nicht im Graph vorhanden ist.
* @return Gewicht, falls Kante existiert, sonst 0.
*/
double getWeight(V v, V w);
/**
* Liefert Anzahl der Knoten im Graph zur??ck.
* @return Knotenzahl.
*/
int getNumberOfVertexes();
/**
* Liefert Anzahl der Kanten im Graph zur??ck.
* @return Kantenzahl.
*/
int getNumberOfEdges();
/**
* Liefert Liste aller Knoten im Graph zur??ck.
* @return Knotenliste
*/
List<V> getVertexList();
/**
* Liefert Liste aller Kanten im Graph zur??ck.
* @return Kantenliste.
*/
List<Edge<V>> getEdgeList();
/**
* Liefert eine Liste aller adjazenter Knoten zu v.
* Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,
* wobei (v, w) eine Kante des Graphen g ist.
* @param v Knoten
* @throws IllegalArgumentException falls Knoten v
* nicht im Graph vorhanden ist.
* @return Knotenliste
*/
List<V> getAdjacentVertexList(V v);
/**
* Liefert eine Liste aller inzidenten Kanten.
* Genauer: g.getIncidentEdgeList(v) liefert
* eine Liste aller Kanten im Graphen g mit v als Startknoten.
* @param v Knoten
* @throws IllegalArgumentException falls Knoten v
* nicht im Graph vorhanden ist.
* @return Kantenliste
*/
List<Edge<V>> getIncidentEdgeList(V v);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Graph getGraph();",
"@Override\n public Graph getGraph() {\n return graph;\n }",
"public Graph getGraph() {\n\t\treturn this.Graph;\n\t}",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"@Override\r\n public weighted_graph getGraph() {\r\n return this.Graph;\r\n }",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"protected Graph<VLabel, ELabel> theGraph() {\n return _graph;\n }",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"protected final AbstractDGraph getGraph() {\n return this.graph;\n }",
"public Graph<Integer> getGraph() {\n return E;\n }",
"public ReilGraph getGraph() {\n return m_graph;\n }",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"public DirectedGraph<VertexObject, String> getGraph() {\n return graph;\n }",
"public weighted_graph getGraph();",
"public Graph<V, E> getGraph() {\n\t\treturn graph;\n\t}",
"public interface Graph {\n\n /** @return The number of vertices in the graph. */\n int getNumVertices();\n\n /** @return The number of edges in the graph. */\n int getNumEdges();\n\n /** @return A read-only set of all the vertices in the graph. */\n Set<Vertex> getVertices();\n\n /** @return A read-only set of all edges (directed or undirected) in the graph. */\n Set<Edge> getEdges();\n\n /** Removes all vertices and edges from the graph. */\n void clear();\n\n /** Adds a vertex to this graph. */\n void add(Vertex vertex);\n\n /** Adds an edge to the graph. */\n void add(Edge edge);\n\n /** Adds all the vertices and edges in another graph to this graph. */\n void addAll(Graph graph);\n\n /** Removes vertex from the graph and any edges attached to it. */\n void remove(Vertex vertex);\n\n /** Removes an existing edge from the graph. */\n void remove(Edge edge);\n\n /** Checks if the graph contains a given vertex. */\n boolean contains(Vertex vertex);\n\n /** Checks if the graph contains a given edge. */\n boolean contains(Edge edge);\n\n /** @return An unmodifiable set of all directed edges entering vertex. */\n Set<Edge> getInEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all directed edges coming out of vertex. */\n Set<Edge> getOutEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all undirected edges connected to vertex. */\n Set<Edge> getUndirectedEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all edges (directed and undirected) connected to vertex. */\n Set<Edge> getMixedEdges(Vertex vertex);\n\n /** @return The number of undirected edges connected to vertex. */\n int getUndirectedDegree(Vertex vertex);\n\n /** @return The number of directed edges coming into vertex. */\n int getInDegree(Vertex vertex);\n\n /** @return The number of directed edges coming out of vertex. */\n int getOutDegree(Vertex vertex);\n\n /**\n * @return The number of directed and undirected edges connected to this vertex. Equivalent to\n * inDegree + outDegree + undirectedDegree.\n */\n int getMixedDegree(Vertex vertex);\n\n /** Registers a listener for changes in the graph model. */\n void addListener(GraphListener listener);\n\n /** Unregisters a listener for changes in the graph model. */\n void removeListener(GraphListener listener);\n\n /** @return Attributes that apply to the entire graph. */\n Attributes getAttributes();\n\n /** Creates a new vertex, adds it to the graph, and returns a reference to it. */\n Vertex createVertex();\n\n /** Creates a new edge, adds it to the graph, and returns a reference to it. */\n Edge createEdge(Vertex src, Vertex tgt, boolean directed);\n}",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"public static Graph buildGraph1() {\n Graph g = new Graph(\"Undirected graph For Kruskal Algorithm\");\n g.addEdge(\"A\", \"E\", 5);\n g.addEdge(\"A\", \"D\", 3);\n g.addEdge(\"A\", \"H\", 7);\n g.addEdge(\"A\", \"B\", 6);\n g.addEdge(\"D\", \"E\", 9);\n g.addEdge(\"D\", \"C\", 12);\n g.addEdge(\"C\", \"B\", 20);\n g.addEdge(\"B\", \"F\", 15);\n g.addEdge(\"F\", \"G\", 17);\n g.addEdge(\"G\", \"H\", 1);\n\n g.sortEdgesByIncreasingWeights();\n\n System.out.println(g);\n\n return g;\n }",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"@Pure\n\tpublic SGraph getGraph() {\n\t\treturn this.graph.get();\n\t}",
"public void drawGraph(Graph graph);",
"public GraphImpl(int[][] g) {\n\t\tanzKnoten = g.length;\n\t\tgraph = g;\n\t}",
"@Override\n public Graph getGraphModel() {\n return this.graph;\n }",
"public Graph2D getGraph() {\n return mGraph;\n }",
"public void buildGraph(){\n\t}",
"public OrientGraph getGraph();",
"Graph() {\r\n\t\tvertices = new LinkedList<Vertex>();\r\n\t\tedges = 0;\r\n\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\t// ASCII value of 'A' is 65\r\n\t\t\tVertex vertex = new Vertex((char) (i + 65));\r\n\t\t\tvertices.add(vertex);\r\n\t\t}\r\n\t\tcurrentVertex = vertices.get(0);\r\n\t\tseen = new boolean[26];\r\n\t}",
"public Graphs() {\n graph = new HashMap<>();\n }",
"public interface Graph {\n\n\t/**\n\t * Method to add the edge from start to end to the graph.\n\t * Adding self-loops is not allowed.\n\t * @param start start vertex\n\t * @param end end vertex\n\t */\n\tpublic void addEdge(int start, int end);\n\n\t/**\n\t * Method to add the edge with the given weight to the graph from start to end.\n\t * Adding self-loops is not allowed.\n\t * @param start number of start vertex\n\t * @param end number of end vertex\n\t * @param weight weight of edge\n\t */\n\tpublic void addEdge(int start, int end, double weight);\n\n\t/**\n\t * Method to add a vertex to the graph.\n\t */\n\tpublic void addVertex();\n\t\n\t/**\n\t * Method to add multiple vertices to the graph.\n\t * @param n number of vertices to add\n\t */\n\tpublic void addVertices(int n);\n\n\t/**\n\t * Returns all neighbors of the given vertex v (all vertices i with {i,v} in E or (i,v) or (v,i) in E).\n\t * @param v vertex whose neighbors shall be returned\n\t * @return List of vertices adjacent to v\n\t */\n\tpublic List<Integer> getNeighbors(int v);\n\n\t/**\n\t * Returns a list containing all predecessors of v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all predecessors of v\n\t */\n\tpublic List<Integer> getPredecessors(int v);\n\n\t/**\n\t * Returns a list containing all successors v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all edges starting in v\n\t */\n\tpublic List<Integer> getSuccessors(int v);\n\n\t/**\n\t * Method to get the number of vertices.\n\t * @return number of vertices\n\t */\n\tpublic int getVertexCount();\n\n\t/**\n\t * Method to get the weight of the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of edge / arc\n\t * @param end end vertex of edge / arc\n\t * @return Double.POSITIVE_INFINITY, if the edge does not exist, c_{start, end} otherwise\n\t */\n\tpublic double getEdgeWeight(int start, int end);\n\n\t/**\n\t * Method to test whether the graph contains the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic boolean hasEdge(int start, int end);\n\n\t/**\n\t * Method to remove an edge from the graph, defined by the vertices start and end.\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic void removeEdge(int start, int end);\n\n\t/**\n\t * Method to remove the last vertex from the graph.\n\t */\n\tpublic void removeVertex();\n\n\t/**\n\t * Returns whether the graph is weighted.\n\t * A graph is weighted if an edge with weight different from 1.0 has been added to the graph.\n\t * @return true if the graph is weighted\n\t */\n\tpublic boolean isWeighted();\n\n\t/**\n\t * Returns whether the graph is directed.\n\t * @return true if the graph is directed\n\t */\n\tpublic boolean isDirected();\n\n}",
"@Override\n\tpublic int graphOrder() {\n\t\treturn vertices.size();\n\t}",
"public interface Graph extends Container {\n\n /**\n * returns how many elements are in the container.\n *\n * @return int = number of elements in the container.\n */\n public int size();\n\n /**\n * returns true if the container is empty, false otherwise.\n *\n * @return boolean true if container is empty\n */\n public boolean isEmpty();\n\n /**\n * return the number of vertices in the graph\n * \n * @return number of vertices in the graph\n */\n public int numVertices();\n\n /**\n * returns the number for edges in the graph\n * \n * @return number of edges in the graph\n */\n public int numEdges();\n\n /**\n * returns an Enumeration of the vertices in the graph\n * \n * @return vertices in the graph\n */\n public Enumeration vertices();\n\n \n /**\n * returns an Enumeration of the edges in the graph\n * \n * @return edges in the graph\n */\n public Enumeration edges();\n\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration directedEdges();\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration undirectedEdges();\n\n /**\n * returns the degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the degree of\n * @return degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int degree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the in degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the in degree of\n * @return in degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int inDegree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the out degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the out degree of\n * @return out degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int outDegree(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the adjacent vertices of\n * @return enumeration of vertices adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices in adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the in adjacent vertices of\n * @return enumeration of vertices in adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices out adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the out adjacent vertices of\n * @return enumeration of vertices out adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration incidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges in incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges in incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration inIncidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges out incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges out incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;\n\n public Position[] endVertices(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the Vertex on Edge ep opposite from Vertex vp\n * \n * @param vp Vertex to find opposite of\n * @param ep Edge containing the vertices\n * @return \n * @exception InvalidPositionException\n */\n public Position opposite(Position vp, Position ep) throws InvalidPositionException;\n\n /**\n * Determine whether or not two vertices are adjacent\n * \n * @param vp Position of one Vertex to check\n * @param wp Position of other Vertex to check\n * @return true if they are adjacent, false otherwise\n * @exception InvalidPositionException\n * thrown if either Position is invalid for this container\n */\n public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;\n\n /**\n * Returns the destination Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the destination Vertex of\n * @return the destination Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position destination(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the origin Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the origin Vertex of\n * @return the origin Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position origin(Position ep) throws InvalidPositionException;\n\n /**\n * Returns true if the given Edge Position is directed,\n * otherwise false\n * \n * @param ep Edge Position to check directed on\n * @return true if directed, otherwise false\n * @exception InvalidPositionException\n */\n public boolean isDirected(Position ep) throws InvalidPositionException;\n\n /**\n * Inserts a new undirected Edge into the graph with end\n * Vertices given by Positions vp and wp storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding one Vertex endpoint\n * @param wp Position holding the other Vertex endpoint\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new directed Edge into the graph with end\n * Vertices given by Positions vp, the origin, and wp,\n * the destination, storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding the origin Vertex\n * @param wp Position holding the destination Vertex\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new Vertex into the graph holding Object o\n * and returns a Position holding the new Vertex\n * \n * @param o the Object to hold in this Vertex\n * @return the Position holding the Vertex\n */\n public Position insertVertex(Object o);\n\n /**\n * This method removes the Vertex held in the passed in\n * Position from the Graph\n * \n * @param vp the Position holding the Vertex to remove\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void removeVertex(Position vp) throws InvalidPositionException;\n\n /**\n * Used to remove the Edge held in Position ep from the Graph\n * \n * @param ep the Position holding the Edge to remove\n * @exception InvalidPositionException\n * thrown if Position ep is invalid for this container\n */\n public void removeEdge(Position ep) throws InvalidPositionException;\n\n /**\n * This routine is used to change a directed Edge into an\n * undirected Edge\n * \n * @param ep a Position holding the Edge to change from directed to\n * undirected\n * @exception InvalidPositionException\n */\n public void makeUndirected(Position ep) throws InvalidPositionException;\n\n /**\n * This routine can be used to reverse the diretion of a \n * directed Edge\n * \n * @param ep a Position holding the Edge to reverse\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void reverseDirection(Position ep) throws InvalidPositionException;\n\n /**\n * Changes the direction of the given Edge to be out incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be out incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionFrom(Position ep, Position vp) throws InvalidPositionException;\n\n\n /**\n * Changes the direction of the given Edge to be in incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be in incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionTo(Position ep, Position vp) throws InvalidPositionException;\n\n}",
"public LabeledUndirectedGraph<N, E> getGraph() {\n return graph;\n }",
"public LabeledUndirectedGraph<N, E> getGraph() {\n return graph;\n }",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"public Graph() {\r\n\t\tinit();\r\n\t}",
"public VBox getGraph(){\n\t\treturn graph.getGraph();\n\t}",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"Graph getRecentGraph();",
"@Override\n\tpublic directed_weighted_graph getGraph() {\n\t\treturn dwg;\n\t}",
"public GraphNOriented getG() {\n\t\treturn g;\n\t}",
"public Graph graph() {\n\t\treturn _analyzer.graph();\n\t}",
"public ParseTree getGraph() {\n return graph;\n }",
"protected int getGraphLeft() {\r\n\t\treturn leftEdge;\r\n\t}",
"public static void DrawIt (Graph<Integer,String> g) {\n\t\tISOMLayout<Integer,String> layout = new ISOMLayout<Integer,String>(g);\r\n\t\t// The Layout<V, E> is parameterized by the vertex and edge types\r\n\t\tlayout.setSize(new Dimension(650,650)); // sets the initial size of the space\r\n\t\t// The BasicVisualizationServer<V,E> is parameterized by the edge types\r\n\t\tBasicVisualizationServer<Integer,String> vv =\r\n\t\tnew BasicVisualizationServer<Integer,String>(layout);\r\n\t\tvv.setPreferredSize(new Dimension(650,650)); //Sets the viewing area size\r\n\t\tJFrame frame = new JFrame(\"Simple Graph View\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().add(vv);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\r\n\t}",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}",
"public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}",
"public GraphWrapper() {\n\t\tthis.graph = new Graph<T,E>();\n\t}",
"Graph(){\n\t\tadjlist = new HashMap<String, Vertex>();\n\t\tvertices = 0;\n\t\tedges = 0;\n\t\tkeys = new ArrayList<String>();\n\t}",
"private static int[][] graph(){\n int[][] graph = new int[6][6];\n graph[0][1] = 7;\n graph[1][0] = 7;\n\n graph[0][2] = 2;\n graph[2][0] = 2;\n\n graph[1][2] = 3;\n graph[2][1] = 3;\n\n graph[1][3] = 4;\n graph[3][1] = 4;\n\n graph[2][3] = 8;\n graph[3][2] = 8;\n\n graph[4][2] = 1;\n graph[2][4] = 1;\n\n graph[3][5] = 5;\n graph[5][3] = 5;\n\n graph[4][5] = 3;\n graph[5][4] = 3;\n return graph;\n }",
"public static <V> Graph<V> getMinimumSpanningTreeKruskal(Graph<V> graph) {\n class Arista {\n private V origen;\n private V destino;\n private double peso;\n\n private Arista(V pOrigen, double pPeso, V pDestino) {\n origen = pOrigen;\n peso = pPeso;\n destino = pDestino;\n }\n }\n\n V[] array = graph.getValuesAsArray();\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] matrizCopia = new double[array.length][array.length];\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n matrizCopia[x][y] = matrizPesos[x][y];\n }\n }\n\n List<Arista> aristas = new LinkedList<>();\n\n // Se buscan todas las aristas del grafo y se enlistan\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n if (matrizCopia[x][y] != -1) {\n if (!graph.isDirected()) {\n matrizCopia[y][x] = -1;\n }\n Arista ar = new Arista(array[x], matrizCopia[x][y], array[y]);\n aristas.add(ar);\n }\n }\n }\n\n //Se ordenan las listas de menor a mayor, aplicando el ordenamiento de burbuja.\n if (aristas.size() > 1) {\n int i = 0;\n for (int x = 2; x < aristas.size(); x++) {\n for (int y = 1; y < aristas.size() - i; y++) {\n Arista temp = aristas.get(y);\n Arista temp2 = aristas.get(y+1);\n if (temp.peso > temp2.peso) {\n aristas.set(y, temp2);\n aristas.set(y+1, temp);\n }\n }\n i++;\n }\n }\n\n List<Graph<V>> bosque = new LinkedList<>();\n for (int x = 0; x < array.length; x++) {\n Graph<V> temp = new AdjacencyMatrix<>();\n temp.addNode(array[x]);\n bosque.add(temp);\n }\n\n Iterator<Arista> it1 = aristas.iterator();\n while (it1.hasNext()) {\n Arista aux = it1.next();\n int arbolOrigen = buscarArbol(aux.origen, bosque);\n int arbolDestino = buscarArbol(aux.destino, bosque);\n if (arbolDestino < arbolOrigen) {\n int temp = arbolDestino;\n arbolDestino = arbolOrigen;\n arbolOrigen = temp;\n }\n\n if (arbolDestino != arbolOrigen) { // Significa que estan en diferentes arboles.\n Graph<V> grafoDestino = bosque.remove(arbolDestino);\n Graph<V> grafoTemp = unirGrafos(bosque.get(arbolOrigen), grafoDestino);\n grafoTemp.addEdge(aux.origen, aux.destino, aux.peso);\n bosque.set(arbolOrigen, grafoTemp);\n }\n }\n if (bosque.size() != 1) { // Significa que hay vertices aislados.\n for (int x = 2; x <= bosque.size(); x++) {\n Graph<V> grafoTemp = bosque.remove(x);\n Graph<V> grafosUnidos = unirGrafos(bosque.get(1), grafoTemp);\n bosque.set(1, grafosUnidos);\n }\n }\n\n return bosque.get(1);\n }",
"public interface Graph<V> {\n\t/** Return the number of vertices in the graph */\n\tpublic int getSize();\n\n\t/** Return the vertices in the graph */\n\tpublic java.util.List<V> getVertices();\n\n\t/** Return the object for the specified vertex index */\n\tpublic V getVertex(int index);\n\n\t/** Return the index for the specified vertex object */\n\tpublic int getIndex(V v);\n\n\t/** Return the neighbors of vertex with the specified index */\n\tpublic java.util.List<Integer> getNeighbors(int index);\n\n\t/** Return the degree for a specified vertex */\n\tpublic int getDegree(int v);\n\n\t/** Return the adjacency matrix */\n\tpublic int[][] getAdjacencyMatrix();\n\n\t/** Print the adjacency matrix */\n\tpublic void printAdjacencyMatrix();\n\n\t/** Print the edges */\n\tpublic void printEdges();\n\n\t/** Obtain a depth-first search tree */\n\tpublic AbstractGraph<V>.Tree dfs(int v);\n\n\t/** Obtain a breadth-first search tree */\n\tpublic AbstractGraph<V>.Tree bfs(int v);\n\n\t/**\n\t * Return a Hamiltonian path from the specified vertex Return null if the\n\t * graph does not contain a Hamiltonian path\n\t */\n\tpublic java.util.List<Integer> getHamiltonianPath(V vertex);\n\n\t/**\n\t * Return a Hamiltonian path from the specified vertex label Return null if\n\t * the graph does not contain a Hamiltonian path\n\t */\n\tpublic java.util.List<Integer> getHamiltonianPath(int inexe);\n}",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"public static Graph[] getGraph() {\n\t\tGraph[] D = new Graph[26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tGraph dd = new Graph(136);\n\t\t\tdd = generate(i);\n\t\t\tD[i] = dd;\n\t\t}\n\t\treturn D;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate DirectedGraph getGraph() {\n\n\t\tNode node1, node2, node3, node4, node5;\n\t\tEdge edge1, edge2, edge3, edge4;\n\n\t\tNodeList nodes = new NodeList();\n\t\tEdgeList edges = new EdgeList();\n\n\t\t// create Node\n\t\tnode1 = new Node(\"Node1\");\n\t\tnodes.add(node1);\n\t\tnode2 = new Node(\"Node2\");\n\t\tnodes.add(node2);\n\t\tnode3 = new Node(\"Node3\");\n\t\tnodes.add(node3);\n\t\tnode4 = new Node(\"Node4\");\n\t\tnodes.add(node4);\n\t\tnode5 = new Node(\"Node5\");\n\t\tnodes.add(node5);\n\n\t\t// create Edge\n\t\tedge1 = new Edge(node1, node2);\n\t\tedges.add(edge1);\n\t\tedge2 = new Edge(node1, node3);\n\t\tedges.add(edge2);\n\t\tedge3 = new Edge(node2, node4);\n\t\tedges.add(edge3);\n\t\tedge4 = new Edge(node4, node5);\n\t\tedges.add(edge4);\n\n\t\tDirectedGraph graph = new DirectedGraph();\n\t\tgraph.nodes = nodes;\n\t\tgraph.edges = edges;\n\n\t\t// set Layout of the graph (Compute and Set the x,y of each Node)\n\t\tnew DirectedGraphLayout().visit(graph);\n\n\t\treturn graph;\n\t}",
"public Graph classementDegre(Graph g) {\n List<Sommet<T>> noeuds = this.getSommets();\n Sommet<T> temp;\n for (int i = 0; i < noeuds.size(); i++) {\n for (int j = i; j > 0; j--) {\n if (noeuds.get(j).getDegre() > noeuds.get(j - 1).getDegre()) {\n temp = noeuds.get(j);\n noeuds.set(j, noeuds.get(j - 1));\n noeuds.set(j - 1, temp);\n }\n }\n }\n return g;\n }",
"public void setGraph(String graph) {\n this.graph = graph;\n }",
"void printGraph();",
"private DirectedGraph<State, UniqueEdge> getGraph() {\r\n \t\tDirectedGraph<State, UniqueEdge> graph = new DirectedMultigraph<State, UniqueEdge>(\r\n \t\t\t\tUniqueEdge.class);\r\n \t\tfor (State source : states.values()) {\r\n \t\t\tgraph.addVertex(source);\r\n \t\t\tint index = source.getIndex();\r\n \t\t\tTransition transition = transitions.get(index);\r\n \t\t\tList<NextStateInfo> nextState = transition.getNextStateInfo();\r\n \t\t\tfor (NextStateInfo info : nextState) {\r\n \t\t\t\tState target = info.getTargetState();\r\n \t\t\t\tgraph.addVertex(target);\r\n \t\t\t\tgraph.addEdge(source, target, new UniqueEdge(info.getAction()));\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn graph;\r\n \t}",
"public void drawGraph(Graphics g) \n\t{\n\t\tNode<T> n = start;\n\t\tint count = 0;\t//loop counter variable\n\t\twhile((n.next != start && count == 0) || count < 1) //while not at end of list and hasnt looped\n\t\t{\n\t\t\tint[] pos = n.computeXY();\t\t\t\t\t\t//compute coordinates of the current node\n\t\t\tint[] nextPos = n.next.computeXY();\t\t\t\t//compute coordinates of the next node\n\n\t\t\t//System.out.println(\"--\\nval: \" + n.value + \" position: \" + pos[0] + \", \" + pos[1]);\n\n\t\t\tg.setColor(Color.BLACK); //set draw color to black\n\t\t\tg.drawLine(pos[0], pos[1], nextPos[0], nextPos[1]); //draw line between current \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and next node\n\t\t\tif(n.isCurrent) //if the node n is the current node in the list\n\t\t\t{\n\t\t\t\tg.setColor(new Color(100, 200, 100));\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tg.setColor(new Color(130, 225, 235));\t\n\t\t\t}\n\n\t\t\tg.fillOval(pos[0] - 25, pos[1] - 25, 50, 50);\t//fill the oval\n\t\t\tg.setColor(Color.BLACK);\t\t\t\t\t\t//set the color of the oval\n\t\t\tif(n == start) \t\t\t\t\t\t\t\t\t//if n is the starting node\n\t\t\t{\n\t\t\t\tg.drawOval(pos[0] - 20, pos[1] - 20, 40, 40);\n\t\t\t}\n\t\t\tg.drawOval(pos[0] - 25, pos[1] - 25, 50, 50);\n\t\t\tg.drawString(n.value.toString(), pos[0], pos[1] + 5);\n\t\t\t\n\t\t\tif(n.next == start) //if we are at the end\n\t\t\t{\n\t\t\t\tcount++;\t\t//increment loop counter\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t}",
"public WeightedGraph() {\n super();\n }",
"public void drawGraph()\n\t{\n\t\tMatrixStack transformStack = new MatrixStack();\n\t\ttransformStack.getTop().mul(getWorldTransform());\n\t\tdrawSelfAndChildren(transformStack);\n\t}",
"public Graph getGraph() throws MapException {\n\n\t\t// checks if the graph exists\n\t\tif (BusLines == null) {\n\t\t\tthrow new MapException(\"The graph is not defined.\");\n\t\t}\n\n\t\treturn BusLines;\n\t}",
"public Graph getGraph() throws MapException{\n\t\t// check to make sure the graph exist\n\t\tif (this.graph == null){\n\t\t\tthrow new MapException(\"No graph is defined.\");\n\t\t}\n\t\t// return graph if it exists\n\t\treturn this.graph;\n\t}",
"public Matrix getGraphMatrix(){\n\t\treturn graphMatrix;\n\t}",
"public abstract Graphomat getGraphomat(Fraction f);",
"public void setGraph(Graph<V,E> graph);",
"public interface Graph\n{\n int getNumV();\n boolean isDirected();\n void insert(Edge edge);\n boolean isEdge(int source, int dest);\n Edge getEdge(int source, int dest);\n Iterator<Edge> edgeIterator(int source);\n}",
"public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }",
"public Graph() {\n }",
"private static int nonIsolatedVertex(Graph G) {\n for (int v = 0; v < G.V(); v++)\n if (G.degree(v) > 0)\n return v;\n return -1;\n }",
"public Graph() {\n\t\tdictionary=new HashMap<>();\n\t}",
"@Override\n public Collection<? extends IGraph> getGraphs() {\n\n return new LinkedList<>(\n Collections.unmodifiableCollection(this.graphMap.values()));\n }",
"public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic Graph() {\r\n \tthis.vertex = new HashMap<T, Vertex>();\r\n \tthis.edge = new HashMap<Integer, Edge>();\r\n }",
"public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}",
"public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}",
"Graph testGraph();",
"public static graphNode[] createGraph() {\n\t\tgraphNode[] graph = new graphNode[16];\n\t\t\n\t\tgraph[0] = new graphNode(1, new graphNode(5, null));\n\t\tgraph[1] = new graphNode(0, null);\n\t\tgraph[2] = new graphNode(7, new graphNode(11, null));\n\t\tgraph[3] = null; //illegal, fox eats chicken\n\t\tgraph[4] = new graphNode(5, new graphNode(7, new graphNode(13, null)));\n\t\tgraph[5] = new graphNode(0, new graphNode(4, null));\n\t\tgraph[6] = null; //illegal, chicken eats grain\n\t\tgraph[7] = new graphNode(2, new graphNode(4, null));\n\t\tgraph[8] = new graphNode(11, new graphNode(13, null));\n\t\tgraph[9] = null; //illegal, chicken eats grain\n\t\tgraph[10] = new graphNode(11, new graphNode(15, null));\n\t\tgraph[11] = new graphNode(2, new graphNode(8, new graphNode(10, null)));\n\t\tgraph[12] = null; //illegal, fox eats chicken\n\t\tgraph[13] = new graphNode(4, new graphNode(8, null));\n\t\tgraph[14] = new graphNode(15, null);\n\t\tgraph[15] = new graphNode(10, new graphNode(14, null));\n\t\t\n\t\treturn graph;\n\t}",
"void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}",
"public GraphNode buildGraph()\n {\n GraphNode node1 = new GraphNode(1);\n GraphNode node2 = new GraphNode(2);\n GraphNode node3 = new GraphNode(3);\n GraphNode node4 = new GraphNode(4);\n List<GraphNode> v = new ArrayList<GraphNode>();\n v.add(node2);\n v.add(node4);\n node1.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node1);\n v.add(node3);\n node2.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node2);\n v.add(node4);\n node3.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node3);\n v.add(node1);\n node4.neighbours = v;\n return node1;\n }",
"public interface IGraph {\n\t// Adds a new edge between 'from' and 'to' nodes with a cost obeying the\n\t// triangle in-equality\n\tpublic IEdge addEdge(String from, String to, Double cost);\n\t\n\t// Returns a node, creates if not exists, corresponding to the label\n\tpublic INode addOrGetNode(String label);\n\t\n\t// Returns a list of all nodes present in the graph\n\tpublic List<INode> getAllNodes();\n\t\n\t// Returns a list of all edges present in the graph\n\tpublic List<IEdge> getAllEdges();\n\t\n\t// Joins two graphs that operate on the same cost interval and \n\t// disjoint sets of nodes\n\tpublic void joinGraph(IGraph graph);\n\t\n\t// Returns the maximum cost allowed for the edges\n\tpublic Double getCostInterval();\n\t\n\t// Returns a Path with cost between 'from' and 'to' nodes\n\tpublic String getPath(String from, String to, String pathAlgo);\n}",
"public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }",
"Graph(List<Edge> edges) {\n\n //one pass to find all vertices\n // this step avoid add isolated coordinates to the graph\n for (Edge e : edges) {\n if (!graph.containsKey(e.startNode)) {\n graph.put(e.startNode, new Node(e.startNode));\n }\n if (!graph.containsKey(e.endNode)) {\n graph.put(e.endNode, new Node(e.endNode));\n }\n }\n\n //another pass to set neighbouring vertices\n for (Edge e : edges) {\n graph.get(e.startNode).neighbours.put(graph.get(e.endNode), e.weight);\n //graph.get(e.v2).neighbours.put(graph.get(e.v1), e.dist); // also do this for an undirected graph\n }\n }",
"public samJGraph()\n {\n super(new GraphPane( new GraphModel(), new samGraphController() ) );\n }",
"@Override\n\tpublic int graphSize() {\n\t\treturn edges.size();\n\t}",
"public:\n Graph(int V); // Constructor\n void addEdge(int v, int w);",
"public String getGraphID() {\r\n\t\treturn graphID;\r\n\t}",
"public interface Graph<V>\n{\n /**\n * Adds the specified vertex to this graph. The given vertex will not be\n * added to this graph if this graph contains the vertex. In other words\n * this graph does not allow duplicate vertices. The way this graph\n * concludes if the specified vertex is a duplicate is through the equals\n * convention. For example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to add to this graph.\n *\n * @return <tt>true</tt> of the specified vertex is added to this\n * graph; otherwise <tt>false</tt>.\n */\n public boolean addVertex(V vertex);\n\n /**\n * Removes the specified vertex from this graph if the vertex actually\n * exists in this graph. Any edges that are connected to the given\n * vertex will also be removed from this graph. If the specified vertex\n * is not contained within this graph then the graph is unchanged and this\n * operation return <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to remove from this graph.\n * \n * @return <tt>true</tt> if the given vertex is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeVertex(V vertex);\n\n /**\n * Gets the set of vertices contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of vertices. \n *\n * @return a read-only view of the vertices contained withing this graph.\n */\n public Set<V> getVertices();\n\n /**\n * Checks if this graph contains the specified vertex. If the given\n * vertex is present in this graph, this operation returns <tt>true</tt>\n * ;otherwise <tt>false</tt>. The way this graph concludes if the\n * specified vertex is a present is through the equals convention. For\n * example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to verify is present within this graph.\n * \n * @return <tt>true</tt> if the specified vertex is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsVertex(V vertex);\n\n /**\n * Adds an edge (based on the specified vertices) to this graph. The edge\n * will not be added to this graph if this graph already contains an edge\n * between the specified vertices. In other words this graph does not allow\n * duplicate edges.\n * \n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to add to this graph.\n * @param target the target vertex for the edge to add to this graph.\n *\n * @return <tt>true</tt> of the edge is added to this graph; otherwise\n * <tt>false</tt>.\n */\n public Edge<V> addEdge(V source, V target);\n\n /**\n * Removes the edge (based on the given vertices) from this graph if the\n * edge actually exists in this graph. If the specified vertices are not\n * contained within this graph then the graph is unchanged and this\n * operation returns <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to remove.\n * @param target the target vertex for the edge to remove.\n *\n * @return <tt>true</tt> if the edge that contains the specified vertices\n * is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeEdge(V source, V target);\n\n /**\n * Gets the edge connected by the given source and target vertices. If\n * either of the specified vertices are not present in this graph, then\n * this operation returns null. If any of the specified vertices are\n * <code>null</code> then <code>null</code> is returned.\n *\n * <p>The order of vertices in the resulting edge is not guaranteed if this\n * graph is an undirected graph.</p> \n *\n * @param source the source vertex for the edge to lookup in this graph.\n * @param target the target vertex for the edge to lookup in this graph.\n *\n * @return an edge that connects the specified vertices.\n */\n public Edge<V> getEdge(V source, V target);\n\n /**\n * Gets a set of edges connected to the specified vertex that are contained\n * within this graph. The set is an unmodifiable view so modifications to\n * the set do not affect this graph's internal set of edges.\n *\n * @param vertex the vertex connected to the set of edges to lookup.\n * \n * @return a read-only view of the edges connected to the given vertex that\n * are withing this graph.\n */\n public Set<Edge<V>> getEdges(V vertex);\n\n /**\n * Gets the set of edges contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of edges.\n *\n * @return a read-only view of the edges contained withing this graph.\n */\n public Set<Edge<V>> edgeSet();\n\n /**\n * Checks if this graph contains an edge based on the specified vertices.\n * If either of the given vertices are not present in this graph, this\n * operation returns <tt>false</tt>. Both specified vertices have to exists\n * in this graph and have a defined edge in order for this method to return\n * <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to verify is present within\n * this graph.\n * @param target the target vertex for the edge to verify is present within \n * this graph.\n *\n * @return <tt>true</tt> if the edge is present in this graph; otherwise\n * <tt>false</tt>.\n */\n public boolean containsEdge(V source, V target);\n\n /**\n * Checks if this graph contains the specified edge. If the given edge is\n * not present in this graph, this operation returns <tt>false</tt>.\n *\n * <p>This method will return false if the given edge is <code>null</code>\n * </p>.\n *\n * @param edge the edge to verify is present within this graph.\n *\n * @return <tt>true</tt> if the specified edge is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsEdge(Edge<V> edge);\n\n /**\n *\n * @return\n */\n public Set<V> breadthFirstSearch();\n\n /**\n *\n * @return\n */\n public Set<V> depthFirstSearch();\n\n /**\n * \n * @return\n */\n public Set<Edge<V>> minSpanningTree();\n}",
"public Graph() {\n\t\tthis(new PApplet());\n\t}",
"public JXGraph() {\r\n this(0.0, 0.0, -1.0, 1.0, -1.0, 1.0, 0.2, 4, 0.2, 4);\r\n }",
"private static <V> Graph<V> unirGrafos(Graph<V> grafo1, Graph<V> grafo2) {\n V[] array = grafo2.getValuesAsArray();\n double[][] matriz = grafo2.getGraphStructureAsMatrix();\n for (int x = 0; x < array.length; x++) {\n grafo1.addNode(array[x]);\n for (int y = 0; y < array.length; y++) {\n if (matriz[x][y] != -1) {\n if (!grafo2.isDirected()) {\n matriz[y][x] = -1;\n }\n grafo1.addNode(array[y]);\n grafo1.addEdge(array[x], array[y], grafo2.getWeight(array[x], array[y]));\n }\n }\n }\n return grafo1;\n }",
"public String getGraphName() {\r\n\t\treturn graphName;\r\n\t}",
"public static void exampleGraph() {\n\t\t// create a simple FNSS topology\n\t\tTopology topology = new Topology();\n\t\ttopology.addEdge(\"1\", \"2\", new Edge());\n\t\ttopology.addEdge(\"2\", \"3\", new Edge());\n\t\t\n\t\t// convert to JGraphT\n\t\tGraph<String, Edge> graph = JGraphTConverter.getGraph(topology);\n\t\t\n\t\t// Find shortest paths\n\t\tString source = \"3\";\n\t\tString destination = \"1\";\n\t\tList<Edge> sp = DijkstraShortestPath.findPathBetween(graph, source, destination);\n\t\t\n\t\t// Print results\n\t\tSystem.out.println(\"Shortest path from \" + source + \" to \" + destination + \":\");\n\t\tfor (Edge e : sp) {\n\t\t\tSystem.out.println(graph.getEdgeSource(e) + \" -> \" + graph.getEdgeTarget(e));\n\t\t}\n\t}",
"public Graphics2D getGraphGraphics() {\r\n \t\t// DEK (Federico Granata) 17-11-2003\r\n \t\treturn (Graphics2D) graph.getGraphics();\r\n \t\t// end 17-11-2003\r\n \t\t// return mainWindow.getGraphics();\r\n \t}",
"GraphObj() {\n this._V = 0;\n this._E = 0;\n inListArray = new ArrayList<>();\n inListArray.add(null);\n outListArray = new ArrayList<>();\n outListArray.add(null);\n selfEdges = new ArrayList<>();\n selfEdges.add(-1);\n edgeList = new ArrayList<>();\n edgeList.add(null);\n }",
"IGraphEngine getGraphEngine();",
"protected int getGraphHeight() {\r\n\t\treturn pv.graphHeight;\r\n\t\t/*\r\n\t\t * if (canPaintGraph()) return\r\n\t\t * (getHeight()-topEdge-bottomEdge)/channelCount; else return 0;\r\n\t\t */\r\n\t}",
"void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }",
"public WeightedAdjacencyGraph() {\n this.vertices = new HashMap<>();\n }"
] | [
"0.7128225",
"0.6954459",
"0.68966144",
"0.6835676",
"0.6798852",
"0.67664903",
"0.6762331",
"0.6733956",
"0.67004126",
"0.6617476",
"0.658465",
"0.6555221",
"0.65249544",
"0.6515797",
"0.6515436",
"0.65125096",
"0.65037584",
"0.6473999",
"0.6471812",
"0.6458067",
"0.6443293",
"0.6432619",
"0.6375014",
"0.6372535",
"0.63601965",
"0.63478816",
"0.63444525",
"0.6319833",
"0.6318273",
"0.631647",
"0.63121915",
"0.6302925",
"0.6302925",
"0.63013196",
"0.62943965",
"0.6261765",
"0.62408864",
"0.62249327",
"0.6224443",
"0.621595",
"0.6176945",
"0.61752445",
"0.6168164",
"0.6149226",
"0.61453086",
"0.61436695",
"0.6130449",
"0.61032367",
"0.6088355",
"0.60793644",
"0.606929",
"0.60435146",
"0.601771",
"0.60101414",
"0.6009263",
"0.60024905",
"0.6001632",
"0.5989339",
"0.5988218",
"0.59818393",
"0.59698284",
"0.59646434",
"0.59634835",
"0.59448653",
"0.5942476",
"0.5942295",
"0.5940608",
"0.5936348",
"0.5925216",
"0.5920933",
"0.58792865",
"0.58644074",
"0.5862218",
"0.5856822",
"0.5849332",
"0.5825199",
"0.58213764",
"0.5819819",
"0.5815598",
"0.58112925",
"0.5799639",
"0.57966113",
"0.5791074",
"0.57889247",
"0.57729465",
"0.57719725",
"0.5766579",
"0.57636833",
"0.5753331",
"0.5744297",
"0.57433903",
"0.57425255",
"0.57414114",
"0.5737696",
"0.573566",
"0.57243246",
"0.572365",
"0.57197535",
"0.57073146",
"0.5691574"
] | 0.6772604 | 5 |
F??gt neuen Knoten zum Graph dazu. | boolean addVertex(V v); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"public void testaGraph() {\n\t\tEstacaoDAO a = new EstacaoDAO();\n\t\ta.carregarEstacoes();\n\t\tLinha b = new Linha(\"a\");\n\t\tb.loadAllStations(a);\n\t\tb.shortestPath(a,\"Curado\",\"Recife\");\n\t}",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"public static String graphTest(GraphInterface subject) {\n // Let the Test begin!\n System.out.println(\"Test beginnt...\");\n if (subject.getNumberOfVertices() != 10)\n return \"FEHLER: Liste nicht mit 10 Knoten initialisiert!\";\n // Lets now check the fail-safes\n subject.addEdge(11, 1, 1);\n subject.addEdge(-1, 2, 1);\n subject.removeEdge(13, 3);\n subject.removeEdge(-3, 3);\n subject.removeEdge(6, 0);// Does not exist (But the vertices do)!\n\n if (subject.getWeight(7, 0) != 0)\n return \"FEHLER: getWeight(7, 0): Kante 7<->0 existiert nicht!\";\n\n if (subject.getWeight(-7, 0) != 0)\n return \"FEHLER: getWeight(-7, 0):Kante -7<->0 existiert nicht!\";\n\n if (subject.getWeight(17, 0) != 0)\n return \"FEHLER: getWeight(17, 0): Kante 17<->0 existiert nicht!\";\n\n if (subject.getDegree(-10) != -1)\n return \"FEHLER: getDegree(-10): Knoten -10 existiert nicht!\";\n\n if (subject.getDegree(140) != -1)\n return \"FEHLER: getDegree(140): Knoten 140 existiert nicht!\";\n\n if (subject.getDegree(0) == -1)\n return \"FEHLER: getDegree(0): Knoten 0 existiert (Und hat Kanten)!\";\n\n if (subject.getNeighbours(-3) != null)\n return \"FEHLER: getNeighbours(-3): Knoten -3 existiert nicht!\";\n\n if (subject.getNeighbours(13) != null)\n return \"FEHLER: getNeighbours(13): Knoten 13 existiert nicht!\";\n\n // lets check if there are NO edges\n for (int i = 0; i < 10; i++)\n if (subject.getDegree(i) != 0)\n return \"FEHLER: getDegree(\" + i + \")!=0\";\n for (int i = 0; i < 10; i++)\n if (subject.getNeighbours(i).length != 0)\n return \"FEHLER: getNeighbours(\" + i + \").length!=0\";\n // create a network and check it\n for (int edge = 0; edge < edges.length; edge++) {\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 0)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=0\";\n subject.addEdge(edges[edge][0], edges[edge][1], edges[edge][2]);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != edges[edge][2])\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=\" + edges[edge][2];\n int[] tempNeighbours = subject.getNeighbours(edges[edge][0]);\n boolean foundFlag = false;\n for (int j = 0; j < tempNeighbours.length; j++)\n if (edges[edge][1] == tempNeighbours[j]) {\n foundFlag = true;\n break;\n }\n if (!foundFlag)\n return \"Fehler: getNeighbours(\" + edges[edge][0]\n + \") enth�lt nicht die vorhandene Kante '\"\n + edges[edge][1] + \"'!\";\n }\n\n // and finally: delete some edges\n for (int edge = 0; edge < edges.length; edge++) {\n subject.addEdge(edges[edge][0], edges[edge][1], 14);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 14)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=14\";\n subject.removeEdge(edges[edge][0], edges[edge][1]);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 0)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=0\";\n }\n\n return \"Keine Fehler gefunden!\\n\";\n }",
"public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }",
"private static int nonIsolatedVertex(Graph G) {\n for (int v = 0; v < G.V(); v++)\n if (G.degree(v) > 0)\n return v;\n return -1;\n }",
"public Graph getGraph();",
"public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}",
"public EichhoernchenKnoten getNechstes() {\n return nechstes;\n }",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}",
"@Test\n public void testWithUnknownLabel() throws Exception {\n LogicalGraph socialGraph = getSocialNetworkLoader().getLogicalGraph();\n LogicalGraph result = socialGraph\n .callForGraph(new VertexDeduplication<>(\"NotInTheGraph\", Arrays.asList(\"a\", \"b\")));\n collectAndAssertTrue(socialGraph.equalsByData(result));\n }",
"void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}",
"protected abstract Graph filterGraph();",
"public void setNodesToUnvisited(){\n for(GraphNode node: graphNode){\n if(node.visited){\n node.visited = false;\n }\n }\n }",
"public void buildGraph(){\n\t}",
"public static void MakeDirectedNoCycle(graphUndir G) {\r\n\r\n\t\tfor (int i = 0; i < G.Adj.size(); i++) {\r\n\t\t\tG.Adj.elementAt(i).color = \"grey\";\r\n\t\t\tSystem.out.println(G.Adj.elementAt(i).name + \" is \"\r\n\t\t\t\t\t+ G.Adj.elementAt(i).color);\r\n\t\t\tfor (int j = 0; j < G.Adj.elementAt(i).next.size(); j++) {\r\n\t\t\t\tif (G.Adj.elementAt(i).next.elementAt(j).color == \"white\") {\r\n\t\t\t\t\tG.Adj.elementAt(i).next.elementAt(j).color = \"grey\";\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(G.Adj.elementAt(i).next.elementAt(j).name\r\n\t\t\t\t\t\t\t\t\t+ \" is \"\r\n\t\t\t\t\t\t\t\t\t+ G.Adj.elementAt(i).next.elementAt(j).color);\r\n\t\t\t\t} else if (G.Adj.elementAt(i).next.elementAt(j).color == \"black\") {\r\n\t\t\t\t\tSystem.out\r\n\t\t\t\t\t\t\t.println(G.Adj.elementAt(i).next.elementAt(j).name\r\n\t\t\t\t\t\t\t\t\t+ \" is rempved from \"\r\n\t\t\t\t\t\t\t\t\t+ G.Adj.elementAt(i).name);\r\n\t\t\t\t\tG.Adj.elementAt(i).next.remove(j);\r\n\t\t\t\t\tj--;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tG.Adj.elementAt(i).color = \"black\";\r\n\t\t\tSystem.out.println(G.Adj.elementAt(i).name + \" is \"\r\n\t\t\t\t\t+ G.Adj.elementAt(i).color);\r\n\r\n\t\t}\r\n\r\n\t}",
"@Override\n public Graph getGraph() {\n return graph;\n }",
"@Test\n public void tae0()\n {\n Graph g = new Graph(2);\n g.addEdge(0, 1);\n System.out.println(g);\n assertEquals(g.toString(), \"numNodes: 2\\nedges: [[false, true], [false, false]]\");\n }",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"void printGraph();",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Node<A>> neighbours(){\n\t\t\n\t\tArrayList<Node<A>> output = new ArrayList<Node<A>>();\n\t\t\n\t\tif (g == null) return output;\n\t\t\n\t\tfor (Object o: g.getEdges()){\n\n\t\t\t\n\t\t\tif (((Edge<?>)o).getTo().equals(this)) {\n\t\t\t\t\n\t\t\t\tif (!output.contains(((Edge<?>)o).getFrom()))\n\t\t\t\t\t\toutput.add((Node<A>) ((Edge<?>)o).getFrom());\n\t\t\t\t\n\t\t\t}\n\n\t\t} \n\t\treturn output;\n\t\t\n\t}",
"private void dijkstras() {\n LinkedList<Integer> openNodeList = new LinkedList<Integer>();\n openNodeList.add(grid.length - 1);\n Integer curGrid = -1;\n\n while ( openNodeList.size() > 0 ) {\n curGrid = getBestGrid(openNodeList,curGrid);\n\n for ( int i = 0; i < grid[curGrid].edges.size() - 1; i++ ) {\n Integer tmp = grid[curGrid].edges.get(i).arrayIndex;\n if ( !grid[tmp].bFinalized && !openNodeList.contains(tmp)) {\n //System.out.println(\"Adding:\\t\" + tmp + \":\\t\" + grid[tmp].cost);\n grid[tmp].setHead(curGrid);\n grid[tmp].cost = grid[curGrid].cost + grid[curGrid].edges.get(i).Exposure;\n openNodeList.add(tmp);\n }\n }\n\n grid[curGrid].bFinalized = true;\n openNodeList.removeFirstOccurrence(curGrid);\n }\n }",
"@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }",
"public void generateGraph() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tgraph = new boolean[map.size()][map.size()];\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject cloned = map.get(i).duplicate();\r\n\t\t\tArrayList<Location> locs = sc.traceLinearMotion(i,sc.getMaxVelocity(),cloned.getGoal());\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(j != i) {\r\n\t\t\t\t\tfor(int k = 0; k < locs.size(); k++) {\r\n\t\t\t\t\t\tcloned.setLocation(locs.get(k));\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 2)) {\r\n\t\t\t\t\t\t\tgraph[i][j] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 0)) {\r\n\t\t\t\t\t\t\tgraph[j][i] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"public Graphs() {\n graph = new HashMap<>();\n }",
"public void drawGraph(Graphics g) \n\t{\n\t\tNode<T> n = start;\n\t\tint count = 0;\t//loop counter variable\n\t\twhile((n.next != start && count == 0) || count < 1) //while not at end of list and hasnt looped\n\t\t{\n\t\t\tint[] pos = n.computeXY();\t\t\t\t\t\t//compute coordinates of the current node\n\t\t\tint[] nextPos = n.next.computeXY();\t\t\t\t//compute coordinates of the next node\n\n\t\t\t//System.out.println(\"--\\nval: \" + n.value + \" position: \" + pos[0] + \", \" + pos[1]);\n\n\t\t\tg.setColor(Color.BLACK); //set draw color to black\n\t\t\tg.drawLine(pos[0], pos[1], nextPos[0], nextPos[1]); //draw line between current \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and next node\n\t\t\tif(n.isCurrent) //if the node n is the current node in the list\n\t\t\t{\n\t\t\t\tg.setColor(new Color(100, 200, 100));\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tg.setColor(new Color(130, 225, 235));\t\n\t\t\t}\n\n\t\t\tg.fillOval(pos[0] - 25, pos[1] - 25, 50, 50);\t//fill the oval\n\t\t\tg.setColor(Color.BLACK);\t\t\t\t\t\t//set the color of the oval\n\t\t\tif(n == start) \t\t\t\t\t\t\t\t\t//if n is the starting node\n\t\t\t{\n\t\t\t\tg.drawOval(pos[0] - 20, pos[1] - 20, 40, 40);\n\t\t\t}\n\t\t\tg.drawOval(pos[0] - 25, pos[1] - 25, 50, 50);\n\t\t\tg.drawString(n.value.toString(), pos[0], pos[1] + 5);\n\t\t\t\n\t\t\tif(n.next == start) //if we are at the end\n\t\t\t{\n\t\t\t\tcount++;\t\t//increment loop counter\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t}",
"@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }",
"@Override\n\n public void leggInn(int indeks, T verdi) {\n\n if (verdi == null){\n throw new NullPointerException(); }\n if (indeks < 0){\n throw new IndexOutOfBoundsException(); }\n if (indeks > (antall - 1)){\n throw new IndexOutOfBoundsException(); }\n\n Node<T> newNode = new Node<T>(verdi);\n if (hode == null ){ // Hvis Listen er Tom\n hode = newNode;\n hale = newNode;\n }\n else if (indeks == 0){\n newNode.neste = hode;\n hode.forrige = newNode;\n hode = newNode;\n }\n else if (indeks == (antall - 1)){\n newNode.forrige = hale;\n hale.forrige = newNode;\n hale = newNode;\n }\n else {\n Node<T> nodeTemp = hode;\n for (int i = 1; i < indeks; i++){\n nodeTemp = nodeTemp.neste;\n newNode.neste = nodeTemp.neste;\n nodeTemp.neste = newNode;\n newNode.forrige = nodeTemp;\n newNode.neste.forrige = newNode;\n }\n }\n antall++;\n endringer++;\n }",
"Graph testGraph();",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }",
"private static <V> Graph<V> unirGrafos(Graph<V> grafo1, Graph<V> grafo2) {\n V[] array = grafo2.getValuesAsArray();\n double[][] matriz = grafo2.getGraphStructureAsMatrix();\n for (int x = 0; x < array.length; x++) {\n grafo1.addNode(array[x]);\n for (int y = 0; y < array.length; y++) {\n if (matriz[x][y] != -1) {\n if (!grafo2.isDirected()) {\n matriz[y][x] = -1;\n }\n grafo1.addNode(array[y]);\n grafo1.addEdge(array[x], array[y], grafo2.getWeight(array[x], array[y]));\n }\n }\n }\n return grafo1;\n }",
"public Graph classementDegre(Graph g) {\n List<Sommet<T>> noeuds = this.getSommets();\n Sommet<T> temp;\n for (int i = 0; i < noeuds.size(); i++) {\n for (int j = i; j > 0; j--) {\n if (noeuds.get(j).getDegre() > noeuds.get(j - 1).getDegre()) {\n temp = noeuds.get(j);\n noeuds.set(j, noeuds.get(j - 1));\n noeuds.set(j - 1, temp);\n }\n }\n }\n return g;\n }",
"private void clearVisited(){\r\n\t\tfor(int i=0; i<graphSize; i++){\r\n\t\t\tmyGraph[i].visited = false;\r\n\t\t\tAdjVertex vert = myGraph[i].adjVertexHead;\r\n\t\t\twhile(vert != null){\r\n\t\t\t\tvert.visited = false;\r\n\t\t\t\tvert= vert.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void addedge(String fro, String to, int wt) {\r\n Edge e = new Edge(fro, to, wt);\r\n\r\n\r\n Set<String> keys = graph.keySet();\r\n// Object[] arr = keys.toArray();\r\n int f = 0;\r\n if(graph.containsKey(fro)&&graph.containsKey(to))\r\n {\r\n\r\n int[] bb2 = new int[2000];\r\n for(int zz=0;zz<5000;zz++){\r\n\r\n\r\n ArrayList<Integer> abcd = new ArrayList<>();\r\n abcd.add(zz);\r\n\r\n if(zz<2500)\r\n zz++;\r\n else\r\n zz++;\r\n\r\n bb2[zz%500]=zz;\r\n\r\n\r\n int qq= 5000;\r\n\r\n qq--;\r\n\r\n String nnn = \"aaa aa\";\r\n nnn+=\"df\";\r\n\r\n\r\n }\r\n\r\n }\r\n else\r\n {\r\n\r\n\r\n System.out.println(\"some vertices are not present\");\r\n return;\r\n }\r\n for ( String y : keys) {\r\n if (fro.compareTo(y) == 0) {\r\n f = 1;\r\n ArrayList<Edge> ee =graph.get(y);\r\n\r\n\r\n ee.add(e);\r\n }\r\n\r\n\r\n }\r\n if (f == 0) {}\r\n }",
"private Set<NodePair> nonadjacencies(Graph graph) {\n Set<NodePair> nonadjacencies = new HashSet<>();\n for (Graph inputPag : input) {\n for (NodePair pair : allNodePairs(inputPag.getNodes())) {\n if (!inputPag.isAdjacentTo(pair.getFirst(), pair.getSecond())) {\n nonadjacencies.add(new NodePair(graph.getNode(pair.getFirst().getName()), graph.getNode(pair.getSecond().getName())));\n }\n }\n }\n return nonadjacencies;\n }",
"public static HashMap<Integer,Nodo> Dijkstra(Grafo g,int origen){\n\t\t// Inicialmente S contendrá el vértice origen\n\t\tArrayList<Integer> s = new ArrayList<Integer>();\n \tHashMap<Integer,Integer> costo = new HashMap<Integer,Integer>();\n \tHashMap<Integer,Nodo> padre = new HashMap<Integer,Nodo>();\n\t\ts.add(origen);\n\t\tcosto.put(origen,-100000000);\t\n\t\t// Para cada v en el grafo: \n\t\tfor( Map.Entry<Integer, Nodo> v : g.nodos.entrySet() ){\n\t\t\t// si v no es el origen:\n\t\t\tif( v.getKey() != origen ){\n\t\t\t\tcosto.put(v.getKey(),g.valorArista(v.getKey(),origen));\n\t\t\t\t// Inicialmente, el predecesor de v en el camino mínimo construido hasta el momento es origen\n\t\t\t\tpadre.put(v.getKey(),g.nodos.get(origen));\n\t\t\t} // fin if\n\t\t} // fin for\n\n\t\t// Mientras existan vértices para los cuales no se ha determinado el camino mínimo\n\t\twhile( g.nodos.size() - s.size() > 0 ){\n\t\t\t//\tElegir un vértice w en (V-S) tal que su costo sea el mayor.\n\t\t\tfor(Map.Entry<Integer, Nodo> w : g.nodos.entrySet()){\n\t\t\t\tint mayor = -10000000;\n\t\t\t\tif(!s.contains(w.getKey())){\n\t\t\t\t\tif( mayor < costo.get(w.getKey()) ){\n\t\t\t\t\t\t// Se agrega w al conjunto S\n\t\t\t\t\t\ts.add(w.getKey());\n\t\t\t\t\t\tmayor = costo.get(w.getKey());\n\t\t\t\t\t} // fin if mayor\n\t\t\t\t} // fin if contains\n\t\t\t\t\t\n\t\t\t\t\t//\tPara cada v en (V-S):\n\t\t\t\t\tfor(Map.Entry<Integer, Nodo> v : g.nodos.entrySet()){\n\t\t\t\t\t\tif(!s.contains(v.getKey())){\n\t\t\t\t\t\t\t// Se escoge, entre \n\t\t\t\t\t\t\t// el camino mayor hacia v que se tiene hasta el momento, \n\t\t\t\t\t\t\tint dv = costo.get(v.getKey());\n\t\t\t\t\t\t\tint dw = costo.get(w.getKey());\n\t\t\t\t\t\t\t//y el camino hacia v pasando por w mediante su camino mayor, \n\t\t\t\t\t\t\tint cwv = g.valorArista(w.getKey(),v.getKey());\n\t\t\t\t\t\t\t//el de mayor costo.\n\t\t\t\t\t\t\tint max = Math.max( dv , dw + cwv );\n\t\t\t\t\t\t\tcosto.put(v.getKey(),max);\t\n\n\t\t\t\t\t\t\t// Si max(D[v],D[w]+C[w,v]) = D[w]+C[w,v] entonces P[v] ← w \n\t\t\t\t\t\t\tif( max == dw + cwv ){\n\t\t\t\t\t\t\t\tpadre.put(v.getKey(),w.getValue());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // fin if contains\n\t\t\t\t\t} // fin for map\n\t\t\t} //fin for map\n\t\t} // fin while\n\t\treturn padre;\n\t}",
"@Override\n\tpublic Graph<String> emptyInstance() {\n\t\treturn new ConcreteEdgesGraph();\n\t}",
"private void Clean(){\n \t NodeIterable nodeit = graphModel.getGraph().getNodes();\n \t\n \t for (Node node : nodeit) {\n\t\t\t\n \t\t \n \t\t \n\t\t}\n \t\n }",
"private void stadtteileNeuZuordnen() {\n Bahnhof[] b = getBahnhofListe();\n for (int i = 0; i < bhfs; i++) {\n if (b[i] != null) {\n int minX = b[i].getX() - 4;\n int minY = b[i].getY() - 4;\n int maxX = b[i].getX() + 3;\n int maxY = b[i].getY() + 3;\n for (int h_y = minY; h_y <= maxY; h_y++) {\n for (int h_x = minX; h_x <= maxX; h_x++) {\n if (!(h_y < 0) && !(h_x < 0) && !(h_y > teile.length - 1) && !(h_x > teile[h_y].length - 1)) {\n if (!(h_x == minX && h_y == minY) && !(h_x == maxX && h_y == minY) && !(h_x == minX && h_y == maxY) && !(h_x == maxX && h_y == maxY)) {\n if (!hatBahnhof[h_y][h_x] && teile[h_y][h_x] != null) {\n hatBahnhof[h_y][h_x] = true;\n b[i].stadtteilHinzufuegen(teile[h_y][h_x]);\n }\n }\n }\n }\n }\n }\n }\n }",
"private List<PlainEdge> getNotEdge(PlainGraph graph, PlainEdge edge) {\n return graph.edgeSet().stream().filter(e ->\n e.source().equals(edge.source())\n && e.target().equals(edge.target())\n && e.label().text().equals(String.format(\"%s:\", NOT)))\n .collect(Collectors.toList());\n }",
"private void goKnight(Board B, Graph G) {\n\n int start = B.knight;\n int end = B.gold;\n\n Queue<Integer> q = new Queue<Integer>();\n for (int v = 0; v < G.V(); v++)\n distTo[v] = INFINITY;\n\n int v = -1;\n distTo[start] = 0;\n marked[start] = true;\n q.enqueue(start);\n\n while (!q.isEmpty() && end != v) {\n v = q.dequeue();\n\n\n int tl_dest_R = (v / B.width);\n int tl_dest_C = (v % B.width);\n\n ArrayList<Integer> destinations = new ArrayList<Integer>();\n\n for (Move M : G.moves) {\n\n\n if (validateMove(M, v, G, B)) {\n\n if (true) {\n\n //System.out.println(thereispath(M, B.a.get(tl_dest_R).get(tl_dest_C), newDestination(M, v, G, B), G, B));\n\n if (!marked[newDestination(M, v, G, B)]) {\n\n\n q.enqueue(newDestination(M, v, G, B));\n marked[newDestination(M, v, G, B)] = true;\n edgeTo[newDestination(M, v, G, B)] = v;\n distTo[newDestination(M, v, G, B)] = distTo[v] + 1;\n\n // System.out.println(newDestination(M, v, G, B) + \" \" + edgeTo[newDestination(M, v, G, B)]);\n\n }\n\n\n }\n\n // System.out.println();\n\n }\n\n }\n\n\n //break;\n }\n\n System.out.println();\n\n Stack<Integer> reverse = new Stack<Integer>();\n\n\n int temp = end;\n reverse.push(temp);\n\n while (true) {\n\n\n temp = edgeTo[temp];\n reverse.push(temp);\n\n if (temp == start)\n break;\n }\n\n int last = 0;\n\n int temp_row = 0, temp_column = 0;\n\n String te = \"\";\n\n while (!reverse.isEmpty()) {\n\n if (last != 0) {\n te += \" -> \";\n }\n\n\n last = reverse.pop();\n\n\n temp_row = last / B.width;\n temp_column = last % B.width;\n\n\n te += B.a.get(temp_row).get(temp_column).toT();\n\n\n }\n\n if (distTo[last] == INFINITY) {\n System.out.println(\"No path to the target.\");\n } else {\n\n int a = 0, b = 0;\n\n a = B.gold / B.width;\n b = B.gold % B.width;\n int c = 0, d = 0;\n\n c = B.knight / B.width;\n d = B.knight % B.width;\n\n System.out.println(distTo[last] + \" steps\");\n System.out.println(B.a.get(c).get(d).toT() + \" to \" + B.a.get(a).get(b).toT() + \": \" + te);\n\n }\n\n\n }",
"@DisplayName(\"Has neighbours?\")\n @Test\n public void testGetNeighbours() {\n Assertions.assertTrue(graph.getNeighbours(0).size() > 1);\n }",
"private void transPose(graph g) {\n\t\tIterator it = g.getV().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tnode_data temp = (node_data) it.next();\n\t\t\tif(g.getE(temp.getKey())!=null) {\n\t\t\t\tIterator it1 = g.getE(temp.getKey()).iterator();\n\t\t\t\twhile (it1.hasNext()) {\n\t\t\t\t\tedge_data temp1 = (edge_data) it1.next();\n\t\t\t\t\tif (temp1 != null && temp1.getTag() == 0) {\n\t\t\t\t\t\tif (g.getEdge(temp1.getDest(), temp1.getSrc()) != null) {\n\t\t\t\t\t\t\tEdge temps = new Edge((Edge)g.getEdge(temp1.getSrc(),temp1.getDest()));\n\t\t\t\t\t\t\tdouble weight1 = g.getEdge(temp1.getSrc(),temp1.getDest()).getWeight();\n\t\t\t\t\t\t\tdouble weight2 = g.getEdge(temp1.getDest(),temp1.getSrc()).getWeight();\n\t\t\t\t\t\t\tg.connect(temp1.getSrc(),temp1.getDest(),weight2);\n\t\t\t\t\t\t\tg.connect(temps.getDest(),temps.getSrc(),weight1);\n\t\t\t\t\t\t\tg.getEdge(temps.getDest(), temps.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.getEdge(temps.getSrc(),temps.getDest()).setTag(1);\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tg.connect(temp1.getDest(), temp1.getSrc(), temp1.getWeight());\n\t\t\t\t\t\t\tg.getEdge(temp1.getDest(), temp1.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.removeEdge(temp1.getSrc(), temp1.getDest());\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override protected void onPreExecute() { g = new UndirectedGraph(10); }",
"@Override\n\tpublic int graphOrder() {\n\t\treturn vertices.size();\n\t}",
"Graph getRecentGraph();",
"@Test\r\n void add_20_remove_20_add_20() {\r\n //Add 20\r\n for(int i = 0; i < 20; i++) {\r\n graph.addVertex(\"\" +i);\r\n }\r\n vertices = graph.getAllVertices();\r\n //Check all 20 are in graph\r\n for(int i = 0; i < 20; i++) {\r\n if(!vertices.contains(\"\" + i)) {\r\n fail();\r\n }\r\n }\r\n //Remove 20 \r\n for(int i = 0; i < 20; i++) {\r\n graph.removeVertex(\"\" +i);\r\n }\r\n //Check all 20 are not in graph anymore \r\n \r\n for(int i = 0; i < 20; i++) {\r\n if(vertices.contains(\"\" + i)) {\r\n fail();\r\n }\r\n }\r\n //Add 20 again\r\n for(int i = 0; i < 20; i++) {\r\n graph.addVertex(\"\" +i);\r\n }\r\n //Check all 20 are in graph\r\n for(int i = 0; i < 20; i++) {\r\n if(!vertices.contains(\"\" + i)) {\r\n fail();\r\n }\r\n }\r\n }",
"public static void runTest() {\n Graph mnfld = new Graph();\n float destTank = 7f;\n\n // Adding Tanks\n mnfld.addPipe( new Node( 0f, 5.0f ) );\n mnfld.addPipe( new Node( 1f, 5.0f ) );\n mnfld.addPipe( new Node( 7f, 5.0f ) );\n\n // Adding Pipes\n mnfld.addPipe( new Node( 2f, 22f, 100f ) );\n mnfld.addPipe( new Node( 3f, 33f, 150f ) );\n mnfld.addPipe( new Node( 4f, 44f, 200f ) );\n mnfld.addPipe( new Node( 5f, 55f, 250f ) );\n mnfld.addPipe( new Node( 6f, 66f, 300f ) );\n mnfld.addPipe( new Node( 8f, 88f, 200f ) );\n mnfld.addPipe( new Node( 9f, 99f, 150f ) );\n mnfld.addPipe( new Node( 10f, 1010f, 150f ) );\n mnfld.addPipe( new Node( 20f, 2020f, 150f ) );\n\n // Inserting Edges to the graph\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 3f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 22f ), mnfld.getPipe( 4f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 7f ), 500f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 55f ), mnfld.getPipe( 6f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 7f ), 100f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 8f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 88f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 9f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 99f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 1010f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1010f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 20f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 2020f ), mnfld.getPipe( 3f ), 1f ) );\n\n // -- Running Dijkstra & Finding shortest Paths -- //\n// Dijkstra.findPaths( mnfld, 10, \"0.0\", destTank );\n//\n// mnfld.restoreDroppedConnections();\n//\n// System.out.println( \"\\n\\n\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( 0f ) );\n Dijkstra.mergePaths( mnfld, 1f, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n\n }",
"protected static void checkForDisconnectedDataNodes(final EnactmentGraph graph) {\n for (final Task task : graph) {\n if (TaskPropertyService.isCommunication(task) && graph.getIncidentEdges(task).isEmpty()) {\n throw new IllegalStateException(\n \"The generated graph contains a disconnected data node: \" + task.getId());\n }\n }\n }",
"@Test\r\n void remove_nonexistent_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(\"D\");\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }",
"protected void resetGraph() {\n for (List<Edge> path : graph) {\r\n for (Edge e : path) {\r\n e.flow = 0;\r\n }\r\n }\r\n }",
"public void testRemoveVertex() {\n System.out.println(\"removeVertex\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n for (int i = 24; i >= 0; i--) {\n Assert.assertTrue(graph.removeVertex(new Integer(i)));\n Assert.assertFalse(graph.containsVertex(new Integer(i)));\n Assert.assertEquals(graph.verticesSet().size(), i);\n }\n }",
"private void paintPath(Graphics graphics) { \n graphics.setColor(Color.blue);\n //si no se encuentra un camino, mostrar error\n if(Path == null){\n JOptionPane.showMessageDialog(null, \"No se encontro camino.\");\n }\n else\n for (Node n : Path) {\n if (!this.Graph.getGoals().contains(n) && n != this.Graph.getInitial()) {\n int x = n.getX(); int y = n.getY();\n paintRectangle(graphics, x, y); \n }\n }\n }",
"public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}",
"public static <V> Graph<V> getMinimumSpanningTreeKruskal(Graph<V> graph) {\n class Arista {\n private V origen;\n private V destino;\n private double peso;\n\n private Arista(V pOrigen, double pPeso, V pDestino) {\n origen = pOrigen;\n peso = pPeso;\n destino = pDestino;\n }\n }\n\n V[] array = graph.getValuesAsArray();\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] matrizCopia = new double[array.length][array.length];\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n matrizCopia[x][y] = matrizPesos[x][y];\n }\n }\n\n List<Arista> aristas = new LinkedList<>();\n\n // Se buscan todas las aristas del grafo y se enlistan\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n if (matrizCopia[x][y] != -1) {\n if (!graph.isDirected()) {\n matrizCopia[y][x] = -1;\n }\n Arista ar = new Arista(array[x], matrizCopia[x][y], array[y]);\n aristas.add(ar);\n }\n }\n }\n\n //Se ordenan las listas de menor a mayor, aplicando el ordenamiento de burbuja.\n if (aristas.size() > 1) {\n int i = 0;\n for (int x = 2; x < aristas.size(); x++) {\n for (int y = 1; y < aristas.size() - i; y++) {\n Arista temp = aristas.get(y);\n Arista temp2 = aristas.get(y+1);\n if (temp.peso > temp2.peso) {\n aristas.set(y, temp2);\n aristas.set(y+1, temp);\n }\n }\n i++;\n }\n }\n\n List<Graph<V>> bosque = new LinkedList<>();\n for (int x = 0; x < array.length; x++) {\n Graph<V> temp = new AdjacencyMatrix<>();\n temp.addNode(array[x]);\n bosque.add(temp);\n }\n\n Iterator<Arista> it1 = aristas.iterator();\n while (it1.hasNext()) {\n Arista aux = it1.next();\n int arbolOrigen = buscarArbol(aux.origen, bosque);\n int arbolDestino = buscarArbol(aux.destino, bosque);\n if (arbolDestino < arbolOrigen) {\n int temp = arbolDestino;\n arbolDestino = arbolOrigen;\n arbolOrigen = temp;\n }\n\n if (arbolDestino != arbolOrigen) { // Significa que estan en diferentes arboles.\n Graph<V> grafoDestino = bosque.remove(arbolDestino);\n Graph<V> grafoTemp = unirGrafos(bosque.get(arbolOrigen), grafoDestino);\n grafoTemp.addEdge(aux.origen, aux.destino, aux.peso);\n bosque.set(arbolOrigen, grafoTemp);\n }\n }\n if (bosque.size() != 1) { // Significa que hay vertices aislados.\n for (int x = 2; x <= bosque.size(); x++) {\n Graph<V> grafoTemp = bosque.remove(x);\n Graph<V> grafosUnidos = unirGrafos(bosque.get(1), grafoTemp);\n bosque.set(1, grafosUnidos);\n }\n }\n\n return bosque.get(1);\n }",
"@Test public void testPublic5() {\n Graph<Character> graph= TestGraphs.testGraph1();\n\n assertEquals(\"\", TestGraphs.collToString(graph.getNeighbors('B')));\n }",
"public static Graph buildGraph1() {\n Graph g = new Graph(\"Undirected graph For Kruskal Algorithm\");\n g.addEdge(\"A\", \"E\", 5);\n g.addEdge(\"A\", \"D\", 3);\n g.addEdge(\"A\", \"H\", 7);\n g.addEdge(\"A\", \"B\", 6);\n g.addEdge(\"D\", \"E\", 9);\n g.addEdge(\"D\", \"C\", 12);\n g.addEdge(\"C\", \"B\", 20);\n g.addEdge(\"B\", \"F\", 15);\n g.addEdge(\"F\", \"G\", 17);\n g.addEdge(\"G\", \"H\", 1);\n\n g.sortEdgesByIncreasingWeights();\n\n System.out.println(g);\n\n return g;\n }",
"private void setAllUnvisited(){\n\t\tfor(int i = 0; i < this.getDimension(); i++)\n\t\t\tthis.getGraph().setUnvisited(i);\n\t\tthis.visited = 0;\n\t}",
"public void removeAllEdges() {\n }",
"public GraphImpl(int[][] g) {\n\t\tanzKnoten = g.length;\n\t\tgraph = g;\n\t}",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Graph() {\r\n\t\tvertices = new LinkedList<Vertex>();\r\n\t\tedges = 0;\r\n\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\t// ASCII value of 'A' is 65\r\n\t\t\tVertex vertex = new Vertex((char) (i + 65));\r\n\t\t\tvertices.add(vertex);\r\n\t\t}\r\n\t\tcurrentVertex = vertices.get(0);\r\n\t\tseen = new boolean[26];\r\n\t}",
"public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }",
"void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }",
"@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }",
"void novyVrchol(String klic){\n\t\tVrchol pom = new Vrchol(klic,'B');\n\t\t\n\t\tvrchP[pocet] = pom;\n\t\tpocet++;\n\t\n\t}",
"public boolean resetEdges();",
"public ReilGraph getGraph() {\n return m_graph;\n }",
"public Set<E> kruskalMST() throws NegativeWeightEdgeException, DisconnectedGraphException;",
"public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}",
"private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}",
"private void heilenTrankBenutzen() {\n LinkedList<Gegenstand> gegenstaende = spieler.getAlleGegenstaende();\n for (Gegenstand g : gegenstaende) {\n if (g.getName().equalsIgnoreCase(\"heiltrank\")) {\n spieler.heilen();\n gegenstaende.remove(g);\n System.out.print(\"Heiltrank wird benutzt\");\n makePause();\n System.out.println(\"Du hast noch \" + zaehltGegenstand(\"heiltrank\") + \" Heiltranke!\");\n return;\n }\n }\n System.out.println(\"Du hast gerade keinen Heiltrank\");\n }",
"@Override\n public boolean leggInn(T verdi) {\n Objects.requireNonNull(verdi,\" Null verdier er ikke tillat.\");\n // tilfelle 1- om listen var tom liste\n if (tom()) {\n // kan skrives også som if (hode==null && hale==null)\n hode = hale = new Node<T>(verdi, null, null);\n antall++;\n } else {\n hale.neste = new Node<T>(verdi, hale, null);\n hale = hale.neste;\n antall++;\n endringer++;\n }// end else\n return true;\n }",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"@Test\r\n void remove_null() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(null);\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }",
"public Enumeration undirectedEdges();",
"public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }",
"public void refreshGraph()\n {\n graph.getViewport().setMinX(0);\n graph.removeAllSeries();\n for(CustomPair<String, CustomPair<Integer, Integer>> can:cans)\n {\n series.get(can.getKey()).resetData(new DataPoint[]{});\n }\n initGraph(graph);\n graphViewEditText.setText(\"\");\n }",
"protected Graph<VLabel, ELabel> theGraph() {\n return _graph;\n }",
"public boolean isEmpty()\n {\n return graph.isEmpty();\n }",
"public Graph(Sentence s, boolean synterms) {\n\t\tthis.s = s;\n\t\tcreateNodes(s, synterms);\n\t\tV = nodes.size();\n\t\tcreateNeighboursAndEdges(s);\n\t\tE = edges.size();\n//\t\tInteger kaka = neighboCursOf.size();\n//\t\tSet<Entry<SyntacticRelationArgument, List<SyntacticRelationArgument>>> nana = neighboursOf.entrySet();\n//\t\tInteger koko = nana.size();\n//\t\tif (!kaka.equals(koko)) System.out.println(\"kaka!!!!!!!!!\");\n//\t\tSet<SyntacticRelationArgument> kiset = neighboursOf.keySet();\n//\t\tInteger keke = kiset.size();\n//\t\tSystem.out.println(keke);\n//\t\tSyntacticRelationArgument kotsos = null;\n//\t\tfor (SyntacticRelationArgument arg:kiset){\n//\t\t\tif(arg.argw.wid.id.equals(22)){\n//\t\t\t\tkotsos = arg;\n//\t\t\t}\n//\t\t}\n//System.out.println(\"done\");\n//List<SyntacticRelationArgument> neis = neighboursOf.get(kotsos);\n//System.out.println(\"neis\"+neis.size());\n\t}",
"private int nonDirectionalEdgesNumber() {\n return selectedNonDirectionalEdges.size();\n }",
"public void reinitialiserLeControleurGraphique()\n\t{\n\t\tthis.unControleur = new ControleurGraphique(this);\n\t}",
"public abstract List<AStarNode> getNeighbours();",
"private void createGraph() {\n \t\t\n \t\t// Check capacity\n \t\tCytoscape.ensureCapacity(nodes.size(), edges.size());\n \n \t\t// Extract nodes\n \t\tnodeIDMap = new OpenIntIntHashMap(nodes.size());\n \t\tginy_nodes = new IntArrayList(nodes.size());\n \t\t// OpenIntIntHashMap gml_id2order = new OpenIntIntHashMap(nodes.size());\n \n \t\tfinal HashMap gml_id2order = new HashMap(nodes.size());\n \n \t\tSet nodeNameSet = new HashSet(nodes.size());\n \n \t\tnodeMap = new HashMap(nodes.size());\n \n \t\t// Add All Nodes to Network\n \t\tfor (int idx = 0; idx < nodes.size(); idx++) {\n \t\t\t\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(1,\n \t\t\t\t\t\tidx, nodes.size()));\n \t\t\t}\n \n \t\t\t// Get a node object (NOT a giny node. XGMML node!)\n \t\t\tfinal cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) nodes\n \t\t\t\t\t.get(idx);\n \t\t\tfinal String nodeType = curNode.getName();\n \t\t\tfinal String label = (String) curNode.getLabel();\n \n \t\t\treadAttributes(label, curNode.getAtt(), NODE);\n \n \t\t\tnodeMap.put(curNode.getId(), label);\n \n \t\t\tif (nodeType != null) {\n \t\t\t\tif (nodeType.equals(\"metaNode\")) {\n \t\t\t\t\tfinal Iterator it = curNode.getAtt().iterator();\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tfinal Att curAttr = (Att) it.next();\n \t\t\t\t\t\tif (curAttr.getName().equals(\"metanodeChildren\")) {\n \t\t\t\t\t\t\tmetanodeMap.put(label, ((Graph) curAttr.getContent()\n \t\t\t\t\t\t\t\t\t.get(0)).getNodeOrEdge());\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (nodeNameSet.add(curNode.getId())) {\n \t\t\t\tfinal Node node = (Node) Cytoscape.getCyNode(label, true);\n \n \t\t\t\tginy_nodes.add(node.getRootGraphIndex());\n \t\t\t\tnodeIDMap.put(idx, node.getRootGraphIndex());\n \n \t\t\t\t// gml_id2order.put(Integer.parseInt(curNode.getId()), idx);\n \n \t\t\t\tgml_id2order.put(curNode.getId(), Integer.toString(idx));\n \n \t\t\t\t// ((KeyValue) node_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// node.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\"XGMML id \" + nodes.get(idx)\n \t\t\t\t\t\t+ \" has a duplicated label: \" + label);\n \t\t\t\t// ((KeyValue)node_root_index_pairs.get(idx)).value = null;\n \t\t\t}\n \t\t}\n \t\tnodeNameSet = null;\n \n \t\t// Extract edges\n \t\tginy_edges = new IntArrayList(edges.size());\n \t\tSet edgeNameSet = new HashSet(edges.size());\n \n \t\tfinal CyAttributes edgeAttributes = Cytoscape.getEdgeAttributes();\n \n \t\t// Add All Edges to Network\n \t\tfor (int idx = 0; idx < edges.size(); idx++) {\n \n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(2,\n \t\t\t\t\t\tidx, edges.size()));\n \t\t\t}\n \t\t\tfinal cytoscape.generated2.Edge curEdge = (cytoscape.generated2.Edge) edges\n \t\t\t\t\t.get(idx);\n \n \t\t\tif (gml_id2order.containsKey(curEdge.getSource())\n \t\t\t\t\t&& gml_id2order.containsKey(curEdge.getTarget())) {\n \n \t\t\t\tString edgeName = curEdge.getLabel();\n \n \t\t\t\tif (edgeName == null) {\n \t\t\t\t\tedgeName = \"N/A\";\n \t\t\t\t}\n \n \t\t\t\tint duplicate_count = 1;\n \t\t\t\twhile (!edgeNameSet.add(edgeName)) {\n \t\t\t\t\tedgeName = edgeName + \"_\" + duplicate_count;\n \t\t\t\t\tduplicate_count += 1;\n \t\t\t\t}\n \n \t\t\t\tEdge edge = Cytoscape.getRootGraph().getEdge(edgeName);\n \n \t\t\t\tif (edge == null) {\n \n \t\t\t\t\tfinal String sourceName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getSource());\n \t\t\t\t\tfinal String targetName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getTarget());\n \n \t\t\t\t\tfinal Node node_1 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\tsourceName);\n \t\t\t\t\tfinal Node node_2 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\ttargetName);\n \n \t\t\t\t\tfinal Iterator it = curEdge.getAtt().iterator();\n \t\t\t\t\tAtt interaction = null;\n \t\t\t\t\tString itrValue = \"unknown\";\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tinteraction = (Att) it.next();\n \t\t\t\t\t\tif (interaction.getName().equals(\"interaction\")) {\n \t\t\t\t\t\t\titrValue = interaction.getValue();\n \t\t\t\t\t\t\tif (itrValue == null) {\n \t\t\t\t\t\t\t\titrValue = \"unknown\";\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tedge = Cytoscape.getCyEdge(node_1, node_2,\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue, true);\n \n \t\t\t\t\t// Add interaction to CyAttributes\n \t\t\t\t\tedgeAttributes.setAttribute(edge.getIdentifier(),\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue);\n \t\t\t\t}\n \n \t\t\t\t// Set correct ID, canonical name and interaction name\n \t\t\t\tedge.setIdentifier(edgeName);\n \n \t\t\t\treadAttributes(edgeName, curEdge.getAtt(), EDGE);\n \n \t\t\t\tginy_edges.add(edge.getRootGraphIndex());\n \t\t\t\t// ((KeyValue) edge_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// edge.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\n \t\t\t\t\t\t\"Non-existant source/target node for edge with gml (source,target): \"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getSource()) + \",\"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getTarget()));\n \t\t\t}\n \t\t}\n \t\tedgeNameSet = null;\n \n \t\tif (metanodeMap.size() != 0) {\n \t\t\tfinal Iterator it = metanodeMap.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal String key = (String) it.next();\n \t\t\t\tcreateMetaNode(key, (List) metanodeMap.get(key));\n \t\t\t}\n \t\t}\n \t}",
"public String script(GraphContainer gc, String writeto){\n \n \tTempEdges = new ArrayList<Edge>();\n \n //Ablauf\n \n //Essentials\n ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n pc.newProject();\n \n workspace = pc.getCurrentWorkspace();\n graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \n attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n\n ///Load DATA\n\n GraphContainerToGephi.GraphtoGephi(gc, graphModel);\n GraphView mainView = graphModel.getVisibleView();\n\n EdgeIterator edgeIt = graphModel.getGraphVisible().getEdges().iterator();\n boolean hasct0 = false;\n boolean hasct1 = false;\n boolean hasct2 = false;\n \n for (;edgeIt.hasNext();) {\n \tif(hasct0 && hasct1&&hasct2)\n \t\tbreak;\n\t\t\tEdge e = edgeIt.next();\n\t\t\tInteger ct =(Integer) e.getAttributes().getValue(\"ConnectionType\");\n\t\t\tif(ct == 0){\n\t\t\t\thasct0=true;\n\t\t\t}\n\t\t\telse if(ct == 1){\n\t\t\t\thasct1=true;\n\t\t\t}else if(ct == 2){\n\t\t\t\thasct1=true;\n\t\t\t}\n\t\t\t\n\t\t}\n if(!hasct1)\n \treturn \"\";\n \n ///////////////////Detect Unconnected\n \n NodeIterator nodeIt = graphModel.getGraphVisible().getNodes().iterator();\n List<Node> toremove= new ArrayList<Node>(3);\n for (;nodeIt.hasNext();) {\n \t\n \tNode temp = nodeIt.next();\n \t\n \tif(0==graphModel.getGraphVisible().getDegree(temp)){\n \t\t\n \t\ttoremove.add(temp);\n \t}\n \t\n }\n \n for (Node node : toremove) {\n \t\tFilterReportWriter.getInstance().appendActiveEvent(\"Removed unconnected: \"+node.getNodeData().getLabel() );\n\n \tgraphModel.getGraph().removeNode(node);\n \t\n\t\t}\n writeToSystemout(\"Ursprung\");\n writeToSystemout(\"EdgeCount :\"+graphModel.getGraphVisible().getEdgeCount());\n writeToSystemout(\"NodeCount :\"+graphModel.getGraphVisible().getNodeCount());\n //Filter\n \n FilterController filterController = Lookup.getDefault().lookup(FilterController.class);\n \n \n EqualNumberFilter contextFilter = new EqualNumberFilter(this.getAttColumbyString(\"IsContext\"));\n contextFilter.init(graphModel.getGraph());\n \n AttributeColumn coltemp = attributeModel.getEdgeTable().getColumn(\"ConnectionType\");\n \n EqualNumberFilter edgeTypeFilter = new EqualNumberFilter(coltemp);\n edgeTypeFilter.init(graphModel.getGraph());\n \n Query query= null;\n GraphView view = null;\n \n //\n //********************************Reweight All\n //\n \n\t\t//writeToSystemout(\"Reweight \");\n \n \n //\n //*********************************** Node size\n //\n //checkNANPos();\n \n\n \n \n writeToSystemout(\"Knoten Größe \");\n // Knoten Größe Kontext knoten\n RankingController rankingController = layoutSizeContextNodes(\n\t\t\t\tfilterController, contextFilter);\n \n \n \n \n //Knoten Größe Source Nodes\n AttributeColumn inDegreeInTotalGraphColumn = layoutSizeSourceNodes(\n\t\t\t\tfilterController, contextFilter, rankingController);\n \n \n //checkNANPos();\n //\n //*************************************** Node color\n //\n writeToSystemout(\"Knoten Farbe \");\n layoutNodeColor(filterController, contextFilter, rankingController,\n\t\t\t\tinDegreeInTotalGraphColumn);\n \n //INIT POSITIONING\n graphModel.setVisibleView(mainView);\n \n //\n //*************************************** Kanten Farbe \n //\n \n //TODO Idea Make Edge Color!\n writeToSystemout(\"Kanten Farbe \");\n layoutEdgeColor(filterController, rankingController,mainView);\n \n //setSomePos();\n //\n //***************************************Positionierung der Ausgangsknoten\n //\n writeToSystemout(\"Positionierung der Ausgangsknoten \");\n\n\t\tlayoutPositionStartNodes(mainView, hasct0,\n\t\t\t\tfilterController, contextFilter);\n \n \n //\n //********************************Positionierung Kontext\n //\n\t\t\n\t\t//Kopiert die richtigen kanten gewichte Rein\n\t\tthis.copytoEdgeWeight(\"RankContextLowSourcesHigh\");\n\t\t\n\t\tReweightandPostprocessing(mainView,filterController); \n\t\t\n\t\twriteToSystemout(\"Positionierung Kontext \");\n layoutPositionContext(mainView); \n \n \n //\n //********************************Export\n //\n graphModel.setVisibleView(mainView);\n \n AttributeColumn[] NodeAttColums = attributeModel.getNodeTable().getColumns();\n \n Set<String> nodeArrtNoDeleteFilter = new HashSet<String>();\n \n nodeArrtNoDeleteFilter.add(\"IsContext\");\n nodeArrtNoDeleteFilter.add(\"Classes\");\n nodeArrtNoDeleteFilter.add(\"Id\");\n nodeArrtNoDeleteFilter.add(\"Weight\");\n nodeArrtNoDeleteFilter.add(\"Label\");\n nodeArrtNoDeleteFilter.add(\"HiddenContext\");\n \n for (int i = 0; i < NodeAttColums.length; i++) {\n\n \t//System.out.println(NodeAttColums[i].getTitle());\n \tif(nodeArrtNoDeleteFilter.contains( NodeAttColums[i].getTitle()) )\n \t\tcontinue;\n \tattributeModel.getNodeTable().removeColumn(NodeAttColums[i]); \n\t\t}\n \n AttributeColumn[] EdgeAttColums = attributeModel.getEdgeTable().getColumns();\n \n Set<String> edgeArrtNoDeleteFilter = new HashSet<String>();\n \n edgeArrtNoDeleteFilter.add(\"Id\");\n edgeArrtNoDeleteFilter.add(\"Weight\");\n edgeArrtNoDeleteFilter.add(\"Label\");\n edgeArrtNoDeleteFilter.add(\"ConnectionType\");\n\n for (int i = 0; i < EdgeAttColums.length; i++) {\n \t\n \tif(edgeArrtNoDeleteFilter.contains( EdgeAttColums[i].getTitle()) )\n \t\tcontinue;\n \tattributeModel.getEdgeTable().removeColumn(EdgeAttColums[i]); \n\t\t}\n \n writeToSystemout(\"Export Start\");\n \n //Export\n ExportController ec = Lookup.getDefault().lookup(ExportController.class);\n ExporterGEXF fe = new ExporterGEXF();\n //Attribute Rausnehmen (weniger übertragung)\n //fe.setExportAttributes(false);\n \n CharacterExporter characterExporter = (CharacterExporter)fe;\n StringWriter stringWriter = new StringWriter();\n ec.exportWriter(stringWriter, characterExporter);\n String result = stringWriter.toString();\n \n\n writeToSystemout(\"Export End\");\n graphModel.clear();\n \n pc.closeCurrentProject();\n return result;\n\n \n \n }",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"public void noMoreEdges(String id)\n\t{\n\t\tgetNode(id).unknownEdges = false;\n\t}",
"@Test\n void testIsConnected(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,50);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(ga.isConnected());\n g.removeEdge(7,4);\n g.removeEdge(6,4);\n g.removeEdge(3,4);\n assertFalse(ga.isConnected());\n }",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public boolean tieneRepresentacionGrafica();",
"public GraphDeprecated() {\n mAdjList = new HashMap<Vertex, TreeSet<Vertex>>();\n mVertices = new HashMap<String, Vertex>();\n mNumVertices = mNumEdges = 0;\n }",
"private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }",
"@Test\n public void getGraph1() throws Exception {\n try (final Graph g1 = dataset.getGraph(graph1).get()) {\n assertEquals(4, g1.size());\n\n assertTrue(g1.contains(alice, name, aliceName));\n assertTrue(g1.contains(alice, knows, bob));\n assertTrue(g1.contains(alice, member, null));\n assertTrue(g1.contains(null, name, secretClubName));\n }\n }",
"@Test\n public void connectionNotFound() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 0);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 0);\n\n Path path = calcPath(0, 3, 0, 1);\n assertNotFound(path);\n }",
"public interface Graph extends Container {\n\n /**\n * returns how many elements are in the container.\n *\n * @return int = number of elements in the container.\n */\n public int size();\n\n /**\n * returns true if the container is empty, false otherwise.\n *\n * @return boolean true if container is empty\n */\n public boolean isEmpty();\n\n /**\n * return the number of vertices in the graph\n * \n * @return number of vertices in the graph\n */\n public int numVertices();\n\n /**\n * returns the number for edges in the graph\n * \n * @return number of edges in the graph\n */\n public int numEdges();\n\n /**\n * returns an Enumeration of the vertices in the graph\n * \n * @return vertices in the graph\n */\n public Enumeration vertices();\n\n \n /**\n * returns an Enumeration of the edges in the graph\n * \n * @return edges in the graph\n */\n public Enumeration edges();\n\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration directedEdges();\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration undirectedEdges();\n\n /**\n * returns the degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the degree of\n * @return degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int degree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the in degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the in degree of\n * @return in degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int inDegree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the out degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the out degree of\n * @return out degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int outDegree(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the adjacent vertices of\n * @return enumeration of vertices adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices in adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the in adjacent vertices of\n * @return enumeration of vertices in adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices out adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the out adjacent vertices of\n * @return enumeration of vertices out adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration incidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges in incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges in incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration inIncidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges out incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges out incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;\n\n public Position[] endVertices(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the Vertex on Edge ep opposite from Vertex vp\n * \n * @param vp Vertex to find opposite of\n * @param ep Edge containing the vertices\n * @return \n * @exception InvalidPositionException\n */\n public Position opposite(Position vp, Position ep) throws InvalidPositionException;\n\n /**\n * Determine whether or not two vertices are adjacent\n * \n * @param vp Position of one Vertex to check\n * @param wp Position of other Vertex to check\n * @return true if they are adjacent, false otherwise\n * @exception InvalidPositionException\n * thrown if either Position is invalid for this container\n */\n public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;\n\n /**\n * Returns the destination Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the destination Vertex of\n * @return the destination Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position destination(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the origin Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the origin Vertex of\n * @return the origin Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position origin(Position ep) throws InvalidPositionException;\n\n /**\n * Returns true if the given Edge Position is directed,\n * otherwise false\n * \n * @param ep Edge Position to check directed on\n * @return true if directed, otherwise false\n * @exception InvalidPositionException\n */\n public boolean isDirected(Position ep) throws InvalidPositionException;\n\n /**\n * Inserts a new undirected Edge into the graph with end\n * Vertices given by Positions vp and wp storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding one Vertex endpoint\n * @param wp Position holding the other Vertex endpoint\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new directed Edge into the graph with end\n * Vertices given by Positions vp, the origin, and wp,\n * the destination, storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding the origin Vertex\n * @param wp Position holding the destination Vertex\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new Vertex into the graph holding Object o\n * and returns a Position holding the new Vertex\n * \n * @param o the Object to hold in this Vertex\n * @return the Position holding the Vertex\n */\n public Position insertVertex(Object o);\n\n /**\n * This method removes the Vertex held in the passed in\n * Position from the Graph\n * \n * @param vp the Position holding the Vertex to remove\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void removeVertex(Position vp) throws InvalidPositionException;\n\n /**\n * Used to remove the Edge held in Position ep from the Graph\n * \n * @param ep the Position holding the Edge to remove\n * @exception InvalidPositionException\n * thrown if Position ep is invalid for this container\n */\n public void removeEdge(Position ep) throws InvalidPositionException;\n\n /**\n * This routine is used to change a directed Edge into an\n * undirected Edge\n * \n * @param ep a Position holding the Edge to change from directed to\n * undirected\n * @exception InvalidPositionException\n */\n public void makeUndirected(Position ep) throws InvalidPositionException;\n\n /**\n * This routine can be used to reverse the diretion of a \n * directed Edge\n * \n * @param ep a Position holding the Edge to reverse\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void reverseDirection(Position ep) throws InvalidPositionException;\n\n /**\n * Changes the direction of the given Edge to be out incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be out incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionFrom(Position ep, Position vp) throws InvalidPositionException;\n\n\n /**\n * Changes the direction of the given Edge to be in incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be in incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionTo(Position ep, Position vp) throws InvalidPositionException;\n\n}"
] | [
"0.6351976",
"0.63431424",
"0.6166912",
"0.61208487",
"0.61198467",
"0.6048459",
"0.5999488",
"0.59963614",
"0.5951917",
"0.5929681",
"0.59163594",
"0.5889211",
"0.5873726",
"0.5845196",
"0.5828854",
"0.5806554",
"0.5800613",
"0.57936096",
"0.57932454",
"0.57779825",
"0.5769152",
"0.5765917",
"0.5762517",
"0.57455546",
"0.5732991",
"0.57307154",
"0.57301825",
"0.5724485",
"0.57178307",
"0.5717617",
"0.57106006",
"0.57081103",
"0.5696468",
"0.5694997",
"0.5692289",
"0.5674126",
"0.56616837",
"0.5644844",
"0.56406355",
"0.563465",
"0.5634639",
"0.5634509",
"0.56298363",
"0.5594145",
"0.55926",
"0.5587949",
"0.558752",
"0.55779356",
"0.557257",
"0.5558041",
"0.55572236",
"0.55525553",
"0.55513364",
"0.55479896",
"0.5541482",
"0.5539954",
"0.5534466",
"0.5533322",
"0.5525613",
"0.55234826",
"0.5518595",
"0.5517054",
"0.5516083",
"0.5513064",
"0.55056703",
"0.55044514",
"0.5502332",
"0.55014986",
"0.54947907",
"0.5493011",
"0.54904926",
"0.5488524",
"0.54812837",
"0.54759216",
"0.5468123",
"0.5464643",
"0.5457641",
"0.5455162",
"0.54490143",
"0.54455584",
"0.5444847",
"0.5430533",
"0.5429854",
"0.54297614",
"0.54284",
"0.54240423",
"0.54220146",
"0.5418666",
"0.5418627",
"0.54180264",
"0.54128146",
"0.5412468",
"0.54101413",
"0.54073876",
"0.5400905",
"0.53955084",
"0.5389773",
"0.5387126",
"0.53864956",
"0.53853923",
"0.5384963"
] | 0.0 | -1 |
F??gt neue Kante (mit Gewicht 1) zum Graph dazu. | boolean addEdge(V v, V w); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"public void testaGraph() {\n\t\tEstacaoDAO a = new EstacaoDAO();\n\t\ta.carregarEstacoes();\n\t\tLinha b = new Linha(\"a\");\n\t\tb.loadAllStations(a);\n\t\tb.shortestPath(a,\"Curado\",\"Recife\");\n\t}",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}",
"public Graph getGraph();",
"public void KareEkle() {\n\t\t\n\t\tint x = root.x;\n\t\tint y = root.y;\n\t\t\n\t\tNodeYilan eklenecekKare = new NodeYilan(root.x,root.y);\n\t\t\n\t\troot.x = x;\n\t\troot.y = y;\n\t\teklenecekKare.next = root;\n\t\troot = eklenecekKare;\n\t\t\n\t}",
"public static <V> Graph<V> getMinimumSpanningTreeKruskal(Graph<V> graph) {\n class Arista {\n private V origen;\n private V destino;\n private double peso;\n\n private Arista(V pOrigen, double pPeso, V pDestino) {\n origen = pOrigen;\n peso = pPeso;\n destino = pDestino;\n }\n }\n\n V[] array = graph.getValuesAsArray();\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] matrizCopia = new double[array.length][array.length];\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n matrizCopia[x][y] = matrizPesos[x][y];\n }\n }\n\n List<Arista> aristas = new LinkedList<>();\n\n // Se buscan todas las aristas del grafo y se enlistan\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n if (matrizCopia[x][y] != -1) {\n if (!graph.isDirected()) {\n matrizCopia[y][x] = -1;\n }\n Arista ar = new Arista(array[x], matrizCopia[x][y], array[y]);\n aristas.add(ar);\n }\n }\n }\n\n //Se ordenan las listas de menor a mayor, aplicando el ordenamiento de burbuja.\n if (aristas.size() > 1) {\n int i = 0;\n for (int x = 2; x < aristas.size(); x++) {\n for (int y = 1; y < aristas.size() - i; y++) {\n Arista temp = aristas.get(y);\n Arista temp2 = aristas.get(y+1);\n if (temp.peso > temp2.peso) {\n aristas.set(y, temp2);\n aristas.set(y+1, temp);\n }\n }\n i++;\n }\n }\n\n List<Graph<V>> bosque = new LinkedList<>();\n for (int x = 0; x < array.length; x++) {\n Graph<V> temp = new AdjacencyMatrix<>();\n temp.addNode(array[x]);\n bosque.add(temp);\n }\n\n Iterator<Arista> it1 = aristas.iterator();\n while (it1.hasNext()) {\n Arista aux = it1.next();\n int arbolOrigen = buscarArbol(aux.origen, bosque);\n int arbolDestino = buscarArbol(aux.destino, bosque);\n if (arbolDestino < arbolOrigen) {\n int temp = arbolDestino;\n arbolDestino = arbolOrigen;\n arbolOrigen = temp;\n }\n\n if (arbolDestino != arbolOrigen) { // Significa que estan en diferentes arboles.\n Graph<V> grafoDestino = bosque.remove(arbolDestino);\n Graph<V> grafoTemp = unirGrafos(bosque.get(arbolOrigen), grafoDestino);\n grafoTemp.addEdge(aux.origen, aux.destino, aux.peso);\n bosque.set(arbolOrigen, grafoTemp);\n }\n }\n if (bosque.size() != 1) { // Significa que hay vertices aislados.\n for (int x = 2; x <= bosque.size(); x++) {\n Graph<V> grafoTemp = bosque.remove(x);\n Graph<V> grafosUnidos = unirGrafos(bosque.get(1), grafoTemp);\n bosque.set(1, grafosUnidos);\n }\n }\n\n return bosque.get(1);\n }",
"public boolean tieneRepresentacionGrafica();",
"public static Graph buildGraph1() {\n Graph g = new Graph(\"Undirected graph For Kruskal Algorithm\");\n g.addEdge(\"A\", \"E\", 5);\n g.addEdge(\"A\", \"D\", 3);\n g.addEdge(\"A\", \"H\", 7);\n g.addEdge(\"A\", \"B\", 6);\n g.addEdge(\"D\", \"E\", 9);\n g.addEdge(\"D\", \"C\", 12);\n g.addEdge(\"C\", \"B\", 20);\n g.addEdge(\"B\", \"F\", 15);\n g.addEdge(\"F\", \"G\", 17);\n g.addEdge(\"G\", \"H\", 1);\n\n g.sortEdgesByIncreasingWeights();\n\n System.out.println(g);\n\n return g;\n }",
"public void getK_Gelisir(){\n K_Gelistir();\r\n }",
"private void transPose(graph g) {\n\t\tIterator it = g.getV().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tnode_data temp = (node_data) it.next();\n\t\t\tif(g.getE(temp.getKey())!=null) {\n\t\t\t\tIterator it1 = g.getE(temp.getKey()).iterator();\n\t\t\t\twhile (it1.hasNext()) {\n\t\t\t\t\tedge_data temp1 = (edge_data) it1.next();\n\t\t\t\t\tif (temp1 != null && temp1.getTag() == 0) {\n\t\t\t\t\t\tif (g.getEdge(temp1.getDest(), temp1.getSrc()) != null) {\n\t\t\t\t\t\t\tEdge temps = new Edge((Edge)g.getEdge(temp1.getSrc(),temp1.getDest()));\n\t\t\t\t\t\t\tdouble weight1 = g.getEdge(temp1.getSrc(),temp1.getDest()).getWeight();\n\t\t\t\t\t\t\tdouble weight2 = g.getEdge(temp1.getDest(),temp1.getSrc()).getWeight();\n\t\t\t\t\t\t\tg.connect(temp1.getSrc(),temp1.getDest(),weight2);\n\t\t\t\t\t\t\tg.connect(temps.getDest(),temps.getSrc(),weight1);\n\t\t\t\t\t\t\tg.getEdge(temps.getDest(), temps.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.getEdge(temps.getSrc(),temps.getDest()).setTag(1);\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tg.connect(temp1.getDest(), temp1.getSrc(), temp1.getWeight());\n\t\t\t\t\t\t\tg.getEdge(temp1.getDest(), temp1.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.removeEdge(temp1.getSrc(), temp1.getDest());\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void addedge(String fro, String to, int wt) {\r\n Edge e = new Edge(fro, to, wt);\r\n\r\n\r\n Set<String> keys = graph.keySet();\r\n// Object[] arr = keys.toArray();\r\n int f = 0;\r\n if(graph.containsKey(fro)&&graph.containsKey(to))\r\n {\r\n\r\n int[] bb2 = new int[2000];\r\n for(int zz=0;zz<5000;zz++){\r\n\r\n\r\n ArrayList<Integer> abcd = new ArrayList<>();\r\n abcd.add(zz);\r\n\r\n if(zz<2500)\r\n zz++;\r\n else\r\n zz++;\r\n\r\n bb2[zz%500]=zz;\r\n\r\n\r\n int qq= 5000;\r\n\r\n qq--;\r\n\r\n String nnn = \"aaa aa\";\r\n nnn+=\"df\";\r\n\r\n\r\n }\r\n\r\n }\r\n else\r\n {\r\n\r\n\r\n System.out.println(\"some vertices are not present\");\r\n return;\r\n }\r\n for ( String y : keys) {\r\n if (fro.compareTo(y) == 0) {\r\n f = 1;\r\n ArrayList<Edge> ee =graph.get(y);\r\n\r\n\r\n ee.add(e);\r\n }\r\n\r\n\r\n }\r\n if (f == 0) {}\r\n }",
"public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }",
"public String draaiGangkaart()\n {\n if (vrijeGangkaart.getOrientatie() == 4)\n {\n vrijeGangkaart.setOrientatie(1);\n } else\n {\n vrijeGangkaart.setOrientatie((vrijeGangkaart.getOrientatie() + 1));\n }\n\n return vrijeGangkaart.toString();\n }",
"@Override\n public Graph getGraph() {\n return graph;\n }",
"@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }",
"private static <V> Graph<V> unirGrafos(Graph<V> grafo1, Graph<V> grafo2) {\n V[] array = grafo2.getValuesAsArray();\n double[][] matriz = grafo2.getGraphStructureAsMatrix();\n for (int x = 0; x < array.length; x++) {\n grafo1.addNode(array[x]);\n for (int y = 0; y < array.length; y++) {\n if (matriz[x][y] != -1) {\n if (!grafo2.isDirected()) {\n matriz[y][x] = -1;\n }\n grafo1.addNode(array[y]);\n grafo1.addEdge(array[x], array[y], grafo2.getWeight(array[x], array[y]));\n }\n }\n }\n return grafo1;\n }",
"public static HashMap<Integer,Nodo> Dijkstra(Grafo g,int origen){\n\t\t// Inicialmente S contendrá el vértice origen\n\t\tArrayList<Integer> s = new ArrayList<Integer>();\n \tHashMap<Integer,Integer> costo = new HashMap<Integer,Integer>();\n \tHashMap<Integer,Nodo> padre = new HashMap<Integer,Nodo>();\n\t\ts.add(origen);\n\t\tcosto.put(origen,-100000000);\t\n\t\t// Para cada v en el grafo: \n\t\tfor( Map.Entry<Integer, Nodo> v : g.nodos.entrySet() ){\n\t\t\t// si v no es el origen:\n\t\t\tif( v.getKey() != origen ){\n\t\t\t\tcosto.put(v.getKey(),g.valorArista(v.getKey(),origen));\n\t\t\t\t// Inicialmente, el predecesor de v en el camino mínimo construido hasta el momento es origen\n\t\t\t\tpadre.put(v.getKey(),g.nodos.get(origen));\n\t\t\t} // fin if\n\t\t} // fin for\n\n\t\t// Mientras existan vértices para los cuales no se ha determinado el camino mínimo\n\t\twhile( g.nodos.size() - s.size() > 0 ){\n\t\t\t//\tElegir un vértice w en (V-S) tal que su costo sea el mayor.\n\t\t\tfor(Map.Entry<Integer, Nodo> w : g.nodos.entrySet()){\n\t\t\t\tint mayor = -10000000;\n\t\t\t\tif(!s.contains(w.getKey())){\n\t\t\t\t\tif( mayor < costo.get(w.getKey()) ){\n\t\t\t\t\t\t// Se agrega w al conjunto S\n\t\t\t\t\t\ts.add(w.getKey());\n\t\t\t\t\t\tmayor = costo.get(w.getKey());\n\t\t\t\t\t} // fin if mayor\n\t\t\t\t} // fin if contains\n\t\t\t\t\t\n\t\t\t\t\t//\tPara cada v en (V-S):\n\t\t\t\t\tfor(Map.Entry<Integer, Nodo> v : g.nodos.entrySet()){\n\t\t\t\t\t\tif(!s.contains(v.getKey())){\n\t\t\t\t\t\t\t// Se escoge, entre \n\t\t\t\t\t\t\t// el camino mayor hacia v que se tiene hasta el momento, \n\t\t\t\t\t\t\tint dv = costo.get(v.getKey());\n\t\t\t\t\t\t\tint dw = costo.get(w.getKey());\n\t\t\t\t\t\t\t//y el camino hacia v pasando por w mediante su camino mayor, \n\t\t\t\t\t\t\tint cwv = g.valorArista(w.getKey(),v.getKey());\n\t\t\t\t\t\t\t//el de mayor costo.\n\t\t\t\t\t\t\tint max = Math.max( dv , dw + cwv );\n\t\t\t\t\t\t\tcosto.put(v.getKey(),max);\t\n\n\t\t\t\t\t\t\t// Si max(D[v],D[w]+C[w,v]) = D[w]+C[w,v] entonces P[v] ← w \n\t\t\t\t\t\t\tif( max == dw + cwv ){\n\t\t\t\t\t\t\t\tpadre.put(v.getKey(),w.getValue());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} // fin if contains\n\t\t\t\t\t} // fin for map\n\t\t\t} //fin for map\n\t\t} // fin while\n\t\treturn padre;\n\t}",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"void printGraph();",
"public GraphImpl(int[][] g) {\n\t\tanzKnoten = g.length;\n\t\tgraph = g;\n\t}",
"public static String graphTest(GraphInterface subject) {\n // Let the Test begin!\n System.out.println(\"Test beginnt...\");\n if (subject.getNumberOfVertices() != 10)\n return \"FEHLER: Liste nicht mit 10 Knoten initialisiert!\";\n // Lets now check the fail-safes\n subject.addEdge(11, 1, 1);\n subject.addEdge(-1, 2, 1);\n subject.removeEdge(13, 3);\n subject.removeEdge(-3, 3);\n subject.removeEdge(6, 0);// Does not exist (But the vertices do)!\n\n if (subject.getWeight(7, 0) != 0)\n return \"FEHLER: getWeight(7, 0): Kante 7<->0 existiert nicht!\";\n\n if (subject.getWeight(-7, 0) != 0)\n return \"FEHLER: getWeight(-7, 0):Kante -7<->0 existiert nicht!\";\n\n if (subject.getWeight(17, 0) != 0)\n return \"FEHLER: getWeight(17, 0): Kante 17<->0 existiert nicht!\";\n\n if (subject.getDegree(-10) != -1)\n return \"FEHLER: getDegree(-10): Knoten -10 existiert nicht!\";\n\n if (subject.getDegree(140) != -1)\n return \"FEHLER: getDegree(140): Knoten 140 existiert nicht!\";\n\n if (subject.getDegree(0) == -1)\n return \"FEHLER: getDegree(0): Knoten 0 existiert (Und hat Kanten)!\";\n\n if (subject.getNeighbours(-3) != null)\n return \"FEHLER: getNeighbours(-3): Knoten -3 existiert nicht!\";\n\n if (subject.getNeighbours(13) != null)\n return \"FEHLER: getNeighbours(13): Knoten 13 existiert nicht!\";\n\n // lets check if there are NO edges\n for (int i = 0; i < 10; i++)\n if (subject.getDegree(i) != 0)\n return \"FEHLER: getDegree(\" + i + \")!=0\";\n for (int i = 0; i < 10; i++)\n if (subject.getNeighbours(i).length != 0)\n return \"FEHLER: getNeighbours(\" + i + \").length!=0\";\n // create a network and check it\n for (int edge = 0; edge < edges.length; edge++) {\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 0)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=0\";\n subject.addEdge(edges[edge][0], edges[edge][1], edges[edge][2]);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != edges[edge][2])\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=\" + edges[edge][2];\n int[] tempNeighbours = subject.getNeighbours(edges[edge][0]);\n boolean foundFlag = false;\n for (int j = 0; j < tempNeighbours.length; j++)\n if (edges[edge][1] == tempNeighbours[j]) {\n foundFlag = true;\n break;\n }\n if (!foundFlag)\n return \"Fehler: getNeighbours(\" + edges[edge][0]\n + \") enth�lt nicht die vorhandene Kante '\"\n + edges[edge][1] + \"'!\";\n }\n\n // and finally: delete some edges\n for (int edge = 0; edge < edges.length; edge++) {\n subject.addEdge(edges[edge][0], edges[edge][1], 14);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 14)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=14\";\n subject.removeEdge(edges[edge][0], edges[edge][1]);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 0)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=0\";\n }\n\n return \"Keine Fehler gefunden!\\n\";\n }",
"@Override\n \t\t\t\tpublic String getGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/namedGraph/3\";\n \t\t\t\t}",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"public Graph<Integer> getGraph() {\n return E;\n }",
"private void getGraph (ActionEvent evt) {\n\t\t\t//TODO\n\t}",
"@Override\n\n public void leggInn(int indeks, T verdi) {\n\n if (verdi == null){\n throw new NullPointerException(); }\n if (indeks < 0){\n throw new IndexOutOfBoundsException(); }\n if (indeks > (antall - 1)){\n throw new IndexOutOfBoundsException(); }\n\n Node<T> newNode = new Node<T>(verdi);\n if (hode == null ){ // Hvis Listen er Tom\n hode = newNode;\n hale = newNode;\n }\n else if (indeks == 0){\n newNode.neste = hode;\n hode.forrige = newNode;\n hode = newNode;\n }\n else if (indeks == (antall - 1)){\n newNode.forrige = hale;\n hale.forrige = newNode;\n hale = newNode;\n }\n else {\n Node<T> nodeTemp = hode;\n for (int i = 1; i < indeks; i++){\n nodeTemp = nodeTemp.neste;\n newNode.neste = nodeTemp.neste;\n nodeTemp.neste = newNode;\n newNode.forrige = nodeTemp;\n newNode.neste.forrige = newNode;\n }\n }\n antall++;\n endringer++;\n }",
"private void tekenRechtHoek(GraphicsContext gc, int linksX, int linksY, int rechtsOnderX, int rechtsOnderY, Color kleur)\n {\n gc.beginPath();\n gc.setStroke(kleur);\n gc.setLineWidth(3);\n gc.rect(linksX, linksY, rechtsOnderX, rechtsOnderY);\n gc.stroke();\n gc.closePath();\n }",
"public interface Graph extends Container {\n\n /**\n * returns how many elements are in the container.\n *\n * @return int = number of elements in the container.\n */\n public int size();\n\n /**\n * returns true if the container is empty, false otherwise.\n *\n * @return boolean true if container is empty\n */\n public boolean isEmpty();\n\n /**\n * return the number of vertices in the graph\n * \n * @return number of vertices in the graph\n */\n public int numVertices();\n\n /**\n * returns the number for edges in the graph\n * \n * @return number of edges in the graph\n */\n public int numEdges();\n\n /**\n * returns an Enumeration of the vertices in the graph\n * \n * @return vertices in the graph\n */\n public Enumeration vertices();\n\n \n /**\n * returns an Enumeration of the edges in the graph\n * \n * @return edges in the graph\n */\n public Enumeration edges();\n\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration directedEdges();\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration undirectedEdges();\n\n /**\n * returns the degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the degree of\n * @return degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int degree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the in degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the in degree of\n * @return in degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int inDegree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the out degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the out degree of\n * @return out degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int outDegree(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the adjacent vertices of\n * @return enumeration of vertices adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices in adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the in adjacent vertices of\n * @return enumeration of vertices in adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices out adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the out adjacent vertices of\n * @return enumeration of vertices out adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration incidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges in incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges in incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration inIncidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges out incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges out incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;\n\n public Position[] endVertices(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the Vertex on Edge ep opposite from Vertex vp\n * \n * @param vp Vertex to find opposite of\n * @param ep Edge containing the vertices\n * @return \n * @exception InvalidPositionException\n */\n public Position opposite(Position vp, Position ep) throws InvalidPositionException;\n\n /**\n * Determine whether or not two vertices are adjacent\n * \n * @param vp Position of one Vertex to check\n * @param wp Position of other Vertex to check\n * @return true if they are adjacent, false otherwise\n * @exception InvalidPositionException\n * thrown if either Position is invalid for this container\n */\n public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;\n\n /**\n * Returns the destination Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the destination Vertex of\n * @return the destination Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position destination(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the origin Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the origin Vertex of\n * @return the origin Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position origin(Position ep) throws InvalidPositionException;\n\n /**\n * Returns true if the given Edge Position is directed,\n * otherwise false\n * \n * @param ep Edge Position to check directed on\n * @return true if directed, otherwise false\n * @exception InvalidPositionException\n */\n public boolean isDirected(Position ep) throws InvalidPositionException;\n\n /**\n * Inserts a new undirected Edge into the graph with end\n * Vertices given by Positions vp and wp storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding one Vertex endpoint\n * @param wp Position holding the other Vertex endpoint\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new directed Edge into the graph with end\n * Vertices given by Positions vp, the origin, and wp,\n * the destination, storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding the origin Vertex\n * @param wp Position holding the destination Vertex\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new Vertex into the graph holding Object o\n * and returns a Position holding the new Vertex\n * \n * @param o the Object to hold in this Vertex\n * @return the Position holding the Vertex\n */\n public Position insertVertex(Object o);\n\n /**\n * This method removes the Vertex held in the passed in\n * Position from the Graph\n * \n * @param vp the Position holding the Vertex to remove\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void removeVertex(Position vp) throws InvalidPositionException;\n\n /**\n * Used to remove the Edge held in Position ep from the Graph\n * \n * @param ep the Position holding the Edge to remove\n * @exception InvalidPositionException\n * thrown if Position ep is invalid for this container\n */\n public void removeEdge(Position ep) throws InvalidPositionException;\n\n /**\n * This routine is used to change a directed Edge into an\n * undirected Edge\n * \n * @param ep a Position holding the Edge to change from directed to\n * undirected\n * @exception InvalidPositionException\n */\n public void makeUndirected(Position ep) throws InvalidPositionException;\n\n /**\n * This routine can be used to reverse the diretion of a \n * directed Edge\n * \n * @param ep a Position holding the Edge to reverse\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void reverseDirection(Position ep) throws InvalidPositionException;\n\n /**\n * Changes the direction of the given Edge to be out incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be out incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionFrom(Position ep, Position vp) throws InvalidPositionException;\n\n\n /**\n * Changes the direction of the given Edge to be in incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be in incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionTo(Position ep, Position vp) throws InvalidPositionException;\n\n}",
"protected int getGraphLeft() {\r\n\t\treturn leftEdge;\r\n\t}",
"public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}",
"void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}",
"@Override\r\n public weighted_graph getGraph() {\r\n return this.Graph;\r\n }",
"protected Graph<VLabel, ELabel> theGraph() {\n return _graph;\n }",
"Graph() {\r\n\t\tvertices = new LinkedList<Vertex>();\r\n\t\tedges = 0;\r\n\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\t// ASCII value of 'A' is 65\r\n\t\t\tVertex vertex = new Vertex((char) (i + 65));\r\n\t\t\tvertices.add(vertex);\r\n\t\t}\r\n\t\tcurrentVertex = vertices.get(0);\r\n\t\tseen = new boolean[26];\r\n\t}",
"public void gagne()\r\n\t{\r\n\t\tthis.nbVictoires++;\r\n\t}",
"public GraphNOriented getG() {\n\t\treturn g;\n\t}",
"public void buildGraph(){\n\t}",
"private static String representacaoAL(Graph grafo) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tfor (int i = 0; i < grafo.getVerticesGraph().size(); i++) {\r\n\t\t\tretorno += grafo.getVerticesGraph().get(i).getValor() + \" \";\r\n\r\n\t\t\tfor (int j = 0; j < grafo.getVerticesGraph().get(i).getArestas().size(); j++) {\r\n\t\t\t\tretorno += proxVertice(grafo.getVerticesGraph().get(i), grafo.getVerticesGraph().get(i).getArestas().get(j)) + \" \";\r\n\t\t\t}\r\n\r\n\t\t\tretorno += \"/n\";\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}",
"String targetGraph();",
"void graphSelectionChanged(Mode mode);",
"public void teken(){\n removeAll();\n \n //eerste tekening\n if(tekenEerste != false){\n tekenMuur();\n tekenSleutel();\n veld[9][9] = 6;\n tekenEerste = false;\n tekenBarricade();\n }\n \n //methode die de speler de waarde van de sleutel geeft aanroepen\n sleutelWaarde();\n \n //de methode van het spel einde aanroepen\n einde();\n \n //vernieuwd veld aanroepen\n veld = speler.nieuwVeld(veld);\n \n //het veld tekenen\n for(int i = 0; i < coordinaten.length; i++) {\n for(int j = 0; j < coordinaten[1].length; j++){\n switch (veld[i][j]) {\n case 1: //de sleutels\n if(i == sleutel100.getY() && j == sleutel100.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel1002.getY() && j == sleutel1002.getX()){\n coordinaten[i][j] = new SleutelVakje(100);\n }\n else if (i == sleutel200.getY() && j == sleutel200.getX()){\n coordinaten[i][j] = new SleutelVakje(200);\n }\n else if (i == sleutel300.getY() && j == sleutel300.getX()){\n coordinaten[i][j] = new SleutelVakje(300);\n } break;\n case 2: //de muren\n coordinaten[i][j] = new MuurVakje();\n break;\n // de barricades\n case 3:\n coordinaten[i][j] = new BarricadeVakje(100);\n break;\n case 4:\n coordinaten[i][j] = new BarricadeVakje(200);\n break;\n case 5:\n coordinaten[i][j] = new BarricadeVakje(300);\n break;\n case 6: // het eindveld vakje\n coordinaten[i][j] = new EindveldVakje();\n break;\n default: // het normale vakje\n coordinaten[i][j] = new CoordinaatVakje();\n break;\n }\n //de speler\n coordinaten[speler.getY()][speler.getX()] = new SpelerVakje();\n \n //het veld aan de JPanel toevoegen\n add(coordinaten[i][j]);\n }\n }\n System.out.println(\"Speler waarde = \" + speler.getSleutelWaarde());\n revalidate();\n repaint();\n }",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"@Override\n\tpublic int graphOrder() {\n\t\treturn vertices.size();\n\t}",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"@Test public void testPublic1() {\n Graph<Character> graph= TestGraphs.testGraph1();\n\n assertEquals(3, graph.getEdge('A', 'B'));\n }",
"public void reinitialiserLeControleurGraphique()\n\t{\n\t\tthis.unControleur = new ControleurGraphique(this);\n\t}",
"private void dfs(DigrafoAristaPonderada G, int v) {\n enPila[v] = true;\n marcado[v] = true;\n for (AristaDirigida a : G.ady(v)) {\n int w = a.hacia();\n\n // short circuit if directed ciclo found\n if (ciclo != null) return;\n\n //found new vertex, so recur\n else if (!marcado[w]) {\n aristaHacia[w] = a;\n dfs(G, w);\n }\n\n // trace back directed ciclo\n else if (enPila[w]) {\n ciclo = new Pila<AristaDirigida>();\n while (a.desde() != w) {\n ciclo.push(a);\n a = aristaHacia[a.desde()];\n }\n ciclo.push(a);\n return;\n }\n }\n\n enPila[v] = false;\n }",
"public Graph classementDegre(Graph g) {\n List<Sommet<T>> noeuds = this.getSommets();\n Sommet<T> temp;\n for (int i = 0; i < noeuds.size(); i++) {\n for (int j = i; j > 0; j--) {\n if (noeuds.get(j).getDegre() > noeuds.get(j - 1).getDegre()) {\n temp = noeuds.get(j);\n noeuds.set(j, noeuds.get(j - 1));\n noeuds.set(j - 1, temp);\n }\n }\n }\n return g;\n }",
"public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}",
"public void tegnTre() {\r\n tegneBrett.getChildren().clear();\r\n if (root != null) {\r\n tegnTre(root, tegneBrett.getWidth() / 2, høydeAvstand,\r\n tegneBrett.getWidth() / 4);\r\n }\r\n }",
"public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"@Override\n \t\t\t\tpublic String getGraphId() {\n \t\t\t\t\treturn null;\n \t\t\t\t}",
"private static void associaGraphAresta(Graph grafo) {\r\n\t\tfor (int i = 0; i < grafo.getArestas().size(); i++) {\r\n\t\t\tgrafo.getArestas().get(i).getV1().getArestas().add(grafo.getArestas().get(i));\r\n\t\t\tgrafo.getArestas().get(i).getV2().getArestas().add(grafo.getArestas().get(i));\r\n\t\t}\r\n\t}",
"void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }",
"public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }",
"@Test\n public void tae0()\n {\n Graph g = new Graph(2);\n g.addEdge(0, 1);\n System.out.println(g);\n assertEquals(g.toString(), \"numNodes: 2\\nedges: [[false, true], [false, false]]\");\n }",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n public void getGraph1() throws Exception {\n try (final Graph g1 = dataset.getGraph(graph1).get()) {\n assertEquals(4, g1.size());\n\n assertTrue(g1.contains(alice, name, aliceName));\n assertTrue(g1.contains(alice, knows, bob));\n assertTrue(g1.contains(alice, member, null));\n assertTrue(g1.contains(null, name, secretClubName));\n }\n }",
"private void nastavGraf() {\n barChart = (BarChart) findViewById(R.id.bargraph);\n\n ArrayList<BarEntry> barEntries = new ArrayList<>();\n ArrayList<String> theDates = new ArrayList<>();\n\n // ziskame zaznamy z tabuľky Steps a naplnime graf\n List<HashMap<String, String>> zoznam = mDatabaseHelper.getSteps();\n HashMap<String, String> mapa = new HashMap<>();\n for (int i = 0; i < zoznam.size(); i++) {\n if (i == 3) break;\n mapa = zoznam.get(i);\n theDates.add(mapa.get(\"datum\"));\n barEntries.add(new BarEntry(Float.parseFloat(mapa.get(\"kroky\")), i));\n }\n\n BarDataSet barDataSet = new BarDataSet(barEntries, \"Steps\");\n int redColorValue = Color.parseColor(\"#ff1744\");\n barDataSet.setColor(redColorValue);\n BarData theData = new BarData(theDates, barDataSet);\n\n barChart.setData(theData);\n barChart.getLegend().setEnabled(false);\n barChart.setDescription(null);\n }",
"private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {\n inicial();\n view.deseta();\n for(int i=0;i<Grafos.graph.getVertex().size();i++){\n if(!Grafos.graph.getVertex().get(i).isSelected()){\n Grafos.graph.getVertex().get(i).setSelected(true);\n break;}\n }\n if(Grafos.graph.getIsLine())\n Grafos.graph.computeCircledPosition(150);\n }",
"@Test public void testPublic4() {\n Graph<Character> graph= TestGraphs.testGraph1();\n\n assertEquals(\"B\", TestGraphs.collToString(graph.getNeighbors('A')));\n }",
"public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }",
"public Graphs() {\n graph = new HashMap<>();\n }",
"@Override\r\n\tpublic ArrayList<Edge<E>> kruskalMinimumSpannigTree() {\r\n\t\tUnionFind<E> uf = new UnionFind<>(getVertices());\r\n\t\tArrayList<Edge<E>> kruskal = new ArrayList<>();\r\n\t\tArrayList<Edge<E>> edges = new ArrayList<>();\r\n\t\tfor(ArrayList<Edge<E>> adjList : adjacencyLists.values()) {\r\n\t\t\tfor(Edge<E> edge : adjList) {\r\n\t\t\t\tif(!edges.contains(new Edge<>(edge.getDst(), edge.getSrc(), 1))) {\r\n\t\t\t\t\tedges.add(edge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tCollections.sort(edges);\r\n\t\tfor(int i = 0; i < edges.size(); i++) {\r\n\t\t\tEdge<E> edge = edges.get(i);\r\n\t\t\tif(uf.find(edge.getSrc()) != uf.find(edge.getDst())) {\r\n\t\t\t\tuf.union(edge.getSrc(), edge.getDst());\r\n\t\t\t\tkruskal.add(edge);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn kruskal;\r\n\t}",
"public weighted_graph getGraph();",
"public static void main(String[] args) {\n Grafo g = new Grafo(6); \r\n g.addAresta(5, 2); \r\n g.addAresta(5, 0); \r\n g.addAresta(4, 0); \r\n g.addAresta(4, 1); \r\n g.addAresta(2, 3); \r\n g.addAresta(3, 1); \r\n System.out.println(\"Grafo ordenado topologicamente pelo algoritmo de Kahn:\"); \r\n g.topologicalSort(); \r\n \r\n System.out.println(\"\\n\\n\\n\");\r\n \r\n // Cria um grafo e adiciona as arestas com seus pesos\r\n GrafoComplexo gc = new GrafoComplexo(6); \r\n gc.addAresta(0, 1, 5); \r\n gc.addAresta(0, 2, 3); \r\n gc.addAresta(1, 3, 6); \r\n gc.addAresta(1, 2, 2); \r\n gc.addAresta(2, 4, 4); \r\n gc.addAresta(2, 5, 2); \r\n gc.addAresta(2, 3, 7); \r\n gc.addAresta(3, 4, -1); \r\n gc.addAresta(4, 5, -2); \r\n \r\n int s = 1; \r\n System.out.println(\"Caminho mais curto desde a origem \" + s ); \r\n gc.shortestPath(s); \r\n }",
"private void degrees() {\n\t\tnodesWithDegree = new TreeMap<Integer, IntOpenHashSet>();\n\n\t\t// fill the HashMap nodesWithDegree\n\t\tfor (Sommet entry : adjVertices) {\n\n\t\t\tif (entry == null)\n\t\t\t\tcontinue;\n\n\t\t\tint size = entry.listeAdjacence.size();\n\n\t\t\tif (nodesWithDegree.containsKey(size)) {\n\t\t\t\tnodesWithDegree.get(size).add(entry.numSommet);\n\t\t\t} else {\n\t\t\t\tIntOpenHashSet temp = new IntOpenHashSet();\n\t\t\t\ttemp.add(entry.numSommet);\n\t\t\t\tnodesWithDegree.put(size, temp);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"end of degree method\");\n\t}",
"@Override\n\tpublic void obavesti(KruznaFigura figura) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tGraph g = new Graph(5, false);\r\n\t\tg.addConnection(1, 2, 15);\r\n\t\tg.addConnection(1, 3, 5);\r\n\t\tg.addConnection(1, 4, 1);\r\n\t\t\r\n\t\tg.addConnection(2, 3, 5);\r\n\t\t//g.addConnection(2, 5, 1);\r\n\t\t\r\n\t\t//g.addConnection(4, 5, 1);\r\n\r\n\t\tSystem.out.println(g);\r\n\t\tg.dijkstra(1);\r\n\t\tg.prim(1);\r\n\t\t\r\n\t}",
"public void printDGraph(){\n System.out.println(this.toString());\n }",
"public void Excute() {\n Node img1 = new Node(\"Branche1\", 1);\r\n Node img2 = new Node(\"Branche2\", 2);\r\n Node img3 = new Node(\"Branche3\", 3);\r\n Node img4 = new Node(\"Branche4\", 4);\r\n Node img5 = new Node(\"Branche5\", 5);\r\n Node img6 = new Node(\"Branche6\", 6);\r\n Node img7 = new Node(\"Branche7\", 7);\r\n Node img8 = new Node(\"Branche8\", 8);\r\n Node img9 = new Node(\"Branche9\", 9);\r\n\r\n // creat the edges from class Edge and connection the edges(scene bulider) , nodes(that creat from class Node) , weight , node(scene bulider) \r\n Edge edge1 = new Edge(4, img1, img2, this.edg1);\r\n Edge edge2 = new Edge(5, img1, img8, this.edg2);\r\n Edge edge3 = new Edge(8, img2, img3, this.edg3);\r\n Edge edge4 = new Edge(11, img2, img8, this.edg4);\r\n Edge edge5 = new Edge(4, img2, img1, this.edg1);\r\n Edge edge6 = new Edge(1, img3, img4, this.edg5);\r\n Edge edge7 = new Edge(4, img3, img6, this.edg6);\r\n Edge edge8 = new Edge(2, img3, img9, this.edg7);\r\n Edge edge9 = new Edge(8, img3, img2, this.edg3);\r\n Edge edge10 = new Edge(9, img4, img5, this.edg8);\r\n Edge edge11 = new Edge(14, img4, img6, this.edg9);\r\n Edge edge12 = new Edge(7, img4, img3, this.edg5);\r\n Edge edge13 = new Edge(10, img5, img6, this.edg10);\r\n Edge edge14 = new Edge(9, img5, img4, this.edg8);\r\n Edge edge15 = new Edge(10, img6, img5, this.edg10);\r\n Edge edge16 = new Edge(14, img6, img4, this.edg9);\r\n Edge edge17 = new Edge(4, img6, img3, this.edg6);\r\n Edge edge18 = new Edge(2, img6, img7, this.edg11);\r\n Edge edge19 = new Edge(6, img7, img9, this.edg12);\r\n Edge edge20 = new Edge(1, img7, img8, this.edg13);\r\n Edge edge21 = new Edge(2, img7, img6, this.edg11);\r\n Edge edge22 = new Edge(7, img8, img9, this.edg14);\r\n Edge edge23 = new Edge(11, img8, img2, this.edg4);\r\n Edge edge24 = new Edge(5, img8, img1, this.edg2);\r\n Edge edge25 = new Edge(1, img8, img7, this.edg13);\r\n Edge edge26 = new Edge(7, img9, img8, this.edg14);\r\n Edge edge27 = new Edge(2, img9, img3, this.edg7);\r\n Edge edge28 = new Edge(6, img9, img7, this.edg12);\r\n\r\n //System.out.println(edg1.getId());\r\n // add per the node the edges them to it\r\n ArrayList img1Edges = new ArrayList<>();\r\n img1Edges.add(edge1);\r\n img1Edges.add(edge2);\r\n img1.setEdge(img1Edges);\r\n //Collections.sort(img1Edges);\r\n //----------------------------------------------------------------\r\n ArrayList img2Edges = new ArrayList<>();\r\n img2Edges.add(edge3);\r\n img2Edges.add(edge4);\r\n img2Edges.add(edge5);\r\n img2.setEdge(img2Edges);\r\n //Collections.sort(img2Edges);\r\n //----------------------------------------------------------------\r\n ArrayList img3Edges = new ArrayList<>();\r\n img3Edges.add(edge6);\r\n img3Edges.add(edge7);\r\n img3Edges.add(edge8);\r\n img3Edges.add(edge9);\r\n img3.setEdge(img3Edges);\r\n //Collections.sort(img3Edges);\r\n //----------------------------------------------------------------\r\n ArrayList img4Edges = new ArrayList<>();\r\n img4Edges.add(edge10);\r\n img4Edges.add(edge11);\r\n img4Edges.add(edge12);\r\n img4.setEdge(img4Edges);\r\n //Collections.sort(img4Edges);\r\n //----------------------------------------------------------------\r\n ArrayList img5Edges = new ArrayList<>();\r\n img5Edges.add(edge13);\r\n img5Edges.add(edge14);\r\n img5.setEdge(img5Edges);\r\n //Collections.sort(img5Edges);\r\n //----------------------------------------------------------------\r\n ArrayList img6Edges = new ArrayList<>();\r\n img6Edges.add(edge15);\r\n img6Edges.add(edge16);\r\n img6Edges.add(edge17);\r\n img6Edges.add(edge18);\r\n img6.setEdge(img6Edges);\r\n //Collections.sort(img6Edges);\r\n //----------------------------------------------------------------\r\n ArrayList img7Edges = new ArrayList<>();\r\n img7Edges.add(edge19);\r\n img7Edges.add(edge20);\r\n img7Edges.add(edge21);\r\n img7.setEdge(img7Edges);\r\n //Collections.sort(img7Edges);\r\n //----------------------------------------------------------------\r\n ArrayList img8Edges = new ArrayList<>();\r\n img8Edges.add(edge22);\r\n img8Edges.add(edge23);\r\n img8Edges.add(edge24);\r\n img8Edges.add(edge25);\r\n img8.setEdge(img8Edges);\r\n //Collections.sort(img8Edges);\r\n //----------------------------------------------------------------\r\n ArrayList img9Edges = new ArrayList<>();\r\n img9Edges.add(edge26);\r\n img9Edges.add(edge27);\r\n img9Edges.add(edge28);\r\n img9.setEdge(img9Edges);\r\n //Collections.sort(img9Edges);\r\n\r\n // Add all the nodes in array \r\n nodes = new ArrayList<>();\r\n nodes.add(img1);\r\n nodes.add(img2);\r\n nodes.add(img3);\r\n nodes.add(img4);\r\n nodes.add(img5);\r\n nodes.add(img6);\r\n nodes.add(img7);\r\n nodes.add(img8);\r\n nodes.add(img9);\r\n\r\n ObservableList<Node> userobserblood = FXCollections.observableArrayList(nodes);\r\n nodeStart.getItems().addAll(userobserblood);\r\n nodeStart.setPrefWidth(150);\r\n ObservableList<Node> uuserobserblood = FXCollections.observableArrayList(nodes);\r\n nodeEnd.getItems().addAll(uuserobserblood);\r\n nodeEnd.setPrefWidth(150);\r\n }",
"@Override\n public boolean leggInn(T verdi) {\n Objects.requireNonNull(verdi,\" Null verdier er ikke tillat.\");\n // tilfelle 1- om listen var tom liste\n if (tom()) {\n // kan skrives også som if (hode==null && hale==null)\n hode = hale = new Node<T>(verdi, null, null);\n antall++;\n } else {\n hale.neste = new Node<T>(verdi, hale, null);\n hale = hale.neste;\n antall++;\n endringer++;\n }// end else\n return true;\n }",
"public HashMap<Nodo, Integer> dijkstra() {\r\n\r\n\t\tPriorityQueue<NodoDijkstra> aVisitar = new PriorityQueue<NodoDijkstra>();\r\n\t\tHashMap<Nodo, Integer> distancias = new HashMap<Nodo, Integer>();\r\n\t\tHashMap<Nodo, Integer> retorno = new HashMap<Nodo, Integer>();\r\n\t\tHashSet<Nodo> visitados = new HashSet<Nodo>();\r\n\r\n\t\tNodoDijkstra nodoOrigen = new NodoDijkstra(this, 0);\r\n\t\tnodoOrigen.setCamino(new Camino(this));\r\n\t\taVisitar.add(nodoOrigen);\r\n\t\tdistancias.put(this, new Integer(0));\r\n\t\tretorno.put(this, new Integer(0));\r\n\r\n\t\twhile (!aVisitar.isEmpty()) {\r\n\t\t\tNodoDijkstra dNodo = aVisitar.poll();\r\n\t\t\tNodo actual = dNodo.getNodo();\r\n\t\t\tCamino camino = dNodo.getCamino();\r\n\r\n\t\t\tif (visitados.contains(actual))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tvisitados.add(actual);\r\n\r\n\t\t\tfor (CanalOptico canal : actual.canales) {\r\n\t\t\t\tNodo vecino = canal.getOtroExtremo(actual);\r\n\t\t\t\tint costo = canal.getCosto();\r\n\r\n\t\t\t\t/* Restriccion del Dijkstra */\r\n\t\t\t\tif (visitados.contains(vecino))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (canal.estaBloqueado())\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (vecino.estaBloqueado())\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (distancias.containsKey(vecino)) {\r\n\t\t\t\t\tint dActual = distancias.get(vecino);\r\n\r\n\t\t\t\t\tif (dActual <= dNodo.getDistancia() + costo)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\taVisitar.remove(vecino);\r\n\t\t\t\t\t\tdistancias.remove(vecino);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tNodoDijkstra nuevoNodo = new NodoDijkstra(vecino,\r\n\t\t\t\t\t\tdNodo.getDistancia() + costo);\r\n\t\t\t\tCamino caminoNuevo = new Camino(camino);\r\n\t\t\t\tcaminoNuevo.addSalto(new Salto(camino.getSaltos().size() + 1,\r\n\t\t\t\t\t\tcanal));\r\n\t\t\t\tnuevoNodo.setCamino(caminoNuevo);\r\n\t\t\t\taVisitar.add(nuevoNodo);\r\n\t\t\t\tdistancias.put(nuevoNodo.getNodo(), nuevoNodo.getDistancia());\r\n\t\t\t\tretorno.put(nuevoNodo.getNodo(), nuevoNodo.getDistancia());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}",
"public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }",
"@Override\n\tpublic directed_weighted_graph getGraph() {\n\t\treturn dwg;\n\t}",
"public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}",
"@Override\r\n\tpublic void visitar(jugador jugador) {\n\t\t\r\n\t}",
"public String apGraph() {\n if(root != null){\n root.nameAvl();\n return doBigGraph();\n }else{\n return \"\";\n }\n }",
"@Override\r\n\tpublic int getGela_kop() {\n\t\treturn super.getGela_kop();\r\n\t}",
"@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }",
"public OrientGraph getGraph();",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}",
"public Graph<String, DefaultEdge> getGrafo() {\n\t\treturn grafo;\n\t}",
"public static void exampleGraph() {\n\t\t// create a simple FNSS topology\n\t\tTopology topology = new Topology();\n\t\ttopology.addEdge(\"1\", \"2\", new Edge());\n\t\ttopology.addEdge(\"2\", \"3\", new Edge());\n\t\t\n\t\t// convert to JGraphT\n\t\tGraph<String, Edge> graph = JGraphTConverter.getGraph(topology);\n\t\t\n\t\t// Find shortest paths\n\t\tString source = \"3\";\n\t\tString destination = \"1\";\n\t\tList<Edge> sp = DijkstraShortestPath.findPathBetween(graph, source, destination);\n\t\t\n\t\t// Print results\n\t\tSystem.out.println(\"Shortest path from \" + source + \" to \" + destination + \":\");\n\t\tfor (Edge e : sp) {\n\t\t\tSystem.out.println(graph.getEdgeSource(e) + \" -> \" + graph.getEdgeTarget(e));\n\t\t}\n\t}",
"Graph testGraph();",
"public interface Graph {\n\n\t/**\n\t * Method to add the edge from start to end to the graph.\n\t * Adding self-loops is not allowed.\n\t * @param start start vertex\n\t * @param end end vertex\n\t */\n\tpublic void addEdge(int start, int end);\n\n\t/**\n\t * Method to add the edge with the given weight to the graph from start to end.\n\t * Adding self-loops is not allowed.\n\t * @param start number of start vertex\n\t * @param end number of end vertex\n\t * @param weight weight of edge\n\t */\n\tpublic void addEdge(int start, int end, double weight);\n\n\t/**\n\t * Method to add a vertex to the graph.\n\t */\n\tpublic void addVertex();\n\t\n\t/**\n\t * Method to add multiple vertices to the graph.\n\t * @param n number of vertices to add\n\t */\n\tpublic void addVertices(int n);\n\n\t/**\n\t * Returns all neighbors of the given vertex v (all vertices i with {i,v} in E or (i,v) or (v,i) in E).\n\t * @param v vertex whose neighbors shall be returned\n\t * @return List of vertices adjacent to v\n\t */\n\tpublic List<Integer> getNeighbors(int v);\n\n\t/**\n\t * Returns a list containing all predecessors of v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all predecessors of v\n\t */\n\tpublic List<Integer> getPredecessors(int v);\n\n\t/**\n\t * Returns a list containing all successors v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all edges starting in v\n\t */\n\tpublic List<Integer> getSuccessors(int v);\n\n\t/**\n\t * Method to get the number of vertices.\n\t * @return number of vertices\n\t */\n\tpublic int getVertexCount();\n\n\t/**\n\t * Method to get the weight of the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of edge / arc\n\t * @param end end vertex of edge / arc\n\t * @return Double.POSITIVE_INFINITY, if the edge does not exist, c_{start, end} otherwise\n\t */\n\tpublic double getEdgeWeight(int start, int end);\n\n\t/**\n\t * Method to test whether the graph contains the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic boolean hasEdge(int start, int end);\n\n\t/**\n\t * Method to remove an edge from the graph, defined by the vertices start and end.\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic void removeEdge(int start, int end);\n\n\t/**\n\t * Method to remove the last vertex from the graph.\n\t */\n\tpublic void removeVertex();\n\n\t/**\n\t * Returns whether the graph is weighted.\n\t * A graph is weighted if an edge with weight different from 1.0 has been added to the graph.\n\t * @return true if the graph is weighted\n\t */\n\tpublic boolean isWeighted();\n\n\t/**\n\t * Returns whether the graph is directed.\n\t * @return true if the graph is directed\n\t */\n\tpublic boolean isDirected();\n\n}",
"public VBox getGraph(){\n\t\treturn graph.getGraph();\n\t}",
"public abstract void bepaalGrootte();",
"public Graph getGraph() {\n\t\treturn this.Graph;\n\t}",
"public static <V> void printAllShortestPaths(Graph<V> graph) {\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] pesos = new double[matrizPesos.length][matrizPesos.length];\n V[] vertices = graph.getValuesAsArray();\n V[][] caminos = (V[][]) new Object[matrizPesos.length][matrizPesos.length];\n for (int x = 0; x < matrizPesos.length; x++) {\n for (int y = 0; y < matrizPesos.length; y++) {\n if (x == y) {\n pesos[x][y] = -1;\n } else {\n if (matrizPesos[x][y] == -1) {\n pesos[x][y] = Integer.MAX_VALUE; //Si no existe arista se pone infinito\n } else {\n pesos[x][y] = matrizPesos[x][y];\n }\n }\n caminos[x][y] = vertices[y];\n }\n }\n for (int x = 0; x < vertices.length; x++) { // Para cada uno de los vertices del grafo\n for (int y = 0; y < vertices.length; y++) { // Recorre la fila correspondiente al vertice\n for (int z = 0; z < vertices.length; z++) { //Recorre la columna correspondiente al vertice\n if (y != x && z != x) {\n double tam2 = pesos[y][x];\n double tam1 = pesos[x][z];\n if (pesos[x][z] != -1 && pesos[y][x] != -1) {\n double suma = pesos[x][z] + pesos[y][x];\n if (suma < pesos[y][z]) {\n pesos[y][z] = suma;\n caminos[y][z] = vertices[x];\n }\n }\n }\n }\n }\n }\n\n //Cuando se termina el algoritmo, se imprimen los caminos\n for (int x = 0; x < vertices.length; x++) {\n for (int y = 0; y < vertices.length; y++) {\n boolean seguir = true;\n int it1 = y;\n String hilera = \"\";\n while (seguir) {\n if (it1 != y) {\n hilera = vertices[it1] + \"-\" + hilera;\n } else {\n hilera += vertices[it1];\n }\n if (caminos[x][it1] != vertices[it1]) {\n int m = 0;\n boolean continuar = true;\n while (continuar) {\n if (vertices[m].equals(caminos[x][it1])) {\n it1 = m;\n continuar = false;\n } else {\n m++;\n }\n }\n } else {\n if (x == y) {\n System.out.println(\"El camino entre \" + vertices[x] + \" y \" + vertices[y] + \" es: \" + hilera);\n } else {\n hilera = vertices[x] + \"-\" + hilera;\n if (pesos[x][y] == Integer.MAX_VALUE) {\n System.out.println(\"El camino mas corto entre \" + vertices[x] + \" y \" + vertices[y] + \" es: infinito (no hay camino)\");\n } else {\n System.out.println(\"El camino mas corto entre \" + vertices[x] + \" y \" + vertices[y] + \" es: \" + hilera + \" con distancia de: \" + (pesos[x][y]));\n }\n }\n seguir = false;\n }\n }\n }\n System.out.println();\n }\n }",
"private static SimpleWeightedGraph<String, DefaultWeightedEdge> criaGrafo() {\r\n\t\tSimpleWeightedGraph<String,DefaultWeightedEdge> graph = new SimpleWeightedGraph<String, DefaultWeightedEdge>(DefaultWeightedEdge.class);\r\n\t\t\r\n\t\tgraph.addVertex(\"a\");\tgraph.addVertex(\"b\");\tgraph.addVertex(\"c\");\r\n\t\tgraph.addVertex(\"d\");\tgraph.addVertex(\"e\");\tgraph.addVertex(\"f\");\r\n\t\tgraph.addVertex(\"g\");\tgraph.addVertex(\"h\");\tgraph.addVertex(\"i\");\r\n\t\t\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"a\",\"b\"),2);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"b\",\"c\"),4);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"c\",\"d\"),2);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"d\",\"e\"),1);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"e\",\"f\"),6);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"f\",\"a\"),7);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"a\",\"g\"),3);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"g\",\"i\"),1);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"g\",\"h\"),3);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"g\",\"b\"),6);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"h\",\"c\"),2);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"h\",\"d\"),8);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"h\",\"i\"),4);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"i\",\"f\"),5);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"i\",\"e\"),2);\r\n\t\treturn graph;\r\n\t}",
"public void kruskalMST()\n{\n PriorityQueue<Edge> completeTree = this._getKruskalTree(false);\n /*\n * Once we have the queue, we can display the tree and see how much it\n * weighs.\n */\n while (0 != completeTree.size()) {\n Edge nextEdge = completeTree.remove();\n System.out.println(\n this.vertexList[nextEdge.srcVert].label + \" --- \"\n + this.vertexList[nextEdge.destVert].label\n + \": \" + nextEdge.distance\n );\n }\n}",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"public void toutDessiner(Graphics g);",
"@Override\r\n\t\t\tpublic void vertexFinished(VertexTraversalEvent<Country> e) {\n\t\t\t\t\r\n\t\t\t}",
"Graph(){\n\t\tadjlist = new HashMap<String, Vertex>();\n\t\tvertices = 0;\n\t\tedges = 0;\n\t\tkeys = new ArrayList<String>();\n\t}",
"private void geselecteerdSymbool()\n {\n /**\n * selecteren van vak\n */\n vulKeuzeBordIn();\n GraphicsContext gc = canvasKeuzeveld[0][keuzeID].getGraphicsContext2D();\n tekenRechtHoek(gc, 0, 0, 30, 30, Color.RED);\n }"
] | [
"0.6365787",
"0.6333342",
"0.61702293",
"0.6117656",
"0.6083601",
"0.6060975",
"0.6052053",
"0.600606",
"0.5988485",
"0.5981204",
"0.5930035",
"0.59181386",
"0.5877066",
"0.5876165",
"0.58604354",
"0.58396804",
"0.582553",
"0.57684326",
"0.5752851",
"0.5746278",
"0.5733886",
"0.57189196",
"0.5710877",
"0.5692457",
"0.5684693",
"0.5683179",
"0.567576",
"0.5654175",
"0.56530684",
"0.5650064",
"0.5639831",
"0.563597",
"0.5619151",
"0.56149983",
"0.5601876",
"0.55979365",
"0.5588724",
"0.558305",
"0.5582976",
"0.55699617",
"0.5568752",
"0.5558762",
"0.5555716",
"0.5555419",
"0.55516624",
"0.55504996",
"0.55207473",
"0.5519259",
"0.5517517",
"0.54928076",
"0.5484641",
"0.5482379",
"0.5480623",
"0.54802126",
"0.5469757",
"0.5466681",
"0.5466525",
"0.54589105",
"0.5458244",
"0.5455301",
"0.5448152",
"0.54444516",
"0.5440836",
"0.54383326",
"0.5428929",
"0.54203206",
"0.54172146",
"0.5410862",
"0.5406332",
"0.54062665",
"0.54040134",
"0.53937244",
"0.5389262",
"0.53874385",
"0.5385626",
"0.5385001",
"0.5380968",
"0.5376678",
"0.5376342",
"0.5374609",
"0.53707784",
"0.5367136",
"0.53653157",
"0.53587943",
"0.5357668",
"0.53559333",
"0.53542536",
"0.534811",
"0.5346157",
"0.5345906",
"0.5339915",
"0.5335851",
"0.53357863",
"0.532378",
"0.5322328",
"0.53217965",
"0.53206724",
"0.5314482",
"0.5306212",
"0.5305436",
"0.53049093"
] | 0.0 | -1 |
F??gt neue Kante mit Gewicht weight zum Graph dazu. | boolean addEdge(V v, V w, double weight); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public weighted_graph getGraph();",
"public int getWeight(){\n\t\treturn this.edgeWeight;\n\t}",
"double getEdgeWeight();",
"public int getWeight()\r\n\t{\r\n\t\treturn edgeWeight;\t\t\r\n\t}",
"public int weight(){\n\t\treturn this.weight;\n\t}",
"public int weight() {\n \treturn weight;\n }",
"@Override\r\n public weighted_graph getGraph() {\r\n return this.Graph;\r\n }",
"public WeightedAdjacencyGraph() {\n this.vertices = new HashMap<>();\n }",
"public Weight getWeight();",
"public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}",
"public float getWeight();",
"int getWeight() {\n return weight;\n }",
"int getWeight() {\n return weight;\n }",
"public float getWeight() {\n return weight;\n }",
"public float getWeight() {\n return weight;\n }",
"int getWeight();",
"int getWeight();",
"@Override\r\n\tpublic double Weight() {\n\t\treturn Weight;\r\n\t}",
"public int getWeight() {\n return weight;\n }",
"public double getWeight(){\n\t\treturn this._weight;\n\t}",
"@Override\n\tpublic directed_weighted_graph getGraph() {\n\t\treturn dwg;\n\t}",
"@Override\n public double getWeight() {\n return this.weight;\n }",
"@Override\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}",
"public WeightedGraph() {\n super();\n }",
"@Override\n\t\tpublic int get_weights() {\n\t\t\treturn weight;\n\t\t}",
"public float getWeight() {\n return weight;\n }",
"@Override\n public double getEdgeWeight() {\n return edgeWeight;\n }",
"public int getWeight();",
"public float getWeight() {\n return weight;\n }",
"public int getWeight()\n {\n return weight;\n }",
"public int weight ();",
"public int getWeight() {\n return weight;\n }",
"public double getWeight(){\n return weight;\n }",
"public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}",
"public int getWeight(){\n\t\treturn weight;\n\t}",
"public double getWeight(){\n\t\treturn weight;\n\t}",
"public int getWeight() {\n return weight;\n }",
"public int getWeight() {\n return weight;\n }",
"public double getWeight() {\n\t\treturn weight; \n\t\t}",
"public double getWeight() {\r\n return weight;\r\n }",
"public double getWeight() {\r\n return weight;\r\n }",
"public int getWeight() {\n return this.weight;\n }",
"public int getWeight() {\n\t\treturn _weight;\n\t}",
"public int getWeight(){\n \treturn weight;\n }",
"public double getWeight()\n\t{\n\t\t//metodo precisa retornar alguma coisa\n\t\treturn 0.0;\n\t}",
"@Override\n\tpublic double weight() {\n\t\treturn 1.0;\n\t}",
"public double getWeight() {\n return weight;\n }",
"public double getWeight() {\n return weight;\n }",
"public String getWeight()\r\n\t{\r\n\t\treturn weight;\r\n\t}",
"public int getWeight() {\r\n\t\treturn this.weight;\r\n\t}",
"public int getWeight()\n\t{\n\t\treturn this.weight;\n\t}",
"public int getWeight() {\n\t\treturn weight;\n\t}",
"public int getWeight() {\n\t\treturn weight;\n\t}",
"public Integer getWeight() {\n return weight;\n }",
"@Override\n public String toString() {\n return String.valueOf(this.weight);\n }",
"public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }",
"public double getWeight() {\n\t\treturn weight;\n\t}",
"public WeightedEdge(){\n\t\t\n\t}",
"public Byte getWeight() {\n\t\treturn weight;\n\t}",
"public double getWeight() {\n return 0;\n }",
"private void toZeroWeightGraph() {\n source.disable();\n for (Graph.Vertex v : graph) {\n int min = Integer.MAX_VALUE;\n XGraph.XVertex vertex = (XGraph.XVertex) v;\n for (XGraph.Edge e : vertex.getNonZeroRevItr()) {\n if (e.getWeight() < min) {\n min = e.getWeight();\n }\n }\n for (Graph.Edge e : vertex.getNonZeroRevItr())\n e.setWeight(e.getWeight() - min);\n }\n source.enable();\n }",
"public String getWeight() {\n return weight;\n }",
"@Override\r\n\tpublic double getWeight() {\n\t\treturn 0;\r\n\t}",
"public float getWeight() {\n\t\t\treturn weight;\n\t\t}",
"public java.lang.Double getWeight () {\r\n\t\treturn weight;\r\n\t}",
"public void setWeight(float w) {\n weight = w;\n }",
"private void setWeight(float weight){\n this.weight = weight;\n }",
"private double costOf(int w) {\n\t\treturn getVertex(w).getCost();\n\t}",
"protected abstract K getEdgeKWeight(HyperEdge dt, HGNode parent_item);",
"public double getWeight(){return this.aWeight;}",
"public void setWeight(float value) {\n this.weight = value;\n }",
"@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }",
"public interface WeightedGraph<V,E extends WeightedEdge<V>> extends Graph<V,E> {\n/**\n * Uses the\n * Floyd-Warshall all-pairs shortest path algorithm to compute and return a shortest\n * path matrix.\n**/\n\n\tpublic ShortestPathMatrix<V,E> allPairsShortestPaths();\n/**\n * Uses\n * the Bellman-Ford shortest path algorithm to compute and return a shortest path tree\n * for the given source vertex. This algorithm will yield the correct answer if there are\n * negative weight edges, provided that there is no negative weight cycle.\n**/\n\n\tpublic InTree<V,E> generalShortestPathFromSource(V source);\n/**\n * Uses Kruskal's minimum spanning tree to\n * return a set of edges that form a minimum spanning tree for this graph.\n * It throws a <code>DisconnectedGraphException</code> when the graph is not connected,\n * a <code>NegativeWeightEdgeException</code> when a negative weight edge\n * is encountered, and a <code>GraphException</code> when the graph is directed.\n**/\n\n\tpublic Set<E> kruskalMST() throws NegativeWeightEdgeException, DisconnectedGraphException;\n/**\n * Uses the\n * Edmonds-Karp implementation of the basic Ford-Fulkerson augmenting path\n * method to find a maximum flow (and a minimum cut) for the flow network\n * defined by the provided source and sink.\n**/\n\n\tpublic AbstractWeightedGraph<V,E>.FlowGraph maximumFlow(V source, V sink);\n/**\n * Uses Prim's minimum spanning tree to\n * return a set of edges that forms a minimum spanning tree for this graph.\n * It throws a <code>DisconnectedGraphException</code> when the graph is not connected,\n * a <code>NegativeWeightEdgeException</code> when a negative weight edge\n * is encountered, and an <code>IllegalArgumentException</code> when the graph is directed.\n**/\n\n\tpublic Set<E> primMST() throws NegativeWeightEdgeException, DisconnectedGraphException;\n/**\n * Uses\n * Dijkstra's shortest path algorithm to compute and return a shortest path tree\n * for the given source vertex. It throws a <code>NegativeWeightEdgeException</code> when the\n * graph has a negative weight edge reachable from the source.\n**/\n\n\tpublic InTree<V,E> weightedShortestPaths(V source)\n\t\tthrows NegativeWeightEdgeException, DisconnectedGraphException;\n}",
"public static void exampleWeightedGraph() {\n\t\t\n\t\t// create unidrected topology\n\t\tTopology topology = new Topology();\n\t\t\n\t\t// Create edge with high weight and edge with low weight\n\t\tEdge edgeHighWeight = new Edge();\n\t\tedgeHighWeight.setWeight(1000);\n\t\t\n\t\tEdge edgeLowWeight = new Edge();\n\t\tedgeLowWeight.setWeight(1);\n\t\t\n\t\t// Assign edges to topology\n\t\ttopology.addEdge(\"1\", \"4\", edgeHighWeight);\n\t\ttopology.addEdge(\"2\", \"3\", edgeLowWeight);\n\t\ttopology.addEdge(\"1\", \"2\", edgeLowWeight);\n\t\ttopology.addEdge(\"4\", \"3\", edgeLowWeight);\n\t\t\n\t\t// convert to JGraphT\n\t\tWeightedGraph<String, DefaultWeightedEdge> graph = \n\t\t\t\tJGraphTConverter.getWeightedGraph(topology);\n\t\t\n\t\t// Find shortest paths\n\t\tString source = \"1\";\n\t\tString destination = \"3\";\n\t\tList<DefaultWeightedEdge> sp = \n\t\t\t\tDijkstraShortestPath.findPathBetween(graph, source, destination);\n\t\t\n\t\t// Print results\n\t\tSystem.out.println(\"Shortest path from \" + source + \" to \" + destination + \":\");\n\t\tfor (DefaultWeightedEdge e : sp) {\n\t\t\tSystem.out.println(graph.getEdgeSource(e) + \" -> \" + graph.getEdgeTarget(e));\n\t\t}\n\t}",
"public double getWeight()\r\n {\r\n return this.aWeight ;\r\n }",
"public int getWeight()\n {\n return this.aWeight;\n\n }",
"public abstract double getWeight ();",
"public void setWeight(int w){\n\t\tweight = w;\n\t}",
"public void addWeight(){\n\t\tweight++;\n\t}",
"public void setWeight(double w){\n weight = w;\n }",
"private static SimpleWeightedGraph<String, DefaultWeightedEdge> criaGrafo() {\r\n\t\tSimpleWeightedGraph<String,DefaultWeightedEdge> graph = new SimpleWeightedGraph<String, DefaultWeightedEdge>(DefaultWeightedEdge.class);\r\n\t\t\r\n\t\tgraph.addVertex(\"a\");\tgraph.addVertex(\"b\");\tgraph.addVertex(\"c\");\r\n\t\tgraph.addVertex(\"d\");\tgraph.addVertex(\"e\");\tgraph.addVertex(\"f\");\r\n\t\tgraph.addVertex(\"g\");\tgraph.addVertex(\"h\");\tgraph.addVertex(\"i\");\r\n\t\t\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"a\",\"b\"),2);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"b\",\"c\"),4);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"c\",\"d\"),2);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"d\",\"e\"),1);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"e\",\"f\"),6);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"f\",\"a\"),7);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"a\",\"g\"),3);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"g\",\"i\"),1);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"g\",\"h\"),3);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"g\",\"b\"),6);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"h\",\"c\"),2);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"h\",\"d\"),8);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"h\",\"i\"),4);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"i\",\"f\"),5);\r\n\t\tgraph.setEdgeWeight(graph.addEdge(\"i\",\"e\"),2);\r\n\t\treturn graph;\r\n\t}",
"public void setWeight(Double weight) {\n this.weight = weight;\n }",
"public void setWeight(int w) {\n\t\tweight = w;\n\t}",
"public double getWeight() {\n return this.weight * 2.20462;\n }",
"@RequestMapping(value = \"/max_weight_dag\", method = RequestMethod.GET)\r\n @ResponseBody\r\n public DirectedGraph getMaxWeightDAG() {\n UndirectedGraph graph = new UndirectedGraph(5);\r\n graph.addEdge(0, 1, 10.0);\r\n graph.addEdge(1, 2, 11.0);\r\n graph.addEdge(2, 3, 13.0);\r\n graph.addEdge(3, 4, 14.0);\r\n graph.addEdge(4, 0, 15.0);\r\n return graph;\r\n }",
"public T3 getWeight() {\r\n\t\treturn weight;\r\n\t}",
"public void setWeight(double weight) {\r\n this.weight = weight;\r\n }",
"public void setWeight(int weightIn){\n\t\tthis.edgeWeight = weightIn;\n\t}",
"public int compareTo(Vertex v) {\n return this.weight - v.weight;\n }",
"public void setWeight(double weight) {\n this.weight = weight;\n }",
"default double totalWeight() {\n return edges().stream().mapToDouble(E::weight).sum();\n }",
"int Weight();",
"@Override\n\t\t\tpublic int compare(Edge o1, Edge o2) {\n\t\t\t\treturn o1.weight - o2.weight;\n\t\t\t}",
"@Test\n\tpublic void testGetWeight() {\n\t\tEdge edge1 = new Edge(\"a\", \"b\", 1);\n\t\tEdge edge2 = new Edge(\"b\", \"c\", 2);\n\t\tEdge edge3 = new Edge(\"c\", \"a\", 3);\n\t\tassertEquals(1, edge1.getWeight());\n\t\tassertEquals(2, edge2.getWeight());\n\t\tassertEquals(3, edge3.getWeight());\n\t}",
"public void updateBottomWeight(){\r\n\t \tif(this.bottomNode != null)\r\n\t \t{\r\n\t \t\tif( this.bottomNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.bottomWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.bottomNode.isRoad() == true && this.bottomNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.bottomWeight = this.bottomNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.bottomWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }",
"public void setWeight(Integer weight) {\n this.weight = weight;\n }",
"public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}",
"public int getWeight() {\n return parameter.getWeight();\n }",
"public void updateWeightEdge(String srcLabel, String tarLabel, int weight) {\n // Implement me!\n\n String e = srcLabel + tarLabel;\n if (indexOf(e, edges) < 0) {\n return;\n }\n\n\n int srcInt = indexOf(srcLabel, vertices);\n int tarInt = indexOf(tarLabel, vertices);\n weights[srcInt][edges.get(e)] = weight;\n weights[tarInt][edges.get(e)] = weight * (-1);\n\n if (weight == 0) {\n edges.remove(e);\n return;\n }\n\n\n\n }",
"public float getWeightUsed()\r\n {\r\n // implement our own magic formula here ...\r\n return 2.0f;\r\n }",
"public void setWeights(GraphNode pNode, double pWeight){\n ArrayList<ArcGraph> conections = pNode.getConections();\n \n for (int i = 0; i < conections.size(); i++){\n GraphNode destiny_node = conections.get(i).getDestiny();\n GraphNode source_node = conections.get(i).getSource();\n int pos_node = findNode(destiny_node); //returns the pos of the destiny node\n if (!MinDistanceStatus.get(pos_node)){ //if the weight isn't final we change it\n MinDistance.set(pos_node, conections.get(i).getWeight() + pWeight); // we change the min weight of the node\n References.set(pos_node, conections.get(i)); //Bueno\n }\n }\n }"
] | [
"0.6999501",
"0.69908",
"0.69335204",
"0.6916612",
"0.67854357",
"0.6759691",
"0.67527413",
"0.6726897",
"0.6726216",
"0.672336",
"0.6717877",
"0.669001",
"0.669001",
"0.6687693",
"0.6687693",
"0.66788584",
"0.66788584",
"0.66645813",
"0.66589934",
"0.66533494",
"0.6650573",
"0.6648157",
"0.66412055",
"0.66405785",
"0.6639924",
"0.66344345",
"0.66331834",
"0.6617821",
"0.66157335",
"0.66138965",
"0.66052234",
"0.6601673",
"0.659905",
"0.6596693",
"0.6588734",
"0.6584056",
"0.6578065",
"0.6578065",
"0.6577443",
"0.65758806",
"0.65758806",
"0.6560635",
"0.65500945",
"0.65500116",
"0.65500015",
"0.65472275",
"0.65286946",
"0.65286946",
"0.6524475",
"0.6507424",
"0.65009767",
"0.6490905",
"0.6490905",
"0.6476863",
"0.64754605",
"0.6467141",
"0.6452126",
"0.64514333",
"0.6447859",
"0.64456266",
"0.6444989",
"0.64352775",
"0.642647",
"0.6410011",
"0.639138",
"0.6337001",
"0.63322157",
"0.6296101",
"0.62892735",
"0.6286378",
"0.62851244",
"0.6280886",
"0.62772346",
"0.62727356",
"0.62715226",
"0.62712497",
"0.6250812",
"0.6248289",
"0.6247913",
"0.6247357",
"0.6239853",
"0.6231812",
"0.6228458",
"0.6218325",
"0.61856294",
"0.6175707",
"0.61239845",
"0.6119385",
"0.6111928",
"0.6107647",
"0.6099046",
"0.6093387",
"0.6083896",
"0.60734385",
"0.6063593",
"0.60548484",
"0.6044472",
"0.6041372",
"0.6038468",
"0.6031108",
"0.6029709"
] | 0.0 | -1 |
Pr??ft ob Knoten v im Graph vorhanden ist. | boolean containsVertex(V v); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Graph getGraph() {\n return graph;\n }",
"public Graph getGraph();",
"public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}",
"public void buildGraph(){\n\t}",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"public ReilGraph getGraph() {\n return m_graph;\n }",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"protected final AbstractDGraph getGraph() {\n return this.graph;\n }",
"public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"@Override\r\n public weighted_graph getGraph() {\r\n return this.Graph;\r\n }",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"private void transPose(graph g) {\n\t\tIterator it = g.getV().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tnode_data temp = (node_data) it.next();\n\t\t\tif(g.getE(temp.getKey())!=null) {\n\t\t\t\tIterator it1 = g.getE(temp.getKey()).iterator();\n\t\t\t\twhile (it1.hasNext()) {\n\t\t\t\t\tedge_data temp1 = (edge_data) it1.next();\n\t\t\t\t\tif (temp1 != null && temp1.getTag() == 0) {\n\t\t\t\t\t\tif (g.getEdge(temp1.getDest(), temp1.getSrc()) != null) {\n\t\t\t\t\t\t\tEdge temps = new Edge((Edge)g.getEdge(temp1.getSrc(),temp1.getDest()));\n\t\t\t\t\t\t\tdouble weight1 = g.getEdge(temp1.getSrc(),temp1.getDest()).getWeight();\n\t\t\t\t\t\t\tdouble weight2 = g.getEdge(temp1.getDest(),temp1.getSrc()).getWeight();\n\t\t\t\t\t\t\tg.connect(temp1.getSrc(),temp1.getDest(),weight2);\n\t\t\t\t\t\t\tg.connect(temps.getDest(),temps.getSrc(),weight1);\n\t\t\t\t\t\t\tg.getEdge(temps.getDest(), temps.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.getEdge(temps.getSrc(),temps.getDest()).setTag(1);\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tg.connect(temp1.getDest(), temp1.getSrc(), temp1.getWeight());\n\t\t\t\t\t\t\tg.getEdge(temp1.getDest(), temp1.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.removeEdge(temp1.getSrc(), temp1.getDest());\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public OrientGraph getGraph();",
"public interface Graph extends Container {\n\n /**\n * returns how many elements are in the container.\n *\n * @return int = number of elements in the container.\n */\n public int size();\n\n /**\n * returns true if the container is empty, false otherwise.\n *\n * @return boolean true if container is empty\n */\n public boolean isEmpty();\n\n /**\n * return the number of vertices in the graph\n * \n * @return number of vertices in the graph\n */\n public int numVertices();\n\n /**\n * returns the number for edges in the graph\n * \n * @return number of edges in the graph\n */\n public int numEdges();\n\n /**\n * returns an Enumeration of the vertices in the graph\n * \n * @return vertices in the graph\n */\n public Enumeration vertices();\n\n \n /**\n * returns an Enumeration of the edges in the graph\n * \n * @return edges in the graph\n */\n public Enumeration edges();\n\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration directedEdges();\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration undirectedEdges();\n\n /**\n * returns the degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the degree of\n * @return degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int degree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the in degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the in degree of\n * @return in degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int inDegree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the out degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the out degree of\n * @return out degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int outDegree(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the adjacent vertices of\n * @return enumeration of vertices adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices in adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the in adjacent vertices of\n * @return enumeration of vertices in adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices out adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the out adjacent vertices of\n * @return enumeration of vertices out adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration incidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges in incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges in incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration inIncidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges out incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges out incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;\n\n public Position[] endVertices(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the Vertex on Edge ep opposite from Vertex vp\n * \n * @param vp Vertex to find opposite of\n * @param ep Edge containing the vertices\n * @return \n * @exception InvalidPositionException\n */\n public Position opposite(Position vp, Position ep) throws InvalidPositionException;\n\n /**\n * Determine whether or not two vertices are adjacent\n * \n * @param vp Position of one Vertex to check\n * @param wp Position of other Vertex to check\n * @return true if they are adjacent, false otherwise\n * @exception InvalidPositionException\n * thrown if either Position is invalid for this container\n */\n public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;\n\n /**\n * Returns the destination Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the destination Vertex of\n * @return the destination Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position destination(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the origin Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the origin Vertex of\n * @return the origin Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position origin(Position ep) throws InvalidPositionException;\n\n /**\n * Returns true if the given Edge Position is directed,\n * otherwise false\n * \n * @param ep Edge Position to check directed on\n * @return true if directed, otherwise false\n * @exception InvalidPositionException\n */\n public boolean isDirected(Position ep) throws InvalidPositionException;\n\n /**\n * Inserts a new undirected Edge into the graph with end\n * Vertices given by Positions vp and wp storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding one Vertex endpoint\n * @param wp Position holding the other Vertex endpoint\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new directed Edge into the graph with end\n * Vertices given by Positions vp, the origin, and wp,\n * the destination, storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding the origin Vertex\n * @param wp Position holding the destination Vertex\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new Vertex into the graph holding Object o\n * and returns a Position holding the new Vertex\n * \n * @param o the Object to hold in this Vertex\n * @return the Position holding the Vertex\n */\n public Position insertVertex(Object o);\n\n /**\n * This method removes the Vertex held in the passed in\n * Position from the Graph\n * \n * @param vp the Position holding the Vertex to remove\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void removeVertex(Position vp) throws InvalidPositionException;\n\n /**\n * Used to remove the Edge held in Position ep from the Graph\n * \n * @param ep the Position holding the Edge to remove\n * @exception InvalidPositionException\n * thrown if Position ep is invalid for this container\n */\n public void removeEdge(Position ep) throws InvalidPositionException;\n\n /**\n * This routine is used to change a directed Edge into an\n * undirected Edge\n * \n * @param ep a Position holding the Edge to change from directed to\n * undirected\n * @exception InvalidPositionException\n */\n public void makeUndirected(Position ep) throws InvalidPositionException;\n\n /**\n * This routine can be used to reverse the diretion of a \n * directed Edge\n * \n * @param ep a Position holding the Edge to reverse\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void reverseDirection(Position ep) throws InvalidPositionException;\n\n /**\n * Changes the direction of the given Edge to be out incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be out incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionFrom(Position ep, Position vp) throws InvalidPositionException;\n\n\n /**\n * Changes the direction of the given Edge to be in incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be in incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionTo(Position ep, Position vp) throws InvalidPositionException;\n\n}",
"protected Graph<VLabel, ELabel> theGraph() {\n return _graph;\n }",
"protected abstract Graph filterGraph();",
"@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }",
"@Override\n\tpublic int graphOrder() {\n\t\treturn vertices.size();\n\t}",
"public void drawGraph(Graph graph);",
"public void testaGraph() {\n\t\tEstacaoDAO a = new EstacaoDAO();\n\t\ta.carregarEstacoes();\n\t\tLinha b = new Linha(\"a\");\n\t\tb.loadAllStations(a);\n\t\tb.shortestPath(a,\"Curado\",\"Recife\");\n\t}",
"void printGraph();",
"@Override\n public Graph getGraphModel() {\n return this.graph;\n }",
"public Graph getGraph() {\n\t\treturn this.Graph;\n\t}",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"public static <V> Graph<V> getMinimumSpanningTreeKruskal(Graph<V> graph) {\n class Arista {\n private V origen;\n private V destino;\n private double peso;\n\n private Arista(V pOrigen, double pPeso, V pDestino) {\n origen = pOrigen;\n peso = pPeso;\n destino = pDestino;\n }\n }\n\n V[] array = graph.getValuesAsArray();\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] matrizCopia = new double[array.length][array.length];\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n matrizCopia[x][y] = matrizPesos[x][y];\n }\n }\n\n List<Arista> aristas = new LinkedList<>();\n\n // Se buscan todas las aristas del grafo y se enlistan\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n if (matrizCopia[x][y] != -1) {\n if (!graph.isDirected()) {\n matrizCopia[y][x] = -1;\n }\n Arista ar = new Arista(array[x], matrizCopia[x][y], array[y]);\n aristas.add(ar);\n }\n }\n }\n\n //Se ordenan las listas de menor a mayor, aplicando el ordenamiento de burbuja.\n if (aristas.size() > 1) {\n int i = 0;\n for (int x = 2; x < aristas.size(); x++) {\n for (int y = 1; y < aristas.size() - i; y++) {\n Arista temp = aristas.get(y);\n Arista temp2 = aristas.get(y+1);\n if (temp.peso > temp2.peso) {\n aristas.set(y, temp2);\n aristas.set(y+1, temp);\n }\n }\n i++;\n }\n }\n\n List<Graph<V>> bosque = new LinkedList<>();\n for (int x = 0; x < array.length; x++) {\n Graph<V> temp = new AdjacencyMatrix<>();\n temp.addNode(array[x]);\n bosque.add(temp);\n }\n\n Iterator<Arista> it1 = aristas.iterator();\n while (it1.hasNext()) {\n Arista aux = it1.next();\n int arbolOrigen = buscarArbol(aux.origen, bosque);\n int arbolDestino = buscarArbol(aux.destino, bosque);\n if (arbolDestino < arbolOrigen) {\n int temp = arbolDestino;\n arbolDestino = arbolOrigen;\n arbolOrigen = temp;\n }\n\n if (arbolDestino != arbolOrigen) { // Significa que estan en diferentes arboles.\n Graph<V> grafoDestino = bosque.remove(arbolDestino);\n Graph<V> grafoTemp = unirGrafos(bosque.get(arbolOrigen), grafoDestino);\n grafoTemp.addEdge(aux.origen, aux.destino, aux.peso);\n bosque.set(arbolOrigen, grafoTemp);\n }\n }\n if (bosque.size() != 1) { // Significa que hay vertices aislados.\n for (int x = 2; x <= bosque.size(); x++) {\n Graph<V> grafoTemp = bosque.remove(x);\n Graph<V> grafosUnidos = unirGrafos(bosque.get(1), grafoTemp);\n bosque.set(1, grafosUnidos);\n }\n }\n\n return bosque.get(1);\n }",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"private static int nonIsolatedVertex(Graph G) {\n for (int v = 0; v < G.V(); v++)\n if (G.degree(v) > 0)\n return v;\n return -1;\n }",
"String targetGraph();",
"Graph getRecentGraph();",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"public interface Graph {\n\n /** @return The number of vertices in the graph. */\n int getNumVertices();\n\n /** @return The number of edges in the graph. */\n int getNumEdges();\n\n /** @return A read-only set of all the vertices in the graph. */\n Set<Vertex> getVertices();\n\n /** @return A read-only set of all edges (directed or undirected) in the graph. */\n Set<Edge> getEdges();\n\n /** Removes all vertices and edges from the graph. */\n void clear();\n\n /** Adds a vertex to this graph. */\n void add(Vertex vertex);\n\n /** Adds an edge to the graph. */\n void add(Edge edge);\n\n /** Adds all the vertices and edges in another graph to this graph. */\n void addAll(Graph graph);\n\n /** Removes vertex from the graph and any edges attached to it. */\n void remove(Vertex vertex);\n\n /** Removes an existing edge from the graph. */\n void remove(Edge edge);\n\n /** Checks if the graph contains a given vertex. */\n boolean contains(Vertex vertex);\n\n /** Checks if the graph contains a given edge. */\n boolean contains(Edge edge);\n\n /** @return An unmodifiable set of all directed edges entering vertex. */\n Set<Edge> getInEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all directed edges coming out of vertex. */\n Set<Edge> getOutEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all undirected edges connected to vertex. */\n Set<Edge> getUndirectedEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all edges (directed and undirected) connected to vertex. */\n Set<Edge> getMixedEdges(Vertex vertex);\n\n /** @return The number of undirected edges connected to vertex. */\n int getUndirectedDegree(Vertex vertex);\n\n /** @return The number of directed edges coming into vertex. */\n int getInDegree(Vertex vertex);\n\n /** @return The number of directed edges coming out of vertex. */\n int getOutDegree(Vertex vertex);\n\n /**\n * @return The number of directed and undirected edges connected to this vertex. Equivalent to\n * inDegree + outDegree + undirectedDegree.\n */\n int getMixedDegree(Vertex vertex);\n\n /** Registers a listener for changes in the graph model. */\n void addListener(GraphListener listener);\n\n /** Unregisters a listener for changes in the graph model. */\n void removeListener(GraphListener listener);\n\n /** @return Attributes that apply to the entire graph. */\n Attributes getAttributes();\n\n /** Creates a new vertex, adds it to the graph, and returns a reference to it. */\n Vertex createVertex();\n\n /** Creates a new edge, adds it to the graph, and returns a reference to it. */\n Edge createEdge(Vertex src, Vertex tgt, boolean directed);\n}",
"public weighted_graph getGraph();",
"public Graph<Integer> getGraph() {\n return E;\n }",
"void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}",
"Graph testGraph();",
"public void printDGraph(){\n System.out.println(this.toString());\n }",
"private void getGraph (ActionEvent evt) {\n\t\t\t//TODO\n\t}",
"public interface Graph {\n\n\t/**\n\t * Method to add the edge from start to end to the graph.\n\t * Adding self-loops is not allowed.\n\t * @param start start vertex\n\t * @param end end vertex\n\t */\n\tpublic void addEdge(int start, int end);\n\n\t/**\n\t * Method to add the edge with the given weight to the graph from start to end.\n\t * Adding self-loops is not allowed.\n\t * @param start number of start vertex\n\t * @param end number of end vertex\n\t * @param weight weight of edge\n\t */\n\tpublic void addEdge(int start, int end, double weight);\n\n\t/**\n\t * Method to add a vertex to the graph.\n\t */\n\tpublic void addVertex();\n\t\n\t/**\n\t * Method to add multiple vertices to the graph.\n\t * @param n number of vertices to add\n\t */\n\tpublic void addVertices(int n);\n\n\t/**\n\t * Returns all neighbors of the given vertex v (all vertices i with {i,v} in E or (i,v) or (v,i) in E).\n\t * @param v vertex whose neighbors shall be returned\n\t * @return List of vertices adjacent to v\n\t */\n\tpublic List<Integer> getNeighbors(int v);\n\n\t/**\n\t * Returns a list containing all predecessors of v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all predecessors of v\n\t */\n\tpublic List<Integer> getPredecessors(int v);\n\n\t/**\n\t * Returns a list containing all successors v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all edges starting in v\n\t */\n\tpublic List<Integer> getSuccessors(int v);\n\n\t/**\n\t * Method to get the number of vertices.\n\t * @return number of vertices\n\t */\n\tpublic int getVertexCount();\n\n\t/**\n\t * Method to get the weight of the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of edge / arc\n\t * @param end end vertex of edge / arc\n\t * @return Double.POSITIVE_INFINITY, if the edge does not exist, c_{start, end} otherwise\n\t */\n\tpublic double getEdgeWeight(int start, int end);\n\n\t/**\n\t * Method to test whether the graph contains the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic boolean hasEdge(int start, int end);\n\n\t/**\n\t * Method to remove an edge from the graph, defined by the vertices start and end.\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic void removeEdge(int start, int end);\n\n\t/**\n\t * Method to remove the last vertex from the graph.\n\t */\n\tpublic void removeVertex();\n\n\t/**\n\t * Returns whether the graph is weighted.\n\t * A graph is weighted if an edge with weight different from 1.0 has been added to the graph.\n\t * @return true if the graph is weighted\n\t */\n\tpublic boolean isWeighted();\n\n\t/**\n\t * Returns whether the graph is directed.\n\t * @return true if the graph is directed\n\t */\n\tpublic boolean isDirected();\n\n}",
"public GraphImpl(int[][] g) {\n\t\tanzKnoten = g.length;\n\t\tgraph = g;\n\t}",
"public Graph2D getGraph() {\n return mGraph;\n }",
"@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}",
"void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }",
"@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }",
"private void paintPath(Graphics graphics) { \n graphics.setColor(Color.blue);\n //si no se encuentra un camino, mostrar error\n if(Path == null){\n JOptionPane.showMessageDialog(null, \"No se encontro camino.\");\n }\n else\n for (Node n : Path) {\n if (!this.Graph.getGoals().contains(n) && n != this.Graph.getInitial()) {\n int x = n.getX(); int y = n.getY();\n paintRectangle(graphics, x, y); \n }\n }\n }",
"public Graph<V, E> getGraph() {\n\t\treturn graph;\n\t}",
"public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static String graphTest(GraphInterface subject) {\n // Let the Test begin!\n System.out.println(\"Test beginnt...\");\n if (subject.getNumberOfVertices() != 10)\n return \"FEHLER: Liste nicht mit 10 Knoten initialisiert!\";\n // Lets now check the fail-safes\n subject.addEdge(11, 1, 1);\n subject.addEdge(-1, 2, 1);\n subject.removeEdge(13, 3);\n subject.removeEdge(-3, 3);\n subject.removeEdge(6, 0);// Does not exist (But the vertices do)!\n\n if (subject.getWeight(7, 0) != 0)\n return \"FEHLER: getWeight(7, 0): Kante 7<->0 existiert nicht!\";\n\n if (subject.getWeight(-7, 0) != 0)\n return \"FEHLER: getWeight(-7, 0):Kante -7<->0 existiert nicht!\";\n\n if (subject.getWeight(17, 0) != 0)\n return \"FEHLER: getWeight(17, 0): Kante 17<->0 existiert nicht!\";\n\n if (subject.getDegree(-10) != -1)\n return \"FEHLER: getDegree(-10): Knoten -10 existiert nicht!\";\n\n if (subject.getDegree(140) != -1)\n return \"FEHLER: getDegree(140): Knoten 140 existiert nicht!\";\n\n if (subject.getDegree(0) == -1)\n return \"FEHLER: getDegree(0): Knoten 0 existiert (Und hat Kanten)!\";\n\n if (subject.getNeighbours(-3) != null)\n return \"FEHLER: getNeighbours(-3): Knoten -3 existiert nicht!\";\n\n if (subject.getNeighbours(13) != null)\n return \"FEHLER: getNeighbours(13): Knoten 13 existiert nicht!\";\n\n // lets check if there are NO edges\n for (int i = 0; i < 10; i++)\n if (subject.getDegree(i) != 0)\n return \"FEHLER: getDegree(\" + i + \")!=0\";\n for (int i = 0; i < 10; i++)\n if (subject.getNeighbours(i).length != 0)\n return \"FEHLER: getNeighbours(\" + i + \").length!=0\";\n // create a network and check it\n for (int edge = 0; edge < edges.length; edge++) {\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 0)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=0\";\n subject.addEdge(edges[edge][0], edges[edge][1], edges[edge][2]);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != edges[edge][2])\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=\" + edges[edge][2];\n int[] tempNeighbours = subject.getNeighbours(edges[edge][0]);\n boolean foundFlag = false;\n for (int j = 0; j < tempNeighbours.length; j++)\n if (edges[edge][1] == tempNeighbours[j]) {\n foundFlag = true;\n break;\n }\n if (!foundFlag)\n return \"Fehler: getNeighbours(\" + edges[edge][0]\n + \") enth�lt nicht die vorhandene Kante '\"\n + edges[edge][1] + \"'!\";\n }\n\n // and finally: delete some edges\n for (int edge = 0; edge < edges.length; edge++) {\n subject.addEdge(edges[edge][0], edges[edge][1], 14);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 14)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=14\";\n subject.removeEdge(edges[edge][0], edges[edge][1]);\n if (subject.getWeight(edges[edge][0], edges[edge][1]) != 0)\n return \"FEHLER: getWeight(\" + edges[edge][0] + \", \"\n + edges[edge][1] + \")!=0\";\n }\n\n return \"Keine Fehler gefunden!\\n\";\n }",
"public interface Graph<V>\n{\n /**\n * Adds the specified vertex to this graph. The given vertex will not be\n * added to this graph if this graph contains the vertex. In other words\n * this graph does not allow duplicate vertices. The way this graph\n * concludes if the specified vertex is a duplicate is through the equals\n * convention. For example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to add to this graph.\n *\n * @return <tt>true</tt> of the specified vertex is added to this\n * graph; otherwise <tt>false</tt>.\n */\n public boolean addVertex(V vertex);\n\n /**\n * Removes the specified vertex from this graph if the vertex actually\n * exists in this graph. Any edges that are connected to the given\n * vertex will also be removed from this graph. If the specified vertex\n * is not contained within this graph then the graph is unchanged and this\n * operation return <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to remove from this graph.\n * \n * @return <tt>true</tt> if the given vertex is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeVertex(V vertex);\n\n /**\n * Gets the set of vertices contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of vertices. \n *\n * @return a read-only view of the vertices contained withing this graph.\n */\n public Set<V> getVertices();\n\n /**\n * Checks if this graph contains the specified vertex. If the given\n * vertex is present in this graph, this operation returns <tt>true</tt>\n * ;otherwise <tt>false</tt>. The way this graph concludes if the\n * specified vertex is a present is through the equals convention. For\n * example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to verify is present within this graph.\n * \n * @return <tt>true</tt> if the specified vertex is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsVertex(V vertex);\n\n /**\n * Adds an edge (based on the specified vertices) to this graph. The edge\n * will not be added to this graph if this graph already contains an edge\n * between the specified vertices. In other words this graph does not allow\n * duplicate edges.\n * \n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to add to this graph.\n * @param target the target vertex for the edge to add to this graph.\n *\n * @return <tt>true</tt> of the edge is added to this graph; otherwise\n * <tt>false</tt>.\n */\n public Edge<V> addEdge(V source, V target);\n\n /**\n * Removes the edge (based on the given vertices) from this graph if the\n * edge actually exists in this graph. If the specified vertices are not\n * contained within this graph then the graph is unchanged and this\n * operation returns <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to remove.\n * @param target the target vertex for the edge to remove.\n *\n * @return <tt>true</tt> if the edge that contains the specified vertices\n * is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeEdge(V source, V target);\n\n /**\n * Gets the edge connected by the given source and target vertices. If\n * either of the specified vertices are not present in this graph, then\n * this operation returns null. If any of the specified vertices are\n * <code>null</code> then <code>null</code> is returned.\n *\n * <p>The order of vertices in the resulting edge is not guaranteed if this\n * graph is an undirected graph.</p> \n *\n * @param source the source vertex for the edge to lookup in this graph.\n * @param target the target vertex for the edge to lookup in this graph.\n *\n * @return an edge that connects the specified vertices.\n */\n public Edge<V> getEdge(V source, V target);\n\n /**\n * Gets a set of edges connected to the specified vertex that are contained\n * within this graph. The set is an unmodifiable view so modifications to\n * the set do not affect this graph's internal set of edges.\n *\n * @param vertex the vertex connected to the set of edges to lookup.\n * \n * @return a read-only view of the edges connected to the given vertex that\n * are withing this graph.\n */\n public Set<Edge<V>> getEdges(V vertex);\n\n /**\n * Gets the set of edges contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of edges.\n *\n * @return a read-only view of the edges contained withing this graph.\n */\n public Set<Edge<V>> edgeSet();\n\n /**\n * Checks if this graph contains an edge based on the specified vertices.\n * If either of the given vertices are not present in this graph, this\n * operation returns <tt>false</tt>. Both specified vertices have to exists\n * in this graph and have a defined edge in order for this method to return\n * <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to verify is present within\n * this graph.\n * @param target the target vertex for the edge to verify is present within \n * this graph.\n *\n * @return <tt>true</tt> if the edge is present in this graph; otherwise\n * <tt>false</tt>.\n */\n public boolean containsEdge(V source, V target);\n\n /**\n * Checks if this graph contains the specified edge. If the given edge is\n * not present in this graph, this operation returns <tt>false</tt>.\n *\n * <p>This method will return false if the given edge is <code>null</code>\n * </p>.\n *\n * @param edge the edge to verify is present within this graph.\n *\n * @return <tt>true</tt> if the specified edge is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsEdge(Edge<V> edge);\n\n /**\n *\n * @return\n */\n public Set<V> breadthFirstSearch();\n\n /**\n *\n * @return\n */\n public Set<V> depthFirstSearch();\n\n /**\n * \n * @return\n */\n public Set<Edge<V>> minSpanningTree();\n}",
"public VBox getGraph(){\n\t\treturn graph.getGraph();\n\t}",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"public void drawGraph()\n\t{\n\t\tMatrixStack transformStack = new MatrixStack();\n\t\ttransformStack.getTop().mul(getWorldTransform());\n\t\tdrawSelfAndChildren(transformStack);\n\t}",
"private static <V> Graph<V> unirGrafos(Graph<V> grafo1, Graph<V> grafo2) {\n V[] array = grafo2.getValuesAsArray();\n double[][] matriz = grafo2.getGraphStructureAsMatrix();\n for (int x = 0; x < array.length; x++) {\n grafo1.addNode(array[x]);\n for (int y = 0; y < array.length; y++) {\n if (matriz[x][y] != -1) {\n if (!grafo2.isDirected()) {\n matriz[y][x] = -1;\n }\n grafo1.addNode(array[y]);\n grafo1.addEdge(array[x], array[y], grafo2.getWeight(array[x], array[y]));\n }\n }\n }\n return grafo1;\n }",
"void graphSelectionChanged(Mode mode);",
"public abstract String rawGraphToString();",
"public void buildGraph() {\n //System.err.println(\"Build Graph \"+this);\n if (node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).restoreSceneGraphObjectReferences( control.getSymbolTable() );\n }",
"public Graphs() {\n graph = new HashMap<>();\n }",
"@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }",
"public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}",
"private void paintGraph() {\n if(graph) {\n for (MapFeature street : mapFStreets) {\n if (!(street instanceof Highway)) continue;\n Highway streetedge = (Highway) street;\n Iterable<Edge> edges = streetedge.edges();\n if (edges == null) continue;\n Iterator<Edge> it = edges.iterator();\n g.setStroke(new BasicStroke(0.0001f));\n g.setPaint(Color.CYAN);\n while (it.hasNext()) {\n Edge e = it.next();\n if (e.isOneWay())\n g.setPaint(Color.orange);\n else if (e.isOneWayReverse())\n g.setPaint(Color.PINK);\n g.draw(e);\n }\n\n\n }\n for (MapFeature street : mapFStreets) {\n if (!(street instanceof Highway)) continue;\n Highway streetedge = (Highway) street;\n List<Point2D> points = streetedge.getPoints();\n for(Point2D p : points){\n g.setPaint(Color.yellow);\n g.draw(new Rectangle2D.Double(p.getX(), p.getY(), 0.000005, 0.000005));\n }\n\n }\n }\n }",
"public void drawGraph(Graphics g) \n\t{\n\t\tNode<T> n = start;\n\t\tint count = 0;\t//loop counter variable\n\t\twhile((n.next != start && count == 0) || count < 1) //while not at end of list and hasnt looped\n\t\t{\n\t\t\tint[] pos = n.computeXY();\t\t\t\t\t\t//compute coordinates of the current node\n\t\t\tint[] nextPos = n.next.computeXY();\t\t\t\t//compute coordinates of the next node\n\n\t\t\t//System.out.println(\"--\\nval: \" + n.value + \" position: \" + pos[0] + \", \" + pos[1]);\n\n\t\t\tg.setColor(Color.BLACK); //set draw color to black\n\t\t\tg.drawLine(pos[0], pos[1], nextPos[0], nextPos[1]); //draw line between current \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and next node\n\t\t\tif(n.isCurrent) //if the node n is the current node in the list\n\t\t\t{\n\t\t\t\tg.setColor(new Color(100, 200, 100));\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tg.setColor(new Color(130, 225, 235));\t\n\t\t\t}\n\n\t\t\tg.fillOval(pos[0] - 25, pos[1] - 25, 50, 50);\t//fill the oval\n\t\t\tg.setColor(Color.BLACK);\t\t\t\t\t\t//set the color of the oval\n\t\t\tif(n == start) \t\t\t\t\t\t\t\t\t//if n is the starting node\n\t\t\t{\n\t\t\t\tg.drawOval(pos[0] - 20, pos[1] - 20, 40, 40);\n\t\t\t}\n\t\t\tg.drawOval(pos[0] - 25, pos[1] - 25, 50, 50);\n\t\t\tg.drawString(n.value.toString(), pos[0], pos[1] + 5);\n\t\t\t\n\t\t\tif(n.next == start) //if we are at the end\n\t\t\t{\n\t\t\t\tcount++;\t\t//increment loop counter\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t}",
"public static <V> void printAllShortestPaths(Graph<V> graph) {\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] pesos = new double[matrizPesos.length][matrizPesos.length];\n V[] vertices = graph.getValuesAsArray();\n V[][] caminos = (V[][]) new Object[matrizPesos.length][matrizPesos.length];\n for (int x = 0; x < matrizPesos.length; x++) {\n for (int y = 0; y < matrizPesos.length; y++) {\n if (x == y) {\n pesos[x][y] = -1;\n } else {\n if (matrizPesos[x][y] == -1) {\n pesos[x][y] = Integer.MAX_VALUE; //Si no existe arista se pone infinito\n } else {\n pesos[x][y] = matrizPesos[x][y];\n }\n }\n caminos[x][y] = vertices[y];\n }\n }\n for (int x = 0; x < vertices.length; x++) { // Para cada uno de los vertices del grafo\n for (int y = 0; y < vertices.length; y++) { // Recorre la fila correspondiente al vertice\n for (int z = 0; z < vertices.length; z++) { //Recorre la columna correspondiente al vertice\n if (y != x && z != x) {\n double tam2 = pesos[y][x];\n double tam1 = pesos[x][z];\n if (pesos[x][z] != -1 && pesos[y][x] != -1) {\n double suma = pesos[x][z] + pesos[y][x];\n if (suma < pesos[y][z]) {\n pesos[y][z] = suma;\n caminos[y][z] = vertices[x];\n }\n }\n }\n }\n }\n }\n\n //Cuando se termina el algoritmo, se imprimen los caminos\n for (int x = 0; x < vertices.length; x++) {\n for (int y = 0; y < vertices.length; y++) {\n boolean seguir = true;\n int it1 = y;\n String hilera = \"\";\n while (seguir) {\n if (it1 != y) {\n hilera = vertices[it1] + \"-\" + hilera;\n } else {\n hilera += vertices[it1];\n }\n if (caminos[x][it1] != vertices[it1]) {\n int m = 0;\n boolean continuar = true;\n while (continuar) {\n if (vertices[m].equals(caminos[x][it1])) {\n it1 = m;\n continuar = false;\n } else {\n m++;\n }\n }\n } else {\n if (x == y) {\n System.out.println(\"El camino entre \" + vertices[x] + \" y \" + vertices[y] + \" es: \" + hilera);\n } else {\n hilera = vertices[x] + \"-\" + hilera;\n if (pesos[x][y] == Integer.MAX_VALUE) {\n System.out.println(\"El camino mas corto entre \" + vertices[x] + \" y \" + vertices[y] + \" es: infinito (no hay camino)\");\n } else {\n System.out.println(\"El camino mas corto entre \" + vertices[x] + \" y \" + vertices[y] + \" es: \" + hilera + \" con distancia de: \" + (pesos[x][y]));\n }\n }\n seguir = false;\n }\n }\n }\n System.out.println();\n }\n }",
"@Override\n \t\t\t\tpublic String getGraphId() {\n \t\t\t\t\treturn null;\n \t\t\t\t}",
"public boolean isDynamicGraph();",
"public ParseTree getGraph() {\n return graph;\n }",
"public static void printGraph( Graph graph ){\n\t\tint size = graph.getGraph().size();\n\t\tStringBuilder sb = new StringBuilder(); \n\t\tint weight = 0;\n\t\tfor( String start: graph.getGraph().keySet() ) {\n\t\t\tfor( String end : graph.getGraph().get(start).keySet() ) {\n\t\t\t\tweight = graph.getGraph().get(start).get(end);\n\t\t\t\tsb.append( start + end + String.valueOf(weight) + \", \" );\n\t\t\t}\n\t\t}\n\t\tsb.delete(sb.length()-2, sb.length());\n\t\tSystem.out.println(sb.toString());\n\t}",
"public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }",
"public boolean isGraphEnabled() {\r\n \t\treturn graph.isEnabled();\r\n \t}",
"public DirectedGraph<VertexObject, String> getGraph() {\n return graph;\n }",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"public interface Graph<V> {\n\t/** Return the number of vertices in the graph */\n\tpublic int getSize();\n\n\t/** Return the vertices in the graph */\n\tpublic java.util.List<V> getVertices();\n\n\t/** Return the object for the specified vertex index */\n\tpublic V getVertex(int index);\n\n\t/** Return the index for the specified vertex object */\n\tpublic int getIndex(V v);\n\n\t/** Return the neighbors of vertex with the specified index */\n\tpublic java.util.List<Integer> getNeighbors(int index);\n\n\t/** Return the degree for a specified vertex */\n\tpublic int getDegree(int v);\n\n\t/** Return the adjacency matrix */\n\tpublic int[][] getAdjacencyMatrix();\n\n\t/** Print the adjacency matrix */\n\tpublic void printAdjacencyMatrix();\n\n\t/** Print the edges */\n\tpublic void printEdges();\n\n\t/** Obtain a depth-first search tree */\n\tpublic AbstractGraph<V>.Tree dfs(int v);\n\n\t/** Obtain a breadth-first search tree */\n\tpublic AbstractGraph<V>.Tree bfs(int v);\n\n\t/**\n\t * Return a Hamiltonian path from the specified vertex Return null if the\n\t * graph does not contain a Hamiltonian path\n\t */\n\tpublic java.util.List<Integer> getHamiltonianPath(V vertex);\n\n\t/**\n\t * Return a Hamiltonian path from the specified vertex label Return null if\n\t * the graph does not contain a Hamiltonian path\n\t */\n\tpublic java.util.List<Integer> getHamiltonianPath(int inexe);\n}",
"public Graph() {\r\n\t\tinit();\r\n\t}",
"public void setGraph(Graph<V,E> graph);",
"public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}",
"public void addedge(String fro, String to, int wt) {\r\n Edge e = new Edge(fro, to, wt);\r\n\r\n\r\n Set<String> keys = graph.keySet();\r\n// Object[] arr = keys.toArray();\r\n int f = 0;\r\n if(graph.containsKey(fro)&&graph.containsKey(to))\r\n {\r\n\r\n int[] bb2 = new int[2000];\r\n for(int zz=0;zz<5000;zz++){\r\n\r\n\r\n ArrayList<Integer> abcd = new ArrayList<>();\r\n abcd.add(zz);\r\n\r\n if(zz<2500)\r\n zz++;\r\n else\r\n zz++;\r\n\r\n bb2[zz%500]=zz;\r\n\r\n\r\n int qq= 5000;\r\n\r\n qq--;\r\n\r\n String nnn = \"aaa aa\";\r\n nnn+=\"df\";\r\n\r\n\r\n }\r\n\r\n }\r\n else\r\n {\r\n\r\n\r\n System.out.println(\"some vertices are not present\");\r\n return;\r\n }\r\n for ( String y : keys) {\r\n if (fro.compareTo(y) == 0) {\r\n f = 1;\r\n ArrayList<Edge> ee =graph.get(y);\r\n\r\n\r\n ee.add(e);\r\n }\r\n\r\n\r\n }\r\n if (f == 0) {}\r\n }",
"@Override protected void onPreExecute() { g = new UndirectedGraph(10); }",
"public void topologicalSort() {\n HashMap<Integer, Integer> inDegrees = new HashMap<>();\n Queue<Integer> queue = new LinkedList<>();\n int numTotalNodes = 0;\n\n // Build the inDegree HashMap\n for (Entry<Integer, LinkedList<Edge<Integer>>> entry : g.adj.entrySet()) {\n LinkedList<Edge<Integer>> vList = entry.getValue();\n int currentVertex = entry.getKey();\n\n inDegrees.put(currentVertex, inDegrees.getOrDefault(currentVertex, 0));\n for (Edge<Integer> e : vList) {\n inDegrees.put(e.dest, inDegrees.getOrDefault(e.dest, 0) + 1);\n numTotalNodes++;\n }\n }\n\n // Add Elements with inDegree zero toe the queue\n for (int v : inDegrees.keySet()) {\n if (inDegrees.get(v) > 0)\n continue;\n queue.add(v);\n }\n\n int visitedNodes = 0;\n\n while (!queue.isEmpty()) {\n int v = queue.remove();\n System.out.print(v + \" \");\n for (int u : g.getNeighbors(v)) {\n int inDeg = inDegrees.get(u) - 1;\n if (inDeg == 0)\n queue.add(u);\n inDegrees.put(u, inDeg);\n }\n visitedNodes++;\n }\n\n if (visitedNodes != numTotalNodes) {\n System.out.println(\"Graph is not a DAG\");\n }\n }",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}",
"@Pure\n\tpublic SGraph getGraph() {\n\t\treturn this.graph.get();\n\t}",
"@Override\n\tpublic directed_weighted_graph getGraph() {\n\t\treturn dwg;\n\t}",
"public void generateGraph() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tgraph = new boolean[map.size()][map.size()];\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject cloned = map.get(i).duplicate();\r\n\t\t\tArrayList<Location> locs = sc.traceLinearMotion(i,sc.getMaxVelocity(),cloned.getGoal());\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(j != i) {\r\n\t\t\t\t\tfor(int k = 0; k < locs.size(); k++) {\r\n\t\t\t\t\t\tcloned.setLocation(locs.get(k));\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 2)) {\r\n\t\t\t\t\t\t\tgraph[i][j] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 0)) {\r\n\t\t\t\t\t\t\tgraph[j][i] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public interface IUndirectedGraph extends IGraph{\n\n /**\n * Check the presence of an edge between two nodes.\n *\n * @param x the source node\n * @param y the destination node\n * @return true if there is an edge between x and y\n */\n default boolean isEdge(int x, int y) {\n return getNeighbors(x).contains(y);\n }\n\n /**\n * Remove the edge between two nodes if exist.\n * @param x the source node\n * @param y the destination node\n */\n void removeEdge(int x, int y);\n\n /**\n * Add an edge between two nodes, if not already present.\n * The two nodes must be distincts.\n * @param x the source node\n * @param y the destination node\n */\n void addEdge(int x, int y);\n\n /**\n * Get the neighboors of a node\n * @param x the node\n * @return a new int array representing the neighbors\n */\n List<Integer> getNeighbors(int x);\n\n @Override\n default int[][] getGraph() {\n int order = getOrder();\n int[][] adjencyMatrix = new int[order][order];\n for (int i = 0; i < order; i++) {\n List<Integer> succ = getNeighbors(i);\n for (Integer s : succ) {\n adjencyMatrix[i][s] = 1;\n }\n }\n return adjencyMatrix;\n }\n\n @Override\n default boolean isDirected(){\n return false;\n }\n}",
"@Override\n \t\t\t\tpublic String getGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/namedGraph/3\";\n \t\t\t\t}",
"public void setGraph(String graph) {\n this.graph = graph;\n }",
"public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }",
"public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}",
"protected int getGraphLeft() {\r\n\t\treturn leftEdge;\r\n\t}",
"public void reinitialiserLeControleurGraphique()\n\t{\n\t\tthis.unControleur = new ControleurGraphique(this);\n\t}",
"protected abstract Graph fetchGraph() throws IdNotFoundException;",
"public void clearGraph(){\n\t\tthis.tools.clearGraph(graph);\n\t}",
"public GraphPath getResultPath() {\n return null;\r\n }",
"public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}",
"public GraphInfo(){}",
"public void print (){\r\n for (int i = 0; i < graph.size(); ++i){\r\n graph.get(i).print();\r\n }\r\n }",
"private void clearVisited(){\r\n\t\tfor(int i=0; i<graphSize; i++){\r\n\t\t\tmyGraph[i].visited = false;\r\n\t\t\tAdjVertex vert = myGraph[i].adjVertexHead;\r\n\t\t\twhile(vert != null){\r\n\t\t\t\tvert.visited = false;\r\n\t\t\t\tvert= vert.next;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract Graphomat getGraphomat(Fraction f);",
"public Graph() {\n }",
"public static void DrawIt (Graph<Integer,String> g) {\n\t\tISOMLayout<Integer,String> layout = new ISOMLayout<Integer,String>(g);\r\n\t\t// The Layout<V, E> is parameterized by the vertex and edge types\r\n\t\tlayout.setSize(new Dimension(650,650)); // sets the initial size of the space\r\n\t\t// The BasicVisualizationServer<V,E> is parameterized by the edge types\r\n\t\tBasicVisualizationServer<Integer,String> vv =\r\n\t\tnew BasicVisualizationServer<Integer,String>(layout);\r\n\t\tvv.setPreferredSize(new Dimension(650,650)); //Sets the viewing area size\r\n\t\tJFrame frame = new JFrame(\"Simple Graph View\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().add(vv);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\r\n\t}",
"public String apGraph() {\n if(root != null){\n root.nameAvl();\n return doBigGraph();\n }else{\n return \"\";\n }\n }"
] | [
"0.6810395",
"0.67833847",
"0.67500937",
"0.6591044",
"0.6482533",
"0.6294387",
"0.6293733",
"0.627923",
"0.62744004",
"0.62611204",
"0.6243583",
"0.6241175",
"0.6190916",
"0.6188596",
"0.61655647",
"0.6164696",
"0.6163373",
"0.61626357",
"0.61370087",
"0.61302143",
"0.6119723",
"0.61134994",
"0.61088556",
"0.60901374",
"0.6044796",
"0.60447896",
"0.6009269",
"0.5990556",
"0.5983978",
"0.5958953",
"0.5915621",
"0.590995",
"0.59079325",
"0.59055537",
"0.58915335",
"0.5890864",
"0.589075",
"0.5882484",
"0.5881496",
"0.5878075",
"0.58519036",
"0.58486736",
"0.5846483",
"0.5845258",
"0.58371615",
"0.5828007",
"0.58180374",
"0.5813171",
"0.58027923",
"0.5793088",
"0.5789635",
"0.57846665",
"0.57791793",
"0.5776857",
"0.5776353",
"0.57740885",
"0.57740545",
"0.57669175",
"0.57562786",
"0.57553875",
"0.5750999",
"0.5747925",
"0.57258755",
"0.5722744",
"0.5720679",
"0.57191014",
"0.5718953",
"0.5712555",
"0.57018316",
"0.5700065",
"0.5695413",
"0.56846416",
"0.5679903",
"0.56768304",
"0.5676275",
"0.56698865",
"0.5659601",
"0.5658222",
"0.56570446",
"0.565631",
"0.5653235",
"0.56527454",
"0.5636461",
"0.56362635",
"0.5633136",
"0.56228346",
"0.5622259",
"0.560896",
"0.56085366",
"0.56068903",
"0.55941015",
"0.55791694",
"0.55780536",
"0.557029",
"0.5565397",
"0.5564849",
"0.5564422",
"0.5562818",
"0.5562492",
"0.5560056",
"0.55585444"
] | 0.0 | -1 |
Pr??ft ob Kante im Graph vorhanden ist. | boolean containsEdge(V v, V w); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Graph getGraph() {\n return graph;\n }",
"public Graph getGraph();",
"public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}",
"public void buildGraph(){\n\t}",
"protected final AbstractDGraph getGraph() {\n return this.graph;\n }",
"public OrientGraph getGraph();",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"@Override\r\n public weighted_graph getGraph() {\r\n return this.Graph;\r\n }",
"protected Graph<VLabel, ELabel> theGraph() {\n return _graph;\n }",
"@Override\n public Graph getGraphModel() {\n return this.graph;\n }",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"public ReilGraph getGraph() {\n return m_graph;\n }",
"public Graph getGraph() {\n\t\treturn this.Graph;\n\t}",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"private void transPose(graph g) {\n\t\tIterator it = g.getV().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tnode_data temp = (node_data) it.next();\n\t\t\tif(g.getE(temp.getKey())!=null) {\n\t\t\t\tIterator it1 = g.getE(temp.getKey()).iterator();\n\t\t\t\twhile (it1.hasNext()) {\n\t\t\t\t\tedge_data temp1 = (edge_data) it1.next();\n\t\t\t\t\tif (temp1 != null && temp1.getTag() == 0) {\n\t\t\t\t\t\tif (g.getEdge(temp1.getDest(), temp1.getSrc()) != null) {\n\t\t\t\t\t\t\tEdge temps = new Edge((Edge)g.getEdge(temp1.getSrc(),temp1.getDest()));\n\t\t\t\t\t\t\tdouble weight1 = g.getEdge(temp1.getSrc(),temp1.getDest()).getWeight();\n\t\t\t\t\t\t\tdouble weight2 = g.getEdge(temp1.getDest(),temp1.getSrc()).getWeight();\n\t\t\t\t\t\t\tg.connect(temp1.getSrc(),temp1.getDest(),weight2);\n\t\t\t\t\t\t\tg.connect(temps.getDest(),temps.getSrc(),weight1);\n\t\t\t\t\t\t\tg.getEdge(temps.getDest(), temps.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.getEdge(temps.getSrc(),temps.getDest()).setTag(1);\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tg.connect(temp1.getDest(), temp1.getSrc(), temp1.getWeight());\n\t\t\t\t\t\t\tg.getEdge(temp1.getDest(), temp1.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.removeEdge(temp1.getSrc(), temp1.getDest());\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public interface Graph extends Container {\n\n /**\n * returns how many elements are in the container.\n *\n * @return int = number of elements in the container.\n */\n public int size();\n\n /**\n * returns true if the container is empty, false otherwise.\n *\n * @return boolean true if container is empty\n */\n public boolean isEmpty();\n\n /**\n * return the number of vertices in the graph\n * \n * @return number of vertices in the graph\n */\n public int numVertices();\n\n /**\n * returns the number for edges in the graph\n * \n * @return number of edges in the graph\n */\n public int numEdges();\n\n /**\n * returns an Enumeration of the vertices in the graph\n * \n * @return vertices in the graph\n */\n public Enumeration vertices();\n\n \n /**\n * returns an Enumeration of the edges in the graph\n * \n * @return edges in the graph\n */\n public Enumeration edges();\n\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration directedEdges();\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration undirectedEdges();\n\n /**\n * returns the degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the degree of\n * @return degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int degree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the in degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the in degree of\n * @return in degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int inDegree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the out degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the out degree of\n * @return out degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int outDegree(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the adjacent vertices of\n * @return enumeration of vertices adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices in adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the in adjacent vertices of\n * @return enumeration of vertices in adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices out adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the out adjacent vertices of\n * @return enumeration of vertices out adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration incidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges in incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges in incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration inIncidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges out incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges out incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;\n\n public Position[] endVertices(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the Vertex on Edge ep opposite from Vertex vp\n * \n * @param vp Vertex to find opposite of\n * @param ep Edge containing the vertices\n * @return \n * @exception InvalidPositionException\n */\n public Position opposite(Position vp, Position ep) throws InvalidPositionException;\n\n /**\n * Determine whether or not two vertices are adjacent\n * \n * @param vp Position of one Vertex to check\n * @param wp Position of other Vertex to check\n * @return true if they are adjacent, false otherwise\n * @exception InvalidPositionException\n * thrown if either Position is invalid for this container\n */\n public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;\n\n /**\n * Returns the destination Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the destination Vertex of\n * @return the destination Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position destination(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the origin Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the origin Vertex of\n * @return the origin Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position origin(Position ep) throws InvalidPositionException;\n\n /**\n * Returns true if the given Edge Position is directed,\n * otherwise false\n * \n * @param ep Edge Position to check directed on\n * @return true if directed, otherwise false\n * @exception InvalidPositionException\n */\n public boolean isDirected(Position ep) throws InvalidPositionException;\n\n /**\n * Inserts a new undirected Edge into the graph with end\n * Vertices given by Positions vp and wp storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding one Vertex endpoint\n * @param wp Position holding the other Vertex endpoint\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new directed Edge into the graph with end\n * Vertices given by Positions vp, the origin, and wp,\n * the destination, storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding the origin Vertex\n * @param wp Position holding the destination Vertex\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new Vertex into the graph holding Object o\n * and returns a Position holding the new Vertex\n * \n * @param o the Object to hold in this Vertex\n * @return the Position holding the Vertex\n */\n public Position insertVertex(Object o);\n\n /**\n * This method removes the Vertex held in the passed in\n * Position from the Graph\n * \n * @param vp the Position holding the Vertex to remove\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void removeVertex(Position vp) throws InvalidPositionException;\n\n /**\n * Used to remove the Edge held in Position ep from the Graph\n * \n * @param ep the Position holding the Edge to remove\n * @exception InvalidPositionException\n * thrown if Position ep is invalid for this container\n */\n public void removeEdge(Position ep) throws InvalidPositionException;\n\n /**\n * This routine is used to change a directed Edge into an\n * undirected Edge\n * \n * @param ep a Position holding the Edge to change from directed to\n * undirected\n * @exception InvalidPositionException\n */\n public void makeUndirected(Position ep) throws InvalidPositionException;\n\n /**\n * This routine can be used to reverse the diretion of a \n * directed Edge\n * \n * @param ep a Position holding the Edge to reverse\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void reverseDirection(Position ep) throws InvalidPositionException;\n\n /**\n * Changes the direction of the given Edge to be out incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be out incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionFrom(Position ep, Position vp) throws InvalidPositionException;\n\n\n /**\n * Changes the direction of the given Edge to be in incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be in incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionTo(Position ep, Position vp) throws InvalidPositionException;\n\n}",
"public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }",
"String targetGraph();",
"@Override\n\tpublic int graphOrder() {\n\t\treturn vertices.size();\n\t}",
"public Graph<Integer> getGraph() {\n return E;\n }",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"public void testaGraph() {\n\t\tEstacaoDAO a = new EstacaoDAO();\n\t\ta.carregarEstacoes();\n\t\tLinha b = new Linha(\"a\");\n\t\tb.loadAllStations(a);\n\t\tb.shortestPath(a,\"Curado\",\"Recife\");\n\t}",
"@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }",
"public static <V> Graph<V> getMinimumSpanningTreeKruskal(Graph<V> graph) {\n class Arista {\n private V origen;\n private V destino;\n private double peso;\n\n private Arista(V pOrigen, double pPeso, V pDestino) {\n origen = pOrigen;\n peso = pPeso;\n destino = pDestino;\n }\n }\n\n V[] array = graph.getValuesAsArray();\n double[][] matrizPesos = graph.getGraphStructureAsMatrix();\n double[][] matrizCopia = new double[array.length][array.length];\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n matrizCopia[x][y] = matrizPesos[x][y];\n }\n }\n\n List<Arista> aristas = new LinkedList<>();\n\n // Se buscan todas las aristas del grafo y se enlistan\n for (int x = 0; x < array.length; x++) {\n for (int y = 0; y < array.length; y++) {\n if (matrizCopia[x][y] != -1) {\n if (!graph.isDirected()) {\n matrizCopia[y][x] = -1;\n }\n Arista ar = new Arista(array[x], matrizCopia[x][y], array[y]);\n aristas.add(ar);\n }\n }\n }\n\n //Se ordenan las listas de menor a mayor, aplicando el ordenamiento de burbuja.\n if (aristas.size() > 1) {\n int i = 0;\n for (int x = 2; x < aristas.size(); x++) {\n for (int y = 1; y < aristas.size() - i; y++) {\n Arista temp = aristas.get(y);\n Arista temp2 = aristas.get(y+1);\n if (temp.peso > temp2.peso) {\n aristas.set(y, temp2);\n aristas.set(y+1, temp);\n }\n }\n i++;\n }\n }\n\n List<Graph<V>> bosque = new LinkedList<>();\n for (int x = 0; x < array.length; x++) {\n Graph<V> temp = new AdjacencyMatrix<>();\n temp.addNode(array[x]);\n bosque.add(temp);\n }\n\n Iterator<Arista> it1 = aristas.iterator();\n while (it1.hasNext()) {\n Arista aux = it1.next();\n int arbolOrigen = buscarArbol(aux.origen, bosque);\n int arbolDestino = buscarArbol(aux.destino, bosque);\n if (arbolDestino < arbolOrigen) {\n int temp = arbolDestino;\n arbolDestino = arbolOrigen;\n arbolOrigen = temp;\n }\n\n if (arbolDestino != arbolOrigen) { // Significa que estan en diferentes arboles.\n Graph<V> grafoDestino = bosque.remove(arbolDestino);\n Graph<V> grafoTemp = unirGrafos(bosque.get(arbolOrigen), grafoDestino);\n grafoTemp.addEdge(aux.origen, aux.destino, aux.peso);\n bosque.set(arbolOrigen, grafoTemp);\n }\n }\n if (bosque.size() != 1) { // Significa que hay vertices aislados.\n for (int x = 2; x <= bosque.size(); x++) {\n Graph<V> grafoTemp = bosque.remove(x);\n Graph<V> grafosUnidos = unirGrafos(bosque.get(1), grafoTemp);\n bosque.set(1, grafosUnidos);\n }\n }\n\n return bosque.get(1);\n }",
"void printGraph();",
"public void drawGraph(Graph graph);",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"public weighted_graph getGraph();",
"public void printDGraph(){\n System.out.println(this.toString());\n }",
"public Graph2D getGraph() {\n return mGraph;\n }",
"public Graph<V, E> getGraph() {\n\t\treturn graph;\n\t}",
"public interface Graph {\n\n /** @return The number of vertices in the graph. */\n int getNumVertices();\n\n /** @return The number of edges in the graph. */\n int getNumEdges();\n\n /** @return A read-only set of all the vertices in the graph. */\n Set<Vertex> getVertices();\n\n /** @return A read-only set of all edges (directed or undirected) in the graph. */\n Set<Edge> getEdges();\n\n /** Removes all vertices and edges from the graph. */\n void clear();\n\n /** Adds a vertex to this graph. */\n void add(Vertex vertex);\n\n /** Adds an edge to the graph. */\n void add(Edge edge);\n\n /** Adds all the vertices and edges in another graph to this graph. */\n void addAll(Graph graph);\n\n /** Removes vertex from the graph and any edges attached to it. */\n void remove(Vertex vertex);\n\n /** Removes an existing edge from the graph. */\n void remove(Edge edge);\n\n /** Checks if the graph contains a given vertex. */\n boolean contains(Vertex vertex);\n\n /** Checks if the graph contains a given edge. */\n boolean contains(Edge edge);\n\n /** @return An unmodifiable set of all directed edges entering vertex. */\n Set<Edge> getInEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all directed edges coming out of vertex. */\n Set<Edge> getOutEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all undirected edges connected to vertex. */\n Set<Edge> getUndirectedEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all edges (directed and undirected) connected to vertex. */\n Set<Edge> getMixedEdges(Vertex vertex);\n\n /** @return The number of undirected edges connected to vertex. */\n int getUndirectedDegree(Vertex vertex);\n\n /** @return The number of directed edges coming into vertex. */\n int getInDegree(Vertex vertex);\n\n /** @return The number of directed edges coming out of vertex. */\n int getOutDegree(Vertex vertex);\n\n /**\n * @return The number of directed and undirected edges connected to this vertex. Equivalent to\n * inDegree + outDegree + undirectedDegree.\n */\n int getMixedDegree(Vertex vertex);\n\n /** Registers a listener for changes in the graph model. */\n void addListener(GraphListener listener);\n\n /** Unregisters a listener for changes in the graph model. */\n void removeListener(GraphListener listener);\n\n /** @return Attributes that apply to the entire graph. */\n Attributes getAttributes();\n\n /** Creates a new vertex, adds it to the graph, and returns a reference to it. */\n Vertex createVertex();\n\n /** Creates a new edge, adds it to the graph, and returns a reference to it. */\n Edge createEdge(Vertex src, Vertex tgt, boolean directed);\n}",
"void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}",
"public ParseTree getGraph() {\n return graph;\n }",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"@Override\n \t\t\t\tpublic String getGraphId() {\n \t\t\t\t\treturn null;\n \t\t\t\t}",
"public interface Graph {\n\n\t/**\n\t * Method to add the edge from start to end to the graph.\n\t * Adding self-loops is not allowed.\n\t * @param start start vertex\n\t * @param end end vertex\n\t */\n\tpublic void addEdge(int start, int end);\n\n\t/**\n\t * Method to add the edge with the given weight to the graph from start to end.\n\t * Adding self-loops is not allowed.\n\t * @param start number of start vertex\n\t * @param end number of end vertex\n\t * @param weight weight of edge\n\t */\n\tpublic void addEdge(int start, int end, double weight);\n\n\t/**\n\t * Method to add a vertex to the graph.\n\t */\n\tpublic void addVertex();\n\t\n\t/**\n\t * Method to add multiple vertices to the graph.\n\t * @param n number of vertices to add\n\t */\n\tpublic void addVertices(int n);\n\n\t/**\n\t * Returns all neighbors of the given vertex v (all vertices i with {i,v} in E or (i,v) or (v,i) in E).\n\t * @param v vertex whose neighbors shall be returned\n\t * @return List of vertices adjacent to v\n\t */\n\tpublic List<Integer> getNeighbors(int v);\n\n\t/**\n\t * Returns a list containing all predecessors of v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all predecessors of v\n\t */\n\tpublic List<Integer> getPredecessors(int v);\n\n\t/**\n\t * Returns a list containing all successors v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all edges starting in v\n\t */\n\tpublic List<Integer> getSuccessors(int v);\n\n\t/**\n\t * Method to get the number of vertices.\n\t * @return number of vertices\n\t */\n\tpublic int getVertexCount();\n\n\t/**\n\t * Method to get the weight of the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of edge / arc\n\t * @param end end vertex of edge / arc\n\t * @return Double.POSITIVE_INFINITY, if the edge does not exist, c_{start, end} otherwise\n\t */\n\tpublic double getEdgeWeight(int start, int end);\n\n\t/**\n\t * Method to test whether the graph contains the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic boolean hasEdge(int start, int end);\n\n\t/**\n\t * Method to remove an edge from the graph, defined by the vertices start and end.\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic void removeEdge(int start, int end);\n\n\t/**\n\t * Method to remove the last vertex from the graph.\n\t */\n\tpublic void removeVertex();\n\n\t/**\n\t * Returns whether the graph is weighted.\n\t * A graph is weighted if an edge with weight different from 1.0 has been added to the graph.\n\t * @return true if the graph is weighted\n\t */\n\tpublic boolean isWeighted();\n\n\t/**\n\t * Returns whether the graph is directed.\n\t * @return true if the graph is directed\n\t */\n\tpublic boolean isDirected();\n\n}",
"public DirectedGraph<VertexObject, String> getGraph() {\n return graph;\n }",
"protected abstract Graph filterGraph();",
"Graph testGraph();",
"public VBox getGraph(){\n\t\treturn graph.getGraph();\n\t}",
"private void getGraph (ActionEvent evt) {\n\t\t\t//TODO\n\t}",
"IGraphEngine getGraphEngine();",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"public void drawGraph()\n\t{\n\t\tMatrixStack transformStack = new MatrixStack();\n\t\ttransformStack.getTop().mul(getWorldTransform());\n\t\tdrawSelfAndChildren(transformStack);\n\t}",
"public void setGraph(Graph<V,E> graph);",
"void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }",
"void graphSelectionChanged(Mode mode);",
"public interface Graph<V> {\n\t/** Return the number of vertices in the graph */\n\tpublic int getSize();\n\n\t/** Return the vertices in the graph */\n\tpublic java.util.List<V> getVertices();\n\n\t/** Return the object for the specified vertex index */\n\tpublic V getVertex(int index);\n\n\t/** Return the index for the specified vertex object */\n\tpublic int getIndex(V v);\n\n\t/** Return the neighbors of vertex with the specified index */\n\tpublic java.util.List<Integer> getNeighbors(int index);\n\n\t/** Return the degree for a specified vertex */\n\tpublic int getDegree(int v);\n\n\t/** Return the adjacency matrix */\n\tpublic int[][] getAdjacencyMatrix();\n\n\t/** Print the adjacency matrix */\n\tpublic void printAdjacencyMatrix();\n\n\t/** Print the edges */\n\tpublic void printEdges();\n\n\t/** Obtain a depth-first search tree */\n\tpublic AbstractGraph<V>.Tree dfs(int v);\n\n\t/** Obtain a breadth-first search tree */\n\tpublic AbstractGraph<V>.Tree bfs(int v);\n\n\t/**\n\t * Return a Hamiltonian path from the specified vertex Return null if the\n\t * graph does not contain a Hamiltonian path\n\t */\n\tpublic java.util.List<Integer> getHamiltonianPath(V vertex);\n\n\t/**\n\t * Return a Hamiltonian path from the specified vertex label Return null if\n\t * the graph does not contain a Hamiltonian path\n\t */\n\tpublic java.util.List<Integer> getHamiltonianPath(int inexe);\n}",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"public GraphImpl(int[][] g) {\n\t\tanzKnoten = g.length;\n\t\tgraph = g;\n\t}",
"public Graph() {\r\n\t\tinit();\r\n\t}",
"public interface Graph<V>\n{\n /**\n * Adds the specified vertex to this graph. The given vertex will not be\n * added to this graph if this graph contains the vertex. In other words\n * this graph does not allow duplicate vertices. The way this graph\n * concludes if the specified vertex is a duplicate is through the equals\n * convention. For example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to add to this graph.\n *\n * @return <tt>true</tt> of the specified vertex is added to this\n * graph; otherwise <tt>false</tt>.\n */\n public boolean addVertex(V vertex);\n\n /**\n * Removes the specified vertex from this graph if the vertex actually\n * exists in this graph. Any edges that are connected to the given\n * vertex will also be removed from this graph. If the specified vertex\n * is not contained within this graph then the graph is unchanged and this\n * operation return <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to remove from this graph.\n * \n * @return <tt>true</tt> if the given vertex is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeVertex(V vertex);\n\n /**\n * Gets the set of vertices contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of vertices. \n *\n * @return a read-only view of the vertices contained withing this graph.\n */\n public Set<V> getVertices();\n\n /**\n * Checks if this graph contains the specified vertex. If the given\n * vertex is present in this graph, this operation returns <tt>true</tt>\n * ;otherwise <tt>false</tt>. The way this graph concludes if the\n * specified vertex is a present is through the equals convention. For\n * example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to verify is present within this graph.\n * \n * @return <tt>true</tt> if the specified vertex is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsVertex(V vertex);\n\n /**\n * Adds an edge (based on the specified vertices) to this graph. The edge\n * will not be added to this graph if this graph already contains an edge\n * between the specified vertices. In other words this graph does not allow\n * duplicate edges.\n * \n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to add to this graph.\n * @param target the target vertex for the edge to add to this graph.\n *\n * @return <tt>true</tt> of the edge is added to this graph; otherwise\n * <tt>false</tt>.\n */\n public Edge<V> addEdge(V source, V target);\n\n /**\n * Removes the edge (based on the given vertices) from this graph if the\n * edge actually exists in this graph. If the specified vertices are not\n * contained within this graph then the graph is unchanged and this\n * operation returns <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to remove.\n * @param target the target vertex for the edge to remove.\n *\n * @return <tt>true</tt> if the edge that contains the specified vertices\n * is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeEdge(V source, V target);\n\n /**\n * Gets the edge connected by the given source and target vertices. If\n * either of the specified vertices are not present in this graph, then\n * this operation returns null. If any of the specified vertices are\n * <code>null</code> then <code>null</code> is returned.\n *\n * <p>The order of vertices in the resulting edge is not guaranteed if this\n * graph is an undirected graph.</p> \n *\n * @param source the source vertex for the edge to lookup in this graph.\n * @param target the target vertex for the edge to lookup in this graph.\n *\n * @return an edge that connects the specified vertices.\n */\n public Edge<V> getEdge(V source, V target);\n\n /**\n * Gets a set of edges connected to the specified vertex that are contained\n * within this graph. The set is an unmodifiable view so modifications to\n * the set do not affect this graph's internal set of edges.\n *\n * @param vertex the vertex connected to the set of edges to lookup.\n * \n * @return a read-only view of the edges connected to the given vertex that\n * are withing this graph.\n */\n public Set<Edge<V>> getEdges(V vertex);\n\n /**\n * Gets the set of edges contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of edges.\n *\n * @return a read-only view of the edges contained withing this graph.\n */\n public Set<Edge<V>> edgeSet();\n\n /**\n * Checks if this graph contains an edge based on the specified vertices.\n * If either of the given vertices are not present in this graph, this\n * operation returns <tt>false</tt>. Both specified vertices have to exists\n * in this graph and have a defined edge in order for this method to return\n * <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to verify is present within\n * this graph.\n * @param target the target vertex for the edge to verify is present within \n * this graph.\n *\n * @return <tt>true</tt> if the edge is present in this graph; otherwise\n * <tt>false</tt>.\n */\n public boolean containsEdge(V source, V target);\n\n /**\n * Checks if this graph contains the specified edge. If the given edge is\n * not present in this graph, this operation returns <tt>false</tt>.\n *\n * <p>This method will return false if the given edge is <code>null</code>\n * </p>.\n *\n * @param edge the edge to verify is present within this graph.\n *\n * @return <tt>true</tt> if the specified edge is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsEdge(Edge<V> edge);\n\n /**\n *\n * @return\n */\n public Set<V> breadthFirstSearch();\n\n /**\n *\n * @return\n */\n public Set<V> depthFirstSearch();\n\n /**\n * \n * @return\n */\n public Set<Edge<V>> minSpanningTree();\n}",
"@Pure\n\tpublic SGraph getGraph() {\n\t\treturn this.graph.get();\n\t}",
"public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }",
"public OrientGraph getGraphTx();",
"public Graph graph() {\n\t\treturn _analyzer.graph();\n\t}",
"@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean isDynamicGraph();",
"@Override\n\tpublic directed_weighted_graph getGraph() {\n\t\treturn dwg;\n\t}",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract String rawGraphToString();",
"public GraphPath getResultPath() {\n return null;\r\n }",
"public Object getVertex(){\r\n return this.vertex;\r\n }",
"public ExportGraph()\n {\n }",
"public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"public boolean isGraphEnabled() {\r\n \t\treturn graph.isEnabled();\r\n \t}",
"protected abstract Graph fetchGraph() throws IdNotFoundException;",
"public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}",
"public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}",
"public void topologicalSort() {\n HashMap<Integer, Integer> inDegrees = new HashMap<>();\n Queue<Integer> queue = new LinkedList<>();\n int numTotalNodes = 0;\n\n // Build the inDegree HashMap\n for (Entry<Integer, LinkedList<Edge<Integer>>> entry : g.adj.entrySet()) {\n LinkedList<Edge<Integer>> vList = entry.getValue();\n int currentVertex = entry.getKey();\n\n inDegrees.put(currentVertex, inDegrees.getOrDefault(currentVertex, 0));\n for (Edge<Integer> e : vList) {\n inDegrees.put(e.dest, inDegrees.getOrDefault(e.dest, 0) + 1);\n numTotalNodes++;\n }\n }\n\n // Add Elements with inDegree zero toe the queue\n for (int v : inDegrees.keySet()) {\n if (inDegrees.get(v) > 0)\n continue;\n queue.add(v);\n }\n\n int visitedNodes = 0;\n\n while (!queue.isEmpty()) {\n int v = queue.remove();\n System.out.print(v + \" \");\n for (int u : g.getNeighbors(v)) {\n int inDeg = inDegrees.get(u) - 1;\n if (inDeg == 0)\n queue.add(u);\n inDegrees.put(u, inDeg);\n }\n visitedNodes++;\n }\n\n if (visitedNodes != numTotalNodes) {\n System.out.println(\"Graph is not a DAG\");\n }\n }",
"Graph getRecentGraph();",
"public void addedge(String fro, String to, int wt) {\r\n Edge e = new Edge(fro, to, wt);\r\n\r\n\r\n Set<String> keys = graph.keySet();\r\n// Object[] arr = keys.toArray();\r\n int f = 0;\r\n if(graph.containsKey(fro)&&graph.containsKey(to))\r\n {\r\n\r\n int[] bb2 = new int[2000];\r\n for(int zz=0;zz<5000;zz++){\r\n\r\n\r\n ArrayList<Integer> abcd = new ArrayList<>();\r\n abcd.add(zz);\r\n\r\n if(zz<2500)\r\n zz++;\r\n else\r\n zz++;\r\n\r\n bb2[zz%500]=zz;\r\n\r\n\r\n int qq= 5000;\r\n\r\n qq--;\r\n\r\n String nnn = \"aaa aa\";\r\n nnn+=\"df\";\r\n\r\n\r\n }\r\n\r\n }\r\n else\r\n {\r\n\r\n\r\n System.out.println(\"some vertices are not present\");\r\n return;\r\n }\r\n for ( String y : keys) {\r\n if (fro.compareTo(y) == 0) {\r\n f = 1;\r\n ArrayList<Edge> ee =graph.get(y);\r\n\r\n\r\n ee.add(e);\r\n }\r\n\r\n\r\n }\r\n if (f == 0) {}\r\n }",
"public Graph() {\n }",
"void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}",
"public Graphs() {\n graph = new HashMap<>();\n }",
"@Override\n \t\t\t\tpublic void deleteGraph() throws TransformedGraphException {\n \n \t\t\t\t}",
"public String apGraph() {\n if(root != null){\n root.nameAvl();\n return doBigGraph();\n }else{\n return \"\";\n }\n }",
"public interface IUndirectedGraph extends IGraph{\n\n /**\n * Check the presence of an edge between two nodes.\n *\n * @param x the source node\n * @param y the destination node\n * @return true if there is an edge between x and y\n */\n default boolean isEdge(int x, int y) {\n return getNeighbors(x).contains(y);\n }\n\n /**\n * Remove the edge between two nodes if exist.\n * @param x the source node\n * @param y the destination node\n */\n void removeEdge(int x, int y);\n\n /**\n * Add an edge between two nodes, if not already present.\n * The two nodes must be distincts.\n * @param x the source node\n * @param y the destination node\n */\n void addEdge(int x, int y);\n\n /**\n * Get the neighboors of a node\n * @param x the node\n * @return a new int array representing the neighbors\n */\n List<Integer> getNeighbors(int x);\n\n @Override\n default int[][] getGraph() {\n int order = getOrder();\n int[][] adjencyMatrix = new int[order][order];\n for (int i = 0; i < order; i++) {\n List<Integer> succ = getNeighbors(i);\n for (Integer s : succ) {\n adjencyMatrix[i][s] = 1;\n }\n }\n return adjencyMatrix;\n }\n\n @Override\n default boolean isDirected(){\n return false;\n }\n}",
"public static void printGraph( Graph graph ){\n\t\tint size = graph.getGraph().size();\n\t\tStringBuilder sb = new StringBuilder(); \n\t\tint weight = 0;\n\t\tfor( String start: graph.getGraph().keySet() ) {\n\t\t\tfor( String end : graph.getGraph().get(start).keySet() ) {\n\t\t\t\tweight = graph.getGraph().get(start).get(end);\n\t\t\t\tsb.append( start + end + String.valueOf(weight) + \", \" );\n\t\t\t}\n\t\t}\n\t\tsb.delete(sb.length()-2, sb.length());\n\t\tSystem.out.println(sb.toString());\n\t}",
"public void buildGraph() {\n //System.err.println(\"Build Graph \"+this);\n if (node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).restoreSceneGraphObjectReferences( control.getSymbolTable() );\n }",
"public SubGraph(){\r\n\t\tsuper();\r\n\t}",
"public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }",
"@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }",
"public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}",
"@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }",
"public WeightedGraph() {\n super();\n }",
"public Graph() {\n\t\tdictionary=new HashMap<>();\n\t}",
"public GraphNOriented getG() {\n\t\treturn g;\n\t}",
"public void setGraph(String graph) {\n this.graph = graph;\n }",
"public Matrix getGraphMatrix(){\n\t\treturn graphMatrix;\n\t}",
"public interface Graph\n{\n int getNumV();\n boolean isDirected();\n void insert(Edge edge);\n boolean isEdge(int source, int dest);\n Edge getEdge(int source, int dest);\n Iterator<Edge> edgeIterator(int source);\n}",
"protected int getGraphLeft() {\r\n\t\treturn leftEdge;\r\n\t}",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}",
"public Graph(Map<Vertex<? extends Position>, List<Vertex<? extends Position>>> graph){\n\t\tthis.mapGraph = graph;\n\t}",
"private void paintPath(Graphics graphics) { \n graphics.setColor(Color.blue);\n //si no se encuentra un camino, mostrar error\n if(Path == null){\n JOptionPane.showMessageDialog(null, \"No se encontro camino.\");\n }\n else\n for (Node n : Path) {\n if (!this.Graph.getGoals().contains(n) && n != this.Graph.getInitial()) {\n int x = n.getX(); int y = n.getY();\n paintRectangle(graphics, x, y); \n }\n }\n }",
"public void reinitialiserLeControleurGraphique()\n\t{\n\t\tthis.unControleur = new ControleurGraphique(this);\n\t}",
"private static <V> Graph<V> unirGrafos(Graph<V> grafo1, Graph<V> grafo2) {\n V[] array = grafo2.getValuesAsArray();\n double[][] matriz = grafo2.getGraphStructureAsMatrix();\n for (int x = 0; x < array.length; x++) {\n grafo1.addNode(array[x]);\n for (int y = 0; y < array.length; y++) {\n if (matriz[x][y] != -1) {\n if (!grafo2.isDirected()) {\n matriz[y][x] = -1;\n }\n grafo1.addNode(array[y]);\n grafo1.addEdge(array[x], array[y], grafo2.getWeight(array[x], array[y]));\n }\n }\n }\n return grafo1;\n }",
"@Override protected void onPreExecute() { g = new UndirectedGraph(10); }"
] | [
"0.69638467",
"0.6947335",
"0.6753274",
"0.6510902",
"0.6484681",
"0.6441159",
"0.64214265",
"0.6366891",
"0.63668734",
"0.6311388",
"0.6304351",
"0.6272312",
"0.62347066",
"0.6232105",
"0.6225623",
"0.62178916",
"0.62162495",
"0.6189766",
"0.61722946",
"0.61378956",
"0.6113508",
"0.6108837",
"0.609483",
"0.60719675",
"0.6067911",
"0.6060678",
"0.60287964",
"0.60250264",
"0.60192484",
"0.59882444",
"0.59749085",
"0.59687966",
"0.5956442",
"0.5921513",
"0.5921379",
"0.5904711",
"0.5892218",
"0.5888727",
"0.5881601",
"0.586536",
"0.5853845",
"0.5835477",
"0.5832417",
"0.5828052",
"0.5817461",
"0.5814613",
"0.57971394",
"0.5796193",
"0.5792483",
"0.5786586",
"0.5780125",
"0.5777613",
"0.5773018",
"0.5764226",
"0.5761343",
"0.57507145",
"0.5744289",
"0.5739281",
"0.5726498",
"0.57123965",
"0.56980586",
"0.5694934",
"0.5693416",
"0.56899387",
"0.56889653",
"0.56875324",
"0.5681611",
"0.5675815",
"0.5666005",
"0.5665608",
"0.5655831",
"0.56519794",
"0.56366456",
"0.5634164",
"0.5632258",
"0.56288207",
"0.562138",
"0.56194466",
"0.5615124",
"0.5609313",
"0.5608219",
"0.560539",
"0.56050074",
"0.5600965",
"0.5599432",
"0.55986303",
"0.5594376",
"0.55930996",
"0.55891377",
"0.5587893",
"0.558093",
"0.5580446",
"0.557903",
"0.5574038",
"0.55635345",
"0.5561807",
"0.5558874",
"0.55556494",
"0.55542976",
"0.55516994",
"0.555161"
] | 0.0 | -1 |
Liefert Gewicht der Kante zur??ck. | double getWeight(V v, V w); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int getGela_kop() {\n\t\treturn super.getGela_kop();\r\n\t}",
"public void getK_Gelisir(){\n K_Gelistir();\r\n }",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"void entrerAuGarage();",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"public String getGeslacht(){\n if(geslacht == \"man\" || geslacht == \"vrouw\"){\n return geslacht;\n }\n else {\n return \"onbekent\";\n }\n }",
"public boolean tieneRepresentacionGrafica();",
"public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}",
"public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }",
"public RuimteFiguur() {\n kleur = \"zwart\";\n }",
"public abstract String dohvatiKontakt();",
"public int maiorGrau() {\n return poli.lastKey();\n }",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public int getAltura(){\n return(super.getAltura());\n }",
"@Override\n\tpublic void transmetDonnee() {\n\n\t}",
"public Rechnung warenkorbKaufen(Person p) throws AccessRestrictedException, InvalidAmountException{\r\n\t\tif(istKunde(p)){\r\n\t\t\r\n\t\t\t//Warenkorb des Benutzers abfragen\r\n\t\t\tWarenkorb wk = kv.gibWarenkorbVonKunde(p);\r\n\t\t\t\r\n\t\t\t//Bestand der Artikel im Warenkorb reduzieren und Gesamtpreis errechnen\r\n\t\t\tint gesamt = 0;\r\n\t\t\tMap<Artikel,Integer> inhalt = wk.getArtikel();\r\n\t\t\tfor(Map.Entry<Artikel, Integer> ent : inhalt.entrySet()){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tav.erhoeheBestand(ent.getKey().getArtikelnummer(), -1 * ent.getValue());\r\n\t\t\t\t\t//Ereignis erstellen\r\n\t\t\t\t\tev.ereignisErstellen(p, Typ.KAUF, ent.getKey(), (int) ent.getValue());\r\n\t\t\t\t} catch (ArticleNonexistantException anne){\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tgesamt += (ent.getValue() * ent.getKey().getPreis());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Warenkorb für Rechnung erzeugen\r\n\t\t\tWarenkorb temp = new Warenkorb();\r\n\t\t\ttemp.setArtikel(wk.getArtikel());\r\n\t\t\t\r\n\t\t\t//Rechnung erzeugen\r\n\t\t\tRechnung re = rv.rechnungErzeugen((Kunde) p, new Date(), temp, gesamt);\r\n\t\t\t\r\n\t\t\t//Warenkorb von Kunde leeren\r\n\t\t\twv.leereWarenkorb(wk);\r\n\t\t\t\r\n\t\t\t//Rechnungsobjekt an C/GUI zurückgeben\r\n\t\t\treturn re;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Warenkorb bezahlen\\\"\");\r\n\t\t}\r\n\t}",
"public void trenneVerbindung();",
"Reserva Obtener();",
"public void sendeSpielfeld();",
"public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }",
"@Override\r\n\tpublic int getErreserba_kop() {\n\t\treturn super.getErreserba_kop();\r\n\t}",
"@Override\r\n\tpublic void getRegimeAlimentaire() {\n\t\t\r\n\t}",
"protected int getTreinAantal(){\r\n return treinaantal;\r\n }",
"public void gored() {\n\t\t\n\t}",
"public void asetaTeksti(){\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }",
"@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}",
"public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public static int getLicznikTur() { return LicznikTur; }",
"public boolean getTraiteGauche() {\r\n return traiteGauche;\r\n }",
"public GestoreTurni getGestore() {\n return null;\r\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void zugInWerkstatt() {\n werkstatt++;\n }",
"@Override\n\tpublic int getDikte() {\n\t\treturn this.dikttte;\n\t}",
"public void Ordenamiento() {\n\n\t}",
"public String getKleur() {\n return kleur;\n }",
"@Override\n public void perish() {\n \n }",
"public void reserveer() {\n System.out.println(\"de eigenaar van de auto is: \" + i.eigenaar());\n\n }",
"Debut getDebut();",
"public int getAantalVerwerkt() {\n return aantalVerwerkt;\n }",
"public abstract Koordinate schuss();",
"public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }",
"public void changerJoueur() {\r\n\t\t\r\n\t}",
"public int getZgrada() {\n return zgrada;\n }",
"@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\n\t}",
"public Farbe letztesKamel();",
"public int obtenirLigne() {\n return this.ligne;\n }",
"public int getGusta() {\r\n\t\treturn gusta;\r\n\t}",
"public Drakkar(){\r\n\t\tanguilas=m;\r\n\t}",
"String getVorlesungKennung();",
"public double hoeveelheidGeldInKassa() {\n return geld;\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void rotiereNachRechts() {\n\n\t}",
"private Kontakt ZeigeEinenKontakt(Kontakt k) throws Exception {\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tk = service.getKontakt(k);\r\n\r\n\t\tSystem.out.println(\"ID: \" + k.getcId());\r\n\t\tSystem.out.println(\"Nachname: \" + k.getcNName());\r\n\t\tSystem.out.println(\"Vorname: \" + k.getcVName());\r\n\t\t// Restliche Felder ausgeben\t\r\n\t\treturn k;\r\n\t\t\r\n\t}",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"public int getGrado() {\n\t\treturn grado;\n\t}",
"private UsineJoueur() {}",
"public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }",
"public Kreditkarte(){\n\t\n\t}",
"@Override\n\tpublic void updateGerant(Gerant g) {\n\t\t\n\t}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"public int getArtikelAnzahl(){\n return key;\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}",
"@Override\n\tvoid ligar() {\n\t\tsuper.ligar();\n\t\tSystem.out.println(\"Automovel ligando\");\n\t}",
"@Override public String getMasa(){\n return \"gruesa \";\n }",
"public Kunde kundenAnlegen()\n {\n Kunde kunde = Kunde.kundeAnlegen(); //TODO static\n return kundenListe.put(kunde.getKundenNummer(), kunde);\n }",
"public int getG();",
"public String draaiGangkaart()\n {\n if (vrijeGangkaart.getOrientatie() == 4)\n {\n vrijeGangkaart.setOrientatie(1);\n } else\n {\n vrijeGangkaart.setOrientatie((vrijeGangkaart.getOrientatie() + 1));\n }\n\n return vrijeGangkaart.toString();\n }",
"public String getFornecedor() { return this.fornecedor; }",
"@Override\n\tpublic double mencariGajiKotor() {\n\t\treturn super.mencariGajiKotor()+mencariBonus();\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public int koko() {\n return this.arvoja;\n }",
"float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}",
"void tampilKarakterA();",
"@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }",
"public int getGanadas(){\n\t\treturn ganadas;\n\t}",
"public int getIdFornecedor(){\n\t return idFornecedor;\n\t}",
"@Override\r\n\tpublic int getPuntuacion() {\n\t\treturn super.getPuntuacion();\r\n\t}",
"public String getFk_klant() {\n\t\treturn fk_klant;\n\t}",
"public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }",
"public int getCxcleunik() {\r\r\r\r\r\r\r\n return cxcleunik;\r\r\r\r\r\r\r\n }",
"private DittaAutonoleggio(){\n \n }",
"public PanneauG obtenirPanneauNord() {\r\n\t\treturn panneauNord;\r\n\t}",
"public java.lang.String getOtorgante() {\n return otorgante;\n }",
"public boolean erTom(){\n return hode.neste == hale;\n }",
"public void onderbreek(){\n \n }",
"public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}",
"@Override\n public int nivel() {\n return this.altura() - 1;\n }",
"public String addGarantie() {\r\n\t\tGarantie garantie = new Garantie();\r\n\t\t//ClasseKey key = new ClasseKey();\r\n\t\ttry {\r\n\t\t\tList listObject = getObjectService().getObjects(\r\n\t\t\t\t\t\"Garantie ORDER BY CODE_GARANTIE ASC\");\r\n\t\t\tif (listObject.size() == 0) {\r\n\t\t\t\tSystem.out.println(\"taille de la Table=\" + listObject.size());\r\n\t\t\t\t// System.out.println(key.KeyGarantie(\"0\"));\r\n\t\t\t\tgarantie.setCodeGarantie(\"0\");\r\n\t\t\t} else {\r\n\t\t\t\tGarantie gar = (Garantie) listObject.get(listObject.size() - 1);\r\n\t\t\t\t\r\n\r\n\t\t\t\t// System.out.println(\"retourne l'id=\"+key.KeyGarantie(gar.getId()));\r\n\t\t\t\tgarantie.setCodeGarantie(gar.getCodeGarantie());\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e1) {\r\n\t\t\tlogger.error(\"Echec de la récupération des garanties\", e1);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tgetObjectService().addObject(garantie);\r\n\r\n\t\t\treturn \"GarantieOK\";\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\tlogger.error(\"Echec de la connexion\", e);\r\n\r\n\t\t}\r\n\r\n\t\treturn \"GarantieNO\";\r\n\t}",
"public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}",
"public String getName() { return \"Gate\"; }"
] | [
"0.6360668",
"0.6337104",
"0.6280146",
"0.62305605",
"0.61518914",
"0.6120162",
"0.6102961",
"0.60813564",
"0.6064711",
"0.60458845",
"0.6041154",
"0.60093087",
"0.60001534",
"0.59802306",
"0.5971693",
"0.5964267",
"0.5957681",
"0.59529924",
"0.5952197",
"0.5946363",
"0.594634",
"0.59357285",
"0.59204316",
"0.59197265",
"0.58880925",
"0.58685344",
"0.5867326",
"0.58556193",
"0.58540404",
"0.5848817",
"0.5840622",
"0.5834243",
"0.5811866",
"0.58015513",
"0.57979727",
"0.5794101",
"0.5792911",
"0.5777622",
"0.57740265",
"0.5773516",
"0.5772963",
"0.5762906",
"0.57606804",
"0.5760304",
"0.5756653",
"0.5752002",
"0.5750315",
"0.5734392",
"0.5730524",
"0.5715718",
"0.5711419",
"0.5709632",
"0.5709426",
"0.5700454",
"0.5697706",
"0.56862146",
"0.5686165",
"0.5682286",
"0.56680804",
"0.5666547",
"0.56649995",
"0.5656684",
"0.56510836",
"0.5649241",
"0.5643007",
"0.56426847",
"0.56389534",
"0.5637825",
"0.5637232",
"0.56366533",
"0.5634699",
"0.56302804",
"0.5627985",
"0.56256306",
"0.56230414",
"0.56209767",
"0.5610876",
"0.5608251",
"0.56054115",
"0.56051767",
"0.5604305",
"0.56042093",
"0.56031847",
"0.558536",
"0.5584933",
"0.55819905",
"0.55797994",
"0.55731183",
"0.55622417",
"0.55577433",
"0.55563796",
"0.55558187",
"0.55535996",
"0.555014",
"0.5549136",
"0.55475336",
"0.55441433",
"0.5542949",
"0.5541951",
"0.55396974",
"0.55321074"
] | 0.0 | -1 |
Liefert Anzahl der Knoten im Graph zur??ck. | int getNumberOfVertexes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}",
"@Override\n public int nodeCount() {\n return graphNodes.size();\n }",
"int getNodesCount();",
"int getNodesCount();",
"public int getNumberOfPaths(){ \r\n HashMap<FlowGraphNode, Integer> number = new HashMap<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n HashMap<FlowGraphNode, Integer> label = new HashMap<>();\r\n \r\n label.put(start,1);\r\n queue.add(start);\r\n do{\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n int count = number.getOrDefault(child, child.inDeg()) -1;\r\n if(count == 0){\r\n queue.add(child);\r\n number.remove(child);\r\n //label\r\n int sum = 0;\r\n for(FlowGraphNode anc : child.from){\r\n sum += label.get(anc);\r\n }\r\n label.put(child,sum);\r\n }else{\r\n number.put(child, count);\r\n }\r\n }\r\n }while(!queue.isEmpty());\r\n \r\n if(!number.isEmpty()){\r\n //there has to be a loop in the graph\r\n return -1;\r\n }\r\n \r\n return label.get(end);\r\n }",
"int NoOfNodes() {\r\n return noOfNodes;\r\n }",
"@Override\n public int edgeCount() {\n int count = 0;\n\n for(MyNode n : graphNodes.values()){\n count += n.inDegree();\n }\n\n return count;\n }",
"public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}",
"int getNumberOfEdges();",
"public int getNumEdges(){\n return numEdges;\n }",
"public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }",
"public int getNumEdges();",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }",
"public int nodesCount() {\n return nodes.size();\n }",
"int getEdgeCount();",
"int getNodeCount();",
"int getNodeCount();",
"public int getNumberOfEdges();",
"public int getNumEdges()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn numEdges;\n\t}",
"public int size(){\n return nodes.size();\n }",
"public int numEdges();",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"@Override\n\tpublic long numEdges() {\n\t\treturn numEdges;\n\t}",
"public int getVertexCount();",
"public int getNumEdges() {\n\t\treturn this.actualTotalEdges;\n\t}",
"@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }",
"public int size()\n {\n return nodes.size();\n }",
"public int getNetSize() {\n return graph.size();\n }",
"public int getVertexCount() {\n return map.keySet().size();\n }",
"public int size() {\n return nodes.size();\n }",
"private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}",
"int getLabelsCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"public int size()\n {\n return numEdges;\n }",
"private int nonDirectionalEdgesNumber() {\n return selectedNonDirectionalEdges.size();\n }",
"private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"int totalNumberOfNodes();",
"@Override\n\t\tpublic int getRowCount() {\n\t\t\treturn app.graph.verticesCount;\n\t\t}",
"public int nodeCount(){\r\n\t\treturn size;\r\n\t}",
"public int size()\r\n { \r\n return numNodes;\r\n }",
"int nodeCount();",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"int numEdges() {\n\t\treturn num_edges;\n\t}",
"public int countNodes(){\r\n \treturn count(root);\r\n }",
"public String getVerticesCount() {\n long res = 0;\n Iterator<Vertex> itty = g.vertices();\n Vertex v;\n while (itty.hasNext()) {\n v = itty.next();\n res++;\n }\n return Long.toString(res);\n }",
"int getTotalNumOfNodes() {\n\t\treturn adjList.size();\n\t}",
"@Override\n\tpublic int size() {\n\t\tif(top == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tNode<T> tempNode = top;\n\t\tint counter = 1;\n\t\twhile(tempNode.getLink() != null) {\n\t\t\tcounter++;\n\t\t\ttempNode = tempNode.getLink();\n\t\t}\n\t\treturn counter;\n\t}",
"public int getNodeCount() {\n return nodeCount;\n }",
"public int size(){\n return n_nodi;\n }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"public int size() {\n\t\treturn nodes.size();\n\t}",
"public int getNunFigli() {\n\t\tint numFigli = 0;\n\t\tfor (Nodo_m_ario figlio : figli) {\n\t\t\tif (figlio != null) {\n\t\t\t\tnumFigli += 1;\n\t\t\t}\n\t\t}\n\t\treturn numFigli;\n\t}",
"public int getNrVertices(){\n return nrVertices;\n }",
"public int getNumEdges() {\n return num_edges;\n }",
"public int getNumVertices()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn numVertices;\n\t}",
"@Override\n\tpublic int graphSize() {\n\t\treturn edges.size();\n\t}",
"public int getNumVertices();",
"public int getNodeCount() {\n return dataTree.getNodeCount();\n }",
"public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }",
"static int displayN(Node node)\r\n {\r\n return node.neighbors.size();\r\n }",
"final int getIndegree() {\n return parents.size();\n }",
"public int getNodeCount() {\n return node_.size();\n }",
"public int numberOfNodes() {\n return numberOfNodes(root);\n }",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"public abstract int getVertexCount();",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }",
"public int numNodi() {\n\t\treturn this.nodi.size();\n\t}",
"int getPartitionLagsCount();",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}",
"public int getNumberOfVertices();",
"public int getDegree(){\n\t\treturn neighbours.size();\n\t}",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"public int countNodes()\n {\n return countNodes(root);\n }",
"public int countNodes()\n {\n return countNodes(root);\n }",
"public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }",
"public int numEdges() {\r\n\t\treturn edges;\r\n\t}",
"public int getNumEdges() {\n\t\treturn edges.size();\n\t}",
"@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }",
"public final int size() {\n return nNodes;\n }",
"public int my_node_count();",
"public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return visited.size();\r\n }",
"public int getVertexCount()\n\t{\n\t\tint count = 0;\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tcount++;\n\t\t\titr.next();\n\t\t}\n\t\treturn count;\n\t}",
"public int countNodes()\r\n {\r\n return countNodes(root);\r\n }",
"static int printCount(Node root, int k) {\n\t\tHashMap<Integer, Integer> p = new HashMap<>();\n\n\t\t// Function call\n\t\tk_paths(root, k, p, 0);\n\n\t\t// Return the required answer\n\t\treturn res;\n\t}",
"public int size() {\n return neurons.size();\n }",
"public int getEdges() {\n return edgesNumber;\n }",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"public int getHandKarteCount(){\n return getHandKarte().size();\n }",
"private static int numEdges(Graph g) {\n\tint sum = 0;\n\t\n\tfor(int i =0;i<g.vertices;i++)\n\t{\n\t LinkedList<Integer> temp = null;\n\t if(g.adjacencyList[i]!=null) {\n\t\ttemp = g.adjacencyList[i];\n\t\tfor(int tmp:temp) {\n\t\t sum++;\n\t\t}\n\t\t\n\t }\n\t}\n\treturn sum/2;\n }",
"public int my_leaf_count();",
"public int dataCount() {\n return this.root.dataCount();\n }",
"public int getNumVertices(){\n return numVertices;\n }"
] | [
"0.7129912",
"0.69841254",
"0.6910482",
"0.6910482",
"0.6845955",
"0.67082846",
"0.6677833",
"0.66532665",
"0.6652506",
"0.66451615",
"0.66367954",
"0.66334945",
"0.66282815",
"0.6625859",
"0.6611026",
"0.6604451",
"0.6587811",
"0.6587811",
"0.65722764",
"0.6570353",
"0.6556565",
"0.65546227",
"0.65454596",
"0.6544797",
"0.65392137",
"0.6529288",
"0.65177786",
"0.6485912",
"0.6466973",
"0.6451377",
"0.64282674",
"0.6425961",
"0.6420646",
"0.6420415",
"0.6420415",
"0.6420415",
"0.6420415",
"0.64119995",
"0.64061403",
"0.63963246",
"0.6394774",
"0.63919175",
"0.6387045",
"0.6382779",
"0.6381039",
"0.6375758",
"0.6375108",
"0.63737625",
"0.6372626",
"0.63636243",
"0.63472307",
"0.63463974",
"0.63440716",
"0.6342748",
"0.63407755",
"0.63332474",
"0.63329816",
"0.63258785",
"0.6318646",
"0.63152814",
"0.6312671",
"0.63074464",
"0.6306375",
"0.6298704",
"0.6287599",
"0.6279764",
"0.62796324",
"0.62769014",
"0.6270739",
"0.6266666",
"0.6264859",
"0.62520105",
"0.62517184",
"0.62472945",
"0.624635",
"0.6242875",
"0.6236712",
"0.62361246",
"0.6225588",
"0.6220568",
"0.62157387",
"0.62157387",
"0.621279",
"0.61992",
"0.6197286",
"0.61942637",
"0.61907434",
"0.61885124",
"0.6187084",
"0.61798584",
"0.61772186",
"0.6171865",
"0.6169945",
"0.6154588",
"0.614731",
"0.6135993",
"0.61357355",
"0.61330086",
"0.61301476",
"0.61243284"
] | 0.6377854 | 45 |
Liefert Anzahl der Kanten im Graph zur??ck. | int getNumberOfEdges(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}",
"@Override\n public int nodeCount() {\n return graphNodes.size();\n }",
"int getNodesCount();",
"int getNodesCount();",
"public int getNumberOfPaths(){ \r\n HashMap<FlowGraphNode, Integer> number = new HashMap<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n HashMap<FlowGraphNode, Integer> label = new HashMap<>();\r\n \r\n label.put(start,1);\r\n queue.add(start);\r\n do{\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n int count = number.getOrDefault(child, child.inDeg()) -1;\r\n if(count == 0){\r\n queue.add(child);\r\n number.remove(child);\r\n //label\r\n int sum = 0;\r\n for(FlowGraphNode anc : child.from){\r\n sum += label.get(anc);\r\n }\r\n label.put(child,sum);\r\n }else{\r\n number.put(child, count);\r\n }\r\n }\r\n }while(!queue.isEmpty());\r\n \r\n if(!number.isEmpty()){\r\n //there has to be a loop in the graph\r\n return -1;\r\n }\r\n \r\n return label.get(end);\r\n }",
"@Override\n public int edgeCount() {\n int count = 0;\n\n for(MyNode n : graphNodes.values()){\n count += n.inDegree();\n }\n\n return count;\n }",
"public int getVertexCount();",
"int NoOfNodes() {\r\n return noOfNodes;\r\n }",
"public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }",
"public int nodesCount() {\n return nodes.size();\n }",
"public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}",
"public int size(){\n return nodes.size();\n }",
"int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }",
"int getEdgeCount();",
"int getNodeCount();",
"int getNodeCount();",
"public int getNumEdges(){\n return numEdges;\n }",
"public int getNumEdges();",
"int getNrNodes() {\n\t\treturn adjList.size();\n\t}",
"public int size()\n {\n return nodes.size();\n }",
"public int getNumberOfEdges();",
"@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"public int countNodes(){\r\n \treturn count(root);\r\n }",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"public int size() {\n return nodes.size();\n }",
"public int getNumEdges() {\n\t\treturn this.actualTotalEdges;\n\t}",
"public int getVertexCount() {\n return map.keySet().size();\n }",
"public int numEdges();",
"public int nodeCount(){\r\n\t\treturn size;\r\n\t}",
"int getNumberOfVertexes();",
"public int getNetSize() {\n return graph.size();\n }",
"int getTotalNumOfNodes() {\n\t\treturn adjList.size();\n\t}",
"@Override\n\tpublic long numEdges() {\n\t\treturn numEdges;\n\t}",
"int totalNumberOfNodes();",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"public int getNumEdges()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn numEdges;\n\t}",
"public abstract int getVertexCount();",
"public int size()\r\n { \r\n return numNodes;\r\n }",
"public int getNodeCount() {\n return nodeCount;\n }",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"@Override\n\tpublic int graphSize() {\n\t\treturn edges.size();\n\t}",
"public int countLevels() {\n return levels.size();\n }",
"public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }",
"public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }",
"public String getVerticesCount() {\n long res = 0;\n Iterator<Vertex> itty = g.vertices();\n Vertex v;\n while (itty.hasNext()) {\n v = itty.next();\n res++;\n }\n return Long.toString(res);\n }",
"public int size()\n {\n return numEdges;\n }",
"@Override\n\t\tpublic int getRowCount() {\n\t\t\treturn app.graph.verticesCount;\n\t\t}",
"@Override\n\tpublic int size() {\n\t\tif(top == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tNode<T> tempNode = top;\n\t\tint counter = 1;\n\t\twhile(tempNode.getLink() != null) {\n\t\t\tcounter++;\n\t\t\ttempNode = tempNode.getLink();\n\t\t}\n\t\treturn counter;\n\t}",
"public int size() {\n\t\treturn nodes.size();\n\t}",
"private int nonDirectionalEdgesNumber() {\n return selectedNonDirectionalEdges.size();\n }",
"public int getNodeCount() {\n return dataTree.getNodeCount();\n }",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public int size(){\n return n_nodi;\n }",
"private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}",
"private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}",
"final int getIndegree() {\n return parents.size();\n }",
"int nodeCount();",
"public int getNodeCount() {\n return node_.size();\n }",
"public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }",
"public int countNodes()\n {\n return countNodes(root);\n }",
"public int countNodes()\n {\n return countNodes(root);\n }",
"public int numberOfNodes() {\n return numberOfNodes(root);\n }",
"public int getVertexCount()\n\t{\n\t\tint count = 0;\n\t\tIterator<DSAGraphVertex> itr = vertices.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tcount++;\n\t\t\titr.next();\n\t\t}\n\t\treturn count;\n\t}",
"public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return visited.size();\r\n }",
"public int countNodes()\r\n {\r\n return countNodes(root);\r\n }",
"public int getNumVertices();",
"public int my_leaf_count();",
"int numEdges() {\n\t\treturn num_edges;\n\t}",
"public int getDegree(){\n\t\treturn neighbours.size();\n\t}",
"int getLabelsCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"public int getNumEdges() {\n return num_edges;\n }",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}",
"public int getNumberOfVertices();",
"public int getNumVertices()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn numVertices;\n\t}",
"public int howManyLevels()\r\n\t{\r\n\t\t// Formula is the ceiling of the log base 2 of (the current number of nodes + 1)\r\n\t\treturn (int) Math.ceil(Math.log(getCounter() + 1) / Math.log(2));\r\n\t}",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public int dataCount() {\n return this.root.dataCount();\n }",
"public int size()\n {\n return _root.size();\n }",
"public int getNrVertices(){\n return nrVertices;\n }",
"public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }",
"public int getEdgeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n int counter = 0;\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n counter += node.outDeg();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return counter;\r\n }",
"public int numNodi() {\n\t\treturn this.nodi.size();\n\t}",
"public int getSize(){\n return this.node.getValues().size();\n }",
"public int nodeSize()\n{\n\treturn getNodes().size();\n}",
"public int size() {\n return tree.count();\n }",
"public final int size() {\n return nNodes;\n }",
"@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }",
"public int countNodes() {\n\t\t\n\t\tif(isEmpty()==false){\n\t\t\tint count =1;\n\t\t\tDoubleNode temp=head;\n\t\t\twhile(temp.getNext()!=null){\n\t\t\t\tcount++;\n\t\t\t\ttemp=temp.getNext();\n\t\t}\n\t\treturn count;\n\t\t}\n\t\telse{\n\t\t\treturn 0;\n\t\t}\n\t}",
"public int getVertexSize() {\n\t\treturn graph.vertexSet().size();\r\n\t}",
"public int size() {\n return neurons.size();\n }",
"public int getHandKarteCount(){\n return getHandKarte().size();\n }",
"public int my_node_count();",
"public int getVertexCount() {\n return vertexCount;\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}"
] | [
"0.71921843",
"0.6993687",
"0.69345534",
"0.69345534",
"0.6859568",
"0.66871077",
"0.66839445",
"0.6681666",
"0.6664841",
"0.66634184",
"0.6643997",
"0.6642832",
"0.66240644",
"0.66212565",
"0.660579",
"0.660579",
"0.6573883",
"0.6573817",
"0.65696687",
"0.6541829",
"0.652656",
"0.6515111",
"0.6514188",
"0.65089345",
"0.6507906",
"0.6503578",
"0.6497445",
"0.6487503",
"0.6487225",
"0.6486011",
"0.6482773",
"0.6477114",
"0.6468941",
"0.64580727",
"0.6453854",
"0.644361",
"0.64406633",
"0.6431437",
"0.64291066",
"0.6420791",
"0.6412516",
"0.64114654",
"0.641141",
"0.64079744",
"0.64023304",
"0.6399982",
"0.63995224",
"0.6399358",
"0.6395957",
"0.63926923",
"0.63861746",
"0.6385437",
"0.6382706",
"0.637756",
"0.636699",
"0.63651794",
"0.6363172",
"0.636199",
"0.6353538",
"0.63512176",
"0.63314235",
"0.6330106",
"0.6330106",
"0.6327773",
"0.6316096",
"0.6307577",
"0.6292276",
"0.62909544",
"0.62909144",
"0.6285996",
"0.626785",
"0.6267403",
"0.6267403",
"0.6267403",
"0.6267403",
"0.6266934",
"0.6265495",
"0.6247908",
"0.62450176",
"0.6241833",
"0.62402385",
"0.62389994",
"0.6238556",
"0.62384784",
"0.6236888",
"0.6235866",
"0.6233417",
"0.622516",
"0.62192947",
"0.6217017",
"0.6210394",
"0.62101465",
"0.62024546",
"0.62017477",
"0.61988914",
"0.6182713",
"0.6182434",
"0.6182188",
"0.61808974",
"0.6179162"
] | 0.657196 | 18 |
Liefert Liste aller Knoten im Graph zur??ck. | List<V> getVertexList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }",
"@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }",
"public Graph getGraph();",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"@Override\n public Collection<? extends IGraph> getGraphs() {\n\n return new LinkedList<>(\n Collections.unmodifiableCollection(this.graphMap.values()));\n }",
"@Override\n public Graph getGraph() {\n return graph;\n }",
"public void buildGraph(){\n\t}",
"public List<Node> getNodes();",
"List<Node> getNodes();",
"Graph getRecentGraph();",
"@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }",
"@Override\r\n public List<Vertex> getVertices() {\r\n List<Vertex> verticesList = new LinkedList<>(adjacencyList.keySet()); //getting the key set of adjacencyList i.e, a list of all vertices\r\n Collections.sort(verticesList, Comparator.comparing(Vertex::getLabel));\r\n return verticesList;\r\n }",
"List<Node> nodes();",
"public List<NetworkNode> listNetworkNode();",
"public abstract List<AStarNode> getNeighbours();",
"void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }",
"@Override\n public Iterator<Node<E>> iterator() {\n return new ArrayList<Node<E>>(graphNodes.values()).iterator();\n }",
"public List<Node> getPillList();",
"static void showGraph(ArrayList<ArrayList<Integer>> graph) {\n for(int i=0;i< graph.size(); i++ ){\n System.out.print(\"Vertex : \" + i + \" : \");\n for(int j = 0; j < graph.get(i).size(); j++) {\n System.out.print(\" -> \"+ graph.get(i).get(j));\n }\n }\n }",
"public List neighbors(int vertex) {\n// your code here\n LinkedList<Integer> result = new LinkedList<>();\n LinkedList<Edge> list = adjLists[vertex];\n for (Edge a : list) {\n result.add(a.to());\n }\n//List<Integer> list = new List<Integer>();\n return result;\n }",
"void printGraph();",
"List<Neuron> getDendrites();",
"public void getAllPaths(Graph<Integer> graph) {\n\t\tTopologicalSort obj = new TopologicalSort();\r\n\t\tStack<Vertex<Integer>> result = obj.sort(graph);\r\n\t\t\r\n\t\t// source (one or multiple) must lie at the top\r\n\t\twhile(!result.isEmpty()) {\r\n\t\t\tVertex<Integer> currentVertex = result.pop();\r\n\t\t\t\r\n\t\t\tif(visited.contains(currentVertex.getId())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tstack = new Stack<Vertex<Integer>>();\r\n\t\t\tSystem.out.println(\"Paths: \");\r\n\t\t\tvisited = new ArrayList<Long>();\r\n\t\t\tdfs(currentVertex);\r\n\t\t\t//System.out.println(stack);\r\n\t\t\t//GraphUtil.print(stack);\t\t\t\r\n\t\t}\r\n\r\n\t}",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"List<CyNode> getNodeList();",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<Node> node_list() throws HibernateException \r\n\t\t{ \r\n\t\t\tList <Node> Lista_nodos = null; \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); //IMPORTANTE la query: se pide la clase realmnete Cliente! no la tabla que se ha creado\r\n\t\t Lista_nodos= sesion.createQuery(\"FROM Node\").list(); //creamos consulta de la tabla clientes (en plural)!\r\n\t\t }finally \r\n\t\t { \r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return Lista_nodos; \r\n\t\t}",
"public Set<String> getAllNodes() {\n return this.graph.keySet();\n }",
"public void print (){\r\n for (int i = 0; i < graph.size(); ++i){\r\n graph.get(i).print();\r\n }\r\n }",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}",
"public Node getList(Vertex lim){\r\n p = list;\r\n nOut= new Node(null,null);\r\n q=nOut;\r\n\r\n while(p.next!=null) {\r\n p = p.next;\r\n q.next = new Node(p.item, null);\r\n q = q.next;\r\n if (p.item.name == lim.name)\r\n break;\r\n }\r\n return nOut;\r\n }",
"Iterable<Long> vertices() {\n return nodes.keySet();\n }",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"public void displayAsList()\n\t{\n\t\tSystem.out.println(\"Printing all vertices\");\n\t\tvertices.show();\n\t}",
"ArrayList<Node> DFSIter( Graph graph, final Node start, final Node end)\n {\n boolean visited[] = new boolean[graph.numNodes];\n Stack<Node> stack = new Stack<Node>();\n Map< Node,Node> parentPath = new HashMap< Node,Node>(); \n stack.push(start);\n\n while ( !stack.isEmpty() )\n {\n Node currNode = stack.pop();\n // end loop when goal node is found\n if ( currNode == end )\n break;\n // If node has already been visited, skip it\n if ( visited[currNode.id] )\n continue;\n else\n {\n visited[currNode.id] = true;\n int numEdges = currNode.connectedNodes.size();\n\n for ( int i = 0; i < numEdges; i++ )\n {\n Node edgeNode = currNode.connectedNodes.get(i);\n if ( !visited[edgeNode.id] )\n {\n stack.push( edgeNode );\n parentPath.put( edgeNode, currNode);\n }\n }\n \n }\n }\n\n ArrayList<Node> path = new ArrayList<Node>();\n Node currNode = end;\n while ( currNode != null )\n {\n path.add(0, currNode);\n currNode = parentPath.get(currNode);\n }\n\n return path;\n }",
"@Override\n public abstract Collection<? extends GraphNode<N, E>> getNodes();",
"java.util.List<com.zibea.recommendations.webserver.core.dao.proto.AttributesMapProto.Map.KeyValue> \n getNodesList();",
"public void drawGraph(Graphics g) \n\t{\n\t\tNode<T> n = start;\n\t\tint count = 0;\t//loop counter variable\n\t\twhile((n.next != start && count == 0) || count < 1) //while not at end of list and hasnt looped\n\t\t{\n\t\t\tint[] pos = n.computeXY();\t\t\t\t\t\t//compute coordinates of the current node\n\t\t\tint[] nextPos = n.next.computeXY();\t\t\t\t//compute coordinates of the next node\n\n\t\t\t//System.out.println(\"--\\nval: \" + n.value + \" position: \" + pos[0] + \", \" + pos[1]);\n\n\t\t\tg.setColor(Color.BLACK); //set draw color to black\n\t\t\tg.drawLine(pos[0], pos[1], nextPos[0], nextPos[1]); //draw line between current \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and next node\n\t\t\tif(n.isCurrent) //if the node n is the current node in the list\n\t\t\t{\n\t\t\t\tg.setColor(new Color(100, 200, 100));\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tg.setColor(new Color(130, 225, 235));\t\n\t\t\t}\n\n\t\t\tg.fillOval(pos[0] - 25, pos[1] - 25, 50, 50);\t//fill the oval\n\t\t\tg.setColor(Color.BLACK);\t\t\t\t\t\t//set the color of the oval\n\t\t\tif(n == start) \t\t\t\t\t\t\t\t\t//if n is the starting node\n\t\t\t{\n\t\t\t\tg.drawOval(pos[0] - 20, pos[1] - 20, 40, 40);\n\t\t\t}\n\t\t\tg.drawOval(pos[0] - 25, pos[1] - 25, 50, 50);\n\t\t\tg.drawString(n.value.toString(), pos[0], pos[1] + 5);\n\t\t\t\n\t\t\tif(n.next == start) //if we are at the end\n\t\t\t{\n\t\t\t\tcount++;\t\t//increment loop counter\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t}",
"void printNodesWithEdges()\n {\n for ( int i = 0; i < this.numNodes; i++ )\n {\n Node currNode = this.nodeList.get(i);\n System.out.println(\"Node id: \" + currNode.id );\n \n int numEdges = currNode.connectedNodes.size();\n for ( int j = 0; j < numEdges; j++ )\n {\n Node currEdge = currNode.connectedNodes.get(j);\n System.out.print(currEdge.id + \",\");\n }\n\n System.out.println();\n } \n\n \n }",
"public ReilGraph getGraph() {\n return m_graph;\n }",
"List<Edge<V>> getEdgeList();",
"List<WayBill> getWayBillVisited();",
"public List<Node> getPowerPillList();",
"@Override\n\tpublic String toString()\n\t{\n\t\t/* output looks like this\n\t\t * \n\t\t * 20 - 10, 30 20 has edges with 10 and 30\n\t\t * 40 - 10, 30 \t\t40 has edges with 10 and 30\n\t\t * 10 - 20, 40 \t\t\t10 has edges with 20 and 40\n\t\t * 30 - 20, 40 \t\t\t30 has edges with 20 and 40\n\t\t */\n\t\tString str = new String();\n\t\tfor(Map.Entry<Object, SinglyLinkedList> vertex : map.entrySet())\n\t\t\tstr += vertex.getKey() + \" - \" + vertex.getValue() + '\\n';\t\t\t\t\n\t\treturn str;\n\t}",
"public abstract List<? extends GraphEdge<N, E>> getEdges();",
"public static void printGraph( Graph graph ){\n\t\tint size = graph.getGraph().size();\n\t\tStringBuilder sb = new StringBuilder(); \n\t\tint weight = 0;\n\t\tfor( String start: graph.getGraph().keySet() ) {\n\t\t\tfor( String end : graph.getGraph().get(start).keySet() ) {\n\t\t\t\tweight = graph.getGraph().get(start).get(end);\n\t\t\t\tsb.append( start + end + String.valueOf(weight) + \", \" );\n\t\t\t}\n\t\t}\n\t\tsb.delete(sb.length()-2, sb.length());\n\t\tSystem.out.println(sb.toString());\n\t}",
"public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }",
"public ArrayList<GraphNode> getNodes() {\n return selectedNodes;\n }",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"@Override\n public String toString() {\n String str = \"graph [\\n\";\n\n Iterator<Node<E>> it = iterator();\n\n //Node display\n while(it.hasNext()){\n Node n = it.next();\n\n str += \"\\n\\tnode [\";\n str += \"\\n\\t\\tid \" + n;\n str += \"\\n\\t]\";\n }\n\n //Edge display\n it = iterator();\n\n while(it.hasNext()){\n Node n = it.next();\n\n Iterator<Node<E>> succsIt = n.succsOf();\n while(succsIt.hasNext()){\n Node succN = succsIt.next();\n\n str += \"\\n\\tedge [\";\n str += \"\\n\\t\\tsource \" + n;\n str += \"\\n\\t\\ttarget \" + succN;\n str += \"\\n\\t\\tlabel \\\"Edge from node \" + n + \" to node \" + succN + \" \\\"\";\n str += \"\\n\\t]\";\n }\n }\n\n str += \"\\n]\";\n\n return str;\n }",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"@Override\n\tpublic int graphOrder() {\n\t\treturn vertices.size();\n\t}",
"public OrientGraph getGraph();",
"public static ArrayList<String> connectors2(Graph g) {\n boolean[] visits = new boolean[g.members.length]; \n for (int i=0;i<=g.members.length-1;i++) {\n \tvisits[i]=false;\n }\n int[] dfsnum = new int[g.members.length];\n int[] back = new int[g.members.length];\n ArrayList<String> answer = new ArrayList<String>();\n\n //driver portion\n for (Person person : g.members) {\n //if it hasn't been visited\n if (visits[g.map.get(person.name)]==false){\n //for different islands\n dfsnum = new int[g.members.length];\n dfs(g.map.get(person.name), g.map.get(person.name), g, visits, dfsnum, back, answer);\n }\n }\n \n //check if vertex has one neighbor\n for (int i = 0; i < answer.size(); i++) {\n Friend ptr = g.members[g.map.get(answer.get(i))].first;\n //counts number of neighbors\n int count = 0;\n while (ptr != null) {\n ptr = ptr.next;\n count++;\n }\n if (count == 1) answer.remove(i);\n if (count == 0) answer.remove(i);\n } \n for (Person member : g.members) {\n if (member.first!=null&& member.first.next == null) {\n if (answer.contains(g.members[member.first.fnum].name)==false)\n \t\t answer.add(g.members[member.first.fnum].name);\n }\n }\n answer=modify(answer,g);\n if (answer==null||answer.size()==0) return null;\n return answer;\n }",
"protected LinkedList<Vertex> getVertexList() {\n\t\tLinkedList<Vertex> returnList = new LinkedList<Vertex>();\n\n\t\t// Add family\n\t\tif (this.getFamily() != null) {\n\t\t\treturnList = this.getFamily().getFamilyVertexList();\n\t\t}\n\t\treturnList.add(this);\n\t\treturn returnList;\n\t}",
"public void testaGraph() {\n\t\tEstacaoDAO a = new EstacaoDAO();\n\t\ta.carregarEstacoes();\n\t\tLinha b = new Linha(\"a\");\n\t\tb.loadAllStations(a);\n\t\tb.shortestPath(a,\"Curado\",\"Recife\");\n\t}",
"@Override\n public String toString() {\n return \"Liste de \" + this.list.size() + \" polygones\";\n }",
"public AbstractListMapGraph()\n\t{\n\t\tsuper();\n\t\tedgeList = new ArrayList<ET>();\n\t\tnodeList = new ArrayList<N>();\n\t\tgcs = new GraphChangeSupport<N, ET>(this);\n\t\tnodeEdgeMap = new HashMap<N, Set<ET>>();\n\t}",
"@Override\n \t\t\t\tpublic Collection<String> getAttachedGraphNames() {\n \t\t\t\t\treturn null;\n \t\t\t\t}",
"public Collection<GraphNode> getGraphNodes() {\n\t\treturn graphNodeMap.values();\n\t}",
"List<CyEdge> getInternalEdgeList();",
"public void draw()\r\n\t\t{\r\n\t\tfor(PanelStationMeteo graph: graphList)\r\n\t\t\t{\r\n\t\t\tgraph.repaint();\r\n\t\t\t}\r\n\t\t}",
"private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B\");\n\t\tVertex vertexC = new Vertex(\"C\");\n\t\tVertex vertexD = new Vertex(\"D\");\n\t\tVertex vertexE = new Vertex(\"E\");\n\t\tVertex vertexF = new Vertex(\"F\");\n\t\tVertex vertexG = new Vertex(\"G\");\n\n\t\tList<Edge> edges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 2));\n\t\tedges.add(new Edge(vertexD, 6));\n\t\tedges.add(new Edge(vertexF, 5));\n\t\tvertexA.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 2));\n\t\tedges.add(new Edge(vertexC, 7));\n\t\tvertexB.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 7));\n\t\tedges.add(new Edge(vertexD, 9));\n\t\tedges.add(new Edge(vertexF, 1));\n\t\tvertexC.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 6));\n\t\tedges.add(new Edge(vertexC, 9));\n\t\tedges.add(new Edge(vertexE, 4));\n\t\tedges.add(new Edge(vertexG, 8));\n\t\tvertexD.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 4));\n\t\tedges.add(new Edge(vertexF, 3));\n\t\tvertexE.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 5));\n\t\tedges.add(new Edge(vertexC, 1));\n\t\tedges.add(new Edge(vertexE, 3));\n\t\tvertexF.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 8));\n\t\tvertexG.incidentEdges = edges;\n\n\t\tgraph.add(vertexA);\n\t\tgraph.add(vertexB);\n\t\tgraph.add(vertexC);\n\t\tgraph.add(vertexD);\n\t\tgraph.add(vertexE);\n\t\tgraph.add(vertexF);\n\t\tgraph.add(vertexG);\n\n\t\treturn graph;\n\t}",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n ArrayList<Long> verticesIter = new ArrayList<>();\n verticesIter.addAll(adj.keySet());\n return verticesIter;\n }",
"public VBox getGraph(){\n\t\treturn graph.getGraph();\n\t}",
"public List<Long> getAlleKontonummern() {\n return new LinkedList<>(kontoMap.keySet());\n }",
"String targetGraph();",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"public Collection<MyNode> getNeighbors(){\r\n return new ArrayList<>(this.neighbors);\r\n }",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn graph.keySet().iterator();\n\t}",
"public List<Object> getList() {\n List<Object> returnList = new ArrayList<Object>();\n ListNode<String, Object> n = front;\n while(n != null) {\n returnList.add(n.value);\n n = n.next;\n }\n Collections.reverse(returnList);\n return returnList;\n }",
"public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }",
"List<GraphEdge> getNeighbors(NodeKey key);",
"public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }",
"public void printDGraph(){\n System.out.println(this.toString());\n }",
"java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode> \n getNodeList();",
"private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}",
"String getEdges();",
"public Graph getGraph() {\n\t\treturn this.Graph;\n\t}",
"public Collection<Vertex> vertices() { \n //return myGraph.keySet(); OLD\n //create a copy of all the vertices in the map to restrict any reference\n //to the interals of this class\n Collection<Vertex> copyOfVertices = new ArrayList<Vertex>();\n copyOfVertices.addAll(myGraph.keySet());\n return copyOfVertices;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Node<A>> neighbours(){\n\t\t\n\t\tArrayList<Node<A>> output = new ArrayList<Node<A>>();\n\t\t\n\t\tif (g == null) return output;\n\t\t\n\t\tfor (Object o: g.getEdges()){\n\n\t\t\t\n\t\t\tif (((Edge<?>)o).getTo().equals(this)) {\n\t\t\t\t\n\t\t\t\tif (!output.contains(((Edge<?>)o).getFrom()))\n\t\t\t\t\t\toutput.add((Node<A>) ((Edge<?>)o).getFrom());\n\t\t\t\t\n\t\t\t}\n\n\t\t} \n\t\treturn output;\n\t\t\n\t}",
"public Graphs() {\n graph = new HashMap<>();\n }",
"@Override\n public Collection<node_data> getV() {\n return this.nodes.values();\n }",
"public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }",
"@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}",
"public List<List<NodeType>> getAllKCliques() {\n\t\treturn null;\t\t//TODO\n\t}",
"public List<INode> getAllNodes();",
"public ArrayList<Node> getListNodes(){\r\n return listNodes;\r\n }",
"public abstract List<GraphNode<N, E>> getNeighborNodes(N value);",
"List<String> getNodeNames()\n {\n return allNodes.values().stream().map(CommunicationLink::getName).collect(Collectors.toList());\n }",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"java.util.List<entities.Torrent.NodeId>\n getNodesList();",
"public void listar() {\n\t\t\n\t}",
"@Override\n\tpublic <K extends BasePojo> List<K> getTreeViewList() throws Exception {\n\t\treturn null;\n\t}",
"String showAllNodes();",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"private Collection<Node> getNodes()\r\n\t{\r\n\t return nodeMap.values();\r\n\t}",
"@Override\n \t\t\t\tpublic String getGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/namedGraph/3\";\n \t\t\t\t}"
] | [
"0.65953314",
"0.6503939",
"0.64905673",
"0.6472462",
"0.6333992",
"0.6315823",
"0.6302078",
"0.6299574",
"0.6294683",
"0.6290737",
"0.62729526",
"0.6225335",
"0.61648846",
"0.616096",
"0.61254007",
"0.60979736",
"0.60966325",
"0.60846764",
"0.6030986",
"0.6009921",
"0.5992153",
"0.5977792",
"0.59598887",
"0.59551346",
"0.595039",
"0.5945602",
"0.5928308",
"0.59270245",
"0.59254575",
"0.59219426",
"0.59175277",
"0.5906814",
"0.5901441",
"0.58672047",
"0.5863389",
"0.58596647",
"0.5858785",
"0.5855826",
"0.58375967",
"0.58370405",
"0.58263445",
"0.580951",
"0.5801605",
"0.57991946",
"0.57975596",
"0.57972234",
"0.5781779",
"0.57673705",
"0.57673657",
"0.5757113",
"0.5748611",
"0.57471466",
"0.5744011",
"0.5735322",
"0.57293373",
"0.5728816",
"0.57237864",
"0.5707046",
"0.57069474",
"0.5706496",
"0.57048815",
"0.57006496",
"0.5693948",
"0.56922513",
"0.5691401",
"0.569127",
"0.56911594",
"0.56765777",
"0.5676329",
"0.56714803",
"0.5663748",
"0.56626326",
"0.5652779",
"0.5646291",
"0.5641821",
"0.5641461",
"0.56412715",
"0.56391877",
"0.56326747",
"0.5631472",
"0.5628344",
"0.5626611",
"0.5626325",
"0.5626209",
"0.56256866",
"0.5623658",
"0.5618803",
"0.5614845",
"0.56146216",
"0.56134236",
"0.5612558",
"0.56053525",
"0.5587526",
"0.5586428",
"0.5585538",
"0.5583749",
"0.558236",
"0.5581064",
"0.5577115",
"0.5575826"
] | 0.5800572 | 43 |
Liefert Liste aller Kanten im Graph zur??ck. | List<Edge<V>> getEdgeList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Graph getGraph();",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }",
"public void printGraph()\n {\n Iterator<T> nodeIterator = nodeList.keySet().iterator();\n \n while (nodeIterator.hasNext())\n {\n GraphNode curr = nodeList.get(nodeIterator.next());\n \n while (curr != null)\n {\n System.out.print(curr.nodeId+\"(\"+curr.parentDist+\")\"+\"->\");\n curr = curr.next;\n }\n System.out.print(\"Null\");\n System.out.println();\n }\n }",
"public void buildGraph(){\n\t}",
"@Override\n public Graph getGraph() {\n return graph;\n }",
"@Override\n public Collection<? extends IGraph> getGraphs() {\n\n return new LinkedList<>(\n Collections.unmodifiableCollection(this.graphMap.values()));\n }",
"@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }",
"@Override\r\n public List<Vertex> getVertices() {\r\n List<Vertex> verticesList = new LinkedList<>(adjacencyList.keySet()); //getting the key set of adjacencyList i.e, a list of all vertices\r\n Collections.sort(verticesList, Comparator.comparing(Vertex::getLabel));\r\n return verticesList;\r\n }",
"public List<Node> getNodes();",
"Graph getRecentGraph();",
"List<Node> getNodes();",
"void printGraph() {\n for (Vertex u : this) {\n System.out.print(u + \": \");\n for (Edge e : u.Adj) {\n System.out.print(e);\n }\n System.out.println();\n }\n }",
"public void getAllPaths(Graph<Integer> graph) {\n\t\tTopologicalSort obj = new TopologicalSort();\r\n\t\tStack<Vertex<Integer>> result = obj.sort(graph);\r\n\t\t\r\n\t\t// source (one or multiple) must lie at the top\r\n\t\twhile(!result.isEmpty()) {\r\n\t\t\tVertex<Integer> currentVertex = result.pop();\r\n\t\t\t\r\n\t\t\tif(visited.contains(currentVertex.getId())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tstack = new Stack<Vertex<Integer>>();\r\n\t\t\tSystem.out.println(\"Paths: \");\r\n\t\t\tvisited = new ArrayList<Long>();\r\n\t\t\tdfs(currentVertex);\r\n\t\t\t//System.out.println(stack);\r\n\t\t\t//GraphUtil.print(stack);\t\t\t\r\n\t\t}\r\n\r\n\t}",
"@Override\n public Iterator<Node<E>> iterator() {\n return new ArrayList<Node<E>>(graphNodes.values()).iterator();\n }",
"List<Node> nodes();",
"static void showGraph(ArrayList<ArrayList<Integer>> graph) {\n for(int i=0;i< graph.size(); i++ ){\n System.out.print(\"Vertex : \" + i + \" : \");\n for(int j = 0; j < graph.get(i).size(); j++) {\n System.out.print(\" -> \"+ graph.get(i).get(j));\n }\n }\n }",
"public List<NetworkNode> listNetworkNode();",
"ArrayList<Node> DFSIter( Graph graph, final Node start, final Node end)\n {\n boolean visited[] = new boolean[graph.numNodes];\n Stack<Node> stack = new Stack<Node>();\n Map< Node,Node> parentPath = new HashMap< Node,Node>(); \n stack.push(start);\n\n while ( !stack.isEmpty() )\n {\n Node currNode = stack.pop();\n // end loop when goal node is found\n if ( currNode == end )\n break;\n // If node has already been visited, skip it\n if ( visited[currNode.id] )\n continue;\n else\n {\n visited[currNode.id] = true;\n int numEdges = currNode.connectedNodes.size();\n\n for ( int i = 0; i < numEdges; i++ )\n {\n Node edgeNode = currNode.connectedNodes.get(i);\n if ( !visited[edgeNode.id] )\n {\n stack.push( edgeNode );\n parentPath.put( edgeNode, currNode);\n }\n }\n \n }\n }\n\n ArrayList<Node> path = new ArrayList<Node>();\n Node currNode = end;\n while ( currNode != null )\n {\n path.add(0, currNode);\n currNode = parentPath.get(currNode);\n }\n\n return path;\n }",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"void printGraph();",
"public void displayAsList()\n\t{\n\t\tSystem.out.println(\"Printing all vertices\");\n\t\tvertices.show();\n\t}",
"List<V> getVertexList();",
"public void testaGraph() {\n\t\tEstacaoDAO a = new EstacaoDAO();\n\t\ta.carregarEstacoes();\n\t\tLinha b = new Linha(\"a\");\n\t\tb.loadAllStations(a);\n\t\tb.shortestPath(a,\"Curado\",\"Recife\");\n\t}",
"private void printGraph() {\r\n\t\tSortedSet<String> keys = new TreeSet<String>(vertexMap.keySet());\r\n\t\tIterator it = keys.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tVertex v = vertexMap.get(it.next());\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tSystem.out.println(v.getName());\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(v.getName() + \" DOWN\");\r\n\t\t\tsortEdges(v.adjacent);\r\n\t\t\tfor (Iterator i = v.adjacent.iterator(); i.hasNext();) {\r\n\t\t\t\t// v.adjacent.sort();\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus())\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost());\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\" \" + edge.getDestination() + \" \" + edge.getCost() + \" DOWN\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Iterable<Long> vertices() {\n return nodes.keySet();\n }",
"public abstract List<AStarNode> getNeighbours();",
"protected LinkedList<Vertex> getVertexList() {\n\t\tLinkedList<Vertex> returnList = new LinkedList<Vertex>();\n\n\t\t// Add family\n\t\tif (this.getFamily() != null) {\n\t\t\treturnList = this.getFamily().getFamilyVertexList();\n\t\t}\n\t\treturnList.add(this);\n\t\treturn returnList;\n\t}",
"List<Neuron> getDendrites();",
"public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }",
"public OrientGraph getGraph();",
"public List neighbors(int vertex) {\n// your code here\n LinkedList<Integer> result = new LinkedList<>();\n LinkedList<Edge> list = adjLists[vertex];\n for (Edge a : list) {\n result.add(a.to());\n }\n//List<Integer> list = new List<Integer>();\n return result;\n }",
"private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B\");\n\t\tVertex vertexC = new Vertex(\"C\");\n\t\tVertex vertexD = new Vertex(\"D\");\n\t\tVertex vertexE = new Vertex(\"E\");\n\t\tVertex vertexF = new Vertex(\"F\");\n\t\tVertex vertexG = new Vertex(\"G\");\n\n\t\tList<Edge> edges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 2));\n\t\tedges.add(new Edge(vertexD, 6));\n\t\tedges.add(new Edge(vertexF, 5));\n\t\tvertexA.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 2));\n\t\tedges.add(new Edge(vertexC, 7));\n\t\tvertexB.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 7));\n\t\tedges.add(new Edge(vertexD, 9));\n\t\tedges.add(new Edge(vertexF, 1));\n\t\tvertexC.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 6));\n\t\tedges.add(new Edge(vertexC, 9));\n\t\tedges.add(new Edge(vertexE, 4));\n\t\tedges.add(new Edge(vertexG, 8));\n\t\tvertexD.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 4));\n\t\tedges.add(new Edge(vertexF, 3));\n\t\tvertexE.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 5));\n\t\tedges.add(new Edge(vertexC, 1));\n\t\tedges.add(new Edge(vertexE, 3));\n\t\tvertexF.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 8));\n\t\tvertexG.incidentEdges = edges;\n\n\t\tgraph.add(vertexA);\n\t\tgraph.add(vertexB);\n\t\tgraph.add(vertexC);\n\t\tgraph.add(vertexD);\n\t\tgraph.add(vertexE);\n\t\tgraph.add(vertexF);\n\t\tgraph.add(vertexG);\n\n\t\treturn graph;\n\t}",
"public Node getList(Vertex lim){\r\n p = list;\r\n nOut= new Node(null,null);\r\n q=nOut;\r\n\r\n while(p.next!=null) {\r\n p = p.next;\r\n q.next = new Node(p.item, null);\r\n q = q.next;\r\n if (p.item.name == lim.name)\r\n break;\r\n }\r\n return nOut;\r\n }",
"@Override\n\tpublic int graphOrder() {\n\t\treturn vertices.size();\n\t}",
"public ReilGraph getGraph() {\n return m_graph;\n }",
"public List<Node> getPillList();",
"List<CyNode> getNodeList();",
"public Set<String> getAllNodes() {\n return this.graph.keySet();\n }",
"public List<Node> node_list() throws HibernateException \r\n\t\t{ \r\n\t\t\tList <Node> Lista_nodos = null; \r\n\t\t \r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); //IMPORTANTE la query: se pide la clase realmnete Cliente! no la tabla que se ha creado\r\n\t\t Lista_nodos= sesion.createQuery(\"FROM Node\").list(); //creamos consulta de la tabla clientes (en plural)!\r\n\t\t }finally \r\n\t\t { \r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return Lista_nodos; \r\n\t\t}",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"java.util.List<io.netifi.proteus.admin.om.Node> \n getNodesList();",
"public void printGraph() {\n\t\tSystem.out.println(\"-------------------\");\n\t\tSystem.out.println(\"Printing graph...\");\n\t\tSystem.out.println(\"Vertex=>[Neighbors]\");\n\t\tIterator<Integer> i = vertices.keySet().iterator();\n\t\twhile(i.hasNext()) {\n\t\t\tint name = i.next();\n\t\t\tSystem.out.println(name + \"=>\" + vertices.get(name).printNeighbors());\n\t\t}\n\t\tSystem.out.println(\"-------------------\");\n\t}",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"public void drawGraph(Graphics g) \n\t{\n\t\tNode<T> n = start;\n\t\tint count = 0;\t//loop counter variable\n\t\twhile((n.next != start && count == 0) || count < 1) //while not at end of list and hasnt looped\n\t\t{\n\t\t\tint[] pos = n.computeXY();\t\t\t\t\t\t//compute coordinates of the current node\n\t\t\tint[] nextPos = n.next.computeXY();\t\t\t\t//compute coordinates of the next node\n\n\t\t\t//System.out.println(\"--\\nval: \" + n.value + \" position: \" + pos[0] + \", \" + pos[1]);\n\n\t\t\tg.setColor(Color.BLACK); //set draw color to black\n\t\t\tg.drawLine(pos[0], pos[1], nextPos[0], nextPos[1]); //draw line between current \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and next node\n\t\t\tif(n.isCurrent) //if the node n is the current node in the list\n\t\t\t{\n\t\t\t\tg.setColor(new Color(100, 200, 100));\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tg.setColor(new Color(130, 225, 235));\t\n\t\t\t}\n\n\t\t\tg.fillOval(pos[0] - 25, pos[1] - 25, 50, 50);\t//fill the oval\n\t\t\tg.setColor(Color.BLACK);\t\t\t\t\t\t//set the color of the oval\n\t\t\tif(n == start) \t\t\t\t\t\t\t\t\t//if n is the starting node\n\t\t\t{\n\t\t\t\tg.drawOval(pos[0] - 20, pos[1] - 20, 40, 40);\n\t\t\t}\n\t\t\tg.drawOval(pos[0] - 25, pos[1] - 25, 50, 50);\n\t\t\tg.drawString(n.value.toString(), pos[0], pos[1] + 5);\n\t\t\t\n\t\t\tif(n.next == start) //if we are at the end\n\t\t\t{\n\t\t\t\tcount++;\t\t//increment loop counter\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t}",
"public void print (){\r\n for (int i = 0; i < graph.size(); ++i){\r\n graph.get(i).print();\r\n }\r\n }",
"@RequestMapping(value=\"/async/graph\", method=RequestMethod.GET)\n\tpublic @ResponseBody GraphPojo getGraph() {\n\t\tList<Collection> collections = collectionService.findAllCurrent();\n\t\tList<Agent> agents = agentService.findAllCurrent();\n\t\tList<NodePojo> nodes = new ArrayList<NodePojo>();\n\t\tList<EdgePojo> edges = new ArrayList<EdgePojo>();\n\t\tList<String> nodeIds = new ArrayList<String>();\n\t\t\n\t\tNodePojo node;\n\t\tEdgePojo edge;\n\t\t\n\t\t// Nodes\n\t\tfor (Collection c : collections) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(c.getEntityId());\n\t\t\tnode.setLabel(c.getLocalizedDescriptions().get(0).getTitle());\n\t\t\tnode.setType(\"collection\");\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(agent.getEntityId());\n\t\t\t\n\t\t\tif (agent.getForeName()==null) {\n\t\t\t\tnode.setType(\"organization\");\n\t\t\t} else {\n\t\t\t\tnode.setType(\"person\");\n\t\t\t}\n\t\t\t\n\t\t\tString name = (agent.getForeName()==null? \"\": (agent.getForeName() + \" \")) + agent.getName() ;\n\t\t\tnode.setLabel(name);\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\t\n\t\t// Edges\n\t\tfor (Collection c : collections) {\n\t\t\tif (c.getRelations()!=null) {\n\t\t\t\tfor (CollectionRelation cr : c.getRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(cr.getSourceEntityId());\n\t\t\t\t\tedge.setTarget(cr.getTargetEntityId());\n\t\t\t\t\t\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (c.getAgentRelations()!=null && c.getAgentRelations().size()!=0) {\n\t\t\t\tfor (CollectionAgentRelation car : c.getAgentRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(c.getEntityId());\n\t\t\t\t\tedge.setTarget(car.getAgentId());\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tif (agent.getParentAgentId()!=null && !agent.getParentAgentId().isEmpty()) {\n\t\t\t\tedge = new EdgePojo();\n\t\t\t\tedge.setSource(agent.getEntityId());\n\t\t\t\tedge.setTarget(agent.getParentAgentId());\n\t\t\t\t\n\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\tedges.add(edge);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tGraphPojo graph = new GraphPojo();\n\t\tgraph.setNodes(nodes);\n\t\tgraph.setEdges(edges);\n\t\t\n\t\treturn graph;\t\t\n\t}",
"public static void printGraph( Graph graph ){\n\t\tint size = graph.getGraph().size();\n\t\tStringBuilder sb = new StringBuilder(); \n\t\tint weight = 0;\n\t\tfor( String start: graph.getGraph().keySet() ) {\n\t\t\tfor( String end : graph.getGraph().get(start).keySet() ) {\n\t\t\t\tweight = graph.getGraph().get(start).get(end);\n\t\t\t\tsb.append( start + end + String.valueOf(weight) + \", \" );\n\t\t\t}\n\t\t}\n\t\tsb.delete(sb.length()-2, sb.length());\n\t\tSystem.out.println(sb.toString());\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\t\t/* output looks like this\n\t\t * \n\t\t * 20 - 10, 30 20 has edges with 10 and 30\n\t\t * 40 - 10, 30 \t\t40 has edges with 10 and 30\n\t\t * 10 - 20, 40 \t\t\t10 has edges with 20 and 40\n\t\t * 30 - 20, 40 \t\t\t30 has edges with 20 and 40\n\t\t */\n\t\tString str = new String();\n\t\tfor(Map.Entry<Object, SinglyLinkedList> vertex : map.entrySet())\n\t\t\tstr += vertex.getKey() + \" - \" + vertex.getValue() + '\\n';\t\t\t\t\n\t\treturn str;\n\t}",
"public abstract List<? extends GraphEdge<N, E>> getEdges();",
"private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}",
"public AbstractListMapGraph()\n\t{\n\t\tsuper();\n\t\tedgeList = new ArrayList<ET>();\n\t\tnodeList = new ArrayList<N>();\n\t\tgcs = new GraphChangeSupport<N, ET>(this);\n\t\tnodeEdgeMap = new HashMap<N, Set<ET>>();\n\t}",
"@Override\n public String toString() {\n String str = \"graph [\\n\";\n\n Iterator<Node<E>> it = iterator();\n\n //Node display\n while(it.hasNext()){\n Node n = it.next();\n\n str += \"\\n\\tnode [\";\n str += \"\\n\\t\\tid \" + n;\n str += \"\\n\\t]\";\n }\n\n //Edge display\n it = iterator();\n\n while(it.hasNext()){\n Node n = it.next();\n\n Iterator<Node<E>> succsIt = n.succsOf();\n while(succsIt.hasNext()){\n Node succN = succsIt.next();\n\n str += \"\\n\\tedge [\";\n str += \"\\n\\t\\tsource \" + n;\n str += \"\\n\\t\\ttarget \" + succN;\n str += \"\\n\\t\\tlabel \\\"Edge from node \" + n + \" to node \" + succN + \" \\\"\";\n str += \"\\n\\t]\";\n }\n }\n\n str += \"\\n]\";\n\n return str;\n }",
"@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}",
"public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }",
"List<CyEdge> getInternalEdgeList();",
"public void list() {\r\n\t\tfor (String key : nodeMap.keySet()) {\r\n\t\t\tNodeRef node = nodeMap.get(key);\r\n\t\t\tSystem.out.println(node.getIp() + \" : \" + node.getPort());\r\n\t\t}\t\t\r\n\t}",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"String targetGraph();",
"public ArrayList<GraphNode> getNodes() {\n return selectedNodes;\n }",
"void printNodesWithEdges()\n {\n for ( int i = 0; i < this.numNodes; i++ )\n {\n Node currNode = this.nodeList.get(i);\n System.out.println(\"Node id: \" + currNode.id );\n \n int numEdges = currNode.connectedNodes.size();\n for ( int j = 0; j < numEdges; j++ )\n {\n Node currEdge = currNode.connectedNodes.get(j);\n System.out.print(currEdge.id + \",\");\n }\n\n System.out.println();\n } \n\n \n }",
"public Graph getGraph() {\n\t\treturn this.Graph;\n\t}",
"@Override\n public String toString() {\n return \"Liste de \" + this.list.size() + \" polygones\";\n }",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"public Graphs() {\n graph = new HashMap<>();\n }",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n ArrayList<Long> verticesIter = new ArrayList<>();\n verticesIter.addAll(adj.keySet());\n return verticesIter;\n }",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"java.util.List<com.zibea.recommendations.webserver.core.dao.proto.AttributesMapProto.Map.KeyValue> \n getNodesList();",
"List<WayBill> getWayBillVisited();",
"ArrayList<Edge> getAdjacencies();",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn graph.keySet().iterator();\n\t}",
"@Override\n public abstract Collection<? extends GraphNode<N, E>> getNodes();",
"public VBox getGraph(){\n\t\treturn graph.getGraph();\n\t}",
"public ArrayList <Edge> allConnected (Vertex min) {\r\n \r\n tempList = new ArrayList <Edge> (); \r\n \r\n for (int i = 0; i < graph.size(); ++i){\r\n if (graph.get(i).getStart().equals(min.getName())){\r\n tempList.add(graph.get(i));\r\n }\r\n else if (graph.get(i).getEnd().equals(min.getName())){\r\n tempList.add(graph.get(i));\r\n }\r\n }\r\n return tempList;\r\n }",
"public void draw()\r\n\t\t{\r\n\t\tfor(PanelStationMeteo graph: graphList)\r\n\t\t\t{\r\n\t\t\tgraph.repaint();\r\n\t\t\t}\r\n\t\t}",
"public void list() {\n\t\ttraverseInOrder(root);\n\t}",
"public void listar() {\n\t\t\n\t}",
"public void printDGraph(){\n System.out.println(this.toString());\n }",
"public ArrayList<Edge> getAdjacencies(){\r\n return adjacencies;\r\n }",
"@GET\n\t@Produces(\"application/json\")\n\tpublic Response getGraphNodes() {\n\n\t\tif (currentGraph != null) {\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(currentGraph.getNodes())\n\t\t\t\t\t.build();\n\t\t}else {\n\t\t\treturn Response.status(404)\n\t\t\t\t\t.entity(\"NO ESTA\")\n\t\t\t\t\t.build();\n\t\t}\n\n\t\t\n\t}",
"public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }",
"private void graphInfo() {\n \n this.distances = new double[this.cities.size()][this.cities.size()];\n \n City c1, c2;\n \n // take the city\n for (int i = 0; i < this.cities.size(); i++) {\n // go through all the other cities\n c1 = this.cities.get(i);\n for (int j = 0; j < this.cities.size(); j++) {\n c2 = this.cities.get(j);\n this.distances[i][j] = c1.to(c2);\n }\n }\n \n }",
"public static ArrayList<String> connectors2(Graph g) {\n boolean[] visits = new boolean[g.members.length]; \n for (int i=0;i<=g.members.length-1;i++) {\n \tvisits[i]=false;\n }\n int[] dfsnum = new int[g.members.length];\n int[] back = new int[g.members.length];\n ArrayList<String> answer = new ArrayList<String>();\n\n //driver portion\n for (Person person : g.members) {\n //if it hasn't been visited\n if (visits[g.map.get(person.name)]==false){\n //for different islands\n dfsnum = new int[g.members.length];\n dfs(g.map.get(person.name), g.map.get(person.name), g, visits, dfsnum, back, answer);\n }\n }\n \n //check if vertex has one neighbor\n for (int i = 0; i < answer.size(); i++) {\n Friend ptr = g.members[g.map.get(answer.get(i))].first;\n //counts number of neighbors\n int count = 0;\n while (ptr != null) {\n ptr = ptr.next;\n count++;\n }\n if (count == 1) answer.remove(i);\n if (count == 0) answer.remove(i);\n } \n for (Person member : g.members) {\n if (member.first!=null&& member.first.next == null) {\n if (answer.contains(g.members[member.first.fnum].name)==false)\n \t\t answer.add(g.members[member.first.fnum].name);\n }\n }\n answer=modify(answer,g);\n if (answer==null||answer.size()==0) return null;\n return answer;\n }",
"public DirectedGraph<VertexObject, String> getGraph() {\n return graph;\n }",
"public Collection<Vertex> vertices() { \n //return myGraph.keySet(); OLD\n //create a copy of all the vertices in the map to restrict any reference\n //to the interals of this class\n Collection<Vertex> copyOfVertices = new ArrayList<Vertex>();\n copyOfVertices.addAll(myGraph.keySet());\n return copyOfVertices;\n }",
"public String getSubgraph() {\r\n\t\treturn subgraph;\r\n\t}",
"public ParseTree getGraph() {\n return graph;\n }",
"String getEdges();",
"@Override\n public Collection<node_data> getV() {\n return this.nodes.values();\n }",
"@Override\r\n public weighted_graph getGraph() {\r\n return this.Graph;\r\n }",
"public Graph graph() {\n\t\treturn _analyzer.graph();\n\t}",
"public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }",
"void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}",
"@Override\n public Graph getGraphModel() {\n return this.graph;\n }",
"public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}",
"@Override\r\n public Iterable<V> vertices() {\r\n LinkedList<V> list = new LinkedList<>();\r\n for(V v : map.keySet())\r\n list.add(v);\r\n return list;\r\n }",
"public Collection<GraphNode> getGraphNodes() {\n\t\treturn graphNodeMap.values();\n\t}",
"@Override\n \t\t\t\tpublic String getGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/namedGraph/3\";\n \t\t\t\t}",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n return world.keySet();\n }",
"public void print_list() {\n \t \n \t//define current node as\n \t node<Type> current_node = new node<>();\n \t \n \t //now keep for loop and print the answer\n \t current_node = head;\n \t \n \t //print first element\n \t System.out.println(current_node.show_element());\n \t \n \t //now run for loop\n \t for (int i = 1 ; i <= len - 1 ; i ++) {\n \t\t \n \t\t //change current node\n \t\t current_node = current_node.show_next();\n \t\t \n \t\t //just print the answer\n \t\t System.out.println(current_node.show_element());\n \t }\n }"
] | [
"0.66888654",
"0.65653026",
"0.6546766",
"0.6523646",
"0.6480792",
"0.64642686",
"0.6397444",
"0.63770056",
"0.6368369",
"0.6277409",
"0.62662095",
"0.62483513",
"0.6185336",
"0.61327446",
"0.6130459",
"0.6108807",
"0.61059964",
"0.6049002",
"0.6021261",
"0.6015911",
"0.60038733",
"0.5996379",
"0.59931785",
"0.59866464",
"0.59745497",
"0.5949421",
"0.59453887",
"0.5930958",
"0.5918074",
"0.591632",
"0.591142",
"0.5907099",
"0.5891369",
"0.58876497",
"0.5885612",
"0.58812857",
"0.5878229",
"0.5877638",
"0.5874361",
"0.5866581",
"0.5865203",
"0.5864016",
"0.58570313",
"0.5854295",
"0.5853261",
"0.5851981",
"0.5840911",
"0.5828135",
"0.58169854",
"0.5807976",
"0.5806733",
"0.5805468",
"0.58025146",
"0.5799066",
"0.5794537",
"0.5789703",
"0.5786941",
"0.57842183",
"0.578408",
"0.578281",
"0.57818604",
"0.578",
"0.5777267",
"0.5768971",
"0.57681173",
"0.5756585",
"0.5742577",
"0.57352656",
"0.5734021",
"0.5732224",
"0.5729245",
"0.57275605",
"0.5726641",
"0.5726085",
"0.5723978",
"0.5720282",
"0.57143736",
"0.5705164",
"0.5698938",
"0.56948227",
"0.5670375",
"0.5669058",
"0.566868",
"0.566599",
"0.5663486",
"0.5662028",
"0.56592757",
"0.56560904",
"0.5653764",
"0.5652855",
"0.5651777",
"0.5649021",
"0.5648573",
"0.5647279",
"0.5642793",
"0.5637214",
"0.56314397",
"0.5630578",
"0.56304824",
"0.5624003"
] | 0.59925395 | 23 |
Liefert eine Liste aller adjazenter Knoten zu v. Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w, wobei (v, w) eine Kante des Graphen g ist. | List<V> getAdjacentVertexList(V v); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<Vertex> adjacentVertices(Vertex v) {\n Vertex parameterVertex = new Vertex(v.getLabel());\n if(!myGraph.containsKey(parameterVertex)){\n throw new IllegalArgumentException(\"Vertex is not valid\");\n }\n\n //create a copy of the passed in vertex to restrict any reference\n //to interals of this class\n Collection<Vertex> adjVertices = new ArrayList<Vertex>();\n\n Iterator<Edge> edges = myGraph.get(parameterVertex).iterator();\n while(edges.hasNext()) {\n adjVertices.add(edges.next().getDestination());\n }\n return adjVertices;\n }",
"@Override\r\n public List<Vertex> getNeighbors(Vertex v) {\r\n ArrayList<Vertex> neighborsList = new ArrayList<>();\r\n neighborsList = adjacencyList.get(v);\r\n Collections.sort(neighborsList, Comparator.comparing(Vertex::getLabel));\r\n return neighborsList; //getting the list of all adjacent vertices of vertex v\r\n }",
"public Iterable<Vertex> adjacentTo(Vertex v) {\n if (!mAdjList.containsKey(v)) return EMPTY_SET;\n return mAdjList.get(v);\n }",
"List<WeightedEdge<Vertex>> neighbors(Vertex v);",
"Iterable<Long> adjacent(long v) {\n List<Node> adjNodes = adj.get(v);\n List<Long> adjVertices = new ArrayList<>();\n for (int i = 1; i < adjNodes.size(); i++) {\n adjVertices.add(adjNodes.get(i).getID());\n }\n return adjVertices;\n }",
"@Override\r\n\tpublic ArrayList<E> getAdjacent(E key) {\r\n\t\tArrayList<E> adj = new ArrayList<>();\r\n\t\tif(containsVertex(key)) {\r\n\t\t\tfor(Edge<E> ale : adjacencyLists.get(key)) {\r\n\t\t\t\tadj.add(ale.getDst());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn adj;\r\n\t}",
"public Iterable<K> neighbors(K v)\n {\n \tList<K> list=new ArrayList<K>();\n \tList<HashMap<K, Integer>> adj = adjLists.get(v);\n \tfor (HashMap<K,Integer> A:adj){\n \t\tfor (K vertex:A.keySet()){\n \t\t\tlist.add(vertex);\n \t\t}\n \t}\n\treturn new ArrayList<K>(list);\n }",
"List<Integer> adj(int v) {\n return adj[v];\n }",
"public ArrayList< Vertex > adjacentVertices( ) {\n return adjacentVertices;\n }",
"public Iterable<DirectedEdge> adj(int v) \n {\n return adj[v];\n }",
"public Iterable<Edge> adj(int v) {\n return adj[v];\n }",
"Iterable<Long> adjacent(long v) {\n return world.get(v).adj;\n }",
"List<V> getVertexList();",
"public Iterable<K> neighbors(K v)\n {\n \n return adjMaps.get(v).keySet();\n }",
"public Iterable<Integer> adj(int v)\n { return adj[v]; }",
"public Iterable<FlowEdge> adj(int v) {\n return adj[v];\n }",
"@Override\n public Iterable<V> adjacentTo(V from)\n {\n if (from.equals(null)){\n throw new IllegalArgumentException();\n }\n Iterator graphIterator = graph.entrySet().iterator();\n \t Map.Entry graphElement = (Map.Entry) graphIterator.next();\n \t V vert = (V)graphElement.getKey();\n \t while (graphIterator.hasNext() && vert != from){\n \t\tgraphElement = (Map.Entry) graphIterator.next();\n \t\tvert = (V)graphElement.getKey();\n \t }\n \t ArrayList <V> edges = graph.get(vert);\n \t //Iterable <V> e = edges;\n \t return edges;\n }",
"Iterable<Long> adjacent(long v) {\n return nodes.get(v).adjs;\n }",
"void addEdge(int v,int w)\n {\n adj[v].add(w);\n adj[w].add(v);\n }",
"ArrayList<Edge> getEdges(ArrayList<ArrayList<Vertex>> v) {\n ArrayList<Edge> all = new ArrayList<Edge>();\n for (ArrayList<Vertex> verts : v) {\n for (Vertex vt : verts) {\n for (Edge ed : vt.outEdges) {\n all.add(ed);\n }\n }\n }\n return all;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic Iterable<T> adj(T v) {\n\t\treturn (Iterable<T>) adj[v].value;\r\n\t}",
"private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B\");\n\t\tVertex vertexC = new Vertex(\"C\");\n\t\tVertex vertexD = new Vertex(\"D\");\n\t\tVertex vertexE = new Vertex(\"E\");\n\t\tVertex vertexF = new Vertex(\"F\");\n\t\tVertex vertexG = new Vertex(\"G\");\n\n\t\tList<Edge> edges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 2));\n\t\tedges.add(new Edge(vertexD, 6));\n\t\tedges.add(new Edge(vertexF, 5));\n\t\tvertexA.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 2));\n\t\tedges.add(new Edge(vertexC, 7));\n\t\tvertexB.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 7));\n\t\tedges.add(new Edge(vertexD, 9));\n\t\tedges.add(new Edge(vertexF, 1));\n\t\tvertexC.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 6));\n\t\tedges.add(new Edge(vertexC, 9));\n\t\tedges.add(new Edge(vertexE, 4));\n\t\tedges.add(new Edge(vertexG, 8));\n\t\tvertexD.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 4));\n\t\tedges.add(new Edge(vertexF, 3));\n\t\tvertexE.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 5));\n\t\tedges.add(new Edge(vertexC, 1));\n\t\tedges.add(new Edge(vertexE, 3));\n\t\tvertexF.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 8));\n\t\tvertexG.incidentEdges = edges;\n\n\t\tgraph.add(vertexA);\n\t\tgraph.add(vertexB);\n\t\tgraph.add(vertexC);\n\t\tgraph.add(vertexD);\n\t\tgraph.add(vertexE);\n\t\tgraph.add(vertexF);\n\t\tgraph.add(vertexG);\n\n\t\treturn graph;\n\t}",
"public WeightedGraph(List<K> v)\n\t{\n\t // make ourselves a private copy of the vertex set\n\t verts = new HashSet<K>(v);\n\n\t // set up empty adkacency lists for each vertex\n\t adjLists = new HashMap<K, List<HashMap<K, Integer>>>();\n\t for (K src : verts)\n\t\t{\n\t\t adjLists.put(src, new ArrayList<HashMap<K, Integer>>());\n\t\t}\n\t}",
"public void addEdge(int v, int w)\n { \n adj[v].add(w);\n adj[w].add(v);\n }",
"public Iterable<Vertex> adjacentTo(String name) {\n Vertex v = getVertex(name);\n if (v == null) return EMPTY_SET;\n return mAdjList.get(getVertex(name));\n }",
"public Collection< VKeyT > neighborKeys( VKeyT key )\n throws NoSuchVertexException;",
"public Set<Pair<V,V>> neighbourEdgesOf(V vertex);",
"public Collection<V> getOtherVertices(V v);",
"@Override\r\n public void addVertex(Vertex v) {\r\n adjacencyList.put(v, new ArrayList<>()); //putting v into key, a new LinkedList into value for later use\r\n }",
"void addEdge(int v, int w)\n {\n adj[v].add(w);\n }",
"void addEdge(int v, int w) {\n adj [v].add(w);\n }",
"void addEdge(int v,int w)\n {\n adj[v].add(w);\n }",
"public Iterable<DirectedEdge> pathTo(int v){\n\t\tvalidateVertex(v);\n\t\tif(!hasPathTo(v)) return null;\n\n\t\tLinkedStack<DirectedEdge> stack=new LinkedStack<>();\n\t\twhile(edgeTo[v]!=null){\n\t\t\tstack.push(edgeTo[v]);\n\t\t\tv=edgeTo[v].from();\n\t\t}\n\t\treturn stack;\n\t}",
"public void findPath(Vertex v, Graph g)\n {\n \tQueue<Vertex> q = new LinkedList<Vertex>();\n \tSet<String> visited= new HashSet<String>();\n \tSet<String> edges= new TreeSet<String>();\n \t\n \t \tq.add(v);\n \t \tvisited.add(v.name);\n \t \t\n \t \twhile(!q.isEmpty()){\n \t \t\tVertex vertex = q.poll();\n \t \t\t \n \t for(Edge adjEdge: vertex.adjEdge.values()){\n \t\t if(!visited.contains(adjEdge.adjVertex.name) && !adjEdge.adjVertex.isDown && !adjEdge.isDown){\n \t\t\t q.offer(adjEdge.adjVertex);\n \t\t\t visited.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t\t edges.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t }\n \t }\n \t \n \t }\n \t \tfor(String str: edges){\n \t\t System.out.print('\\t');\n \t\t System.out.println(str);\n \t }\n \t \t\n }",
"public LinkedList<Integer> getNeighbors(int v) {\n return adjList.get(v);\n }",
"@Override\n public Set<T> getNeighbors(T v) {\n int index = getVInfoIndex(v);\n\n // check for an error and throw exception\n // if vertices not in graph\n if (index == -1) {\n throw new IllegalArgumentException(\"DiGraph getNeighbors(): vertex not in graph\");\n }\n HashSet<T> edgeSet = new HashSet<T>();\n VertexInfo<T> vtxInfo = vInfo.get(index);\n Iterator<Edge> iter = vtxInfo.edgeList.iterator();\n Edge e = null;\n\n while (iter.hasNext()) {\n e = iter.next();\n edgeSet.add(vInfo.get(e.dest).vertex);\n }\n\n return edgeSet;\n\n }",
"void addEdge(int v, int w) {\n\t\tadj[v].add(w);\n\t}",
"void addEdge(int v, int w) {\n\t\tadj[v].add(w);\n\t}",
"List<Edge<V>> getIncidentEdgeList(V v);",
"void addVertex(Vertex v, ArrayList<Vertex> neighbors, ArrayList<Double> weights) throws VertexNotInGraphException;",
"public List neighbors(int vertex) {\n// your code here\n LinkedList<Integer> result = new LinkedList<>();\n LinkedList<Edge> list = adjLists[vertex];\n for (Edge a : list) {\n result.add(a.to());\n }\n//List<Integer> list = new List<Integer>();\n return result;\n }",
"List<Edge<V>> getEdgeList();",
"Iterable<DirectedEdge> pathTo(int v)\n\t{\n\t\tStack<DirectedEdge> path=new Stack<>();\n\t\tfor(DirectedEdge e=edgeTo[v]; e!=null; e=edgeTo[e.from()])\n\t\t{\n\t\t\tpath.push(e);\n\t\t}\n\t\treturn path;\n\t}",
"static void addEdge(List<ArrayList<Integer>> adj, int u, int v) {\n\t\tif (!adj.get(u).contains(v)) {\n\t\t\tadj.get(u).add(v);\n\t\t}\n\t\tif (!adj.get(v).contains(u)) {\n\t\t\tadj.get(v).add(u);\n\t\t}\n\t}",
"public void addEdge(int v, int w) {\r\n adj[v].add(w);\r\n E++;\r\n }",
"public void reverseAdjList(Graph g, int V) {\n\t\tList<List<Integer>> newAdjList = new ArrayList<List<Integer>>();\n\t\tfor(int i = 0; i < V; i ++) {\n\t\t\tnewAdjList.add(i, new ArrayList<Integer>());\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < g.adjList.size(); i++) {\n\t\t\tfor(int j = 0; j < g.adjList.get(i).size(); j++) {\n\t\t\t\tif(g.adjList.get(i).get(j) != null) {\n\t\t\t\t\tnewAdjList.get(g.adjList.get(i).get(j)).add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < newAdjList.size(); i++) {\n\t\t\tSystem.out.print(i);\n\t\t\tfor(int j = 0; j < newAdjList.get(i).size(); j++) {\n\t\t\t\tSystem.out.print(\"--> \" + newAdjList.get(i).get(j));\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public LinkedList<Vertex> getList(Vertex v){\n\t\tint i=0;\n\t\t\n\t\t//find v1 adjacency list\n\t\twhile(!aLists.get(i).get(0).equals(v) && i < aLists.length()){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn aLists.get(i);\n\t\t\n\t}",
"public List<Integer> neighbors(int vertex) {\r\n \tArrayList<Integer> vertices = new ArrayList<Integer>();\r\n \tLinkedList<Edge> testList = myAdjLists[vertex];\r\n int counter = 0;\r\n while (counter < testList.size()) {\r\n \tvertices.add(testList.get(counter).myTo);\r\n \tcounter++;\r\n }\r\n return vertices;\r\n }",
"public EdgeWeightedDigraph(int V) \n {\n if (V < 0) throw new RuntimeException(\"Number of vertices must be nonnegative\");\n this.V = V;\n this.E = 0;\n adj = (ArrayList<DirectedEdge>[]) new ArrayList[V];\n for (int v = 0; v < V; v++)\n adj[v] = new ArrayList<DirectedEdge>();\n }",
"public void addEdge(int v, int w) {\r\n\t\t\tadj[v].add(w);\r\n\t\t\tadj[w].add(v);\r\n\t\t\tE++;\r\n\t\t}",
"private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}",
"public void addEdge(int v, int w){\n\t\tadj[v].add(w);\t\t\t\t\t\t\n\t}",
"public Vector getAdjacentNodes()\n\t{\n\t\tVector vAdjNodes = new Vector();\n\t\t\n\t\tfor (int i = 0; i < m_vConnectedNodes.size(); i++)\n\t\t{\n\t\t\tif ( ((NodeConnection)m_vConnectedNodes.get(i)).getCost() > 0 )\n\t\t\t{\n\t\t\t\tvAdjNodes.add(((NodeConnection)m_vConnectedNodes.get(i)).getLinkedNode());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn vAdjNodes;\n\t}",
"public AdjListVertex createVertex(Vertex v) {\n\t\t// check if present\n\t\tif (containsVertex(v)) return vertices.get(v.getIndex());\n\t\t\n\t\tAdjListVertex vThis = new AdjListVertex(v.getIndex());\n\t\tvertices.set(v.getIndex(), vThis);\n\t\t\n\t\t// recreate the edges to vertices present\n\t\tfor (Edge e : v.edges()) {\n\t\t\tif (containsVertex(e.getOppositeVertex(v))) {\n\t\t\t\tcreateEdge(e);\n\t\t\t}\n\t\t}\n\t\tllVertices.add(vThis);\n\t\t\n\t\tnotifyVertexCreated(v);\n\t\treturn vThis;\n\t}",
"ArrayList<Edge> getAdjacencies();",
"public List neighbors(int vertex) {\n // your code here\n \tList toReturn = new ArrayList<Integer>();\n \tfor (Edge e : myAdjLists[vertex]) {\n \t\ttoReturn.add(e.to());\n \t}\n return toReturn;\n }",
"public void addEdge(int v, int w) {\n\t\tadj[v].add(w);\n\t}",
"public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;",
"public Arestas primeiroListaAdj (int v) {\n this.pos[v] = -1; return this.proxAdj (v);\n }",
"public void addEdge(T v, T w) {\n\t\tadj[v].add(w);\r\n\t\tadj[w].add(v);\r\n\t}",
"public Map<V,List<E>> adjacencyMap(){\n\t\tMap<V,List<E>> ret = new HashMap<V,List<E>>();\n\t\tfor (E e : edges){\n\t\t\tif (virtualEdges.contains(e))\n\t\t\t\tcontinue;\n\t\t\tList<E> list;\n\t\t\tif (!ret.containsKey(e.getOrigin())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getOrigin(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getOrigin());\n\t\t\tlist.add(e);\n\t\t\t\n\t\t\tif (!ret.containsKey(e.getDestination())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getDestination(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getDestination());\n\t\t\tlist.add(e);\n\t\t}\n\t\treturn ret;\n\t}",
"public DSALinkedList getAdjacent(String label)\n\t{\n\t\tDSAGraphVertex vx = getVertex(label);\n\t\treturn vx.getAdjacent();\n\t}",
"public Set<V> getNeighbours(V vertex);",
"public Set<Integer> getNeighbors(int v) {\n \tif (v > (n-1)) {\n \tthrow new IllegalArgumentException();\n }\n \t\n \treturn this.edges.get(v).keySet();\n }",
"abstract ArrayList<Pair<Integer,Double>> adjacentNodes(int i);",
"public Path dfs(Graph G, int v) {\r\n Path result = new Path();\r\n \tcount++;\r\n marked[v] = true;\r\n Iterator<Integer> it = G.getAdjList(v).iterator();\r\n while(it.hasNext()){\r\n \tint w = it.next();\r\n if (!marked[w]) {\r\n \t\t result.addPath(new Edge(v,w));\r\n result.append(dfs(G, w));\r\n \t}\r\n \t//System.out.print(v + \" \"+ w + \"\\n\");\r\n }\r\n return result;\r\n }",
"public EdgeListGraph(int V) {\n\t\t// TODO Auto-generated constructor stub\n\t\tthis.V = V;\n\t\tthis.edgeList = new ArrayList<>();\n\t}",
"@Override\r\n public List<Vertex> getVertices() {\r\n List<Vertex> verticesList = new LinkedList<>(adjacencyList.keySet()); //getting the key set of adjacencyList i.e, a list of all vertices\r\n Collections.sort(verticesList, Comparator.comparing(Vertex::getLabel));\r\n return verticesList;\r\n }",
"public static List<Edge> getNei(int u){\n return adj.get(u);\n }",
"public void inAdjacentVertices() {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.inList.get(i).vertex.label + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"protected abstract List<Integer> getNeighbors(int vertex);",
"public int outdegree(int v) {\n return adj[v].size();\n }",
"@Override\n public List<V> getNeighbors(V v, TimeFrame pTimeFrame) {\n List<V> lstNeighbors = new ArrayList<>();\n// System.out.println(\"DynamicGraph.getNeighbor() : \" + darrGlobalAdjList.get(v.getId()).get(pTimeFrame));\n if (darrGlobalAdjList.get(v.getId()).containsKey(pTimeFrame)) {\n for (E e : darrGlobalAdjList.get(v.getId()).get(pTimeFrame)){\n if (e.getOtherEndPoint(v) != null) {\n lstNeighbors.add(e.getOtherEndPoint(v));\n }\n }\n }\n return lstNeighbors;\n }",
"public java.util.List<V> getVertices();",
"public WeightedGraph(Collection<K> v)\n {\n\t // make ourselves a private copy of the vertex set\n verts = new HashSet<K>(v);\n\n\t // set up empty adjacency lists for each vertex\n adjMaps = new HashMap<K, Map<K, Edge>>();\n for (K src : verts)\n {\n Map<K, Edge> adjMap = new HashMap<K, Edge>();\n adjMaps.put(src, adjMap);\n }\n }",
"public int outdegree(int v) {\r\n validateVertex(v);\r\n return adj[v].size();\r\n }",
"private void removeFromVertexList(Vertex v) {\n int ind = _vertices.indexOf(v);\n for (int i = ind + 1; i < _vertices.size(); i++) {\n _vertMap.put(_vertices.get(i), i - 1);\n }\n _vertices.remove(v);\n }",
"public List<MyPair> inNearestNeighbours(int k, String vertLabel) {\n /* Return in nearest neighbours, search for the rowLength that contains vertLabel.\n And search for any weights that smaller than 0 */\n\n\n List<MyPair> neighbours = new ArrayList<MyPair>();\n if (indexOf(vertLabel, vertices) < 0) {\n return neighbours;\n }\n\n int index = indexOf(vertLabel, vertices);\n\n for (int i = 0; i < weights[index].length; i++) {\n if (weights[index][i] < 0) {\n String label = \"\";\n for (Map.Entry<String, Integer> entry : edges.entrySet()) {\n int value = entry.getValue();\n if (value == i) {\n label = entry.getKey().substring(0, 1);\n break;\n }\n }\n if (!label.isEmpty())\n\n neighbours.add(new MyPair(label, -weights[index][i]));\n }\n }\n\n return sortAndTrim(k, neighbours);\n\n\n }",
"public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;",
"public void addEdge(int v, int w){\n //add w to the queue of v\n adj[v].enqueue(w);\n //add v to the queue of w\n adj[w].enqueue(v);\n //update Edge number;\n E++;\n }",
"public int ancestor(int v, int w) {\r\n if (v < 0 || w < 0 || v >= G.V() || w >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n int shortestDistIndex = -1;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n if (shortestDist > bfdp1.distTo(i) + bfdp2.distTo(i)) {\r\n shortestDist = bfdp1.distTo(i) + bfdp2.distTo(i);\r\n shortestDistIndex = i;\r\n }\r\n }\r\n }\r\n return shortestDistIndex;\r\n }",
"public Collection<V> getOtherVertices(Collection<V> vs);",
"@Override\r\n public Iterable<V> vertices() {\r\n LinkedList<V> list = new LinkedList<>();\r\n for(V v : map.keySet())\r\n list.add(v);\r\n return list;\r\n }",
"public ArrayList<ChessCoordinate> getAdjacencyList() {\n\t\tint dx, dy;\n\t\tArrayList<ChessCoordinate> adjacencyList = new ArrayList<ChessCoordinate>();\n\n\t\tfor (dx = -1; dx <= 1; dx++) {\n\t\t\tfor (dy = -1; dy <= 1; dy++) {\n\t\t\t\tif (dx == dy) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tadjacencyList.add(StandardCoordinate.make(x + dx, y + dy));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn adjacencyList;\n\t}",
"public ArrayList<Vertex> getNeighbours(Vertex vertex) {\r\n\t\tArrayList<Vertex> neighbours = new ArrayList<Vertex>();\r\n\t\tfor (Vertex vertexOfList : listVertex) {\r\n\r\n\t\t\tif (matrix.getEdges(vertex.getIdVertex(), vertexOfList.getIdVertex()) != null) {\r\n\t\t\t\tneighbours.add(vertexOfList);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn neighbours;\r\n\t}",
"public Map<String,Integer> getAdjacentVertices(String vertexName)\r\n\t{\r\n\t\treturn this.adjacencyMap.get(vertexName);\r\n\t}",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\r\n for (Integer vTmp : v) {\r\n if (vTmp < 0 || vTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n for (Integer wTmp : w) {\r\n if (wTmp < 0 || wTmp >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n }\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n int shortestDistIndex = -1;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n if (shortestDist > bfdp1.distTo(i) + bfdp2.distTo(i)) {\r\n shortestDist = bfdp1.distTo(i) + bfdp2.distTo(i);\r\n shortestDistIndex = i;\r\n }\r\n }\r\n }\r\n return shortestDistIndex;\r\n }",
"public int ancestor(Iterable<Integer> v, Iterable<Integer> w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n int shortestPath = Integer.MAX_VALUE;\n Deque<Integer> ancestors = new ArrayDeque<>();\n int ancestor = -1;\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer a : ancestors) {\n if ((bfsV.distTo(a) + bfsW.distTo(a)) < shortestPath) {\n shortestPath = (bfsV.distTo(a) + bfsW.distTo(a));\n ancestor = a;\n }\n }\n return ancestor;\n }",
"List<GraphEdge> getNeighbors(NodeKey key);",
"public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }",
"Digraph(int v) {\n this.V = v;\n adj = (List<Integer>[]) new ArrayList[V];\n for (int i = 0; i < V; i++) {\n adj[i] = new ArrayList<>();\n }\n }",
"@Override\n\tpublic List<Location> getNeighbors(Location vertex) {\n\n\t\tArrayList<Location> neighbors = new ArrayList<Location>();\n\n\t\tfor (Path p : getOutEdges(vertex))\n\t\t\tneighbors.add(p.getDestination());\n\n\t\treturn neighbors;\n\n\n\t}",
"public int ancestor(final int v, final int w) {\n\n validateVertex(v);\n validateVertex(w);\n\n if (v == w) {\n return v;\n }\n\n final BreadthFirstDirectedPaths bfdvObj = new BreadthFirstDirectedPaths(digraphObj, v);\n final BreadthFirstDirectedPaths bfdwObj = new BreadthFirstDirectedPaths(digraphObj, w);\n \n int infinity = Integer.MAX_VALUE;\n int ances = -1;\n\n for (int vertex = 0; vertex < digraphObj.V(); vertex++) {\n if (bfdvObj.hasPathTo(vertex) && bfdwObj.hasPathTo(vertex)) {\n final int dist = bfdvObj.distTo(vertex) + bfdwObj.distTo(vertex);\n if (dist <= infinity) {\n infinity = dist;\n ances = vertex;\n }\n }\n }\n\n return ances;\n }",
"public Collection< VKeyT > vertexKeys();",
"protected LinkedList<Vertex> getVertexList() {\n\t\tLinkedList<Vertex> returnList = new LinkedList<Vertex>();\n\n\t\t// Add family\n\t\tif (this.getFamily() != null) {\n\t\t\treturnList = this.getFamily().getFamilyVertexList();\n\t\t}\n\t\treturnList.add(this);\n\t\treturn returnList;\n\t}",
"ArrayList<ArrayList<Vertex>> kruskalVertice(ArrayList<ArrayList<Vertex>> v) {\n ArrayList<Edge> allEdges = getEdges(v);\n for (ArrayList<Vertex> i : v) {\n for (Vertex j : i) {\n j.outEdges = new ArrayList<Edge>();\n }\n }\n int totalCells = height * width;\n IList<Edge> loe = new Empty<Edge>();\n //getting naming error, not sure why\n ArrayList<Edge> allEdgesSorted = mergeHelp(allEdges);\n HashMap<Integer, Integer> hash = new HashMap<Integer, Integer>();\n for (int i = 0; i <= (1000 * height) + width; i++) {\n hash.put(i, i);\n }\n ArrayList<Edge> l = allEdgesSorted;\n while (loe.len() < totalCells - 1) {\n Edge e = l.get(0);\n if (this.find(hash, e.to.toIdentifier()) != this.find(hash, e.from.toIdentifier())) {\n loe = loe.add(e);\n e.from.outEdges.add(e);\n e.to.outEdges.add(new Edge(e.to, e.from, e.weight));\n int temp = (find(hash, e.to.toIdentifier()));\n hash.remove(find(hash, e.to.toIdentifier()));\n hash.put(temp, find(hash, e.from.toIdentifier()));\n }\n l.remove(0);\n }\n return v;\n }",
"@Override\n public List<E> getEdges(V v, TimeFrame pTimeFrame) {\n List<E> lstEdges = new ArrayList<>();\n for (E e : darrGlobalAdjList.get(v.getId()).get(pTimeFrame)) {\n lstEdges.add(e);\n }\n return lstEdges;\n }",
"public ArrayList<String> shortestPath(String u, String v)\n {\n ArrayList<String> path = new ArrayList<>();\n HashMap<String, Boolean> flag = new HashMap<>();\n HashMap<String, String> prev = new HashMap<>();\n\n Queue<GraphVertex> queue = new LinkedList<>();\n HashMap<String, Boolean> visited = new HashMap<>();\n\n GraphVertex src = graphVertexHashMap.get(u);\n flag.put(src.getVertexName(), true);\n queue.add(src);\n visited.put(src.getVertexName(), true);\n\n while(!queue.isEmpty()){\n GraphVertex node = queue.poll();\n\n HashMap<String, GraphVertex> edges = node.getOutDegrees();\n Iterator it = edges.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n if(flag.get(pair.getKey()) == null || flag.get(pair.getKey()) == false){\n String vertex = (String)pair.getKey();\n flag.put(vertex, true);\n prev.put(vertex, node.getVertexName());\n queue.add(edges.get(pair.getKey()));\n }\n }\n\n }\n path = backTrackPath(prev, u, v);\n return path;\n }",
"@Test\n void test08_getAllAdjacentVertices() {\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"a\", \"c\"); // add two edges\n\n List<String> check = new ArrayList<>();\n check.add(\"b\");\n check.add(\"c\"); // create mock up adjacent list\n\n if (!check.equals(graph.getAdjacentVerticesOf(\"a\"))) { // checks if both are same\n fail(\"graph didn't record adjacent vertices correctly\");\n }\n }",
"public static void addEdge(int u, int v, int w){\n Edge obj1 = new Edge(v,w);\n Edge obj2 = new Edge(u,w);\n (adj.get(u)).add(obj1);\n (adj.get(v)).add(obj2);\n }"
] | [
"0.793811",
"0.75473595",
"0.745301",
"0.7250765",
"0.7134088",
"0.71030635",
"0.69721633",
"0.6890972",
"0.68202835",
"0.67540157",
"0.6721827",
"0.67003286",
"0.66997606",
"0.6660562",
"0.653799",
"0.6533334",
"0.64088404",
"0.63782215",
"0.63188946",
"0.63159835",
"0.6312745",
"0.631139",
"0.63105714",
"0.6290347",
"0.62878144",
"0.62794286",
"0.62785405",
"0.62686986",
"0.6264283",
"0.6219854",
"0.6218086",
"0.6203653",
"0.6201213",
"0.6199208",
"0.61719555",
"0.616768",
"0.61648387",
"0.61648387",
"0.6147088",
"0.6117361",
"0.6115351",
"0.6108161",
"0.60896266",
"0.6079084",
"0.60767436",
"0.6063028",
"0.6047228",
"0.60401976",
"0.6038458",
"0.6037881",
"0.6036661",
"0.602716",
"0.59916383",
"0.59825397",
"0.5958407",
"0.5958174",
"0.5957072",
"0.5947881",
"0.59362876",
"0.5916512",
"0.59044075",
"0.5893138",
"0.58843654",
"0.5878696",
"0.58727723",
"0.5868625",
"0.5867235",
"0.58594215",
"0.5822174",
"0.5801282",
"0.5796207",
"0.57904565",
"0.57616436",
"0.575053",
"0.5731562",
"0.5725649",
"0.5718767",
"0.57108116",
"0.5703422",
"0.570311",
"0.56944734",
"0.5685203",
"0.5675958",
"0.5668801",
"0.5667353",
"0.56652886",
"0.5663679",
"0.5657801",
"0.5656095",
"0.56454295",
"0.5644077",
"0.5640122",
"0.5636931",
"0.56325716",
"0.5629633",
"0.5628021",
"0.5623484",
"0.56113654",
"0.5607808",
"0.56068504"
] | 0.84021735 | 0 |
Liefert eine Liste aller inzidenten Kanten. Genauer: g.getIncidentEdgeList(v) liefert eine Liste aller Kanten im Graphen g mit v als Startknoten. | List<Edge<V>> getIncidentEdgeList(V v); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}",
"private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B\");\n\t\tVertex vertexC = new Vertex(\"C\");\n\t\tVertex vertexD = new Vertex(\"D\");\n\t\tVertex vertexE = new Vertex(\"E\");\n\t\tVertex vertexF = new Vertex(\"F\");\n\t\tVertex vertexG = new Vertex(\"G\");\n\n\t\tList<Edge> edges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 2));\n\t\tedges.add(new Edge(vertexD, 6));\n\t\tedges.add(new Edge(vertexF, 5));\n\t\tvertexA.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 2));\n\t\tedges.add(new Edge(vertexC, 7));\n\t\tvertexB.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 7));\n\t\tedges.add(new Edge(vertexD, 9));\n\t\tedges.add(new Edge(vertexF, 1));\n\t\tvertexC.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 6));\n\t\tedges.add(new Edge(vertexC, 9));\n\t\tedges.add(new Edge(vertexE, 4));\n\t\tedges.add(new Edge(vertexG, 8));\n\t\tvertexD.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 4));\n\t\tedges.add(new Edge(vertexF, 3));\n\t\tvertexE.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 5));\n\t\tedges.add(new Edge(vertexC, 1));\n\t\tedges.add(new Edge(vertexE, 3));\n\t\tvertexF.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 8));\n\t\tvertexG.incidentEdges = edges;\n\n\t\tgraph.add(vertexA);\n\t\tgraph.add(vertexB);\n\t\tgraph.add(vertexC);\n\t\tgraph.add(vertexD);\n\t\tgraph.add(vertexE);\n\t\tgraph.add(vertexF);\n\t\tgraph.add(vertexG);\n\n\t\treturn graph;\n\t}",
"@Override\r\n public List<Vertex> getVertices() {\r\n List<Vertex> verticesList = new LinkedList<>(adjacencyList.keySet()); //getting the key set of adjacencyList i.e, a list of all vertices\r\n Collections.sort(verticesList, Comparator.comparing(Vertex::getLabel));\r\n return verticesList;\r\n }",
"List<V> getAdjacentVertexList(V v);",
"@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}",
"List<Edge<V>> getEdgeList();",
"List<CyEdge> getInternalEdgeList();",
"List<V> getVertexList();",
"Set<CyEdge> getExternalEdgeList();",
"public ArrayList< Edge > incidentEdges( ) {\n return incidentEdges;\n }",
"@Override\r\n public List<Vertex> getNeighbors(Vertex v) {\r\n ArrayList<Vertex> neighborsList = new ArrayList<>();\r\n neighborsList = adjacencyList.get(v);\r\n Collections.sort(neighborsList, Comparator.comparing(Vertex::getLabel));\r\n return neighborsList; //getting the list of all adjacent vertices of vertex v\r\n }",
"public List neighbors(int vertex) {\n// your code here\n LinkedList<Integer> result = new LinkedList<>();\n LinkedList<Edge> list = adjLists[vertex];\n for (Edge a : list) {\n result.add(a.to());\n }\n//List<Integer> list = new List<Integer>();\n return result;\n }",
"public ArrayList <Edge> allConnected (Vertex min) {\r\n \r\n tempList = new ArrayList <Edge> (); \r\n \r\n for (int i = 0; i < graph.size(); ++i){\r\n if (graph.get(i).getStart().equals(min.getName())){\r\n tempList.add(graph.get(i));\r\n }\r\n else if (graph.get(i).getEnd().equals(min.getName())){\r\n tempList.add(graph.get(i));\r\n }\r\n }\r\n return tempList;\r\n }",
"Map<Node, Edge> getInEdges() {\n return inEdges;\n }",
"public void inIncidentEdges() {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.inList.get(i).edge + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"Iterable<Long> vertices() {\n return nodes.keySet();\n }",
"public ArrayList< Vertex > adjacentVertices( ) {\n return adjacentVertices;\n }",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n ArrayList<Long> verticesIter = new ArrayList<>();\n verticesIter.addAll(adj.keySet());\n return verticesIter;\n }",
"public abstract List<? extends DiGraphEdge<N, E>> getInEdges(N nodeValue);",
"public HashMap<String, Edge> getEdgeList () {return edgeList;}",
"ArrayList<Edge> getAdjacencies();",
"public EdgeListGraph(int V) {\n\t\t// TODO Auto-generated constructor stub\n\t\tthis.V = V;\n\t\tthis.edgeList = new ArrayList<>();\n\t}",
"public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }",
"ArrayList<Node> DFSIter( Graph graph, final Node start, final Node end)\n {\n boolean visited[] = new boolean[graph.numNodes];\n Stack<Node> stack = new Stack<Node>();\n Map< Node,Node> parentPath = new HashMap< Node,Node>(); \n stack.push(start);\n\n while ( !stack.isEmpty() )\n {\n Node currNode = stack.pop();\n // end loop when goal node is found\n if ( currNode == end )\n break;\n // If node has already been visited, skip it\n if ( visited[currNode.id] )\n continue;\n else\n {\n visited[currNode.id] = true;\n int numEdges = currNode.connectedNodes.size();\n\n for ( int i = 0; i < numEdges; i++ )\n {\n Node edgeNode = currNode.connectedNodes.get(i);\n if ( !visited[edgeNode.id] )\n {\n stack.push( edgeNode );\n parentPath.put( edgeNode, currNode);\n }\n }\n \n }\n }\n\n ArrayList<Node> path = new ArrayList<Node>();\n Node currNode = end;\n while ( currNode != null )\n {\n path.add(0, currNode);\n currNode = parentPath.get(currNode);\n }\n\n return path;\n }",
"public ArrayList<Integer> getInNeighbors (int nodeId) {\r\n\t\tArrayList<Integer> inNeighbors = new ArrayList<Integer>();\r\n\t\t// the set of incoming edge ids\r\n\t\tSet<Integer> edgeSet = mInEdges.get(nodeId);\r\n\t\tfor(Integer edgeId: edgeSet) {\r\n\t\t\tinNeighbors.add( getEdge(edgeId).getFromId() );\r\n\t\t}\r\n\t\treturn inNeighbors;\r\n\t}",
"public Collection<Vertex> vertices() { \n //return myGraph.keySet(); OLD\n //create a copy of all the vertices in the map to restrict any reference\n //to the interals of this class\n Collection<Vertex> copyOfVertices = new ArrayList<Vertex>();\n copyOfVertices.addAll(myGraph.keySet());\n return copyOfVertices;\n }",
"public List<Vertex> getVertices() {\n\t\treturn AdjacencyMatrixGraph.cloneList(vertexList);\n\t}",
"@Override\n public Iterable<V> adjacentTo(V from)\n {\n if (from.equals(null)){\n throw new IllegalArgumentException();\n }\n Iterator graphIterator = graph.entrySet().iterator();\n \t Map.Entry graphElement = (Map.Entry) graphIterator.next();\n \t V vert = (V)graphElement.getKey();\n \t while (graphIterator.hasNext() && vert != from){\n \t\tgraphElement = (Map.Entry) graphIterator.next();\n \t\tvert = (V)graphElement.getKey();\n \t }\n \t ArrayList <V> edges = graph.get(vert);\n \t //Iterable <V> e = edges;\n \t return edges;\n }",
"@Override\r\n public Iterable<V> vertices() {\r\n LinkedList<V> list = new LinkedList<>();\r\n for(V v : map.keySet())\r\n list.add(v);\r\n return list;\r\n }",
"public List neighbors(int vertex) {\n // your code here\n \tList toReturn = new ArrayList<Integer>();\n \tfor (Edge e : myAdjLists[vertex]) {\n \t\ttoReturn.add(e.to());\n \t}\n return toReturn;\n }",
"public void inAdjacentVertices() {\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tSystem.out.print(currentVertex.inList.get(i).vertex.label + \" \");\r\n\t\t}\r\n\t\tprintLine();\r\n\t}",
"java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> \n getEdgeList();",
"public ArrayList<Edge> getAdjacencies(){\r\n return adjacencies;\r\n }",
"@Override\r\n\tpublic List<Integer> getReachableVertices(GraphStructure graph,int vertex) {\r\n\t\tadjacencyList=graph.getAdjacencyList();\r\n\t\tpathList=new ArrayList<Integer>();\r\n\t\tisVisited=new boolean [graph.getNumberOfVertices()];\r\n\t\ttraverseRecursively(graph, vertex);\r\n\t\treturn pathList;\r\n\t}",
"public Map<V,List<E>> adjacencyMap(){\n\t\tMap<V,List<E>> ret = new HashMap<V,List<E>>();\n\t\tfor (E e : edges){\n\t\t\tif (virtualEdges.contains(e))\n\t\t\t\tcontinue;\n\t\t\tList<E> list;\n\t\t\tif (!ret.containsKey(e.getOrigin())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getOrigin(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getOrigin());\n\t\t\tlist.add(e);\n\t\t\t\n\t\t\tif (!ret.containsKey(e.getDestination())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getDestination(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getDestination());\n\t\t\tlist.add(e);\n\t\t}\n\t\treturn ret;\n\t}",
"public List<Vertex> vertices() {\n return Collections.unmodifiableList(this.vertices);\n }",
"public void setListEdge (ArrayList<Edge> list){\r\n this.listEdges = list;\r\n }",
"public Collection<Vertex> adjacentVertices(Vertex v) {\n Vertex parameterVertex = new Vertex(v.getLabel());\n if(!myGraph.containsKey(parameterVertex)){\n throw new IllegalArgumentException(\"Vertex is not valid\");\n }\n\n //create a copy of the passed in vertex to restrict any reference\n //to interals of this class\n Collection<Vertex> adjVertices = new ArrayList<Vertex>();\n\n Iterator<Edge> edges = myGraph.get(parameterVertex).iterator();\n while(edges.hasNext()) {\n adjVertices.add(edges.next().getDestination());\n }\n return adjVertices;\n }",
"public ArrayList<Integer> path(int startVertex, int stopVertex) {\n// you supply the body of this method\n int start = startVertex;\n int stop = stopVertex;\n int previous;\n ArrayList<Integer> list = new ArrayList<>();\n HashMap<Integer, Integer> route = new HashMap<>();\n Stack<Integer> visited = new Stack<>();\n Stack<Integer> reverse = new Stack<>();\n int parent;\n if(!pathExists(startVertex,stopVertex)){\n return new ArrayList<Integer>();\n }\n else if(startVertex == stopVertex){\n list.add(startVertex);\n return list;\n }\n else{\n while(!neighbors(start).contains(stopVertex)){\n List neighbor = neighbors(start);\n for (Object a: neighbor) {\n if(!pathExists((int)a,stopVertex)){\n continue;\n }\n if(visited.contains(a)){\n continue;\n }\n else {\n route.put((int) a, start);\n visited.push(start);\n start = (int) a;\n break;\n }\n }\n }\n route.put(stopVertex,start);\n list.add(stopVertex);\n previous = route.get(stopVertex);\n list.add(previous);\n while(previous!=startVertex){\n int temp = route.get(previous);\n list.add(temp);\n previous = temp;\n }\n for(int i=0; i<list.size(); i++){\n reverse.push(list.get(i));\n }\n int i=0;\n while(!reverse.empty()){\n int temp = reverse.pop();\n list.set(i,temp);\n i++;\n }\n//list.add(startVertex);\n return list;\n }\n }",
"Iterable<Vertex> computePathToGraph(Loc start, Vertex end) throws GraphException;",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n return world.keySet();\n }",
"private List<Edge<String>> getPath(Vertex<String> end,\n Vertex<String> start) {\n if (graph.label(end) != null) {\n List<Edge<String>> path = new ArrayList<>();\n\n Vertex<String> cur = end;\n Edge<String> road;\n while (cur != start) {\n road = (Edge<String>) graph.label(cur); // unchecked cast ok\n path.add(road);\n cur = graph.from(road);\n }\n return path;\n }\n return null;\n }",
"protected LinkedList<Vertex> getVertexList() {\n\t\tLinkedList<Vertex> returnList = new LinkedList<Vertex>();\n\n\t\t// Add family\n\t\tif (this.getFamily() != null) {\n\t\t\treturnList = this.getFamily().getFamilyVertexList();\n\t\t}\n\t\treturnList.add(this);\n\t\treturn returnList;\n\t}",
"@Override\r\n\tpublic ArrayList<E> getAdjacent(E key) {\r\n\t\tArrayList<E> adj = new ArrayList<>();\r\n\t\tif(containsVertex(key)) {\r\n\t\t\tfor(Edge<E> ale : adjacencyLists.get(key)) {\r\n\t\t\t\tadj.add(ale.getDst());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn adj;\r\n\t}",
"public LinkedList<Vertex> getList(Vertex v){\n\t\tint i=0;\n\t\t\n\t\t//find v1 adjacency list\n\t\twhile(!aLists.get(i).get(0).equals(v) && i < aLists.length()){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn aLists.get(i);\n\t\t\n\t}",
"public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }",
"public ArrayList<Integer> visitAll(int startVertex) {\n ArrayList<Integer> result = new ArrayList<Integer>();\n Iterator<Integer> iter = new DFSIterator(startVertex);\n while (iter.hasNext()) {\n result.add(iter.next());\n }\n return result;\n }",
"public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }",
"public List<Integer> neighbors(int vertex) {\r\n \tArrayList<Integer> vertices = new ArrayList<Integer>();\r\n \tLinkedList<Edge> testList = myAdjLists[vertex];\r\n int counter = 0;\r\n while (counter < testList.size()) {\r\n \tvertices.add(testList.get(counter).myTo);\r\n \tcounter++;\r\n }\r\n return vertices;\r\n }",
"Iterable<Long> adjacent(long v) {\n List<Node> adjNodes = adj.get(v);\n List<Long> adjVertices = new ArrayList<>();\n for (int i = 1; i < adjNodes.size(); i++) {\n adjVertices.add(adjNodes.get(i).getID());\n }\n return adjVertices;\n }",
"public Collection<LazyNode2> getVertices() {\n List<LazyNode2> l = new ArrayList();\n \n for(Path p : getActiveTraverser())\n //TODO: Add cache clearing\n l.add(new LazyNode2(p.endNode().getId()));\n \n return l;\n }",
"public List<E> createEdgeListPath()\r\n/* */ {\r\n/* 146 */ List<E> path = new ArrayList();\r\n/* 147 */ AbstractPathElement<V, E> pathElement = this;\r\n/* */ \r\n/* */ \r\n/* 150 */ while (pathElement.getPrevEdge() != null) {\r\n/* 151 */ path.add(pathElement.getPrevEdge());\r\n/* */ \r\n/* 153 */ pathElement = pathElement.getPrevPathElement();\r\n/* */ }\r\n/* */ \r\n/* 156 */ Collections.reverse(path);\r\n/* */ \r\n/* 158 */ return path;\r\n/* */ }",
"public ArrayList<Integer> path(int startVertex, int stopVertex) {\r\n ArrayList<Integer> paths = new ArrayList<Integer>();\r\n Iterator<Integer> iter = new DFSIterator(startVertex);\r\n while (!paths.contains(stopVertex) && pathExists(startVertex, stopVertex)) {\r\n Integer thisVertex = iter.next();\r\n if (pathExists(thisVertex, stopVertex)) {\r\n \tpaths.add(thisVertex);\r\n }\r\n } \r\n return paths;\r\n }",
"public ArrayList<Integer> visitAll(int startVertex) {\n ArrayList<Integer> result = new ArrayList<Integer>();\n Iterator<Integer> iter = new DFSIterator(startVertex);\n\n while (iter.hasNext()) {\n result.add(iter.next());\n }\n return result;\n }",
"public ArrayList<Integer> visitAll(int startVertex) {\r\n ArrayList<Integer> result = new ArrayList<Integer>();\r\n Iterator<Integer> iter = new DFSIterator(startVertex);\r\n\r\n while (iter.hasNext()) {\r\n result.add(iter.next());\r\n }\r\n return result;\r\n }",
"public Iterable<K> neighbors(K v)\n {\n \tList<K> list=new ArrayList<K>();\n \tList<HashMap<K, Integer>> adj = adjLists.get(v);\n \tfor (HashMap<K,Integer> A:adj){\n \t\tfor (K vertex:A.keySet()){\n \t\t\tlist.add(vertex);\n \t\t}\n \t}\n\treturn new ArrayList<K>(list);\n }",
"public void setVertices(){\n\t\tvertices = new ArrayList<V>();\n\t\tfor (E e : edges){\n\t\t\tV v1 = e.getOrigin();\n\t\t\tV v2 = e.getDestination();\n\t\t\tif (!vertices.contains(v1))\n\t\t\t\tvertices.add(v1);\n\t\t\tif (!vertices.contains(v2))\n\t\t\t\tvertices.add(v2);\n\t\t}\n\t}",
"public abstract List<? extends GraphEdge<N, E>> getEdges();",
"@Override\n\tpublic List<Path> getOutEdges(Location src) {\n\t\treturn \tpaths.get(locations.indexOf(src));\n\t}",
"public ArrayList<Edge> getEdgeList() {\n return edgeList;\n }",
"public java.util.List<V> getVertices();",
"List<Integer> adj(int v) {\n return adj[v];\n }",
"List<WeightedEdge<Vertex>> neighbors(Vertex v);",
"private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}",
"public Vertex<V>[] getEndpoints() { return endpoints; }",
"public CachetIncidentList getIncidents() {\n throw new RuntimeException(\"Method not implemented.\");\n }",
"public Set<E> getEdges();",
"Set<Vertex> getVertices();",
"public Vector<Edge> getEdges(){\n\t\treturn this.listOfEdges;\n\t}",
"@Override\r\n\tpublic Iterable<Integer> pathTo(int v) {\r\n\t\tif (!hasPathTo(v)) return null;\r\n\r\n\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\twhile(v != -1) {\r\n\t\t\tlist.add(v);\r\n\t\t\tv = edgeTo[v];\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}",
"@Override\r\n\tpublic ArrayList<E> getVertices() {\r\n\t\tArrayList<E> verts = new ArrayList<>();\r\n\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\tverts.add(t);\r\n\t\t});\r\n\t\treturn verts;\r\n\t}",
"public int inDegree() {\r\n\t\treturn currentVertex.inList.size();\r\n\t}",
"@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }",
"@Override public Set<L> vertices() {\r\n return new HashSet<L>(vertices);//防御式拷贝\r\n }",
"Iterable<DirectedEdge> pathTo(int v)\n\t{\n\t\tStack<DirectedEdge> path=new Stack<>();\n\t\tfor(DirectedEdge e=edgeTo[v]; e!=null; e=edgeTo[e.from()])\n\t\t{\n\t\t\tpath.push(e);\n\t\t}\n\t\treturn path;\n\t}",
"List<GraphEdge> getNeighbors(NodeKey key);",
"public List<Edge> segments() {\n return segments;\n }",
"public ArrayList<Integer> inOrderTraversal() {\r\n\t\treturn inOrderTraversal(treeMinimum());\r\n\t}",
"public Iterable<Vertex> adjacentTo(Vertex v) {\n if (!mAdjList.containsKey(v)) return EMPTY_SET;\n return mAdjList.get(v);\n }",
"ArrayList<Edge> getEdges(ArrayList<ArrayList<Vertex>> v) {\n ArrayList<Edge> all = new ArrayList<Edge>();\n for (ArrayList<Vertex> verts : v) {\n for (Vertex vt : verts) {\n for (Edge ed : vt.outEdges) {\n all.add(ed);\n }\n }\n }\n return all;\n }",
"private Set<Edge> reachableDAG(Vertex start, Vertex obstacle) {\n \tHashSet<Edge> result = new HashSet<Edge>();\n \tVector<Vertex> currentVertexes = new Vector<Vertex>();\n \tint lastResultNumber = 0;\n \tcurrentVertexes.add(start);\n \t\n \tdo {\n \t\t//System.out.println(\"size of currentVertexes:\" + currentVertexes.size());\n \t\t\n \t\tVector<Vertex> newVertexes = new Vector<Vertex>();\n \t\tlastResultNumber = result.size();\n \t\t\n \t\tfor (Vertex v : currentVertexes) {\n \t\t\t//System.out.println(\"layerID:\" + v.layerID + \"\\tlabel:\" + v.label);\n \t\t\taddIncomingEdges(v, obstacle, result, newVertexes);\n \t\t\taddOutgoingEdges(v, obstacle, result, newVertexes);\n \t\t}\n \t\t\n \t\t//System.out.println(\"size of newVertexes:\" + newVertexes.size());\n \t\t\n \t\tcurrentVertexes = newVertexes;\t\n \t\t//System.out.println(\"lastResultNumber:\" + lastResultNumber);\n \t\t//System.out.println(\"result.size():\" + result.size());\n \t} while (lastResultNumber != result.size());\n \t\n\t\treturn result;\n }",
"@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}",
"Liste<? extends Binarbre<E>> ancestors();",
"@Override\n public Set<Vertex> getVertices() {\n Set<Vertex> vertices = new HashSet<Vertex>();\n vertices.add(sourceVertex);\n vertices.add(targetVertex);\n return vertices;\n }",
"private List<V> intersectGraphPaths(GraphPath<V, E> p1, GraphPath<V, E> p2)\n {\n List<V> res = new LinkedList<>();\n res.addAll(p1.getVertexList());\n res.retainAll(p2.getVertexList());\n return res;\n }",
"public ArrayList<ChessCoordinate> getAdjacencyList() {\n\t\tint dx, dy;\n\t\tArrayList<ChessCoordinate> adjacencyList = new ArrayList<ChessCoordinate>();\n\n\t\tfor (dx = -1; dx <= 1; dx++) {\n\t\t\tfor (dy = -1; dy <= 1; dy++) {\n\t\t\t\tif (dx == dy) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tadjacencyList.add(StandardCoordinate.make(x + dx, y + dy));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn adjacencyList;\n\t}",
"List<IEdge> getMST();",
"Collection<E> edges();",
"public Set<Edge<V>> edgeSet();",
"@Override\r\n public List<T> breadthFirstPath(T start, T end) {\r\n\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n LinkedList<Vertex<T>> vertexList = new LinkedList<>();\r\n //Set<Vertex<T>> visited = new HashSet<>();\r\n ArrayList<Vertex<T>> visited = new ArrayList<>();\r\n\r\n LinkedList<Vertex<T>> pred = new LinkedList<>();\r\n int currIndex = 0;\r\n\r\n pred.add(null);\r\n\r\n vertexList.add(startV);\r\n visited.add(startV);\r\n\r\n LinkedList<T> path = new LinkedList<>();\r\n\r\n if (breadthFirstSearch(start, end) == false) {\r\n path = new LinkedList<>();\r\n return path;\r\n } else {\r\n while (vertexList.size() > 0) {\r\n Vertex<T> next = vertexList.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if (next == endV) {\r\n path.add(endV.getValue());\r\n break;\r\n }\r\n for (Vertex<T> neighbor : next.getNeighbors()) {\r\n if (!visited.contains(neighbor)) {\r\n pred.add(next);\r\n visited.add(neighbor);\r\n vertexList.add(neighbor);\r\n }\r\n }\r\n currIndex++;\r\n //path.add(next.getValue());\r\n\r\n }\r\n while (currIndex != 0) {\r\n Vertex<T> parent = pred.get(currIndex);\r\n path.add(parent.getValue());\r\n currIndex = visited.indexOf(parent);\r\n }\r\n }\r\n Collections.reverse(path);\r\n return path;\r\n }",
"protected abstract List<Integer> getNeighbors(int vertex);",
"public List<IEdge> getAllEdges();",
"public Enumeration vertices();",
"public Iterator<Integer> getVertexIterator() {\n\t\treturn vertices.keySet().iterator();\n\t}",
"List<IEdge> getAllEdges();",
"public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();",
"public ArrayList<V> getEdges(V vertex){\n return (ArrayList<V>) graph.get(vertex);\n }",
"public Iterable<DirectedEdge> pathTo(int v){\n\t\tvalidateVertex(v);\n\t\tif(!hasPathTo(v)) return null;\n\n\t\tLinkedStack<DirectedEdge> stack=new LinkedStack<>();\n\t\twhile(edgeTo[v]!=null){\n\t\t\tstack.push(edgeTo[v]);\n\t\t\tv=edgeTo[v].from();\n\t\t}\n\t\treturn stack;\n\t}",
"@Override\n public List<V> getNeighbors(V v, TimeFrame pTimeFrame) {\n List<V> lstNeighbors = new ArrayList<>();\n// System.out.println(\"DynamicGraph.getNeighbor() : \" + darrGlobalAdjList.get(v.getId()).get(pTimeFrame));\n if (darrGlobalAdjList.get(v.getId()).containsKey(pTimeFrame)) {\n for (E e : darrGlobalAdjList.get(v.getId()).get(pTimeFrame)){\n if (e.getOtherEndPoint(v) != null) {\n lstNeighbors.add(e.getOtherEndPoint(v));\n }\n }\n }\n return lstNeighbors;\n }",
"ArrayList<Node> DFSRec(Graph graph, final Node start, final Node end )\n {\n ArrayList<Node> path = new ArrayList<Node>();\n\n if ( start == end )\n {\n return path;\n }\n\n boolean visited[] = new boolean[graph.numNodes];\n visited[start.id] = true;\n\n path.addAll(DFSRec_helper(graph, start, end, visited)); \n\n return path;\n }"
] | [
"0.6390577",
"0.6380338",
"0.6349585",
"0.63242096",
"0.62796175",
"0.62766206",
"0.62549776",
"0.62168175",
"0.6129502",
"0.6076334",
"0.60314363",
"0.6016615",
"0.6011253",
"0.59968",
"0.5985687",
"0.5970823",
"0.5962324",
"0.59547484",
"0.5911482",
"0.5880429",
"0.58419126",
"0.5812631",
"0.5799685",
"0.5795694",
"0.57631296",
"0.57615685",
"0.57278717",
"0.5720693",
"0.57071304",
"0.56977475",
"0.5693887",
"0.567662",
"0.5664003",
"0.5647044",
"0.5639467",
"0.5622878",
"0.56211334",
"0.56119347",
"0.56068224",
"0.56062984",
"0.5596572",
"0.5589849",
"0.55770403",
"0.557586",
"0.5572817",
"0.55581623",
"0.55570936",
"0.5544126",
"0.55413777",
"0.55375314",
"0.5536321",
"0.55339545",
"0.5530907",
"0.5515509",
"0.55141157",
"0.55100167",
"0.55041695",
"0.5492503",
"0.54868853",
"0.54840624",
"0.5477343",
"0.54742724",
"0.5468665",
"0.5459624",
"0.5456008",
"0.54431534",
"0.5430768",
"0.5420732",
"0.5418724",
"0.5417498",
"0.5415212",
"0.54147375",
"0.54135996",
"0.5397095",
"0.53936714",
"0.53885585",
"0.538258",
"0.5381264",
"0.5380534",
"0.53804207",
"0.5375746",
"0.53605074",
"0.5358537",
"0.5350796",
"0.5349656",
"0.534496",
"0.534378",
"0.53424144",
"0.5340941",
"0.53376997",
"0.53375626",
"0.5333117",
"0.5331177",
"0.5316996",
"0.53137827",
"0.53130585",
"0.5307609",
"0.5294088",
"0.52903134",
"0.52889603"
] | 0.6433606 | 0 |
TODO Autogenerated method stub this.setTheme(R.style.Theme_Aurora_Dark_Transparent); | @Override
protected void onCreate(Bundle arg0) {
super.onCreate(arg0);
addPreferencesFromResource(R.xml.settings_prefs);
initActionBar();
initViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setTheme(int resid) {\n super.setTheme(android.R.style.Theme_Translucent_NoTitleBar);\n /*String packageName = getIntent().getStringExtra(Intent.EXTRA_PACKAGE_NAME);\n if(packageName.contains(\"kaer\") || packageName.contains(\"com.android\")){\n Log.e(\"ReviewPermissionsActivity\", \"setTheme Theme_Translucent_NoTitleBar\");\n super.setTheme(android.R.style.Theme_Translucent_NoTitleBar);\n }else{\n Log.e(\"ReviewPermissionsActivity\", \"setTheme ActivityNormal\");\n super.setTheme(R.style.ActivityNormal);\n }*/\n }",
"private void setTheme() {\n\t\tLog.i(LOG_TAG, \"setTheme\");\n\n\t\tSharedPreferences preferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tthis.themeString = preferences.getString(\"theme_scheme\",\n\t\t\t\tMainMenuActivityThemeChanger.DARK_THEME);\n\n\t\tif (themeString\n\t\t\t\t.equalsIgnoreCase(MainMenuActivityThemeChanger.PINK_THEME)) {\n\n\t\t\tthis.setTheme(R.style.pinkTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t} else if (themeString\n\t\t\t\t.equalsIgnoreCase(MainMenuActivityThemeChanger.LIGHT_THEME)) {\n\n\t\t\tthis.setTheme(R.style.lightTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t} else {\n\n\t\t\tthis.setTheme(R.style.darkTheme);\n\t\t\tsetContentView(R.layout.activity_time_trial);\n\n\t\t}\n\t}",
"private void toggleTheme() {\n\n // Following options to change the Theme must precede setContentView().\n\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n String lister = sharedPref.getString(\"list_preference\", \"1\");\n\n currentTheme = Integer.parseInt(lister);\n if (currentTheme == 2) {\n isLight = false;\n } else {\n isLight = true;\n }\n\n if (isLight) {\n setTheme(R.style.LightCustom);\n } else {\n setTheme(R.style.DarkCustom);\n }\n }",
"@FXML\n\tprivate void setDarkStyle() {\n\t\tapplication.getScene().getStylesheets().remove(urlDefaultTheme);\n\n\t\t// Add the new theme\n\t\tapplication.getScene().getStylesheets().add(urlDarkTheme);\n\t}",
"private void changeTheme() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean useDarkTheme = preferences.getBoolean(\"theme_pref\", false);\n\n if (useDarkTheme) {\n setTheme(R.style.DarkTheme);\n } else {\n setTheme(R.style.AppTheme);\n }\n }",
"private static void setActivityTheme(Context context) {\n //access the dark mode theme\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n String themePref = sharedPrefs.getString(\"theme_preference\", \"Light\");\n //set the calling object's theme to match with what's listed in shared preferences\n switch (themePref) {\n case \"Light\":\n context.setTheme(R.style.AppTheme);\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);\n break;\n case \"Dark\":\n context.setTheme(R.style.AppThemeDark);\n //turn off AppThemeDayNight\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);\n break;\n //\"Auto\" is commented out due to time restraints. I hope to revisit this later. -Littlesnowman88\n /*case \"Auto\":\n context.setTheme(R.style.AppThemeDayNight);\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_AUTO);\n break;*/\n //a Runtime Exception is thrown to ensure that new themes are fully implemented into this case statement. Developers must not be sloppy with their theme changes.\n default:\n throw new RuntimeException(\"ERROR: mismatch between selected app theme and implemented app themes.\");\n }\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //changing the theme\n if (AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_YES) {\n setTheme(R.style.DarkTheme);\n } else {\n setTheme(R.style.AppTheme);\n }\n //code for changing theme ends\n\n //Layout set here from the xml files\n setContentView(R.layout.activity_admin_change);\n }",
"private void applyCurrentTheme() {\n TempestatibusApplicationSettings tempestatibusApplicationSettings = getTempestatibusApplicationSettings();\n tempestatibusApplicationSettings.createSharedPreferenceContext(this);\n String theme = tempestatibusApplicationSettings.getAppThemePreference();\n mRefreshImageView.setBackgroundResource(TempestatibusApplicationSettings.getRefreshId());\n mDegreeImageView.setBackgroundResource(TempestatibusApplicationSettings.getLargeDegreeId(theme));\n mDewValueSmallDegree.setBackgroundResource(TempestatibusApplicationSettings.getSmallDegreeId(theme));\n mApparentTemperatureValueSmallDegree.setBackgroundResource(TempestatibusApplicationSettings.getSmallDegreeId(theme));\n mSettingsImageView.setBackgroundResource(TempestatibusApplicationSettings.getSettingsIconId());\n mHourglassIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getHourglassId());\n mSaveIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getSaveIconId());\n mSearchIconImageView.setBackgroundResource(TempestatibusApplicationSettings.getSearchIconId());\n }",
"public void checkTheme()\n {\n ImageView miniLogo = (ImageView) findViewById(R.id.mini_logo);\n LinearLayout colorBar = (LinearLayout) findViewById(R.id.color_bar);\n\n if(!ApplicationData.theme.equals(\"default\"))\n {\n switch(ApplicationData.theme)\n {\n case \"Banana\":\n colorBar.setBackgroundResource(R.color.color_banana);\n miniLogo.setImageResource(R.drawable.banner_logo_banana);\n //bigImg.setImageResource(R.drawable.banner_logo_banana);\n ApplicationData.theme = \"Banana\";\n //setTheme(R.style.AppThemeBanana);\n break;\n case \"Peach\":\n colorBar.setBackgroundResource(R.color.color_peach);\n miniLogo.setImageResource(R.drawable.banner_logo_peach);\n //bigImg.setImageResource(R.drawable.banner_logo_peach);\n ApplicationData.theme = \"Peach\";\n break;\n case \"Strawberry\":\n colorBar.setBackgroundResource(R.color.color_strawberry);\n miniLogo.setImageResource(R.drawable.banner_logo_strawberry);\n //bigImg.setImageResource(R.drawable.banner_logo_strawberry);\n ApplicationData.theme = \"Strawberry\";\n break;\n case \"Mellon\":\n colorBar.setBackgroundResource(R.color.color_mellon);\n miniLogo.setImageResource(R.drawable.banner_logo_mellon);\n //bigImg.setImageResource(R.drawable.banner_logo_mellon);\n ApplicationData.theme = \"Mellon\";\n break;\n default:\n colorBar.setBackgroundResource(R.color.color_default);\n miniLogo.setImageResource(R.drawable.banner_logo);\n //bigImg.setImageResource(R.drawable.banner_logo);\n ApplicationData.theme = \"Default\";\n break;\n }\n }\n }",
"public void registerDarkness() {\n this.setDark(true);\n }",
"static void getTheme(Activity activity){\n\n if(PREF_THEME != DARK_THEME){\n activity.setTheme(R.style.AppTheme);\n }\n else{\n activity.setTheme(R.style.Theme_AppCompat);\n }\n }",
"@Override\n public void onGenerated(Palette palette) {\n int defaultValue = 0x000000;\n chosenColor = palette.getDarkMutedColor(defaultValue);\n collapsingToolbar.setContentScrimColor(chosenColor);\n\n //changing the status bar color\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n int darkerColorChosen=getDarkerColor(chosenColor, 0.8f);\n window.setStatusBarColor(darkerColorChosen);\n }\n\n }",
"@NonNull\n @Override\n protected View getThemeView() {\n return mThemeView;\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\tinitTheme();\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//ActivityTool.setWindowStatusBarColor(this,R.color.colorPrimaryDark);\n\t}",
"public ThemeManager(Context c) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(c);\n String guild = sp.getString(\"prefColorScheme\", \"Default\");\n if (guild.equalsIgnoreCase(c.getResources().getString(R.string.selesnya))) {\n this.drawable_background = R.drawable.std_life_bkg_seles;\n this.lightColor = R.color.primary_light_seles;\n this.theme = R.style.AppThemeSeles;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.azorious))) {\n this.drawable_background = R.drawable.std_life_bkg_azorious;\n this.lightColor = R.color.primary_light_azorious;\n this.theme = R.style.AppThemeAzorious;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.dimir))) {\n this.drawable_background = R.drawable.std_life_bkg_dimir;\n this.lightColor = R.color.primary_light_dimir;\n this.theme = R.style.AppThemeDimir;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.rakdos))) {\n this.drawable_background = R.drawable.std_life_bkg_rakdos;\n this.lightColor = R.color.primary_light_rakdos;\n this.theme = R.style.AppThemeRakdos;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.gruul))) {\n this.drawable_background = R.drawable.std_life_bkg_gruul;\n this.lightColor = R.color.primary_light_gruul;\n this.theme = R.style.AppThemeGruul;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.orzhov))) {\n this.drawable_background = R.drawable.std_life_bkg_orzhov;\n this.lightColor = R.color.primary_light_orzhov;\n this.theme = R.style.AppThemeOrzhov;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.izzet))) {\n this.drawable_background = R.drawable.std_life_bkg_izzet;\n this.lightColor = R.color.primary_light_izzet;\n this.theme = R.style.AppThemeIzzet;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.golgari))) {\n this.drawable_background = R.drawable.std_life_bkg_golgari;\n this.lightColor = R.color.primary_light_golgari;\n this.theme = R.style.AppThemeGolgari;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.boros))) {\n this.drawable_background = R.drawable.std_life_bkg_boros;\n this.lightColor = R.color.primary_light_boros;\n this.theme = R.style.AppThemeBoros;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.simic))) {\n this.drawable_background = R.drawable.std_life_bkg_simic;\n this.lightColor = R.color.primary_light_simic;\n this.theme = R.style.AppThemeSimic;\n } else {\n this.drawable_background = R.drawable.std_life_bkg;\n this.lightColor = R.color.primary_light_seles;\n this.theme = R.style.AppTheme;\n }\n }",
"public void loadTheme() {\n runOnUiThread(new Runnable() {\n public void run() {\n try {\n //inspired by:https://stackoverflow.com/questions/15025369/changing-the-theme-of-an-android-app-using-preferences\n SharedPreferences data = getSharedPreferences(\"Themes\", 0);\n dataReturned = data.getString(\"LightDark\", \"ThemeDark\");\n if (dataReturned.equals(\"ThemeDark\"))\n setTheme(R.style.ThemeDark);\n else\n setTheme(R.style.ThemeLight);\n } catch (final Exception ex) {\n // Log.i(\"sortViewEntries\", \"Exception in thread\");\n }\n }\n });\n }",
"@Override\n protected int getCustomTheme()\n {\n return R.style.MwmTheme_DialogFragment_Fullscreen;\n }",
"public void setThemeColors() {\n // This method will set the background to default if the color is PhoneAccount.NO_COLOR.\n mThemeColors = getColorsFromCall(mCallList.getFirstCall());\n\n if (mInCallActivity == null) {\n return;\n }\n\n final Resources resources = mInCallActivity.getResources();\n final int color;\n if (resources.getBoolean(R.bool.is_layout_landscape)) {\n color = resources.getColor(R.color.statusbar_background_color, null);\n } else {\n color = mThemeColors.mSecondaryColor;\n }\n\n mInCallActivity.getWindow().setStatusBarColor(color);\n final TaskDescription td = new TaskDescription(\n resources.getString(R.string.notification_ongoing_call), null, color);\n mInCallActivity.setTaskDescription(td);\n }",
"public void switchTheme() {\n if (_theme.equals(\"light\")) {\n _theme = \"dark\";\n setCss(darkCss);\n _switchThemeImageView.setImage(darkImage);\n } else {\n _theme = \"light\";\n setCss(lightCss);\n _switchThemeImageView.setImage(lightImage);\n }\n }",
"@FXML\r\n void darkThemeAction() {\r\n root.getStylesheets().remove(\"sample/UserInterface/light_theme.css\");\r\n root.getStylesheets().add(\"sample/UserInterface/dark_theme.css\");\r\n }",
"public void setColorTheme(int colorTheme)\n {\n themeColor = colorTheme;\n }",
"@Override\n @TargetApi(Build.VERSION_CODES.LOLLIPOP)\n public void applyTheme(Resources.Theme t) {\n patternDrawable.applyTheme(t);\n super.applyTheme(t);\n }",
"protected void doDark() {\r\n\t\talpha = 0.5f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}",
"public static void onActivityCreateSetTheme(Activity activity, int theme) {\n\n\n switch (theme) {\n default:\n case THEME_DEFAULT:\n activity.setTheme(R.style.AppTheme);\n\n break;\n case THEME_ONE:\n activity.setTheme(R.style.MySecondTheme);\n break;\n case THEME_TWO:\n activity.setTheme(R.style.MyThirdTheme);\n break;\n case THEME_THREE:\n activity.setTheme(R.style.MyFourthTheme);\n break;\n case THEME_FOUR:\n activity.setTheme(R.style.MyFifthTheme);\n break;\n case THEME_FIVE:\n activity.setTheme(R.style.MySixthTheme);\n break;\n case THEME_SIX:\n activity.setTheme(R.style.MySeventhTheme);\n break;\n case THEME_SEVEN:\n activity.setTheme(R.style.MyEigthTheme);\n break;\n case THEME_EIGHT:\n activity.setTheme(R.style.MyNinthTheme);\n break;\n }\n }",
"public static void onActivityCreateSetTheme(Activity activity)\n\t{\n\t\tswitch (mCurrentTheme)\n\t\t{\n\t\t\tcase THEME_MEDIUM:\n\t\t\t\tactivity.setTheme(R.style.MediumTheme);\n\t\t\t\tbreak;\n\t\t\tcase THEME_LIGHT:\n\t\t\t\tactivity.setTheme(R.style.LightTheme);\n\t\t\t\tbreak;\n\t\t\tcase THEME_DARK:\n\t\t\tdefault:\n\t\t\t\tactivity.setTheme(R.style.DarkTheme);\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public void onThemeChanged()\n\t{\n\t}",
"public void setTheme(){\r\n\r\n for (int i = 0; i < 3; i++) {\r\n\r\n buttons[i].setBackground(theme.getButtonTheme()[0][0]);\r\n buttons[i].setForeground(theme.getButtonTheme()[0][1]);\r\n\r\n if(i < 2) {\r\n\r\n panels[i].setBackground(theme.getBackGroundTheme()[0]);\r\n\r\n }\r\n\r\n }\r\n\r\n menuBars[0].setBackground(theme.getInsomniaTheme()[0]);\r\n\r\n menus[0].setForeground(theme.getInsomniaTheme()[1]);\r\n\r\n buttons[0].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_list_30px.png\"));\r\n\r\n buttons[1].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_sort_down_10px.png\"));\r\n\r\n buttons[2].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_sort_down_&&_plus_25px.png\"));\r\n\r\n menus[2].getItem(0).setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_joyent_15px.png\"));\r\n menus[2].getItem(1).setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_doctors_folder_15px.png\"));\r\n\r\n filter.setBackground(theme.getTextFieldTheme()[0][0]);\r\n filter.setForeground(theme.getTextFieldTheme()[0][1]);\r\n\r\n }",
"private boolean getAppTheme() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n return preferences.getBoolean(\"dark_mode\", false);\n }",
"private void setColorTheme(ViewHolder holder) {\n // Get the color theme string from SharedPreferences and check for the value associated with the key\n String colorTheme = sharedPrefs.getString(\n mContext.getString(R.string.settings_color_key),\n mContext.getString(R.string.settings_color_default));\n\n // Change the background color of titleTextView by using the user's stored preferences\n if (colorTheme.equals(mContext.getString(R.string.settings_color_white_value))) {\n holder.titleTextView.setBackgroundResource(R.color.white);\n holder.titleTextView.setTextColor(Color.BLACK);\n }else if (colorTheme.equals(mContext.getString(R.string.settings_color_sky_blue_value))) {\n holder.titleTextView.setBackgroundResource(R.color.nav_bar_start);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_dark_blue_value))) {\n holder.titleTextView.setBackgroundResource(R.color.color_app_bar_text);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_violet_value))) {\n holder.titleTextView.setBackgroundResource(R.color.violet);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_light_green_value))) {\n holder.titleTextView.setBackgroundResource(R.color.light_green);\n holder.titleTextView.setTextColor(Color.WHITE);\n } else if (colorTheme.equals(mContext.getString(R.string.settings_color_green_value))) {\n holder.titleTextView.setBackgroundResource(R.color.color_section);\n holder.titleTextView.setTextColor(Color.WHITE);\n }\n }",
"static void setPrefTheme(int theme){\n PREF_THEME = theme;\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n public static final void setSystemBarTheme(final Activity pActivity, final boolean pIsDark) {\n // Fetch the current flags.\n final int lFlags = pActivity.getWindow().getDecorView().getSystemUiVisibility();\n // Update the SystemUiVisibility dependening on whether we want a Light or Dark theme.\n pActivity.getWindow().getDecorView().setSystemUiVisibility(pIsDark ? (lFlags & ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR) : (lFlags | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR));\n }",
"public void changeTheme(ActionEvent actionEvent) throws IOException {\n if (user.isStyleDark()){\n user.setStyleSheet(LIGHT_STYLE_SHEET);\n }\n else {\n user.setStyleSheet(DARK_STYLE_SHEET);\n }\n AppManager.changeScene(getClass().getResource(\"/views/SettingsScreen.fxml\"),actionEvent, user);\n\n }",
"public SheetTheme getTheme() {\n return SheetTheme.WHITE;\n }",
"private void changeStatusBarColor() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.TRANSPARENT);\n }\n\n }",
"private void applyKitKatTranslucency() {\n\n // KitKat translucent navigation/status bar.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n setTranslucentStatus(true);\n SystemBarTintManager mTintManager = new SystemBarTintManager(this);\n mTintManager.setStatusBarTintEnabled(true);\n mTintManager.setNavigationBarTintEnabled(true);\n // mTintManager.setTintColor(0xF00099CC);\n\n mTintManager.setTintDrawable(UIElementsHelper\n .getGeneralActionBarBackground(this));\n\n getActionBar().setBackgroundDrawable(\n UIElementsHelper.getGeneralActionBarBackground(this));\n\n }\n\n }",
"void applyTheme(T theme);",
"private void changeStatusBarColor() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.TRANSPARENT);\n }\n }",
"public final void mo39711K() {\n setBackgroundColor(0);\n }",
"@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_PRIMARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }",
"public void setTheme(String theme) {\n this.theme = theme;\n }",
"public /* synthetic */ void lambda$createView$14(View view) {\n Theme.ThemeAccent themeAccent;\n Theme.ThemeInfo previousTheme = Theme.getPreviousTheme();\n if (previousTheme != null) {\n int i = previousTheme.prevAccentId;\n if (i >= 0) {\n themeAccent = previousTheme.themeAccentsMap.get(i);\n } else {\n themeAccent = previousTheme.getAccent(false);\n }\n if (this.accent != null) {\n saveAccentWallpaper();\n Theme.saveThemeAccents(this.applyingTheme, true, false, false, false);\n Theme.clearPreviousTheme();\n Theme.applyTheme(this.applyingTheme, this.nightTheme);\n this.parentLayout.rebuildAllFragmentViews(false, false);\n } else {\n this.parentLayout.rebuildAllFragmentViews(false, false);\n File file = new File(this.applyingTheme.pathToFile);\n Theme.ThemeInfo themeInfo = this.applyingTheme;\n Theme.applyThemeFile(file, themeInfo.name, themeInfo.info, false);\n MessagesController.getInstance(this.applyingTheme.account).saveTheme(this.applyingTheme, (Theme.ThemeAccent) null, false, false);\n SharedPreferences.Editor edit = ApplicationLoader.applicationContext.getSharedPreferences(\"themeconfig\", 0).edit();\n edit.putString(\"lastDayTheme\", this.applyingTheme.getKey());\n edit.commit();\n }\n finishFragment();\n if (this.screenType == 0) {\n NotificationCenter.getGlobalInstance().postNotificationName(NotificationCenter.didApplyNewTheme, previousTheme, themeAccent, Boolean.valueOf(this.deleteOnCancel));\n }\n }\n }",
"public void onCreate() {\n super.onCreate();\n Application.context = getApplicationContext();\n\n AppCompatDelegate.setDefaultNightMode(AppSettingsStorage.getInstance().get(AppSettingsStorage.Setting.DARK_MODE, false) ? AppCompatDelegate.MODE_NIGHT_YES : AppCompatDelegate.MODE_NIGHT_NO);\n }",
"public void cancelThemeApply(boolean z) {\n if (this.screenType != 2) {\n Theme.applyPreviousTheme();\n NotificationCenter.getGlobalInstance().removeObserver(this, NotificationCenter.didSetNewWallpapper);\n if (this.screenType == 1) {\n if (this.editingTheme) {\n Theme.ThemeAccent themeAccent = this.accent;\n themeAccent.accentColor = this.backupAccentColor;\n themeAccent.accentColor2 = this.backupAccentColor2;\n themeAccent.myMessagesAccentColor = this.backupMyMessagesAccentColor;\n themeAccent.myMessagesGradientAccentColor1 = this.backupMyMessagesGradientAccentColor1;\n themeAccent.myMessagesGradientAccentColor2 = this.backupMyMessagesGradientAccentColor2;\n themeAccent.myMessagesGradientAccentColor3 = this.backupMyMessagesGradientAccentColor3;\n themeAccent.myMessagesAnimated = this.backupMyMessagesAnimated;\n themeAccent.backgroundOverrideColor = this.backupBackgroundOverrideColor;\n themeAccent.backgroundGradientOverrideColor1 = this.backupBackgroundGradientOverrideColor1;\n themeAccent.backgroundGradientOverrideColor2 = this.backupBackgroundGradientOverrideColor2;\n themeAccent.backgroundGradientOverrideColor3 = this.backupBackgroundGradientOverrideColor3;\n themeAccent.backgroundRotation = this.backupBackgroundRotation;\n themeAccent.patternSlug = this.backupSlug;\n themeAccent.patternIntensity = this.backupIntensity;\n }\n Theme.saveThemeAccents(this.applyingTheme, false, true, false, false);\n } else {\n if (this.accent != null) {\n Theme.saveThemeAccents(this.applyingTheme, false, this.deleteOnCancel, false, false);\n }\n this.parentLayout.rebuildAllFragmentViews(false, false);\n if (this.deleteOnCancel) {\n Theme.ThemeInfo themeInfo = this.applyingTheme;\n if (themeInfo.pathToFile != null && !Theme.isThemeInstalled(themeInfo)) {\n new File(this.applyingTheme.pathToFile).delete();\n }\n }\n }\n if (!z) {\n finishFragment();\n }\n } else if (!z) {\n finishFragment();\n }\n }",
"public Theme() {\n\t\tpalette = new HashMap<>();\n\t\tinitDefaultPalette(palette);\n\t}",
"public final ColorTheme getTheme() {\n return window.getApplication().getTheme();\n }",
"public void onClick(DialogInterface dialog, int id) {\n\t\t \t switch (positionSelected){\n default:\n case 55:\n themeId = R.style.ThemeGreen; break;\n\t\t \t case 0:\n\t\t \t\t themeId = R.style.ThemeLight; break;\n\t\t \t case 1:\n\t\t \t\t themeId = R.style.ThemeDark; break;\n\n\t\t \t }\n\t\t \t //getApplication().setTheme(themeId);\n\t\t \t \n\t\t \t act.Update();\n\t\t \t //Activity act = getActivity(); \n\t\t }",
"@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_SECONDARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }",
"public void loadSavedTheme() {\n if(savedThemeDark)\n {\n if(isDark()){\n //El tema ya es oscuro, no hace nada\n }\n else{\n loadDark();\n }\n }\n else\n {\n if(isDark())\n {\n loadLight();\n }\n }\n\n }",
"private void loadSettings() {\n // set theme\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String themeId = preferences.getString(\"theme\", \"\");\n if (themeId.equals(\"light\")) {\n setTheme(R.style.ThemeLightReadMode);\n Log.d(TAG, \"switch to light theme \" + themeId);\n }\n else /*if (themeId.equals(\"dark\"))*/ {\n setTheme(R.style.ThemeDarkReadMode);\n Log.d(TAG, \"switch to dark theme \" + themeId);\n }\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\tThemeUtils.applyTheme(this);\n\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"public CommonPopWindow setBackgroundDarkEnable(boolean darkEnable) {\n/* 163 */ this.mBackgroundDarkEnable = darkEnable;\n/* 164 */ return this;\n/* */ }",
"@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }",
"public void applyTheme(){\n\t\tColor backgroundColour = new Color(255,255,255);\n\t\tColor buttonText = new Color(255,255,255);\n\t\tColor normalText = new Color(0,0,0);\n\t\tColor buttonColour = new Color(15,169,249);\n\n\t\tfirstAttemptResult.setForeground(new Color(255,0,110));\n\t\tsecondAttemptResult.setForeground(new Color(255,0,0));\n\t\t\n\t\t// background color\n\t\tthis.setBackground(backgroundColour);\n\t\t\n\t\t// normal text\n\t\tspellQuery.setForeground(normalText);\n\t\tdefinitionArea.setForeground(normalText);\n\t\tlblstAttempt.setForeground(normalText);\n\t\tlblndAttempt.setForeground(normalText);\n\t\tfirstAttempt.setForeground(normalText);\n\t\tsecondAttempt.setForeground(normalText);\n\t\tcurrentQuiz.setForeground(normalText);\n\t\tcurrentStreak.setForeground(normalText);\n\t\tlongestStreak.setForeground(normalText);\n\t\tnoOfCorrectSpellings.setForeground(normalText);\n\t\tquizAccuracy.setForeground(normalText);\n\t\tlblNewLabel.setForeground(normalText);\n\t\tlblYouOnlyHave.setForeground(normalText);\n\t\tlblCurrentQuiz.setForeground(normalText);\n\t\tlblCurrentStreak.setForeground(normalText);\n\t\tlblLongeststreak.setForeground(normalText);\n\t\tlblSpelledCorrectly.setForeground(normalText);\n\t\tlblQuizAccuracy.setForeground(normalText);\n\t\t\n\t\t// button text\n\t\tbtnConfirmOrNext.setForeground(buttonText);\n\t\tbtnStop.setForeground(buttonText);\n\t\tbtnListenAgain.setForeground(buttonText);\n\t\t// normal button color\n\t\tbtnConfirmOrNext.setBackground(buttonColour);\n\t\tbtnStop.setBackground(buttonColour);\n\t\tbtnListenAgain.setBackground(buttonColour);\n\t}",
"public static void setTheme(SuiTheme t) {\r\n theme = t;\r\n }",
"public void setTheme(Theme theme) {\n this.theme = theme;\n }",
"public void setupTransparentStatusBar(){\n\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){\n Window window = getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setFlags(\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n window.setFlags(\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION,\n WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);\n window.setNavigationBarColor(getResources().getColor(R.color.colorPrimaryDark));\n window.setStatusBarColor(getResources().getColor(R.color.colorPrimaryDark));\n }\n\n }",
"private void m119425d() {\n this.mSystemBar.setBackgroundColor(0);\n setSystemBarDisplayHomeAsUp();\n setSystemBarElevation(0.0f);\n setSystemBarTitleColor(ContextCompat.getColor(getActivity(), 17170445));\n setSystemBarIconColor(ContextCompat.getColor(getContext(), R.color.white));\n }",
"public void setColor()\n {\n String PREF_FILE_NAME = \"PrefFile\";\n final SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE);\n\n if(preferences.getBoolean(\"ColorBlind\", false)) {\n View box1 = this.findViewById(R.id.username);\n box1.setBackgroundColor(0xffffffff);\n\n View box2 = this.findViewById(R.id.password);\n box2.setBackgroundColor(0xffffffff);\n\n View box3 = this.findViewById(R.id.Login);\n box3.setBackgroundColor(0xffffffff);\n\n }\n }",
"private void changeTheme(int type){\n frame.setBackground(Color.DARK_GRAY);\n mainPanel.setBackground(Color.DARK_GRAY);\n ((RequestPanel) mainPanel.getRightComponent()).changeTheme(type);\n ((RequestListPanel) mainPanel.getLeftComponent()).changeTheme(type);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // read the settings from SharedPreferences\n sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n Boolean Theme = sharedPref.getBoolean(SettingsActivity.KEY_DARK_THEME, false);\n // set theme according the setting\n Log.i(\"Theme changed to \", Theme ? \"Dark\" : \"Light\");\n if(Theme){\n setTheme(R.style.Theme_Dark);\n }\n\n setContentView(R.layout.activity_main);\n\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n // Create the adapter that will return a fragment for each of the three\n // primary sections of the activity.\n mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());\n\n // Set up the ViewPager with the sections adapter.\n mViewPager = (ViewPager) findViewById(R.id.container);\n mViewPager.setAdapter(mSectionsPagerAdapter);\n\n\n FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Snackbar.make(view, \"Under Developement!!\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n }\n });\n\n\n }",
"public static void setTheme(Activity activity, int theme) {\n switch (theme) {\n default:\n case THEME_DEFAULT:\n activity.setTheme(R.style.LightDefaultTheme);\n break;\n case THEME_GP:\n activity.setTheme(R.style.LightGPTheme);\n break;\n case THEME_OT:\n activity.setTheme(R.style.LightOTTheme);\n break;\n case THEME_BP:\n activity.setTheme(R.style.LightBPTheme);\n break;\n }\n }",
"public String getTheme() {\n return theme;\n }",
"public void themesa()\n {\n \n \n \n \n }",
"public Theme getTheme(){\n\t\treturn theme;\n\t}",
"public void setWeekendDarker(boolean b) {\n weekendDarker = b;\n }",
"@Override\n\tprotected int getMainTabBackgroundDrawable() {\n\t\treturn R.color.white;\n\t}",
"public void setStatusBarColor() {\n super.setStatusBarColor();\n StatusBarUtil.StatusBarLightMode(this);\n }",
"public int getThemeId() {\n return 0;\n }",
"public void onThemeChanged()\n\t{\n\t\tthemeChanged = true;\n\t}",
"public int getTheme() {\n return this.theme;\n }",
"private void changeUIToDessert() {\n changeHeaderIcon(false);\n ColorHelper.changeViewColor(mScrimView, ContextCompat.getColor(getActivity(), R.color.colorPrimary), ContextCompat.getColor(getActivity(), R.color.secondaryColor));\n mBottomBar.setBackgroundTint(ContextCompat.getColorStateList(getActivity(), R.color.secondaryColor));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n getActivity().getWindow().setStatusBarColor(ContextCompat.getColor(getActivity(), R.color.secondaryDarkColor));\n }\n }",
"public static Color getTextColorDark() {\n return TEXTCOLOR_DARK;\n }",
"@Override\n protected void createThemeLayout(@NonNull LayoutInflater inflater, @NonNull final ViewGroup container) {\n mThemeView = inflater.inflate(R.layout.lib_web_default_theme, container, false);\n mIvBack = mThemeView.findViewById(R.id.ib_left_lib_web);\n mIvBack.setOnClickListener(this);\n mTvTitle = mThemeView.findViewById(R.id.tv_title_lib_web);\n mProgressBar = mThemeView.findViewById(R.id.pb_lib_web);\n mContentView = mThemeView.findViewById(R.id.content_lib_web);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tif (AppContext.THEME) {\n\t\t\tsetTheme(R.style.SwitchTheme_1);\n\t\t} else {\n\t\t\tsetTheme(R.style.SwitchTheme_2);\n\t\t}\n\t\t\n\t\tsetContentView(R.layout.zhou_bian_yao_dian_activity);\n\t\t\n\t\tiniView();\n\t\tiniData();\n\t}",
"private int getNavbarTheme() {\n TypedArray attributes = getActivity().obtainStyledAttributes(\n new int[] {\n R.attr.setup_wizard_navbar_theme,\n android.R.attr.colorForeground,\n android.R.attr.colorBackground });\n int theme = attributes.getResourceId(0, 0);\n if (theme == 0) {\n // Compare the value of the foreground against the background color to see if current\n // theme is light-on-dark or dark-on-light.\n float[] foregroundHsv = new float[3];\n float[] backgroundHsv = new float[3];\n Color.colorToHSV(attributes.getColor(1, 0), foregroundHsv);\n Color.colorToHSV(attributes.getColor(2, 0), backgroundHsv);\n boolean isDarkBg = foregroundHsv[2] > backgroundHsv[2];\n theme = isDarkBg ? R.style.setup_wizard_navbar_theme_dark :\n R.style.setup_wizard_navbar_theme_light;\n }\n attributes.recycle();\n return theme;\n }",
"public Theme getTheme() {\n return this.theme;\n }",
"private VP_Theme() {\n }",
"private void createThemeDialog() {\n\n\t\tAlertDialog.Builder alb = new AlertDialog.Builder(this);\n\t\talb.setTitle(getString(R.string.choose_theme));\n\t\talb.setCancelable(true);\n\n\t\tString[] items;\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n\t\t\titems = new String[]{getString(R.string.light), getString(R.string.dark),\n\t\t\t\t\tgetString(R.string.time), getString(R.string.system)};\n\t\t} else {\n\t\t\titems = new String[]{getString(R.string.light), getString(R.string.dark),\n\t\t\t\t\tgetString(R.string.time)};\n\t\t}\n\n\t\tAtomicInteger newTheme = new AtomicInteger(currentTheme);\n\n\t\talb.setSingleChoiceItems(items, currentTheme, (dialog, which) -> newTheme.set(which));\n\n\t\talb.setPositiveButton(getString(R.string.set_theme), (dialog, which) -> {\n\t\t\tcurrentTheme = newTheme.get();\n\t\t\tchangeTheme();\n\t\t});\n\n\t\talb.show();\n\t}",
"@StyleRes\n public static int getDialogTheme(final Context context) {\n return isLightThemeSelected(context) ? R.style.LightDialogTheme : R.style.DarkDialogTheme;\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n app.toggleDarkMode();\n isDark = !isDark;\n }",
"public static void changeTheme(Activity activity) {\n String themeChoice = PreferenceManager.getDefaultSharedPreferences(activity).getString(ActivityPreferences.KEY_THEME, ActivityPreferences.KEY_THEME);\n if ((themeChoice != null) && (themeChoice.equals(\"1\")))\n activity.setTheme(R.style.CollectThemeLight);\n else\n activity.setTheme(R.style.CollectThemeDark);\n\n\n Resources res = activity.getResources();\n // Change locale settings in the app.\n DisplayMetrics dm = res.getDisplayMetrics();\n android.content.res.Configuration conf = res.getConfiguration();\n String languageChoice = PreferenceManager.getDefaultSharedPreferences(activity).getString(ActivityPreferences.KEY_LANGUAGE, ActivityPreferences.KEY_LANGUAGE);\n if (languageChoice != null) {\n if (languageChoice.equals(\"1\"))\n conf.locale = new Locale(\"fr\");\n else if (languageChoice.equals(\"0\"))\n conf.locale = new Locale(\"en\");\n\n res.updateConfiguration(conf, dm);\n }\n }",
"public static SuiTheme getTheme() {\r\n return theme;\r\n }",
"static void changeToTheme(Activity activity, int theme, User usr) {\n switch (theme) {\n default:\n case THEME_DEFAULT:\n activity.setTheme(R.style.LightDefaultTheme);\n break;\n case THEME_GP:\n activity.setTheme(R.style.LightGPTheme);\n break;\n case THEME_OT:\n activity.setTheme(R.style.LightOTTheme);\n break;\n case THEME_BP:\n activity.setTheme(R.style.LightBPTheme);\n break;\n }\n usr.getUserData().setPrefs(null);\n Intent intent = new Intent(activity, activity.getClass());\n intent.putExtra(\"UserObject\", usr);\n activity.finish();\n activity.startActivity(intent);\n }",
"public BoardTheme getTheme()\n {\n return theme;\n }",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void onClick(View view) {\n if (isDarkModeOn) {\n\n // if dark mode is on it\n // will turn it off\n AppCompatDelegate\n .setDefaultNightMode(\n AppCompatDelegate\n .MODE_NIGHT_NO);\n // it will set isDarkModeOn\n // boolean to false\n editor.putBoolean(\n \"isDarkModeOn\", false);\n editor.apply();\n\n // change text of Button\n // btnToggleDark.setColorFilter(ContextCompat.getColor(context, R.color.colorPrimary), android.graphics.PorterDuff.Mode.MULTIPLY);\n btndarkmodeAcitvate.setText(\"Aktiviere Dark Mode\");\n } else {\n\n // if dark mode is off\n // it will turn it on\n AppCompatDelegate\n .setDefaultNightMode(\n AppCompatDelegate\n .MODE_NIGHT_YES);\n\n // it will set isDarkModeOn\n // boolean to true\n editor.putBoolean(\n \"isDarkModeOn\", true);\n editor.apply();\n\n // change text of Button\n // btnToggleDark.setText(\n // \"Disable Dark Mode\");\n btndarkmodeAcitvate.setText(\"Deaktiviere Dark Mode\");\n }\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n ThemeApplication.activities.add(this);\n \n addPreferencesFromResource(R.xml.customize);\n\n }",
"String getTheme();",
"public boolean isDark() {\n return (col + row) % 2 == 0;\n }",
"@Override\n public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {\n setPreferencesFromResource(R.xml.preferences, rootKey);\n\n Preference themePreference = findPreference(\"dark_theme\");\n if(themePreference != null) {\n themePreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {\n @Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n mainActivity.toggleTheme((boolean) newValue);\n return true;\n }\n });\n }\n }",
"private void setUpConfetti() {\n Timber.d(\"setUpConfetti\");\n final Resources res = getResources();\n goldDark = res.getColor(R.color.gold_dark);\n goldMed = res.getColor(R.color.gold_med);\n gold = res.getColor(R.color.gold);\n goldLight = res.getColor(R.color.gold_light);\n colors = new int[]{goldDark, goldMed, gold, goldLight};\n }",
"private void setMapViewTheme(MapView mapView) {\n\n Typeface typeface_a = Typeface.create(Typeface.MONOSPACE,Typeface.BOLD_ITALIC);\n Typeface typeface_b = Typeface.create(Typeface.MONOSPACE,Typeface.NORMAL);\n Typeface typeface_c = Typeface.create(Typeface.SERIF,Typeface.BOLD_ITALIC);\n\n\n Theme theme = mMapView\n .themeBuilder()\n .setProperty(\"view.poi.color.background\", Color.DKGRAY)\n // POI Icon\n .setProperty(\"view.poi.icon.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.icon.color.background\",Color.TRANSPARENT)\n // POI Header\n .setProperty(\"view.poi.header.color.background\",Color.TRANSPARENT)\n // POI Header Icon\n .setProperty(\"view.poi.header.icon.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.header.icon.color.background\",Color.TRANSPARENT)\n // POI Header Title\n .setProperty(\"view.poi.header.title.color.text\",Color.WHITE)\n .setProperty(\"view.poi.header.title.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.header.title.font.name\", typeface_a)\n .setProperty(\"view.poi.header.title.font.size\", 20.0)\n // POI Header Location\n .setProperty(\"view.poi.header.location.color.text\",Color.WHITE)\n .setProperty(\"view.poi.header.location.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.header.location.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.header.location.font.name\", typeface_b)\n .setProperty(\"view.poi.header.location.font.size\", 16.0)\n // POI Header Security\n .setProperty(\"view.poi.header.security.color.text\",Color.WHITE)\n .setProperty(\"view.poi.header.security.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.header.security.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.header.security.font.name\", typeface_b)\n .setProperty(\"view.poi.header.security.font.size\", 16.0)\n // POI Header Level\n .setProperty(\"view.poi.header.level.color.text\",Color.WHITE)\n .setProperty(\"view.poi.header.level.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.header.level.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.header.level.font.name\", typeface_b)\n .setProperty(\"view.poi.header.level.font.size\", 16.0)\n // POI Carousel\n .setProperty(\"view.poi.carousel.color.background\",Color.DKGRAY)\n .setProperty(\"view.poi.carousel.error.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.carousel.loader.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.carousel.image.color.background\",Color.LTGRAY)\n // POI Carousel - Label\n .setProperty(\"view.poi.carousel.label.color.text\",Color.BLACK)\n .setProperty(\"view.poi.carousel.label.color.background\",Color.WHITE)\n .setProperty(\"view.poi.carousel.label.font.name\", typeface_b)\n .setProperty(\"view.poi.carousel.label.font.size\", 12.0)\n // POI Carousel - Loading\n .setProperty(\"view.poi.carousel.loading.color.background\", Color.TRANSPARENT)\n .setProperty(\"view.poi.carousel.loading.text.color.text\", Color.LTGRAY)\n .setProperty(\"view.poi.carousel.loading.text.color.background\", Color.TRANSPARENT)\n .setProperty(\"view.poi.carousel.loading.text.font.name\", typeface_b)\n .setProperty(\"view.poi.carousel.loading.text.font.size\", 12.0)\n // POI Details Description String\n .setProperty(\"view.poi.detail.description.color.text\",Color.WHITE)\n .setProperty(\"view.poi.detail.description.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.detail.description.font.name\", typeface_b)\n .setProperty(\"view.poi.detail.description.font.size\", 16.0)\n // POI Details Spannable Tag String\n .setProperty(\"view.poi.detail.tag.color.text\",Color.BLACK)\n .setProperty(\"view.poi.detail.tag.color.background\",Color.WHITE)\n // POI Contact - Website\n .setProperty(\"view.poi.contact.website.active.color.text\",Color.YELLOW)\n .setProperty(\"view.poi.contact.website.active.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.contact.website.active.font.name\", typeface_b)\n .setProperty(\"view.poi.contact.website.active.font.size\", 18.0)\n .setProperty(\"view.poi.contact.website.default.color.text\",Color.WHITE)\n .setProperty(\"view.poi.contact.website.default.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.contact.website.default.font.name\", typeface_b)\n .setProperty(\"view.poi.contact.website.default.font.size\", 16.0)\n // POI Contact - Phone\n .setProperty(\"view.poi.contact.phone.active.color.text\",Color.YELLOW)\n .setProperty(\"view.poi.contact.phone.active.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.contact.phone.active.font.name\", typeface_b)\n .setProperty(\"view.poi.contact.phone.active.font.size\", 14.0)\n .setProperty(\"view.poi.contact.phone.default.color.text\",Color.WHITE)\n .setProperty(\"view.poi.contact.phone.default.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.contact.phone.default.font.name\", typeface_b)\n .setProperty(\"view.poi.contact.phone.default.font.size\", 16.0)\n // POI Buttons\n .setProperty(\"view.poi.button.color.text\",Color.WHITE)\n .setProperty(\"view.poi.button.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.button.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.button.font.name\", typeface_b)\n .setProperty(\"view.poi.button.font.size\", 13.0)\n // POI Operational Times - Day\n .setProperty(\"view.poi.time.day.color.text\",Color.WHITE)\n .setProperty(\"view.poi.time.day.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.time.day.font.name\", typeface_a)\n .setProperty(\"view.poi.time.day.font.size\", 16.0)\n // POI Operational Times - compress Hour\n .setProperty(\"view.poi.time.hours.color.text\",Color.LTGRAY)\n .setProperty(\"view.poi.time.hours.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.time.hours.font.name\", typeface_c)\n .setProperty(\"view.poi.time.hours.font.size\", 18.0)\n\n // POI Operational Times - extended Hour\n .setProperty(\"view.poi.time.hour.color.text\",Color.LTGRAY)\n .setProperty(\"view.poi.time.hour.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.time.hour.font.name\", typeface_c)\n .setProperty(\"view.poi.time.hour.font.size\", 18.0)\n // Create DefaultTheme\n .createTheme();\n\n mMapView.setTheme(theme);\n }",
"public void setTheme(String theme) {\n this.theme = theme;\n }",
"public void setTheme(String theme) {\n this.theme = theme;\n }",
"public void onCreate(Bundle savedInstanceState) {\n\t\tif (App.getThemePreference().equals(getString(R.string.pref_value_theme_dark))) {\n\t\t\tsetTheme(R.style.AppTheme_Dark);\n\t\t}\n\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tgetSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n\t\tif(Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB) {\n\t\t\tsetFragment();\n\t\t} else {\n\t\t\tsetSupportFragment();\n\t\t}\n\t}",
"public Theme( final String name ) {\n this( name, null );\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tlyt_appback = (LinearLayout)findViewById(R.id.lyt_appback);\t\t\n\t\tlyt_appback.setBackgroundResource(Application.appDrawableId);\n\t}",
"public boolean isDark(){\n int ui = getUI();\n int currentNightMode = ui & Configuration.UI_MODE_NIGHT_MASK;\n if(currentNightMode == Configuration.UI_MODE_NIGHT_YES)\n {\n return true;\n }\n return false;\n }",
"public String getTheme() {\n return theme;\n }",
"public String getTheme() {\n return theme;\n }",
"public String getTheme() {\n return theme;\n }",
"public String getTheme() {\r\n\t\treturn _theme;\r\n\t}"
] | [
"0.70502377",
"0.70482963",
"0.68735176",
"0.68035185",
"0.67917585",
"0.6729321",
"0.6712872",
"0.6641293",
"0.66083306",
"0.655836",
"0.6511021",
"0.6468154",
"0.644991",
"0.64442503",
"0.64081264",
"0.64044493",
"0.6393829",
"0.6389848",
"0.6289913",
"0.618749",
"0.60932565",
"0.60828084",
"0.6060018",
"0.6009377",
"0.59690315",
"0.59612995",
"0.5948486",
"0.593524",
"0.5934082",
"0.5886512",
"0.5879042",
"0.58584106",
"0.58058125",
"0.5797073",
"0.57880545",
"0.57813305",
"0.57733077",
"0.5756918",
"0.57470137",
"0.5741841",
"0.5740428",
"0.5734303",
"0.57048786",
"0.57021207",
"0.56587225",
"0.5657304",
"0.565368",
"0.5640837",
"0.56364936",
"0.5627247",
"0.56217676",
"0.562041",
"0.5608207",
"0.55991954",
"0.55969936",
"0.55955684",
"0.55865127",
"0.55684084",
"0.55330294",
"0.55274665",
"0.5523577",
"0.550378",
"0.54938614",
"0.5492611",
"0.54756564",
"0.5468506",
"0.5466499",
"0.5456349",
"0.54449385",
"0.54424155",
"0.5424655",
"0.5423192",
"0.54020417",
"0.53906864",
"0.53881603",
"0.5387643",
"0.5387415",
"0.5384255",
"0.53763855",
"0.53742",
"0.53584814",
"0.53476024",
"0.5339589",
"0.53367674",
"0.5332611",
"0.5323459",
"0.53190994",
"0.53187203",
"0.53156865",
"0.52942026",
"0.5294191",
"0.52895004",
"0.52895004",
"0.5287802",
"0.5286591",
"0.52829206",
"0.52806926",
"0.52747214",
"0.52747214",
"0.52747214",
"0.5271786"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
@Deprecated
public boolean onPreferenceTreeClick(
AuroraPreferenceScreen preferenceScreen, AuroraPreference preference) {
if (UPDATE_SETTINGS_KEY.equals(preference.getKey())) {
Intent lInt = new Intent(this, UpdateSettingsPreferenceActivity.class);
startActivity(lInt);
} else if (WIFI_DOWNLOAD_KEY.equals(preference.getKey())) {
} else if (NONE_DOWNLOAD_KEY.equals(preference.getKey())) {
}
return super.onPreferenceTreeClick(preferenceScreen, preference);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Default constructor; set attribute flags | public VerticalProfileControl() {
setAttributeFlags(FLAG_COLOR | FLAG_DATACONTROL | FLAG_DISPLAYUNIT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Attr() {\n\t\t\tsuper();\n\t\t}",
"public IRAttribute ( ) {\n\t\tsuper();\n\t}",
"public Flag() {\n }",
"DefaultAttribute()\n {\n }",
"public Flag()\n {\n super(\"Flag\");\n }",
"public AbstractKerberosFlags()\n {\n value = 0;\n }",
"public Flag(int x)\n\t{\n super(x);\n\t}",
"public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}",
"public AttributeContainer() {\n super();\n }",
"public AttributeDescriptorDTO()\n\t{\n\t\tsuper();\n\t}",
"public Light() {\n\t\tthis(false);\n\t}",
"public FlagPositions() {\r\n this(6);\r\n }",
"private FormattableFlags() {}",
"public RequestAttribute() {\n }",
"public InquiryLftrattribRequest()\r\n\t{\r\n\t}",
"public EncodingAlgorithmAttributesImpl() {\n this(null, null);\n }",
"public AllDifferent()\n {\n this(0);\n }",
"public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }",
"public Attribute(String title) {\n \t\tthis.title = title;\n \t\tconflictMagnitude = 0;\n \t}",
"public AttrObject(){\t\r\n\tvalue = null;\r\n }",
"public J3DAttribute () {}",
"protected LPDMODOMAttribute() {\n }",
"public ModuleObjectAttributeItem() {}",
"private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }",
"public InspectionAttributes() {\n }",
"public ClassificationAttributesDTO()\n\t{\n\t\tsuper();\n\t}",
"public UfFlowAttributeRecord() {\n super(UfFlowAttribute.UF_FLOW_ATTRIBUTE);\n }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"protected BaseFeat()\n {\n super(TYPE);\n }",
"protected AttributeImpl(long ID, int datatype) {\n super(ID);\n this.datatype = datatype;\n }",
"void DefaultConstructor(){}",
"public DefaultAttribute( byte[] upId )\n {\n setUpId( upId );\n }",
"public Boolean() {\n\t\tsuper(false);\n\t}",
"@SuppressWarnings(\"unused\")\n private Flight() {\n this(null, null, null, null, null, null, null, null, null, null, null);\n }",
"public Flag(float x, float y, Objectid id) {\n\t\tsuper(x, y, id);\n\t\t\n\t}",
"public AttributeDiscretization() {\n\n }",
"public Attributes2Impl() {\n /*\n // Can't load method instructions: Load method exception: null in method: org.xml.sax.ext.Attributes2Impl.<init>():void, dex: in method: org.xml.sax.ext.Attributes2Impl.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.<init>():void\");\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"public AbstractRequestParser()\n {\n super();\n \n //set flag\n this.initialized=false;\n }",
"public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }",
"public OBOMapper() {\n this(true);\n }",
"c(boolean z) {\n super(1);\n this.$enable = z;\n }",
"public ProAddAttrRecord() {\n super(ProAddAttr.PRO_ADD_ATTR);\n }",
"Attribute createAttribute();",
"Attribute createAttribute();",
"public Memory() {\n this(false);\n }",
"public Gini() {\r\n\t\thmAttrNames = new HashMap<String, Integer>();\r\n\t\tbuildAttrNamesSet();\r\n\t}",
"defaultConstructor(){}",
"public void constructor() {\n setEdibleAnimals();\n }",
"private void initializeLiveAttributes() {\n\t\tnumOctaves = createLiveAnimatedInteger(null, SVG_NUM_OCTAVES_ATTRIBUTE, 1);\n\t\tseed = createLiveAnimatedNumber(null, SVG_SEED_ATTRIBUTE, 0f);\n\t\tstitchTiles = createLiveAnimatedEnumeration(null, SVG_STITCH_TILES_ATTRIBUTE, STITCH_TILES_VALUES, (short) 2);\n\t\ttype = createLiveAnimatedEnumeration(null, SVG_TYPE_ATTRIBUTE, TYPE_VALUES, (short) 2);\n\t}",
"public static void initializeClassAttributes() {\n\t\tAboraSupport.findAboraClass(IntegerVarArray.class).setAttributes( new Set().add(\"CONCRETE\").add(\"PSEUDOCOPY\"));\n\t}",
"public Child() {\n\t\tsuper(20);\n\t}",
"private AttributeTypeHome( )\n {\n }",
"public Patch56State()\n {\n this( null, 0 );\n }",
"public Friend()\n\t{\n\t\tname = \"nameless\";\n\t\thumorStyle = \"less than none\";\n\t\tage = -10;\n\t\tinterest = \"absolutely nothing\";\n\t\tlikesPineapple = false;\n\t\tweight = - 99.99999;\n\t}",
"private TesteeAttributeIdentity() {\n }",
"public Constructor(){\n\t\t\n\t}",
"TAttribute createTAttribute();",
"public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}",
"public Attribute(String name, int metricFactor, int priority){\n this.name = name;\n this.maxOccurance = 0;\n this.metric = 0.0;\n subGrps = new Vector<SubGroup>();\n this.maxSubGroups = new Vector<SubGroup>();\n this.metricFactor = metricFactor;\n this.priority = priority;\n this.isDominating = true;\n}",
"public AirField() {\n\n\t}",
"public Property() {\n this(0, 0, 0, 0);\n }",
"protected BaseAuroraDataBuffer(long length) {\n this(length, true);\n }",
"public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}",
"public SATableReadCapabilityAttributesExtension()\n {\n super();\n }",
"public FalseFilter() {\n\t\t//can be ignored\n\t}",
"public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}",
"public Field() {\r\n\t}",
"public SimpleButton()\n {\n this(true);\n }",
"public Shape() { this(X_DEFAULT, Y_DEFAULT); }",
"public Basic() {}",
"private Default()\n {}",
"public CheckBox() {\n\t\tthis(false);\n\n\t}",
"public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }",
"private ARXDate() {\r\n this(\"Default\");\r\n }",
"public /* synthetic */ MeFeatureRecyclerView(Context context, AttributeSet attributeSet, int i, int i2, g gVar) {\n this(context, (i2 & 2) != 0 ? null : attributeSet, (i2 & 4) != 0 ? 0 : i);\n }",
"public AbstractKerberosFlags( byte[] flags )\n {\n super( flags );\n // Remember getBytes() \"A first byte containing the number of unused bits is added\"\n value = ( ( getBytes()[1] & 0x00F ) << 24 ) | ( ( getBytes()[2] & 0x00FF ) << 16 ) | ( ( getBytes()[3] & 0x00FF ) << 8 ) | ( 0x00FF & getBytes()[4] ); \n }",
"public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}",
"private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }",
"private void init(boolean[] flags) {\n\t\tflags[0] = false; \n\t\tflags[1] = false; \n\t\t\n\t\tfor (int i=2; i<flags.length; i++) {\n\t\t\tflags[i] = true; \n\t\t}\n\t}",
"public ARecord() {\n super(A.A);\n }",
"public ExtensionAttributes_() {\n }",
"public UrlEncapsulation() {\r\n\t\t\r\n\t\tthis(null\r\n\t\t\t\t, null, null, null, null\r\n\t\t\t\t, false, null, null, null, null, null, null, null);\r\n\t\t\r\n\t}",
"private Attribute createAttribute() {\n\t\t\tAttribute att = AttributeFactory.createAttribute(getName(), getValueType());\n\t\t\tatt.getAnnotations().clear();\n\t\t\tatt.getAnnotations().putAll(getAnnotations());\n\t\t\tattribute = att;\n\t\t\treturn att;\n\t\t}",
"public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}",
"public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }",
"public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }",
"static Attribute createAttribute(String name, Field field) {\n\t\tAttribute attribute = new Attribute(name, field);\n\t\tattribute.setKind(Attribute.NONE);\n\t\tattribute.setPreferenceType(Attribute.GAIN);\n\t\treturn attribute;\n\t}",
"public Value setAttributes(boolean dontenum, boolean dontdelete, boolean readonly) {\n checkNotUnknown();\n Value r = new Value(this);\n r.flags &= ~ATTR;\n if (dontdelete)\n r.flags |= ATTR_DONTDELETE;\n else\n r.flags |= ATTR_NOTDONTDELETE;\n if (readonly)\n r.flags |= ATTR_READONLY;\n else\n r.flags |= ATTR_NOTREADONLY;\n if (dontenum)\n r.flags |= ATTR_DONTENUM;\n else\n r.flags |= ATTR_NOTDONTENUM;\n return canonicalize(r);\n }",
"private void __sep__Constructors__() {}",
"public Light(){\n this(0.0, 0.0, 0.0);\n }",
"public Filter () {\n\t\tsuper();\n\t}",
"public CreateStatus()\n {\n super(new DataMap(), null);\n }",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"public GetAttributesDefinitionV2() {}",
"public Weapon ()\r\n\t{\r\n\t\t//no default values for Weapon attributes are set here as the specific weapon type unspecified at super level\r\n\t}",
"public AttributeSet() {\n\n elements = new Hashtable();\n }",
"public DefaultAttribute( String upId )\n {\n setUpId( upId );\n }",
"public PajekNetReader()\n {\n this(false, false);\n }",
"public AttributeRanges() {\n }",
"public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }"
] | [
"0.70170856",
"0.681529",
"0.67883235",
"0.6717609",
"0.6586307",
"0.6449981",
"0.6411145",
"0.63861954",
"0.6356356",
"0.6263707",
"0.6201847",
"0.61477804",
"0.6147699",
"0.6131024",
"0.60821176",
"0.6072103",
"0.6068109",
"0.6031656",
"0.60203856",
"0.6014503",
"0.59984684",
"0.5985765",
"0.5955031",
"0.59513116",
"0.5947749",
"0.5937163",
"0.5923294",
"0.5899141",
"0.5876673",
"0.58651316",
"0.5841122",
"0.58372533",
"0.58313566",
"0.5826333",
"0.58245033",
"0.58214265",
"0.5804919",
"0.5788478",
"0.5783058",
"0.5758805",
"0.57542795",
"0.574946",
"0.5739877",
"0.57339483",
"0.57339483",
"0.5733213",
"0.5732534",
"0.5731272",
"0.5731268",
"0.5725161",
"0.5721081",
"0.57158804",
"0.57148314",
"0.57038015",
"0.5693142",
"0.5682285",
"0.5676425",
"0.56740785",
"0.56555134",
"0.56536347",
"0.56410193",
"0.56320333",
"0.56289184",
"0.56231093",
"0.5622456",
"0.5618657",
"0.5611956",
"0.56028575",
"0.560043",
"0.55903924",
"0.5582358",
"0.55804425",
"0.5578184",
"0.5572894",
"0.5572584",
"0.55591744",
"0.5551739",
"0.55441093",
"0.55372703",
"0.55361336",
"0.55317",
"0.5528839",
"0.55287594",
"0.5525789",
"0.5523499",
"0.55197704",
"0.55197704",
"0.55172426",
"0.55150247",
"0.5514561",
"0.5504899",
"0.5504777",
"0.55032",
"0.5502052",
"0.5497193",
"0.5494872",
"0.5492685",
"0.548984",
"0.54869705",
"0.54766375",
"0.5476607"
] | 0.0 | -1 |
Construct the vertical profile display and control buttons | public boolean init(DataChoice dataChoice)
throws VisADException, RemoteException {
return init(Misc.newList(dataChoice));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VerticalProfileControl() {\n setAttributeFlags(FLAG_COLOR | FLAG_DATACONTROL | FLAG_DISPLAYUNIT);\n }",
"public void createControl(Composite parent) {\n Group group = SWTFactory.createGroup(parent, PDEUIMessages.ProfileBlock_0, 1, 1, GridData.FILL_HORIZONTAL);\n fGenerateProfileButton = SWTFactory.createCheckButton(group, PDEUIMessages.ProfileBlock_1, null, false, 1);\n fGenerateProfileButton.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n fTab.updateLaunchConfigurationDialog();\n }\n });\n }",
"private void buildTopPanel() {\n \t\tJPanel panel = new JPanel();\n \t\tpanel.setLayout(new BorderLayout(10, 10));\n \t\t\n \t\t// this does not need to be referenced else where, only for layout\n \t\tJPanel paneButtons = new JPanel();\n \t\tGridLayout bl = new GridLayout(2, 1);\n \t\tpaneButtons.setLayout(bl);\n \t\t\n \t\tpaneButtons.add(bCastOff);\n \t\tpaneButtons.add(bSavePlayer);\n \t\t\n \t\t// add all components on top:\n \t\tpanel.add(imgDisplay, BorderLayout.LINE_START);\n \t\tpanel.add(paneEditFields, BorderLayout.CENTER);\n \t\tpanel.add(paneButtons, BorderLayout.LINE_END);\n \t\t\n \t\tadd(panel, BorderLayout.PAGE_START);\n \t}",
"private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}",
"private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}",
"private void createStatusPanel(final Composite pp) {\n\t\t//\n\t\t// Create status panel\n\t\t//\n\t\tstatusPanel = new Composite(pp, SWT.NONE);\n\t\tstatusPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 3;\n\t\tlayout.horizontalSpacing = 5;\n\t\tlayout.verticalSpacing = 0;\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tstatusPanel.setLayout(layout);\n\n\t\t//\n\t\t// Create status sub-panels\n\t\t//\n\t\tcreateOffsetPanel(statusPanel);\n\t\tcreateValuePanel(statusPanel);\n\t\tcreateFileSizePanel(statusPanel);\n\t}",
"public void createComponents()\n {\n VBox col = new VBox(SPACING);\n\n Label lblStatus = new Label(\"Machine Status\");\n lblStatus.getStyleClass().add(\"bordered-titled-title\");\n\n lblCurrFile = new Label(\"No File Currently Loaded\");\n lblConnection = new Label(\"Not Connected\");\n\n btnConnect = new Button(\"Connect to Machine\");\n btnConnect.setOnAction(new ConnectEventHandler());\n //btnConnect.getStyleClass().add(\"glass-grey\");\n\n ivConnection = new ImageView(\n new Image(getClass().getResourceAsStream(\"/Resources/Not Connected.png\")));\n\n lblMachineStatus = new Label(\"Status: Good\");\n HBox r1 = new HBox(SPACING);\n r1.getChildren().addAll(lblConnection, ivConnection);\n\n col.getChildren().addAll(btnConnect, r1, lblCurrFile, lblMachineStatus);\n getChildren().addAll(lblStatus, col);\n\n }",
"private DisplayPanel(){\r\n\t\t\t\tControlActionListenter cal = new ControlActionListenter();\r\n\t\t\t\tsetLayout(new BorderLayout());\r\n\t\t\t\tfinal JButton btn1 = new JButton(\"First\");\r\n\t\t\t\tbtn1.setFocusable(false);\r\n \t \tbtn1.addActionListener(cal);\r\n \t\t\tfinal JButton btn2 = new JButton(\"Next\");\r\n \t\t\tbtn2.addActionListener(cal);\r\n \t\t\t\tfinal JButton btn3 = new JButton(\"Previous\");\r\n \t\t \tbtn3.addActionListener(cal);\r\n \t\t final JButton btn4 = new JButton(\"Last\");\r\n \t\tbtn4.addActionListener(cal);\r\n \t\tbtn2.setFocusable(false);\r\n \t\tbtn3.setFocusable(false);\r\n \t\tbtn4.setFocusable(false);\r\n \t\t \tJPanel controlButtons = new JPanel(new GridLayout(2,2,5,5));\r\n \t\t \tcontrolButtons.add(btn3);\r\n \t\t \tcontrolButtons.add(btn2);\r\n \t\t \tcontrolButtons.add(btn1);\r\n \t\tcontrolButtons.add(btn4);\r\n \t\tcontrolButtons.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n \t\tadd(controlButtons, BorderLayout.PAGE_END);\r\n\t\t\t}",
"private void createMainMenuMiddleComposite() {\n\t\tString imgSlipUI = null;\n\t\tString imgJackpotBtn = null;\n\t\tString imgVoucherBtn = null;\n\t\tif(Util.isSmallerResolution()) {\n\t\t\timgSlipUI = ImageConstants.S_SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.S_JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.S_VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\telse {\n\t\t\timgSlipUI = ImageConstants.SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\t\n\t\tGridData gridData11 = new GridData();\n\t\tgridData11.horizontalAlignment = GridData.CENTER;\n\t\tgridData11.grabExcessHorizontalSpace = true;\n\t\tgridData11.grabExcessVerticalSpace = true;\n\t\tgridData11.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData10 = new GridData();\n\t\tgridData10.horizontalAlignment = GridData.CENTER;\n\t\tgridData10.grabExcessHorizontalSpace = true;\n\t\tgridData10.grabExcessVerticalSpace = true;\n\t\tgridData10.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData9 = new GridData();\n\t\tgridData9.horizontalAlignment = GridData.CENTER;\n\t\tgridData9.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData6 = new GridData();\n\t\tgridData6.heightHint = 100;\n\t\t// gridData6.heightHint = 70;\n\t\tgridData6.widthHint = 100;\n\t\t// gridData6.widthHint = 90;\n\t\tgridData6.grabExcessHorizontalSpace = true;\n\t\tgridData6.grabExcessVerticalSpace = true;\n\t\tgridData6.horizontalAlignment = GridData.CENTER;\n\t\tgridData6.verticalAlignment = GridData.END;\n\n\t\tGridLayout gridLayout3 = new GridLayout();\n\t\tgridLayout3.horizontalSpacing = 20;\n\t\tgridLayout3.numColumns = 3;\n\t\tGridData gridData5 = new GridData();\n\t\tgridData5.grabExcessHorizontalSpace = true;\n\t\tgridData5.verticalAlignment = GridData.FILL;\n\t\tgridData5.heightHint = 100;\n\t\tgridData5.grabExcessVerticalSpace = true;\n\t\tgridData5.horizontalAlignment = GridData.FILL;\n\t\tmainMenuMiddleComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuMiddleComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t171, 209, 255));\n\t\tmainMenuMiddleComposite.setLayout(gridLayout3);\n\t\tmainMenuMiddleComposite.setLayoutData(gridData5);\n\n\t\tGridData gridData3 = new GridData();\n\t\tgridData3.grabExcessVerticalSpace = true;\n\t\tgridData3.horizontalAlignment = GridData.CENTER;\n\t\tgridData3.verticalAlignment = GridData.END;\n\t\tgridData3.heightHint = 100;\n\t\tgridData3.widthHint = 100;\n\t\tgridData3.grabExcessHorizontalSpace = true;\n\n\t\tGridData gridData1 = new GridData();\n\t\tgridData1.grabExcessVerticalSpace = true;\n\t\tgridData1.horizontalAlignment = GridData.CENTER;\n\t\tgridData1.verticalAlignment = GridData.END;\n\t\tgridData1.heightHint = 100;\n\t\tgridData1.widthHint = 100;\n\t\tgridData1.grabExcessHorizontalSpace = true;\n\n\t\tbtnSlipUI = new CbctlButton(mainMenuMiddleComposite, SWT.FLAT, \"\",\n\t\t\t\tLabelKeyConstants.SLIPS_UI_BUTTON);\n\t\tbtnSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\t\n\t\tbtnSlipUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgSlipUI)));\n\t\tbtnSlipUI.setLayoutData(gridData1);\n\n\t\tbtnJackpotUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelKeyConstants.JACKPOT_UI_BUTTON);\n\t\tbtnJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tbtnJackpotUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgJackpotBtn)));\n\t\tbtnJackpotUI.setLayoutData(gridData3);\n\n\t\tbtnVoucherUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelLoader.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tbtnVoucherUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgVoucherBtn)));\n\t\tbtnVoucherUI.setLayoutData(gridData6);\n\n\t\tlblSlipUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblSlipUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.SLIPS_UI_BUTTON));\n\t\tlblSlipUI.setBackground(new Color(Display.getCurrent(), 171, 209, 255));\n\t\tlblSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\tlblSlipUI.setLayoutData(gridData9);\n\n\t\tlblJackpotUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblJackpotUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.JACKPOT_UI_BUTTON));\n\t\tlblJackpotUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblJackpotUI.setLayoutData(gridData10);\n\n\t\tlblVoucherUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblVoucherUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tlblVoucherUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblVoucherUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblVoucherUI.setLayoutData(gridData11);\n\n\t}",
"private void createControls() {\n JScrollPane votesScroller = new JScrollPane(votesTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel bottomPanel = new JPanel();\n JPanel buttonsPanel = new JPanel();\n JLabel votesLabel = new JLabel(\"<html><div style='text-align: center; width: \" + PANEL_SIZE.width + \";'><h3>Votes</h3></html>\");\n \n // Enables/disables buttons.\n enableAdding();\n \n // Hooks up the controller on the action listeners.\n loadButton.addActionListener((e) -> controller.loadVotes());\n addButton.addActionListener((e) -> {\n // Uses the selected indexes of the combo boxes to determine the candidate IDs.\n ArrayList<Integer> candidateIds = new ArrayList<>();\n comboBoxes.forEach((comboBox) -> candidateIds.add(comboBox.getSelectedIndex() - 1));\n \n // Requests that the controller adds a vote with the given candidate IDs.\n controller.addVote(candidateIds);\n });\n \n // Lays out the components.\n panel.setLayout(new BorderLayout());\n panel.add(votesLabel, BorderLayout.PAGE_START);\n panel.add(votesScroller, BorderLayout.CENTER);\n panel.add(bottomPanel, BorderLayout.PAGE_END);\n \n bottomPanel.setLayout(new BorderLayout());\n bottomPanel.add(createComboBoxes(), BorderLayout.PAGE_START);\n bottomPanel.add(buttonsPanel, BorderLayout.PAGE_END);\n \n buttonsPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n buttonsPanel.add(addButton);\n buttonsPanel.add(loadButton);\n \n \n panel.setPreferredSize(PANEL_SIZE);\n }",
"private void setupUI() {\n\t\tpanel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout(0, 0));\n\t\tfinal JPanel panel2 = new JPanel();\n\t\tpanel2.setLayout(new FlowLayout(FlowLayout.LEFT, 2, 2));\n\t\tpanel2.setBackground(Color.BLACK);\n\t\tpanel2.setPreferredSize(new Dimension(800, 34));\n\t\tpanel1.add(panel2, BorderLayout.SOUTH);\n\t\tstopButton = new JButton();\n\t\tstopButton.setText(\"STOP\");\n\t\tstopButton.setPreferredSize(new Dimension(82, 30));\n\t\tpanel2.add(stopButton);\n\t\tclsButton = new JButton();\n\t\tclsButton.setPreferredSize(new Dimension(82, 30));\n\t\tclsButton.setText(\"CLS\");\n\t\tpanel2.add(clsButton);\n\t\trunButton = new JButton();\n\t\trunButton.setPreferredSize(new Dimension(82, 30));\n\t\trunButton.setText(\"RUN\");\n\t\tpanel2.add(runButton);\n\t\tcaretLabel = new JLabel();\n\t\tcaretLabel.setPreferredSize(new Dimension(82, 30));\n\t\tcaretLabel.setForeground(Color.pink);\n\t\tpanel2.add(caretLabel);\n\t\tmainTextArea = new ShellTextComponent(this);\n\t\tmainTextArea.setCaretColor(new Color(Colors.COLORS[14]));\n\t\tfinal JScrollPane scrollPane1 = new JScrollPane(mainTextArea);\n\n\t\tpanel1.add(scrollPane1, BorderLayout.CENTER);\n\t\tpanel1.setPreferredSize(new Dimension(800, 600));\n\t}",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}",
"public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}",
"private void createContents()\n\t{\n\t\tGridLayout clayout = new GridLayout();\n\t\tclayout.marginHeight = 2;\n\t\tclayout.marginWidth = 2;\n\t\tclayout.marginTop = 2;\n\t\tclayout.marginBottom = 2;\n\t\tclayout.marginLeft = 2;\n\t\tclayout.marginRight = 2;\n\t\tclayout.numColumns = 1;\n\t\tsetLayout(clayout);\n\t\t\n\t\t\n\t\tm_executorsTable = new ExecutorsTable(this);\n\t\tGridData tableLayoutData = new GridData(GridData.FILL_BOTH);\n\t\ttableLayoutData.grabExcessHorizontalSpace = true;\n\t\ttableLayoutData.widthHint = 700;\n\t\ttableLayoutData.heightHint = 200;\n\t\tm_executorsTable.getGrid().setLayoutData(tableLayoutData);\n\t\tm_executorsTable.addDoubleClickListener(this);\n\t\tm_executorsTable.addSelectionChangedListener( new ISelectionChangedListener(){\n\n\t\t\t@Override\n public void selectionChanged(SelectionChangedEvent arg0)\n {\n\t\t\t\tupdateButtons();\n }\n\t\t\t\n\t\t});\n\n\t\tComposite buttonBar = new Composite(this, SWT.BORDER);\n\t\tbuttonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tbuttonBar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\t\n\t\tm_btnTakeControl = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnTakeControl.setText(BTN_TAKE_CONTROL);\n\t\tm_btnTakeControl.addSelectionListener(this);\n\t\t\n\t\tm_btnReleaseControl = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnReleaseControl.setText(BTN_RELEASE_CONTROL);\n\t\tm_btnReleaseControl.addSelectionListener(this);\n\t\t\n\t\tm_btnBackground = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnBackground.setText(BTN_BACKGROUND);\n\t\tm_btnBackground.addSelectionListener(this);\n\n\t\tm_btnStartMonitor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStartMonitor.setText(BTN_START_MONITOR);\n\t\tm_btnStartMonitor.addSelectionListener(this);\n\t\t\n\t\tm_btnStopMonitor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStopMonitor.setText(BTN_STOP_MONITOR);\n\t\tm_btnStopMonitor.addSelectionListener(this);\n\t\t\n\t\tm_btnStopExecutor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStopExecutor.setText(BTN_STOP_EXECUTOR);\n\t\tm_btnStopExecutor.addSelectionListener(this);\n\n\t\tm_btnKillExecutor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnKillExecutor.setText(BTN_KILL_EXECUTOR);\n\t\tm_btnKillExecutor.addSelectionListener(this);\n\t\t\n\t\tm_btnRefresh = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnRefresh.setText(BTN_REFRESH);\n\t\tm_btnRefresh.addSelectionListener(this);\n\t\t\n\t\tapplyFonts();\n\t\tdisableButtons();\n\t}",
"public CreateJPanel(ProfileInfo profileInfo) {\n initComponents();\n \n this.profileInfo = profileInfo;\n btnSave.setEnabled(false);\n \n }",
"private void populateControlPanel() {\n \n ControlListener control = new ControlListener();\n startStopButton = new JButton(\"Start/Stop\");\n startStopButton.addActionListener(control);\n \n saveButton = new JButton(\"Save\");\n saveButton.addActionListener(control);\n \n loadButton = new JButton(\"Load\");\n loadButton.addActionListener(control);\n \n resetButton = new JButton(\"Reset\");\n resetButton.addActionListener(control);\n \n add(startStopButton);\n add(saveButton);\n add(loadButton);\n add(resetButton);\n }",
"private void setDisplay() {\n\t\tDimension d = new Dimension(160,40);\n\t\tsetPreferredSize(d);\n\t\tsetMaximumSize(d);\n\t\tsetMinimumSize(d);\n\t\tsetLayout(new BorderLayout());\n\t\tsetBorder(new EmptyBorder(3,0,3,0));\n\t\tbtnUser = new RoundedButton(new Color(0xEEEEEE), new Color(0xCCCCCC));\n\t\tJPanel pnlInner = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t\t\n\t\tpnlIcon = new JPanel(new BorderLayout());\n\t\tpnlIcon.add(lblUserListIcon, BorderLayout.CENTER);\n//\t\tpnlIcon.setBackground(new Color(0xEEEEEE));\n\t\tpnlIcon.setOpaque(false);\n\t\t\n\t\tpnlIcon.setBorder(new EmptyBorder(0,5, 0, 5));\n\t\t\n\t\tpnlName = new JPanel(new BorderLayout());\n\t\tpnlName.add(lblUserListName, BorderLayout.CENTER);\n//\t\tpnlName.setBackground(new Color(0xEEEEEE));\n\t\tpnlName.setOpaque(false);\n\t\t\n\t\tpnlInner.add(pnlIcon);\n\t\tpnlInner.add(pnlName);\n\t\t\n\t\tsetOpaque(true);\n\t\tsetBackground(Color.WHITE);\n\t\t\n\t\tbtnUser.add(pnlIcon, BorderLayout.WEST);\n\t\tbtnUser.add(pnlName, BorderLayout.CENTER);\n\t\tadd(btnUser, BorderLayout.CENTER);\n\t}",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}",
"protected void createButtons(Panel panel) {\n panel.add(new Filler(24,20));\n\n Choice drawingChoice = new Choice();\n drawingChoice.addItem(fgUntitled);\n\n\t String param = getParameter(\"DRAWINGS\");\n\t if (param == null)\n\t param = \"\";\n \tStringTokenizer st = new StringTokenizer(param);\n while (st.hasMoreTokens())\n drawingChoice.addItem(st.nextToken());\n // offer choice only if more than one\n if (drawingChoice.getItemCount() > 1)\n panel.add(drawingChoice);\n else\n panel.add(new Label(fgUntitled));\n\n\t\tdrawingChoice.addItemListener(\n\t\t new ItemListener() {\n\t\t public void itemStateChanged(ItemEvent e) {\n\t\t if (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t loadDrawing((String)e.getItem());\n\t\t }\n\t\t }\n\t\t }\n\t\t);\n\n panel.add(new Filler(6,20));\n\n Button button;\n button = new CommandButton(new DeleteCommand(\"Delete\", fView));\n panel.add(button);\n\n button = new CommandButton(new DuplicateCommand(\"Duplicate\", fView));\n panel.add(button);\n\n button = new CommandButton(new GroupCommand(\"Group\", fView));\n panel.add(button);\n\n button = new CommandButton(new UngroupCommand(\"Ungroup\", fView));\n panel.add(button);\n\n button = new Button(\"Help\");\n\t\tbutton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n\t\t showHelp();\n\t\t }\n\t\t }\n\t\t);\n panel.add(button);\n\n fUpdateButton = new Button(\"Simple Update\");\n\t\tfUpdateButton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n if (fSimpleUpdate)\n setBufferedDisplayUpdate();\n else\n setSimpleDisplayUpdate();\n\t\t }\n\t\t }\n\t\t);\n\n // panel.add(fUpdateButton); // not shown currently\n }",
"private void $$$setupUI$$$() {\n statusPanel = new JPanel();\n statusPanel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status Label\");\n statusPanel.add(statusLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n statusPanel.add(separator1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }",
"private void createButtonsPanel() {\r\n Composite buttonsPanel = new Composite(this, SWT.NONE);\r\n buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\r\n buttonsPanel.setLayout(new GridLayout(4, true));\r\n\r\n getButtonFromAction(buttonsPanel, \"New\", new NewAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Save\", new SaveAction());\r\n getButtonFromAction(buttonsPanel, \"Delete\", new DeleteAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Cancel\", new CancelAction());\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void createControl( Composite parent )\r\n {\n ScrolledComposite tabScroller = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);\r\n tabScroller.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );\r\n tabScroller.setLayout( new GridLayout( 1, false ) );\r\n tabScroller.setExpandHorizontal(true);\r\n tabScroller.setExpandVertical(true);\r\n Composite tab = new Composite(tabScroller, SWT.NONE);\r\n tab.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );\r\n tab.setLayout( new GridLayout( 1, false ) );\r\n\r\n Composite buttons = new Composite(tab, SWT.NONE);\r\n buttons.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER ) );\r\n buttons.setLayout( new GridLayout( 2, false ) );\r\n\r\n setControl( tabScroller );\r\n tabScroller.setContent(tab);\r\n\r\n // Add the relevant controls for selecting parameters\r\n final UpdatableControlIF topFile = ControlRenderingFactory.fileSelectButton(buttons, \"Set top model from file selection\", false, (ConfigFile)getConfigs().get(ConfigGroup.TOP_MODEL_FILE));\r\n /*final Button defaults =*/ this.getDefaultButton(buttons);\r\n\r\n final Composite group2 = new Composite(tab, SWT.SHADOW_IN);\r\n group2.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n group2.setLayout( new GridLayout( 2, true ) );\r\n\r\n final Composite leftCol = new Composite(group2, SWT.NONE);\r\n leftCol.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n leftCol.setLayout( new GridLayout( 1, true ) );\r\n\r\n final Composite rightCol = new Composite(group2, SWT.NONE);\r\n rightCol.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n rightCol.setLayout( new GridLayout( 1, true ) );\r\n\r\n final UpdatableControlIF runDir = ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.RUN_DIR), leftCol, true, true); \r\n final UpdatableControlIF topName = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.TOP_MODEL_NAME), leftCol); \r\n addControl(ConfigGroup.CACHE_DIR, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.CACHE_DIR), leftCol));\r\n\r\n final Composite leftColShort = new Composite(leftCol, SWT.NONE);\r\n leftColShort.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n leftColShort.setLayout( new GridLayout( 2, true ) );\r\n addControl(ConfigGroup.SIM_TIME, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TIME), leftColShort));\r\n addControl(ConfigGroup.SIM_STEPS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_STEPS), leftColShort));\r\n addControl(ConfigGroup.SIM_MAX_ERRORS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_MAX_ERRORS), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_SIZE_WARNING, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_SIZE_WARNING), leftColShort));\r\n \r\n addControl(ConfigGroup.ELABORATE_TOP, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.ELABORATE_TOP), leftColShort));\r\n addControl(ConfigGroup.ENABLE_ASSERTIONS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.ENABLE_ASSERTIONS), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_IGNORE, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_IGNORE), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_RECORD, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_RECORD), leftColShort));\r\n addControl(ConfigGroup.SIM_TRACE, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TRACE), leftColShort));\r\n addControl(ConfigGroup.SIM_TYPE_CHECK, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TYPE_CHECK), leftColShort));\r\n \r\n addControl(ConfigGroup.SIM_INPUT_FILE, ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.SIM_INPUT_FILE), rightCol, true, true));\r\n addControl(ConfigGroup.SIM_OUTPUT_FILE, ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.SIM_OUTPUT_FILE), rightCol, true, true));\r\n final UpdatableControlIF modelPath = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.MODEL_PATH), rightCol); \r\n final UpdatableControlIF modelParams = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.TOP_MODEL_PARAMS), rightCol); \r\n addControl(ConfigGroup.MESSAGE_SUPPRESS_IDS, ControlRenderingFactory.renderConfig((ConfigList)getConfigs().get(ConfigGroup.MESSAGE_SUPPRESS_IDS), rightCol));\r\n\r\n addControl(ConfigGroup.MODEL_PATH, modelPath);\r\n addControl(ConfigGroup.RUN_DIR, runDir);\r\n addControl(ConfigGroup.TOP_MODEL_NAME, topName);\r\n addControl(ConfigGroup.TOP_MODEL_PARAMS, modelParams);\r\n\r\n // If the user uses the button to set the model by file selection, overide any values in \r\n // the relevent fields\r\n topFile.addModifyListener(new ConfigModificationListener(){\r\n public void registerModification (int type) { \r\n // Set to false to only update in case of no user setting.\r\n final boolean forceUpdate = true;\r\n\r\n ConfigFile topFileConfig = (ConfigFile)getConfigs().get(ConfigGroup.TOP_MODEL_FILE);\r\n // In case of spurious events ignore them (possible?)\r\n if (!topFileConfig.isUserSpecified())\r\n return;\r\n\r\n // Update the run directory whenever the top file is updated\r\n ConfigFile runDirConfig = (ConfigFile)getConfigs().get(ConfigGroup.RUN_DIR);\r\n if (forceUpdate/* || !runDirConfig.isUserSpecified()*/)\r\n runDirConfig.setValue(topFileConfig.getValueFile().getParent(), true);\r\n runDir.updateValue();\r\n\r\n // Update the top level model name\r\n ConfigString topNameConfig = (ConfigString)getConfigs().get(ConfigGroup.TOP_MODEL_NAME);\r\n if (forceUpdate/* || !topNameConfig.isUserSpecified()*/)\r\n {\r\n String name = topFileConfig.getValueFile().getName();\r\n name = name.indexOf('.') > 0 ? name.substring(0, name.lastIndexOf('.')):name;\r\n topNameConfig.setValue(name, true);\r\n }\r\n topName.updateValue();\r\n\r\n // Ensure that the model path contains the run directory\r\n ConfigList modelPathConfig = (ConfigList)getConfigs().get(ConfigGroup.MODEL_PATH);\r\n if (!modelPathConfig.getValue().contains(runDirConfig.getValue()))\r\n {\r\n // The contract for setValue on collections is to append\r\n modelPathConfig.addValue(Collections.singletonList(runDirConfig.getValue()), modelPathConfig.isUserSpecified());\r\n }\r\n modelPath.updateValue();\r\n\r\n // Update the model parameters\r\n ConfigMap paramsConfig = (ConfigMap)getConfigs().get(ConfigGroup.TOP_MODEL_PARAMS);\r\n if (forceUpdate/* || !paramsConfig.isUserSpecified()*/)\r\n {\r\n String[] modelPathArr = (String[])modelPathConfig.getValue().toArray(new String[0]);\r\n try {\r\n List<TopModelParamParse.ModelParameter> params = TopModelParamParse.parseModel(topNameConfig.getValue(), modelPathArr);\r\n Map map = new HashMap();\r\n for (ModelParameter mp : params)\r\n map.put(mp.getName(), mp.getValue());\r\n paramsConfig.setValue(map, false);\r\n } catch (TopModelParamParse.ModelAnalysisException exc) {\r\n Logging.dbg().severe(\"Error loading top model \" + exc);\r\n }\r\n }\r\n modelParams.updateValue();\r\n }\r\n });\r\n\r\n // The topFile control must be added AFTER the above modificationListener is added\r\n // so that the changes instituted there will be reflected in the call to updateLaunchConfigurationDialog().\r\n addControl(ConfigGroup.TOP_MODEL_FILE, topFile);\r\n\r\n tabScroller.setMinSize(tab.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n }",
"private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}",
"private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}",
"private Composite createTopBar(Composite parent, int span) {\n\t\tComposite c = new Composite(parent, SWT.NO_BACKGROUND);\n\n\t\tGridData cData = new GridData();\n\t\tcData.horizontalSpan = span;\n\t\tcData.horizontalAlignment = GridData.FILL;\n\t\tc.setLayoutData(cData);\n\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 3;\n\t\tc.setLayout(layout);\n\n\n\t\tLabel weightLabel = new Label(c, SWT.LEFT);\n\t\tGridData weightData = new GridData();\n\t\tweightData.grabExcessHorizontalSpace = true;\n\t\tweightLabel.setLayoutData(weightData);\n\t\tweightLabel.setText(Resources.getMessage(\"RiskWizard.19\"));\n\t\tFontDescriptor boldDescriptor = FontDescriptor.createFrom(weightLabel.getFont()).setStyle(SWT.BOLD);\n\t\tFont boldFont = boldDescriptor.createFont(weightLabel.getDisplay());\n\t\tweightLabel.setFont(boldFont);\n\t\tfileLabel = weightLabel;\n\t\t\n\t\tfinal Combo visualizationDropDown = new Combo(c, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER);\n\t\tString monitorTitle = Resources.getMessage(\"RiskWizard.12\");\n\t\tString stacksTitle = Resources.getMessage(\"RiskWizard.13\");\n\t\tvisualizationDropDown.add(monitorTitle);\n\t\tvisualizationDropDown.add(stacksTitle);\n\t\tvisualizationDropDown.setText(monitorTitle);\n\t\tvisualizationDropDown.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString selected = visualizationDropDown.getText(); \n\t\t\t\tif(selected.equals(stacksTitle)) {\n\t\t\t\t\t//System.out.println(\"Select Stacks\");\n\t\t\t\t\tshowStacksVisualization();\n\t\t\t\t} else if(selected.equals(monitorTitle)) {\n\t\t\t\t\t//System.out.println(\"Select Monitor\");\n\t\t\t\t\tshowMonitorVisualization();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tLabel separator = new Label(c, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tGridData sepData = new GridData();\n\t\tsepData.horizontalSpan = layout.numColumns;\n\t\tsepData.grabExcessHorizontalSpace = true;\n\t\tsepData.horizontalAlignment = GridData.FILL;\n\t\tseparator.setLayoutData(sepData);\n\n\t\ttopBar = c;\n\t\treturn c;\n\t}",
"private void createToolbar() {\r\n // the visible toolbar is actually a toolbar next to a combobox.\r\n // That is why we need this extra composite, layout and numColums = 2.\r\n final Composite parent = new Composite(SHELL, SWT.FILL);\r\n final GridLayout layout = new GridLayout();\r\n layout.numColumns = 2;\r\n parent.setLayout(layout);\r\n\r\n final ToolBar bar = new ToolBar(parent, SWT.NONE);\r\n final GridData data = new GridData();\r\n data.heightHint = 55;\r\n data.grabExcessVerticalSpace = false;\r\n bar.setLayoutData(data);\r\n bar.setLayout(new GridLayout());\r\n\r\n createOpenButton(bar);\r\n\r\n createGenerateButton(bar);\r\n\r\n createSaveButton(bar);\r\n\r\n createSolveButton(bar);\r\n\r\n createAboutButton(bar);\r\n\r\n algorithmCombo = new AlgorithmCombo(parent);\r\n }",
"private void buildUserDataPanel() {\r\n\t\tJPanel user_info_panel = new JPanel();\r\n\t\tuser_info_panel.setBorder(new BevelBorder(BevelBorder.LOWERED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tuser_info_panel.setBackground(INNER_BACKGROUND_COLOR);\r\n\t\tuser_info_panel.setBounds(201, 234, 213, 100);\r\n\t\tuser_info_panel.setLayout(new GridLayout(3, 2));\r\n\t\tJLabel label_2 = new JLabel(\" User:\");\r\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_2);\r\n\t\tJLabel label = new JLabel(\"Biff McMann\");\r\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label);\r\n\t\tJLabel label_3 = new JLabel(\" Position:\");\r\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_3);\r\n\t\tJLabel label_1 = new JLabel(\"Program Chair\");\r\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_1);\r\n\t\tJLabel label_4 = new JLabel(\" Date:\");\r\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_4);\r\n\t\tJLabel label_5 = new JLabel(\"9/23/2013\");\r\n\t\tlabel_5.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_5);\r\n\t\tmain_panel.add(user_info_panel);\r\n\r\n\t}",
"private JPanel initButtons() {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout(FlowLayout.CENTER, 3, 3));\n\t\tsigninButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tsigninButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// validate the credentials of the user being logged in \n\t\t\t\tif(ValidCredentials()){\n\t\t\t\t\t// if credentials are valid, initialize differnt panes\n\t\t\t\t\t// search , committee, update profile and logout tabs\n\t\t\t\t\tparentFrame.getContentPane().removeAll();\n\t\t\t\t\tparentFrame.getContentPane().revalidate();\n\t\t\t\t\tparentFrame.getContentPane().repaint();\n\t\t\t\t\tparentFrame.getContentPane().setLayout(new BorderLayout());\n\t\t\t\t\t\n\t\t\t\t\tJTabbedPane tabbedPane = new JTabbedPane();\n\t\t\t\t\ttabbedPane.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\t\t\t\ttabbedPane.addTab(\"Search\", new SearchUI(null));\n\t\t\t\t\ttabbedPane.addTab(\"Committee List\", new CommitteeListUI());\n\t\t\t\t\ttabbedPane.addTab(\"Update Profile\", new UpdateProfileUI());\n\t\t\t\t\t\n\t\t\t\t\ttabbedPane.add(\"Logout\", new LogoutUI());\n\t\t\t\t\tparentFrame.getContentPane().add(tabbedPane);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// if the credentials are invalid, pop up the following message window\n\t\t\t\t\tjOptionPane.showMessageDialog(LoginUI.this,\n\t\t\t\t\t\t\t\"Invalid username or password\",\n\t\t\t\t\t\t\t\"Login\",\n\t\t\t\t\t\t\tjOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t// reset username and password\n\t\t\t\t\tuserNameField.setText(\"\");\n\t\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tpanel.add(signinButton);\n\t\treturn panel;\n\t}",
"private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}",
"private void buildControls() {\n\t\tsetLayout(new FillLayout());\n\t\tSashForm child = new SashForm(this, SWT.VERTICAL);\n\t\ttable = new Table(child, SWT.FULL_SELECTION | SWT.MULTI | SWT.BORDER );\n\t\ttable.addSelectionListener(createSelctionListener());\n\t\tviewer = buildAndLayoutTable(table);\n\t\taddDNDSupport(viewer);\n\t\tattachContentProvider(viewer);\n\t\tattachLabelProvider(viewer);\n\t\tsingleRating = new RatingTable(child, null, SWT.HORIZONTAL, model);\n\t\t//Zum Debuggen ist das Textfeld sehr nützlich\n\t\t//Text target = new Text(child, SWT.NONE);\n\t\t//initDropTest(target);\n\t\t//child.setWeights(new int[] {2, 1, 1});\n\t\tchild.setWeights(new int[]{2, 1});\n\t\taddFilter(viewer);\n\t\tviewer.setInput(webtrace);\n\t}",
"private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }",
"private void createButtons() {\n Button helpSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -5797923866320649518L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateToHelp();\n }\n });\n\n// Button skillSettingsButton = new Button(\"\",\n// new Button.ClickListener() {\n// private static final long serialVersionUID = 7147554466396214893L;\n//\n// @Override\n// public void buttonClick(ClickEvent event) {\n// settingsPresenter.navigateToSkills();\n// }\n// });\n// skillSettingsButton.addStyleName(\"icon-cog\");\n\n Button medicSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = 7147554466396214893L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateToMedic();\n }\n });\n\n\n Button logoutButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -1096188732209266611L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateBack();\n }\n });\n logoutButton.addStyleName(\"default\");\n\n // Adding and aligning the 3 Buttons.\n //Setting a Description for the buttons which is displayed when flying over the button\n super.verticalNavigation.addComponent(helpSettingsButton);\n super.verticalNavigation.setComponentAlignment(helpSettingsButton, Alignment.MIDDLE_CENTER);\n helpSettingsButton.setDescription(\"Set the Help options for the Patient\");\n helpSettingsButton.setIcon(new ThemeResource(\"img/contacgg.png\"), BUTTON_HELP_SETTINGS);\n helpSettingsButton.setWidth(BUTTON_WIDTH);\n helpSettingsButton.setHeight(BUTTON_HEIGHT);\n\n super.verticalNavigation.addComponent(medicSettingsButton);\n super.verticalNavigation.setComponentAlignment(medicSettingsButton, Alignment.MIDDLE_CENTER);\n medicSettingsButton.setDescription(\"Set the Medication options for the Patient\");\n medicSettingsButton.setIcon(new ThemeResource(\"img/medicine-icon-cog.png\"),BUTTON_MEDIC_SETTINGS);\n medicSettingsButton.setWidth(BUTTON_WIDTH);\n medicSettingsButton.setHeight(BUTTON_HEIGHT);\n\n// addComponent(skillSettingsButton);\n// setComponentAlignment(skillSettingsButton, Alignment.MIDDLE_CENTER);\n// skillSettingsButton.setDescription(\"Set the Skill options for the Patient\");\n// skillSettingsButton.setIcon(new ThemeResource(\"img/skill2-icon-cog.png\"), BUTTON_SKILL_SETTINGS);\n// skillSettingsButton.setWidth(BUTTON_WIDTH);\n// skillSettingsButton.setHeight(BUTTON_HEIGHT);\n\n logoutButton.setWidth(BUTTON_WIDTH);\n super.verticalNavigation.addComponent(logoutButton);\n super.verticalNavigation.setComponentAlignment(logoutButton, Alignment.MIDDLE_CENTER);\n logoutButton.setDescription(\"You will be logged out\");\n logoutButton.setIcon(new ThemeResource(\"img/logout.png\"), BUTTON_LOGOUT);\n logoutButton.setWidth(BUTTON_WIDTH);\n logoutButton.setHeight(BUTTON_HEIGHT);\n\n }",
"public void addPanelControls() {\n\t\tlist_sort = new JComboBox<>(new String[] { \"MSSV\", \"HoTen\", \"NTNS\" });\r\n\t\tbtn_sapxep = new JButton(\"Sap xep\");\r\n\t\tbtn_them = new JButton(\"Them\");\r\n\t\tbtn_xoa = new JButton(\"Xoa\");\r\n\t\tbtn_save = new JButton(\"Save\");\r\n\t\tbtn_load = new JButton(\"Load\");\r\n\r\n\t\tJPanel mControlPanel = new JPanel(new GridLayout(5, 1));\r\n\t\tmControlPanel.add(btn_them);\r\n\t\tmControlPanel.add(btn_xoa);\r\n\t\tJPanel sapxepPanel = new JPanel();\r\n\t\tsapxepPanel.add(list_sort);\r\n\t\tsapxepPanel.add(btn_sapxep);\r\n\t\tmControlPanel.add(sapxepPanel);\r\n\t\tmControlPanel.add(btn_save);\r\n\t\tmControlPanel.add(btn_load);\r\n\r\n\t\tmControlPanel.setPreferredSize(new Dimension(380, 200));\r\n\t\tmControlPanel.setBorder(new TitledBorder(\"Controls\"));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx = 0.5;\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 0;\r\n\t\tpanel.add(mControlPanel,c);\r\n\t}",
"private void createpanel4() {\r\n\t\tpanels[3].setLayout(new FlowLayout(FlowLayout.CENTER, 20, 0));\r\n\r\n\t\texecute = new JButton(\"Login\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\texecute.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\texecute.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\texecute.setForeground(Color.BLACK);\r\n\t\texecute.setBorderPainted(true);\r\n\t\texecute.setContentAreaFilled(false);\r\n\t\texecute.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcancel = new JButton(\"Cancel\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcancel.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcancel.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcancel.setForeground(Color.BLACK);\r\n\t\tcancel.setBorderPainted(true);\r\n\t\tcancel.setContentAreaFilled(false);\r\n\t\tcancel.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcreateAccount = new JButton(\"New Account\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcreateAccount.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcreateAccount.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcreateAccount.setForeground(Color.BLACK);\r\n\t\tcreateAccount.setBorderPainted(true);\r\n\t\tcreateAccount.setContentAreaFilled(false);\r\n\t\tcreateAccount.setFont(customFont.deriveFont(10f));\r\n\r\n\t\tcancel.setPreferredSize(new Dimension(120, 30));\r\n\t\tcreateAccount.setPreferredSize(new Dimension(120, 30));\r\n\t\texecute.setPreferredSize(new Dimension(120, 30));\r\n\r\n\t\tpanels[3].add(execute);\r\n\t\tpanels[3].add(createAccount);\r\n\t\tpanels[3].add(cancel);\r\n\t\tpanels[3].setOpaque(false);\r\n\t\tallComponents.add(panels[3]);\r\n\t\tthis.backPanel.add(allComponents);\r\n\t\tthis.getContentPane().add(backPanel);\r\n\t\tpanels[3].revalidate();\r\n\r\n\t\tcreateAccount.addMouseListener(\r\n\t\t\t\tnew LoginListener(createAccount, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\tcancel.addMouseListener(new LoginListener(cancel, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\texecute.addMouseListener(\r\n\t\t\t\tnew LoginListener(execute, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t}",
"private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(table);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonRegister = new JButton();\n buttonRegister.setText(\"Track\");\n panel1.add(buttonRegister, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonMenu = new JButton();\n buttonMenu.setText(\"Menu\");\n panel1.add(buttonMenu, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}",
"private void controllersUI() {\n\t\tc.setLayout(null);\n\t\tc.setBackground(whiteColor);\n\t\t\n\t\tlbPullTitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlbPullTitle.setOpaque(true);\n\t\tlbPullTitle.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 18));\n\t\tlbPullTitle.setBounds(0, 0, 320, 52);\n\t\t\n\t\ttxtPulls.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 12));\n\t\ttxtPulls.setBounds(0, 52, 320, 420);\n\t\t\n\t\ttxtMsg.setBounds(10, 480, 230, 35);\n\t\tbtnMsg.setBounds(250, 476, 60, 40);\n\t\t\n\t\tc.add(txtPulls);\n\t\tc.add(lbPullTitle);\n\t\tc.add(btnMsg);\n\t\tc.add(txtMsg);\n\t\t\n\t\tbtnMsg.addActionListener(this);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n Btn_SectionGraphic = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel11 = new javax.swing.JLabel();\n ProfileHeading = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n Btn_SectionGraphic1 = new javax.swing.JButton();\n jSeparator3 = new javax.swing.JSeparator();\n jLabel13 = new javax.swing.JLabel();\n Btn_SectionGraphic2 = new javax.swing.JButton();\n jSeparator4 = new javax.swing.JSeparator();\n Btn_SectionGraphic4 = new javax.swing.JButton();\n Btn_SectionGraphic5 = new javax.swing.JButton();\n Btn_SectionGraphic6 = new javax.swing.JButton();\n Btn_SectionGraphic7 = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jSeparator6 = new javax.swing.JSeparator();\n jSeparator7 = new javax.swing.JSeparator();\n jSeparator8 = new javax.swing.JSeparator();\n jSeparator9 = new javax.swing.JSeparator();\n Btn_SectionGraphic8 = new javax.swing.JButton();\n Btn_SectionGraphic9 = new javax.swing.JButton();\n Btn_SectionGraphic10 = new javax.swing.JButton();\n Btn_SectionGraphic11 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jSeparator10 = new javax.swing.JSeparator();\n jSeparator11 = new javax.swing.JSeparator();\n jSeparator12 = new javax.swing.JSeparator();\n jSeparator13 = new javax.swing.JSeparator();\n Btn_SectionGraphic12 = new javax.swing.JButton();\n Btn_SectionGraphic13 = new javax.swing.JButton();\n Btn_SectionGraphic14 = new javax.swing.JButton();\n Btn_SectionGraphic15 = new javax.swing.JButton();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jSeparator14 = new javax.swing.JSeparator();\n jSeparator15 = new javax.swing.JSeparator();\n jSeparator16 = new javax.swing.JSeparator();\n jSeparator17 = new javax.swing.JSeparator();\n Btn_SectionGraphic16 = new javax.swing.JButton();\n Btn_SectionGraphic17 = new javax.swing.JButton();\n Btn_SectionGraphic18 = new javax.swing.JButton();\n Btn_SectionGraphic19 = new javax.swing.JButton();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n jLabel30 = new javax.swing.JLabel();\n jSeparator18 = new javax.swing.JSeparator();\n jSeparator19 = new javax.swing.JSeparator();\n jSeparator20 = new javax.swing.JSeparator();\n jSeparator21 = new javax.swing.JSeparator();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n Btn_SectionGraphic.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic.setBorder(null);\n Btn_SectionGraphic.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphicActionPerformed(evt);\n }\n });\n\n jSeparator2.setForeground(new java.awt.Color(0, 122, 204));\n\n jLabel11.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(45, 45, 48));\n jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel11.setText(\"Social Media Design \");\n\n ProfileHeading.setFont(new java.awt.Font(\"Arial\", 0, 36)); // NOI18N\n ProfileHeading.setForeground(new java.awt.Color(129, 129, 131));\n ProfileHeading.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n ProfileHeading.setText(\"Graphics & Design\");\n\n jLabel12.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(45, 45, 48));\n jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel12.setText(\"Vector Tracing \");\n\n Btn_SectionGraphic1.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic1.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic1.setBorder(null);\n Btn_SectionGraphic1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic1ActionPerformed(evt);\n }\n });\n\n jSeparator3.setForeground(new java.awt.Color(0, 122, 204));\n\n jLabel13.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(45, 45, 48));\n jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel13.setText(\"Invitations \");\n\n Btn_SectionGraphic2.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic2.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic2.setBorder(null);\n Btn_SectionGraphic2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic2ActionPerformed(evt);\n }\n });\n\n jSeparator4.setForeground(new java.awt.Color(0, 122, 204));\n\n Btn_SectionGraphic4.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic4.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic4.setBorder(null);\n Btn_SectionGraphic4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic4ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic5.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic5.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic5.setBorder(null);\n Btn_SectionGraphic5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic5ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic6.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic6.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic6.setBorder(null);\n Btn_SectionGraphic6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic6ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic7.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic7.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic7.setBorder(null);\n Btn_SectionGraphic7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic7ActionPerformed(evt);\n }\n });\n\n jLabel15.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(45, 45, 48));\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setText(\"Logo Design\");\n\n jLabel16.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(45, 45, 48));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\" Flyers & Brochures \");\n\n jLabel17.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(45, 45, 48));\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\"Packaging Design \");\n\n jLabel18.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(45, 45, 48));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Illustration \");\n\n jSeparator6.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator7.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator8.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator9.setForeground(new java.awt.Color(0, 122, 204));\n\n Btn_SectionGraphic8.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic8.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic8.setBorder(null);\n Btn_SectionGraphic8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic8ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic9.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic9.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic9.setBorder(null);\n Btn_SectionGraphic9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic9ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic10.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic10.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic10.setBorder(null);\n Btn_SectionGraphic10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic10ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic11.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic11.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic11.setBorder(null);\n Btn_SectionGraphic11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic11ActionPerformed(evt);\n }\n });\n\n jLabel19.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(45, 45, 48));\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Book & Album Covers \");\n\n jLabel20.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(45, 45, 48));\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Portraits & Caricatures\");\n\n jLabel21.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(45, 45, 48));\n jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel21.setText(\"Business Cards & Stationery\");\n\n jLabel22.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(45, 45, 48));\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Web & Mobile Design \");\n\n jSeparator10.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator11.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator12.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator13.setForeground(new java.awt.Color(0, 122, 204));\n\n Btn_SectionGraphic12.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic12.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic12.setBorder(null);\n Btn_SectionGraphic12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic12ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic13.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic13.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic13.setBorder(null);\n Btn_SectionGraphic13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic13ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic14.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic14.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic14.setBorder(null);\n Btn_SectionGraphic14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic14ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic15.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic15.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic15.setBorder(null);\n Btn_SectionGraphic15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic15ActionPerformed(evt);\n }\n });\n\n jLabel23.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(45, 45, 48));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"Presentation Design\");\n\n jLabel24.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(45, 45, 48));\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"Infographic Design \");\n\n jLabel25.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel25.setForeground(new java.awt.Color(45, 45, 48));\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Cartoons & Comics \");\n\n jLabel26.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel26.setForeground(new java.awt.Color(45, 45, 48));\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Architecture & Floor Plans \");\n\n jSeparator14.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator15.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator16.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator17.setForeground(new java.awt.Color(0, 122, 204));\n\n Btn_SectionGraphic16.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic16.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic16.setBorder(null);\n Btn_SectionGraphic16.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic16ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic17.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic17.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic17.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic17.setBorder(null);\n Btn_SectionGraphic17.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic17ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic18.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic18.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic18.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic18.setBorder(null);\n Btn_SectionGraphic18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic18ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic19.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic19.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic19.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic19.setBorder(null);\n Btn_SectionGraphic19.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic19ActionPerformed(evt);\n }\n });\n\n jLabel27.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel27.setForeground(new java.awt.Color(45, 45, 48));\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"3D Models & Product Design\");\n\n jLabel28.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(45, 45, 48));\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"T-Shirts & Merchandise \");\n\n jLabel29.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(45, 45, 48));\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"Photoshop Editing \");\n\n jLabel30.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(45, 45, 48));\n jLabel30.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel30.setText(\"Banner Ads \");\n\n jSeparator18.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator19.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator20.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator21.setForeground(new java.awt.Color(0, 122, 204));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(82, 82, 82)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic7))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator9, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic6))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic5))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic4))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic11))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator13, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic10))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator12, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic9))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator11, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic8))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator10, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic15))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator17, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic14))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator16, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic13))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator15, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic12))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator14, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic2))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic19))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator21, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic18))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator20, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic17))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator19, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic16))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator18, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(93, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ProfileHeading, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ProfileHeading, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(84, 84, 84)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator9, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel15))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel16))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel17))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel18)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator13, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel19))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator12, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator11, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel21))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator10, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator17, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel23))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator16, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator15, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel25))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator14, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel26)))\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator21, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel27))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator20, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel28))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator19, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel29))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator18, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel30)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel11))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel12))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13)))\n .addContainerGap(118, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public void displayProfileData() {\n MimsJTable table = new MimsJTable(ui);\n table.setPlanes(planes);\n table.setStats(stats);\n table.setRois(rois);\n table.setImages(images);\n String[] columnnames = table.getColumnNames();\n //MimsJTable requires multi-dim array, so need to convert dataset\n Object[][] exportedData = FileUtilities.convertXYDatasetToArray(data);\n table.createCustomTable(exportedData, columnnames);\n table.showFrame();\n }",
"private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }",
"private void createUI(Container pane) {\n try {\n setupTrayIcon();\n } catch (Exception e) { }\n\n EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);\n GridBagConstraints gbc = new GridBagConstraints();\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weightx = 1; gbc.ipadx = 2; gbc.gridx = 0;\n gbc.weighty = 0; gbc.ipady = 2; gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.PAGE_START;\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {\n LOGGER.error(\"[!] Exception setting system theme:\", e);\n }\n\n ripTextfield = new JTextField(\"\", 20);\n ripTextfield.addMouseListener(new ContextMenuMouseListener());\n ImageIcon ripIcon = new ImageIcon(mainIcon);\n ripButton = new JButton(\"<html><font size=\\\"5\\\"><b>Rip</b></font></html>\", ripIcon);\n stopButton = new JButton(\"<html><font size=\\\"5\\\"><b>Stop</b></font></html>\");\n stopButton.setEnabled(false);\n try {\n Image stopIcon = ImageIO.read(getClass().getClassLoader().getResource(\"stop.png\"));\n stopButton.setIcon(new ImageIcon(stopIcon));\n } catch (Exception ignored) { }\n JPanel ripPanel = new JPanel(new GridBagLayout());\n ripPanel.setBorder(emptyBorder);\n\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weightx = 0;\n gbc.gridx = 0; ripPanel.add(new JLabel(\"URL:\", JLabel.RIGHT), gbc);\n gbc.weightx = 1;\n gbc.weighty = 1;\n gbc.gridx = 1; ripPanel.add(ripTextfield, gbc);\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridx = 2; ripPanel.add(ripButton, gbc);\n gbc.gridx = 3; ripPanel.add(stopButton, gbc);\n gbc.weightx = 1;\n\n statusLabel = new JLabel(rb.getString(\"inactive\"));\n statusLabel.setHorizontalAlignment(JLabel.CENTER);\n openButton = new JButton();\n openButton.setVisible(false);\n JPanel statusPanel = new JPanel(new GridBagLayout());\n statusPanel.setBorder(emptyBorder);\n\n gbc.gridx = 0; statusPanel.add(statusLabel, gbc);\n gbc.gridy = 1; statusPanel.add(openButton, gbc);\n gbc.gridy = 0;\n\n JPanel progressPanel = new JPanel(new GridBagLayout());\n progressPanel.setBorder(emptyBorder);\n statusProgress = new JProgressBar(0, 100);\n progressPanel.add(statusProgress, gbc);\n\n JPanel optionsPanel = new JPanel(new GridBagLayout());\n optionsPanel.setBorder(emptyBorder);\n optionLog = new JButton(rb.getString(\"Log\"));\n optionHistory = new JButton(rb.getString(\"History\"));\n optionQueue = new JButton(rb.getString(\"Queue\"));\n optionConfiguration = new JButton(rb.getString(\"Configuration\"));\n optionLog.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionHistory.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionQueue.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionConfiguration.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n try {\n Image icon;\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"comment.png\"));\n optionLog.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"time.png\"));\n optionHistory.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"list.png\"));\n optionQueue.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"gear.png\"));\n optionConfiguration.setIcon(new ImageIcon(icon));\n } catch (Exception e) { }\n gbc.gridx = 0; optionsPanel.add(optionLog, gbc);\n gbc.gridx = 1; optionsPanel.add(optionHistory, gbc);\n gbc.gridx = 2; optionsPanel.add(optionQueue, gbc);\n gbc.gridx = 3; optionsPanel.add(optionConfiguration, gbc);\n\n logPanel = new JPanel(new GridBagLayout());\n logPanel.setBorder(emptyBorder);\n logText = new JTextPane();\n logText.setEditable(false);\n JScrollPane logTextScroll = new JScrollPane(logText);\n logTextScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n logPanel.setVisible(false);\n logPanel.setPreferredSize(new Dimension(300, 250));\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n logPanel.add(logTextScroll, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n\n historyPanel = new JPanel(new GridBagLayout());\n historyPanel.setBorder(emptyBorder);\n historyPanel.setVisible(false);\n historyPanel.setPreferredSize(new Dimension(300, 250));\n historyTableModel = new AbstractTableModel() {\n private static final long serialVersionUID = 1L;\n @Override\n public String getColumnName(int col) {\n return HISTORY.getColumnName(col);\n }\n @Override\n public Class<?> getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }\n @Override\n public Object getValueAt(int row, int col) {\n return HISTORY.getValueAt(row, col);\n }\n @Override\n public int getRowCount() {\n return HISTORY.toList().size();\n }\n @Override\n public int getColumnCount() {\n return HISTORY.getColumnCount();\n }\n @Override\n public boolean isCellEditable(int row, int col) {\n return (col == 0 || col == 4);\n }\n @Override\n public void setValueAt(Object value, int row, int col) {\n if (col == 4) {\n HISTORY.get(row).selected = (Boolean) value;\n historyTableModel.fireTableDataChanged();\n }\n }\n };\n historyTable = new JTable(historyTableModel);\n historyTable.addMouseListener(new HistoryMenuMouseListener());\n historyTable.setAutoCreateRowSorter(true);\n for (int i = 0; i < historyTable.getColumnModel().getColumnCount(); i++) {\n int width = 130; // Default\n switch (i) {\n case 0: // URL\n width = 270;\n break;\n case 3:\n width = 40;\n break;\n case 4:\n width = 15;\n break;\n }\n historyTable.getColumnModel().getColumn(i).setPreferredWidth(width);\n }\n JScrollPane historyTableScrollPane = new JScrollPane(historyTable);\n historyButtonRemove = new JButton(rb.getString(\"remove\"));\n historyButtonClear = new JButton(rb.getString(\"clear\"));\n historyButtonRerip = new JButton(rb.getString(\"re-rip.checked\"));\n gbc.gridx = 0;\n // History List Panel\n JPanel historyTablePanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n historyTablePanel.add(historyTableScrollPane, gbc);\n gbc.ipady = 180;\n gbc.gridy = 0;\n historyPanel.add(historyTablePanel, gbc);\n gbc.ipady = 0;\n JPanel historyButtonPanel = new JPanel(new GridBagLayout());\n historyButtonPanel.setPreferredSize(new Dimension(300, 10));\n historyButtonPanel.setBorder(emptyBorder);\n gbc.gridx = 0; historyButtonPanel.add(historyButtonRemove, gbc);\n gbc.gridx = 1; historyButtonPanel.add(historyButtonClear, gbc);\n gbc.gridx = 2; historyButtonPanel.add(historyButtonRerip, gbc);\n gbc.gridy = 1; gbc.gridx = 0;\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n historyPanel.add(historyButtonPanel, gbc);\n\n queuePanel = new JPanel(new GridBagLayout());\n queuePanel.setBorder(emptyBorder);\n queuePanel.setVisible(false);\n queuePanel.setPreferredSize(new Dimension(300, 250));\n queueListModel = new DefaultListModel();\n JList queueList = new JList(queueListModel);\n queueList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n queueList.addMouseListener(new QueueMenuMouseListener());\n JScrollPane queueListScroll = new JScrollPane(queueList,\n JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n for (String item : Utils.getConfigList(\"queue\")) {\n queueListModel.addElement(item);\n }\n updateQueueLabel();\n gbc.gridx = 0;\n JPanel queueListPanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n queueListPanel.add(queueListScroll, gbc);\n queuePanel.add(queueListPanel, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n gbc.ipady = 0;\n\n configurationPanel = new JPanel(new GridBagLayout());\n configurationPanel.setBorder(emptyBorder);\n configurationPanel.setVisible(false);\n // TODO Configuration components\n configUpdateButton = new JButton(rb.getString(\"check.for.updates\"));\n configUpdateLabel = new JLabel( rb.getString(\"current.version\") + \": \" + UpdateUtils.getThisJarVersion(), JLabel.RIGHT);\n configThreadsLabel = new JLabel(rb.getString(\"max.download.threads\") + \":\", JLabel.RIGHT);\n configTimeoutLabel = new JLabel(rb.getString(\"timeout.mill\"), JLabel.RIGHT);\n configRetriesLabel = new JLabel(rb.getString(\"retry.download.count\"), JLabel.RIGHT);\n configThreadsText = new JTextField(Integer.toString(Utils.getConfigInteger(\"threads.size\", 3)));\n configTimeoutText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.timeout\", 60000)));\n configRetriesText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.retries\", 3)));\n configOverwriteCheckbox = addNewCheckbox(rb.getString(\"overwrite.existing.files\"), \"file.overwrite\", false);\n configAutoupdateCheckbox = addNewCheckbox(rb.getString(\"auto.update\"), \"auto.update\", true);\n configPlaySound = addNewCheckbox(rb.getString(\"sound.when.rip.completes\"), \"play.sound\", false);\n configShowPopup = addNewCheckbox(rb.getString(\"notification.when.rip.starts\"), \"download.show_popup\", false);\n configSaveOrderCheckbox = addNewCheckbox(rb.getString(\"preserve.order\"), \"download.save_order\", true);\n configSaveLogs = addNewCheckbox(rb.getString(\"save.logs\"), \"log.save\", false);\n configSaveURLsOnly = addNewCheckbox(rb.getString(\"save.urls.only\"), \"urls_only.save\", false);\n configSaveAlbumTitles = addNewCheckbox(rb.getString(\"save.album.titles\"), \"album_titles.save\", true);\n configClipboardAutorip = addNewCheckbox(rb.getString(\"autorip.from.clipboard\"), \"clipboard.autorip\", false);\n configSaveDescriptions = addNewCheckbox(rb.getString(\"save.descriptions\"), \"descriptions.save\", true);\n configPreferMp4 = addNewCheckbox(rb.getString(\"prefer.mp4.over.gif\"),\"prefer.mp4\", false);\n configWindowPosition = addNewCheckbox(rb.getString(\"restore.window.position\"), \"window.position\", true);\n configURLHistoryCheckbox = addNewCheckbox(rb.getString(\"remember.url.history\"), \"remember.url_history\", true);\n configUrlFileChooserButton = new JButton(rb.getString(\"download.url.list\"));\n\n configLogLevelCombobox = new JComboBox<>(new String[] {\"Log level: Error\", \"Log level: Warn\", \"Log level: Info\", \"Log level: Debug\"});\n configSelectLangComboBox = new JComboBox<>(supportedLanges);\n configLogLevelCombobox.setSelectedItem(Utils.getConfigString(\"log.level\", \"Log level: Debug\"));\n setLogLevel(configLogLevelCombobox.getSelectedItem().toString());\n configSaveDirLabel = new JLabel();\n try {\n String workingDir = (Utils.shortenPath(Utils.getWorkingDirectory()));\n configSaveDirLabel.setText(workingDir);\n configSaveDirLabel.setForeground(Color.BLUE);\n configSaveDirLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));\n } catch (Exception e) { }\n configSaveDirLabel.setToolTipText(configSaveDirLabel.getText());\n configSaveDirLabel.setHorizontalAlignment(JLabel.RIGHT);\n configSaveDirButton = new JButton(rb.getString(\"select.save.dir\") + \"...\");\n\n addItemToConfigGridBagConstraints(gbc, 0, configUpdateLabel, configUpdateButton);\n addItemToConfigGridBagConstraints(gbc, 1, configAutoupdateCheckbox, configLogLevelCombobox);\n addItemToConfigGridBagConstraints(gbc, 2, configThreadsLabel, configThreadsText);\n addItemToConfigGridBagConstraints(gbc, 3, configTimeoutLabel, configTimeoutText);\n addItemToConfigGridBagConstraints(gbc, 4, configRetriesLabel, configRetriesText);\n addItemToConfigGridBagConstraints(gbc, 5, configOverwriteCheckbox, configSaveOrderCheckbox);\n addItemToConfigGridBagConstraints(gbc, 6, configPlaySound, configSaveLogs);\n addItemToConfigGridBagConstraints(gbc, 7, configShowPopup, configSaveURLsOnly);\n addItemToConfigGridBagConstraints(gbc, 8, configClipboardAutorip, configSaveAlbumTitles);\n addItemToConfigGridBagConstraints(gbc, 9, configSaveDescriptions, configPreferMp4);\n addItemToConfigGridBagConstraints(gbc, 10, configWindowPosition, configURLHistoryCheckbox);\n addItemToConfigGridBagConstraints(gbc, 11, configSelectLangComboBox, configUrlFileChooserButton);\n addItemToConfigGridBagConstraints(gbc, 12, configSaveDirLabel, configSaveDirButton);\n\n\n\n\n emptyPanel = new JPanel();\n emptyPanel.setPreferredSize(new Dimension(0, 0));\n emptyPanel.setSize(0, 0);\n\n gbc.anchor = GridBagConstraints.PAGE_START;\n gbc.gridy = 0; pane.add(ripPanel, gbc);\n gbc.gridy = 1; pane.add(statusPanel, gbc);\n gbc.gridy = 2; pane.add(progressPanel, gbc);\n gbc.gridy = 3; pane.add(optionsPanel, gbc);\n gbc.weighty = 1;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.gridy = 4; pane.add(logPanel, gbc);\n gbc.gridy = 5; pane.add(historyPanel, gbc);\n gbc.gridy = 5; pane.add(queuePanel, gbc);\n gbc.gridy = 5; pane.add(configurationPanel, gbc);\n gbc.gridy = 5; pane.add(emptyPanel, gbc);\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n }",
"private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void initActivities() {\n MainController mainController = new MainController();\n int n = mainController.getActivitiesByOwner(LoggedUser.getUser().getUsername()).size();\n panel = new JPanel(new GridLayout(n, 2, 10, 10));\n add(panel);\n for (int i = n - 1; i >= 0; i--) {\n panel.add(new JLabel(\" \" + mainController.getActivitiesByOwner\n (LoggedUser.getUser().getUsername()).get(i).getActivity()));\n panel.add(new JLabel(mainController.getActivitiesByOwner\n (LoggedUser.getUser().getUsername()).get(i).getTime() + \" \"));\n }\n }",
"private JComponent makeStudentProfilePanel() {\n\t\t\n\t\t//Initiate profilePanel\n\t\tJPanel profilePanel = new JPanel();\n\t\tprofilePanel.setLayout(new GridLayout(1,3,1,1));\n\t\tprofilePanel.setSize(studentPortalWidth, studentPortalHeight);\n\t\tprofilePanel.setBorder(compound);\n\t\t\t\t\n\t\t//Generate profilePanel's left component\n\t\tTitledBorder leftPanelTitle, usernameTitle, firstNameTitle, lastNameTitle, schoolNameTitle, sQ1Title, sQ2Title;\n\t\tleftPanelTitle = BorderFactory.createTitledBorder(\"Profile Information\");\n\t\tusernameTitle = BorderFactory.createTitledBorder(\"Username\");\n\t\tfirstNameTitle = BorderFactory.createTitledBorder(\"First\");\n\t\tlastNameTitle = BorderFactory.createTitledBorder(\"Last\");\n\t\tschoolNameTitle = BorderFactory.createTitledBorder(\"School\");\n\t\tsQ1Title = BorderFactory.createTitledBorder(\"Security Question 1\");\n\t\tsQ2Title = BorderFactory.createTitledBorder(\"Security Question 2\");\n\t\t\n\t\t//Main leftPanel\n\t\tJPanel leftPanel = new JPanel();\n\t\tleftPanel.setLayout(new GridLayout(6,1,1,1));\n\t\tleftPanel.setBorder(leftPanelTitle);\n\t\t\t\t\n\t\t//Username JLabel\n\t\tJLabel username = new JLabel(student.getUsername());\n\t\tusername.setBorder(usernameTitle);\n\t\tusername.setFont(masterFont);\n\t\tleftPanel.add(username);\n\t\t\t\t\n\t\t//FirstName JLabel\n\t\tJLabel firstName = new JLabel(student.getFirstName());\n\t\tfirstName.setBorder(firstNameTitle);\n\t\tfirstName.setFont(masterFont);\n\t\tleftPanel.add(firstName);\n\t\t\t\t\n\t\t//LastName JLabel\n\t\tJLabel lastName = new JLabel(student.getLastName());\n\t\tlastName.setBorder(lastNameTitle);\n\t\tlastName.setFont(masterFont);\n\t\tleftPanel.add(lastName);\n\t\t\t\t\n\t\t//SchoolName JLabel\n\t\tJLabel schoolName = new JLabel(student.getSchoolName());\n\t\tschoolName.setBorder(schoolNameTitle);\n\t\tschoolName.setFont(masterFont);\n\t\tleftPanel.add(schoolName);\n\n\t\t//Security Question 1 JLabel | JTextField\n\t\tJLabel sQ1L = new JLabel((String)sSecurityList1.getSelectedItem());\n\t\tsQ1L.setBorder(sQ1Title);\n\t\tsQ1L.setFont(masterFont);\n\t\tleftPanel.add(sQ1L);\n\t\t\t\t\n\t\t//Security Question 2 JLabel | JTextField\n\t\tJLabel sQ2L = new JLabel((String)sSecurityList2.getSelectedItem());\n\t\tsQ2L.setBorder(sQ2Title);\n\t\tsQ2L.setFont(masterFont);\n\t\tleftPanel.add(sQ2L);\n\t\t\t\t\n\t\t//Generate middle component\n\t\tTitledBorder characterTitle, gameTitle;\n\t\tcharacterTitle = BorderFactory.createTitledBorder(\"Character\");\n\t\tgameTitle = BorderFactory.createTitledBorder(\"Game\");\n\t\t\n\t\t//Main middlePanel JPanel\n\t\tJPanel middlePanel = new JPanel();\n\t\tmiddlePanel.setLayout(new GridLayout(2,1,1,1));\n\t\t\n\t\t//MiddleTopPanel JPanel\n\t\tJPanel middleTopPanel = new JPanel();\n\t\tmiddleTopPanel.setBorder(characterTitle);\n\t\t\n\t\t//Character Image JLabel\n\t\tCharacter character = student.getCurrentCharacter();\n\t\tImageIcon icon = new ImageIcon(\"Resource/\" + character.getCharacterName() + \".png\");\n\t\tImage image = icon.getImage().getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n\t\tcharacterImage = new JLabel(new ImageIcon(image));\n\t\tmiddleTopPanel.add(characterImage);\n\t\tmiddlePanel.add(middleTopPanel, BorderLayout.PAGE_START);\n\t\t\n\t\t//Student: \"Change Character\" JButton\n\t\tJButton changeCharacterB = new JButton(\"Change Character\");\n\t\tchangeCharacterB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tchangeC = true;\n\t \t\tchangeCharacter();\n\t }\n\t \t});\n\t\tmiddleTopPanel.add(changeCharacterB, BorderLayout.PAGE_END);\n\t\t\n\t\t//MiddleBottomPanel JPanel\n\t\tTitledBorder scoreTitle = BorderFactory.createTitledBorder(\"Score\");\n\t\tscoreTitle.setTitleColor(Color.WHITE);\n\t\tJPanel middleBottomPanel = new JPanel();\n\t\tmiddleBottomPanel.setBorder(gameTitle);\n\t\tmiddleBottomPanel.setLayout(new GridLayout(4,1,1,1));\n\n\t\t//ScoreL JLabel\n\t\tJLabel scoreL = new JLabel(Integer.toString(student.getScore()) + \" \");\n\t\tscoreL.setFont(new Font(\"Candara\", Font.PLAIN, 30));\n\t\tscoreL.setBackground(Color.BLUE);\n\t\tscoreL.setOpaque(true);\n\t\tscoreL.setForeground(Color.WHITE);\n\t\tscoreL.setHorizontalAlignment(SwingConstants.RIGHT);\n scoreL.setVerticalAlignment(SwingConstants.CENTER);\n\t\tscoreL.setBorder(scoreTitle);\n\t\tmiddleBottomPanel.add(scoreL);\n\t\t\n\t\t//Student \"New Game\" JButton\n\t\tJButton newGameB = new JButton(\"New Game\");\n\t\tnewGameB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tsPortalWindow.dispose();\n\t \t\trunGame();\n\t }\n\t \t});\n\t\tmiddleBottomPanel.add(newGameB);\n\t\t\n\t\t//Student \"Store\" JButtom\n\t\tJButton storeB = new JButton(\"Store\");\n\t\tstoreB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\t//store();\n\t }\n\t \t});\n\t\tmiddleBottomPanel.add(storeB);\n\t\t\n\t\t//Student \"Logout\" JButton\n\t\tJButton logoutB = new JButton(\"Logout\");\n\t\tlogoutB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tsPortalWindow.dispose();\n\t \t\tloginScreen();\n\t }\n\t \t});\n\t\tmiddleBottomPanel.add(logoutB);\n\t\t\n\t\tmiddlePanel.add(middleBottomPanel, BorderLayout.PAGE_END);\n\t\n\t\t//Generate right component \n\t\tTitledBorder topTitle, middleTitle, bottomTitle, title;\n\t\ttopTitle = BorderFactory.createTitledBorder(\"Profile\");\n\t\tmiddleTitle = BorderFactory.createTitledBorder(\"Class\");\n\t\tbottomTitle = BorderFactory.createTitledBorder(\"Study\");\n\t\ttitle = BorderFactory.createTitledBorder(\"Controls\");\n\t\t\t\t\n\t\t//Main rightPanel\n\t\tJPanel rightPanel = new JPanel();\n\t\trightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\t\t\t\n\t\t//TopRightPanel\n\t\tJPanel topRightPanel = new JPanel();\n\t\ttopRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\ttopRightPanel.setBorder(topTitle);\n\t\t\t\t\n\t\t//Student \"Edit Profile\" JButton\n\t\tJButton editProfileB = new JButton(\"Edit Profile\");\n\t\teditProfileB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tupdateStudentProfile();\n\t\t\t}\n\t\t});\n\t\ttopRightPanel.add(editProfileB);\n\t\t\n\t\t//Student \"Edit Security\" JButton\n\t\tJButton editSecurityB = new JButton(\"Edit Security\");\n\t\teditSecurityB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tupdateStudentSecurity();\n\t\t\t}\n\t\t});\n\t\ttopRightPanel.add(editSecurityB);\n\t\t\t\t\n\t\t//MiddleRightPanel\n\t\tJPanel middleRightPanel = new JPanel();\n\t\tmiddleRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\tmiddleRightPanel.setBorder(middleTitle);\n\t\t\t\t\n\t\t//Student: \"Add Class\" JButton\n\t\tJButton addClassB = new JButton(\"Add Class\");\n\t\taddClassB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddClassStudent();\n\t\t\t}\n\t\t});\n\t\tmiddleRightPanel.add(addClassB);\n\t\t\t\t\n\t\t//Student: \"Edit Class\" JButton\n\t\tJButton editClassB = new JButton(\"Edit Class\");\n\t\teditClassB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdeleteClassStudent();\n\t\t\t}\n\t\t});\n\t\tmiddleRightPanel.add(editClassB);\n\t\t\t\t\n\t\t//BottomRightPanel\n\t\tJPanel bottomRightPanel = new JPanel();\n\t\tbottomRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\tbottomRightPanel.setBorder(bottomTitle);\n\t\t\n\t\t//Student: \"New Study\" JButton\n\t\tJButton newStudyB = new JButton(\"New Study\");\n\t\tnewStudyB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcreateStudyName();\n\t\t\t\tnewFlashCard = new FlashCard(subjectNameTF.getText());\n\t\t\t}\n\t\t});\n\t\tbottomRightPanel.add(newStudyB);\n\t\t\t\t\n\t\t//Student: \"Edit Study\" JButton\n\t\tJButton editStudyB = new JButton(\"Edit Study\");\n\t\teditStudyB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdeleteStudentStudy();\n\t\t\t}\n\t\t});\n\t\tbottomRightPanel.add(editStudyB);\n\t\t\t\t\n\t\t//Add JPanel's to main JPanel\n\t\trightPanel.setBorder(title);\n\t\trightPanel.add(topRightPanel);\n\t\trightPanel.add(middleRightPanel);\n\t\trightPanel.add(bottomRightPanel);\n\t\t\t\t\n\t\tprofilePanel.add(leftPanel);\n\t\tprofilePanel.add(middlePanel);\n\t\tprofilePanel.add(rightPanel);\n\t\treturn profilePanel;\n\t}",
"public void init() {\n JLabel name = new JLabel(\"Name\");\n tfName.setColumns(TEXT_FIELD_SIZE);\n tfChangeStatus.setColumns(TEXT_FIELD_SIZE);\n tfChangeStatus.addActionListener(this);\n tfChangePicture.setColumns(TEXT_FIELD_SIZE);\n tfChangePicture.addActionListener(this);\n tfAddFriend.setColumns(TEXT_FIELD_SIZE);\n tfAddFriend.addActionListener(this);\n currentProfile = null;\n canvas = new FacePamphletCanvas();\n add(canvas);\n add(name,NORTH);\n add(tfName,NORTH);\n add(add,NORTH);\n add(delete,NORTH);\n add(lookUp,NORTH);\n add(tfChangeStatus,WEST);\n add(changeStatus,WEST);\n add(new JLabel(EMPTY_LABEL_TEXT), WEST);\n add(tfChangePicture,WEST);\n add(changePicture,WEST);\n add(new JLabel(EMPTY_LABEL_TEXT), WEST);\n add(tfAddFriend,WEST);\n add(addFriend,WEST);\n addActionListeners();\n }",
"private void createComponents()\n\t{\n\t\t// Create search results' table header\n\t\tm_ResultHeader = new PrinterLabel(1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\"PRINTER\",\"VENDOR\",\"TENSION (ksi)\",\"COMPRESSION (ksi)\",\"IMPACT (lb-ft)\",\"MATERIALS\",\"TOLERANCE (in)\",\"FINISH (\\u00B5in)\", false);\n\t\tm_ResultHeader.setBackground(Color.lightGray);\n\t\t// Add tool tips for long header categories before adding to GUI\n\t\tm_ResultHeader.getMaterials().setToolTipText(\"Range of Materials\");\n\t\tm_PrinterList = ToolBox.generatePrinterList();\n\t}",
"private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }",
"private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }",
"@Override\n\tvoid modifyUserContentPanel() {\n\t\t panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.PAGE_AXIS));\n\t\ticon1 = new BarGraphIcon(graphModel1,200,200);\n\t\ticon2= new BarGraphIcon(graphModel2,200,200);\n\t\tcourseLabel = new JLabel(\"Course: \");\n\t\tpanel.add(courseLabel);\n\t\tpanel.add(new JLabel(\" \"));\n\t\tpanel.add(new JLabel(\"Semester Offerings:\"));\n\t\tpanel.add( new JLabel(icon1));\n\t\tpanel.add(new JLabel(\" \"));\n\t\tpanel.add(new JLabel(\"Campus Offerings:\"));\n\t\tpanel.add(new JLabel(icon2));\n\t\t\n\t\tmakeUserContentPanel(panel);\n\t}",
"private void createOperationsPanel() {\n\t\toperationsPanel = new JPanel(new GridLayout(5, 1));\n\n\t\tspanningTreeButton = new JButton(\"Árvore de cobertura\");\n\t\tspanningTreeButton.addActionListener(new SpanningTreeHandler());\n\n\t\tblockingStatesButton = new JButton(\"Estados bloqueantes\");\n\t\tblockingStatesButton.addActionListener(new BlockingStatesHandler());\n\n\t\tnonLimitedStatesButton = new JButton(\"Estados não-limitados\");\n\t\tnonLimitedStatesButton.addActionListener(new NonLimitedStatesHandler());\n\n\t\tnetworkConservationButton = new JButton(\"Conservação da rede\");\n\t\tnetworkConservationButton.addActionListener(new NetworkConservationHandler());\n\n\t\treachabelStateButton = new JButton(\"Estado alcançável\");\n\t\treachabelStateButton.addActionListener(new ReachableStateHandler());\n\n\t\toperationsPanel.add(spanningTreeButton);\n\t\toperationsPanel.add(blockingStatesButton);\n\t\toperationsPanel.add(nonLimitedStatesButton);\n\t\toperationsPanel.add(networkConservationButton);\n\t\toperationsPanel.add(reachabelStateButton);\n\n\t\tthis.add(operationsPanel, BorderLayout.WEST);\n\t}",
"private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}",
"private void $$$setupUI$$$() {\n root = new JPanel();\n root.setLayout(new GridLayoutManager(2, 6, new Insets(8, 8, 8, 8), -1, -1));\n groupTabs = new JTabbedPane();\n root.add(groupTabs, new GridConstraints(1, 0, 1, 6, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n deviceName = new JLabel();\n deviceName.setFont(new Font(deviceName.getFont().getName(), deviceName.getFont().getStyle(), deviceName.getFont().getSize()));\n deviceName.setText(\"Label\");\n root.add(deviceName, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n root.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setEnabled(false);\n saveButton.setText(\"Save\");\n root.add(saveButton, new GridConstraints(0, 4, 1, 2, GridConstraints.ANCHOR_SOUTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n loading = new JProgressBar();\n loading.setBorderPainted(true);\n loading.setEnabled(true);\n loading.setIndeterminate(true);\n loading.setValue(50);\n root.add(loading, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n root.add(cancelButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private JPanel interactionArea() {\n JPanel userInter = new JPanel();\n userInter.setBorder(BorderFactory.createEmptyBorder(10, 10, 25, 15));\n userInter.setLayout(new GridLayout(6,0, 10,10));\n JPanel insertMoney = moneyButtons();\n userInter.add(insertMoney);\n balanceLabel = new JLabel(String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance));\n userInter.add(balanceLabel);\n priceLabel = new JLabel(\"<html><b>Price</b><br>$0.00</html>\");\n userInter.add(priceLabel);\n vendButton = new JButton(\"Vend\");\n vendButton.addActionListener(new vendListener());\n userInter.add(vendButton);\n cancelButton = new JButton(\"Cancel\");\n cancelButton.addActionListener(new cancelListener());\n userInter.add(cancelButton);\n adminButton = new JButton(\"Admin\");\n adminButton.addActionListener(new adminListener());\n userInter.add(adminButton);\n return userInter;\n }",
"public void createPartControl(Composite parent) {\n\n Composite composite = new Composite(parent, SWT.NULL);\n GridLayout layout = new GridLayout();\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n composite.setLayout(layout);\n composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\n | GridData.HORIZONTAL_ALIGN_FILL));\n\n consoleText = new Text(composite, SWT.V_SCROLL | SWT.H_SCROLL);\n consoleText.setLayoutData(new GridData(GridData.FILL_BOTH));\n consoleText.setEditable(false);\n consoleText.setText(\"RF> Welcome to the Performance (ICM) Reasoning Framework!!!\\n\");\n consoleText.setFont(JFaceResources.getFont(JFaceResources.TEXT_FONT));\n\n consoleText.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));\n consoleColor = new Color(Display.getDefault(), new RGB(0,0,0));\n consoleText.setForeground(consoleColor);\n\n Composite bottomLine = new Composite(composite, SWT.NULL);\n GridLayout layout2 = new GridLayout();\n layout2.marginHeight = 0;\n layout2.marginWidth = 0;\n layout2.numColumns = 3;\n bottomLine.setLayout(layout2);\n bottomLine.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));\n\n startButton = new Button(bottomLine, SWT.PUSH);\n startButton.setText(\"Start\");\n startButton.setEnabled(true);\n startButton.addSelectionListener(new SelectionListener() {\n\n public void widgetSelected(SelectionEvent se) {\n consoleText.setText(\"RF> Service started\\n\");\n startButton.setEnabled(false);\n stopButton.setEnabled(true);\n startReasoningFramework();\n }\n\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent se) {\n }\n });\n\n stopButton = new Button(bottomLine, SWT.PUSH);\n stopButton.setText(\"Stop\");\n stopButton.setEnabled(false);\n stopButton.addSelectionListener(new SelectionListener() {\n\n public void widgetSelected(SelectionEvent se) {\n consoleText.setText(\"RF> Service stopped\\n\");\n startButton.setEnabled(true);\n stopButton.setEnabled(false);\n stopReasoningFramework();\n }\n\n public void widgetDefaultSelected(SelectionEvent se) {\n }\n });\n \n clearButton = new Button(bottomLine, SWT.PUSH);\n clearButton.setText(\"Clear\");\n clearButton.addSelectionListener(new SelectionListener() {\n\n public void widgetSelected(SelectionEvent se) {\n consoleText.setText(\"\");\n }\n\n public void widgetDefaultSelected(SelectionEvent se) {\n }\n });\n\n hookUpToReasoningFramework();\n }",
"private void addWidgets() {\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(5);\n\t\tgrid.setPadding(new Insets(150, 80, 80, 80));\n\t\tgrid.add(lblPort, 0, 1);\n\t\tgrid.add(txtPort, 1, 1);\n\t\tgrid.add(lblAdress, 0, 2);\n\t\tgrid.add(txtAdress, 1, 2);\n\t\tgrid.add(lblNick, 0, 4);\n\t\tgrid.add(txtNickname, 1, 4);\n\t\tgrid.add(lblNickTaken, 1, 5);\n\t\tgrid.add(lblCardDesign, 0, 3);\n\t\tgrid.add(comboBoxCardDesign, 1, 3);\n\t\tgrid.add(btnLogin, 0, 7);\n\t\timvStart.setImage(imageStart);\n\t}",
"private void addComponentsTopane() {\n \tsetLayout(new BorderLayout());\n \t\n \tJButton b1 = new JButton(\"Login\");\n \tColor customBlue = new Color(86, 132, 197);\n \tb1.setBackground(customBlue);\n b1.setForeground(Color.WHITE);\n this.add(b1, BorderLayout.SOUTH);\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}",
"private void createContents(final Shell shell) {\r\n GridData data;\r\n\r\n final int colCount = 5;\r\n\r\n shell.setLayout(new GridLayout(colCount, true));\r\n\r\n // \"refresh\" button\r\n Button refresh = new Button(shell, SWT.PUSH);\r\n refresh.setText(\"Refresh\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n refresh.setLayoutData(data);\r\n refresh.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n\r\n // \"rotate\" button\r\n Button rotate = new Button(shell, SWT.PUSH);\r\n rotate.setText(\"Rotate\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n rotate.setLayoutData(data);\r\n rotate.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n if (mRawImage != null) {\r\n mRawImage = mRawImage.getRotated();\r\n updateImageDisplay(shell);\r\n \r\n mRotateCount++;\r\n if (mRotateCount >= 4) mRotateCount = 0;\r\n }\r\n }\r\n });\r\n\r\n // \"done\" button\r\n Button done = new Button(shell, SWT.PUSH);\r\n done.setText(\"Done\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n done.setLayoutData(data);\r\n done.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n shell.close();\r\n }\r\n });\r\n\r\n // title/\"capturing\" label\r\n mBusyLabel = new Label(shell, SWT.NONE);\r\n mBusyLabel.setText(\"Preparing...\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);\r\n data.horizontalSpan = colCount;\r\n mBusyLabel.setLayoutData(data);\r\n\r\n // space for the image\r\n mImageLabel = new Label(shell, SWT.BORDER);\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.horizontalSpan = colCount;\r\n mImageLabel.setLayoutData(data);\r\n Display display = shell.getDisplay();\r\n mImageLabel.setImage(createPlaceHolderArt(\r\n display, 50, 50, display.getSystemColor(SWT.COLOR_BLUE)));\r\n TouchController tc = new TouchController(mDevice, mScaled);\r\n tc.setTouchListener(new TouchListener() {\r\n public void onClick() {\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException e) {\r\n }\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n mImageLabel.addMouseListener(tc);\r\n mImageLabel.addMouseMoveListener(tc);\r\n\r\n\r\n shell.setDefaultButton(done);\r\n }",
"public void initialize() {\n\t\tselectedDrawingTool = 1;\n\t\tlblDrawingTool = new JLabel[NUM_DRAWING_TOOLS];\n\t\tnetwork = null;\n\t\tvisitorListMap = new HashMap<String, Color>();\n\t\tsetTitle(\"Whiteboard conference room\");\n\t\t\n\t\t// set frame options\n\t\tsetResizable(false);\n\t\tsetBounds(100, 30, 1024, 768);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t// Set background color\n\t\tgetContentPane().setBackground(THEME_BACKGROUND);\n\t\tgetContentPane().setLayout(null);\n\t\t\n\t\t// Set icons\n\t\tImageIcon roomIcon = null;\n\t\tImageIcon roomCreateIcon = null;\n\t\tImageIcon roomJoinIcon = null;\n\t\ttry { roomIcon = new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomIcon.png\"))); } catch (IOException e1) { e1.printStackTrace(); }\n\t\ttry { roomCreateIcon = new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomCreateIcon.png\"))); } catch (IOException e1) { e1.printStackTrace(); }\n\t\ttry { roomJoinIcon = new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomJoinIcon.png\"))); } catch (IOException e1) { e1.printStackTrace(); }\n\t\t\n\t\t// Room\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\ttabbedPane.setBounds(10, 10, 250, 518);\n\t\ttabbedPane.setBackground(THEME_BACKGROUND);\n\t\ttabbedPane.setForeground(THEME_FOREGROUND);\n\t\ttabbedPane.setUI(new customTabbedPaneUI());\n\t\t\n\t\t// Room - tab 1\n\t\tJPanel roomPanel1 = new JPanel();\n\t\troomPanel1.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1.setLayout(null);\n\t\troomPanel1.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\troomPanel1.setBackground(THEME_BACKGROUND);\n\t\ttabbedPane.addTab(\"Room\", roomIcon, roomPanel1, \"\");\n\t\t\n\t\tJPanel roomPanel1SubPanelProfile = new JPanel();\n\t\troomPanel1SubPanelProfile.setLayout(null);\n\t\troomPanel1SubPanelProfile.setBounds(15, 10, 215, 60);\n\t\troomPanel1SubPanelProfile.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredProfileBorder = new TitledBorder(\"Profile\");\n\t\ttitledColoredProfileBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredProfileBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredProfileBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelProfile.setBorder(titledColoredProfileBorder);\n\t\t\n\t\tlblUsername = new JLabel(\"Username: \" + DEFAULT_USERNAME);\n\t\tlblUsername.setBounds(15, 17, 180, 15);\n\t\tlblUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblUsername.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelProfile.add(lblUsername);\n\t\t\n\t\tJLabel lblColorChooser = new JLabel(\"Color:\");\n\t\tlblColorChooser.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblColorChooser.setBounds(15, 36, 120, 15);\n\t\tlblColorChooser.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelProfile.add(lblColorChooser);\n\t\t\n\t\tlblColor = new JLabel(\"\");\n\t\tlblColor.setBounds(53, 36, 15, 15);\n\t\tlblColor.setOpaque(true);\n\t\tlblColor.setBackground(new Color(0,0,0));\n\t\tlblColor.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelProfile.add(lblColor);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelProfile);\n\t\t\n\t\tJPanel roomPanel1SubPanelServerInfo = new JPanel();\n\t\troomPanel1SubPanelServerInfo.setLayout(null);\n\t\troomPanel1SubPanelServerInfo.setBounds(15, 80, 215, 60);\n\t\troomPanel1SubPanelServerInfo.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredServerInfoBorder = new TitledBorder(\"Server info.\");\n\t\ttitledColoredServerInfoBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredServerInfoBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredServerInfoBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelServerInfo.setBorder(titledColoredServerInfoBorder);\n\t\t\n\t\tlblServerInfoIP = new JLabel(\"IP address: Not connected.\");\n\t\tlblServerInfoIP.setBounds(15, 17, 175, 15);\n\t\tlblServerInfoIP.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblServerInfoIP.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelServerInfo.add(lblServerInfoIP);\n\t\t\n\t\tlblServerInfoPort = new JLabel(\"Port: \");\n\t\tlblServerInfoPort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblServerInfoPort.setBounds(15, 36, 170, 15);\n\t\tlblServerInfoPort.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelServerInfo.add(lblServerInfoPort);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelServerInfo);\n\t\t\n\t\tJPanel roomPanel1SubPanelDrawingTools = new JPanel();\n\t\troomPanel1SubPanelDrawingTools.setLayout(null);\n\t\troomPanel1SubPanelDrawingTools.setBounds(15, 150, 215, 190);\n\t\troomPanel1SubPanelDrawingTools.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredDrawingToolsBorder = new TitledBorder(\"Drawing tools\");\n\t\ttitledColoredDrawingToolsBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredDrawingToolsBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredDrawingToolsBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelDrawingTools.setBorder(titledColoredDrawingToolsBorder);\n\t\t\n\t\t// Drawing tool #1\n\t\ttry {\n\t\t\tlblDrawingTool[0] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool1.png\"))));\n\t\t\tlblDrawingTool[0].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[0].setBounds(25, 20, 25, 25);\n\t\t\tlblDrawingTool[0].addMouseListener(new drawingTool1MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[0]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Drawing tool #2\n\t\ttry {\n\t\t\tlblDrawingTool[1] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool2Offset.png\"))));\n\t\t\tlblDrawingTool[1].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[1].setBounds(60, 20, 25, 25);\n\t\t\tlblDrawingTool[1].addMouseListener(new drawingTool2MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[1]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Drawing tool #3\n\t\ttry {\n\t\t\tlblDrawingTool[2] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool3Offset.png\"))));\n\t\t\tlblDrawingTool[2].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[2].setBounds(95, 20, 25, 25);\n\t\t\tlblDrawingTool[2].addMouseListener(new drawingTool3MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[2]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Drawing tool #4\n\t\ttry {\n\t\t\tlblDrawingTool[3] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool4Offset.png\"))));\n\t\t\tlblDrawingTool[3].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[3].setBounds(130, 20, 25, 25);\n\t\t\tlblDrawingTool[3].addMouseListener(new drawingTool4MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[3]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Drawing tool #5\n\t\ttry {\n\t\t\tlblDrawingTool[4] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool5Offset.png\"))));\n\t\t\tlblDrawingTool[4].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[4].setBounds(165, 20, 25, 25);\n\t\t\tlblDrawingTool[4].addMouseListener(new drawingTool5MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[4]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\t\t\n\t\t// Drawing tool #6\n\t\ttry {\n\t\t\tlblDrawingTool[5] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool6Offset.png\"))));\n\t\t\tlblDrawingTool[5].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[5].setBounds(25, 55, 25, 25);\n\t\t\tlblDrawingTool[5].addMouseListener(new drawingTool6MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[5]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[0]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[1]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[2]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[3]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[4]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[5]);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelDrawingTools);\n\t\t\n\t\tJPanel roomPanel1SubPanelColor = new JPanel();\n\t\troomPanel1SubPanelColor.setLayout(null);\n\t\troomPanel1SubPanelColor.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelColor.setBounds(15, 345, 215, 55);\n\t\troomPanel1SubPanelColor.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredColorBorder = new TitledBorder(\"Change color\");\n\t\ttitledColoredColorBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredColorBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredColorBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelColor.setBorder(titledColoredColorBorder);\n\t\t\n\t\tJButton btnChangeColor = new JButton(\"Choose\");\n\t\tbtnChangeColor.addActionListener(new changeColorBtnActionListener());\n\t\tbtnChangeColor.setBounds(16, 21, 180, 20);\n\t\tbtnChangeColor.setBackground(THEME_BACKGROUND);\n\t\tbtnChangeColor.setForeground(THEME_FOREGROUND);\n\t\tbtnChangeColor.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelColor.add(btnChangeColor);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelColor);\n\t\t\n\t\tJPanel roomPanel1SubPanelUsername = new JPanel();\n\t\troomPanel1SubPanelUsername.setLayout(null);\n\t\troomPanel1SubPanelUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelUsername.setBounds(15, 400, 215, 75);\n\t\troomPanel1SubPanelUsername.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredUsernameBorder = new TitledBorder(\"Change username\");\n\t\ttitledColoredUsernameBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredUsernameBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredUsernameBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelUsername.setBorder(titledColoredUsernameBorder);\n\n\t\tJLabel lblNewUsername = new JLabel(\"New username:\");\n\t\tlblNewUsername.setBounds(15, 26, 100, 15);\n\t\tlblNewUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblNewUsername.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelUsername.add(lblNewUsername);\n\t\t\n\t\ttfNewUsername = new JTextField();\n\t\ttfNewUsername.setBounds(110, 23, 86, 20);\n\t\ttfNewUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttfNewUsername.setBackground(THEME_BACKGROUND);\n\t\ttfNewUsername.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelUsername.add(tfNewUsername);\n\t\t\n\t\tJButton btnChangeUsername = new JButton(\"Confirm\");\n\t\tbtnChangeUsername.addActionListener(new changeUsernameBtnActionListener());\n\t\tbtnChangeUsername.setBounds(15, 47, 180, 20);\n\t\tbtnChangeUsername.setBackground(THEME_BACKGROUND);\n\t\tbtnChangeUsername.setForeground(THEME_FOREGROUND);\n\t\tbtnChangeUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelUsername.add(btnChangeUsername);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelUsername);\n\t\t\n\t\t// Room - tab 2\n\t\tJPanel roomPanel2 = new JPanel();\n\t\troomPanel2.setLayout(null);\n\t\troomPanel2.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel2.setBackground(THEME_BACKGROUND);\n\t\tJPanel roomPanel2SubPanelCreateServer = new JPanel();\n\t\troomPanel2SubPanelCreateServer.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel2SubPanelCreateServer.setLayout(null);\n\t\troomPanel2SubPanelCreateServer.setBounds(15, 10, 215, 90);\n\t\troomPanel2SubPanelCreateServer.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredCreateServerBorder = new TitledBorder(\"Host server\");\n\t\ttitledColoredCreateServerBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredCreateServerBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredCreateServerBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel2SubPanelCreateServer.setBorder(titledColoredCreateServerBorder);\n\t\t\n\t\tJLabel lblCreateIP = new JLabel(\"Server ip: \" + getWANIP());\n\t\tlblCreateIP.setBounds(15, 17, 170, 12);\n\t\tlblCreateIP.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblCreateIP.setForeground(THEME_FOREGROUND);\n\t\troomPanel2SubPanelCreateServer.add(lblCreateIP);\n\t\t\n\t\tJLabel lblCreatePort = new JLabel(\"Port number:\");\n\t\tlblCreatePort.setBounds(15, 36, 120, 15);\n\t\tlblCreatePort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblCreatePort.setForeground(THEME_FOREGROUND);\n\t\troomPanel2SubPanelCreateServer.add(lblCreatePort);\n\t\t\n\t\ttfCreatePort = new JTextField();\n\t\ttfCreatePort.setToolTipText(\"Port number for server hosting\");\n\t\ttfCreatePort.setBounds(93, 35, 86, 20);\n\t\ttfCreatePort.setBackground(THEME_BACKGROUND);\n\t\ttfCreatePort.setForeground(THEME_FOREGROUND);\n\t\ttfCreatePort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel2SubPanelCreateServer.add(tfCreatePort);\n\t\t\n\t\tJButton btnCreate = new JButton(\"Create\");\n\t\tbtnCreate.addActionListener(new createBtnActionListener(this));\n\t\tbtnCreate.setBounds(16, 60, 180, 20);\n\t\tbtnCreate.setBackground(THEME_BACKGROUND);\n\t\tbtnCreate.setForeground(THEME_FOREGROUND);\n\t\tbtnCreate.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel2SubPanelCreateServer.add(btnCreate);\n\t\t\n\t\troomPanel2.add(roomPanel2SubPanelCreateServer);\n\t\ttabbedPane.addTab(\"Create\", roomCreateIcon, roomPanel2, \"\");\n\t\t\n\t\t// Room - tab 3\n\t\tJPanel roomPanel3 = new JPanel();\n\t\troomPanel3.setLayout(null);\n\t\troomPanel3.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel3.setBackground(THEME_BACKGROUND);\n\t\tJPanel roomPanel3SubPanelJoinServer = new JPanel();\n\t\troomPanel3SubPanelJoinServer.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel3SubPanelJoinServer.setLayout(null);\n\t\troomPanel3SubPanelJoinServer.setBounds(15, 10, 215, 100);\n\t\troomPanel3SubPanelJoinServer.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredJoinServerBorder = new TitledBorder(\"Join server\");\n\t\ttitledColoredJoinServerBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredJoinServerBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredJoinServerBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.setBorder(titledColoredJoinServerBorder);\n\t\t\n\t\tJLabel lblJoinIP = new JLabel(\"Server ip:\");\n\t\tlblJoinIP.setBounds(15, 19, 150, 15);\n\t\tlblJoinIP.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblJoinIP.setForeground(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.add(lblJoinIP);\n\t\t\n\t\ttfJoinIP = new JTextField();\n\t\ttfJoinIP.setToolTipText(\"Server IP of host\");\n\t\ttfJoinIP.setBounds(93, 15, 86, 20);\n\t\ttfJoinIP.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttfJoinIP.setBackground(THEME_BACKGROUND);\n\t\ttfJoinIP.setForeground(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.add(tfJoinIP);\n\t\t\n\t\tJLabel lblJoinPort = new JLabel(\"Port number:\");\n\t\tlblJoinPort.setBounds(15, 43, 120, 15);\n\t\tlblJoinPort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblJoinPort.setForeground(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.add(lblJoinPort);\n\t\t\n\t\ttfJoinPort = new JTextField();\n\t\ttfJoinPort.setToolTipText(\"Port number for server hosting\");\n\t\ttfJoinPort.setBounds(93, 40, 86, 20);\n\t\ttfJoinPort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttfJoinPort.setBackground(THEME_BACKGROUND);\n\t\ttfJoinPort.setForeground(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.add(tfJoinPort);\n\t\t\n\t\tJButton btnJoin = new JButton(\"Join\");\n\t\tbtnJoin.addActionListener(new joinBtnActionListener(this));\n\t\tbtnJoin.setBounds(16, 67, 180, 20);\n\t\tbtnJoin.setBackground(THEME_BACKGROUND);\n\t\tbtnJoin.setForeground(THEME_FOREGROUND);\n\t\tbtnJoin.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel3SubPanelJoinServer.add(btnJoin);\n\t\t\n\t\troomPanel3.add(roomPanel3SubPanelJoinServer);\n\t\ttabbedPane.addTab(\"Join\", roomJoinIcon, roomPanel3, \"\");\n\t\t\n\t\tgetContentPane().add(tabbedPane);\n\t\t\n\t\t// Visitor list\n\t\tvisitorListModel = new DefaultListModel<String>();\n\t\t\n\t\tvisitorList = new JList<String>(visitorListModel);\n\t\tvisitorList.setCellRenderer(new NameRenderer());\n\t\tvisitorList.setBounds(20, 20, 200, 144);\n\t\tvisitorList.setBackground(THEME_BACKGROUND);\n\t\tJScrollPane visitorListScrollPane = new JScrollPane();\n\t\tvisitorListScrollPane.setViewportView(visitorList);\n\t\tvisitorListScrollPane.setBorder(null);\n\t\tvisitorListScrollPane.setBounds(20, 20, 210, 160);\n\t\t\n\t\tJPanel panelVisitorList = new JPanel();\n\t\tpanelVisitorList.setOpaque(false);\n\t\tpanelVisitorList.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tpanelVisitorList.setLayout(null);\n\t\tpanelVisitorList.setBounds(10, 534, 250, 194);\n\t\tTitledBorder titledColoredVisitorListBorder = new TitledBorder(\"Visitor list\");\n\t\ttitledColoredVisitorListBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredVisitorListBorder.setTitleColor(THEME_FOREGROUND);\n\t\ttitledColoredVisitorListBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tpanelVisitorList.setBorder(titledColoredVisitorListBorder);\n\t\t\n\t\tpanelVisitorList.add(visitorListScrollPane);\n\t\t\n\t\tgetContentPane().add(panelVisitorList);\n\t\t\n\t\t// Whiteboard\n\t\twhiteboardBi = new BufferedImage(720, 715, BufferedImage.TYPE_INT_RGB);\n\t\twhiteboardPanel = new WhiteBoardPanel(whiteboardBi);\n\t\twhiteboardPanel.setLayout(null);\n\t\twhiteboardPanel.setBounds(280, 13, 720, 715);\n\t\twhiteboardPanel.setBackground(THEME_BACKGROUND);\n\t\t\n\t\t// Leave button\n\t\ttry {\n\t\t\tlblLeave = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomLeaveIcon2.png\"))));\n\t\t\tlblLeave.setBackground(new Color(100,50,150,200));\n\t\t\tlblLeave.setBounds(696, 0, 24, 24);\n\t\t\tlblLeave.setVisible(true);\n\t\t\tlblLeave.addMouseListener(new leaveIconMouseListener());\n\t\t\twhiteboardPanel.add(lblLeave);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Trash button\n\t\ttry {\n\t\t\tlblTrash = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomTrashIconOffset.png\"))));\n\t\t\tlblTrash.setBackground(new Color(100,50,150,200));\n\t\t\tlblTrash.setBounds(0, 0, 24, 24);\n\t\t\tlblTrash.setVisible(true);\n\t\t\tlblTrash.addMouseListener(new trashIconMouseListener());\n\t\t\twhiteboardPanel.add(lblTrash);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\tgetContentPane().add(whiteboardPanel);\n\t\t\n\t}",
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }",
"public Dashboard() {\n initComponents();\n userProfile();\n knowAppointment();\n// home h1=new home();\n// h1.userProfile();\n//// userProfile u1=new userProfile();\n// jLabel2.setIcon(h1.jLabel28.getIcon());\n// jLabel3.setText(h1.jLabel25.getText());\n \n }",
"private void initialize() {\n\t\twindow = new JFrame();\n\t\twindow.setBounds(100, 100, 650, 300);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel chooseMemberLabel = new JLabel(\"Which crew member would you like to view the status of?\");\n\t\tchooseMemberLabel.setBounds(10, 11, 414, 14);\n\t\twindow.getContentPane().add(chooseMemberLabel);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setVerticalAlignment(SwingConstants.TOP);\n\t\tstatusLabel.setBounds(342, 36, 282, 184);\n\t\twindow.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton member1Button = new JButton(environment.getCurrentCrew().getCrew().get(0).getName());\n\t\tmember1Button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(0).status().replaceAll(\"<\",\"<\").replaceAll(\">\", \">\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t}\n\t\t});\n\t\tmember1Button.setBounds(10, 33, 150, 23);\n\t\twindow.getContentPane().add(member1Button);\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 1) {\n\t\t\tJButton member2Button = new JButton(environment.getCurrentCrew().getCrew().get(1).getName());\n\t\t\tmember2Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(1).status().replaceAll(\"<\",\"<\").replaceAll(\">\", \">\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember2Button.setBounds(10, 67, 150, 23);\n\t\t\twindow.getContentPane().add(member2Button);\n\t\t}\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 2) {\n\t\t\tJButton member3Button = new JButton(environment.getCurrentCrew().getCrew().get(2).getName());\n\t\t\tmember3Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(2).status().replaceAll(\"<\",\"<\").replaceAll(\">\", \">\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember3Button.setBounds(10, 101, 150, 23);\n\t\t\twindow.getContentPane().add(member3Button);\n\t\t}\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 3) {\n\t\t\tJButton member4Button = new JButton(environment.getCurrentCrew().getCrew().get(3).getName());\n\t\t\tmember4Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(3).status().replaceAll(\"<\",\"<\").replaceAll(\">\", \">\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember4Button.setBounds(10, 135, 150, 23);\n\t\t\twindow.getContentPane().add(member4Button);\n\t\t}\n\t\t\n\t\tJButton finishedButton = new JButton(\"Done\");\n\t\tfinishedButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfinishedWindow();\n\t\t\t}\n\t\t});\n\t\tfinishedButton.setBounds(535, 227, 89, 23);\n\t\twindow.getContentPane().add(finishedButton);\n\t}",
"private void addControls() {\n\t\tarrow_up = new FlxSprite(FlxG.width/2-20,340);\r\n\t\tarrow_up.loadGraphic(R.drawable.arrow_up, false);\r\n\t\tarrow_up.setAlpha((float)0.7);\r\n\t\tthis.add(arrow_up);\r\n\t\t\r\n\t\tarrow_down = new FlxSprite(FlxG.width/2-20,400);\r\n\t\tarrow_down.loadGraphic(R.drawable.arrow_down, false);\r\n\t\tarrow_down.setAlpha((float)0.7);\r\n\t\tthis.add(arrow_down);\r\n\t\t\r\n\t\tarrow_right = new FlxSprite(FlxG.width/2+30,370);\r\n\t\tarrow_right.loadGraphic(R.drawable.arrow_right, false);\r\n\t\tarrow_right.setAlpha((float)0.7);\r\n\t\tthis.add(arrow_right);\r\n\t\t\r\n\t\tarrow_left = new FlxSprite(FlxG.width/2-70,370);\r\n\t\tarrow_left.loadGraphic(R.drawable.arrow_left, false);\r\n\t\tarrow_left.setAlpha((float)0.7);\r\n\t\tthis.add(arrow_left);\r\n\t}",
"public Test1UI() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setLayout(new BorderLayout());\n\t\tsetDefaultValues();\n\t\taddActionListeners();\n\n\t\tthis.add(pnlWest, BorderLayout.WEST);\n\t\tthis.add(pnlEast, BorderLayout.EAST);\n\t\tthis.add(pnlCenter, BorderLayout.CENTER);\n\t\tthis.add(pnlSouth, BorderLayout.SOUTH);\n\n\t\tfor (int row = 0; row < 7; row++) {\n\t\t\tpnlWest.add(tfWest[row]);\n\t\t\tpnlSouth.add(tfSouth[row]);\n\t\t\tfor (int col = 0; col < 7; col++) {\n\t\t\t\tpnlCenter.add(lblCenter[row][col]);\n\t\t\t}\n\t\t}\n\t\tpnlEast.add(pnlEastTop, BorderLayout.NORTH);\n\t\tpnlEast.add(pnlEastBottom, BorderLayout.SOUTH);\n\n\t\tpnlEastTop.add(pnlEastTopText);\n\t\tpnlEastTop.add(btnReadRow);\n\t\tpnlEastTop.add(btnPrintRow);\n\t\tpnlEastTopText.add(lblRow);\n\t\tpnlEastTopText.add(tfRow);\n\n\t\tpnlEastBottom.add(pnlEastBottomText);\n\t\tpnlEastBottom.add(btnReadCol);\n\t\tpnlEastBottom.add(btnPrintCol);\n\t\tpnlEastBottomText.add(lblCol);\n\t\tpnlEastBottomText.add(tfCol);\n\n\t\tpack();\n\t\tsetVisible(true);\n\t}",
"private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}",
"private void makeGUI() {\r\n\t\tInstrument[] instruments = getAvailableInstruments();\r\n\r\n\t\tJPanel channels = new JPanel();\r\n\t\tchannels.setLayout(new BoxLayout(channels, BoxLayout.Y_AXIS));\r\n\r\n\t\tcomboBoxes = new JComboBox[16];\r\n\t\tfor (int chan = 0; chan < 16; chan++) {\r\n\t\t\tJPanel channelPanel = new JPanel();\r\n\t\t\tchannelPanel\r\n\t\t\t\t\t.setLayout(new BoxLayout(channelPanel, BoxLayout.X_AXIS));\r\n\t\t\tJLabel label = new JLabel(\"Channel \" + chan);\r\n\t\t\tlabel.setPreferredSize(LABEL_DIMENSION);\r\n\t\t\tchannelPanel.add(label);\r\n\t\t\tJComboBox cb = new JComboBox(instruments);\r\n\t\t\tcb.setMaximumRowCount(25);\r\n\t\t\tint program = pianoRollPanel.getProgram(chan);\r\n\t\t\tcb.setSelectedIndex(program);\r\n\t\t\tchannelPanel.add(cb);\r\n\t\t\tcomboBoxes[chan] = cb;\r\n\t\t\tchannels.add(channelPanel);\r\n\t\t}\r\n\t\tadd(channels, BorderLayout.CENTER);\r\n\t\tJPanel buttonPanel = new JPanel();\r\n\t\tJButton okButton = new JButton(OK);\r\n\t\tokButton.setActionCommand(OK);\r\n\t\tokButton.setMnemonic('O');\r\n\t\tokButton.addActionListener(this);\r\n\t\tJButton cancelButton = new JButton(CANCEL);\r\n\t\tcancelButton.setActionCommand(CANCEL);\r\n\t\tcancelButton.setMnemonic('C');\r\n\t\tcancelButton.addActionListener(this);\r\n\t\tbuttonPanel.add(okButton);\r\n\t\tbuttonPanel.add(cancelButton);\r\n\t\tadd(buttonPanel, BorderLayout.SOUTH);\r\n\t}",
"private void createContents() {\n shell = new Shell(getParent(), getStyle());\n shell.setSize(540, 297);\n shell.setLayout(new GridLayout(1, false));\n\n Composite cmpTop = new Composite(shell, SWT.NONE);\n cmpTop.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n GridLayout gl_cmpTop = new GridLayout(4, false);\n gl_cmpTop.verticalSpacing = 0;\n cmpTop.setLayout(gl_cmpTop);\n\n Label lblBankAccountNumber = new Label(cmpTop, SWT.CENTER);\n lblBankAccountNumber.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBankAccountNumber.setBounds(0, 0, 59, 14);\n lblBankAccountNumber.setText(\"Bank Account\");\n Label lblBranch = new Label(cmpTop, SWT.CENTER);\n lblBranch.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBranch.setBounds(0, 0, 59, 14);\n lblBranch.setText(\"Branch\");\n\n Label lblBank = new Label(cmpTop, SWT.CENTER);\n lblBank.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBank.setText(\"Bank\");\n new Label(cmpTop, SWT.NONE);\n\n txtBankAccountNumber = new Text(cmpTop, SWT.BORDER);\n txtBankAccountNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n txtBankAccountNumber.setBounds(0, 0, 64, 19);\n\n txtBranch = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBranch = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBranch.widthHint = 50;\n txtBranch.setLayoutData(gd_txtBranch);\n txtBranch.setBounds(0, 0, 64, 19);\n\n txtBank = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBank = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBank.widthHint = 50;\n txtBank.setLayoutData(gd_txtBank);\n btnSearch = new Button(cmpTop, SWT.NONE);\n btnSearch.setAlignment(SWT.RIGHT);\n btnSearch.setText(\"Search\");\n btnSearch.setEnabled(false);\n\n Composite cmpResults = new Composite(shell, SWT.NONE);\n cmpResults.setLayout(new GridLayout(1, false));\n GridData gd_cmpResults = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_cmpResults.heightHint = 129;\n cmpResults.setLayoutData(gd_cmpResults);\n\n tblAccounts = new Table(cmpResults, SWT.BORDER);\n GridData gd_tblAccounts = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_tblAccounts.heightHint = 71;\n tblAccounts.setLayoutData(gd_tblAccounts);\n tblAccounts.setHeaderVisible(true);\n tblAccounts.setLinesVisible(true);\n\n TableColumn tblclmnAccountNumber = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnAccountNumber.setWidth(120);\n tblclmnAccountNumber.setText(\"Player Account\");\n\n TableColumn tblclmsFirstName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmsFirstName.setWidth(100);\n tblclmsFirstName.setText(\"First Name\");\n\n TableColumn tblclmnLastName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnLastName.setWidth(100);\n tblclmnLastName.setText(\"Last Name\");\n\n TableColumn tblclmnActivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnActivated.setWidth(95);\n tblclmnActivated.setText(\"From\");\n\n TableColumn tblclmnDeactivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnDeactivated.setWidth(100);\n tblclmnDeactivated.setText(\"To\");\n\n Composite cmpFooter = new Composite(shell, SWT.NONE);\n cmpFooter.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n cmpFooter.setLayout(new GridLayout(2, false));\n\n lblResultsMessage = new Label(cmpFooter, SWT.NONE);\n lblResultsMessage.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\n Composite cmpButtons = new Composite(cmpFooter, SWT.NONE);\n cmpButtons.setLayout(new GridLayout(3, false));\n cmpButtons.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1));\n\n btnLoad = new Button(cmpButtons, SWT.NONE);\n btnLoad.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnLoad.setText(\"Load Account\");\n btnLoad.setEnabled(false);\n\n btnCancel = new Button(cmpButtons, SWT.NONE);\n btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnCancel.setText(\"Cancel\");\n new Label(cmpButtons, SWT.NONE);\n }",
"private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}",
"protected JComponent makeTeacherProfilePanel() {\n\t\t\n\t\t//Initiate profilePanel\n\t\tJPanel profilePanel = new JPanel();\n\t\tprofilePanel.setLayout(new BorderLayout());\n\t\tprofilePanel.setSize(teacherPortalWidth, teacherPortalHeight);\n\t\tprofilePanel.setBorder(compound);\n\t\t\n\t\t//Generate profilePanel's left component\n\t\tTitledBorder leftPanelTitle, usernameTitle, firstNameTitle, lastNameTitle, schoolNameTitle, sQ1Title, sQ2Title;\n\t\tleftPanelTitle = BorderFactory.createTitledBorder(\"Profile Information\");\n\t\tusernameTitle = BorderFactory.createTitledBorder(\"Username\");\n\t\tfirstNameTitle = BorderFactory.createTitledBorder(\"First\");\n\t\tlastNameTitle = BorderFactory.createTitledBorder(\"Last\");\n\t\tschoolNameTitle = BorderFactory.createTitledBorder(\"School\");\n\t\tsQ1Title = BorderFactory.createTitledBorder(\"Security Question 1\");\n\t\tsQ2Title = BorderFactory.createTitledBorder(\"Security Question 2\");\n\t\n\t\t//LeftPanel JPanel \n\t\tJPanel leftPanel = new JPanel();\n\t\tleftPanel.setLayout(new GridLayout(6,1,1,1));\n\t\tleftPanel.setBorder(leftPanelTitle);\n\t\t\n\t\t//Username JLabel\n\t\tJLabel usernameL = new JLabel(tUsernameTF.getText());\n\t\tusernameL.setBorder(usernameTitle);\n\t\tusernameL.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(usernameL);\n\t\t\n\t\t//FirstName JLabel\n\t\tJLabel firstNameL = new JLabel(tFirstNameTF.getText());\n\t\tfirstNameL.setBorder(firstNameTitle);\n\t\tfirstNameL.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(firstNameL);\n\t\t\n\t\t//LastName JLabel\n\t\tJLabel lastNameL = new JLabel(tLastNameTF.getText());\n\t\tlastNameL.setBorder(lastNameTitle);\n\t\tlastNameL.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(lastNameL);\n\t\t\n\t\t//SchoolName JLabel\n\t\tJLabel schoolNameL = new JLabel(tSchoolNameTF.getText());\n\t\tschoolNameL.setBorder(schoolNameTitle);\n\t\tschoolNameL.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(schoolNameL);\n\n\t\t//Security Question 1 JLabel\n\t\tJLabel sQ1L = new JLabel((String)tSecurityList1.getSelectedItem());\n\t\tsQ1L.setBorder(sQ1Title);\n\t\tsQ1L.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(sQ1L);\n\t\t\n\t\t//Security Question 2 JLabel\n\t\tJLabel sQ2L = new JLabel((String)tSecurityList2.getSelectedItem());\n\t\tsQ2L.setBorder(sQ2Title);\n\t\tsQ2L.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(sQ2L);\n\t\t\n\t\t//----------------------------------------------------------------------------\n\t\t\n\t\t//Generate profilePanel's right component \n\t\tTitledBorder topTitle, middleTitle, bottomTitle, controlsTitle;\n\t\ttopTitle = BorderFactory.createTitledBorder(\"Profile\");\n\t\tmiddleTitle = BorderFactory.createTitledBorder(\"Class\");\n\t\tbottomTitle = BorderFactory.createTitledBorder(\"Study\");\n\t\tcontrolsTitle = BorderFactory.createTitledBorder(\"Controls\");\n\t\t\n\t\t//Main rightPanel\n\t\tJPanel rightPanel = new JPanel();\n\t\trightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\t\n\t\t//TopRightPanel\n\t\tJPanel topRightPanel = new JPanel();\n\t\ttopRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\ttopRightPanel.setBorder(topTitle);\n\t\t\n\t\t//EditProfile JButton\n\t\tJButton editProfileB = new JButton(\"Edit Profile\");\n\t\teditProfileB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tupdateTeacherProfile();\n\t }\n\t \t});\n\t\ttopRightPanel.add(editProfileB);\n\t\t\n\t\t//EditSecurity JButton\n\t\tJButton editSecurityB = new JButton(\"Edit Security\");\n\t\teditSecurityB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tupdateTeacherSecurity();\n\t }\n\t \t});\n\t\ttopRightPanel.add(editSecurityB);\n\t\t\n\t\t//Logout JButton\n\t\tJButton logoutB = new JButton(\"Logout\");\n\t\tlogoutB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\ttPortalWindow.dispose();\n\t \t\tloginScreen();\n\t }\n\t \t});\n\t\ttopRightPanel.add(logoutB);\n\t\t\n\t\t//MiddleRightPanel\n\t\tJPanel middleRightPanel = new JPanel();\n\t\tmiddleRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\tmiddleRightPanel.setBorder(middleTitle);\n\t\t\n\t\t//NewClass JButton\n\t\tJButton newClassB = new JButton(\"New Class\");\n\t\tnewClassB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\taddClassTeacher();\n\t }\n\t \t});\n\t\tmiddleRightPanel.add(newClassB);\n\t\t\n\t\t//EditClass JButton\n\t\tJButton editClassB = new JButton(\"Edit Class\");\n\t\teditClassB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tdeleteClassTeacher();\n\t }\n\t \t});\n\t\tmiddleRightPanel.add(editClassB);\n\t\t\n\t\t//BottomRightPanel\n\t\tJPanel bottomRightPanel = new JPanel();\n\t\tbottomRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\tbottomRightPanel.setBorder(bottomTitle);\n\t\t\n\t\t//NewStudy JButton\n\t\tJButton newStudyB = new JButton(\"New Study\");\n\t\tnewStudyB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tcreateStudyName();\n\t\t\t\tnewFlashCard = new FlashCard(subjectNameTF.getText());\n\t }\n\t \t});\n\t\tbottomRightPanel.add(newStudyB);\n\t\t\n\t\t//EditStudy JButton\n\t\tJButton editStudyB = new JButton(\"Edit Study\");\n\t\teditStudyB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tdeleteStudyMaterial();\n\t }\n\t \t});\n\t\tbottomRightPanel.add(editStudyB);\n\t\t\n\t\t//Add JPanel's to main JPanel\n\t\trightPanel.setBorder(controlsTitle);\n\t\trightPanel.add(topRightPanel);\n\t\trightPanel.add(middleRightPanel);\n\t\trightPanel.add(bottomRightPanel);\n\t\t\n\t\t//ProfileSplit JSplitPane\n\t\tJSplitPane profileSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n leftPanel, rightPanel);\n\t\tprofileSplit.setResizeWeight(0.75);\n\t\tprofileSplit.setDividerLocation(0.75);\n\t\t\n\t\tprofilePanel.add(profileSplit);\n\t\treturn profilePanel;\n\t}",
"private void initPanelButtons() {\r\n\t\tthis.panelButtons = new JPanel(new GridBagLayout());\r\n\t\tthis.panelButtons.setBorder(BorderFactory.createEmptyBorder(10, 5, 0, 5));\r\n\t\tthis.panelButtons.setOpaque(false);\r\n\t\tGridBagConstraints gbc = new GridBagConstraints();\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tgbc.gridwidth = 1;\r\n\t\tgbc.gridheight = 1;\r\n\t\tgbc.weightx = 1;\r\n\t\tgbc.weighty = 1;\r\n\t\tthis.returnButton.setBackground(ConstantView.COLOR_BUTTON_LOGIN);\r\n\t\tthis.returnButton.setForeground(Color.WHITE);\r\n\t\tthis.returnButton.setFocusable(false);\r\n\t\tthis.returnButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tthis.returnButton.setFont(ConstantView.FONT_PRINCIPAL_LABELS);\r\n\t\tthis.panelButtons.add(returnButton, gbc);\r\n\r\n\t\tgbc.gridx = 7;\r\n\t\tthis.okButton.setBackground(ConstantView.COLOR_BUTTON_LOGIN);\r\n\t\tthis.okButton.setForeground(Color.WHITE);\r\n\t\tthis.okButton.setFocusable(false);\r\n\t\tthis.okButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tthis.okButton.setFont(ConstantView.FONT_PRINCIPAL_LABELS);\r\n\t\tthis.okButton.addActionListener(ControlClient.getInstance());\r\n\t\tthis.okButton.setActionCommand(ClientCommands.OK_SIGN_IN.toString());\r\n\t\tthis.panelButtons.add(okButton, gbc);\r\n\t}",
"private void createDisplayEditOverlay() {\n\t}",
"private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd);\n\n // Create a group to contain the RGB and HSB radio buttons.\n Group colorGroup = new Group(comp1, SWT.NONE);\n colorGroup.setText(\" Use color model: \");\n\n RowLayout groupRowLayout = new RowLayout();\n groupRowLayout.marginLeft = 10;\n groupRowLayout.marginRight = 10;\n groupRowLayout.spacing = 10;\n colorGroup.setLayout(groupRowLayout);\n\n // Create the RGB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the RGB\n // sliders.\n rgbRdo = new Button(colorGroup, SWT.RADIO);\n rgbRdo.setText(\"RGB\");\n rgbRdo.setSelection(true);\n rgbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n\n // Create the HSB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the HSB\n // sliders.\n hsbRdo = new Button(colorGroup, SWT.RADIO);\n hsbRdo.setText(\"HSB\");\n hsbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n \n Composite catComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 20;\n catComp.setLayout(gl);\n gd = new GridData(GridData.CENTER);\n gd.horizontalAlignment = SWT.CENTER;\n \n catComp.setLayoutData(gd);\n\n Label selCatLbl = new Label( catComp, SWT.None );\n selCatLbl.setText(\"Category\");\n \n final Combo selCmapCatCombo = new Combo( catComp, SWT.DROP_DOWN | SWT.READ_ONLY );\n selCmapCatCombo.setItems( availColorMapCats );\n selCmapCatCombo.select(0);\n \n selCmapCatCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCat = selCmapCatCombo.getText();\n \t\tif( seldCat.equals( seldCmapCat ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapCat = seldCat;\n \t\tseldCmapName = null;\n \t\tavailColorMaps.clear();\n \t\t\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n \t\n createSliderData();\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n Composite cmapComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 10;\n cmapComp.setLayout(gl);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n cmapComp.setLayoutData(gd);\n\n Label selCmapLbl = new Label( cmapComp, SWT.None );\n selCmapLbl.setText(\"Colormap\");\n \n selCmapCombo = new Combo( cmapComp, SWT.DROP_DOWN );\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n \n selCmapCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCmap = selCmapCombo.getText();\n \t\tif( seldCmap.equals( seldCmapName ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapName = seldCmap;\n\n \t\tif( initColorMap() ) {\n createSliderData();\n \t\t}\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n// selCmapCombo.addModifyListener( new ModifyListener() {\n//\t\t\t@Override\n//\t\t\tpublic void modifyText(ModifyEvent e) { \n//\t\t\t\tseldCmapName = selCmapCombo.getText();\n//\t\t\t}\n// });\n }",
"private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }",
"protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagButton = new JButton();\n Font memberImportTagButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagButton.getFont());\n if (memberImportTagButtonFont != null) memberImportTagButton.setFont(memberImportTagButtonFont);\n memberImportTagButton.setText(\"导入选择的标签分组-取并集\");\n panel2.add(memberImportTagButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagRetainButton = new JButton();\n Font memberImportTagRetainButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagRetainButton.getFont());\n if (memberImportTagRetainButtonFont != null)\n memberImportTagRetainButton.setFont(memberImportTagRetainButtonFont);\n memberImportTagRetainButton.setText(\"导入选择的标签分组-取交集\");\n panel2.add(memberImportTagRetainButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportAllButton = new JButton();\n Font memberImportAllButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportAllButton.getFont());\n if (memberImportAllButtonFont != null) memberImportAllButton.setFont(memberImportAllButtonFont);\n memberImportAllButton.setText(\"导入所有关注公众号的用户\");\n panel2.add(memberImportAllButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionPanel = new JPanel();\n importOptionPanel.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(importOptionPanel, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionOpenIdCheckBox = new JCheckBox();\n importOptionOpenIdCheckBox.setEnabled(false);\n importOptionOpenIdCheckBox.setSelected(true);\n importOptionOpenIdCheckBox.setText(\"openId\");\n importOptionPanel.add(importOptionOpenIdCheckBox, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n importOptionPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n importOptionBasicInfoCheckBox = new JCheckBox();\n importOptionBasicInfoCheckBox.setText(\"昵称、性别等基本信息\");\n importOptionBasicInfoCheckBox.setToolTipText(\"每获取一条信息会花费一次每日接口调用量\");\n importOptionPanel.add(importOptionBasicInfoCheckBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n importOptionAvatarCheckBox = new JCheckBox();\n importOptionAvatarCheckBox.setText(\"头像\");\n importOptionAvatarCheckBox.setToolTipText(\"勾选会导致左侧列表甚至WePush变卡哦\");\n importOptionPanel.add(importOptionAvatarCheckBox, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearDbCacheButton = new JButton();\n clearDbCacheButton.setText(\"清空本地缓存\");\n importOptionPanel.add(clearDbCacheButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n memberImportTagComboBox.setModel(defaultComboBoxModel1);\n panel3.add(memberImportTagComboBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagFreshButton = new JButton();\n Font memberImportTagFreshButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagFreshButton.getFont());\n if (memberImportTagFreshButtonFont != null) memberImportTagFreshButton.setFont(memberImportTagFreshButtonFont);\n memberImportTagFreshButton.setText(\"刷新\");\n panel3.add(memberImportTagFreshButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"标签分组\");\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n btnListaProfesores = new javax.swing.JButton();\n btnMaterias = new javax.swing.JButton();\n btnCursados = new javax.swing.JButton();\n btnInscripciones = new javax.swing.JButton();\n btnListaAlumnos = new javax.swing.JButton();\n btnListaCarreras = new javax.swing.JButton();\n selectProf = new javax.swing.JLabel();\n selectInsc = new javax.swing.JLabel();\n selectAlumnos = new javax.swing.JLabel();\n selectMat = new javax.swing.JLabel();\n selectCarrera = new javax.swing.JLabel();\n selectCursado = new javax.swing.JLabel();\n mainPanel = new javax.swing.JPanel();\n lblMainTitle = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(51, 153, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/dashboard.png\"))); // NOI18N\n jLabel1.setText(\"SGA2020-Prog2\");\n\n btnListaProfesores.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnListaProfesores.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/profesores.png\"))); // NOI18N\n btnListaProfesores.setText(\"Lista Profesores\");\n btnListaProfesores.setBorderPainted(false);\n btnListaProfesores.setContentAreaFilled(false);\n btnListaProfesores.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/profesoresHover.png\"))); // NOI18N\n btnListaProfesores.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnListaProfesoresActionPerformed(evt);\n }\n });\n\n btnMaterias.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnMaterias.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/materias.png\"))); // NOI18N\n btnMaterias.setText(\"Lista Materias\");\n btnMaterias.setBorder(null);\n btnMaterias.setBorderPainted(false);\n btnMaterias.setContentAreaFilled(false);\n btnMaterias.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/materiaHover.png\"))); // NOI18N\n\n btnCursados.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnCursados.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/cursos.png\"))); // NOI18N\n btnCursados.setText(\"Lista Cursados\");\n btnCursados.setBorderPainted(false);\n btnCursados.setContentAreaFilled(false);\n btnCursados.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/cursosHover.png\"))); // NOI18N\n btnCursados.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCursadosActionPerformed(evt);\n }\n });\n\n btnInscripciones.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnInscripciones.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/inscripciones.png\"))); // NOI18N\n btnInscripciones.setText(\"Inscripciones\");\n btnInscripciones.setBorderPainted(false);\n btnInscripciones.setContentAreaFilled(false);\n btnInscripciones.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/inscripcionesHover.png\"))); // NOI18N\n\n btnListaAlumnos.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnListaAlumnos.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/alumnos.png\"))); // NOI18N\n btnListaAlumnos.setText(\"Lista Alumnos\");\n btnListaAlumnos.setBorder(null);\n btnListaAlumnos.setBorderPainted(false);\n btnListaAlumnos.setContentAreaFilled(false);\n btnListaAlumnos.setDefaultCapable(false);\n btnListaAlumnos.setRequestFocusEnabled(false);\n btnListaAlumnos.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/alumnosHover.png\"))); // NOI18N\n\n btnListaCarreras.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnListaCarreras.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/carreras.png\"))); // NOI18N\n btnListaCarreras.setText(\"Lista Carreras\");\n btnListaCarreras.setBorderPainted(false);\n btnListaCarreras.setContentAreaFilled(false);\n btnListaCarreras.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/carrerasHover.png\"))); // NOI18N\n\n selectProf.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectInsc.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectAlumnos.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectMat.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectCarrera.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectCursado.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnListaProfesores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnListaCarreras, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnInscripciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCursados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnListaAlumnos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnMaterias, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(selectProf, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectAlumnos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectCarrera, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectInsc, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectMat, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectCursado, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(40, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnListaAlumnos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(selectAlumnos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 77, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnListaProfesores, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)\n .addComponent(selectProf, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(btnMaterias, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnCursados, javax.swing.GroupLayout.PREFERRED_SIZE, 72, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnInscripciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(selectMat, javax.swing.GroupLayout.PREFERRED_SIZE, 72, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selectCursado, javax.swing.GroupLayout.PREFERRED_SIZE, 72, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selectInsc, javax.swing.GroupLayout.PREFERRED_SIZE, 73, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnListaCarreras, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)\n .addComponent(selectCarrera, javax.swing.GroupLayout.PREFERRED_SIZE, 77, Short.MAX_VALUE))\n .addGap(40, 40, 40))\n );\n\n mainPanel.setBackground(new java.awt.Color(102, 204, 255));\n mainPanel.setPreferredSize(new java.awt.Dimension(686, 100));\n mainPanel.setLayout(new java.awt.CardLayout());\n\n lblMainTitle.setBackground(new java.awt.Color(51, 153, 255));\n lblMainTitle.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n lblMainTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblMainTitle.setText(\"Main Title\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 56, Short.MAX_VALUE)\n .addComponent(lblMainTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 696, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblMainTitle, javax.swing.GroupLayout.DEFAULT_SIZE, 52, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(mainPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 537, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"private void generateButtonPanel() {\n buttonsPanel = new JPanel();\n playPauseButton = addButton(\"Play/Pause\");\n restartButton = addButton(\"Restart\");\n speedUpButton = addButton(\"Speed Up\");\n slowDownButton = addButton(\"Slow Down\");\n loopbackButton = addButton(\"Loopback\");\n keyCommandsButton = addButton(\"Key Commands\");\n textViewButton = addButton(\"Animation Text\");\n\n addShapeButton = addButton(\"Add Shape\");\n removeShapeButton = addButton(\"Remove Shape\");\n addKeyframeButton = addButton(\"Add Keyframe\");\n removeKeyframeButton = addButton(\"Remove Keyframe\");\n editKeyframeButton = addButton(\"Edit Keyframe\");\n clearAnimationButton = addButton(\"Clear Animation\");\n clearShapeButton = addButton(\"Clear Shape\");\n buttonsPanel.setLayout(new FlowLayout());\n\n mainPanel.add(buttonsPanel);\n }",
"private void buildUIElements() {\n uiCamera = new OrthographicCamera( Global.WINDOW_WIDTH, Global.WINDOW_HEIGHT );\n uiViewport = new ExtendViewport( Global.WINDOW_WIDTH, Global.WINDOW_HEIGHT, uiCamera );\n\n //Build the table.\n uiStage = new Stage( uiViewport );\n rootTable = new Table( VisUI.getSkin() );\n uiStage.addActor( rootTable );\n rootTable.setFillParent( true );\n rootTable.left().top();\n\n //Fill up the healthMeter is images to be used as healthBars.\n for ( int i = 0; i < 20; i++ ) {\n healthMeter.add( new Image( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }",
"private void profileButton2ActionPerformed(ActionEvent e) {\n // TODO add your code here\n ViewBuffer.setBuffer(\"\");\n ViewBuffer.setBuffer(this.list.get(this.page*6 + 1).getClientID());\n ViewMemberProfile.run();\n this.dispose();\n }",
"public AdminProfile_panel() {\n initComponents();\n \n }",
"private void initTopPanel()\r\n {\r\n GridBagConstraints TopPanelConstraints = new GridBagConstraints();\r\n GridBagLayout TopPanelLayout = new GridBagLayout();\r\n JPanel TopPanel = new JPanel();\r\n TopPanel.setLayout(TopPanelLayout);\r\n\r\n TopPanelConstraints.insets = new Insets(4, 4, 4, 4);\r\n TopPanelConstraints.anchor = GridBagConstraints.WEST;\r\n TopPanelConstraints.gridwidth = 1;\r\n TopPanelConstraints.gridheight = 1;\r\n TopPanelConstraints.fill = GridBagConstraints.HORIZONTAL;\r\n TopPanelConstraints.weighty = 0.0;\r\n\r\n // The first line.\r\n TopPanelConstraints.gridy = 0;\r\n TopPanelConstraints.gridx = 0;\r\n TopPanelConstraints.weightx = 1.0;\r\n Container FirstLineContainer = buildFirstLine();\r\n TopPanel.add(FirstLineContainer, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 1;\r\n TopPanelConstraints.weightx = 0.0;\r\n // TopPanel.add(AboutButton, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 2;\r\n TopPanelConstraints.weightx = 0.0;\r\n // TopPanel.add(ExitButton, TopPanelConstraints);\r\n\r\n // The second line.\r\n TopPanelConstraints.gridy = 1;\r\n TopPanelConstraints.gridx = 0;\r\n TopPanelConstraints.weightx = 1.0;\r\n Container SecondLineContainer = buildSecondLine();\r\n TopPanel.add(SecondLineContainer, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 1;\r\n TopPanelConstraints.weightx = 0.0;\r\n TopPanelConstraints.gridwidth = 2;\r\n TopPanel.add(SaveResultsButton, TopPanelConstraints);\r\n\r\n \tBrowseButton.addActionListener(new BrowseButtonListener() );\r\n \tSearchButton.addActionListener(new SearchButtonListener() );\r\n \t//ExitButton.addActionListener(new ExitButtonListener() );\r\n \t//AboutButton.addActionListener(new AboutButtonListener() );\r\n \tSaveResultsButton.addActionListener(new SaveButtonListener() );\r\n\r\n\t getContentPane().add(\"North\", TopPanel);\r\n }",
"private JPanel createAvailableConditionsSetPanel() {\n\t\tJPanel toReturn = new JPanel(new GridBagLayout());\n\n\t\t\n\t\t// Action for show profiling preferences.\n\t\t AbstractAction showProfilingPageAction = new AbstractAction(\"Profiling Preferences\") {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tPluginWorkspaceProvider.getPluginWorkspace().showPreferencesPages(new String[] { \"profiling.conditions\" },\n\t\t\t\t\t\t\"profiling.conditions\", true);\n\t\t\t\n\t\t\t\t//update the panel \n\t\t\t\tcomboBoxUpdate();\n\t\t\t}\n\t\t};\n\n\t\t\n\t\t // Button for display profiling preferences\n\t\t ToolbarButton buttonToProfiling = new ToolbarButton(showProfilingPageAction, true);\n\t\t\n\t\t\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\t\n\t\t//add the checkBox\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 0;\n\t\tgbc.weightx = 1;\n\t\ttoReturn.add(useAllCondSetsRBtn, gbc);\n\t\t\n\t\t//add the button\n\t\tgbc.gridx = 1;\n\t\tgbc.weightx = 0;\n\n\t\tURL imageToLoad = getClass().getClassLoader().getResource(Images.PREFERENCES_ICON);\n\t\tif (imageToLoad != null) {\n\t\t\tbuttonToProfiling.setIcon(ro.sync.ui.Icons.getIcon(imageToLoad.toString()));\n\t\t\tbuttonToProfiling.setText(\"\");\n\t\t} else {\n\t\t\tbuttonToProfiling.setText(\"PC\");\n\t\t}\n\t\ttoReturn.add(buttonToProfiling, gbc);\n\n\t\treturn toReturn;\n\t}",
"private PanelReproductorVideo() {\r\n\t\t\tsetLayout(new GridLayout(3, 3));\r\n\t\t\tstart.addActionListener(listener);\r\n\t\t\tstop.addActionListener(listener);\r\n\t\t\treset.addActionListener(listener);\r\n\t\t\tadd(start);\r\n\t\t\tadd(stop);\r\n\t\t\tadd(reset);\r\n\t\t\tadd(time);\r\n\r\n\t\t}",
"private void buildInfoPanel() {\r\n infoPanel = new JPanel( new GridLayout( 1, 1 ) );\r\n infoBox = Box.createHorizontalBox();\r\n\r\n // setBackground() does NOT work with a Box\r\n infoPanel.setBackground( COLOR_INFO_BKGRND );\r\n\r\n soundBtn = new JButton( Msgs.str( \"Snd.go\" ) );\r\n soundBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( soundBtn );\r\n\r\n resetBtn = new JButton( Msgs.str( \"Reset\" ) );\r\n resetBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( resetBtn );\r\n\r\n infoMesg = new JLabel( Msgs.str( \"Ready\" ), SwingConstants.CENTER );\r\n infoMesg.setFont( fontLARGE );\r\n infoMesg.setForeground( COLOR_INFO_FRGRND );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( infoMesg );\r\n infoBox.add( Box.createGlue() );\r\n\r\n infoPanel.add( infoBox );\r\n }",
"private void profileButton1ActionPerformed(ActionEvent e) {\n // TODO add your code here\n ViewBuffer.setBuffer(\"\");\n ViewBuffer.setBuffer(this.list.get(this.page*6).getClientID());\n ViewMemberProfile.run();\n this.dispose();\n }",
"void infoSetUp() {\r\n\t\tJPanel imageInfo = new JPanel();\r\n\t\timageInfo.setLayout(new GridLayout(2, 0));\r\n\t\tJPanel mButtons = new JPanel();\r\n\r\n\t\tJButton save = new JButton(\"save\");\r\n\t\tJButton upload = new JButton(\"upload\");\r\n\t\tJButton delete = new JButton(\"delete\");\r\n\t\tJButton view = new JButton(\"open\");\r\n\r\n\t\tupload.setActionCommand(\"upload\");\r\n\t\tview.setActionCommand(\"view\");\r\n\t\tActionListener upList = new UpList();\r\n\t\tupload.addActionListener(upList);\r\n\t\tview.addActionListener(upList);\r\n\t\tmButtons.add(save);\r\n\t\tmButtons.add(upload);\r\n\t\tmButtons.add(delete);\r\n\t\tmButtons.add(view);\r\n\r\n\t\tJTextArea info = new JTextArea(\"Path: \");\r\n\t\tinfo.setEditable(false);\r\n\t\timageInfo.add(info);\r\n\t\timageInfo.add(mButtons);\r\n\t\tmainFrame.add(imageInfo);\r\n\t\tinfoText = info;\r\n\t}",
"private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }",
"private JPanel topBar() {\n\t\t\n\t\t//creating a top bar with controls\n\t\tJPanel topBar = new JPanel();\n\t\tColor myPurp = new Color(191, 123, 123);\n\t\ttopBar.setBackground(myPurp);\n\t\t\n\t\t//reset button with listener\n\t\ttopBar.add(reset);\n\t\treset.addActionListener(this);\n\t\t\n\t\t//creating button that starts simulation\n\t\tstart.setSelected(false);\n\t\tstart.addActionListener(this);\n\t\ttopBar.add(start);\n\t\t\n\t\t//creating button that stops simulation\n\t\tstop.setSelected(true);\n\t\tstop.addActionListener(this);\n\t\ttopBar.add(stop);\n\t\t\n\t\t//button group to ensure you cannot start and stop at same time\n\t\tButtonGroup startStop = new ButtonGroup();\n\t\tstartStop.add(start);\n\t\tstartStop.add(stop);\n\t\t\n\t\t//creating label that shows # of steps\n\t\tsteps.setHorizontalAlignment(JLabel.CENTER);\n\t\ttopBar.add(steps);\n\t\t\n\t\t\n\t\treturn topBar;\n\t}",
"private void inicialitzarComponents() {\n\t\tsetLayout(new BorderLayout(0, 0));\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setOpaque(false);\n\t\tadd(panel, BorderLayout.NORTH);\n\n\t\tBox verticalBox = Box.createVerticalBox();\n\t\tverticalBox.setOpaque(false);\n\t\tpanel.add(verticalBox);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setOpaque(false);\n\t\tverticalBox.add(panel_2);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setOpaque(false);\n\t\tverticalBox.add(panel_3);\n\n\t\tJLabel lblNewLabel = new JLabel(nomUsuari);\n\t\tlblNewLabel.setFont(lblNewLabel.getFont().deriveFont(30f));\n\t\tpanel_3.add(lblNewLabel);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setOpaque(false);\n\t\tadd(panel_1, BorderLayout.CENTER);\n\n\t\tBox verticalBox_1 = Box.createVerticalBox();\n\t\tverticalBox_1.setOpaque(false);\n\t\tpanel_1.add(verticalBox_1);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setOpaque(false);\n\t\tverticalBox_1.add(panel_4);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Peces girades:\");\n\t\tpanel_4.add(lblNewLabel_1);\n\n\t\tJLabel lblNewLabel_2 = new JLabel(String.valueOf(records.get(\"pecesGirades\")));\n\t\tpanel_4.add(lblNewLabel_2);\n\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setOpaque(false);\n\t\tverticalBox_1.add(panel_5);\n\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Partides blanques guanyades:\");\n\t\tpanel_5.add(lblNewLabel_3);\n\n\t\tJLabel lblNewLabel_4 = new JLabel(String.valueOf(records.get(\"partidesBlanquesGuanyades\")));\n\t\tpanel_5.add(lblNewLabel_4);\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setOpaque(false);\n\t\tverticalBox_1.add(panel_6);\n\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Partides negres guanyades:\");\n\t\tpanel_6.add(lblNewLabel_5);\n\n\t\tJLabel lblNewLabel_6 = new JLabel(String.valueOf(records.get(\"partidesNegresGuanyades\")));\n\t\tpanel_6.add(lblNewLabel_6);\n\n\t\tpanellRanking.setLayout(new BorderLayout());\n\t\tpanellRanking.add(menu, BorderLayout.NORTH);\n\t\tpanellRanking.add(taulaHoritzontal, BorderLayout.CENTER);\n\t\tpanellRanking.setBorder(BorderFactory.createLineBorder(Color.white, 4));\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setOpaque(false);\n\t\tpanel_7.setSize(20, 20);\n\t\tpanel_7.add(panellRanking);\n\t\tverticalBox_1.add(panel_7);\n\t}",
"@Override\n\tpublic void initGui()\n {\n this.controlList.clear();\n //Keyboard.enableRepeatEvents(true);\n\n int var1 = (this.width - this.bookImageWidth) / 2;\n int var2 = (this.height - this.bookImageHeight - 40) / 2;\n this.controlList.add(this.buttonNextPage = new GuiButtonNextPage(1, var1 + 120, var2 + 154, true));\n this.controlList.add(this.buttonPreviousPage = new GuiButtonNextPage(2, var1 + 38, var2 + 154, false));\n this.controlList.add(this.buttonIndex = new GuiButtonNextPage(8, var1 + 28, var2 + 10, false));\n this.controlList.add(this.buttonMenu1 = new GuiButtonSelect(3, var1 + 35, var2 + 30, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu2 = new GuiButtonSelect(4, var1 + 35, var2 + 55, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu3 = new GuiButtonSelect(5, var1 + 35, var2 + 80, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu4 = new GuiButtonSelect(6, var1 + 35, var2 + 105, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu5 = new GuiButtonSelect(7, var1 + 35, var2 + 130, 110, 20, \"\"));\n this.controlList.add(this.bookmark = new GuiButtonBookmark(9, var1 + 142, var2 + 7, false));\n this.updateButtons();\n }",
"private void createBottomButtons() {\n // Create a composite that will contain the control buttons.\n Composite bottonBtnComposite = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, true);\n gl.horizontalSpacing = 10;\n bottonBtnComposite.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n bottonBtnComposite.setLayoutData(gd);\n\n // Create the Interpolate button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n interpolateBtn = new Button(bottonBtnComposite, SWT.PUSH);\n interpolateBtn.setText(\"Interpolate\");\n interpolateBtn.setLayoutData(gd);\n interpolateBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorData upperColorData = upperColorWheel.getColorData();\n ColorData lowerColorData = lowerColorWheel.getColorData();\n\n colorBar.interpolate(upperColorData, lowerColorData, rgbRdo\n .getSelection());\n undoBtn.setEnabled(true);\n updateColorMap();\n }\n });\n\n // Create the Undo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n undoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n undoBtn.setText(\"Undo\");\n undoBtn.setEnabled(false);\n undoBtn.setLayoutData(gd);\n undoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n undoBtn.setEnabled(colorBar.undoColorBar());\n updateColorMap();\n redoBtn.setEnabled(true);\n }\n });\n\n // Create the Redo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n redoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n redoBtn.setText(\"Redo\");\n redoBtn.setEnabled(false);\n redoBtn.setLayoutData(gd);\n redoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n redoBtn.setEnabled(colorBar.redoColorBar());\n updateColorMap();\n undoBtn.setEnabled(true);\n }\n });\n\n // Create the Revert button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n revertBtn = new Button(bottonBtnComposite, SWT.PUSH);\n revertBtn.setText(\"Revert\");\n revertBtn.setLayoutData(gd);\n revertBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n colorBar.revertColorBar();\n updateColorMap();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n }\n });\n\n // Create the Save button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n saveBtn = new Button(bottonBtnComposite, SWT.PUSH);\n saveBtn.setText(\"Save\");\n saveBtn.setLayoutData(gd);\n if( seldCmapName == null ) {\n saveBtn.setEnabled(false);\n }\n \n saveBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorMap cm = (ColorMap) cmapParams.getColorMap();\n seldCmapName = selCmapCombo.getText();\n \n// int sepIndx = seldCmapName.indexOf(File.separator);\n// String cmapCat = seldCmapName.substring(0,seldCmapName.indexOf(File.separator));\n// String cmapName = seldCmapName.substring( seldCmapName.indexOf(File.separator));\n if (lockedCmaps != null && lockedCmaps.isLocked(seldCmapName)) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists and is locked.\\n\\n\" +\n \t\t\t\"You cannot overwrite it.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tconfirmDlg.open();\n \tcolorBar.undoColorBar();\n updateColorMap();\n \treturn;\n } \n else if( ColorMapUtil.colorMapExists( seldCmapCat, seldCmapName ) ) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists.\\n\\n\" +\n \t\t\t\"Do you want to overwrite it?\",\n \t\t\tMessageDialog.QUESTION, new String[]{\"Yes\", \"No\"}, 0);\n \tconfirmDlg.open();\n\n \tif( confirmDlg.getReturnCode() == MessageDialog.CANCEL ) {\n \t\treturn;\n \t}\n }\n\n try {\n ColorMapUtil.saveColorMap( cm, seldCmapCat, seldCmapName );\n \n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Colormap Saved\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" Saved.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n } catch (VizException e) {\n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Error\", null, \n \t\t\t\"Error Saving Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\"\\n\"+e.getMessage(),\n \t\t\tMessageDialog.ERROR, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n }\n\n completeSave();\n }\n });\n\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.grabExcessHorizontalSpace = false;\n deleteBtn = new Button(bottonBtnComposite, SWT.PUSH);\n deleteBtn.setText(\"Delete\");\n deleteBtn.setLayoutData(gd);\n deleteBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tdeleteColormap();\n }\n });\n Label sep = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n sep.setLayoutData(gd);\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.HORIZONTAL_ALIGN_END);\n Button closeBtn = new Button(shell, SWT.PUSH);\n closeBtn.setText(\" Close \");\n closeBtn.setLayoutData(gd);\n closeBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tshell.dispose();\n }\n });\n }",
"@Override\n\tprotected void createCompButtons() {\n\t\tbuildCompButtons();\n\t}",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }",
"private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }",
"private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new Button(\"Clear\");\n resetButton=new Button(\"Reset\");\n finalizeButton=new Button(\"Finalize\");\n toolBar.getItems().addAll(\n createSpacer(),\n login,\n simulate,\n scoreBoardButton,\n viewBracket,\n createSpacer()\n );\n btoolBar.getItems().addAll(\n createSpacer(),\n clearButton,\n resetButton,\n finalizeButton,\n createSpacer()\n );\n }",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}",
"private void createComponentForButtons(Composite section)\n {\n createRowForNewStyleButton(section);\n createRowForNewRegexButton(section);\n createRowForNewColumnButton(section);\n createRowForDeleteButton(section);\n createRowForDeleteAllButton(section);\n }"
] | [
"0.6757167",
"0.63813066",
"0.6227018",
"0.61880964",
"0.6170849",
"0.61273754",
"0.6125054",
"0.6108546",
"0.6043597",
"0.6021065",
"0.5993894",
"0.5989532",
"0.5985114",
"0.59457666",
"0.5924879",
"0.59109044",
"0.5893656",
"0.5889062",
"0.5866251",
"0.58642066",
"0.586345",
"0.5852797",
"0.5845571",
"0.5845006",
"0.5821912",
"0.58194065",
"0.5815588",
"0.58051354",
"0.5801681",
"0.57822406",
"0.57783943",
"0.57644045",
"0.57553416",
"0.5750435",
"0.57499945",
"0.57476604",
"0.5745017",
"0.5734695",
"0.5733819",
"0.5732294",
"0.572635",
"0.57229084",
"0.57121104",
"0.5710011",
"0.5702771",
"0.5701407",
"0.5699435",
"0.56937796",
"0.56906956",
"0.5688426",
"0.56848",
"0.56715006",
"0.566767",
"0.5662361",
"0.5660157",
"0.564495",
"0.56360286",
"0.56308395",
"0.5624713",
"0.561432",
"0.5608968",
"0.5607981",
"0.5606504",
"0.5603698",
"0.55980945",
"0.55974346",
"0.55969155",
"0.5596355",
"0.5595845",
"0.55879223",
"0.55830127",
"0.5579675",
"0.5577108",
"0.5570644",
"0.5568514",
"0.5561469",
"0.55596715",
"0.5558113",
"0.55576724",
"0.55566865",
"0.5554943",
"0.555488",
"0.555403",
"0.5551861",
"0.55494547",
"0.55339426",
"0.5529571",
"0.55272645",
"0.5519579",
"0.5518748",
"0.5517652",
"0.55017436",
"0.5498288",
"0.5495818",
"0.54943764",
"0.5491875",
"0.5489704",
"0.5487847",
"0.54873735",
"0.54860955",
"0.5485387"
] | 0.0 | -1 |
Construct the vertical profile display and control buttons | public boolean init(List choices) throws VisADException, RemoteException {
ActionListener llListener = new ActionListener() {
public void actionPerformed(ActionEvent ae) {
handleLatLonWidgetChange();
}
};
latLonWidget = new LatLonWidget("Lat: ", "Lon: ", llListener);
aniWidget = getAnimationWidget().getContents(false);
setContents(doMakeContents());
doMakeProbe();
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VerticalProfileControl() {\n setAttributeFlags(FLAG_COLOR | FLAG_DATACONTROL | FLAG_DISPLAYUNIT);\n }",
"public void createControl(Composite parent) {\n Group group = SWTFactory.createGroup(parent, PDEUIMessages.ProfileBlock_0, 1, 1, GridData.FILL_HORIZONTAL);\n fGenerateProfileButton = SWTFactory.createCheckButton(group, PDEUIMessages.ProfileBlock_1, null, false, 1);\n fGenerateProfileButton.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n fTab.updateLaunchConfigurationDialog();\n }\n });\n }",
"private void buildTopPanel() {\n \t\tJPanel panel = new JPanel();\n \t\tpanel.setLayout(new BorderLayout(10, 10));\n \t\t\n \t\t// this does not need to be referenced else where, only for layout\n \t\tJPanel paneButtons = new JPanel();\n \t\tGridLayout bl = new GridLayout(2, 1);\n \t\tpaneButtons.setLayout(bl);\n \t\t\n \t\tpaneButtons.add(bCastOff);\n \t\tpaneButtons.add(bSavePlayer);\n \t\t\n \t\t// add all components on top:\n \t\tpanel.add(imgDisplay, BorderLayout.LINE_START);\n \t\tpanel.add(paneEditFields, BorderLayout.CENTER);\n \t\tpanel.add(paneButtons, BorderLayout.LINE_END);\n \t\t\n \t\tadd(panel, BorderLayout.PAGE_START);\n \t}",
"private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}",
"private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}",
"private void createStatusPanel(final Composite pp) {\n\t\t//\n\t\t// Create status panel\n\t\t//\n\t\tstatusPanel = new Composite(pp, SWT.NONE);\n\t\tstatusPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 3;\n\t\tlayout.horizontalSpacing = 5;\n\t\tlayout.verticalSpacing = 0;\n\t\tlayout.marginWidth = 0;\n\t\tlayout.marginHeight = 0;\n\t\tstatusPanel.setLayout(layout);\n\n\t\t//\n\t\t// Create status sub-panels\n\t\t//\n\t\tcreateOffsetPanel(statusPanel);\n\t\tcreateValuePanel(statusPanel);\n\t\tcreateFileSizePanel(statusPanel);\n\t}",
"public void createComponents()\n {\n VBox col = new VBox(SPACING);\n\n Label lblStatus = new Label(\"Machine Status\");\n lblStatus.getStyleClass().add(\"bordered-titled-title\");\n\n lblCurrFile = new Label(\"No File Currently Loaded\");\n lblConnection = new Label(\"Not Connected\");\n\n btnConnect = new Button(\"Connect to Machine\");\n btnConnect.setOnAction(new ConnectEventHandler());\n //btnConnect.getStyleClass().add(\"glass-grey\");\n\n ivConnection = new ImageView(\n new Image(getClass().getResourceAsStream(\"/Resources/Not Connected.png\")));\n\n lblMachineStatus = new Label(\"Status: Good\");\n HBox r1 = new HBox(SPACING);\n r1.getChildren().addAll(lblConnection, ivConnection);\n\n col.getChildren().addAll(btnConnect, r1, lblCurrFile, lblMachineStatus);\n getChildren().addAll(lblStatus, col);\n\n }",
"private DisplayPanel(){\r\n\t\t\t\tControlActionListenter cal = new ControlActionListenter();\r\n\t\t\t\tsetLayout(new BorderLayout());\r\n\t\t\t\tfinal JButton btn1 = new JButton(\"First\");\r\n\t\t\t\tbtn1.setFocusable(false);\r\n \t \tbtn1.addActionListener(cal);\r\n \t\t\tfinal JButton btn2 = new JButton(\"Next\");\r\n \t\t\tbtn2.addActionListener(cal);\r\n \t\t\t\tfinal JButton btn3 = new JButton(\"Previous\");\r\n \t\t \tbtn3.addActionListener(cal);\r\n \t\t final JButton btn4 = new JButton(\"Last\");\r\n \t\tbtn4.addActionListener(cal);\r\n \t\tbtn2.setFocusable(false);\r\n \t\tbtn3.setFocusable(false);\r\n \t\tbtn4.setFocusable(false);\r\n \t\t \tJPanel controlButtons = new JPanel(new GridLayout(2,2,5,5));\r\n \t\t \tcontrolButtons.add(btn3);\r\n \t\t \tcontrolButtons.add(btn2);\r\n \t\t \tcontrolButtons.add(btn1);\r\n \t\tcontrolButtons.add(btn4);\r\n \t\tcontrolButtons.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n \t\tadd(controlButtons, BorderLayout.PAGE_END);\r\n\t\t\t}",
"private void createMainMenuMiddleComposite() {\n\t\tString imgSlipUI = null;\n\t\tString imgJackpotBtn = null;\n\t\tString imgVoucherBtn = null;\n\t\tif(Util.isSmallerResolution()) {\n\t\t\timgSlipUI = ImageConstants.S_SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.S_JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.S_VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\telse {\n\t\t\timgSlipUI = ImageConstants.SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\t\n\t\tGridData gridData11 = new GridData();\n\t\tgridData11.horizontalAlignment = GridData.CENTER;\n\t\tgridData11.grabExcessHorizontalSpace = true;\n\t\tgridData11.grabExcessVerticalSpace = true;\n\t\tgridData11.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData10 = new GridData();\n\t\tgridData10.horizontalAlignment = GridData.CENTER;\n\t\tgridData10.grabExcessHorizontalSpace = true;\n\t\tgridData10.grabExcessVerticalSpace = true;\n\t\tgridData10.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData9 = new GridData();\n\t\tgridData9.horizontalAlignment = GridData.CENTER;\n\t\tgridData9.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData6 = new GridData();\n\t\tgridData6.heightHint = 100;\n\t\t// gridData6.heightHint = 70;\n\t\tgridData6.widthHint = 100;\n\t\t// gridData6.widthHint = 90;\n\t\tgridData6.grabExcessHorizontalSpace = true;\n\t\tgridData6.grabExcessVerticalSpace = true;\n\t\tgridData6.horizontalAlignment = GridData.CENTER;\n\t\tgridData6.verticalAlignment = GridData.END;\n\n\t\tGridLayout gridLayout3 = new GridLayout();\n\t\tgridLayout3.horizontalSpacing = 20;\n\t\tgridLayout3.numColumns = 3;\n\t\tGridData gridData5 = new GridData();\n\t\tgridData5.grabExcessHorizontalSpace = true;\n\t\tgridData5.verticalAlignment = GridData.FILL;\n\t\tgridData5.heightHint = 100;\n\t\tgridData5.grabExcessVerticalSpace = true;\n\t\tgridData5.horizontalAlignment = GridData.FILL;\n\t\tmainMenuMiddleComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuMiddleComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t171, 209, 255));\n\t\tmainMenuMiddleComposite.setLayout(gridLayout3);\n\t\tmainMenuMiddleComposite.setLayoutData(gridData5);\n\n\t\tGridData gridData3 = new GridData();\n\t\tgridData3.grabExcessVerticalSpace = true;\n\t\tgridData3.horizontalAlignment = GridData.CENTER;\n\t\tgridData3.verticalAlignment = GridData.END;\n\t\tgridData3.heightHint = 100;\n\t\tgridData3.widthHint = 100;\n\t\tgridData3.grabExcessHorizontalSpace = true;\n\n\t\tGridData gridData1 = new GridData();\n\t\tgridData1.grabExcessVerticalSpace = true;\n\t\tgridData1.horizontalAlignment = GridData.CENTER;\n\t\tgridData1.verticalAlignment = GridData.END;\n\t\tgridData1.heightHint = 100;\n\t\tgridData1.widthHint = 100;\n\t\tgridData1.grabExcessHorizontalSpace = true;\n\n\t\tbtnSlipUI = new CbctlButton(mainMenuMiddleComposite, SWT.FLAT, \"\",\n\t\t\t\tLabelKeyConstants.SLIPS_UI_BUTTON);\n\t\tbtnSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\t\n\t\tbtnSlipUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgSlipUI)));\n\t\tbtnSlipUI.setLayoutData(gridData1);\n\n\t\tbtnJackpotUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelKeyConstants.JACKPOT_UI_BUTTON);\n\t\tbtnJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tbtnJackpotUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgJackpotBtn)));\n\t\tbtnJackpotUI.setLayoutData(gridData3);\n\n\t\tbtnVoucherUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelLoader.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tbtnVoucherUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgVoucherBtn)));\n\t\tbtnVoucherUI.setLayoutData(gridData6);\n\n\t\tlblSlipUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblSlipUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.SLIPS_UI_BUTTON));\n\t\tlblSlipUI.setBackground(new Color(Display.getCurrent(), 171, 209, 255));\n\t\tlblSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\tlblSlipUI.setLayoutData(gridData9);\n\n\t\tlblJackpotUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblJackpotUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.JACKPOT_UI_BUTTON));\n\t\tlblJackpotUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblJackpotUI.setLayoutData(gridData10);\n\n\t\tlblVoucherUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblVoucherUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tlblVoucherUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblVoucherUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblVoucherUI.setLayoutData(gridData11);\n\n\t}",
"private void createControls() {\n JScrollPane votesScroller = new JScrollPane(votesTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel bottomPanel = new JPanel();\n JPanel buttonsPanel = new JPanel();\n JLabel votesLabel = new JLabel(\"<html><div style='text-align: center; width: \" + PANEL_SIZE.width + \";'><h3>Votes</h3></html>\");\n \n // Enables/disables buttons.\n enableAdding();\n \n // Hooks up the controller on the action listeners.\n loadButton.addActionListener((e) -> controller.loadVotes());\n addButton.addActionListener((e) -> {\n // Uses the selected indexes of the combo boxes to determine the candidate IDs.\n ArrayList<Integer> candidateIds = new ArrayList<>();\n comboBoxes.forEach((comboBox) -> candidateIds.add(comboBox.getSelectedIndex() - 1));\n \n // Requests that the controller adds a vote with the given candidate IDs.\n controller.addVote(candidateIds);\n });\n \n // Lays out the components.\n panel.setLayout(new BorderLayout());\n panel.add(votesLabel, BorderLayout.PAGE_START);\n panel.add(votesScroller, BorderLayout.CENTER);\n panel.add(bottomPanel, BorderLayout.PAGE_END);\n \n bottomPanel.setLayout(new BorderLayout());\n bottomPanel.add(createComboBoxes(), BorderLayout.PAGE_START);\n bottomPanel.add(buttonsPanel, BorderLayout.PAGE_END);\n \n buttonsPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n buttonsPanel.add(addButton);\n buttonsPanel.add(loadButton);\n \n \n panel.setPreferredSize(PANEL_SIZE);\n }",
"private void setupUI() {\n\t\tpanel1 = new JPanel();\n\t\tpanel1.setLayout(new BorderLayout(0, 0));\n\t\tfinal JPanel panel2 = new JPanel();\n\t\tpanel2.setLayout(new FlowLayout(FlowLayout.LEFT, 2, 2));\n\t\tpanel2.setBackground(Color.BLACK);\n\t\tpanel2.setPreferredSize(new Dimension(800, 34));\n\t\tpanel1.add(panel2, BorderLayout.SOUTH);\n\t\tstopButton = new JButton();\n\t\tstopButton.setText(\"STOP\");\n\t\tstopButton.setPreferredSize(new Dimension(82, 30));\n\t\tpanel2.add(stopButton);\n\t\tclsButton = new JButton();\n\t\tclsButton.setPreferredSize(new Dimension(82, 30));\n\t\tclsButton.setText(\"CLS\");\n\t\tpanel2.add(clsButton);\n\t\trunButton = new JButton();\n\t\trunButton.setPreferredSize(new Dimension(82, 30));\n\t\trunButton.setText(\"RUN\");\n\t\tpanel2.add(runButton);\n\t\tcaretLabel = new JLabel();\n\t\tcaretLabel.setPreferredSize(new Dimension(82, 30));\n\t\tcaretLabel.setForeground(Color.pink);\n\t\tpanel2.add(caretLabel);\n\t\tmainTextArea = new ShellTextComponent(this);\n\t\tmainTextArea.setCaretColor(new Color(Colors.COLORS[14]));\n\t\tfinal JScrollPane scrollPane1 = new JScrollPane(mainTextArea);\n\n\t\tpanel1.add(scrollPane1, BorderLayout.CENTER);\n\t\tpanel1.setPreferredSize(new Dimension(800, 600));\n\t}",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}",
"public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}",
"private void createContents()\n\t{\n\t\tGridLayout clayout = new GridLayout();\n\t\tclayout.marginHeight = 2;\n\t\tclayout.marginWidth = 2;\n\t\tclayout.marginTop = 2;\n\t\tclayout.marginBottom = 2;\n\t\tclayout.marginLeft = 2;\n\t\tclayout.marginRight = 2;\n\t\tclayout.numColumns = 1;\n\t\tsetLayout(clayout);\n\t\t\n\t\t\n\t\tm_executorsTable = new ExecutorsTable(this);\n\t\tGridData tableLayoutData = new GridData(GridData.FILL_BOTH);\n\t\ttableLayoutData.grabExcessHorizontalSpace = true;\n\t\ttableLayoutData.widthHint = 700;\n\t\ttableLayoutData.heightHint = 200;\n\t\tm_executorsTable.getGrid().setLayoutData(tableLayoutData);\n\t\tm_executorsTable.addDoubleClickListener(this);\n\t\tm_executorsTable.addSelectionChangedListener( new ISelectionChangedListener(){\n\n\t\t\t@Override\n public void selectionChanged(SelectionChangedEvent arg0)\n {\n\t\t\t\tupdateButtons();\n }\n\t\t\t\n\t\t});\n\n\t\tComposite buttonBar = new Composite(this, SWT.BORDER);\n\t\tbuttonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tbuttonBar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\t\n\t\tm_btnTakeControl = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnTakeControl.setText(BTN_TAKE_CONTROL);\n\t\tm_btnTakeControl.addSelectionListener(this);\n\t\t\n\t\tm_btnReleaseControl = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnReleaseControl.setText(BTN_RELEASE_CONTROL);\n\t\tm_btnReleaseControl.addSelectionListener(this);\n\t\t\n\t\tm_btnBackground = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnBackground.setText(BTN_BACKGROUND);\n\t\tm_btnBackground.addSelectionListener(this);\n\n\t\tm_btnStartMonitor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStartMonitor.setText(BTN_START_MONITOR);\n\t\tm_btnStartMonitor.addSelectionListener(this);\n\t\t\n\t\tm_btnStopMonitor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStopMonitor.setText(BTN_STOP_MONITOR);\n\t\tm_btnStopMonitor.addSelectionListener(this);\n\t\t\n\t\tm_btnStopExecutor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnStopExecutor.setText(BTN_STOP_EXECUTOR);\n\t\tm_btnStopExecutor.addSelectionListener(this);\n\n\t\tm_btnKillExecutor = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnKillExecutor.setText(BTN_KILL_EXECUTOR);\n\t\tm_btnKillExecutor.addSelectionListener(this);\n\t\t\n\t\tm_btnRefresh = new Button(buttonBar, SWT.PUSH);\n\t\tm_btnRefresh.setText(BTN_REFRESH);\n\t\tm_btnRefresh.addSelectionListener(this);\n\t\t\n\t\tapplyFonts();\n\t\tdisableButtons();\n\t}",
"public CreateJPanel(ProfileInfo profileInfo) {\n initComponents();\n \n this.profileInfo = profileInfo;\n btnSave.setEnabled(false);\n \n }",
"private void populateControlPanel() {\n \n ControlListener control = new ControlListener();\n startStopButton = new JButton(\"Start/Stop\");\n startStopButton.addActionListener(control);\n \n saveButton = new JButton(\"Save\");\n saveButton.addActionListener(control);\n \n loadButton = new JButton(\"Load\");\n loadButton.addActionListener(control);\n \n resetButton = new JButton(\"Reset\");\n resetButton.addActionListener(control);\n \n add(startStopButton);\n add(saveButton);\n add(loadButton);\n add(resetButton);\n }",
"private void setDisplay() {\n\t\tDimension d = new Dimension(160,40);\n\t\tsetPreferredSize(d);\n\t\tsetMaximumSize(d);\n\t\tsetMinimumSize(d);\n\t\tsetLayout(new BorderLayout());\n\t\tsetBorder(new EmptyBorder(3,0,3,0));\n\t\tbtnUser = new RoundedButton(new Color(0xEEEEEE), new Color(0xCCCCCC));\n\t\tJPanel pnlInner = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t\t\n\t\tpnlIcon = new JPanel(new BorderLayout());\n\t\tpnlIcon.add(lblUserListIcon, BorderLayout.CENTER);\n//\t\tpnlIcon.setBackground(new Color(0xEEEEEE));\n\t\tpnlIcon.setOpaque(false);\n\t\t\n\t\tpnlIcon.setBorder(new EmptyBorder(0,5, 0, 5));\n\t\t\n\t\tpnlName = new JPanel(new BorderLayout());\n\t\tpnlName.add(lblUserListName, BorderLayout.CENTER);\n//\t\tpnlName.setBackground(new Color(0xEEEEEE));\n\t\tpnlName.setOpaque(false);\n\t\t\n\t\tpnlInner.add(pnlIcon);\n\t\tpnlInner.add(pnlName);\n\t\t\n\t\tsetOpaque(true);\n\t\tsetBackground(Color.WHITE);\n\t\t\n\t\tbtnUser.add(pnlIcon, BorderLayout.WEST);\n\t\tbtnUser.add(pnlName, BorderLayout.CENTER);\n\t\tadd(btnUser, BorderLayout.CENTER);\n\t}",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}",
"protected void createButtons(Panel panel) {\n panel.add(new Filler(24,20));\n\n Choice drawingChoice = new Choice();\n drawingChoice.addItem(fgUntitled);\n\n\t String param = getParameter(\"DRAWINGS\");\n\t if (param == null)\n\t param = \"\";\n \tStringTokenizer st = new StringTokenizer(param);\n while (st.hasMoreTokens())\n drawingChoice.addItem(st.nextToken());\n // offer choice only if more than one\n if (drawingChoice.getItemCount() > 1)\n panel.add(drawingChoice);\n else\n panel.add(new Label(fgUntitled));\n\n\t\tdrawingChoice.addItemListener(\n\t\t new ItemListener() {\n\t\t public void itemStateChanged(ItemEvent e) {\n\t\t if (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t loadDrawing((String)e.getItem());\n\t\t }\n\t\t }\n\t\t }\n\t\t);\n\n panel.add(new Filler(6,20));\n\n Button button;\n button = new CommandButton(new DeleteCommand(\"Delete\", fView));\n panel.add(button);\n\n button = new CommandButton(new DuplicateCommand(\"Duplicate\", fView));\n panel.add(button);\n\n button = new CommandButton(new GroupCommand(\"Group\", fView));\n panel.add(button);\n\n button = new CommandButton(new UngroupCommand(\"Ungroup\", fView));\n panel.add(button);\n\n button = new Button(\"Help\");\n\t\tbutton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n\t\t showHelp();\n\t\t }\n\t\t }\n\t\t);\n panel.add(button);\n\n fUpdateButton = new Button(\"Simple Update\");\n\t\tfUpdateButton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n if (fSimpleUpdate)\n setBufferedDisplayUpdate();\n else\n setSimpleDisplayUpdate();\n\t\t }\n\t\t }\n\t\t);\n\n // panel.add(fUpdateButton); // not shown currently\n }",
"private void $$$setupUI$$$() {\n statusPanel = new JPanel();\n statusPanel.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status Label\");\n statusPanel.add(statusLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JSeparator separator1 = new JSeparator();\n statusPanel.add(separator1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }",
"private void createButtonsPanel() {\r\n Composite buttonsPanel = new Composite(this, SWT.NONE);\r\n buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\r\n buttonsPanel.setLayout(new GridLayout(4, true));\r\n\r\n getButtonFromAction(buttonsPanel, \"New\", new NewAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Save\", new SaveAction());\r\n getButtonFromAction(buttonsPanel, \"Delete\", new DeleteAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Cancel\", new CancelAction());\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void createControl( Composite parent )\r\n {\n ScrolledComposite tabScroller = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);\r\n tabScroller.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );\r\n tabScroller.setLayout( new GridLayout( 1, false ) );\r\n tabScroller.setExpandHorizontal(true);\r\n tabScroller.setExpandVertical(true);\r\n Composite tab = new Composite(tabScroller, SWT.NONE);\r\n tab.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );\r\n tab.setLayout( new GridLayout( 1, false ) );\r\n\r\n Composite buttons = new Composite(tab, SWT.NONE);\r\n buttons.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER ) );\r\n buttons.setLayout( new GridLayout( 2, false ) );\r\n\r\n setControl( tabScroller );\r\n tabScroller.setContent(tab);\r\n\r\n // Add the relevant controls for selecting parameters\r\n final UpdatableControlIF topFile = ControlRenderingFactory.fileSelectButton(buttons, \"Set top model from file selection\", false, (ConfigFile)getConfigs().get(ConfigGroup.TOP_MODEL_FILE));\r\n /*final Button defaults =*/ this.getDefaultButton(buttons);\r\n\r\n final Composite group2 = new Composite(tab, SWT.SHADOW_IN);\r\n group2.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n group2.setLayout( new GridLayout( 2, true ) );\r\n\r\n final Composite leftCol = new Composite(group2, SWT.NONE);\r\n leftCol.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n leftCol.setLayout( new GridLayout( 1, true ) );\r\n\r\n final Composite rightCol = new Composite(group2, SWT.NONE);\r\n rightCol.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n rightCol.setLayout( new GridLayout( 1, true ) );\r\n\r\n final UpdatableControlIF runDir = ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.RUN_DIR), leftCol, true, true); \r\n final UpdatableControlIF topName = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.TOP_MODEL_NAME), leftCol); \r\n addControl(ConfigGroup.CACHE_DIR, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.CACHE_DIR), leftCol));\r\n\r\n final Composite leftColShort = new Composite(leftCol, SWT.NONE);\r\n leftColShort.setLayoutData( new GridData(SWT.FILL, SWT.BEGINNING, true,true) );\r\n leftColShort.setLayout( new GridLayout( 2, true ) );\r\n addControl(ConfigGroup.SIM_TIME, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TIME), leftColShort));\r\n addControl(ConfigGroup.SIM_STEPS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_STEPS), leftColShort));\r\n addControl(ConfigGroup.SIM_MAX_ERRORS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_MAX_ERRORS), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_SIZE_WARNING, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_SIZE_WARNING), leftColShort));\r\n \r\n addControl(ConfigGroup.ELABORATE_TOP, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.ELABORATE_TOP), leftColShort));\r\n addControl(ConfigGroup.ENABLE_ASSERTIONS, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.ENABLE_ASSERTIONS), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_IGNORE, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_IGNORE), leftColShort));\r\n addControl(ConfigGroup.SIM_BUFFER_RECORD, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_BUFFER_RECORD), leftColShort));\r\n addControl(ConfigGroup.SIM_TRACE, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TRACE), leftColShort));\r\n addControl(ConfigGroup.SIM_TYPE_CHECK, ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.SIM_TYPE_CHECK), leftColShort));\r\n \r\n addControl(ConfigGroup.SIM_INPUT_FILE, ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.SIM_INPUT_FILE), rightCol, true, true));\r\n addControl(ConfigGroup.SIM_OUTPUT_FILE, ControlRenderingFactory.renderConfigFileSelect((ConfigFile)getConfigs().get(ConfigGroup.SIM_OUTPUT_FILE), rightCol, true, true));\r\n final UpdatableControlIF modelPath = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.MODEL_PATH), rightCol); \r\n final UpdatableControlIF modelParams = ControlRenderingFactory.renderConfig(getConfigs().get(ConfigGroup.TOP_MODEL_PARAMS), rightCol); \r\n addControl(ConfigGroup.MESSAGE_SUPPRESS_IDS, ControlRenderingFactory.renderConfig((ConfigList)getConfigs().get(ConfigGroup.MESSAGE_SUPPRESS_IDS), rightCol));\r\n\r\n addControl(ConfigGroup.MODEL_PATH, modelPath);\r\n addControl(ConfigGroup.RUN_DIR, runDir);\r\n addControl(ConfigGroup.TOP_MODEL_NAME, topName);\r\n addControl(ConfigGroup.TOP_MODEL_PARAMS, modelParams);\r\n\r\n // If the user uses the button to set the model by file selection, overide any values in \r\n // the relevent fields\r\n topFile.addModifyListener(new ConfigModificationListener(){\r\n public void registerModification (int type) { \r\n // Set to false to only update in case of no user setting.\r\n final boolean forceUpdate = true;\r\n\r\n ConfigFile topFileConfig = (ConfigFile)getConfigs().get(ConfigGroup.TOP_MODEL_FILE);\r\n // In case of spurious events ignore them (possible?)\r\n if (!topFileConfig.isUserSpecified())\r\n return;\r\n\r\n // Update the run directory whenever the top file is updated\r\n ConfigFile runDirConfig = (ConfigFile)getConfigs().get(ConfigGroup.RUN_DIR);\r\n if (forceUpdate/* || !runDirConfig.isUserSpecified()*/)\r\n runDirConfig.setValue(topFileConfig.getValueFile().getParent(), true);\r\n runDir.updateValue();\r\n\r\n // Update the top level model name\r\n ConfigString topNameConfig = (ConfigString)getConfigs().get(ConfigGroup.TOP_MODEL_NAME);\r\n if (forceUpdate/* || !topNameConfig.isUserSpecified()*/)\r\n {\r\n String name = topFileConfig.getValueFile().getName();\r\n name = name.indexOf('.') > 0 ? name.substring(0, name.lastIndexOf('.')):name;\r\n topNameConfig.setValue(name, true);\r\n }\r\n topName.updateValue();\r\n\r\n // Ensure that the model path contains the run directory\r\n ConfigList modelPathConfig = (ConfigList)getConfigs().get(ConfigGroup.MODEL_PATH);\r\n if (!modelPathConfig.getValue().contains(runDirConfig.getValue()))\r\n {\r\n // The contract for setValue on collections is to append\r\n modelPathConfig.addValue(Collections.singletonList(runDirConfig.getValue()), modelPathConfig.isUserSpecified());\r\n }\r\n modelPath.updateValue();\r\n\r\n // Update the model parameters\r\n ConfigMap paramsConfig = (ConfigMap)getConfigs().get(ConfigGroup.TOP_MODEL_PARAMS);\r\n if (forceUpdate/* || !paramsConfig.isUserSpecified()*/)\r\n {\r\n String[] modelPathArr = (String[])modelPathConfig.getValue().toArray(new String[0]);\r\n try {\r\n List<TopModelParamParse.ModelParameter> params = TopModelParamParse.parseModel(topNameConfig.getValue(), modelPathArr);\r\n Map map = new HashMap();\r\n for (ModelParameter mp : params)\r\n map.put(mp.getName(), mp.getValue());\r\n paramsConfig.setValue(map, false);\r\n } catch (TopModelParamParse.ModelAnalysisException exc) {\r\n Logging.dbg().severe(\"Error loading top model \" + exc);\r\n }\r\n }\r\n modelParams.updateValue();\r\n }\r\n });\r\n\r\n // The topFile control must be added AFTER the above modificationListener is added\r\n // so that the changes instituted there will be reflected in the call to updateLaunchConfigurationDialog().\r\n addControl(ConfigGroup.TOP_MODEL_FILE, topFile);\r\n\r\n tabScroller.setMinSize(tab.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n }",
"private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}",
"private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}",
"private Composite createTopBar(Composite parent, int span) {\n\t\tComposite c = new Composite(parent, SWT.NO_BACKGROUND);\n\n\t\tGridData cData = new GridData();\n\t\tcData.horizontalSpan = span;\n\t\tcData.horizontalAlignment = GridData.FILL;\n\t\tc.setLayoutData(cData);\n\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 3;\n\t\tc.setLayout(layout);\n\n\n\t\tLabel weightLabel = new Label(c, SWT.LEFT);\n\t\tGridData weightData = new GridData();\n\t\tweightData.grabExcessHorizontalSpace = true;\n\t\tweightLabel.setLayoutData(weightData);\n\t\tweightLabel.setText(Resources.getMessage(\"RiskWizard.19\"));\n\t\tFontDescriptor boldDescriptor = FontDescriptor.createFrom(weightLabel.getFont()).setStyle(SWT.BOLD);\n\t\tFont boldFont = boldDescriptor.createFont(weightLabel.getDisplay());\n\t\tweightLabel.setFont(boldFont);\n\t\tfileLabel = weightLabel;\n\t\t\n\t\tfinal Combo visualizationDropDown = new Combo(c, SWT.DROP_DOWN | SWT.READ_ONLY | SWT.BORDER);\n\t\tString monitorTitle = Resources.getMessage(\"RiskWizard.12\");\n\t\tString stacksTitle = Resources.getMessage(\"RiskWizard.13\");\n\t\tvisualizationDropDown.add(monitorTitle);\n\t\tvisualizationDropDown.add(stacksTitle);\n\t\tvisualizationDropDown.setText(monitorTitle);\n\t\tvisualizationDropDown.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString selected = visualizationDropDown.getText(); \n\t\t\t\tif(selected.equals(stacksTitle)) {\n\t\t\t\t\t//System.out.println(\"Select Stacks\");\n\t\t\t\t\tshowStacksVisualization();\n\t\t\t\t} else if(selected.equals(monitorTitle)) {\n\t\t\t\t\t//System.out.println(\"Select Monitor\");\n\t\t\t\t\tshowMonitorVisualization();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tLabel separator = new Label(c, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tGridData sepData = new GridData();\n\t\tsepData.horizontalSpan = layout.numColumns;\n\t\tsepData.grabExcessHorizontalSpace = true;\n\t\tsepData.horizontalAlignment = GridData.FILL;\n\t\tseparator.setLayoutData(sepData);\n\n\t\ttopBar = c;\n\t\treturn c;\n\t}",
"private void createToolbar() {\r\n // the visible toolbar is actually a toolbar next to a combobox.\r\n // That is why we need this extra composite, layout and numColums = 2.\r\n final Composite parent = new Composite(SHELL, SWT.FILL);\r\n final GridLayout layout = new GridLayout();\r\n layout.numColumns = 2;\r\n parent.setLayout(layout);\r\n\r\n final ToolBar bar = new ToolBar(parent, SWT.NONE);\r\n final GridData data = new GridData();\r\n data.heightHint = 55;\r\n data.grabExcessVerticalSpace = false;\r\n bar.setLayoutData(data);\r\n bar.setLayout(new GridLayout());\r\n\r\n createOpenButton(bar);\r\n\r\n createGenerateButton(bar);\r\n\r\n createSaveButton(bar);\r\n\r\n createSolveButton(bar);\r\n\r\n createAboutButton(bar);\r\n\r\n algorithmCombo = new AlgorithmCombo(parent);\r\n }",
"private void buildUserDataPanel() {\r\n\t\tJPanel user_info_panel = new JPanel();\r\n\t\tuser_info_panel.setBorder(new BevelBorder(BevelBorder.LOWERED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tuser_info_panel.setBackground(INNER_BACKGROUND_COLOR);\r\n\t\tuser_info_panel.setBounds(201, 234, 213, 100);\r\n\t\tuser_info_panel.setLayout(new GridLayout(3, 2));\r\n\t\tJLabel label_2 = new JLabel(\" User:\");\r\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_2);\r\n\t\tJLabel label = new JLabel(\"Biff McMann\");\r\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label);\r\n\t\tJLabel label_3 = new JLabel(\" Position:\");\r\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_3);\r\n\t\tJLabel label_1 = new JLabel(\"Program Chair\");\r\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_1);\r\n\t\tJLabel label_4 = new JLabel(\" Date:\");\r\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_4);\r\n\t\tJLabel label_5 = new JLabel(\"9/23/2013\");\r\n\t\tlabel_5.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_5);\r\n\t\tmain_panel.add(user_info_panel);\r\n\r\n\t}",
"private JPanel initButtons() {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout(FlowLayout.CENTER, 3, 3));\n\t\tsigninButton.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tsigninButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// validate the credentials of the user being logged in \n\t\t\t\tif(ValidCredentials()){\n\t\t\t\t\t// if credentials are valid, initialize differnt panes\n\t\t\t\t\t// search , committee, update profile and logout tabs\n\t\t\t\t\tparentFrame.getContentPane().removeAll();\n\t\t\t\t\tparentFrame.getContentPane().revalidate();\n\t\t\t\t\tparentFrame.getContentPane().repaint();\n\t\t\t\t\tparentFrame.getContentPane().setLayout(new BorderLayout());\n\t\t\t\t\t\n\t\t\t\t\tJTabbedPane tabbedPane = new JTabbedPane();\n\t\t\t\t\ttabbedPane.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\t\t\t\ttabbedPane.addTab(\"Search\", new SearchUI(null));\n\t\t\t\t\ttabbedPane.addTab(\"Committee List\", new CommitteeListUI());\n\t\t\t\t\ttabbedPane.addTab(\"Update Profile\", new UpdateProfileUI());\n\t\t\t\t\t\n\t\t\t\t\ttabbedPane.add(\"Logout\", new LogoutUI());\n\t\t\t\t\tparentFrame.getContentPane().add(tabbedPane);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t// if the credentials are invalid, pop up the following message window\n\t\t\t\t\tjOptionPane.showMessageDialog(LoginUI.this,\n\t\t\t\t\t\t\t\"Invalid username or password\",\n\t\t\t\t\t\t\t\"Login\",\n\t\t\t\t\t\t\tjOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t// reset username and password\n\t\t\t\t\tuserNameField.setText(\"\");\n\t\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tpanel.add(signinButton);\n\t\treturn panel;\n\t}",
"private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}",
"private void buildControls() {\n\t\tsetLayout(new FillLayout());\n\t\tSashForm child = new SashForm(this, SWT.VERTICAL);\n\t\ttable = new Table(child, SWT.FULL_SELECTION | SWT.MULTI | SWT.BORDER );\n\t\ttable.addSelectionListener(createSelctionListener());\n\t\tviewer = buildAndLayoutTable(table);\n\t\taddDNDSupport(viewer);\n\t\tattachContentProvider(viewer);\n\t\tattachLabelProvider(viewer);\n\t\tsingleRating = new RatingTable(child, null, SWT.HORIZONTAL, model);\n\t\t//Zum Debuggen ist das Textfeld sehr nützlich\n\t\t//Text target = new Text(child, SWT.NONE);\n\t\t//initDropTest(target);\n\t\t//child.setWeights(new int[] {2, 1, 1});\n\t\tchild.setWeights(new int[]{2, 1});\n\t\taddFilter(viewer);\n\t\tviewer.setInput(webtrace);\n\t}",
"private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }",
"private void createButtons() {\n Button helpSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -5797923866320649518L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateToHelp();\n }\n });\n\n// Button skillSettingsButton = new Button(\"\",\n// new Button.ClickListener() {\n// private static final long serialVersionUID = 7147554466396214893L;\n//\n// @Override\n// public void buttonClick(ClickEvent event) {\n// settingsPresenter.navigateToSkills();\n// }\n// });\n// skillSettingsButton.addStyleName(\"icon-cog\");\n\n Button medicSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = 7147554466396214893L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateToMedic();\n }\n });\n\n\n Button logoutButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -1096188732209266611L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateBack();\n }\n });\n logoutButton.addStyleName(\"default\");\n\n // Adding and aligning the 3 Buttons.\n //Setting a Description for the buttons which is displayed when flying over the button\n super.verticalNavigation.addComponent(helpSettingsButton);\n super.verticalNavigation.setComponentAlignment(helpSettingsButton, Alignment.MIDDLE_CENTER);\n helpSettingsButton.setDescription(\"Set the Help options for the Patient\");\n helpSettingsButton.setIcon(new ThemeResource(\"img/contacgg.png\"), BUTTON_HELP_SETTINGS);\n helpSettingsButton.setWidth(BUTTON_WIDTH);\n helpSettingsButton.setHeight(BUTTON_HEIGHT);\n\n super.verticalNavigation.addComponent(medicSettingsButton);\n super.verticalNavigation.setComponentAlignment(medicSettingsButton, Alignment.MIDDLE_CENTER);\n medicSettingsButton.setDescription(\"Set the Medication options for the Patient\");\n medicSettingsButton.setIcon(new ThemeResource(\"img/medicine-icon-cog.png\"),BUTTON_MEDIC_SETTINGS);\n medicSettingsButton.setWidth(BUTTON_WIDTH);\n medicSettingsButton.setHeight(BUTTON_HEIGHT);\n\n// addComponent(skillSettingsButton);\n// setComponentAlignment(skillSettingsButton, Alignment.MIDDLE_CENTER);\n// skillSettingsButton.setDescription(\"Set the Skill options for the Patient\");\n// skillSettingsButton.setIcon(new ThemeResource(\"img/skill2-icon-cog.png\"), BUTTON_SKILL_SETTINGS);\n// skillSettingsButton.setWidth(BUTTON_WIDTH);\n// skillSettingsButton.setHeight(BUTTON_HEIGHT);\n\n logoutButton.setWidth(BUTTON_WIDTH);\n super.verticalNavigation.addComponent(logoutButton);\n super.verticalNavigation.setComponentAlignment(logoutButton, Alignment.MIDDLE_CENTER);\n logoutButton.setDescription(\"You will be logged out\");\n logoutButton.setIcon(new ThemeResource(\"img/logout.png\"), BUTTON_LOGOUT);\n logoutButton.setWidth(BUTTON_WIDTH);\n logoutButton.setHeight(BUTTON_HEIGHT);\n\n }",
"public void addPanelControls() {\n\t\tlist_sort = new JComboBox<>(new String[] { \"MSSV\", \"HoTen\", \"NTNS\" });\r\n\t\tbtn_sapxep = new JButton(\"Sap xep\");\r\n\t\tbtn_them = new JButton(\"Them\");\r\n\t\tbtn_xoa = new JButton(\"Xoa\");\r\n\t\tbtn_save = new JButton(\"Save\");\r\n\t\tbtn_load = new JButton(\"Load\");\r\n\r\n\t\tJPanel mControlPanel = new JPanel(new GridLayout(5, 1));\r\n\t\tmControlPanel.add(btn_them);\r\n\t\tmControlPanel.add(btn_xoa);\r\n\t\tJPanel sapxepPanel = new JPanel();\r\n\t\tsapxepPanel.add(list_sort);\r\n\t\tsapxepPanel.add(btn_sapxep);\r\n\t\tmControlPanel.add(sapxepPanel);\r\n\t\tmControlPanel.add(btn_save);\r\n\t\tmControlPanel.add(btn_load);\r\n\r\n\t\tmControlPanel.setPreferredSize(new Dimension(380, 200));\r\n\t\tmControlPanel.setBorder(new TitledBorder(\"Controls\"));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.weightx = 0.5;\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 0;\r\n\t\tpanel.add(mControlPanel,c);\r\n\t}",
"private void createpanel4() {\r\n\t\tpanels[3].setLayout(new FlowLayout(FlowLayout.CENTER, 20, 0));\r\n\r\n\t\texecute = new JButton(\"Login\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\texecute.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\texecute.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\texecute.setForeground(Color.BLACK);\r\n\t\texecute.setBorderPainted(true);\r\n\t\texecute.setContentAreaFilled(false);\r\n\t\texecute.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcancel = new JButton(\"Cancel\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcancel.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcancel.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcancel.setForeground(Color.BLACK);\r\n\t\tcancel.setBorderPainted(true);\r\n\t\tcancel.setContentAreaFilled(false);\r\n\t\tcancel.setFont(customFont.deriveFont(15f));\r\n\r\n\t\tcreateAccount = new JButton(\"New Account\") {\r\n\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tcreateAccount.setOpaque(false);\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\"))\r\n\t\t\tcreateAccount.setForeground(Color.WHITE);\r\n\t\telse\r\n\t\t\tcreateAccount.setForeground(Color.BLACK);\r\n\t\tcreateAccount.setBorderPainted(true);\r\n\t\tcreateAccount.setContentAreaFilled(false);\r\n\t\tcreateAccount.setFont(customFont.deriveFont(10f));\r\n\r\n\t\tcancel.setPreferredSize(new Dimension(120, 30));\r\n\t\tcreateAccount.setPreferredSize(new Dimension(120, 30));\r\n\t\texecute.setPreferredSize(new Dimension(120, 30));\r\n\r\n\t\tpanels[3].add(execute);\r\n\t\tpanels[3].add(createAccount);\r\n\t\tpanels[3].add(cancel);\r\n\t\tpanels[3].setOpaque(false);\r\n\t\tallComponents.add(panels[3]);\r\n\t\tthis.backPanel.add(allComponents);\r\n\t\tthis.getContentPane().add(backPanel);\r\n\t\tpanels[3].revalidate();\r\n\r\n\t\tcreateAccount.addMouseListener(\r\n\t\t\t\tnew LoginListener(createAccount, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\tcancel.addMouseListener(new LoginListener(cancel, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t\texecute.addMouseListener(\r\n\t\t\t\tnew LoginListener(execute, userinfo, passwordbox, guicontroller, cancel, createAccount));\r\n\t}",
"private void $$$setupUI$$$() {\n createUIComponents();\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n scrollPane1.setViewportView(table);\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n panel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonRegister = new JButton();\n buttonRegister.setText(\"Track\");\n panel1.add(buttonRegister, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonMenu = new JButton();\n buttonMenu.setText(\"Menu\");\n panel1.add(buttonMenu, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }",
"protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}",
"private void controllersUI() {\n\t\tc.setLayout(null);\n\t\tc.setBackground(whiteColor);\n\t\t\n\t\tlbPullTitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlbPullTitle.setOpaque(true);\n\t\tlbPullTitle.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 18));\n\t\tlbPullTitle.setBounds(0, 0, 320, 52);\n\t\t\n\t\ttxtPulls.setFont(new Font(\"Helvetica Neue\", Font.PLAIN, 12));\n\t\ttxtPulls.setBounds(0, 52, 320, 420);\n\t\t\n\t\ttxtMsg.setBounds(10, 480, 230, 35);\n\t\tbtnMsg.setBounds(250, 476, 60, 40);\n\t\t\n\t\tc.add(txtPulls);\n\t\tc.add(lbPullTitle);\n\t\tc.add(btnMsg);\n\t\tc.add(txtMsg);\n\t\t\n\t\tbtnMsg.addActionListener(this);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n Btn_SectionGraphic = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel11 = new javax.swing.JLabel();\n ProfileHeading = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n Btn_SectionGraphic1 = new javax.swing.JButton();\n jSeparator3 = new javax.swing.JSeparator();\n jLabel13 = new javax.swing.JLabel();\n Btn_SectionGraphic2 = new javax.swing.JButton();\n jSeparator4 = new javax.swing.JSeparator();\n Btn_SectionGraphic4 = new javax.swing.JButton();\n Btn_SectionGraphic5 = new javax.swing.JButton();\n Btn_SectionGraphic6 = new javax.swing.JButton();\n Btn_SectionGraphic7 = new javax.swing.JButton();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jSeparator6 = new javax.swing.JSeparator();\n jSeparator7 = new javax.swing.JSeparator();\n jSeparator8 = new javax.swing.JSeparator();\n jSeparator9 = new javax.swing.JSeparator();\n Btn_SectionGraphic8 = new javax.swing.JButton();\n Btn_SectionGraphic9 = new javax.swing.JButton();\n Btn_SectionGraphic10 = new javax.swing.JButton();\n Btn_SectionGraphic11 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jSeparator10 = new javax.swing.JSeparator();\n jSeparator11 = new javax.swing.JSeparator();\n jSeparator12 = new javax.swing.JSeparator();\n jSeparator13 = new javax.swing.JSeparator();\n Btn_SectionGraphic12 = new javax.swing.JButton();\n Btn_SectionGraphic13 = new javax.swing.JButton();\n Btn_SectionGraphic14 = new javax.swing.JButton();\n Btn_SectionGraphic15 = new javax.swing.JButton();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jSeparator14 = new javax.swing.JSeparator();\n jSeparator15 = new javax.swing.JSeparator();\n jSeparator16 = new javax.swing.JSeparator();\n jSeparator17 = new javax.swing.JSeparator();\n Btn_SectionGraphic16 = new javax.swing.JButton();\n Btn_SectionGraphic17 = new javax.swing.JButton();\n Btn_SectionGraphic18 = new javax.swing.JButton();\n Btn_SectionGraphic19 = new javax.swing.JButton();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n jLabel30 = new javax.swing.JLabel();\n jSeparator18 = new javax.swing.JSeparator();\n jSeparator19 = new javax.swing.JSeparator();\n jSeparator20 = new javax.swing.JSeparator();\n jSeparator21 = new javax.swing.JSeparator();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n Btn_SectionGraphic.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic.setBorder(null);\n Btn_SectionGraphic.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphicActionPerformed(evt);\n }\n });\n\n jSeparator2.setForeground(new java.awt.Color(0, 122, 204));\n\n jLabel11.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(45, 45, 48));\n jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel11.setText(\"Social Media Design \");\n\n ProfileHeading.setFont(new java.awt.Font(\"Arial\", 0, 36)); // NOI18N\n ProfileHeading.setForeground(new java.awt.Color(129, 129, 131));\n ProfileHeading.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n ProfileHeading.setText(\"Graphics & Design\");\n\n jLabel12.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(45, 45, 48));\n jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel12.setText(\"Vector Tracing \");\n\n Btn_SectionGraphic1.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic1.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic1.setBorder(null);\n Btn_SectionGraphic1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic1ActionPerformed(evt);\n }\n });\n\n jSeparator3.setForeground(new java.awt.Color(0, 122, 204));\n\n jLabel13.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel13.setForeground(new java.awt.Color(45, 45, 48));\n jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel13.setText(\"Invitations \");\n\n Btn_SectionGraphic2.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic2.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic2.setBorder(null);\n Btn_SectionGraphic2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic2ActionPerformed(evt);\n }\n });\n\n jSeparator4.setForeground(new java.awt.Color(0, 122, 204));\n\n Btn_SectionGraphic4.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic4.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic4.setBorder(null);\n Btn_SectionGraphic4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic4ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic5.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic5.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic5.setBorder(null);\n Btn_SectionGraphic5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic5ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic6.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic6.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic6.setBorder(null);\n Btn_SectionGraphic6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic6ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic7.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic7.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic7.setBorder(null);\n Btn_SectionGraphic7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic7ActionPerformed(evt);\n }\n });\n\n jLabel15.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(45, 45, 48));\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setText(\"Logo Design\");\n\n jLabel16.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(45, 45, 48));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\" Flyers & Brochures \");\n\n jLabel17.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(45, 45, 48));\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\"Packaging Design \");\n\n jLabel18.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(45, 45, 48));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Illustration \");\n\n jSeparator6.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator7.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator8.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator9.setForeground(new java.awt.Color(0, 122, 204));\n\n Btn_SectionGraphic8.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic8.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic8.setBorder(null);\n Btn_SectionGraphic8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic8ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic9.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic9.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic9.setBorder(null);\n Btn_SectionGraphic9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic9ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic10.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic10.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic10.setBorder(null);\n Btn_SectionGraphic10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic10ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic11.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic11.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic11.setBorder(null);\n Btn_SectionGraphic11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic11ActionPerformed(evt);\n }\n });\n\n jLabel19.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(45, 45, 48));\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Book & Album Covers \");\n\n jLabel20.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(45, 45, 48));\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Portraits & Caricatures\");\n\n jLabel21.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(45, 45, 48));\n jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel21.setText(\"Business Cards & Stationery\");\n\n jLabel22.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(45, 45, 48));\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Web & Mobile Design \");\n\n jSeparator10.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator11.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator12.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator13.setForeground(new java.awt.Color(0, 122, 204));\n\n Btn_SectionGraphic12.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic12.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic12.setBorder(null);\n Btn_SectionGraphic12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic12ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic13.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic13.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic13.setBorder(null);\n Btn_SectionGraphic13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic13ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic14.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic14.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic14.setBorder(null);\n Btn_SectionGraphic14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic14ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic15.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic15.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic15.setBorder(null);\n Btn_SectionGraphic15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic15ActionPerformed(evt);\n }\n });\n\n jLabel23.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(45, 45, 48));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"Presentation Design\");\n\n jLabel24.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(45, 45, 48));\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"Infographic Design \");\n\n jLabel25.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel25.setForeground(new java.awt.Color(45, 45, 48));\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Cartoons & Comics \");\n\n jLabel26.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel26.setForeground(new java.awt.Color(45, 45, 48));\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Architecture & Floor Plans \");\n\n jSeparator14.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator15.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator16.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator17.setForeground(new java.awt.Color(0, 122, 204));\n\n Btn_SectionGraphic16.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic16.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic16.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic16.setBorder(null);\n Btn_SectionGraphic16.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic16ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic17.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic17.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic17.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic17.setBorder(null);\n Btn_SectionGraphic17.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic17ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic18.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic18.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic18.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic18.setBorder(null);\n Btn_SectionGraphic18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic18ActionPerformed(evt);\n }\n });\n\n Btn_SectionGraphic19.setBackground(new java.awt.Color(255, 255, 255));\n Btn_SectionGraphic19.setForeground(new java.awt.Color(85, 166, 221));\n Btn_SectionGraphic19.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/freelauncing/marketplace/Tree Structure_26px.png\"))); // NOI18N\n Btn_SectionGraphic19.setBorder(null);\n Btn_SectionGraphic19.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Btn_SectionGraphic19ActionPerformed(evt);\n }\n });\n\n jLabel27.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel27.setForeground(new java.awt.Color(45, 45, 48));\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"3D Models & Product Design\");\n\n jLabel28.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(45, 45, 48));\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"T-Shirts & Merchandise \");\n\n jLabel29.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(45, 45, 48));\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"Photoshop Editing \");\n\n jLabel30.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(45, 45, 48));\n jLabel30.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel30.setText(\"Banner Ads \");\n\n jSeparator18.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator19.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator20.setForeground(new java.awt.Color(0, 122, 204));\n\n jSeparator21.setForeground(new java.awt.Color(0, 122, 204));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(82, 82, 82)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic7))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator9, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic6))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic5))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic4))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic11))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator13, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic10))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator12, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic9))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator11, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic8))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator10, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic15))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator17, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic14))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator16, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic13))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator15, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic12))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator14, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic2))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic19))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator21, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic18))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator20, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic17))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator19, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(89, 89, 89)\n .addComponent(Btn_SectionGraphic16))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(75, 75, 75)\n .addComponent(jSeparator18, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(93, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ProfileHeading, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ProfileHeading, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(84, 84, 84)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator9, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel15))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel16))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel17))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel18)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator13, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel19))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator12, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator11, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel21))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator10, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator17, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel23))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator16, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator15, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel25))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator14, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel26)))\n .addGap(19, 19, 19)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator21, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel27))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator20, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel28))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator19, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel29))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator18, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel30)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel11))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel12))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Btn_SectionGraphic2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13)))\n .addContainerGap(118, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public void displayProfileData() {\n MimsJTable table = new MimsJTable(ui);\n table.setPlanes(planes);\n table.setStats(stats);\n table.setRois(rois);\n table.setImages(images);\n String[] columnnames = table.getColumnNames();\n //MimsJTable requires multi-dim array, so need to convert dataset\n Object[][] exportedData = FileUtilities.convertXYDatasetToArray(data);\n table.createCustomTable(exportedData, columnnames);\n table.showFrame();\n }",
"private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }",
"private void createUI(Container pane) {\n try {\n setupTrayIcon();\n } catch (Exception e) { }\n\n EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);\n GridBagConstraints gbc = new GridBagConstraints();\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weightx = 1; gbc.ipadx = 2; gbc.gridx = 0;\n gbc.weighty = 0; gbc.ipady = 2; gbc.gridy = 0;\n gbc.anchor = GridBagConstraints.PAGE_START;\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | UnsupportedLookAndFeelException | IllegalAccessException e) {\n LOGGER.error(\"[!] Exception setting system theme:\", e);\n }\n\n ripTextfield = new JTextField(\"\", 20);\n ripTextfield.addMouseListener(new ContextMenuMouseListener());\n ImageIcon ripIcon = new ImageIcon(mainIcon);\n ripButton = new JButton(\"<html><font size=\\\"5\\\"><b>Rip</b></font></html>\", ripIcon);\n stopButton = new JButton(\"<html><font size=\\\"5\\\"><b>Stop</b></font></html>\");\n stopButton.setEnabled(false);\n try {\n Image stopIcon = ImageIO.read(getClass().getClassLoader().getResource(\"stop.png\"));\n stopButton.setIcon(new ImageIcon(stopIcon));\n } catch (Exception ignored) { }\n JPanel ripPanel = new JPanel(new GridBagLayout());\n ripPanel.setBorder(emptyBorder);\n\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weightx = 0;\n gbc.gridx = 0; ripPanel.add(new JLabel(\"URL:\", JLabel.RIGHT), gbc);\n gbc.weightx = 1;\n gbc.weighty = 1;\n gbc.gridx = 1; ripPanel.add(ripTextfield, gbc);\n gbc.weighty = 0;\n gbc.weightx = 0;\n gbc.gridx = 2; ripPanel.add(ripButton, gbc);\n gbc.gridx = 3; ripPanel.add(stopButton, gbc);\n gbc.weightx = 1;\n\n statusLabel = new JLabel(rb.getString(\"inactive\"));\n statusLabel.setHorizontalAlignment(JLabel.CENTER);\n openButton = new JButton();\n openButton.setVisible(false);\n JPanel statusPanel = new JPanel(new GridBagLayout());\n statusPanel.setBorder(emptyBorder);\n\n gbc.gridx = 0; statusPanel.add(statusLabel, gbc);\n gbc.gridy = 1; statusPanel.add(openButton, gbc);\n gbc.gridy = 0;\n\n JPanel progressPanel = new JPanel(new GridBagLayout());\n progressPanel.setBorder(emptyBorder);\n statusProgress = new JProgressBar(0, 100);\n progressPanel.add(statusProgress, gbc);\n\n JPanel optionsPanel = new JPanel(new GridBagLayout());\n optionsPanel.setBorder(emptyBorder);\n optionLog = new JButton(rb.getString(\"Log\"));\n optionHistory = new JButton(rb.getString(\"History\"));\n optionQueue = new JButton(rb.getString(\"Queue\"));\n optionConfiguration = new JButton(rb.getString(\"Configuration\"));\n optionLog.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionHistory.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionQueue.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n optionConfiguration.setFont(optionLog.getFont().deriveFont(Font.PLAIN));\n try {\n Image icon;\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"comment.png\"));\n optionLog.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"time.png\"));\n optionHistory.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"list.png\"));\n optionQueue.setIcon(new ImageIcon(icon));\n icon = ImageIO.read(getClass().getClassLoader().getResource(\"gear.png\"));\n optionConfiguration.setIcon(new ImageIcon(icon));\n } catch (Exception e) { }\n gbc.gridx = 0; optionsPanel.add(optionLog, gbc);\n gbc.gridx = 1; optionsPanel.add(optionHistory, gbc);\n gbc.gridx = 2; optionsPanel.add(optionQueue, gbc);\n gbc.gridx = 3; optionsPanel.add(optionConfiguration, gbc);\n\n logPanel = new JPanel(new GridBagLayout());\n logPanel.setBorder(emptyBorder);\n logText = new JTextPane();\n logText.setEditable(false);\n JScrollPane logTextScroll = new JScrollPane(logText);\n logTextScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n logPanel.setVisible(false);\n logPanel.setPreferredSize(new Dimension(300, 250));\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n logPanel.add(logTextScroll, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n\n historyPanel = new JPanel(new GridBagLayout());\n historyPanel.setBorder(emptyBorder);\n historyPanel.setVisible(false);\n historyPanel.setPreferredSize(new Dimension(300, 250));\n historyTableModel = new AbstractTableModel() {\n private static final long serialVersionUID = 1L;\n @Override\n public String getColumnName(int col) {\n return HISTORY.getColumnName(col);\n }\n @Override\n public Class<?> getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }\n @Override\n public Object getValueAt(int row, int col) {\n return HISTORY.getValueAt(row, col);\n }\n @Override\n public int getRowCount() {\n return HISTORY.toList().size();\n }\n @Override\n public int getColumnCount() {\n return HISTORY.getColumnCount();\n }\n @Override\n public boolean isCellEditable(int row, int col) {\n return (col == 0 || col == 4);\n }\n @Override\n public void setValueAt(Object value, int row, int col) {\n if (col == 4) {\n HISTORY.get(row).selected = (Boolean) value;\n historyTableModel.fireTableDataChanged();\n }\n }\n };\n historyTable = new JTable(historyTableModel);\n historyTable.addMouseListener(new HistoryMenuMouseListener());\n historyTable.setAutoCreateRowSorter(true);\n for (int i = 0; i < historyTable.getColumnModel().getColumnCount(); i++) {\n int width = 130; // Default\n switch (i) {\n case 0: // URL\n width = 270;\n break;\n case 3:\n width = 40;\n break;\n case 4:\n width = 15;\n break;\n }\n historyTable.getColumnModel().getColumn(i).setPreferredWidth(width);\n }\n JScrollPane historyTableScrollPane = new JScrollPane(historyTable);\n historyButtonRemove = new JButton(rb.getString(\"remove\"));\n historyButtonClear = new JButton(rb.getString(\"clear\"));\n historyButtonRerip = new JButton(rb.getString(\"re-rip.checked\"));\n gbc.gridx = 0;\n // History List Panel\n JPanel historyTablePanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n historyTablePanel.add(historyTableScrollPane, gbc);\n gbc.ipady = 180;\n gbc.gridy = 0;\n historyPanel.add(historyTablePanel, gbc);\n gbc.ipady = 0;\n JPanel historyButtonPanel = new JPanel(new GridBagLayout());\n historyButtonPanel.setPreferredSize(new Dimension(300, 10));\n historyButtonPanel.setBorder(emptyBorder);\n gbc.gridx = 0; historyButtonPanel.add(historyButtonRemove, gbc);\n gbc.gridx = 1; historyButtonPanel.add(historyButtonClear, gbc);\n gbc.gridx = 2; historyButtonPanel.add(historyButtonRerip, gbc);\n gbc.gridy = 1; gbc.gridx = 0;\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n historyPanel.add(historyButtonPanel, gbc);\n\n queuePanel = new JPanel(new GridBagLayout());\n queuePanel.setBorder(emptyBorder);\n queuePanel.setVisible(false);\n queuePanel.setPreferredSize(new Dimension(300, 250));\n queueListModel = new DefaultListModel();\n JList queueList = new JList(queueListModel);\n queueList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n queueList.addMouseListener(new QueueMenuMouseListener());\n JScrollPane queueListScroll = new JScrollPane(queueList,\n JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n for (String item : Utils.getConfigList(\"queue\")) {\n queueListModel.addElement(item);\n }\n updateQueueLabel();\n gbc.gridx = 0;\n JPanel queueListPanel = new JPanel(new GridBagLayout());\n gbc.fill = GridBagConstraints.BOTH;\n gbc.weighty = 1;\n queueListPanel.add(queueListScroll, gbc);\n queuePanel.add(queueListPanel, gbc);\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.weighty = 0;\n gbc.ipady = 0;\n\n configurationPanel = new JPanel(new GridBagLayout());\n configurationPanel.setBorder(emptyBorder);\n configurationPanel.setVisible(false);\n // TODO Configuration components\n configUpdateButton = new JButton(rb.getString(\"check.for.updates\"));\n configUpdateLabel = new JLabel( rb.getString(\"current.version\") + \": \" + UpdateUtils.getThisJarVersion(), JLabel.RIGHT);\n configThreadsLabel = new JLabel(rb.getString(\"max.download.threads\") + \":\", JLabel.RIGHT);\n configTimeoutLabel = new JLabel(rb.getString(\"timeout.mill\"), JLabel.RIGHT);\n configRetriesLabel = new JLabel(rb.getString(\"retry.download.count\"), JLabel.RIGHT);\n configThreadsText = new JTextField(Integer.toString(Utils.getConfigInteger(\"threads.size\", 3)));\n configTimeoutText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.timeout\", 60000)));\n configRetriesText = new JTextField(Integer.toString(Utils.getConfigInteger(\"download.retries\", 3)));\n configOverwriteCheckbox = addNewCheckbox(rb.getString(\"overwrite.existing.files\"), \"file.overwrite\", false);\n configAutoupdateCheckbox = addNewCheckbox(rb.getString(\"auto.update\"), \"auto.update\", true);\n configPlaySound = addNewCheckbox(rb.getString(\"sound.when.rip.completes\"), \"play.sound\", false);\n configShowPopup = addNewCheckbox(rb.getString(\"notification.when.rip.starts\"), \"download.show_popup\", false);\n configSaveOrderCheckbox = addNewCheckbox(rb.getString(\"preserve.order\"), \"download.save_order\", true);\n configSaveLogs = addNewCheckbox(rb.getString(\"save.logs\"), \"log.save\", false);\n configSaveURLsOnly = addNewCheckbox(rb.getString(\"save.urls.only\"), \"urls_only.save\", false);\n configSaveAlbumTitles = addNewCheckbox(rb.getString(\"save.album.titles\"), \"album_titles.save\", true);\n configClipboardAutorip = addNewCheckbox(rb.getString(\"autorip.from.clipboard\"), \"clipboard.autorip\", false);\n configSaveDescriptions = addNewCheckbox(rb.getString(\"save.descriptions\"), \"descriptions.save\", true);\n configPreferMp4 = addNewCheckbox(rb.getString(\"prefer.mp4.over.gif\"),\"prefer.mp4\", false);\n configWindowPosition = addNewCheckbox(rb.getString(\"restore.window.position\"), \"window.position\", true);\n configURLHistoryCheckbox = addNewCheckbox(rb.getString(\"remember.url.history\"), \"remember.url_history\", true);\n configUrlFileChooserButton = new JButton(rb.getString(\"download.url.list\"));\n\n configLogLevelCombobox = new JComboBox<>(new String[] {\"Log level: Error\", \"Log level: Warn\", \"Log level: Info\", \"Log level: Debug\"});\n configSelectLangComboBox = new JComboBox<>(supportedLanges);\n configLogLevelCombobox.setSelectedItem(Utils.getConfigString(\"log.level\", \"Log level: Debug\"));\n setLogLevel(configLogLevelCombobox.getSelectedItem().toString());\n configSaveDirLabel = new JLabel();\n try {\n String workingDir = (Utils.shortenPath(Utils.getWorkingDirectory()));\n configSaveDirLabel.setText(workingDir);\n configSaveDirLabel.setForeground(Color.BLUE);\n configSaveDirLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));\n } catch (Exception e) { }\n configSaveDirLabel.setToolTipText(configSaveDirLabel.getText());\n configSaveDirLabel.setHorizontalAlignment(JLabel.RIGHT);\n configSaveDirButton = new JButton(rb.getString(\"select.save.dir\") + \"...\");\n\n addItemToConfigGridBagConstraints(gbc, 0, configUpdateLabel, configUpdateButton);\n addItemToConfigGridBagConstraints(gbc, 1, configAutoupdateCheckbox, configLogLevelCombobox);\n addItemToConfigGridBagConstraints(gbc, 2, configThreadsLabel, configThreadsText);\n addItemToConfigGridBagConstraints(gbc, 3, configTimeoutLabel, configTimeoutText);\n addItemToConfigGridBagConstraints(gbc, 4, configRetriesLabel, configRetriesText);\n addItemToConfigGridBagConstraints(gbc, 5, configOverwriteCheckbox, configSaveOrderCheckbox);\n addItemToConfigGridBagConstraints(gbc, 6, configPlaySound, configSaveLogs);\n addItemToConfigGridBagConstraints(gbc, 7, configShowPopup, configSaveURLsOnly);\n addItemToConfigGridBagConstraints(gbc, 8, configClipboardAutorip, configSaveAlbumTitles);\n addItemToConfigGridBagConstraints(gbc, 9, configSaveDescriptions, configPreferMp4);\n addItemToConfigGridBagConstraints(gbc, 10, configWindowPosition, configURLHistoryCheckbox);\n addItemToConfigGridBagConstraints(gbc, 11, configSelectLangComboBox, configUrlFileChooserButton);\n addItemToConfigGridBagConstraints(gbc, 12, configSaveDirLabel, configSaveDirButton);\n\n\n\n\n emptyPanel = new JPanel();\n emptyPanel.setPreferredSize(new Dimension(0, 0));\n emptyPanel.setSize(0, 0);\n\n gbc.anchor = GridBagConstraints.PAGE_START;\n gbc.gridy = 0; pane.add(ripPanel, gbc);\n gbc.gridy = 1; pane.add(statusPanel, gbc);\n gbc.gridy = 2; pane.add(progressPanel, gbc);\n gbc.gridy = 3; pane.add(optionsPanel, gbc);\n gbc.weighty = 1;\n gbc.fill = GridBagConstraints.BOTH;\n gbc.gridy = 4; pane.add(logPanel, gbc);\n gbc.gridy = 5; pane.add(historyPanel, gbc);\n gbc.gridy = 5; pane.add(queuePanel, gbc);\n gbc.gridy = 5; pane.add(configurationPanel, gbc);\n gbc.gridy = 5; pane.add(emptyPanel, gbc);\n gbc.weighty = 0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n }",
"private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private void initActivities() {\n MainController mainController = new MainController();\n int n = mainController.getActivitiesByOwner(LoggedUser.getUser().getUsername()).size();\n panel = new JPanel(new GridLayout(n, 2, 10, 10));\n add(panel);\n for (int i = n - 1; i >= 0; i--) {\n panel.add(new JLabel(\" \" + mainController.getActivitiesByOwner\n (LoggedUser.getUser().getUsername()).get(i).getActivity()));\n panel.add(new JLabel(mainController.getActivitiesByOwner\n (LoggedUser.getUser().getUsername()).get(i).getTime() + \" \"));\n }\n }",
"private JComponent makeStudentProfilePanel() {\n\t\t\n\t\t//Initiate profilePanel\n\t\tJPanel profilePanel = new JPanel();\n\t\tprofilePanel.setLayout(new GridLayout(1,3,1,1));\n\t\tprofilePanel.setSize(studentPortalWidth, studentPortalHeight);\n\t\tprofilePanel.setBorder(compound);\n\t\t\t\t\n\t\t//Generate profilePanel's left component\n\t\tTitledBorder leftPanelTitle, usernameTitle, firstNameTitle, lastNameTitle, schoolNameTitle, sQ1Title, sQ2Title;\n\t\tleftPanelTitle = BorderFactory.createTitledBorder(\"Profile Information\");\n\t\tusernameTitle = BorderFactory.createTitledBorder(\"Username\");\n\t\tfirstNameTitle = BorderFactory.createTitledBorder(\"First\");\n\t\tlastNameTitle = BorderFactory.createTitledBorder(\"Last\");\n\t\tschoolNameTitle = BorderFactory.createTitledBorder(\"School\");\n\t\tsQ1Title = BorderFactory.createTitledBorder(\"Security Question 1\");\n\t\tsQ2Title = BorderFactory.createTitledBorder(\"Security Question 2\");\n\t\t\n\t\t//Main leftPanel\n\t\tJPanel leftPanel = new JPanel();\n\t\tleftPanel.setLayout(new GridLayout(6,1,1,1));\n\t\tleftPanel.setBorder(leftPanelTitle);\n\t\t\t\t\n\t\t//Username JLabel\n\t\tJLabel username = new JLabel(student.getUsername());\n\t\tusername.setBorder(usernameTitle);\n\t\tusername.setFont(masterFont);\n\t\tleftPanel.add(username);\n\t\t\t\t\n\t\t//FirstName JLabel\n\t\tJLabel firstName = new JLabel(student.getFirstName());\n\t\tfirstName.setBorder(firstNameTitle);\n\t\tfirstName.setFont(masterFont);\n\t\tleftPanel.add(firstName);\n\t\t\t\t\n\t\t//LastName JLabel\n\t\tJLabel lastName = new JLabel(student.getLastName());\n\t\tlastName.setBorder(lastNameTitle);\n\t\tlastName.setFont(masterFont);\n\t\tleftPanel.add(lastName);\n\t\t\t\t\n\t\t//SchoolName JLabel\n\t\tJLabel schoolName = new JLabel(student.getSchoolName());\n\t\tschoolName.setBorder(schoolNameTitle);\n\t\tschoolName.setFont(masterFont);\n\t\tleftPanel.add(schoolName);\n\n\t\t//Security Question 1 JLabel | JTextField\n\t\tJLabel sQ1L = new JLabel((String)sSecurityList1.getSelectedItem());\n\t\tsQ1L.setBorder(sQ1Title);\n\t\tsQ1L.setFont(masterFont);\n\t\tleftPanel.add(sQ1L);\n\t\t\t\t\n\t\t//Security Question 2 JLabel | JTextField\n\t\tJLabel sQ2L = new JLabel((String)sSecurityList2.getSelectedItem());\n\t\tsQ2L.setBorder(sQ2Title);\n\t\tsQ2L.setFont(masterFont);\n\t\tleftPanel.add(sQ2L);\n\t\t\t\t\n\t\t//Generate middle component\n\t\tTitledBorder characterTitle, gameTitle;\n\t\tcharacterTitle = BorderFactory.createTitledBorder(\"Character\");\n\t\tgameTitle = BorderFactory.createTitledBorder(\"Game\");\n\t\t\n\t\t//Main middlePanel JPanel\n\t\tJPanel middlePanel = new JPanel();\n\t\tmiddlePanel.setLayout(new GridLayout(2,1,1,1));\n\t\t\n\t\t//MiddleTopPanel JPanel\n\t\tJPanel middleTopPanel = new JPanel();\n\t\tmiddleTopPanel.setBorder(characterTitle);\n\t\t\n\t\t//Character Image JLabel\n\t\tCharacter character = student.getCurrentCharacter();\n\t\tImageIcon icon = new ImageIcon(\"Resource/\" + character.getCharacterName() + \".png\");\n\t\tImage image = icon.getImage().getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n\t\tcharacterImage = new JLabel(new ImageIcon(image));\n\t\tmiddleTopPanel.add(characterImage);\n\t\tmiddlePanel.add(middleTopPanel, BorderLayout.PAGE_START);\n\t\t\n\t\t//Student: \"Change Character\" JButton\n\t\tJButton changeCharacterB = new JButton(\"Change Character\");\n\t\tchangeCharacterB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tchangeC = true;\n\t \t\tchangeCharacter();\n\t }\n\t \t});\n\t\tmiddleTopPanel.add(changeCharacterB, BorderLayout.PAGE_END);\n\t\t\n\t\t//MiddleBottomPanel JPanel\n\t\tTitledBorder scoreTitle = BorderFactory.createTitledBorder(\"Score\");\n\t\tscoreTitle.setTitleColor(Color.WHITE);\n\t\tJPanel middleBottomPanel = new JPanel();\n\t\tmiddleBottomPanel.setBorder(gameTitle);\n\t\tmiddleBottomPanel.setLayout(new GridLayout(4,1,1,1));\n\n\t\t//ScoreL JLabel\n\t\tJLabel scoreL = new JLabel(Integer.toString(student.getScore()) + \" \");\n\t\tscoreL.setFont(new Font(\"Candara\", Font.PLAIN, 30));\n\t\tscoreL.setBackground(Color.BLUE);\n\t\tscoreL.setOpaque(true);\n\t\tscoreL.setForeground(Color.WHITE);\n\t\tscoreL.setHorizontalAlignment(SwingConstants.RIGHT);\n scoreL.setVerticalAlignment(SwingConstants.CENTER);\n\t\tscoreL.setBorder(scoreTitle);\n\t\tmiddleBottomPanel.add(scoreL);\n\t\t\n\t\t//Student \"New Game\" JButton\n\t\tJButton newGameB = new JButton(\"New Game\");\n\t\tnewGameB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tsPortalWindow.dispose();\n\t \t\trunGame();\n\t }\n\t \t});\n\t\tmiddleBottomPanel.add(newGameB);\n\t\t\n\t\t//Student \"Store\" JButtom\n\t\tJButton storeB = new JButton(\"Store\");\n\t\tstoreB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\t//store();\n\t }\n\t \t});\n\t\tmiddleBottomPanel.add(storeB);\n\t\t\n\t\t//Student \"Logout\" JButton\n\t\tJButton logoutB = new JButton(\"Logout\");\n\t\tlogoutB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tsPortalWindow.dispose();\n\t \t\tloginScreen();\n\t }\n\t \t});\n\t\tmiddleBottomPanel.add(logoutB);\n\t\t\n\t\tmiddlePanel.add(middleBottomPanel, BorderLayout.PAGE_END);\n\t\n\t\t//Generate right component \n\t\tTitledBorder topTitle, middleTitle, bottomTitle, title;\n\t\ttopTitle = BorderFactory.createTitledBorder(\"Profile\");\n\t\tmiddleTitle = BorderFactory.createTitledBorder(\"Class\");\n\t\tbottomTitle = BorderFactory.createTitledBorder(\"Study\");\n\t\ttitle = BorderFactory.createTitledBorder(\"Controls\");\n\t\t\t\t\n\t\t//Main rightPanel\n\t\tJPanel rightPanel = new JPanel();\n\t\trightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\t\t\t\n\t\t//TopRightPanel\n\t\tJPanel topRightPanel = new JPanel();\n\t\ttopRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\ttopRightPanel.setBorder(topTitle);\n\t\t\t\t\n\t\t//Student \"Edit Profile\" JButton\n\t\tJButton editProfileB = new JButton(\"Edit Profile\");\n\t\teditProfileB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tupdateStudentProfile();\n\t\t\t}\n\t\t});\n\t\ttopRightPanel.add(editProfileB);\n\t\t\n\t\t//Student \"Edit Security\" JButton\n\t\tJButton editSecurityB = new JButton(\"Edit Security\");\n\t\teditSecurityB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tupdateStudentSecurity();\n\t\t\t}\n\t\t});\n\t\ttopRightPanel.add(editSecurityB);\n\t\t\t\t\n\t\t//MiddleRightPanel\n\t\tJPanel middleRightPanel = new JPanel();\n\t\tmiddleRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\tmiddleRightPanel.setBorder(middleTitle);\n\t\t\t\t\n\t\t//Student: \"Add Class\" JButton\n\t\tJButton addClassB = new JButton(\"Add Class\");\n\t\taddClassB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddClassStudent();\n\t\t\t}\n\t\t});\n\t\tmiddleRightPanel.add(addClassB);\n\t\t\t\t\n\t\t//Student: \"Edit Class\" JButton\n\t\tJButton editClassB = new JButton(\"Edit Class\");\n\t\teditClassB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdeleteClassStudent();\n\t\t\t}\n\t\t});\n\t\tmiddleRightPanel.add(editClassB);\n\t\t\t\t\n\t\t//BottomRightPanel\n\t\tJPanel bottomRightPanel = new JPanel();\n\t\tbottomRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\tbottomRightPanel.setBorder(bottomTitle);\n\t\t\n\t\t//Student: \"New Study\" JButton\n\t\tJButton newStudyB = new JButton(\"New Study\");\n\t\tnewStudyB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcreateStudyName();\n\t\t\t\tnewFlashCard = new FlashCard(subjectNameTF.getText());\n\t\t\t}\n\t\t});\n\t\tbottomRightPanel.add(newStudyB);\n\t\t\t\t\n\t\t//Student: \"Edit Study\" JButton\n\t\tJButton editStudyB = new JButton(\"Edit Study\");\n\t\teditStudyB.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdeleteStudentStudy();\n\t\t\t}\n\t\t});\n\t\tbottomRightPanel.add(editStudyB);\n\t\t\t\t\n\t\t//Add JPanel's to main JPanel\n\t\trightPanel.setBorder(title);\n\t\trightPanel.add(topRightPanel);\n\t\trightPanel.add(middleRightPanel);\n\t\trightPanel.add(bottomRightPanel);\n\t\t\t\t\n\t\tprofilePanel.add(leftPanel);\n\t\tprofilePanel.add(middlePanel);\n\t\tprofilePanel.add(rightPanel);\n\t\treturn profilePanel;\n\t}",
"public void init() {\n JLabel name = new JLabel(\"Name\");\n tfName.setColumns(TEXT_FIELD_SIZE);\n tfChangeStatus.setColumns(TEXT_FIELD_SIZE);\n tfChangeStatus.addActionListener(this);\n tfChangePicture.setColumns(TEXT_FIELD_SIZE);\n tfChangePicture.addActionListener(this);\n tfAddFriend.setColumns(TEXT_FIELD_SIZE);\n tfAddFriend.addActionListener(this);\n currentProfile = null;\n canvas = new FacePamphletCanvas();\n add(canvas);\n add(name,NORTH);\n add(tfName,NORTH);\n add(add,NORTH);\n add(delete,NORTH);\n add(lookUp,NORTH);\n add(tfChangeStatus,WEST);\n add(changeStatus,WEST);\n add(new JLabel(EMPTY_LABEL_TEXT), WEST);\n add(tfChangePicture,WEST);\n add(changePicture,WEST);\n add(new JLabel(EMPTY_LABEL_TEXT), WEST);\n add(tfAddFriend,WEST);\n add(addFriend,WEST);\n addActionListeners();\n }",
"private void createComponents()\n\t{\n\t\t// Create search results' table header\n\t\tm_ResultHeader = new PrinterLabel(1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\"PRINTER\",\"VENDOR\",\"TENSION (ksi)\",\"COMPRESSION (ksi)\",\"IMPACT (lb-ft)\",\"MATERIALS\",\"TOLERANCE (in)\",\"FINISH (\\u00B5in)\", false);\n\t\tm_ResultHeader.setBackground(Color.lightGray);\n\t\t// Add tool tips for long header categories before adding to GUI\n\t\tm_ResultHeader.getMaterials().setToolTipText(\"Range of Materials\");\n\t\tm_PrinterList = ToolBox.generatePrinterList();\n\t}",
"private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }",
"private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }",
"@Override\n\tvoid modifyUserContentPanel() {\n\t\t panel = new JPanel();\n\t\tpanel.setLayout(new BoxLayout(panel,BoxLayout.PAGE_AXIS));\n\t\ticon1 = new BarGraphIcon(graphModel1,200,200);\n\t\ticon2= new BarGraphIcon(graphModel2,200,200);\n\t\tcourseLabel = new JLabel(\"Course: \");\n\t\tpanel.add(courseLabel);\n\t\tpanel.add(new JLabel(\" \"));\n\t\tpanel.add(new JLabel(\"Semester Offerings:\"));\n\t\tpanel.add( new JLabel(icon1));\n\t\tpanel.add(new JLabel(\" \"));\n\t\tpanel.add(new JLabel(\"Campus Offerings:\"));\n\t\tpanel.add(new JLabel(icon2));\n\t\t\n\t\tmakeUserContentPanel(panel);\n\t}",
"private void createOperationsPanel() {\n\t\toperationsPanel = new JPanel(new GridLayout(5, 1));\n\n\t\tspanningTreeButton = new JButton(\"Árvore de cobertura\");\n\t\tspanningTreeButton.addActionListener(new SpanningTreeHandler());\n\n\t\tblockingStatesButton = new JButton(\"Estados bloqueantes\");\n\t\tblockingStatesButton.addActionListener(new BlockingStatesHandler());\n\n\t\tnonLimitedStatesButton = new JButton(\"Estados não-limitados\");\n\t\tnonLimitedStatesButton.addActionListener(new NonLimitedStatesHandler());\n\n\t\tnetworkConservationButton = new JButton(\"Conservação da rede\");\n\t\tnetworkConservationButton.addActionListener(new NetworkConservationHandler());\n\n\t\treachabelStateButton = new JButton(\"Estado alcançável\");\n\t\treachabelStateButton.addActionListener(new ReachableStateHandler());\n\n\t\toperationsPanel.add(spanningTreeButton);\n\t\toperationsPanel.add(blockingStatesButton);\n\t\toperationsPanel.add(nonLimitedStatesButton);\n\t\toperationsPanel.add(networkConservationButton);\n\t\toperationsPanel.add(reachabelStateButton);\n\n\t\tthis.add(operationsPanel, BorderLayout.WEST);\n\t}",
"private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}",
"private void $$$setupUI$$$() {\n root = new JPanel();\n root.setLayout(new GridLayoutManager(2, 6, new Insets(8, 8, 8, 8), -1, -1));\n groupTabs = new JTabbedPane();\n root.add(groupTabs, new GridConstraints(1, 0, 1, 6, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n deviceName = new JLabel();\n deviceName.setFont(new Font(deviceName.getFont().getName(), deviceName.getFont().getStyle(), deviceName.getFont().getSize()));\n deviceName.setText(\"Label\");\n root.add(deviceName, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n root.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setEnabled(false);\n saveButton.setText(\"Save\");\n root.add(saveButton, new GridConstraints(0, 4, 1, 2, GridConstraints.ANCHOR_SOUTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n loading = new JProgressBar();\n loading.setBorderPainted(true);\n loading.setEnabled(true);\n loading.setIndeterminate(true);\n loading.setValue(50);\n root.add(loading, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n root.add(cancelButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"private JPanel interactionArea() {\n JPanel userInter = new JPanel();\n userInter.setBorder(BorderFactory.createEmptyBorder(10, 10, 25, 15));\n userInter.setLayout(new GridLayout(6,0, 10,10));\n JPanel insertMoney = moneyButtons();\n userInter.add(insertMoney);\n balanceLabel = new JLabel(String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance));\n userInter.add(balanceLabel);\n priceLabel = new JLabel(\"<html><b>Price</b><br>$0.00</html>\");\n userInter.add(priceLabel);\n vendButton = new JButton(\"Vend\");\n vendButton.addActionListener(new vendListener());\n userInter.add(vendButton);\n cancelButton = new JButton(\"Cancel\");\n cancelButton.addActionListener(new cancelListener());\n userInter.add(cancelButton);\n adminButton = new JButton(\"Admin\");\n adminButton.addActionListener(new adminListener());\n userInter.add(adminButton);\n return userInter;\n }",
"public void createPartControl(Composite parent) {\n\n Composite composite = new Composite(parent, SWT.NULL);\n GridLayout layout = new GridLayout();\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n composite.setLayout(layout);\n composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\n | GridData.HORIZONTAL_ALIGN_FILL));\n\n consoleText = new Text(composite, SWT.V_SCROLL | SWT.H_SCROLL);\n consoleText.setLayoutData(new GridData(GridData.FILL_BOTH));\n consoleText.setEditable(false);\n consoleText.setText(\"RF> Welcome to the Performance (ICM) Reasoning Framework!!!\\n\");\n consoleText.setFont(JFaceResources.getFont(JFaceResources.TEXT_FONT));\n\n consoleText.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WHITE));\n consoleColor = new Color(Display.getDefault(), new RGB(0,0,0));\n consoleText.setForeground(consoleColor);\n\n Composite bottomLine = new Composite(composite, SWT.NULL);\n GridLayout layout2 = new GridLayout();\n layout2.marginHeight = 0;\n layout2.marginWidth = 0;\n layout2.numColumns = 3;\n bottomLine.setLayout(layout2);\n bottomLine.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));\n\n startButton = new Button(bottomLine, SWT.PUSH);\n startButton.setText(\"Start\");\n startButton.setEnabled(true);\n startButton.addSelectionListener(new SelectionListener() {\n\n public void widgetSelected(SelectionEvent se) {\n consoleText.setText(\"RF> Service started\\n\");\n startButton.setEnabled(false);\n stopButton.setEnabled(true);\n startReasoningFramework();\n }\n\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent se) {\n }\n });\n\n stopButton = new Button(bottomLine, SWT.PUSH);\n stopButton.setText(\"Stop\");\n stopButton.setEnabled(false);\n stopButton.addSelectionListener(new SelectionListener() {\n\n public void widgetSelected(SelectionEvent se) {\n consoleText.setText(\"RF> Service stopped\\n\");\n startButton.setEnabled(true);\n stopButton.setEnabled(false);\n stopReasoningFramework();\n }\n\n public void widgetDefaultSelected(SelectionEvent se) {\n }\n });\n \n clearButton = new Button(bottomLine, SWT.PUSH);\n clearButton.setText(\"Clear\");\n clearButton.addSelectionListener(new SelectionListener() {\n\n public void widgetSelected(SelectionEvent se) {\n consoleText.setText(\"\");\n }\n\n public void widgetDefaultSelected(SelectionEvent se) {\n }\n });\n\n hookUpToReasoningFramework();\n }",
"private void addWidgets() {\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(5);\n\t\tgrid.setPadding(new Insets(150, 80, 80, 80));\n\t\tgrid.add(lblPort, 0, 1);\n\t\tgrid.add(txtPort, 1, 1);\n\t\tgrid.add(lblAdress, 0, 2);\n\t\tgrid.add(txtAdress, 1, 2);\n\t\tgrid.add(lblNick, 0, 4);\n\t\tgrid.add(txtNickname, 1, 4);\n\t\tgrid.add(lblNickTaken, 1, 5);\n\t\tgrid.add(lblCardDesign, 0, 3);\n\t\tgrid.add(comboBoxCardDesign, 1, 3);\n\t\tgrid.add(btnLogin, 0, 7);\n\t\timvStart.setImage(imageStart);\n\t}",
"private void addComponentsTopane() {\n \tsetLayout(new BorderLayout());\n \t\n \tJButton b1 = new JButton(\"Login\");\n \tColor customBlue = new Color(86, 132, 197);\n \tb1.setBackground(customBlue);\n b1.setForeground(Color.WHITE);\n this.add(b1, BorderLayout.SOUTH);\n }",
"private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}",
"private void createContents(final Shell shell) {\r\n GridData data;\r\n\r\n final int colCount = 5;\r\n\r\n shell.setLayout(new GridLayout(colCount, true));\r\n\r\n // \"refresh\" button\r\n Button refresh = new Button(shell, SWT.PUSH);\r\n refresh.setText(\"Refresh\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n refresh.setLayoutData(data);\r\n refresh.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n\r\n // \"rotate\" button\r\n Button rotate = new Button(shell, SWT.PUSH);\r\n rotate.setText(\"Rotate\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n rotate.setLayoutData(data);\r\n rotate.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n if (mRawImage != null) {\r\n mRawImage = mRawImage.getRotated();\r\n updateImageDisplay(shell);\r\n \r\n mRotateCount++;\r\n if (mRotateCount >= 4) mRotateCount = 0;\r\n }\r\n }\r\n });\r\n\r\n // \"done\" button\r\n Button done = new Button(shell, SWT.PUSH);\r\n done.setText(\"Done\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n done.setLayoutData(data);\r\n done.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n shell.close();\r\n }\r\n });\r\n\r\n // title/\"capturing\" label\r\n mBusyLabel = new Label(shell, SWT.NONE);\r\n mBusyLabel.setText(\"Preparing...\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);\r\n data.horizontalSpan = colCount;\r\n mBusyLabel.setLayoutData(data);\r\n\r\n // space for the image\r\n mImageLabel = new Label(shell, SWT.BORDER);\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.horizontalSpan = colCount;\r\n mImageLabel.setLayoutData(data);\r\n Display display = shell.getDisplay();\r\n mImageLabel.setImage(createPlaceHolderArt(\r\n display, 50, 50, display.getSystemColor(SWT.COLOR_BLUE)));\r\n TouchController tc = new TouchController(mDevice, mScaled);\r\n tc.setTouchListener(new TouchListener() {\r\n public void onClick() {\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException e) {\r\n }\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n mImageLabel.addMouseListener(tc);\r\n mImageLabel.addMouseMoveListener(tc);\r\n\r\n\r\n shell.setDefaultButton(done);\r\n }",
"public void initialize() {\n\t\tselectedDrawingTool = 1;\n\t\tlblDrawingTool = new JLabel[NUM_DRAWING_TOOLS];\n\t\tnetwork = null;\n\t\tvisitorListMap = new HashMap<String, Color>();\n\t\tsetTitle(\"Whiteboard conference room\");\n\t\t\n\t\t// set frame options\n\t\tsetResizable(false);\n\t\tsetBounds(100, 30, 1024, 768);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t// Set background color\n\t\tgetContentPane().setBackground(THEME_BACKGROUND);\n\t\tgetContentPane().setLayout(null);\n\t\t\n\t\t// Set icons\n\t\tImageIcon roomIcon = null;\n\t\tImageIcon roomCreateIcon = null;\n\t\tImageIcon roomJoinIcon = null;\n\t\ttry { roomIcon = new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomIcon.png\"))); } catch (IOException e1) { e1.printStackTrace(); }\n\t\ttry { roomCreateIcon = new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomCreateIcon.png\"))); } catch (IOException e1) { e1.printStackTrace(); }\n\t\ttry { roomJoinIcon = new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomJoinIcon.png\"))); } catch (IOException e1) { e1.printStackTrace(); }\n\t\t\n\t\t// Room\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\ttabbedPane.setBounds(10, 10, 250, 518);\n\t\ttabbedPane.setBackground(THEME_BACKGROUND);\n\t\ttabbedPane.setForeground(THEME_FOREGROUND);\n\t\ttabbedPane.setUI(new customTabbedPaneUI());\n\t\t\n\t\t// Room - tab 1\n\t\tJPanel roomPanel1 = new JPanel();\n\t\troomPanel1.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1.setLayout(null);\n\t\troomPanel1.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\troomPanel1.setBackground(THEME_BACKGROUND);\n\t\ttabbedPane.addTab(\"Room\", roomIcon, roomPanel1, \"\");\n\t\t\n\t\tJPanel roomPanel1SubPanelProfile = new JPanel();\n\t\troomPanel1SubPanelProfile.setLayout(null);\n\t\troomPanel1SubPanelProfile.setBounds(15, 10, 215, 60);\n\t\troomPanel1SubPanelProfile.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredProfileBorder = new TitledBorder(\"Profile\");\n\t\ttitledColoredProfileBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredProfileBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredProfileBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelProfile.setBorder(titledColoredProfileBorder);\n\t\t\n\t\tlblUsername = new JLabel(\"Username: \" + DEFAULT_USERNAME);\n\t\tlblUsername.setBounds(15, 17, 180, 15);\n\t\tlblUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblUsername.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelProfile.add(lblUsername);\n\t\t\n\t\tJLabel lblColorChooser = new JLabel(\"Color:\");\n\t\tlblColorChooser.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblColorChooser.setBounds(15, 36, 120, 15);\n\t\tlblColorChooser.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelProfile.add(lblColorChooser);\n\t\t\n\t\tlblColor = new JLabel(\"\");\n\t\tlblColor.setBounds(53, 36, 15, 15);\n\t\tlblColor.setOpaque(true);\n\t\tlblColor.setBackground(new Color(0,0,0));\n\t\tlblColor.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelProfile.add(lblColor);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelProfile);\n\t\t\n\t\tJPanel roomPanel1SubPanelServerInfo = new JPanel();\n\t\troomPanel1SubPanelServerInfo.setLayout(null);\n\t\troomPanel1SubPanelServerInfo.setBounds(15, 80, 215, 60);\n\t\troomPanel1SubPanelServerInfo.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredServerInfoBorder = new TitledBorder(\"Server info.\");\n\t\ttitledColoredServerInfoBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredServerInfoBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredServerInfoBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelServerInfo.setBorder(titledColoredServerInfoBorder);\n\t\t\n\t\tlblServerInfoIP = new JLabel(\"IP address: Not connected.\");\n\t\tlblServerInfoIP.setBounds(15, 17, 175, 15);\n\t\tlblServerInfoIP.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblServerInfoIP.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelServerInfo.add(lblServerInfoIP);\n\t\t\n\t\tlblServerInfoPort = new JLabel(\"Port: \");\n\t\tlblServerInfoPort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblServerInfoPort.setBounds(15, 36, 170, 15);\n\t\tlblServerInfoPort.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelServerInfo.add(lblServerInfoPort);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelServerInfo);\n\t\t\n\t\tJPanel roomPanel1SubPanelDrawingTools = new JPanel();\n\t\troomPanel1SubPanelDrawingTools.setLayout(null);\n\t\troomPanel1SubPanelDrawingTools.setBounds(15, 150, 215, 190);\n\t\troomPanel1SubPanelDrawingTools.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredDrawingToolsBorder = new TitledBorder(\"Drawing tools\");\n\t\ttitledColoredDrawingToolsBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredDrawingToolsBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredDrawingToolsBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelDrawingTools.setBorder(titledColoredDrawingToolsBorder);\n\t\t\n\t\t// Drawing tool #1\n\t\ttry {\n\t\t\tlblDrawingTool[0] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool1.png\"))));\n\t\t\tlblDrawingTool[0].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[0].setBounds(25, 20, 25, 25);\n\t\t\tlblDrawingTool[0].addMouseListener(new drawingTool1MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[0]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Drawing tool #2\n\t\ttry {\n\t\t\tlblDrawingTool[1] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool2Offset.png\"))));\n\t\t\tlblDrawingTool[1].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[1].setBounds(60, 20, 25, 25);\n\t\t\tlblDrawingTool[1].addMouseListener(new drawingTool2MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[1]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Drawing tool #3\n\t\ttry {\n\t\t\tlblDrawingTool[2] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool3Offset.png\"))));\n\t\t\tlblDrawingTool[2].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[2].setBounds(95, 20, 25, 25);\n\t\t\tlblDrawingTool[2].addMouseListener(new drawingTool3MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[2]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Drawing tool #4\n\t\ttry {\n\t\t\tlblDrawingTool[3] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool4Offset.png\"))));\n\t\t\tlblDrawingTool[3].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[3].setBounds(130, 20, 25, 25);\n\t\t\tlblDrawingTool[3].addMouseListener(new drawingTool4MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[3]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Drawing tool #5\n\t\ttry {\n\t\t\tlblDrawingTool[4] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool5Offset.png\"))));\n\t\t\tlblDrawingTool[4].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[4].setBounds(165, 20, 25, 25);\n\t\t\tlblDrawingTool[4].addMouseListener(new drawingTool5MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[4]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\t\t\n\t\t// Drawing tool #6\n\t\ttry {\n\t\t\tlblDrawingTool[5] = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomDrawingTool6Offset.png\"))));\n\t\t\tlblDrawingTool[5].setBackground(THEME_BACKGROUND);\n\t\t\tlblDrawingTool[5].setBounds(25, 55, 25, 25);\n\t\t\tlblDrawingTool[5].addMouseListener(new drawingTool6MouseListener());\n\t\t\tgetContentPane().add(lblDrawingTool[5]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[0]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[1]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[2]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[3]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[4]);\n\t\troomPanel1SubPanelDrawingTools.add(lblDrawingTool[5]);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelDrawingTools);\n\t\t\n\t\tJPanel roomPanel1SubPanelColor = new JPanel();\n\t\troomPanel1SubPanelColor.setLayout(null);\n\t\troomPanel1SubPanelColor.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelColor.setBounds(15, 345, 215, 55);\n\t\troomPanel1SubPanelColor.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredColorBorder = new TitledBorder(\"Change color\");\n\t\ttitledColoredColorBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredColorBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredColorBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelColor.setBorder(titledColoredColorBorder);\n\t\t\n\t\tJButton btnChangeColor = new JButton(\"Choose\");\n\t\tbtnChangeColor.addActionListener(new changeColorBtnActionListener());\n\t\tbtnChangeColor.setBounds(16, 21, 180, 20);\n\t\tbtnChangeColor.setBackground(THEME_BACKGROUND);\n\t\tbtnChangeColor.setForeground(THEME_FOREGROUND);\n\t\tbtnChangeColor.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelColor.add(btnChangeColor);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelColor);\n\t\t\n\t\tJPanel roomPanel1SubPanelUsername = new JPanel();\n\t\troomPanel1SubPanelUsername.setLayout(null);\n\t\troomPanel1SubPanelUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelUsername.setBounds(15, 400, 215, 75);\n\t\troomPanel1SubPanelUsername.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredUsernameBorder = new TitledBorder(\"Change username\");\n\t\ttitledColoredUsernameBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredUsernameBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredUsernameBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel1SubPanelUsername.setBorder(titledColoredUsernameBorder);\n\n\t\tJLabel lblNewUsername = new JLabel(\"New username:\");\n\t\tlblNewUsername.setBounds(15, 26, 100, 15);\n\t\tlblNewUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblNewUsername.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelUsername.add(lblNewUsername);\n\t\t\n\t\ttfNewUsername = new JTextField();\n\t\ttfNewUsername.setBounds(110, 23, 86, 20);\n\t\ttfNewUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttfNewUsername.setBackground(THEME_BACKGROUND);\n\t\ttfNewUsername.setForeground(THEME_FOREGROUND);\n\t\troomPanel1SubPanelUsername.add(tfNewUsername);\n\t\t\n\t\tJButton btnChangeUsername = new JButton(\"Confirm\");\n\t\tbtnChangeUsername.addActionListener(new changeUsernameBtnActionListener());\n\t\tbtnChangeUsername.setBounds(15, 47, 180, 20);\n\t\tbtnChangeUsername.setBackground(THEME_BACKGROUND);\n\t\tbtnChangeUsername.setForeground(THEME_FOREGROUND);\n\t\tbtnChangeUsername.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel1SubPanelUsername.add(btnChangeUsername);\n\t\t\n\t\troomPanel1.add(roomPanel1SubPanelUsername);\n\t\t\n\t\t// Room - tab 2\n\t\tJPanel roomPanel2 = new JPanel();\n\t\troomPanel2.setLayout(null);\n\t\troomPanel2.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel2.setBackground(THEME_BACKGROUND);\n\t\tJPanel roomPanel2SubPanelCreateServer = new JPanel();\n\t\troomPanel2SubPanelCreateServer.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel2SubPanelCreateServer.setLayout(null);\n\t\troomPanel2SubPanelCreateServer.setBounds(15, 10, 215, 90);\n\t\troomPanel2SubPanelCreateServer.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredCreateServerBorder = new TitledBorder(\"Host server\");\n\t\ttitledColoredCreateServerBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredCreateServerBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredCreateServerBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel2SubPanelCreateServer.setBorder(titledColoredCreateServerBorder);\n\t\t\n\t\tJLabel lblCreateIP = new JLabel(\"Server ip: \" + getWANIP());\n\t\tlblCreateIP.setBounds(15, 17, 170, 12);\n\t\tlblCreateIP.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblCreateIP.setForeground(THEME_FOREGROUND);\n\t\troomPanel2SubPanelCreateServer.add(lblCreateIP);\n\t\t\n\t\tJLabel lblCreatePort = new JLabel(\"Port number:\");\n\t\tlblCreatePort.setBounds(15, 36, 120, 15);\n\t\tlblCreatePort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblCreatePort.setForeground(THEME_FOREGROUND);\n\t\troomPanel2SubPanelCreateServer.add(lblCreatePort);\n\t\t\n\t\ttfCreatePort = new JTextField();\n\t\ttfCreatePort.setToolTipText(\"Port number for server hosting\");\n\t\ttfCreatePort.setBounds(93, 35, 86, 20);\n\t\ttfCreatePort.setBackground(THEME_BACKGROUND);\n\t\ttfCreatePort.setForeground(THEME_FOREGROUND);\n\t\ttfCreatePort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel2SubPanelCreateServer.add(tfCreatePort);\n\t\t\n\t\tJButton btnCreate = new JButton(\"Create\");\n\t\tbtnCreate.addActionListener(new createBtnActionListener(this));\n\t\tbtnCreate.setBounds(16, 60, 180, 20);\n\t\tbtnCreate.setBackground(THEME_BACKGROUND);\n\t\tbtnCreate.setForeground(THEME_FOREGROUND);\n\t\tbtnCreate.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel2SubPanelCreateServer.add(btnCreate);\n\t\t\n\t\troomPanel2.add(roomPanel2SubPanelCreateServer);\n\t\ttabbedPane.addTab(\"Create\", roomCreateIcon, roomPanel2, \"\");\n\t\t\n\t\t// Room - tab 3\n\t\tJPanel roomPanel3 = new JPanel();\n\t\troomPanel3.setLayout(null);\n\t\troomPanel3.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel3.setBackground(THEME_BACKGROUND);\n\t\tJPanel roomPanel3SubPanelJoinServer = new JPanel();\n\t\troomPanel3SubPanelJoinServer.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel3SubPanelJoinServer.setLayout(null);\n\t\troomPanel3SubPanelJoinServer.setBounds(15, 10, 215, 100);\n\t\troomPanel3SubPanelJoinServer.setBackground(THEME_BACKGROUND);\n\t\tTitledBorder titledColoredJoinServerBorder = new TitledBorder(\"Join server\");\n\t\ttitledColoredJoinServerBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredJoinServerBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttitledColoredJoinServerBorder.setTitleColor(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.setBorder(titledColoredJoinServerBorder);\n\t\t\n\t\tJLabel lblJoinIP = new JLabel(\"Server ip:\");\n\t\tlblJoinIP.setBounds(15, 19, 150, 15);\n\t\tlblJoinIP.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblJoinIP.setForeground(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.add(lblJoinIP);\n\t\t\n\t\ttfJoinIP = new JTextField();\n\t\ttfJoinIP.setToolTipText(\"Server IP of host\");\n\t\ttfJoinIP.setBounds(93, 15, 86, 20);\n\t\ttfJoinIP.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttfJoinIP.setBackground(THEME_BACKGROUND);\n\t\ttfJoinIP.setForeground(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.add(tfJoinIP);\n\t\t\n\t\tJLabel lblJoinPort = new JLabel(\"Port number:\");\n\t\tlblJoinPort.setBounds(15, 43, 120, 15);\n\t\tlblJoinPort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tlblJoinPort.setForeground(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.add(lblJoinPort);\n\t\t\n\t\ttfJoinPort = new JTextField();\n\t\ttfJoinPort.setToolTipText(\"Port number for server hosting\");\n\t\ttfJoinPort.setBounds(93, 40, 86, 20);\n\t\ttfJoinPort.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\ttfJoinPort.setBackground(THEME_BACKGROUND);\n\t\ttfJoinPort.setForeground(THEME_FOREGROUND);\n\t\troomPanel3SubPanelJoinServer.add(tfJoinPort);\n\t\t\n\t\tJButton btnJoin = new JButton(\"Join\");\n\t\tbtnJoin.addActionListener(new joinBtnActionListener(this));\n\t\tbtnJoin.setBounds(16, 67, 180, 20);\n\t\tbtnJoin.setBackground(THEME_BACKGROUND);\n\t\tbtnJoin.setForeground(THEME_FOREGROUND);\n\t\tbtnJoin.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\troomPanel3SubPanelJoinServer.add(btnJoin);\n\t\t\n\t\troomPanel3.add(roomPanel3SubPanelJoinServer);\n\t\ttabbedPane.addTab(\"Join\", roomJoinIcon, roomPanel3, \"\");\n\t\t\n\t\tgetContentPane().add(tabbedPane);\n\t\t\n\t\t// Visitor list\n\t\tvisitorListModel = new DefaultListModel<String>();\n\t\t\n\t\tvisitorList = new JList<String>(visitorListModel);\n\t\tvisitorList.setCellRenderer(new NameRenderer());\n\t\tvisitorList.setBounds(20, 20, 200, 144);\n\t\tvisitorList.setBackground(THEME_BACKGROUND);\n\t\tJScrollPane visitorListScrollPane = new JScrollPane();\n\t\tvisitorListScrollPane.setViewportView(visitorList);\n\t\tvisitorListScrollPane.setBorder(null);\n\t\tvisitorListScrollPane.setBounds(20, 20, 210, 160);\n\t\t\n\t\tJPanel panelVisitorList = new JPanel();\n\t\tpanelVisitorList.setOpaque(false);\n\t\tpanelVisitorList.setFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tpanelVisitorList.setLayout(null);\n\t\tpanelVisitorList.setBounds(10, 534, 250, 194);\n\t\tTitledBorder titledColoredVisitorListBorder = new TitledBorder(\"Visitor list\");\n\t\ttitledColoredVisitorListBorder.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, THEME_FOREGROUND));\n\t\ttitledColoredVisitorListBorder.setTitleColor(THEME_FOREGROUND);\n\t\ttitledColoredVisitorListBorder.setTitleFont(new Font(DEFAULT_FONT, Font.PLAIN, DEFAULT_FONT_SIZE));\n\t\tpanelVisitorList.setBorder(titledColoredVisitorListBorder);\n\t\t\n\t\tpanelVisitorList.add(visitorListScrollPane);\n\t\t\n\t\tgetContentPane().add(panelVisitorList);\n\t\t\n\t\t// Whiteboard\n\t\twhiteboardBi = new BufferedImage(720, 715, BufferedImage.TYPE_INT_RGB);\n\t\twhiteboardPanel = new WhiteBoardPanel(whiteboardBi);\n\t\twhiteboardPanel.setLayout(null);\n\t\twhiteboardPanel.setBounds(280, 13, 720, 715);\n\t\twhiteboardPanel.setBackground(THEME_BACKGROUND);\n\t\t\n\t\t// Leave button\n\t\ttry {\n\t\t\tlblLeave = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomLeaveIcon2.png\"))));\n\t\t\tlblLeave.setBackground(new Color(100,50,150,200));\n\t\t\tlblLeave.setBounds(696, 0, 24, 24);\n\t\t\tlblLeave.setVisible(true);\n\t\t\tlblLeave.addMouseListener(new leaveIconMouseListener());\n\t\t\twhiteboardPanel.add(lblLeave);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\t// Trash button\n\t\ttry {\n\t\t\tlblTrash = new JLabel(new ImageIcon(ImageIO.read(getClass().getResource(\"/resources/roomTrashIconOffset.png\"))));\n\t\t\tlblTrash.setBackground(new Color(100,50,150,200));\n\t\t\tlblTrash.setBounds(0, 0, 24, 24);\n\t\t\tlblTrash.setVisible(true);\n\t\t\tlblTrash.addMouseListener(new trashIconMouseListener());\n\t\t\twhiteboardPanel.add(lblTrash);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t\t\n\t\tgetContentPane().add(whiteboardPanel);\n\t\t\n\t}",
"protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}",
"private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }",
"public Dashboard() {\n initComponents();\n userProfile();\n knowAppointment();\n// home h1=new home();\n// h1.userProfile();\n//// userProfile u1=new userProfile();\n// jLabel2.setIcon(h1.jLabel28.getIcon());\n// jLabel3.setText(h1.jLabel25.getText());\n \n }",
"private void initialize() {\n\t\twindow = new JFrame();\n\t\twindow.setBounds(100, 100, 650, 300);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel chooseMemberLabel = new JLabel(\"Which crew member would you like to view the status of?\");\n\t\tchooseMemberLabel.setBounds(10, 11, 414, 14);\n\t\twindow.getContentPane().add(chooseMemberLabel);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setVerticalAlignment(SwingConstants.TOP);\n\t\tstatusLabel.setBounds(342, 36, 282, 184);\n\t\twindow.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton member1Button = new JButton(environment.getCurrentCrew().getCrew().get(0).getName());\n\t\tmember1Button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(0).status().replaceAll(\"<\",\"<\").replaceAll(\">\", \">\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t}\n\t\t});\n\t\tmember1Button.setBounds(10, 33, 150, 23);\n\t\twindow.getContentPane().add(member1Button);\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 1) {\n\t\t\tJButton member2Button = new JButton(environment.getCurrentCrew().getCrew().get(1).getName());\n\t\t\tmember2Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(1).status().replaceAll(\"<\",\"<\").replaceAll(\">\", \">\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember2Button.setBounds(10, 67, 150, 23);\n\t\t\twindow.getContentPane().add(member2Button);\n\t\t}\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 2) {\n\t\t\tJButton member3Button = new JButton(environment.getCurrentCrew().getCrew().get(2).getName());\n\t\t\tmember3Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(2).status().replaceAll(\"<\",\"<\").replaceAll(\">\", \">\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember3Button.setBounds(10, 101, 150, 23);\n\t\t\twindow.getContentPane().add(member3Button);\n\t\t}\n\t\t\n\t\tif (environment.getCurrentCrew().getCrew().size() > 3) {\n\t\t\tJButton member4Button = new JButton(environment.getCurrentCrew().getCrew().get(3).getName());\n\t\t\tmember4Button.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tstatusLabel.setText(\"<html>\" + environment.getCurrentCrew().getCrew().get(3).status().replaceAll(\"<\",\"<\").replaceAll(\">\", \">\").replaceAll(\"\\n\", \"<br/>\") + \"</html>\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tmember4Button.setBounds(10, 135, 150, 23);\n\t\t\twindow.getContentPane().add(member4Button);\n\t\t}\n\t\t\n\t\tJButton finishedButton = new JButton(\"Done\");\n\t\tfinishedButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfinishedWindow();\n\t\t\t}\n\t\t});\n\t\tfinishedButton.setBounds(535, 227, 89, 23);\n\t\twindow.getContentPane().add(finishedButton);\n\t}",
"private void addControls() {\n\t\tarrow_up = new FlxSprite(FlxG.width/2-20,340);\r\n\t\tarrow_up.loadGraphic(R.drawable.arrow_up, false);\r\n\t\tarrow_up.setAlpha((float)0.7);\r\n\t\tthis.add(arrow_up);\r\n\t\t\r\n\t\tarrow_down = new FlxSprite(FlxG.width/2-20,400);\r\n\t\tarrow_down.loadGraphic(R.drawable.arrow_down, false);\r\n\t\tarrow_down.setAlpha((float)0.7);\r\n\t\tthis.add(arrow_down);\r\n\t\t\r\n\t\tarrow_right = new FlxSprite(FlxG.width/2+30,370);\r\n\t\tarrow_right.loadGraphic(R.drawable.arrow_right, false);\r\n\t\tarrow_right.setAlpha((float)0.7);\r\n\t\tthis.add(arrow_right);\r\n\t\t\r\n\t\tarrow_left = new FlxSprite(FlxG.width/2-70,370);\r\n\t\tarrow_left.loadGraphic(R.drawable.arrow_left, false);\r\n\t\tarrow_left.setAlpha((float)0.7);\r\n\t\tthis.add(arrow_left);\r\n\t}",
"public Test1UI() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setLayout(new BorderLayout());\n\t\tsetDefaultValues();\n\t\taddActionListeners();\n\n\t\tthis.add(pnlWest, BorderLayout.WEST);\n\t\tthis.add(pnlEast, BorderLayout.EAST);\n\t\tthis.add(pnlCenter, BorderLayout.CENTER);\n\t\tthis.add(pnlSouth, BorderLayout.SOUTH);\n\n\t\tfor (int row = 0; row < 7; row++) {\n\t\t\tpnlWest.add(tfWest[row]);\n\t\t\tpnlSouth.add(tfSouth[row]);\n\t\t\tfor (int col = 0; col < 7; col++) {\n\t\t\t\tpnlCenter.add(lblCenter[row][col]);\n\t\t\t}\n\t\t}\n\t\tpnlEast.add(pnlEastTop, BorderLayout.NORTH);\n\t\tpnlEast.add(pnlEastBottom, BorderLayout.SOUTH);\n\n\t\tpnlEastTop.add(pnlEastTopText);\n\t\tpnlEastTop.add(btnReadRow);\n\t\tpnlEastTop.add(btnPrintRow);\n\t\tpnlEastTopText.add(lblRow);\n\t\tpnlEastTopText.add(tfRow);\n\n\t\tpnlEastBottom.add(pnlEastBottomText);\n\t\tpnlEastBottom.add(btnReadCol);\n\t\tpnlEastBottom.add(btnPrintCol);\n\t\tpnlEastBottomText.add(lblCol);\n\t\tpnlEastBottomText.add(tfCol);\n\n\t\tpack();\n\t\tsetVisible(true);\n\t}",
"private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}",
"private void makeGUI() {\r\n\t\tInstrument[] instruments = getAvailableInstruments();\r\n\r\n\t\tJPanel channels = new JPanel();\r\n\t\tchannels.setLayout(new BoxLayout(channels, BoxLayout.Y_AXIS));\r\n\r\n\t\tcomboBoxes = new JComboBox[16];\r\n\t\tfor (int chan = 0; chan < 16; chan++) {\r\n\t\t\tJPanel channelPanel = new JPanel();\r\n\t\t\tchannelPanel\r\n\t\t\t\t\t.setLayout(new BoxLayout(channelPanel, BoxLayout.X_AXIS));\r\n\t\t\tJLabel label = new JLabel(\"Channel \" + chan);\r\n\t\t\tlabel.setPreferredSize(LABEL_DIMENSION);\r\n\t\t\tchannelPanel.add(label);\r\n\t\t\tJComboBox cb = new JComboBox(instruments);\r\n\t\t\tcb.setMaximumRowCount(25);\r\n\t\t\tint program = pianoRollPanel.getProgram(chan);\r\n\t\t\tcb.setSelectedIndex(program);\r\n\t\t\tchannelPanel.add(cb);\r\n\t\t\tcomboBoxes[chan] = cb;\r\n\t\t\tchannels.add(channelPanel);\r\n\t\t}\r\n\t\tadd(channels, BorderLayout.CENTER);\r\n\t\tJPanel buttonPanel = new JPanel();\r\n\t\tJButton okButton = new JButton(OK);\r\n\t\tokButton.setActionCommand(OK);\r\n\t\tokButton.setMnemonic('O');\r\n\t\tokButton.addActionListener(this);\r\n\t\tJButton cancelButton = new JButton(CANCEL);\r\n\t\tcancelButton.setActionCommand(CANCEL);\r\n\t\tcancelButton.setMnemonic('C');\r\n\t\tcancelButton.addActionListener(this);\r\n\t\tbuttonPanel.add(okButton);\r\n\t\tbuttonPanel.add(cancelButton);\r\n\t\tadd(buttonPanel, BorderLayout.SOUTH);\r\n\t}",
"private void createContents() {\n shell = new Shell(getParent(), getStyle());\n shell.setSize(540, 297);\n shell.setLayout(new GridLayout(1, false));\n\n Composite cmpTop = new Composite(shell, SWT.NONE);\n cmpTop.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n GridLayout gl_cmpTop = new GridLayout(4, false);\n gl_cmpTop.verticalSpacing = 0;\n cmpTop.setLayout(gl_cmpTop);\n\n Label lblBankAccountNumber = new Label(cmpTop, SWT.CENTER);\n lblBankAccountNumber.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBankAccountNumber.setBounds(0, 0, 59, 14);\n lblBankAccountNumber.setText(\"Bank Account\");\n Label lblBranch = new Label(cmpTop, SWT.CENTER);\n lblBranch.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBranch.setBounds(0, 0, 59, 14);\n lblBranch.setText(\"Branch\");\n\n Label lblBank = new Label(cmpTop, SWT.CENTER);\n lblBank.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBank.setText(\"Bank\");\n new Label(cmpTop, SWT.NONE);\n\n txtBankAccountNumber = new Text(cmpTop, SWT.BORDER);\n txtBankAccountNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n txtBankAccountNumber.setBounds(0, 0, 64, 19);\n\n txtBranch = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBranch = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBranch.widthHint = 50;\n txtBranch.setLayoutData(gd_txtBranch);\n txtBranch.setBounds(0, 0, 64, 19);\n\n txtBank = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBank = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBank.widthHint = 50;\n txtBank.setLayoutData(gd_txtBank);\n btnSearch = new Button(cmpTop, SWT.NONE);\n btnSearch.setAlignment(SWT.RIGHT);\n btnSearch.setText(\"Search\");\n btnSearch.setEnabled(false);\n\n Composite cmpResults = new Composite(shell, SWT.NONE);\n cmpResults.setLayout(new GridLayout(1, false));\n GridData gd_cmpResults = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_cmpResults.heightHint = 129;\n cmpResults.setLayoutData(gd_cmpResults);\n\n tblAccounts = new Table(cmpResults, SWT.BORDER);\n GridData gd_tblAccounts = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_tblAccounts.heightHint = 71;\n tblAccounts.setLayoutData(gd_tblAccounts);\n tblAccounts.setHeaderVisible(true);\n tblAccounts.setLinesVisible(true);\n\n TableColumn tblclmnAccountNumber = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnAccountNumber.setWidth(120);\n tblclmnAccountNumber.setText(\"Player Account\");\n\n TableColumn tblclmsFirstName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmsFirstName.setWidth(100);\n tblclmsFirstName.setText(\"First Name\");\n\n TableColumn tblclmnLastName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnLastName.setWidth(100);\n tblclmnLastName.setText(\"Last Name\");\n\n TableColumn tblclmnActivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnActivated.setWidth(95);\n tblclmnActivated.setText(\"From\");\n\n TableColumn tblclmnDeactivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnDeactivated.setWidth(100);\n tblclmnDeactivated.setText(\"To\");\n\n Composite cmpFooter = new Composite(shell, SWT.NONE);\n cmpFooter.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n cmpFooter.setLayout(new GridLayout(2, false));\n\n lblResultsMessage = new Label(cmpFooter, SWT.NONE);\n lblResultsMessage.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\n Composite cmpButtons = new Composite(cmpFooter, SWT.NONE);\n cmpButtons.setLayout(new GridLayout(3, false));\n cmpButtons.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1));\n\n btnLoad = new Button(cmpButtons, SWT.NONE);\n btnLoad.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnLoad.setText(\"Load Account\");\n btnLoad.setEnabled(false);\n\n btnCancel = new Button(cmpButtons, SWT.NONE);\n btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnCancel.setText(\"Cancel\");\n new Label(cmpButtons, SWT.NONE);\n }",
"private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}",
"protected JComponent makeTeacherProfilePanel() {\n\t\t\n\t\t//Initiate profilePanel\n\t\tJPanel profilePanel = new JPanel();\n\t\tprofilePanel.setLayout(new BorderLayout());\n\t\tprofilePanel.setSize(teacherPortalWidth, teacherPortalHeight);\n\t\tprofilePanel.setBorder(compound);\n\t\t\n\t\t//Generate profilePanel's left component\n\t\tTitledBorder leftPanelTitle, usernameTitle, firstNameTitle, lastNameTitle, schoolNameTitle, sQ1Title, sQ2Title;\n\t\tleftPanelTitle = BorderFactory.createTitledBorder(\"Profile Information\");\n\t\tusernameTitle = BorderFactory.createTitledBorder(\"Username\");\n\t\tfirstNameTitle = BorderFactory.createTitledBorder(\"First\");\n\t\tlastNameTitle = BorderFactory.createTitledBorder(\"Last\");\n\t\tschoolNameTitle = BorderFactory.createTitledBorder(\"School\");\n\t\tsQ1Title = BorderFactory.createTitledBorder(\"Security Question 1\");\n\t\tsQ2Title = BorderFactory.createTitledBorder(\"Security Question 2\");\n\t\n\t\t//LeftPanel JPanel \n\t\tJPanel leftPanel = new JPanel();\n\t\tleftPanel.setLayout(new GridLayout(6,1,1,1));\n\t\tleftPanel.setBorder(leftPanelTitle);\n\t\t\n\t\t//Username JLabel\n\t\tJLabel usernameL = new JLabel(tUsernameTF.getText());\n\t\tusernameL.setBorder(usernameTitle);\n\t\tusernameL.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(usernameL);\n\t\t\n\t\t//FirstName JLabel\n\t\tJLabel firstNameL = new JLabel(tFirstNameTF.getText());\n\t\tfirstNameL.setBorder(firstNameTitle);\n\t\tfirstNameL.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(firstNameL);\n\t\t\n\t\t//LastName JLabel\n\t\tJLabel lastNameL = new JLabel(tLastNameTF.getText());\n\t\tlastNameL.setBorder(lastNameTitle);\n\t\tlastNameL.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(lastNameL);\n\t\t\n\t\t//SchoolName JLabel\n\t\tJLabel schoolNameL = new JLabel(tSchoolNameTF.getText());\n\t\tschoolNameL.setBorder(schoolNameTitle);\n\t\tschoolNameL.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(schoolNameL);\n\n\t\t//Security Question 1 JLabel\n\t\tJLabel sQ1L = new JLabel((String)tSecurityList1.getSelectedItem());\n\t\tsQ1L.setBorder(sQ1Title);\n\t\tsQ1L.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(sQ1L);\n\t\t\n\t\t//Security Question 2 JLabel\n\t\tJLabel sQ2L = new JLabel((String)tSecurityList2.getSelectedItem());\n\t\tsQ2L.setBorder(sQ2Title);\n\t\tsQ2L.setFont(new Font(\"Candara\", Font.BOLD, 20));\n\t\tleftPanel.add(sQ2L);\n\t\t\n\t\t//----------------------------------------------------------------------------\n\t\t\n\t\t//Generate profilePanel's right component \n\t\tTitledBorder topTitle, middleTitle, bottomTitle, controlsTitle;\n\t\ttopTitle = BorderFactory.createTitledBorder(\"Profile\");\n\t\tmiddleTitle = BorderFactory.createTitledBorder(\"Class\");\n\t\tbottomTitle = BorderFactory.createTitledBorder(\"Study\");\n\t\tcontrolsTitle = BorderFactory.createTitledBorder(\"Controls\");\n\t\t\n\t\t//Main rightPanel\n\t\tJPanel rightPanel = new JPanel();\n\t\trightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\t\n\t\t//TopRightPanel\n\t\tJPanel topRightPanel = new JPanel();\n\t\ttopRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\ttopRightPanel.setBorder(topTitle);\n\t\t\n\t\t//EditProfile JButton\n\t\tJButton editProfileB = new JButton(\"Edit Profile\");\n\t\teditProfileB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tupdateTeacherProfile();\n\t }\n\t \t});\n\t\ttopRightPanel.add(editProfileB);\n\t\t\n\t\t//EditSecurity JButton\n\t\tJButton editSecurityB = new JButton(\"Edit Security\");\n\t\teditSecurityB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tupdateTeacherSecurity();\n\t }\n\t \t});\n\t\ttopRightPanel.add(editSecurityB);\n\t\t\n\t\t//Logout JButton\n\t\tJButton logoutB = new JButton(\"Logout\");\n\t\tlogoutB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\ttPortalWindow.dispose();\n\t \t\tloginScreen();\n\t }\n\t \t});\n\t\ttopRightPanel.add(logoutB);\n\t\t\n\t\t//MiddleRightPanel\n\t\tJPanel middleRightPanel = new JPanel();\n\t\tmiddleRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\tmiddleRightPanel.setBorder(middleTitle);\n\t\t\n\t\t//NewClass JButton\n\t\tJButton newClassB = new JButton(\"New Class\");\n\t\tnewClassB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\taddClassTeacher();\n\t }\n\t \t});\n\t\tmiddleRightPanel.add(newClassB);\n\t\t\n\t\t//EditClass JButton\n\t\tJButton editClassB = new JButton(\"Edit Class\");\n\t\teditClassB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tdeleteClassTeacher();\n\t }\n\t \t});\n\t\tmiddleRightPanel.add(editClassB);\n\t\t\n\t\t//BottomRightPanel\n\t\tJPanel bottomRightPanel = new JPanel();\n\t\tbottomRightPanel.setLayout(new GridLayout(3,1,1,1));\n\t\tbottomRightPanel.setBorder(bottomTitle);\n\t\t\n\t\t//NewStudy JButton\n\t\tJButton newStudyB = new JButton(\"New Study\");\n\t\tnewStudyB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tcreateStudyName();\n\t\t\t\tnewFlashCard = new FlashCard(subjectNameTF.getText());\n\t }\n\t \t});\n\t\tbottomRightPanel.add(newStudyB);\n\t\t\n\t\t//EditStudy JButton\n\t\tJButton editStudyB = new JButton(\"Edit Study\");\n\t\teditStudyB.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t \t\tdeleteStudyMaterial();\n\t }\n\t \t});\n\t\tbottomRightPanel.add(editStudyB);\n\t\t\n\t\t//Add JPanel's to main JPanel\n\t\trightPanel.setBorder(controlsTitle);\n\t\trightPanel.add(topRightPanel);\n\t\trightPanel.add(middleRightPanel);\n\t\trightPanel.add(bottomRightPanel);\n\t\t\n\t\t//ProfileSplit JSplitPane\n\t\tJSplitPane profileSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n leftPanel, rightPanel);\n\t\tprofileSplit.setResizeWeight(0.75);\n\t\tprofileSplit.setDividerLocation(0.75);\n\t\t\n\t\tprofilePanel.add(profileSplit);\n\t\treturn profilePanel;\n\t}",
"private void initPanelButtons() {\r\n\t\tthis.panelButtons = new JPanel(new GridBagLayout());\r\n\t\tthis.panelButtons.setBorder(BorderFactory.createEmptyBorder(10, 5, 0, 5));\r\n\t\tthis.panelButtons.setOpaque(false);\r\n\t\tGridBagConstraints gbc = new GridBagConstraints();\r\n\r\n\t\tgbc.gridx = 0;\r\n\t\tgbc.gridy = 0;\r\n\t\tgbc.gridwidth = 1;\r\n\t\tgbc.gridheight = 1;\r\n\t\tgbc.weightx = 1;\r\n\t\tgbc.weighty = 1;\r\n\t\tthis.returnButton.setBackground(ConstantView.COLOR_BUTTON_LOGIN);\r\n\t\tthis.returnButton.setForeground(Color.WHITE);\r\n\t\tthis.returnButton.setFocusable(false);\r\n\t\tthis.returnButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tthis.returnButton.setFont(ConstantView.FONT_PRINCIPAL_LABELS);\r\n\t\tthis.panelButtons.add(returnButton, gbc);\r\n\r\n\t\tgbc.gridx = 7;\r\n\t\tthis.okButton.setBackground(ConstantView.COLOR_BUTTON_LOGIN);\r\n\t\tthis.okButton.setForeground(Color.WHITE);\r\n\t\tthis.okButton.setFocusable(false);\r\n\t\tthis.okButton.setCursor(new Cursor(Cursor.HAND_CURSOR));\r\n\t\tthis.okButton.setFont(ConstantView.FONT_PRINCIPAL_LABELS);\r\n\t\tthis.okButton.addActionListener(ControlClient.getInstance());\r\n\t\tthis.okButton.setActionCommand(ClientCommands.OK_SIGN_IN.toString());\r\n\t\tthis.panelButtons.add(okButton, gbc);\r\n\t}",
"private void createDisplayEditOverlay() {\n\t}",
"private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd);\n\n // Create a group to contain the RGB and HSB radio buttons.\n Group colorGroup = new Group(comp1, SWT.NONE);\n colorGroup.setText(\" Use color model: \");\n\n RowLayout groupRowLayout = new RowLayout();\n groupRowLayout.marginLeft = 10;\n groupRowLayout.marginRight = 10;\n groupRowLayout.spacing = 10;\n colorGroup.setLayout(groupRowLayout);\n\n // Create the RGB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the RGB\n // sliders.\n rgbRdo = new Button(colorGroup, SWT.RADIO);\n rgbRdo.setText(\"RGB\");\n rgbRdo.setSelection(true);\n rgbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n\n // Create the HSB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the HSB\n // sliders.\n hsbRdo = new Button(colorGroup, SWT.RADIO);\n hsbRdo.setText(\"HSB\");\n hsbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n \n Composite catComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 20;\n catComp.setLayout(gl);\n gd = new GridData(GridData.CENTER);\n gd.horizontalAlignment = SWT.CENTER;\n \n catComp.setLayoutData(gd);\n\n Label selCatLbl = new Label( catComp, SWT.None );\n selCatLbl.setText(\"Category\");\n \n final Combo selCmapCatCombo = new Combo( catComp, SWT.DROP_DOWN | SWT.READ_ONLY );\n selCmapCatCombo.setItems( availColorMapCats );\n selCmapCatCombo.select(0);\n \n selCmapCatCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCat = selCmapCatCombo.getText();\n \t\tif( seldCat.equals( seldCmapCat ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapCat = seldCat;\n \t\tseldCmapName = null;\n \t\tavailColorMaps.clear();\n \t\t\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n \t\n createSliderData();\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n Composite cmapComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 10;\n cmapComp.setLayout(gl);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n cmapComp.setLayoutData(gd);\n\n Label selCmapLbl = new Label( cmapComp, SWT.None );\n selCmapLbl.setText(\"Colormap\");\n \n selCmapCombo = new Combo( cmapComp, SWT.DROP_DOWN );\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n \n selCmapCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCmap = selCmapCombo.getText();\n \t\tif( seldCmap.equals( seldCmapName ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapName = seldCmap;\n\n \t\tif( initColorMap() ) {\n createSliderData();\n \t\t}\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n// selCmapCombo.addModifyListener( new ModifyListener() {\n//\t\t\t@Override\n//\t\t\tpublic void modifyText(ModifyEvent e) { \n//\t\t\t\tseldCmapName = selCmapCombo.getText();\n//\t\t\t}\n// });\n }",
"private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }",
"protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }",
"private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagButton = new JButton();\n Font memberImportTagButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagButton.getFont());\n if (memberImportTagButtonFont != null) memberImportTagButton.setFont(memberImportTagButtonFont);\n memberImportTagButton.setText(\"导入选择的标签分组-取并集\");\n panel2.add(memberImportTagButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagRetainButton = new JButton();\n Font memberImportTagRetainButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagRetainButton.getFont());\n if (memberImportTagRetainButtonFont != null)\n memberImportTagRetainButton.setFont(memberImportTagRetainButtonFont);\n memberImportTagRetainButton.setText(\"导入选择的标签分组-取交集\");\n panel2.add(memberImportTagRetainButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportAllButton = new JButton();\n Font memberImportAllButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportAllButton.getFont());\n if (memberImportAllButtonFont != null) memberImportAllButton.setFont(memberImportAllButtonFont);\n memberImportAllButton.setText(\"导入所有关注公众号的用户\");\n panel2.add(memberImportAllButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionPanel = new JPanel();\n importOptionPanel.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(importOptionPanel, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionOpenIdCheckBox = new JCheckBox();\n importOptionOpenIdCheckBox.setEnabled(false);\n importOptionOpenIdCheckBox.setSelected(true);\n importOptionOpenIdCheckBox.setText(\"openId\");\n importOptionPanel.add(importOptionOpenIdCheckBox, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n importOptionPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n importOptionBasicInfoCheckBox = new JCheckBox();\n importOptionBasicInfoCheckBox.setText(\"昵称、性别等基本信息\");\n importOptionBasicInfoCheckBox.setToolTipText(\"每获取一条信息会花费一次每日接口调用量\");\n importOptionPanel.add(importOptionBasicInfoCheckBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n importOptionAvatarCheckBox = new JCheckBox();\n importOptionAvatarCheckBox.setText(\"头像\");\n importOptionAvatarCheckBox.setToolTipText(\"勾选会导致左侧列表甚至WePush变卡哦\");\n importOptionPanel.add(importOptionAvatarCheckBox, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearDbCacheButton = new JButton();\n clearDbCacheButton.setText(\"清空本地缓存\");\n importOptionPanel.add(clearDbCacheButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n memberImportTagComboBox.setModel(defaultComboBoxModel1);\n panel3.add(memberImportTagComboBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagFreshButton = new JButton();\n Font memberImportTagFreshButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagFreshButton.getFont());\n if (memberImportTagFreshButtonFont != null) memberImportTagFreshButton.setFont(memberImportTagFreshButtonFont);\n memberImportTagFreshButton.setText(\"刷新\");\n panel3.add(memberImportTagFreshButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"标签分组\");\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n btnListaProfesores = new javax.swing.JButton();\n btnMaterias = new javax.swing.JButton();\n btnCursados = new javax.swing.JButton();\n btnInscripciones = new javax.swing.JButton();\n btnListaAlumnos = new javax.swing.JButton();\n btnListaCarreras = new javax.swing.JButton();\n selectProf = new javax.swing.JLabel();\n selectInsc = new javax.swing.JLabel();\n selectAlumnos = new javax.swing.JLabel();\n selectMat = new javax.swing.JLabel();\n selectCarrera = new javax.swing.JLabel();\n selectCursado = new javax.swing.JLabel();\n mainPanel = new javax.swing.JPanel();\n lblMainTitle = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(51, 153, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/dashboard.png\"))); // NOI18N\n jLabel1.setText(\"SGA2020-Prog2\");\n\n btnListaProfesores.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnListaProfesores.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/profesores.png\"))); // NOI18N\n btnListaProfesores.setText(\"Lista Profesores\");\n btnListaProfesores.setBorderPainted(false);\n btnListaProfesores.setContentAreaFilled(false);\n btnListaProfesores.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/profesoresHover.png\"))); // NOI18N\n btnListaProfesores.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnListaProfesoresActionPerformed(evt);\n }\n });\n\n btnMaterias.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnMaterias.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/materias.png\"))); // NOI18N\n btnMaterias.setText(\"Lista Materias\");\n btnMaterias.setBorder(null);\n btnMaterias.setBorderPainted(false);\n btnMaterias.setContentAreaFilled(false);\n btnMaterias.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/materiaHover.png\"))); // NOI18N\n\n btnCursados.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnCursados.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/cursos.png\"))); // NOI18N\n btnCursados.setText(\"Lista Cursados\");\n btnCursados.setBorderPainted(false);\n btnCursados.setContentAreaFilled(false);\n btnCursados.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/cursosHover.png\"))); // NOI18N\n btnCursados.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCursadosActionPerformed(evt);\n }\n });\n\n btnInscripciones.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnInscripciones.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/inscripciones.png\"))); // NOI18N\n btnInscripciones.setText(\"Inscripciones\");\n btnInscripciones.setBorderPainted(false);\n btnInscripciones.setContentAreaFilled(false);\n btnInscripciones.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/inscripcionesHover.png\"))); // NOI18N\n\n btnListaAlumnos.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnListaAlumnos.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/alumnos.png\"))); // NOI18N\n btnListaAlumnos.setText(\"Lista Alumnos\");\n btnListaAlumnos.setBorder(null);\n btnListaAlumnos.setBorderPainted(false);\n btnListaAlumnos.setContentAreaFilled(false);\n btnListaAlumnos.setDefaultCapable(false);\n btnListaAlumnos.setRequestFocusEnabled(false);\n btnListaAlumnos.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/alumnosHover.png\"))); // NOI18N\n\n btnListaCarreras.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n btnListaCarreras.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/carreras.png\"))); // NOI18N\n btnListaCarreras.setText(\"Lista Carreras\");\n btnListaCarreras.setBorderPainted(false);\n btnListaCarreras.setContentAreaFilled(false);\n btnListaCarreras.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/carrerasHover.png\"))); // NOI18N\n\n selectProf.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectInsc.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectAlumnos.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectMat.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectCarrera.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n selectCursado.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/sky/pi/images/menuSelection.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnListaProfesores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnListaCarreras, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnInscripciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCursados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnListaAlumnos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnMaterias, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(selectProf, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectAlumnos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectCarrera, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectInsc, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectMat, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectCursado, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(40, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnListaAlumnos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(selectAlumnos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 77, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnListaProfesores, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)\n .addComponent(selectProf, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(btnMaterias, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnCursados, javax.swing.GroupLayout.PREFERRED_SIZE, 72, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnInscripciones, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(selectMat, javax.swing.GroupLayout.PREFERRED_SIZE, 72, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selectCursado, javax.swing.GroupLayout.PREFERRED_SIZE, 72, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selectInsc, javax.swing.GroupLayout.PREFERRED_SIZE, 73, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnListaCarreras, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)\n .addComponent(selectCarrera, javax.swing.GroupLayout.PREFERRED_SIZE, 77, Short.MAX_VALUE))\n .addGap(40, 40, 40))\n );\n\n mainPanel.setBackground(new java.awt.Color(102, 204, 255));\n mainPanel.setPreferredSize(new java.awt.Dimension(686, 100));\n mainPanel.setLayout(new java.awt.CardLayout());\n\n lblMainTitle.setBackground(new java.awt.Color(51, 153, 255));\n lblMainTitle.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n lblMainTitle.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblMainTitle.setText(\"Main Title\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 56, Short.MAX_VALUE)\n .addComponent(lblMainTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 696, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblMainTitle, javax.swing.GroupLayout.DEFAULT_SIZE, 52, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(mainPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 537, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"private void generateButtonPanel() {\n buttonsPanel = new JPanel();\n playPauseButton = addButton(\"Play/Pause\");\n restartButton = addButton(\"Restart\");\n speedUpButton = addButton(\"Speed Up\");\n slowDownButton = addButton(\"Slow Down\");\n loopbackButton = addButton(\"Loopback\");\n keyCommandsButton = addButton(\"Key Commands\");\n textViewButton = addButton(\"Animation Text\");\n\n addShapeButton = addButton(\"Add Shape\");\n removeShapeButton = addButton(\"Remove Shape\");\n addKeyframeButton = addButton(\"Add Keyframe\");\n removeKeyframeButton = addButton(\"Remove Keyframe\");\n editKeyframeButton = addButton(\"Edit Keyframe\");\n clearAnimationButton = addButton(\"Clear Animation\");\n clearShapeButton = addButton(\"Clear Shape\");\n buttonsPanel.setLayout(new FlowLayout());\n\n mainPanel.add(buttonsPanel);\n }",
"private void buildUIElements() {\n uiCamera = new OrthographicCamera( Global.WINDOW_WIDTH, Global.WINDOW_HEIGHT );\n uiViewport = new ExtendViewport( Global.WINDOW_WIDTH, Global.WINDOW_HEIGHT, uiCamera );\n\n //Build the table.\n uiStage = new Stage( uiViewport );\n rootTable = new Table( VisUI.getSkin() );\n uiStage.addActor( rootTable );\n rootTable.setFillParent( true );\n rootTable.left().top();\n\n //Fill up the healthMeter is images to be used as healthBars.\n for ( int i = 0; i < 20; i++ ) {\n healthMeter.add( new Image( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }",
"private void profileButton2ActionPerformed(ActionEvent e) {\n // TODO add your code here\n ViewBuffer.setBuffer(\"\");\n ViewBuffer.setBuffer(this.list.get(this.page*6 + 1).getClientID());\n ViewMemberProfile.run();\n this.dispose();\n }",
"public AdminProfile_panel() {\n initComponents();\n \n }",
"private void initTopPanel()\r\n {\r\n GridBagConstraints TopPanelConstraints = new GridBagConstraints();\r\n GridBagLayout TopPanelLayout = new GridBagLayout();\r\n JPanel TopPanel = new JPanel();\r\n TopPanel.setLayout(TopPanelLayout);\r\n\r\n TopPanelConstraints.insets = new Insets(4, 4, 4, 4);\r\n TopPanelConstraints.anchor = GridBagConstraints.WEST;\r\n TopPanelConstraints.gridwidth = 1;\r\n TopPanelConstraints.gridheight = 1;\r\n TopPanelConstraints.fill = GridBagConstraints.HORIZONTAL;\r\n TopPanelConstraints.weighty = 0.0;\r\n\r\n // The first line.\r\n TopPanelConstraints.gridy = 0;\r\n TopPanelConstraints.gridx = 0;\r\n TopPanelConstraints.weightx = 1.0;\r\n Container FirstLineContainer = buildFirstLine();\r\n TopPanel.add(FirstLineContainer, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 1;\r\n TopPanelConstraints.weightx = 0.0;\r\n // TopPanel.add(AboutButton, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 2;\r\n TopPanelConstraints.weightx = 0.0;\r\n // TopPanel.add(ExitButton, TopPanelConstraints);\r\n\r\n // The second line.\r\n TopPanelConstraints.gridy = 1;\r\n TopPanelConstraints.gridx = 0;\r\n TopPanelConstraints.weightx = 1.0;\r\n Container SecondLineContainer = buildSecondLine();\r\n TopPanel.add(SecondLineContainer, TopPanelConstraints);\r\n\r\n TopPanelConstraints.gridx = 1;\r\n TopPanelConstraints.weightx = 0.0;\r\n TopPanelConstraints.gridwidth = 2;\r\n TopPanel.add(SaveResultsButton, TopPanelConstraints);\r\n\r\n \tBrowseButton.addActionListener(new BrowseButtonListener() );\r\n \tSearchButton.addActionListener(new SearchButtonListener() );\r\n \t//ExitButton.addActionListener(new ExitButtonListener() );\r\n \t//AboutButton.addActionListener(new AboutButtonListener() );\r\n \tSaveResultsButton.addActionListener(new SaveButtonListener() );\r\n\r\n\t getContentPane().add(\"North\", TopPanel);\r\n }",
"private JPanel createAvailableConditionsSetPanel() {\n\t\tJPanel toReturn = new JPanel(new GridBagLayout());\n\n\t\t\n\t\t// Action for show profiling preferences.\n\t\t AbstractAction showProfilingPageAction = new AbstractAction(\"Profiling Preferences\") {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tPluginWorkspaceProvider.getPluginWorkspace().showPreferencesPages(new String[] { \"profiling.conditions\" },\n\t\t\t\t\t\t\"profiling.conditions\", true);\n\t\t\t\n\t\t\t\t//update the panel \n\t\t\t\tcomboBoxUpdate();\n\t\t\t}\n\t\t};\n\n\t\t\n\t\t // Button for display profiling preferences\n\t\t ToolbarButton buttonToProfiling = new ToolbarButton(showProfilingPageAction, true);\n\t\t\n\t\t\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\t\n\t\t//add the checkBox\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 0;\n\t\tgbc.weightx = 1;\n\t\ttoReturn.add(useAllCondSetsRBtn, gbc);\n\t\t\n\t\t//add the button\n\t\tgbc.gridx = 1;\n\t\tgbc.weightx = 0;\n\n\t\tURL imageToLoad = getClass().getClassLoader().getResource(Images.PREFERENCES_ICON);\n\t\tif (imageToLoad != null) {\n\t\t\tbuttonToProfiling.setIcon(ro.sync.ui.Icons.getIcon(imageToLoad.toString()));\n\t\t\tbuttonToProfiling.setText(\"\");\n\t\t} else {\n\t\t\tbuttonToProfiling.setText(\"PC\");\n\t\t}\n\t\ttoReturn.add(buttonToProfiling, gbc);\n\n\t\treturn toReturn;\n\t}",
"private PanelReproductorVideo() {\r\n\t\t\tsetLayout(new GridLayout(3, 3));\r\n\t\t\tstart.addActionListener(listener);\r\n\t\t\tstop.addActionListener(listener);\r\n\t\t\treset.addActionListener(listener);\r\n\t\t\tadd(start);\r\n\t\t\tadd(stop);\r\n\t\t\tadd(reset);\r\n\t\t\tadd(time);\r\n\r\n\t\t}",
"private void buildInfoPanel() {\r\n infoPanel = new JPanel( new GridLayout( 1, 1 ) );\r\n infoBox = Box.createHorizontalBox();\r\n\r\n // setBackground() does NOT work with a Box\r\n infoPanel.setBackground( COLOR_INFO_BKGRND );\r\n\r\n soundBtn = new JButton( Msgs.str( \"Snd.go\" ) );\r\n soundBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( soundBtn );\r\n\r\n resetBtn = new JButton( Msgs.str( \"Reset\" ) );\r\n resetBtn.addActionListener( listener );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( resetBtn );\r\n\r\n infoMesg = new JLabel( Msgs.str( \"Ready\" ), SwingConstants.CENTER );\r\n infoMesg.setFont( fontLARGE );\r\n infoMesg.setForeground( COLOR_INFO_FRGRND );\r\n infoBox.add( Box.createGlue() );\r\n infoBox.add( infoMesg );\r\n infoBox.add( Box.createGlue() );\r\n\r\n infoPanel.add( infoBox );\r\n }",
"private void profileButton1ActionPerformed(ActionEvent e) {\n // TODO add your code here\n ViewBuffer.setBuffer(\"\");\n ViewBuffer.setBuffer(this.list.get(this.page*6).getClientID());\n ViewMemberProfile.run();\n this.dispose();\n }",
"void infoSetUp() {\r\n\t\tJPanel imageInfo = new JPanel();\r\n\t\timageInfo.setLayout(new GridLayout(2, 0));\r\n\t\tJPanel mButtons = new JPanel();\r\n\r\n\t\tJButton save = new JButton(\"save\");\r\n\t\tJButton upload = new JButton(\"upload\");\r\n\t\tJButton delete = new JButton(\"delete\");\r\n\t\tJButton view = new JButton(\"open\");\r\n\r\n\t\tupload.setActionCommand(\"upload\");\r\n\t\tview.setActionCommand(\"view\");\r\n\t\tActionListener upList = new UpList();\r\n\t\tupload.addActionListener(upList);\r\n\t\tview.addActionListener(upList);\r\n\t\tmButtons.add(save);\r\n\t\tmButtons.add(upload);\r\n\t\tmButtons.add(delete);\r\n\t\tmButtons.add(view);\r\n\r\n\t\tJTextArea info = new JTextArea(\"Path: \");\r\n\t\tinfo.setEditable(false);\r\n\t\timageInfo.add(info);\r\n\t\timageInfo.add(mButtons);\r\n\t\tmainFrame.add(imageInfo);\r\n\t\tinfoText = info;\r\n\t}",
"private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }",
"private JPanel topBar() {\n\t\t\n\t\t//creating a top bar with controls\n\t\tJPanel topBar = new JPanel();\n\t\tColor myPurp = new Color(191, 123, 123);\n\t\ttopBar.setBackground(myPurp);\n\t\t\n\t\t//reset button with listener\n\t\ttopBar.add(reset);\n\t\treset.addActionListener(this);\n\t\t\n\t\t//creating button that starts simulation\n\t\tstart.setSelected(false);\n\t\tstart.addActionListener(this);\n\t\ttopBar.add(start);\n\t\t\n\t\t//creating button that stops simulation\n\t\tstop.setSelected(true);\n\t\tstop.addActionListener(this);\n\t\ttopBar.add(stop);\n\t\t\n\t\t//button group to ensure you cannot start and stop at same time\n\t\tButtonGroup startStop = new ButtonGroup();\n\t\tstartStop.add(start);\n\t\tstartStop.add(stop);\n\t\t\n\t\t//creating label that shows # of steps\n\t\tsteps.setHorizontalAlignment(JLabel.CENTER);\n\t\ttopBar.add(steps);\n\t\t\n\t\t\n\t\treturn topBar;\n\t}",
"private void inicialitzarComponents() {\n\t\tsetLayout(new BorderLayout(0, 0));\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setOpaque(false);\n\t\tadd(panel, BorderLayout.NORTH);\n\n\t\tBox verticalBox = Box.createVerticalBox();\n\t\tverticalBox.setOpaque(false);\n\t\tpanel.add(verticalBox);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setOpaque(false);\n\t\tverticalBox.add(panel_2);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setOpaque(false);\n\t\tverticalBox.add(panel_3);\n\n\t\tJLabel lblNewLabel = new JLabel(nomUsuari);\n\t\tlblNewLabel.setFont(lblNewLabel.getFont().deriveFont(30f));\n\t\tpanel_3.add(lblNewLabel);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setOpaque(false);\n\t\tadd(panel_1, BorderLayout.CENTER);\n\n\t\tBox verticalBox_1 = Box.createVerticalBox();\n\t\tverticalBox_1.setOpaque(false);\n\t\tpanel_1.add(verticalBox_1);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setOpaque(false);\n\t\tverticalBox_1.add(panel_4);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Peces girades:\");\n\t\tpanel_4.add(lblNewLabel_1);\n\n\t\tJLabel lblNewLabel_2 = new JLabel(String.valueOf(records.get(\"pecesGirades\")));\n\t\tpanel_4.add(lblNewLabel_2);\n\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setOpaque(false);\n\t\tverticalBox_1.add(panel_5);\n\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Partides blanques guanyades:\");\n\t\tpanel_5.add(lblNewLabel_3);\n\n\t\tJLabel lblNewLabel_4 = new JLabel(String.valueOf(records.get(\"partidesBlanquesGuanyades\")));\n\t\tpanel_5.add(lblNewLabel_4);\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setOpaque(false);\n\t\tverticalBox_1.add(panel_6);\n\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Partides negres guanyades:\");\n\t\tpanel_6.add(lblNewLabel_5);\n\n\t\tJLabel lblNewLabel_6 = new JLabel(String.valueOf(records.get(\"partidesNegresGuanyades\")));\n\t\tpanel_6.add(lblNewLabel_6);\n\n\t\tpanellRanking.setLayout(new BorderLayout());\n\t\tpanellRanking.add(menu, BorderLayout.NORTH);\n\t\tpanellRanking.add(taulaHoritzontal, BorderLayout.CENTER);\n\t\tpanellRanking.setBorder(BorderFactory.createLineBorder(Color.white, 4));\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setOpaque(false);\n\t\tpanel_7.setSize(20, 20);\n\t\tpanel_7.add(panellRanking);\n\t\tverticalBox_1.add(panel_7);\n\t}",
"@Override\n\tpublic void initGui()\n {\n this.controlList.clear();\n //Keyboard.enableRepeatEvents(true);\n\n int var1 = (this.width - this.bookImageWidth) / 2;\n int var2 = (this.height - this.bookImageHeight - 40) / 2;\n this.controlList.add(this.buttonNextPage = new GuiButtonNextPage(1, var1 + 120, var2 + 154, true));\n this.controlList.add(this.buttonPreviousPage = new GuiButtonNextPage(2, var1 + 38, var2 + 154, false));\n this.controlList.add(this.buttonIndex = new GuiButtonNextPage(8, var1 + 28, var2 + 10, false));\n this.controlList.add(this.buttonMenu1 = new GuiButtonSelect(3, var1 + 35, var2 + 30, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu2 = new GuiButtonSelect(4, var1 + 35, var2 + 55, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu3 = new GuiButtonSelect(5, var1 + 35, var2 + 80, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu4 = new GuiButtonSelect(6, var1 + 35, var2 + 105, 110, 20, \"\"));\n this.controlList.add(this.buttonMenu5 = new GuiButtonSelect(7, var1 + 35, var2 + 130, 110, 20, \"\"));\n this.controlList.add(this.bookmark = new GuiButtonBookmark(9, var1 + 142, var2 + 7, false));\n this.updateButtons();\n }",
"private void createBottomButtons() {\n // Create a composite that will contain the control buttons.\n Composite bottonBtnComposite = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, true);\n gl.horizontalSpacing = 10;\n bottonBtnComposite.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n bottonBtnComposite.setLayoutData(gd);\n\n // Create the Interpolate button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n interpolateBtn = new Button(bottonBtnComposite, SWT.PUSH);\n interpolateBtn.setText(\"Interpolate\");\n interpolateBtn.setLayoutData(gd);\n interpolateBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorData upperColorData = upperColorWheel.getColorData();\n ColorData lowerColorData = lowerColorWheel.getColorData();\n\n colorBar.interpolate(upperColorData, lowerColorData, rgbRdo\n .getSelection());\n undoBtn.setEnabled(true);\n updateColorMap();\n }\n });\n\n // Create the Undo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n undoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n undoBtn.setText(\"Undo\");\n undoBtn.setEnabled(false);\n undoBtn.setLayoutData(gd);\n undoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n undoBtn.setEnabled(colorBar.undoColorBar());\n updateColorMap();\n redoBtn.setEnabled(true);\n }\n });\n\n // Create the Redo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n redoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n redoBtn.setText(\"Redo\");\n redoBtn.setEnabled(false);\n redoBtn.setLayoutData(gd);\n redoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n redoBtn.setEnabled(colorBar.redoColorBar());\n updateColorMap();\n undoBtn.setEnabled(true);\n }\n });\n\n // Create the Revert button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n revertBtn = new Button(bottonBtnComposite, SWT.PUSH);\n revertBtn.setText(\"Revert\");\n revertBtn.setLayoutData(gd);\n revertBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n colorBar.revertColorBar();\n updateColorMap();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n }\n });\n\n // Create the Save button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n saveBtn = new Button(bottonBtnComposite, SWT.PUSH);\n saveBtn.setText(\"Save\");\n saveBtn.setLayoutData(gd);\n if( seldCmapName == null ) {\n saveBtn.setEnabled(false);\n }\n \n saveBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorMap cm = (ColorMap) cmapParams.getColorMap();\n seldCmapName = selCmapCombo.getText();\n \n// int sepIndx = seldCmapName.indexOf(File.separator);\n// String cmapCat = seldCmapName.substring(0,seldCmapName.indexOf(File.separator));\n// String cmapName = seldCmapName.substring( seldCmapName.indexOf(File.separator));\n if (lockedCmaps != null && lockedCmaps.isLocked(seldCmapName)) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists and is locked.\\n\\n\" +\n \t\t\t\"You cannot overwrite it.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tconfirmDlg.open();\n \tcolorBar.undoColorBar();\n updateColorMap();\n \treturn;\n } \n else if( ColorMapUtil.colorMapExists( seldCmapCat, seldCmapName ) ) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists.\\n\\n\" +\n \t\t\t\"Do you want to overwrite it?\",\n \t\t\tMessageDialog.QUESTION, new String[]{\"Yes\", \"No\"}, 0);\n \tconfirmDlg.open();\n\n \tif( confirmDlg.getReturnCode() == MessageDialog.CANCEL ) {\n \t\treturn;\n \t}\n }\n\n try {\n ColorMapUtil.saveColorMap( cm, seldCmapCat, seldCmapName );\n \n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Colormap Saved\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" Saved.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n } catch (VizException e) {\n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Error\", null, \n \t\t\t\"Error Saving Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\"\\n\"+e.getMessage(),\n \t\t\tMessageDialog.ERROR, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n }\n\n completeSave();\n }\n });\n\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.grabExcessHorizontalSpace = false;\n deleteBtn = new Button(bottonBtnComposite, SWT.PUSH);\n deleteBtn.setText(\"Delete\");\n deleteBtn.setLayoutData(gd);\n deleteBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tdeleteColormap();\n }\n });\n Label sep = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n sep.setLayoutData(gd);\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.HORIZONTAL_ALIGN_END);\n Button closeBtn = new Button(shell, SWT.PUSH);\n closeBtn.setText(\" Close \");\n closeBtn.setLayoutData(gd);\n closeBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tshell.dispose();\n }\n });\n }",
"@Override\n\tprotected void createCompButtons() {\n\t\tbuildCompButtons();\n\t}",
"private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }",
"private void initializePanels() {\n queueInfoPanel.setBackground(new Color(236, 125, 51));\n queueButtonsPanel.setBackground(new Color(93, 118, 161));\n createLabelForPanel(queueInfoPanel);\n createButtonsForPanel(queueButtonsPanel);\n }",
"private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new Button(\"Clear\");\n resetButton=new Button(\"Reset\");\n finalizeButton=new Button(\"Finalize\");\n toolBar.getItems().addAll(\n createSpacer(),\n login,\n simulate,\n scoreBoardButton,\n viewBracket,\n createSpacer()\n );\n btoolBar.getItems().addAll(\n createSpacer(),\n clearButton,\n resetButton,\n finalizeButton,\n createSpacer()\n );\n }",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}",
"private void createComponentForButtons(Composite section)\n {\n createRowForNewStyleButton(section);\n createRowForNewRegexButton(section);\n createRowForNewColumnButton(section);\n createRowForDeleteButton(section);\n createRowForDeleteAllButton(section);\n }"
] | [
"0.6757167",
"0.63813066",
"0.6227018",
"0.61880964",
"0.6170849",
"0.61273754",
"0.6125054",
"0.6108546",
"0.6043597",
"0.6021065",
"0.5993894",
"0.5989532",
"0.5985114",
"0.59457666",
"0.5924879",
"0.59109044",
"0.5893656",
"0.5889062",
"0.5866251",
"0.58642066",
"0.586345",
"0.5852797",
"0.5845571",
"0.5845006",
"0.5821912",
"0.58194065",
"0.5815588",
"0.58051354",
"0.5801681",
"0.57822406",
"0.57783943",
"0.57644045",
"0.57553416",
"0.5750435",
"0.57499945",
"0.57476604",
"0.5745017",
"0.5734695",
"0.5733819",
"0.5732294",
"0.572635",
"0.57229084",
"0.57121104",
"0.5710011",
"0.5702771",
"0.5701407",
"0.5699435",
"0.56937796",
"0.56906956",
"0.5688426",
"0.56848",
"0.56715006",
"0.566767",
"0.5662361",
"0.5660157",
"0.564495",
"0.56360286",
"0.56308395",
"0.5624713",
"0.561432",
"0.5608968",
"0.5607981",
"0.5606504",
"0.5603698",
"0.55980945",
"0.55974346",
"0.55969155",
"0.5596355",
"0.5595845",
"0.55879223",
"0.55830127",
"0.5579675",
"0.5577108",
"0.5570644",
"0.5568514",
"0.5561469",
"0.55596715",
"0.5558113",
"0.55576724",
"0.55566865",
"0.5554943",
"0.555488",
"0.555403",
"0.5551861",
"0.55494547",
"0.55339426",
"0.5529571",
"0.55272645",
"0.5519579",
"0.5518748",
"0.5517652",
"0.55017436",
"0.5498288",
"0.5495818",
"0.54943764",
"0.5491875",
"0.5489704",
"0.5487847",
"0.54873735",
"0.54860955",
"0.5485387"
] | 0.0 | -1 |
Called after init(). Load profile into display. | public void initDone() {
super.initDone();
try {
setTimesForAnimation();
//loadProfile(getPosition());
doMoveProbe();
} catch (Exception exc) {
logException("initDone", exc);
}
// Enable table panel after UI is initialized
tablePanel.setVisible(showTable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void loadProfileUserData() {\n mProfilePresenter.loadProfileUserData();\n }",
"@Override\n\tpublic void showProfile() {\n\t\t\n\t}",
"public void showProfile() {\r\n\t\tprofile.setVisible(true);\r\n\t}",
"public void loadValues() {\n color.setText(bluej.getExtensionPropertyString(PROFILE_LABEL, \"\"));\r\n }",
"private void populateProfile() {\n mPassword_input_layout.getEditText().setText(mSharedPreferences.getPassWord());\n mEmail_input_layout.getEditText().setText(mSharedPreferences.getEmail());\n mEdit_name_layout.getEditText().setText(mSharedPreferences.getName());\n ((RadioButton) mRadioGender.getChildAt(mSharedPreferences.getGender())).setChecked(true);\n mPhone_input_layout.getEditText().setText(mSharedPreferences.getPhone());\n mMajor_input_layout.getEditText().setText(mSharedPreferences.getMajor());\n mClass_input_layout.getEditText().setText(mSharedPreferences.getYearGroup());\n\n // Load profile photo from internal storage\n try {\n FileInputStream fis = openFileInput(getString(R.string.profile_photo_file_name));\n Bitmap bmap = BitmapFactory.decodeStream(fis);\n mImageView.setImageBitmap(bmap);\n fis.close();\n } catch (IOException e) {\n // Default profile\n }\n }",
"public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}",
"private void loadUserData() {\n\t\t// Load and update all profile views\n\n\t\t// Load profile photo from internal storage\n\t\ttry {\n\t\t\t// open the file using a file input stream\n\t\t\tFileInputStream fis = openFileInput(getString(R.string.profile_photo_file_name));\n\t\t\t// the file's data will be read into a bytearray output stream\n\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\t\t// inputstream -> buffer -> outputstream\n\t\t\tbyte[] buffer = new byte[5 * 1024];\n\t\t\tint n;\n\t\t\t// read data in a while loop\n\t\t\twhile ((n = fis.read(buffer)) > -1) {\n\t\t\t\tbos.write(buffer, 0, n); // Don't allow any extra bytes to creep\n\t\t\t\t// in, final write\n\t\t\t}\n\t\t\tfis.close();\n\t\t\t// get the byte array from the ByteArrayOutputStream\n\t\t\tbytePhoto = bos.toByteArray();\n\t\t\tbos.close();\n\t\t} catch (IOException e) {\n\t\t}\n\n\t\t// load the byte array to the image view\n\t\tloadImage();\n\n\t\t// Get the shared preferences - create or retrieve the activity\n\t\t// preference object.\n\t\tString mKey = getString(R.string.preference_name);\n\t\tSharedPreferences mPrefs = getSharedPreferences(mKey, MODE_PRIVATE);\n\n\t\t// Load name\n\t\tmKey = getString(R.string.name_field);\n\t\tString mValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editName)).setText(mValue);\n\n\t\t// Load class info\n\t\tmKey = getString(R.string.class_field);\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editClass)).setText(mValue);\n\n\t\t// Load Major\n\t\tmKey = getString(R.string.major_field);\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editMajor)).setText(mValue);\n\n\t\t// Load course information\n\t\t// Course 1 name\n\t\tmKey = \"Course #1 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse1name)).setText(mValue);\n\n\t\t// Course 1 Time\n\t\tmKey = Globals.COURSE1_TIME_KEY;\n\t\tSpinner mSpinnerSelection = (Spinner) findViewById(R.id.course1TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #1 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse1loc)).setText(mValue);\n\n\t\t// Course 2\n\t\tmKey = \"Course #2 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2name)).setText(mValue);\n\n\t\t// Course 2 Time\n\t\tmKey = Globals.COURSE2_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course2TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #2 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2loc)).setText(mValue);\n\n\t\t// Course 3\n\t\tmKey = \"Course #3 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2name)).setText(mValue);\n\n\t\t// Course 3 Time\n\t\tmKey = Globals.COURSE3_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course3TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #3 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse3loc)).setText(mValue);\n\n\t\t// Course 4\n\t\tmKey = \"Course #4 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse4name)).setText(mValue);\n\n\t\t// Course 4 Time\n\t\tmKey = Globals.COURSE4_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course4TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #4 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse4loc)).setText(mValue);\n\t}",
"private void getProfile() {\n if (this.mLocalProfile.isEmpty()) {\n getDeviceType();\n getDeviceName();\n getScreenResolution();\n getScreenSize();\n }\n }",
"public void displayProfile(FacePamphletProfile profile) {\n\t\tremoveAll();\n\t\tdisplayName(profile.getName());\n\t\tdisplayImage(profile.getImage());\n\t\tdisplayStatus(profile.getStatus());\n\t\tdisplayFriends(profile.getFriends());\n\n\t}",
"@Override\n public void loadUserProfile(final String name) {\n try {\n // Load the actual user\n this.recognizer.loadUserProfile(name);\n } catch (final IOException e1) {\n ViewUtilities.showNotificationPopup(\"User Dataset not found\", \"Regenerating it\", Duration.MEDIUM, // NOPMD\n NotificationType.ERROR, t -> e1.printStackTrace());\n } catch (final JsonSyntaxException e2) {\n ViewUtilities.showNotificationPopup(\"Json file changed by human!\", \"Please click to se exception\",\n Duration.MEDIUM, // NOPMD\n NotificationType.ERROR, t -> e2.printStackTrace());\n }\n // Set User name in scroll bar\n ((Label) this.userScrollPane.getBottomBar().getChildren().get(0)).setText(name);\n // Load user gestures\n ViewUtilities.showSnackBar((Pane) this.recorderPane.getCenter(), \"Database loaded and Gesture updated!\",\n Duration.MEDIUM, DimDialogs.SMALL, null);\n // Create the gesture tree representation.\n this.createGestureTreeView(this.recognizer.getUserName());\n // Initialize the gesture length.\n this.gestureLength = this.recognizer.getUserGestureLength();\n // Initialize Charts\n this.setChart(this.gestureLength.getFrameNumber(), this.gestureLength.getFrameNumber());\n this.startButton.setDisable(false);\n }",
"public void loadProfile(DnCxt cxt, DnRequestHandler handler) throws DnException {\n if (cxt.userProfile != null) {\n UserAuthHook.loadProfile.callHook(cxt, this, handler);\n }\n }",
"protected void load(Profile profile) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"load\", profile);\n\t\t}\n\t\t// Do a cache lookup first. If cache miss, make a network call to get\n\t\t// Profile\n\t\tDocument data = getProfileDataFromCache(profile.getReqId());\n\t\tif (data != null) {\n\t\t\tprofile.setData(data);\n\t\t} else {\n\n\t\t\tMap<String, String> parameters = new HashMap<String, String>();\n\t\t\tif (isEmail(profile.getReqId())) {\n\t\t\t\tparameters.put(\"email\", profile.getReqId());\n\t\t\t} else {\n\t\t\t\tparameters.put(\"userid\", profile.getReqId());\n\t\t\t}\n\t\t\tObject result = null;\n\t\t\ttry {\n\t\t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n\t\t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n\t\t\t\tresult = endpoint.xhrGet(url, parameters, ClientService.FORMAT_XML);\n\t\t\t} catch (ClientServicesException e) {\n\t\t\t\tlogger.log(Level.SEVERE, \"Error while loading a profile\", e);\n\t\t\t\tresult = null;\n\t\t\t}\n\n\t\t\tif (result != null) {\n\t\t\t\tprofile.setData((Document) result);\n\t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n\t\t\t} else {\n\t\t\t\tprofile.setData(null);\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\t\tlogger.exiting(sourceClass, \"load\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onConnected(Bundle bundle) {\n getProfileInformation();\n }",
"@Override\n public void onLoadFinished(Loader<ResourceLoaderResult<UserContainer>> loader, ResourceLoaderResult<UserContainer> data) {\n super.onLoadFinished(loader, data);\n if (data.isSuccessful()) {\n bindProfileInfo(data.getResult().getUser());\n }\n }",
"public static void view() {\n\t\tUser user = UserService.getUserByUsername(session.get(\"username\"));\n\t\tUserProfile userprofile = null;\n\n\t\t// check if user object is null\n\t\tif (user != null)\n\t\t\tuserprofile = UserProfileService.getUserProfileByUserId(user.id);\n\n\t\trender(user, userprofile);\n\t}",
"public void openProfile(){\n\t\t\n\t\tclickElement(profile_L, driver);\n\t}",
"public void loadProfileWindow(DonorReceiver account) throws IOException {\n // Only load new window if childWindowToFront fails.\n if (!App.childWindowToFront(account)) {\n\n // Set the selected account for the profile pane and confirm child.\n ViewProfilePaneController.setAccount(account);\n ViewProfilePaneController.setIsChild(true);\n\n // Create new pane.\n FXMLLoader loader = new FXMLLoader();\n AnchorPane profilePane = loader.load(getClass().getResourceAsStream(PageNav.VIEW));\n\n // Create new scene.\n Scene profileScene = new Scene(profilePane);\n\n // Create new stage.\n Stage profileStage = new Stage();\n profileStage.setTitle(\"Profile for \" + account.getUserName());\n profileStage.setScene(profileScene);\n profileStage.show();\n profileStage.setX(App.getWindow().getX() + App.getWindow().getWidth());\n\n App.addChildWindow(profileStage, account);\n }\n\n }",
"public void displayDetails() {\r\n\t\tSystem.out.println(\"*******************Profile Details*********************\");\r\n\t\tSystem.out.println(\"\\tUsername :\\t\" + uName);\r\n\t\tSystem.out.println(\"\\tFull Name :\\t\" + fullName);\r\n\t\tSystem.out.println(\"\\tPhone :\\t\" + phone);\r\n\t\tSystem.out.println(\"\\tE-Mail :\\t\" + email);\r\n\t}",
"private void startLoading() {\n\t\tJSONObject obj = new JSONObject();\r\n\t\tobj.put(\"userId\", new JSONString(User.id));\r\n\t\tobj.put(\"userSID\", new JSONString(User.SID));\r\n\t\tapi.execute(RequestType.GetUserInfo, obj, this);\r\n\t}",
"H getProfile();",
"public void load() {\n notification = \"Hi \" + reader.getusername() + \"!\"\n + \"\\n\\n Latest nofitications:\\n\" + reader.notificationsToString();\n label.setText(notification);\n }",
"private void populateUserProfile() {\n setProfilePic();\n mDisplayNameTextView.setText(user.getName());\n mUsernameTextView.setText(String.format(\"@%s\", user.getUsername()));\n mBioTextView.setText(user.getBio());\n setAdapterForUserStories();\n\n new Thread(new Runnable() {\n public void run(){\n setFollowingCount();\n setFollowersCount();\n setStoriesCount();\n queryStoriesFromUser();\n }\n }).start();\n }",
"@Override\n\tpublic void showBookProfile() {\n\t\t\n\t}",
"@Override\n public void onConnected(@Nullable Bundle bundle) {\n getProfileInformation();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n profiles = ProfileManager.getDefaultManager().getAllProfiles();\n\n profileList = this;\n }",
"protected void load(Profile profile) throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"load\", profile);\n \t\t}\n \t\t// Do a cache lookup first. If cache miss, make a network call to get\n \t\t// Profile\n \t\t\n \t\tDocument data = getProfileDataFromCache(profile.getReqId());\n \t\tif (data != null) {\n \t\t\tprofile.setData(data);\n \t\t} else {\n \n \t\t\tMap<String, String> parameters = new HashMap<String, String>();\n \t\t\tif (isEmail(profile.getReqId())) {\n \t\t\t\tparameters.put(\"email\", profile.getReqId());\n \t\t\t} else {\n \t\t\t\tparameters.put(\"userid\", profile.getReqId());\n \t\t\t}\n \t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n \t\t\tObject result = executeGet(url, parameters, ClientService.FORMAT_XML);\n \n \t\t\tif (result != null) {\n \t\t\t\tprofile.setData((Document) result);\n \t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n \t\t\t} else {\n \t\t\t\tprofile.setData(null);\n \t\t\t}\n \n \t\t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\t\tlogger.exiting(sourceClass, \"load\");\n \t\t\t}\n \t\t}\n \t}",
"@Override\n public void execute() {\n\n ProfileModel profileModel = new ProfileModel(1,\"TestName\",\"TestLastName\", \"Nick\",1,new GregorianCalendar(1900,11,1),false,\n new GregorianCalendar(1925,6,11),10);\n ProfileView profileView = new ProfileView(profileModel);\n profileView.init();\n profileView.draw(new ConsoleCanvas(80,200));\n }",
"private void showProfilePicture() {\n File pic = sender.getProfilePic();\n if (pic == null || !pic.exists()) {\n profilePic.setText(Wrapers.htmlWraper(\"No Profile Picture Found.\"));\n } else {\n profilePic.setIcon(Images.profilePic(pic));\n profilePic.setText(null);\n }\n }",
"private void getUserProfile() {\n mFirstname.setText(\"FirstName: \"+userPreferences.getAgentFirstName());\n mLastname.setText(\"LastName: \"+userPreferences.getAgentLastName());\n\n\n Log.i(\"username\",userPreferences.getAgentUsername());\n if(userPreferences.getAgentUsername()==null){\n mUsernameTxt.setText(\"\");\n }else if(userPreferences.getAgentUsername().equals(\"null\")){\n mUsernameTxt.setText(\"\");\n }else{\n mUsernameTxt.setText(userPreferences.getAgentUsername());\n }\n\n mEmail.setText(\"Email: \"+userPreferences.getAgentEmail());\n mPhoneNum.setText(\"Phone No: \"+userPreferences.getAgentPhoneNUM());\n\n\n /* mPinProfileTxt.setText(\"Pin: \"+userPreferences.getPin());\n mBank.setText(\"Bank Name: \"+userPreferences.getBank());\n mAccountName.setText(\"Acct Name: \"+userPreferences.getAccountName());\n mAccountNumber.setText(\"Acct No: \"+userPreferences.getAccountNumber());*/\n\n mProgressBarProfile.setVisibility(View.VISIBLE);\n if(personal_img_url==null) {\n Glide.with(this).load(userPreferences.getAgentProfileImg()).apply(new RequestOptions().fitCenter().circleCrop()).into(mProfilePhoto);\n }else{\n Glide.with(this).load(personal_img_url).apply(new RequestOptions().fitCenter().circleCrop()).into(mProfilePhoto);\n\n }\n mProgressBarProfile.setVisibility(View.GONE);\n }",
"public void editTheirProfile() {\n\t\t\n\t}",
"public void setProfile(Profile profile) {\n _profile = profile;\n }",
"public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }",
"private void loadUserInformation() {\n FirebaseUser user = mAuth.getCurrentUser();\n\n if (user != null) {\n if (user.getPhotoUrl() != null) {\n Glide.with(this).load(user.getPhotoUrl().toString()).into(profilePic);\n }\n if (user.getDisplayName() != null) {\n name.setText(user.getDisplayName());\n }\n\n }\n\n }",
"@Override\r\n public void load(Profile profile) {\r\n refineCoins.getServer().getScheduler().runTaskAsynchronously(refineCoins, () -> {\r\n final Document document = mongoHandler.getProfiles().find(Filters.eq(\"_id\", profile.toString())).first();\r\n\r\n if (document == null) {\r\n this.save(profile, false);\r\n return;\r\n }\r\n\r\n profile.setCoins(document.getInteger(\"coins\"));\r\n });\r\n }",
"@Override\n\tpublic void init() {\n\t\tif (myScreensContainer.getUserData() != null) {\n\t\t\tWebEngine webEngine = show_problem.getEngine();\n\t\t\twebEngine.load((String) myScreensContainer.getUserData());\n\t\t}\n\t}",
"public Profile() {\n initComponents();\n AutoID();\n member_table();\n \n }",
"private void loadInfo() {\n fname.setText(prefs.getString(\"fname\", null));\n lname.setText(prefs.getString(\"lname\", null));\n email.setText(prefs.getString(\"email\", null));\n password.setText(prefs.getString(\"password\", null));\n spinner_curr.setSelection(prefs.getInt(\"curr\", 0));\n spinner_stock.setSelection(prefs.getInt(\"stock\", 0));\n last_mod_date.setText(\" \" + prefs.getString(\"date\", getString(R.string.na)));\n }",
"public void load() {\n setRemoteUser(\"\");\n setAuthCode(AuthSource.DENIED); \n \n if(pageContext==null) {\n return;\n }\n \n session=(HttpSession)getPageContext().getSession();\n setRemoteUser(Utilities.nvl((String)session.getAttribute(\"remoteUser\"), \"\"));\n setAuthCode(Utilities.nvl((String)session.getAttribute(\"authCode\"), AuthSource.DENIED));\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\taccount = getCurAccount();\n\t\tif (account != null)\n\t\t\timageLoader.displayImage(account.getAvatar(), avatar);\n\t}",
"private void refreshProfile() {\n if (profile == null) {\n Source source = getCacheSource();\n boolean useCache = source == Source.CACHE;\n if (!useCache)\n loadingBar.show();\n\n ProfileUtils.downloadProfile(userId, this::onProfileRefresh, this::onProfileRefreshFail,\n profileImage, this);\n } else {\n onProfileRefresh(profile);\n profile = null; // subsequent loads should refresh the profile\n }\n\n refreshWeeklyStats();\n }",
"public void onModuleLoad() {\n \t\tMainPage.currentPage = this;\n \t\t\n \t\tif(Window.Location.getHash().length() == 0){\n \t\t\tloggedIn = false;\n \t\t}else{\n \t\t\tloggedIn = true;\n \t\t}\n \t\t\n \t\tinitUI();\n \t\t\n \t\tif(loggedIn){\n \t\t\tsetStatus(\"fetching JSON...\", false);\n \t\t\tfbFetcher.fetchNeededJSON();\n \t\t}\n \t\t\n \t}",
"@Override\n\tpublic void initialize(URL arg0, ResourceBundle arg1) {\n\t\t\n\t\t//get profile data from database\n\t\tProfile profile = ProfileDAO.searchProfile(String.valueOf(friendsID));\n\t\t//get privacy reference data from database\n\t\tProfilePrivacy profilePrivacy = ProfileDAO.searchProfilePrivacy(String.valueOf(friendsID));\n\t\t//display username\n\t\tusername.setText(profile.getUsername());\n\t\t\n\t\t//other data from friend's profile\n\t\tif(profilePrivacy.getFirstName()) firstName.setText(profile.getFirstName());\n\t\telse firstName.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getLastName()) lastName.setText(profile.getLastName());\n\t\telse lastName.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getEmail()) email.setText(profile.getEmail());\n\t\telse email.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getBirthday()) birthday.setText(profile.getBirthday());\n\t\telse birthday.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getPhoneNumber()) phone.setText(profile.getPhoneNumber());\n\t\telse phone.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getOccupation()) occupation.setText(profile.getOccupation());\n\t\telse occupation.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getSchool()) school.setText(profile.getSchool());\n\t\telse school.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getStatus()) status.setText(profile.getStatus());\n\t\telse status.setText(\"Hidded by user\");\n\t\tif(profilePrivacy.getPosts()) showPosts();\n\t\telse postsList.getItems().add(new Text(\"User chose not to display posts.\"));\n\t}",
"public void displayProfileData() {\n MimsJTable table = new MimsJTable(ui);\n table.setPlanes(planes);\n table.setStats(stats);\n table.setRois(rois);\n table.setImages(images);\n String[] columnnames = table.getColumnNames();\n //MimsJTable requires multi-dim array, so need to convert dataset\n Object[][] exportedData = FileUtilities.convertXYDatasetToArray(data);\n table.createCustomTable(exportedData, columnnames);\n table.showFrame();\n }",
"private void initComponents() {\r\n\t\trand = new Random();\r\n\t\tfetchProfiles();\r\n\t\tgetPeopleFromFile();\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\tsetProfileImage();\r\n\t}",
"private void loadUser() {\n File dataFile = new File(getFilesDir().getPath() + \"/\" + DATA_FILE);\n\n if(dataFile.exists()) {\n loadData();\n } else { // First time CigCount is launched\n user = new User();\n }\n }",
"public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}",
"@Override\n public void userLoaded(User user) {\n nameText.setText(user.getDisplayName());\n\n String profileImageUrl = user.getDisplayPhoto();\n if (profileImageUrl != null) {\n Glide.with(messageImage.getContext())\n .load(profileImageUrl)\n .into(profileImage);\n }\n }",
"private void loadUserData() {\n\t\tuserData = new UserData();\n }",
"public MyProfilePage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public MBMProfile(){\n worlds = new ArrayList<MBMWorld>();\n loadSave();\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n setInfoUser();\n }",
"private void loadNavHeader() {\n SharedPreferences prefs = getSharedPreferences(LOG_IN_PREFS_NAME, MODE_PRIVATE);\n userName = prefs.getString(\"userName\", \"No token generated\");\n userEmail = prefs.getString(\"email\", \"No token generated\");\n userAvatarName = prefs.getInt(\"userAvatar\", 0);\n\n // name, email, profileImage\n navHeaderUserName.setText(userName);\n navHeaderUserEmail.setText(userEmail);\n imgNavHeaderProfile.setImageResource(ProfileImageAssets.getProfileImages().get(userAvatarName));\n\n }",
"public String getProfile() {\n return profile;\n }",
"public void load(){\n\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open Streams\n\t\t\tFileInputStream inFile = new FileInputStream(\"user.ser\");\n\t\t\tObjectInputStream objIn = new ObjectInputStream(inFile);\n\t\t\t\n\t\t\t// Load the existing UserList at the head\n\t\t\tthis.head = (User)objIn.readObject();\n\t\t\t\n\t\t\t// Close Streams\n\t\t\tobjIn.close();\n\t\t\tinFile.close();\n\t\t}\n\n\t\tcatch(Exception d) {\n\t\t System.out.println(\"Error loading\");\n\t\t}\n\n\t}",
"private void updateProfileViews() {\n if(profile.getmImageUrl()!=null && !profile.getmImageUrl().isEmpty()) {\n String temp = profile.getmImageUrl();\n Picasso.get().load(temp).into(profilePicture);\n }\n profileName.setText(profile.getFullName());\n phoneNumber.setText(profile.getPhoneNumber());\n address.setText(profile.getAddress());\n email.setText(profile.geteMail());\n initListToShow();\n }",
"private void restoringDataProfile() {\n mSharedPreferences = getSharedPreferences(Constants.PROFILE_NAME, MODE_PRIVATE);\n avatar = mSharedPreferences.getString(Constants.EDIT_PROFILE_PREFERENCES_KEY_PICTURE_PROFILE, \"\");\n Bitmap savingAvatar = AppSingleton.decodeBase64(avatar);\n if (savingAvatar != null) {\n mImageAvatar.setImageBitmap(savingAvatar);\n }\n\n mEmail.setText(mSharedPreferences.getString(Constants.EDIT_PROFILE_PREFERENCES_KEY_EMAIL, \"starmovie@gmail.com\"));\n mName.setText(mSharedPreferences.getString(Constants.EDIT_PROFILE_PREFERENCES_KEY_NAME, \"StarMovie\"));\n mBirthDay.setText(mSharedPreferences.getString(Constants.EDIT_PROFILE_PREFERENCES_KEY_BIRTHDAY, \"01/01/1994\"));\n mGender.setText(mSharedPreferences.getString(Constants.EDIT_PROFILE_PREFERENCES_KEY_GENDER, \"Male\"));\n }",
"public void loadProfileWindowEdit(DonorReceiver account) throws IOException {\n\n // Only load new window if childWindowToFront fails.\n if (!App.childWindowToFront(account)) {\n\n // Set the selected donorReceiver for the profile pane and confirm child.\n ViewProfilePaneController.setAccount(account);\n ViewProfilePaneController.setIsChild(true);\n\n // Create new pane.\n FXMLLoader loader = new FXMLLoader();\n AnchorPane profilePane = loader.load(getClass().getResourceAsStream(PageNav.VIEW));\n\n // Create new scene.\n Scene profileScene = new Scene(profilePane);\n\n // Create new stage.\n Stage profileStage = new Stage();\n profileStage.setTitle(\"Profile for \" + account.getUserName());\n profileStage.setScene(profileScene);\n profileStage.show();\n profileStage.setX(App.getWindow().getX() + App.getWindow().getWidth());\n\n App.addChildWindow(profileStage, account);\n\n loadEditWindow(account, profilePane, profileStage);\n }\n }",
"private void onProfileRefresh(Profile profile) {\n if (profile == null)\n throw new IllegalStateException(\"A profile cannot be null on successful profile refresh\");\n\n boolean ownProfile = userId.equals(Login.getUserId());\n\n profile.setUserId(userId);\n if (ownProfile)\n Login.setProfile(profile);\n\n profileImage.setImageBitmap(profile.getProfileImage());\n profile.setProfileImage(null); // save memory\n nameView.setText(profile.getName());\n String address = profile.getCity() + \", \" + profile.getState();\n addressView.setText(address);\n favouriteActivityView.setText(profile.getFavouriteSport());\n\n setupBioTextView(profile);\n\n onFriendsSync(profile);\n }",
"private void loadDisplayScreen() {\r\n wells = xmlreader.getWells();\r\n \r\n for (int i = 0; i < wells.size(); i++) {\r\n opName.add(new Well(i, wells.get(i).getName()));\r\n \r\n }\r\n Iterator<Well> iterate = opName.iterator();\r\n \r\n while (iterate.hasNext()) {\r\n arrName.add(iterate.next().getName());\r\n }\r\n aModel = new DefaultComboBoxModel<>(arrName);\r\n wellCombo.setModel(aModel);\r\n\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // display logged user\r\n \r\n }",
"private void load() { \n\t\tmannschaft_name.setText(helper.getTeamName(mannschaftId));\n\t\tmannschaft_kuerzel.setText(helper.getTeamKuerzel(mannschaftId));\t\t \n\t}",
"public ProfileManagerImpl() {\n try {\n Profile uml = new ProfileUML();\n defaultProfiles.add(uml);\n registerProfile(uml);\n registerProfile(new ProfileJava(uml));\n } catch (ProfileException e) {\n throw new RuntimeException(e);\n }\n\n loadDirectoriesFromConfiguration();\n\n refreshRegisteredProfiles();\n\n loadDefaultProfilesfromConfiguration();\n }",
"private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }",
"void load(Future<AggregatedProfileInfo> future, AggregatedProfileNamingStrategy filename);",
"@Override\n\tprotected void initView() {\n\t\tsuper.initView();\n\n\t\tmNameEdt = (EditText) findViewById(R.id.profile_name_edt);\n\t\tmProfileImg = (ImageView) findViewById(R.id.profile_image);\n\t\tmOldPassEdt = (EditText) findViewById(R.id.profile_old_pass);\n\t\tmNewPassEdt = (EditText) findViewById(R.id.profile_new_pass);\n\t\tmConfirmPassEdt = (EditText) findViewById(R.id.profile_confirm_pass);\n\t\tmProfileImg.setOnClickListener(this);\n\n\t\tmOptions = new DisplayImageOptions.Builder()\n\t\t\t\t.showImageOnLoading(R.drawable.img_profile_bg)\n\t\t\t\t.showImageForEmptyUri(R.drawable.img_profile_bg)\n\t\t\t\t.showImageOnFail(R.drawable.img_profile_bg).cacheInMemory(true)\n\t\t\t\t.cacheOnDisc(true).considerExifParams(true)\n\t\t\t\t.bitmapConfig(Bitmap.Config.ARGB_8888).build();\n\n fillUserProfile();\n\n\t}",
"private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n\n Toast.makeText(context, personName + \"\\n\" + email, Toast.LENGTH_SHORT).show();\n\n /*txtName.setText(personName);\n txtEmail.setText(email);*/\n\n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n /*personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n\n new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);*/\n\n } else {\n Toast.makeText(context,\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void setProfilePic() {\n ParseFile image = (ParseFile) user.get(User.KEY_PROFILE_PIC);\n\n if (image != null)\n Glide.with(getContext()).load(image.getUrl()).circleCrop().into(mProfilePicImageView);\n else\n Glide.with(getContext()).load(R.drawable.no_profile_pic)\n .circleCrop().into(mProfilePicImageView);\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n System.out.println(user.getAccountID2());\n System.out.println(MainUiController.Username);\n System.out.println(user.bugReportID);\n \n }",
"@FXML\r\n\tprivate void initialize() {\r\n\t\tcurUser = LoginController.getLoggedUser();\r\n\t\tString username = (\" \" + curUser.getUsername());\r\n\t\tusernameLabel.setText(username);\r\n\t\tString name = (\" \" + curUser.getName());\r\n\t\tnameLabel.setText(name);\r\n\t\tString mobile = (\" \" + curUser.getMobileNumber());\r\n\t\tmobileLabel.setText(mobile);\r\n\t\tString address = (\" \" + curUser.getHouseNumber() + \" \"\r\n\t\t\t\t+ curUser.getStreetName() + \", \" + curUser.getPostcode());\r\n\t\taddressLabel.setText(address);\r\n\t}",
"public BloodDonner() {\n initComponents();\n showProfile();\n }",
"@java.lang.Override\n public com.google.protobuf2.Any getProfile() {\n return profile_ == null ? com.google.protobuf2.Any.getDefaultInstance() : profile_;\n }",
"public void initializeFrom(ILaunchConfiguration configuration) throws CoreException {\n fGenerateProfileButton.setSelection(configuration.getAttribute(IPDELauncherConstants.GENERATE_PROFILE, false));\n }",
"public void loadTestData() {\n profilepages.addAll(DefaultDataStore.getInstance().getAllProfiles());\n }",
"String getProfile();",
"public void load() {\n handleLoad(false, false);\n }",
"private void setProfileLayout() {\n if (mUser != null) {\n main_TXT_userName.setText(\"Hello \" + mUser.getFirstName() + \"!\");\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n Log.i(\"Locationnnn:::\", location.toString());\n //\n mWeatherAPIManager = new WeatherAPIManager(getApplicationContext(), weatherComponentsSetters, location.getLatitude(), location.getLongitude());\n\n }\n }\n });\n }\n }",
"public Profile() {}",
"public void load() {\n updater.load(-1); // -1 because Guest ID doesn't matter.\n }",
"private void composeProfile() {\n if(NetworkUtils.isConnectedToNetwork((ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE)) == false) {\n Toast.makeText(this.getApplicationContext(), \"Please check your network connection!\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent i = new Intent(this, ProfileActivity.class);\n i.putExtra(\"screen_name\", (String) null);\n startActivity(i);\n }",
"private void setupActivity() {\n loadingBar = findViewById(R.id.loadingBar);\n profileContainer = findViewById(R.id.profileContainer);\n loadingBar.setLoadedLayout(profileContainer);\n\n swipeRefreshLayout = findViewById(R.id.profileRefresh);\n profileContainer.setOnScrollDetected(this::onScrollDetected);\n profileContainer.setOnScrollFinished(this::onScrollReleaseDetected);\n\n profileBio = findViewById(R.id.biographyLayout);\n profileOptions = findViewById(R.id.profileOptions);\n\n swipeRefreshLayout.setOnRefreshListener(() -> {\n useCache = false;\n loadingBar.show();\n refreshProfile();\n });\n\n profileImage = findViewById(R.id.profilePicture);\n nameView = findViewById(R.id.name);\n addressView = findViewById(R.id.address);\n favouriteActivityView = findViewById(R.id.favActivityView);\n friendsButton = findViewById(R.id.friendsButton);\n friendsView = findViewById(R.id.friends);\n\n useCache = true;\n downloadUserProfileImage();\n setupProfileOptions();\n refreshProfile();\n }",
"void showProfileBackground();",
"HumanProfile getUserProfile();",
"public static void setProfile(Profile profile) {\n Login.profile = profile;\n Login.profile.setUserId(getUserId());\n }",
"private void loadProfileFile(\n Path workingDirectory, String workSpaceName, String file, InfoListener listener) {\n ProfileInfo info;\n Path profileFile = workingDirectory.getRelative(file);\n try {\n info = ProfileInfo.loadProfileVerbosely(profileFile, listener);\n ProfileInfo.aggregateProfile(info, listener);\n } catch (IOException e) {\n listener.warn(\"Ignoring file \" + file + \" - cannot load: \" + e.getMessage());\n return;\n }\n\n summaryStatistics.addProfileInfo(info);\n\n EnumMap<ProfilePhase, PhaseStatistics> fileStatistics = new EnumMap<>(ProfilePhase.class);\n filePhaseStatistics.put(profileFile, fileStatistics);\n\n for (ProfilePhase phase : ProfilePhase.values()) {\n PhaseStatistics filePhaseStat =\n new PhaseStatistics(phase, info, workSpaceName, generateVfsStatistics);\n fileStatistics.put(phase, filePhaseStat);\n\n PhaseStatistics summaryPhaseStats;\n if (summaryPhaseStatistics.containsKey(phase)) {\n summaryPhaseStats = summaryPhaseStatistics.get(phase);\n } else {\n summaryPhaseStats = new PhaseStatistics(phase, generateVfsStatistics);\n summaryPhaseStatistics.put(phase, summaryPhaseStats);\n }\n summaryPhaseStats.add(filePhaseStat);\n }\n\n skylarkStatistics.addProfileInfo(info);\n\n missingActionsCount += info.getMissingActionsCount();\n }",
"private IProfileFacade loadProfileApplication(IFile profileApplicationFile)\n \t\t\tthrows CoreException, IOException {\n \t\tprofileApplicationFile.refreshLocal(IFile.DEPTH_ONE,\n \t\t\t\tnew NullProgressMonitor());\n \t\tIProfileFacade facade = createNewProfileFacade(profileApplicationFile);\n \t\t\n \t\treturn facade;\n \t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tGLProfile.initSingleton();\n\t\t\t\twhile (!GLProfile.isInitialized()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}",
"public void handleNavMenuViewProfile() {\n if (user != null) {\n view.launchProfilePage(user);\n }\n }",
"public void initialize(User userToView, User currentUser) {\r\n\t\tthis.currentUser = currentUser;\r\n\t\tthis.userToView = userToView;\r\n\t\tuserLabel.setText(userToView.getUserName() + \"'s Profile\");\r\n\t\tif(currentUser.isFavourite(userToView.getUserID())) {\r\n\t\t\tfavouriteButton.setText(\"Unfavourite\");\r\n\t\t\tfavourited = true;\r\n\t\t} else {\r\n\t\t\tfavouriteButton.setText(\"Favourite\");\r\n\t\t\tfavourited = false;\r\n\t\t}\r\n\t\tInputStream stream = getClass().getResourceAsStream(userToView.getAvatarPath());\r\n\t\tImage newImage = new Image(stream);\r\n\t\tprofileImage.setImage(newImage);\r\n\t}",
"@Override\n public void checkProfileUserData() {\n mProfilePresenter.checkProfileUserData();\n }",
"private void setUser(){\n try{\n if (!mainUser.getUsername().equals(\"\")){\n this.userName.setText(mainUser.getUsername());\n }else{\n this.userName.setText(\"User\");\n }\n\n\n File file = new File(mainUser.getProfileImage());\n if (!file.exists()){\n file = new File(getClass().getResource(\"../images/eren.png\").getFile());\n }\n Image img = new Image(file.toURI().toString());\n profileImage.setImage(img);\n\n setEventLabel(\"Welcome \"+mainUser.getFname()+\" \"+mainUser.getLname()+\".\");\n }catch (NullPointerException e){\n AlertBox.alert(AlertType.ERROR, stackRoot, anchorRoot, \"There was an error while updating UserInfo\");\n }\n }",
"private void loadRecent(ProfileMainProject logInResponce) {\n if (new AppCommonMethods(mContext).isNetworkAvailable()) {\n WLAPIcalls mAPIcall = new WLAPIcalls(mContext, getString(R.string.loginDate), this);\n mAPIcall.profileUpdate(logInResponce);\n } else {\n Toast.makeText(mContext, R.string.no_internet, Toast.LENGTH_SHORT).show();\n }\n }",
"public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }",
"public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }",
"public void loadRoomViewerUI()\r\n\t{\r\n\t\t// start the loader thread so the graphics can be drawn as the loading takes place\r\n\t\tnew RoomViewerLoadingThread(roomViewerUI).start();\r\n\t}",
"private void initUIAfterLogin() {\n lnLoggedOutState.setVisibility(View.GONE);\n lnLoggedInState.setVisibility(View.VISIBLE);\n initUserProfileUI();\n }",
"public Profile(String input, final JPanel panel, final JFrame die){\r\n loggedUsername = input;\r\n //Initialize User Data\r\n initUserData();\r\n updateUserTable(userTransactionTable);\r\n backButton.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n CardLayout cardLayout = (CardLayout) panel.getLayout();\r\n cardLayout.show(panel, \"main\");\r\n }\r\n });\r\n changePasswordButton.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n CardLayout cardLayout = (CardLayout) panel.getLayout();\r\n cardLayout.show(panel, \"changePassword\");\r\n }\r\n });\r\n editButton.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n CardLayout cardLayout = (CardLayout) panel.getLayout();\r\n cardLayout.show(panel, \"editProfile\");\r\n }\r\n });\r\n logoutButton.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n String jdbcClassName = \"com.ibm.db2.jcc.DB2Driver\";\r\n String url = \"jdbc:db2:testlib\";\r\n Connection conn = null;\r\n\r\n try\r\n {\r\n Class.forName(jdbcClassName);\r\n conn = DriverManager.getConnection(url);\r\n\r\n System.out.println(\"Creating statement...\");\r\n Statement st = conn.createStatement();\r\n\r\n // Extract records in ascending order by first name.\r\n System.out.println(\"Fetching records in ascending order...\");\r\n String sql = (\"UPDATE MEMBER SET MB_AVAILABILITY = 'Offline' WHERE MB_NAME = '\" + loggedUsername + \"'\");\r\n st.executeUpdate(sql);\r\n }\r\n catch(ClassNotFoundException event)\r\n {\r\n event.printStackTrace();\r\n }\r\n catch(SQLException event)\r\n {\r\n event.printStackTrace();\r\n }\r\n finally\r\n {\r\n if(conn != null)\r\n {\r\n System.out.println(\"Connection success!\");\r\n }\r\n }\r\n //Dispose Current Frame\r\n die.dispose();\r\n //Call main to Display Login\r\n main.main(null);\r\n }\r\n });\r\n }",
"@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\trellenarInfo(UserProfileService.recuperarUsuario(\"Jovac\"));\n\t}",
"private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }",
"public static Profile getProfile() {\n return profile;\n }"
] | [
"0.7272213",
"0.6725241",
"0.6713299",
"0.66541064",
"0.6643533",
"0.66171837",
"0.64999396",
"0.6437507",
"0.6409367",
"0.6319563",
"0.6242291",
"0.6213803",
"0.61848885",
"0.61683416",
"0.61279863",
"0.6000802",
"0.59966576",
"0.5991629",
"0.5965336",
"0.5954696",
"0.59531236",
"0.5936797",
"0.59255415",
"0.59248084",
"0.59215987",
"0.59202456",
"0.5909171",
"0.588666",
"0.5879336",
"0.5877282",
"0.58575493",
"0.58515936",
"0.5850362",
"0.5841281",
"0.58307046",
"0.5828652",
"0.58124846",
"0.57886326",
"0.5782392",
"0.57751346",
"0.5752292",
"0.5744521",
"0.5741274",
"0.5726502",
"0.57163775",
"0.57138157",
"0.57033116",
"0.57024866",
"0.56849784",
"0.5663591",
"0.56588006",
"0.5632869",
"0.561642",
"0.5614187",
"0.559447",
"0.5588648",
"0.5581126",
"0.5580715",
"0.5573785",
"0.5573726",
"0.5564288",
"0.5559122",
"0.5551703",
"0.5542298",
"0.5541398",
"0.55389094",
"0.55379456",
"0.5529864",
"0.5526608",
"0.5509097",
"0.55076486",
"0.55072576",
"0.5502971",
"0.55028147",
"0.5500338",
"0.5496029",
"0.54825306",
"0.54805267",
"0.5479355",
"0.54756737",
"0.54682946",
"0.54640716",
"0.54630005",
"0.54603493",
"0.54568964",
"0.5455185",
"0.542861",
"0.54245216",
"0.5422885",
"0.54166925",
"0.5400736",
"0.5397635",
"0.53972167",
"0.5387142",
"0.5383885",
"0.53814995",
"0.53690577",
"0.53685284",
"0.5366869",
"0.53580886",
"0.53568554"
] | 0.0 | -1 |
Assume that any display controls that have a color table widget will want the color table to show up in the legend. | protected JComponent getExtraLegendComponent(int legendType) {
JComponent parentComp = super.getExtraLegendComponent(legendType);
if (legendType == BOTTOM_LEGEND) {
return parentComp;
}
return GuiUtils.vbox(parentComp, getChart().getThumb());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadDataSetLegend() {\n\n IOSettingsDialog io = IOSettingsDialog.getInstance();\n int[] inputs = io.getStoredInputs();\n\n /*\n Display input names\n */\n labX.setText(io.getInputNames()[inputs[0]]);\n labY.setText(io.getInputNames()[inputs[1]]);\n labZ.setText(io.getInputNames()[inputs[2]]);\n\n String[] outputs = io.getOutputNames();\n Color[] colors = new Color[io.getOutputColors().size()];\n\n /*\n Convert colors from ColorRGBA instance to Color instance\n */\n for (int i = 0; i < colors.length; i++) {\n ColorRGBA cl = io.getOutputColors().get(i);\n colors[i] = new Color(cl.r, cl.g, cl.b, cl.a);\n }\n /*\n Create model and renderer for colors to display in list view\n */\n listColors.setModel(new DefaultComboBoxModel(outputs));\n listColors.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\n\n ListRenderer renderer = new ListRenderer(listColors);\n renderer.setColors(colors);\n renderer.setStrings(outputs);\n\n listColors.setCellRenderer(renderer);\n\n }",
"public void draw_legend(Graphics g);",
"public void setShowLegend(boolean aValue)\n{\n if(aValue==isShowLegend()) return;\n _legend.setVisible(aValue);\n}",
"private void InitColorTable(){\n\n }",
"private void setLegend() {\n Legend l = chartView.getLegend();\n\n // modify the legend ...\n l.setForm(Legend.LegendForm.CIRCLE);\n l.setTextColor(Color.BLACK);\n }",
"private static void addEdgesToLegend(ArrayList<LegendEntry> edgeColors,\n\t\t\tJPanel legend) {\n\t\tlegend.add(new JLabel(\"Edges\"));\n // System.out.println(\"Adding edges header\");\n edgeColors.stream().map((entry) -> {\n \tJLabel next = new JLabel(entry.getLabel(), SwingConstants.CENTER);\n next.setFont(LEGEND_FONT);\n next.setForeground(entry.getColor());\n return next;\n }).forEach((next) -> {\n legend.add(next);\n // System.out.println(\"Adding \" + entry.getLabel());\n });\n\t}",
"public native void setLegendOff();",
"@Test\n public void test23() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n SortOrder sortOrder0 = combinedDomainCategoryPlot0.getColumnRenderingOrder();\n combinedDomainCategoryPlot0.setRangeCrosshairVisible(true);\n LegendItemCollection legendItemCollection0 = combinedDomainCategoryPlot0.getLegendItems();\n }",
"public boolean isShowLegend() { return _legend.isVisible(); }",
"private void initialize() {\n // Create a panel with the labels for the colorbar.\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new BoxLayout(labelPanel, BoxLayout.LINE_AXIS));\n labelPanel.add(minLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(medLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(maxLabel);\n\n // Add the color panel\n gradientPanel = new LinearGradientTools.ColorGradientPanel();\n\n // Add the panel indicating the error value color.\n errorPanel = new JPanel();\n //errorPanel.setBackground(heatMapModel.getColorScheme().getErrorReadoutColor());\n\n // Create a label for the panel indicating the missing value color.\n errorLabel = new JLabel(\" Err \");\n errorLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Add the panel indicating the missing value color.\n JPanel emptyPanel = new JPanel();\n emptyPanel.setBackground(ColorScheme.EMPTY_READOUT);\n\n // Create a label for the panel indicating the missing value color.\n emptyLabel = new JLabel(\" Empty \");\n emptyLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Set the font of the labels\n setLabelFont(labelFontSize);\n\n // Add the component to the main panel\n setLayout(new GridBagLayout());\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 0.9;\n constraints.fill = GridBagConstraints.BOTH;\n add(gradientPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(labelPanel, constraints);\n\n constraints.gridx = 1;\n constraints.weightx = -1;\n add(errorLabel, constraints);\n constraints.gridy = 0;\n constraints.weighty = 0.9;\n add(errorPanel, constraints);\n\n constraints.gridx = 2;\n add(emptyPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(emptyLabel, constraints);\n }",
"void updateLegend(List<DataSet> dataSets, List<Renderer> renderers);",
"public void drawLegend(ArrayList<LegendEntry> nodeColors,\n\t\t\tArrayList<LegendEntry> edgeColors) {\n\t\t\n\t\tif (drawn) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (nodeColors == null && edgeColors == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tJPanel legend = new JPanel();\n\t\tlegend.setLayout(new GridLayout(0, 1));\n\n\t\tBox headerPanel = new Box(BoxLayout.X_AXIS);\n\t\theaderPanel.add(new JLabel(\"Legend\"));\n\t\theaderPanel.add(Box.createHorizontalGlue());\n\t\tJButton closeLegendButton = new JButton(\"X\");\n\t\tcloseLegendButton\n\t\t\t\t.setBorder(BorderFactory.createRaisedSoftBevelBorder());\n\t\tcloseLegendButton.setToolTipText(\"Hide legend.\");\n\t\tcloseLegendButton.addActionListener((ActionEvent e) -> {\n \t// System.out.println(\"Close button clicked\");\n DDGExplorer.getInstance().removeLegend();\n });\n\t\theaderPanel.add(closeLegendButton);\n\t\tlegend.add(headerPanel);\n\t\tint numEntries = 1;\n\n\t\tif (nodeColors != null) {\n\t\t\taddNodesToLegend(nodeColors, legend);\n\n\t\t\tnumEntries = nodeColors.size() + 1;\n\n\t\t\tif (edgeColors != null) {\n\t\t\t\tlegend.add(new JPanel());\n\t\t\t\t// System.out.println(\"Adding spacer\");\n\t\t\t\tnumEntries++;\n\t\t\t}\n\t\t}\n\n\t\tif (edgeColors != null) {\n\t\t\taddEdgesToLegend(edgeColors, legend);\n\n\t\t\tnumEntries = numEntries + edgeColors.size() + 1;\n\t\t}\n\n\t\tlegend.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));\n\t\tlegend.setPreferredSize(new Dimension(125, numEntries\n\t\t\t\t* LEGEND_ENTRY_HEIGHT));\n\n\t\tadd(Box.createVerticalGlue());\n\t\tadd(legend);\n\t\tadd(Box.createVerticalGlue());\n\n\t\tdrawn = true;\n\t}",
"@Override protected void updateLegend() {\n legend.getItems().clear();\n if (getData() != null) {\n for (int seriesIndex=0; seriesIndex< getData().size(); seriesIndex++) {\n Series<X,Y> series = getData().get(seriesIndex);\n LegendItem legenditem = new LegendItem(series.getName());\n if (!series.getData().isEmpty() && series.getData().get(0).getNode() != null) {\n legenditem.getSymbol().getStyleClass().addAll(series.getData().get(0).getNode().getStyleClass());\n }\n legend.getItems().add(legenditem);\n }\n }\n if (legend.getItems().size() > 0) {\n if (getLegend() == null) {\n setLegend(legend);\n }\n } else {\n setLegend(null);\n }\n }",
"private void postInit() {\n // start with compact form\n detailledToggleButtonActionPerformed(null);\n\n colorMappingComboBox.setRenderer(ColorMappingListCellRenderer.getListCellRenderer());\n\n // Fill colorMapping combobox\n for (ColorMapping cm : ColorMapping.values()) {\n if (cm != ColorMapping.OBSERVATION_DATE) { // not implemented\n colorMappingComboBox.addItem(cm);\n }\n }\n\n xAxisEditor = new AxisEditor(this);\n xAxisPanel.add(xAxisEditor);\n\n if (ENABLE_EXPRESSION_EDITOR) {\n expressionEditor = new ExpressionEditor(this);\n expressionEditor.setVisible(false);\n\n this.jPanelOtherEditors.add(expressionEditor, BorderLayout.CENTER);\n } else {\n jToggleButtonExprEditor.setVisible(false);\n }\n\n // Adjust fonts:\n final Font fixedFont = new Font(Font.MONOSPACED, Font.PLAIN, SwingUtils.adjustUISize(12));\n this.jToggleButtonAuto.setFont(fixedFont);\n this.jToggleButtonDefault.setFont(fixedFont);\n this.jToggleButtonFixed.setFont(fixedFont);\n }",
"public LegendProps() {\n\t\tmStyle.addChangeListener(this);\n\t\tmFont.addChangeListener(this);\n\n\t\t// Default to a black outline around the legend\n\t\tmStyle.getLineStyle().setVisible(false); // setColor(Color.BLACK);\n\t\tmStyle.getFillStyle().setVisible(false);\n\n\t\tsetInside(true);\n\t\tsetPosition(GridLocation.NE);\n\n\t\tsetVisible(false);\n\t}",
"private static void addNodesToLegend(ArrayList<LegendEntry> nodeColors,\n\t\t\tJPanel legend) {\n\t\tlegend.add(new JLabel(\"Nodes\"));\n // System.out.println(\"Adding node header\");\n nodeColors.stream().map((entry) -> {\n \tJLabel next = new JLabel(entry.getLabel(), SwingConstants.CENTER);\n next.setFont(LEGEND_FONT);\n next.setOpaque(true);\n next.setBackground(entry.getColor());\n return next;\n }).forEach((next) -> {\n \tlegend.add(next);\n // System.out.println(\"Adding \" + entry.getLabel());\n });\n\t}",
"LegendType createLegendType();",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n contrastAdjuster1 = new com.nrims.ContrastAdjuster(ui);\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jRadioButton1 = new javax.swing.JRadioButton();\n jComboBox2 = new javax.swing.JComboBox();\n jLabel5 = new javax.swing.JLabel();\n jPanel1 = new javax.swing.JPanel();\n\n jLabel1.setText(\"Contrast / Brightness\");\n\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Window :\");\n\n jRadioButton1.setText(\"Auto adjust\");\n jRadioButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton1ActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"Lookup Table :\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 302, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 203, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(81, 81, 81)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jRadioButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(83, 83, 83)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)))\n .addGroup(layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(contrastAdjuster1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(contrastAdjuster1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jRadioButton1)\n .addComponent(jLabel5))\n .addGap(4, 4, 4)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n }",
"@Test\n public void test37() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n HorizontalAlignment horizontalAlignment0 = Title.DEFAULT_HORIZONTAL_ALIGNMENT;\n VerticalAlignment verticalAlignment0 = Title.DEFAULT_VERTICAL_ALIGNMENT;\n FlowArrangement flowArrangement0 = new FlowArrangement(horizontalAlignment0, verticalAlignment0, (-2647.39206622), (-2647.39206622));\n LegendTitle legendTitle0 = new LegendTitle((LegendItemSource) combinedDomainCategoryPlot0, (Arrangement) flowArrangement0, (Arrangement) flowArrangement0);\n Paint paint0 = legendTitle0.getBackgroundPaint();\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setRangeCrosshairPaint((Paint) null);\n } catch(IllegalArgumentException e) {\n //\n // Null 'paint' argument.\n //\n assertThrownBy(\"org.jfree.chart.plot.CategoryPlot\", e);\n }\n }",
"public Legend() {\n }",
"private LegendEntry createLegendEntry(int colourId, String label) {\r\n LegendEntry legendEntry = new LegendEntry();\r\n legendEntry.formColor = getResources().getColor(colourId);\r\n legendEntry.label = label;\r\n return legendEntry;\r\n\r\n }",
"public void setLegendColumns(Object legendColumns) {\r\n this.legendColumns = legendColumns;\r\n }",
"private BusRouteLegendOverlay createBusRouteLegendOverlay() {\n ResourceProxy rp = new DefaultResourceProxyImpl(context);\n return new BusRouteLegendOverlay(rp, BusesAreUs.dpiFactor());\n }",
"private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}",
"private void initComponents() {\n jLabel1 = new JLabel();\n panel1 = new JPanel();\n cnLabel = new JLabel();\n copyNoCanvas = new org.broad.igv.ui.legend.HeatmapLegendPanel(TrackType.COPY_NUMBER);\n legendLabel1 = new JLabel();\n methylationCanvas = new HeatmapLegendPanel(TrackType.DNA_METHYLATION);\n lohCanvas = new LohLegendPanel();\n legendLabel2 = new JLabel();\n jLabel2 = new JLabel();\n expressionCanvas = new HeatmapLegendPanel(TrackType.GENE_EXPRESSION);\n // mutationCanvas = new MutationLegendPanel();\n legendLabel3 = new JLabel();\n legendLabel4 = new JLabel();\n rnaiPanel = new HeatmapLegendPanel(TrackType.RNAI);\n copyNumberButton = new JButton();\n expressionButton = new JButton();\n rnaiButton = new JButton();\n methylationButton = new JButton();\n lohButton = new JButton();\n mutationButton = new JButton();\n resetToDefault = new JButton();\n okButton = new JButton();\n jLabel3 = new JLabel();\n\n //======== this ========\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n Container contentPane = getContentPane();\n BoxLayout layout = new BoxLayout(contentPane, BoxLayout.Y_AXIS);\n contentPane.setLayout(layout);\n\n //---- jLabel1 ----\n jLabel1.setFont(new Font(\"Lucida Sans\", Font.BOLD, 18));\n jLabel1.setText(\"Legends\");\n contentPane.add(jLabel1);\n jLabel1.setBounds(new Rectangle(new Point(325, 0), jLabel1.getPreferredSize()));\n\n //======== panel1 ========\n {\n panel1.setLayout(null);\n\n //---- cnLabel ----\n cnLabel.setText(\"Copy Number\");\n panel1.add(cnLabel);\n cnLabel.setBounds(new Rectangle(new Point(10, 7), cnLabel.getPreferredSize()));\n\n //======== copyNoCanvas ========\n {\n copyNoCanvas.setBorder(null);\n\n GroupLayout copyNoCanvasLayout = new GroupLayout(copyNoCanvas);\n copyNoCanvas.setLayout(copyNoCanvasLayout);\n copyNoCanvasLayout.setHorizontalGroup(\n copyNoCanvasLayout.createParallelGroup()\n .add(0, 483, Short.MAX_VALUE)\n );\n copyNoCanvasLayout.setVerticalGroup(\n copyNoCanvasLayout.createParallelGroup()\n .add(0, 60, Short.MAX_VALUE)\n );\n }\n panel1.add(copyNoCanvas);\n copyNoCanvas.setBounds(110, 7, 485, 62);\n\n //---- legendLabel1 ----\n legendLabel1.setText(\"Expression\");\n panel1.add(legendLabel1);\n legendLabel1.setBounds(new Rectangle(new Point(10, 87), legendLabel1.getPreferredSize()));\n\n //======== methylationCanvas ========\n {\n methylationCanvas.setMinimumSize(new Dimension(100, 100));\n methylationCanvas.setBorder(null);\n\n GroupLayout methylationCanvasLayout = new GroupLayout(methylationCanvas);\n methylationCanvas.setLayout(methylationCanvasLayout);\n methylationCanvasLayout.setHorizontalGroup(\n methylationCanvasLayout.createParallelGroup()\n .add(0, 483, Short.MAX_VALUE)\n );\n methylationCanvasLayout.setVerticalGroup(\n methylationCanvasLayout.createParallelGroup()\n .add(0, 60, Short.MAX_VALUE)\n );\n }\n panel1.add(methylationCanvas);\n methylationCanvas.setBounds(110, 247, 485, 62);\n\n //======== lohCanvas ========\n {\n lohCanvas.setBorder(null);\n\n GroupLayout lohCanvasLayout = new GroupLayout(lohCanvas);\n lohCanvas.setLayout(lohCanvasLayout);\n lohCanvasLayout.setHorizontalGroup(\n lohCanvasLayout.createParallelGroup()\n .add(0, 483, Short.MAX_VALUE)\n );\n lohCanvasLayout.setVerticalGroup(\n lohCanvasLayout.createParallelGroup()\n .add(0, 60, Short.MAX_VALUE)\n );\n }\n panel1.add(lohCanvas);\n lohCanvas.setBounds(110, 327, 485, 62);\n\n //---- legendLabel2 ----\n legendLabel2.setText(\"LOH\");\n panel1.add(legendLabel2);\n legendLabel2.setBounds(10, 327, 45, legendLabel2.getPreferredSize().height);\n\n //---- jLabel2 ----\n jLabel2.setText(\"Methylation\");\n panel1.add(jLabel2);\n jLabel2.setBounds(new Rectangle(new Point(10, 247), jLabel2.getPreferredSize()));\n\n //======== expressionCanvas ========\n {\n expressionCanvas.setBorder(null);\n\n GroupLayout expressionCanvasLayout = new GroupLayout(expressionCanvas);\n expressionCanvas.setLayout(expressionCanvasLayout);\n expressionCanvasLayout.setHorizontalGroup(\n expressionCanvasLayout.createParallelGroup()\n .add(0, 483, Short.MAX_VALUE)\n );\n expressionCanvasLayout.setVerticalGroup(\n expressionCanvasLayout.createParallelGroup()\n .add(0, 60, Short.MAX_VALUE)\n );\n }\n panel1.add(expressionCanvas);\n expressionCanvas.setBounds(110, 87, 485, 62);\n\n //---- jLabel3 ----\n JLabel mutationLabel = new JLabel(\"NOTE: For mutation colors (TCGA 'mut' and 'maf' files) see 'View > Preferences > Mutations\");\n mutationLabel.setBounds(15, 400, 600, 20);\n panel1.add(mutationLabel);\n\n\n\n\n //---- legendLabel4 ----\n legendLabel4.setText(\"RNAi\");\n panel1.add(legendLabel4);\n legendLabel4.setBounds(new Rectangle(new Point(10, 167), legendLabel4.getPreferredSize()));\n\n //======== rnaiPanel ========\n {\n rnaiPanel.setBorder(null);\n\n GroupLayout rnaiPanelLayout = new GroupLayout(rnaiPanel);\n rnaiPanel.setLayout(rnaiPanelLayout);\n rnaiPanelLayout.setHorizontalGroup(\n rnaiPanelLayout.createParallelGroup()\n .add(0, 483, Short.MAX_VALUE)\n );\n rnaiPanelLayout.setVerticalGroup(\n rnaiPanelLayout.createParallelGroup()\n .add(0, 60, Short.MAX_VALUE)\n );\n }\n panel1.add(rnaiPanel);\n rnaiPanel.setBounds(110, 167, 485, 62);\n\n //---- copyNumberButton ----\n copyNumberButton.setText(\"Edit\");\n copyNumberButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n copyNumberButtonActionPerformed(e);\n }\n });\n panel1.add(copyNumberButton);\n copyNumberButton.setBounds(new Rectangle(new Point(620, 7), copyNumberButton.getPreferredSize()));\n\n //---- expressionButton ----\n expressionButton.setText(\"Edit\");\n expressionButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n expressionButtonActionPerformed(e);\n }\n });\n panel1.add(expressionButton);\n expressionButton.setBounds(new Rectangle(new Point(620, 87), expressionButton.getPreferredSize()));\n\n //---- rnaiButton ----\n rnaiButton.setText(\"Edit\");\n rnaiButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n rnaiButtonActionPerformed(e);\n }\n });\n panel1.add(rnaiButton);\n rnaiButton.setBounds(new Rectangle(new Point(620, 167), rnaiButton.getPreferredSize()));\n\n //---- methylationButton ----\n methylationButton.setText(\"Edit\");\n methylationButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n methylationButtonActionPerformed(e);\n }\n });\n panel1.add(methylationButton);\n methylationButton.setBounds(new Rectangle(new Point(620, 247), methylationButton.getPreferredSize()));\n\n //---- lohButton ----\n lohButton.setText(\"Edit\");\n lohButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n lohButtonActionPerformed(e);\n }\n });\n panel1.add(lohButton);\n lohButton.setBounds(new Rectangle(new Point(620, 327), lohButton.getPreferredSize()));\n\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for (int i = 0; i < panel1.getComponentCount(); i++) {\n Rectangle bounds = panel1.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = panel1.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n panel1.setMinimumSize(preferredSize);\n panel1.setPreferredSize(preferredSize);\n }\n }\n contentPane.add(panel1);\n panel1.setBounds(10, 30, 720, 495);\n\n\n //---- resetToDefault ----\n JPanel buttonPanel = new JPanel();\n buttonPanel.setLayout(null);\n contentPane.add(buttonPanel);\n\n resetToDefault.setText(\"Reset to default\");\n resetToDefault.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n resetToDefaultActionPerformed(e);\n }\n });\n buttonPanel.add(resetToDefault);\n resetToDefault.setBounds(new Rectangle(new Point(475, 0), resetToDefault.getPreferredSize()));\n\n //---- okButton ----\n okButton.setText(\"OK\");\n okButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n okButtonActionPerformed(e);\n }\n });\n buttonPanel.add(okButton);\n okButton.setBounds(new Rectangle(new Point(635, 0), okButton.getPreferredSize()));\n\n\n\n\n { // compute preferred size\n Dimension preferredSize = new Dimension();\n for (int i = 0; i < contentPane.getComponentCount(); i++) {\n Rectangle bounds = contentPane.getComponent(i).getBounds();\n preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);\n preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);\n }\n Insets insets = contentPane.getInsets();\n preferredSize.width += insets.right;\n preferredSize.height += insets.bottom;\n contentPane.setMinimumSize(preferredSize);\n contentPane.setPreferredSize(preferredSize);\n }\n setSize(755, 665);\n setLocationRelativeTo(getOwner());\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n\n\n }",
"public HeatMapColorToolBar() {\n initialize();\n }",
"public void setLegend(boolean legend) {\n this.legend = legend;\n }",
"public void drawNodeLegend(Graphics2D g2d) {\n Iterator<String> it = active_relationships.iterator();\n\tint y = getRCHeight() - 2 * Utils.txtH(g2d, \"0\");\n\tint max_w = 0;\n while (it.hasNext()) {\n\t String str = it.next();\n int fm_hdr_w = Utils.txtW(g2d, relationshipFromHeader(str)),\n\t to_hdr_w = Utils.txtW(g2d, relationshipToHeader(str));\n if (fm_hdr_w > max_w) max_w = fm_hdr_w;\n\t if (to_hdr_w > max_w) max_w = to_hdr_w;\n\t}\n it = active_relationships.iterator();\n int x = getRCWidth() - max_w - 5;\n Set<String> drawn = new HashSet<String>();\n\twhile (it.hasNext()) {\n\t String str = it.next();\n String fm_hdr = relationshipFromHeader(str),\n\t fm_icon = relationshipFromIcon(str),\n\t to_hdr = relationshipToHeader(str),\n\t\t to_icon = relationshipToIcon(str);\n g2d.setColor(RTColorManager.getColor(\"label\", \"default\"));\n Shape shape; String key;\n\t key = fm_hdr + BundlesDT.DELIM + fm_icon;\n\t if (drawn.contains(key) == false) {\n\t shape = Utils.shape(Utils.parseSymbol(fm_icon), x - 10, y - 6, 6); g2d.draw(shape); g2d.drawString(fm_hdr, x, y); y -= Utils.txtH(g2d, \"0\");\n\t drawn.add(key);\n }\n\t key = to_hdr + BundlesDT.DELIM + to_icon;\n\t if (drawn.contains(key) == false) {\n shape = Utils.shape(Utils.parseSymbol(to_icon), x - 10, y - 6, 6); g2d.draw(shape); g2d.drawString(to_hdr, x, y); y -= Utils.txtH(g2d, \"0\");\n\t drawn.add(key);\n }\n }\n }",
"private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }",
"private void onSetColor() {\r\n\t Frame frame = JOptionPane.getFrameForComponent(getContentComponent());\r\n\t Color newColor = JColorChooser.showDialog(frame, \"Choose color\", DEF_CLUSTER_COLOR);\r\n\t if (newColor != null) {\r\n\t setClusterColor(newColor);\r\n\t }\r\n\t}",
"public void refreshColorPanel() {\n if (quickPaintAnnotationButton != null) {\r\n quickPaintAnnotationButton.refreshColorPanel();\r\n }\r\n\r\n colorFilterMenuItem.removeAll();\r\n // build colour submenu based on colour labels\r\n ButtonGroup filterColorMenuGroup = new ButtonGroup();\r\n JCheckBoxMenuItem filterColorAllMenuItem = new JCheckBoxMenuItem();\r\n filterColorAllMenuItem.setAction(new FilterColorAction(\r\n messageBundle.getString(\"viewer.utilityPane.markupAnnotation.toolbar.filter.option.byColor.all.label\"),\r\n null));\r\n colorFilterMenuItem.add(filterColorAllMenuItem);\r\n filterColorMenuGroup.add(filterColorAllMenuItem);\r\n ArrayList<DragDropColorList.ColorLabel> colorLabels = DragDropColorList.retrieveColorLabels();\r\n int defaultColor = preferences.getInt(ViewerPropertiesManager.PROPERTY_ANNOTATION_FILTER_COLOR_COLUMN, -1);\r\n JCheckBoxMenuItem filterColorMenuItem;\r\n if (colorLabels.size() > 0) {\r\n for (DragDropColorList.ColorLabel colorLabel : colorLabels) {\r\n filterColorMenuItem = new JCheckBoxMenuItem();\r\n FilterColorAction sortAction = new FilterColorAction(\r\n colorLabel.getLabel(),\r\n colorLabel.getColor());\r\n filterColorMenuItem.setAction(sortAction);\r\n colorFilterMenuItem.add(filterColorMenuItem);\r\n filterColorMenuGroup.add(filterColorMenuItem);\r\n if (defaultColor != -1 && defaultColor == sortAction.getColorRGB()) {\r\n filterColorMenuItem.setSelected(true);\r\n filterColorAction = sortAction;\r\n }\r\n }\r\n }\r\n if (defaultColor == -1) {\r\n filterColorAllMenuItem.setSelected(true);\r\n filterColorAction = filterColorAllMenuItem.getAction();\r\n }\r\n }",
"protected JButton addDelButton(String legend) {\n if (legend != null) {\n DelButton.setText(legend);\n }\n DelButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n// Table.editingCanceled(null);\n// EditModel.delRecord(TopRow, BottomRow);\n// DelButton.setEnabled(false);\n// UpButton.setEnabled(false);\n// DownButton.setEnabled(false);\n// validate();\n// repaint();\n Table.editingCanceled(null);\n EditModel.delRecord(TopRow, BottomRow, null);\n DelButton.setEnabled(false);\n UpButton.setEnabled(false);\n DownButton.setEnabled(false);\n validate();\n repaint();\n }\n });\n DelButton.setEnabled(false);\n return DelButton;\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n bitRecommendationLabel1 = new javax.swing.JLabel();\n bitLabel1 = new javax.swing.JLabel();\n backgroundPanel = new javax.swing.JPanel();\n validationLevelPanel = new javax.swing.JPanel();\n validationLevelJComboBox = new javax.swing.JComboBox();\n validationTypeLabel = new javax.swing.JLabel();\n databaseSearchPanel = new javax.swing.JPanel();\n bitRecommendationLabel3 = new javax.swing.JLabel();\n targetDecoyLbl = new javax.swing.JLabel();\n bitRecommendationLabel4 = new javax.swing.JLabel();\n nTargetLbl = new javax.swing.JLabel();\n targetDecoyGroupPanel = new javax.swing.JPanel();\n recommendedNumberOfTargetHitsLbl = new javax.swing.JLabel();\n matchesBeforeFirstDecoyLbl = new javax.swing.JLabel();\n recommendedResolutionLbl = new javax.swing.JLabel();\n confidenceResolutionLbl = new javax.swing.JLabel();\n targetDecoyPanel = new javax.swing.JPanel();\n validationThresholdLbl = new javax.swing.JLabel();\n confidenceLbl = new javax.swing.JLabel();\n confidenceThresholdLbl = new javax.swing.JLabel();\n validationStatusLbl = new javax.swing.JLabel();\n qualityFiltersPanel = new javax.swing.JPanel();\n qualityFiltersTableScrollPane = new javax.swing.JScrollPane();\n qualityFiltersTable = new JTable() {\n protected JTableHeader createDefaultTableHeader() {\n return new JTableHeader(columnModel) {\n public String getToolTipText(MouseEvent e) {\n java.awt.Point p = e.getPoint();\n int index = columnModel.getColumnIndexAtX(p.x);\n int realIndex = columnModel.getColumn(index).getModelIndex();\n return (String) validationTableToolTips.get(realIndex);\n }\n };\n }\n };\n okButton = new javax.swing.JButton();\n cancelButton = new javax.swing.JButton();\n editLbl = new javax.swing.JLabel();\n\n bitRecommendationLabel1.setFont(bitRecommendationLabel1.getFont().deriveFont((bitRecommendationLabel1.getFont().getStyle() | java.awt.Font.ITALIC)));\n bitRecommendationLabel1.setText(\"Recommended: Concatenated Target/Decoy\");\n\n bitLabel1.setText(\"Concatenated Target/Decoy\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(700, 600));\n\n backgroundPanel.setBackground(new java.awt.Color(230, 230, 230));\n\n validationLevelPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Validation Level\"));\n validationLevelPanel.setOpaque(false);\n\n validationLevelJComboBox.setModel(new DefaultComboBoxModel(MatchValidationLevel.getValidationLevelsNames()));\n validationLevelJComboBox.setToolTipText(\"Validation Level\");\n validationLevelJComboBox.setEnabled(false);\n\n validationTypeLabel.setText(\"Type\");\n\n javax.swing.GroupLayout validationLevelPanelLayout = new javax.swing.GroupLayout(validationLevelPanel);\n validationLevelPanel.setLayout(validationLevelPanelLayout);\n validationLevelPanelLayout.setHorizontalGroup(\n validationLevelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(validationLevelPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(validationTypeLabel)\n .addGap(20, 20, 20)\n .addComponent(validationLevelJComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n validationLevelPanelLayout.setVerticalGroup(\n validationLevelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(validationLevelPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(validationLevelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(validationTypeLabel)\n .addComponent(validationLevelJComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n databaseSearchPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Database Search\"));\n databaseSearchPanel.setOpaque(false);\n\n bitRecommendationLabel3.setFont(bitRecommendationLabel3.getFont().deriveFont((bitRecommendationLabel3.getFont().getStyle() | java.awt.Font.ITALIC)));\n bitRecommendationLabel3.setText(\"Recommended: Concatenated Target/Decoy\");\n\n targetDecoyLbl.setText(\"Concatenated Target/Decoy\");\n\n bitRecommendationLabel4.setFont(bitRecommendationLabel4.getFont().deriveFont((bitRecommendationLabel4.getFont().getStyle() | java.awt.Font.ITALIC)));\n bitRecommendationLabel4.setText(\"Recommended: between 10 000 and 100 000\");\n\n nTargetLbl.setText(\"xx,xxx target sequences\");\n\n javax.swing.GroupLayout databaseSearchPanelLayout = new javax.swing.GroupLayout(databaseSearchPanel);\n databaseSearchPanel.setLayout(databaseSearchPanelLayout);\n databaseSearchPanelLayout.setHorizontalGroup(\n databaseSearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(databaseSearchPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(databaseSearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(databaseSearchPanelLayout.createSequentialGroup()\n .addComponent(targetDecoyLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(266, 266, 266)\n .addComponent(bitRecommendationLabel3))\n .addGroup(databaseSearchPanelLayout.createSequentialGroup()\n .addComponent(nTargetLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(266, 266, 266)\n .addComponent(bitRecommendationLabel4)))\n .addContainerGap())\n );\n databaseSearchPanelLayout.setVerticalGroup(\n databaseSearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(databaseSearchPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(databaseSearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(targetDecoyLbl)\n .addComponent(bitRecommendationLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(databaseSearchPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nTargetLbl)\n .addComponent(bitRecommendationLabel4))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n targetDecoyGroupPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Target/Decoy Group\"));\n targetDecoyGroupPanel.setOpaque(false);\n\n recommendedNumberOfTargetHitsLbl.setFont(recommendedNumberOfTargetHitsLbl.getFont().deriveFont((recommendedNumberOfTargetHitsLbl.getFont().getStyle() | java.awt.Font.ITALIC)));\n recommendedNumberOfTargetHitsLbl.setText(\"Recommended: 100 matches before the first decoy hit\");\n\n matchesBeforeFirstDecoyLbl.setText(\"xxx matches before the first decoy hit\");\n\n recommendedResolutionLbl.setFont(recommendedResolutionLbl.getFont().deriveFont((recommendedResolutionLbl.getFont().getStyle() | java.awt.Font.ITALIC)));\n recommendedResolutionLbl.setText(\"Recommended: resolution < 1%\");\n\n confidenceResolutionLbl.setText(\"PEP/Confidence resolution of x%\");\n\n javax.swing.GroupLayout targetDecoyGroupPanelLayout = new javax.swing.GroupLayout(targetDecoyGroupPanel);\n targetDecoyGroupPanel.setLayout(targetDecoyGroupPanelLayout);\n targetDecoyGroupPanelLayout.setHorizontalGroup(\n targetDecoyGroupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(targetDecoyGroupPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(targetDecoyGroupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(targetDecoyGroupPanelLayout.createSequentialGroup()\n .addComponent(matchesBeforeFirstDecoyLbl, javax.swing.GroupLayout.DEFAULT_SIZE, 265, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 266, Short.MAX_VALUE)\n .addComponent(recommendedNumberOfTargetHitsLbl))\n .addGroup(targetDecoyGroupPanelLayout.createSequentialGroup()\n .addComponent(confidenceResolutionLbl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(266, 266, 266)\n .addComponent(recommendedResolutionLbl)))\n .addContainerGap())\n );\n targetDecoyGroupPanelLayout.setVerticalGroup(\n targetDecoyGroupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(targetDecoyGroupPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(targetDecoyGroupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(matchesBeforeFirstDecoyLbl)\n .addComponent(recommendedNumberOfTargetHitsLbl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(targetDecoyGroupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(confidenceResolutionLbl)\n .addComponent(recommendedResolutionLbl))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n targetDecoyPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Target/Decoy Results\"));\n targetDecoyPanel.setOpaque(false);\n\n validationThresholdLbl.setFont(validationThresholdLbl.getFont().deriveFont((validationThresholdLbl.getFont().getStyle() | java.awt.Font.ITALIC)));\n validationThresholdLbl.setText(\"Validation threshold: x%\");\n\n confidenceLbl.setText(\"Confidence: x%\");\n\n confidenceThresholdLbl.setFont(confidenceThresholdLbl.getFont().deriveFont((confidenceThresholdLbl.getFont().getStyle() | java.awt.Font.ITALIC)));\n confidenceThresholdLbl.setText(\"Confidence threshold: x%\");\n\n validationStatusLbl.setText(\"Validation Status: Validated\");\n\n javax.swing.GroupLayout targetDecoyPanelLayout = new javax.swing.GroupLayout(targetDecoyPanel);\n targetDecoyPanel.setLayout(targetDecoyPanelLayout);\n targetDecoyPanelLayout.setHorizontalGroup(\n targetDecoyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(targetDecoyPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(targetDecoyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, targetDecoyPanelLayout.createSequentialGroup()\n .addComponent(confidenceLbl, javax.swing.GroupLayout.DEFAULT_SIZE, 365, Short.MAX_VALUE)\n .addGap(301, 301, 301)\n .addComponent(confidenceThresholdLbl))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, targetDecoyPanelLayout.createSequentialGroup()\n .addComponent(validationStatusLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(validationThresholdLbl)))\n .addContainerGap())\n );\n targetDecoyPanelLayout.setVerticalGroup(\n targetDecoyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(targetDecoyPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(targetDecoyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(validationThresholdLbl)\n .addComponent(validationStatusLbl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addGroup(targetDecoyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(confidenceThresholdLbl)\n .addComponent(confidenceLbl))\n .addContainerGap())\n );\n\n qualityFiltersPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Quality Filters\"));\n qualityFiltersPanel.setOpaque(false);\n\n qualityFiltersTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n qualityFiltersTableScrollPane.setViewportView(qualityFiltersTable);\n\n javax.swing.GroupLayout qualityFiltersPanelLayout = new javax.swing.GroupLayout(qualityFiltersPanel);\n qualityFiltersPanel.setLayout(qualityFiltersPanelLayout);\n qualityFiltersPanelLayout.setHorizontalGroup(\n qualityFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, qualityFiltersPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(qualityFiltersTableScrollPane)\n .addContainerGap())\n );\n qualityFiltersPanelLayout.setVerticalGroup(\n qualityFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(qualityFiltersPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(qualityFiltersTableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n\n cancelButton.setText(\"Cancel\");\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelButtonActionPerformed(evt);\n }\n });\n\n editLbl.setFont(new java.awt.Font(\"Tahoma\", 2, 11)); // NOI18N\n editLbl.setText(\"Validation filters can be edited via Edit > Validation Filters.\");\n\n javax.swing.GroupLayout backgroundPanelLayout = new javax.swing.GroupLayout(backgroundPanel);\n backgroundPanel.setLayout(backgroundPanelLayout);\n backgroundPanelLayout.setHorizontalGroup(\n backgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(backgroundPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(backgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(validationLevelPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, backgroundPanelLayout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(editLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cancelButton))\n .addComponent(qualityFiltersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(databaseSearchPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(targetDecoyGroupPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(targetDecoyPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n backgroundPanelLayout.setVerticalGroup(\n backgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, backgroundPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(validationLevelPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(databaseSearchPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(targetDecoyGroupPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(targetDecoyPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(qualityFiltersPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(backgroundPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cancelButton)\n .addComponent(okButton)\n .addComponent(editLbl))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(backgroundPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(backgroundPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }",
"public T caseLegend(Legend object)\n {\n return null;\n }",
"private void interpretLegend()\n\t{\n\t\t@SuppressWarnings(\"unused\")\n\t\tXMLIn xi = new XMLIn(rfoDir + legendName, this);\n\t}",
"private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtRed = new colorchooser.JColorNumberFieldRed();\n jLabel2 = new javax.swing.JLabel();\n txtGreen = new colorchooser.JColorNumberFieldGreen();\n jLabel3 = new javax.swing.JLabel();\n txtBlue = new colorchooser.JColorNumberFieldBlue();\n\n setLayout(new java.awt.GridLayout(3, 2, 5, 5));\n\n jLabel1.setText(\"Red\");\n add(jLabel1);\n\n txtRed.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtRedActionPerformed(evt);\n }\n });\n add(txtRed);\n\n jLabel2.setText(\"Green\");\n add(jLabel2);\n\n txtGreen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtGreenActionPerformed(evt);\n }\n });\n add(txtGreen);\n\n jLabel3.setText(\"Blue\");\n add(jLabel3);\n\n txtBlue.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBlueActionPerformed(evt);\n }\n });\n add(txtBlue);\n }",
"public void transport() \n{\n textSize(15);\n fill(0, 102, 153);\n text(\"Transport\", lx-10, ly+50);\n\n for (int i = 0; i < 7; i++) //draw the legend\n {\n stroke(0, 100);\n if (tm[i] == true) //if the transport is unselected, nofill\n {\n noFill();\n } \n else\n {\n fill(color(colorset[3*i], colorset[3*i+1], colorset[3*i+2]));\n }\n rect(lx, ly+65+2*i*bl, bw, bl); \n fill(0, 102, 153);\n text(transportm[i], lx+40, ly+75+2*i*bl+bl/3);\n }\n}",
"private void drawLegend(Graphics2D g)\n\t{\n\t\tlegendBoxX = midBoxWidth + ((super.getWidth() - midBoxWidth - LEGEND_BOX_WIDTH)/2);\n\t\t//legendBoxY = super.getHeight()/2 - 25 - LEGEND_BOX_HEIGHT/2;\n\t\tlegendBoxY = 300;\n\n\t\tStroke drawingStroke = new BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);\t\n\t\tLine2D.Double line = new Line2D.Double();\n\t\tg.setStroke(drawingStroke);\t\t\n\t\tRectangle2D legend = new Rectangle2D.Double(legendBoxX, legendBoxY, LEGEND_BOX_WIDTH, LEGEND_BOX_HEIGHT);\n\t\tRectangle2D dot;\n\n\t\tg.setColor(Color.white);\n\t\tg.fill(legend);\n\t\tg.setColor(Color.black);\n\n\t\t// Top boundary\n\t\tline.setLine(legendBoxX, legendBoxY, legendBoxX + LEGEND_BOX_WIDTH, legendBoxY);\n\t\tg.draw(line);\n\n\t\t// Bottom boundary\n\t\tline.setLine(legendBoxX, legendBoxY + LEGEND_BOX_HEIGHT, legendBoxX + LEGEND_BOX_WIDTH, legendBoxY + LEGEND_BOX_HEIGHT);\n\t\tg.draw(line);\n\n\t\t// Left boundary\n\t\tline.setLine(legendBoxX, legendBoxY, legendBoxX, legendBoxY + LEGEND_BOX_HEIGHT);\n\t\tg.draw(line);\n\n\t\t// Right boundary\n\t\tline.setLine(legendBoxX + LEGEND_BOX_WIDTH, legendBoxY, legendBoxX + LEGEND_BOX_WIDTH, legendBoxY + LEGEND_BOX_HEIGHT);\n\t\tg.draw(line);\n\n\t\tdrawingStroke = new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);\n\t\tg.setStroke(drawingStroke);\t\t\n\n\t\tlegendSlotX = legendBoxX + 30;\n\t\tlegendSlotY1 = legendBoxY + 30;\n\t\tlegendSlotY2 = legendBoxY + 60;\n\t\tlegendSlotY3 = legendBoxY + 90;\n\t\tlegendSlotY4 = legendBoxY + 120;\n\n\t\tg.setColor(C1);\n\t\tdot = new Rectangle2D.Double(legendSlotX - 21, legendSlotY1 - 12, 15, 15);\n\t\tg.fill(dot);\n\t\tg.drawString(\"Frome Road from North\", legendSlotX, legendSlotY1);\n\n\t\tg.setColor(C2);\n\t\tdot = new Rectangle2D.Double(legendSlotX - 21, legendSlotY2 - 12, 15, 15);\n\t\tg.fill(dot);\n\t\tg.drawString(\"Frome Road from South\", legendSlotX, legendSlotY2);\n\n\t\tg.setColor(C3);\n\t\tdot = new Rectangle2D.Double(legendSlotX - 21, legendSlotY3 - 12, 15, 15);\n\t\tg.fill(dot);\n\t\tg.drawString(String.format(\"North Terrace from %s\", east), legendSlotX, legendSlotY4);\n\n\t\tg.setColor(C4);\n\t\tdot = new Rectangle2D.Double(legendSlotX - 21, legendSlotY4 - 12, 15, 15);\n\t\tg.fill(dot);\n\t\tg.drawString(String.format(\"North Terrace from %s\", west), legendSlotX, legendSlotY3);\n\t}",
"private static void drawTableCompenents() {\n\t\ttopColumn = new JLabel(\"location\");\r\n\t\ttopColumn.setLocation(200, 0);\r\n\t\tExtension.instance.add(topColumn);\r\n\t}",
"public interface ColorMapper {\n\tpublic Color calculate(Object value);\n\t\n\tpublic JPanel createLegend();\n}",
"public boolean isLegend() {\n return this.legend;\n }",
"@Override \r\n public void setUI(TableUI ui) \r\n {\n super.setUI(new BasicTableUI(){ \r\n public void paint(Graphics g, JComponent c) { \r\n Rectangle r=g.getClipBounds(); \r\n int firstRow=table.rowAtPoint(new Point(0,r.y)); \r\n int lastRow=table.rowAtPoint(new Point(0,r.y+r.height)); \r\n // -1 is a flag that the ending point is outside the table \r\n if (lastRow<0) \r\n lastRow=table.getRowCount()-1; \r\n for (int i=firstRow; i<=lastRow; i++) \r\n paintRow(i,g); \r\n } \r\n private void paintRow(int row, Graphics g) \r\n { \r\n Rectangle r=g.getClipBounds(); \r\n for (int i=0; i<table.getColumnCount();i++) \r\n { \r\n Rectangle r1=table.getCellRect(row,i,true); \r\n if (r1.intersects(r)) // at least a part is visible \r\n { \r\n int sk=i;//((CTable)table).map.visibleCell(red,i); \r\n paintCell(row,sk,g,r1); \r\n // increment the column counter \r\n //i+=((CTable)table).map.span(row,sk)-1; \r\n //i++; \r\n } \r\n } \r\n } \r\n private void paintCell(int row, int column, Graphics g,Rectangle area) \r\n { \r\n int verticalMargin = table.getRowMargin(); \r\n int horizontalMargin = table.getColumnModel().getColumnMargin(); \r\n \r\n Color c = g.getColor(); \r\n g.setColor(table.getGridColor()); \r\n g.drawRect(area.x,area.y,area.width-1,area.height-1); \r\n g.setColor(c); \r\n \r\n area.setBounds(area.x + horizontalMargin/2, \r\n area.y + verticalMargin/2, \r\n area.width - horizontalMargin, \r\n area.height - verticalMargin); \r\n \r\n if (table.isEditing() && table.getEditingRow()==row && \r\n table.getEditingColumn()==column) \r\n { \r\n Component component = table.getEditorComponent(); \r\n component.setBounds(area); \r\n component.validate(); \r\n } \r\n else \r\n { \r\n TableCellRenderer renderer = table.getCellRenderer(row, column); \r\n Component component = table.prepareRenderer(renderer, row, column); \r\n if (component.getParent() == null) \r\n rendererPane.add(component); \r\n rendererPane.paintComponent(g, component, table, area.x, area.y, \r\n area.width, area.height, true); \r\n } \r\n } \r\n }); \r\n }",
"@Test\n public void test30() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n int int0 = ColorSpace.TYPE_CMY;\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset((Number) 11);\n combinedDomainCategoryPlot0.setRangeAxisLocation(11, (AxisLocation) null);\n MeterPlot meterPlot0 = new MeterPlot((ValueDataset) defaultValueDataset0);\n LegendItemCollection legendItemCollection0 = meterPlot0.getLegendItems();\n defaultValueDataset0.addChangeListener(combinedDomainCategoryPlot0);\n LegendItemCollection legendItemCollection1 = (LegendItemCollection)legendItemCollection0.clone();\n LegendItemCollection legendItemCollection2 = (LegendItemCollection)legendItemCollection0.clone();\n boolean boolean0 = defaultValueDataset0.hasListener(combinedDomainCategoryPlot0);\n LegendItemCollection legendItemCollection3 = (LegendItemCollection)legendItemCollection0.clone();\n combinedDomainCategoryPlot0.setFixedLegendItems(legendItemCollection0);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n DebugGraphics debugGraphics0 = new DebugGraphics((Graphics) null);\n // Undeclared exception!\n try { \n debugGraphics0.getClipBounds();\n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"javax.swing.DebugGraphics\", e);\n }\n }",
"protected JPanel makeLegendPanel() throws ModelException {\n\n\n TreePopulation p_oPop = m_oDisturbanceBehaviors.getGUIManager().\n getTreePopulation();\n int i;\n \n JPanel jLegendPanel = new JPanel(new GridLayout(0, 1));\n if (p_oPop.getTrees().size() == 0) {\n JLabel jTitle = new JLabel(\"No trees to display.\");\n jTitle.setFont(new SortieFont());\n jLegendPanel.add(jTitle);\n }\n DefaultDrawingSupplier oDrawer = new DefaultDrawingSupplier();\n for (i = 0; i < m_iNumSpecies; i++) {\n JPanel jTemp = new JPanel(new FlowLayout(FlowLayout.LEFT));\n Color jSpeciesColor = (Color) oDrawer.getNextPaint();\n JButton jColorButton = new JButton(new ModelIcon(15, 15,\n ModelIcon.RECTANGLE, jSpeciesColor));\n jColorButton.setContentAreaFilled(false);\n jColorButton.setPreferredSize(new Dimension(15, 15));\n m_oTreeRenderer.setSeriesPaint(i, jSpeciesColor);\n MultilineLabel jTempMultiLine = new MultilineLabel(p_oPop.getSpeciesNameFromCode(i).\n replace('_', '\\n'));\n jTempMultiLine.setFont(new SortieFont());\n jTemp.add(jColorButton);\n jTemp.add(jTempMultiLine);\n jLegendPanel.add(jTemp);\n }\n return jLegendPanel; \n }",
"private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd);\n\n // Create a group to contain the RGB and HSB radio buttons.\n Group colorGroup = new Group(comp1, SWT.NONE);\n colorGroup.setText(\" Use color model: \");\n\n RowLayout groupRowLayout = new RowLayout();\n groupRowLayout.marginLeft = 10;\n groupRowLayout.marginRight = 10;\n groupRowLayout.spacing = 10;\n colorGroup.setLayout(groupRowLayout);\n\n // Create the RGB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the RGB\n // sliders.\n rgbRdo = new Button(colorGroup, SWT.RADIO);\n rgbRdo.setText(\"RGB\");\n rgbRdo.setSelection(true);\n rgbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n\n // Create the HSB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the HSB\n // sliders.\n hsbRdo = new Button(colorGroup, SWT.RADIO);\n hsbRdo.setText(\"HSB\");\n hsbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n \n Composite catComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 20;\n catComp.setLayout(gl);\n gd = new GridData(GridData.CENTER);\n gd.horizontalAlignment = SWT.CENTER;\n \n catComp.setLayoutData(gd);\n\n Label selCatLbl = new Label( catComp, SWT.None );\n selCatLbl.setText(\"Category\");\n \n final Combo selCmapCatCombo = new Combo( catComp, SWT.DROP_DOWN | SWT.READ_ONLY );\n selCmapCatCombo.setItems( availColorMapCats );\n selCmapCatCombo.select(0);\n \n selCmapCatCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCat = selCmapCatCombo.getText();\n \t\tif( seldCat.equals( seldCmapCat ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapCat = seldCat;\n \t\tseldCmapName = null;\n \t\tavailColorMaps.clear();\n \t\t\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n \t\n createSliderData();\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n Composite cmapComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 10;\n cmapComp.setLayout(gl);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n cmapComp.setLayoutData(gd);\n\n Label selCmapLbl = new Label( cmapComp, SWT.None );\n selCmapLbl.setText(\"Colormap\");\n \n selCmapCombo = new Combo( cmapComp, SWT.DROP_DOWN );\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n \n selCmapCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCmap = selCmapCombo.getText();\n \t\tif( seldCmap.equals( seldCmapName ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapName = seldCmap;\n\n \t\tif( initColorMap() ) {\n createSliderData();\n \t\t}\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n// selCmapCombo.addModifyListener( new ModifyListener() {\n//\t\t\t@Override\n//\t\t\tpublic void modifyText(ModifyEvent e) { \n//\t\t\t\tseldCmapName = selCmapCombo.getText();\n//\t\t\t}\n// });\n }",
"private void customizeComponents(Component c, int i1) {\r\n\r\n\t\t/**\r\n\t\t * cName is name of component without index\r\n\t\t */\r\n\t\tint a = 1;\r\n\t\t/**\r\n\t\t * to get correct cName depending on index\r\n\t\t */\r\n\t\tfor (int i = 0; i < c.getName().length(); i++) {\r\n\t\t\ttry {\r\n\t\t\t\ta = Integer.parseInt(c.getName().substring(i));\r\n\t\t\t\ta = c.getName().substring(i).length();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString cName = c.getName().substring(0, c.getName().length() - a);\r\n\r\n\t\tswitch (cName) {\r\n\t\tcase \"lblImageSimulation\": {\r\n\t\t\t((JLabel) c).setBorder(new EtchedBorder(EtchedBorder.RAISED, null, null));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblImageCup\": {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"txfCup\": {\r\n\t\t\t((JTextField) c).setOpaque(false);\r\n\t\t\tc.setForeground(Color.gray);\r\n\t\t\tc.setFont(new Font(c.getFont().getName(), Font.BOLD, 36));\r\n\t\t\ttxfsCup[i1] = (JTextField) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"txfCupVolume\": {\r\n\t\t\ttxfsCupVolume[i1] = (JTextField) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblDisplayName\": {\r\n\t\t\t((JLabel) c).setBorder(\r\n\t\t\t\t\tnew CompoundBorder(new EtchedBorder(EtchedBorder.RAISED, null, null), new EmptyBorder(0, 2, 0, 0)));\r\n\t\t\tc.setForeground(Color.darkGray);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"txfDisplayCurrentVolume\": {\r\n\t\t\t((JTextField) c).setBorder(new EtchedBorder(EtchedBorder.RAISED, null, null));\r\n\t\t\t((JTextField) c).setOpaque(true);\r\n\t\t\tc.setBackground(new Color(30, 200, 225));\r\n\t\t\tFont dig7_S16 = dig7.deriveFont(Font.BOLD, 16);\r\n\t\t\tGraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(dig7_S16);\r\n\t\t\tc.setFont(dig7_S16);\r\n\t\t\ttxfsDisplayCurrentVolume[i1] = (JTextField) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblImageCD\": {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblCDBadge\": {\r\n\t\t\tc.setForeground(Color.lightGray);\r\n\t\t\tc.setFont(dig7);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"txfWaitTime\": {\r\n\t\t\t((JTextField) c).setOpaque(true);\r\n\t\t\tc.setBackground(new Color(140, 200, 255));\r\n\t\t\tc.setFont(new Font(c.getFont().getName(), Font.PLAIN, 8));\r\n\t\t\ttxfsWaitTime[i1] = (JTextField) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"pgbVolume\": {\r\n\t\t\t((JProgressBar) c).setMinimum(0);\r\n\t\t\t((JProgressBar) c).setMaximum(MAXVOLUMEDISPENSER);\r\n\t\t\t((JProgressBar) c).setValue((int) MAXVOLUMEDISPENSER / 2);\r\n\t\t\tc.setForeground(new Color(140, 200, 255));\r\n\t\t\tc.setBackground(new Color(80, 80, 80));\r\n\t\t\t((JProgressBar) c).setBorderPainted(false);\r\n\t\t\tpgbsVolume[i1] = (JProgressBar) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"btnPause\": {\r\n\t\t\tc.setBackground(new Color(90, 210, 165));\r\n\t\t\tc.setFont(new Font(c.getFont().getName(), Font.PLAIN, 8));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblImageBoard\": {\r\n\t\t\tlblsAbout[0] = (JLabel) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblImageAuthor\": {\r\n\t\t\tc.setVisible(false);\r\n\t\t\tlblsAbout[1] = (JLabel) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblImageSizeOfCups\": {\r\n\t\t\tc.setVisible(false);\r\n\t\t\tlblsAbout[2] = (JLabel) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblImageNumberOfCoffeeDispensers\": {\r\n\t\t\tc.setVisible(false);\r\n\t\t\tlblsAbout[3] = (JLabel) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblImagePause\": {\r\n\t\t\tc.setVisible(false);\r\n\t\t\tlblsAbout[4] = (JLabel) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcase \"lblPauseInfo\": {\r\n\t\t\tc.setForeground(Color.gray);\r\n\t\t\tc.setFont(new Font(c.getFont().getName(), Font.BOLD, 36));\r\n\t\t\t((JLabel) c).setText(\"\");\r\n\t\t\tlblPauseInfo = (JLabel) c;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdefault: {\r\n\t\t\tSystem.out.println(\"unexpected event in customizeComponents\" + c.getName());\r\n\t\t}\r\n\t\t}\r\n\t}",
"void setup() {\n TableColumnModel cm = new DefaultTableColumnModel() {\r\n boolean first = true;\r\n public void addColumn(TableColumn tc) {\r\n if (first) {\r\n first = false;\r\n return;\r\n }\r\n tc.setMinWidth(ROW_WIDTH);\r\n super.addColumn(tc);\r\n }\r\n };\r\n\r\n // setup the columns for the row header table\r\n TableColumnModel rowHeaderModel = new DefaultTableColumnModel() {\r\n boolean first = true;\r\n public void addColumn(TableColumn tc) {\r\n if (first) {\r\n super.addColumn(tc);\r\n first = false;\r\n }\r\n }\r\n };\r\n\r\n tblModel = new ObjectiveModel();\r\n\r\n JComboBox combobox = new JComboBox();\r\n\r\n // setup the row header table\r\n headerColumn = new JTable(tblModel, rowHeaderModel);\r\n headerColumn.setRowHeight(ROW_HEIGHT);\r\n headerColumn.setRowSelectionAllowed(false);\r\n headerColumn.setColumnSelectionAllowed(false);\r\n headerColumn.setCellSelectionEnabled(false);\r\n headerColumn.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\r\n headerColumn.getTableHeader().setReorderingAllowed(false);\r\n headerColumn.createDefaultColumnsFromModel();\r\n headerColumn.setDefaultRenderer(String.class,\r\n new RotatedLabelRenderer());\r\n headerColumn.setDefaultEditor(String.class,\r\n new DefaultCellEditor(combobox));\r\n\r\n // setup the graph matrix\r\n jTable = new JTable(tblModel, cm);\r\n jTable.createDefaultColumnsFromModel();\r\n //jTable.setDefaultRenderer(ImageIcon.class, new GraphRenderer());\r\n jTable.setDefaultRenderer(JPanel.class, new ComponentRenderer());\r\n jTable.setDefaultEditor(JPanel.class, new ComponentEditor());\r\n\r\n jTable.setRowHeight(ROW_HEIGHT);\r\n jTable.setRowSelectionAllowed(false);\r\n jTable.setColumnSelectionAllowed(false);\r\n jTable.setCellSelectionEnabled(false);\r\n\r\n //jTable.addMouseListener(this);\r\n jTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\r\n\r\n TableColumnModel columnModel = jTable.getColumnModel();\r\n jTable.setTableHeader(new EditableHeader(columnModel));\r\n\r\n String[] items = {\r\n \"ff\", \"fg\"};\r\n JComboBox combo = new JComboBox(items);\r\n\r\n EditableHeaderTableColumn col;\r\n // column 0\r\n col = (EditableHeaderTableColumn) jTable.getColumnModel().getColumn(0);\r\n col.setHeaderValue(items[0]);\r\n col.setHeaderEditor(new DefaultCellEditor(combo));\r\n\r\n // column 1\r\n col = (EditableHeaderTableColumn) jTable.getColumnModel().getColumn(1);\r\n col.setHeaderValue(items[0]);\r\n col.setHeaderEditor(new DefaultCellEditor(combo));\r\n\r\n int numRows = jTable.getModel().getRowCount();\r\n int numColumns = jTable.getModel().getColumnCount();\r\n\r\n int longest = 0;\r\n // we know that the first column will only contain\r\n // JLabels...so create them and find the longest\r\n // preferred width\r\n\r\n TableColumn column;\r\n // set the default column widths\r\n for (int i = 0; i < numColumns; i++) {\r\n if (i == 0) {\r\n column = headerColumn.getColumnModel().getColumn(i);\r\n column.setPreferredWidth(20);\r\n }\r\n else {\r\n column = jTable.getColumnModel().getColumn(i - 1);\r\n column.setPreferredWidth(ROW_WIDTH);\r\n }\r\n }\r\n\r\n jTable.setPreferredScrollableViewportSize(new Dimension(\r\n ROW_WIDTH * 2, ROW_HEIGHT * 2));\r\n\r\n // put the row headers in the viewport\r\n JViewport jv = new JViewport();\r\n jv.setView(headerColumn);\r\n jv.setPreferredSize(headerColumn.getPreferredSize());\r\n\r\n // setup the scroll pane\r\n JScrollPane sp = new JScrollPane(jTable);\r\n sp.setRowHeader(jv);\r\n sp.setHorizontalScrollBarPolicy(\r\n JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n sp.setVerticalScrollBarPolicy(\r\n JScrollPane.VERTICAL_SCROLLBAR_NEVER);\r\n\r\n this.add(sp, BorderLayout.CENTER);\r\n }",
"void createDialogComponents(Color color) {\r\n GridBagConstraints constr = new GridBagConstraints();\r\n constr.gridwidth = 1;\r\n constr.gridheight = 4;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n\r\n constr.gridx = 0;\r\n constr.gridy = 0;\r\n\r\n // Create color wheel canvas\r\n colorCanvas = new ColorCanvas(50, color);\r\n add(colorCanvas, constr);\r\n\r\n // Create input boxes to enter values\r\n Font font = new Font(\"DialogInput\", Font.PLAIN, 10);\r\n redInput = new TextField(3);\r\n redInput.addFocusListener(this);\r\n redInput.setFont(font);\r\n greenInput = new TextField(3);\r\n greenInput.addFocusListener(this);\r\n greenInput.setFont(font);\r\n blueInput = new TextField(3);\r\n blueInput.addFocusListener(this);\r\n blueInput.setFont(font);\r\n\r\n // Add the input boxes and labels to the component\r\n Label label;\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.SOUTH;\r\n constr.insets = new Insets(0, 0, 0, 0);\r\n constr.gridx = 1;\r\n constr.gridy = 0;\r\n label = new Label(\"Red:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n label = new Label(\"Green:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTH;\r\n label = new Label(\"Blue:\", Label.RIGHT);\r\n add(label, constr);\r\n\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.SOUTHWEST;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.gridx = 2;\r\n constr.gridy = 0;\r\n add(redInput, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.WEST;\r\n add(greenInput, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTHWEST;\r\n add(blueInput, constr);\r\n\r\n // Add color swatches\r\n Panel panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 4, 4));\r\n oldSwatch = new ColorSwatch(false);\r\n oldSwatch.setForeground(color);\r\n panel.add(oldSwatch);\r\n newSwatch = new ColorSwatch(false);\r\n newSwatch.setForeground(color);\r\n panel.add(newSwatch);\r\n\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 1;\r\n constr.gridy = 3;\r\n constr.gridwidth = 2;\r\n add(panel, constr);\r\n\r\n // Add buttons\r\n panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 10, 2));\r\n Font buttonFont = new Font(\"SansSerif\", Font.BOLD, 12);\r\n okButton = new Button(\"Ok\");\r\n okButton.setFont(buttonFont);\r\n okButton.addActionListener(this);\r\n cancelButton = new Button(\"Cancel\");\r\n cancelButton.addActionListener(this);\r\n cancelButton.setFont(buttonFont);\r\n panel.add(okButton);\r\n panel.add(cancelButton);\r\n\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 0;\r\n constr.gridy = 4;\r\n constr.gridwidth = 3;\r\n add(panel, constr);\r\n }",
"public interface WidgetColors {\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_ENCLOSURE_BG = new Color(40, 40, 40);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_BG = new Color(60, 60, 60);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_FG = new Color(180, 180, 180);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_BG = new Color(80, 0, 0);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_LIST_SELECTION_FG = new Color(240, 240, 240);\n\t/**\n\t * \n\t */\n\tpublic static final Color COLOR_NON_FOCUS = new Color(70, 70, 70);\n\t/**\n\t * \n\t */\n\tpublic static final Color HEADER_COLOR = new Color(20, 20, 20, 230);\n\t/**\n\t * \n\t */\n\tpublic static final Color PROPERTIES_BACKGROUND = Color.LIGHT_GRAY;\n\t/**\n\t * \n\t */\n\tpublic static final Color TEXT_COLOR = new Color(210, 210, 210);\n\n}",
"protected void attemptGridPaintSelection() {\n/* 314 */ Color c = JColorChooser.showDialog(this, localizationResources.getString(\"Grid_Color\"), Color.blue);\n/* */ \n/* 316 */ if (c != null) {\n/* 317 */ this.gridPaintSample.setPaint(c);\n/* */ }\n/* */ }",
"private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }",
"public String _buildtheme() throws Exception{\n_theme.Initialize(\"pagetheme\");\r\n //BA.debugLineNum = 91;BA.debugLine=\"theme.AddABMTheme(ABMShared.MyTheme)\";\r\n_theme.AddABMTheme(_abmshared._mytheme);\r\n //BA.debugLineNum = 94;BA.debugLine=\"theme.AddLabelTheme(\\\"lightblue\\\")\";\r\n_theme.AddLabelTheme(\"lightblue\");\r\n //BA.debugLineNum = 95;BA.debugLine=\"theme.Label(\\\"lightblue\\\").ForeColor = ABM.COLOR_LI\";\r\n_theme.Label(\"lightblue\").ForeColor = _abm.COLOR_LIGHTBLUE;\r\n //BA.debugLineNum = 96;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}",
"protected abstract float getRequiredLegendOffset();",
"protected void staffIsLegend(){\r\n System.out.println(\"you must show some respect to staff \");\r\n }",
"private LegendItemCollection createLegendItems(String legendColors) {\n LegendItemCollection result = new LegendItemCollection();\n String[] entries = legendColors.split(\";\");\n for (int i=0; i<entries.length; i++) {\n String value = entries[i];\n if (value != null) {\n String[] pair = entries[i].split(\":\");\n if (pair[0] != null && pair[1] != null) {\n LegendItem legend = new LegendItem(pair[0], JRColorUtil.getColor(pair[1], null));\n result.add(legend);\n }\n }\n }\n return result;\n }",
"public conversionHistory() {\n initComponents();\n project_classes.DBLogic dl = new project_classes.DBLogic();//Initializing a DBLogic Object\n dl.GetConnection();//Getting the connection\n dl.populateConversionHistory(conversionHistoryTbl);//we populate the table conversionHistoryTbl by calling DBLogic member method populateConversionHistory\n this.setTitle(\"Conversion History\");//setting the title of the form\n this.setResizable(false);//Setting the resizable option to false\n getContentPane().setBackground(Color.decode(\"#005580\"));//changing main panle background \n mainPanel.setBackground(Color.decode(\"#005580\"));//changing the secondary panle back-ground\n conversionHistoryTbl.setBackground(Color.decode(\"#33D1B9\"));//setting the back-gounrd of the JTable conversionHistoryTbl\n }",
"public abstract TableCellRenderer getInstance(Map parameterMap);",
"public void clouleurFondEcran() {\n this.setBackground(Color.WHITE);\n jPanel3.setBackground(Color.WHITE);\n jPanel2.setBackground(Color.WHITE);\n jPanel5.setBackground(Color.WHITE);\n jTable2.setBackground(Color.WHITE);\n jTextField3.setBackground(Color.WHITE);\n }",
"@Override\n public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {\n JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);\n\n if (practiceData[row][col] != null && label != null) {\n Font oldFont = getFont();\n label.setFont(new Font(oldFont.getFontName(), Font.BOLD, oldFont.getSize()));\n\n // the predMatrix display red, and the postMatrix display blue.\n if (col < table.getModel().getColumnCount() / 2) {\n label.setForeground(Color.red);\n } else {\n label.setForeground(Color.blue);\n }\n }\n\n return label;\n }",
"@Test\n public void test56() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n Color color0 = (Color)combinedRangeCategoryPlot0.getRangeGridlinePaint();\n }",
"public ColorField addColorField(final String key) {\n String label = key;\n ColorField colorField = new ColorField(getComposite(), _form, key, label, false);\n colorField.adapt(_formToolkit);\n _form.mapField(key, colorField);\n return colorField;\n }",
"public void calculateOffsets() {\n /* 113 */\n float legendLeft = 0.0F, legendRight = 0.0F, legendBottom = 0.0F, legendTop = 0.0F;\n /* */\n /* 115 */\n if (this.mLegend != null && this.mLegend.isEnabled() && !this.mLegend.isDrawInsideEnabled()) {\n /* */\n /* 117 */\n float yLegendOffset, fullLegendWidth = Math.min(this.mLegend.mNeededWidth, this.mViewPortHandler\n/* 118 */.getChartWidth() * this.mLegend.getMaxSizePercent());\n /* */\n /* 120 */\n switch (this.mLegend.getOrientation()) {\n /* */\n case VERTICAL:\n /* 122 */\n float xLegendOffset = 0.0F;\n /* */\n /* 124 */\n if (this.mLegend.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.LEFT || this.mLegend\n/* 125 */.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.RIGHT) {\n /* 126 */\n if (this.mLegend.getVerticalAlignment() == Legend.LegendVerticalAlignment.CENTER) {\n /* */\n /* 128 */\n float spacing = Utils.convertDpToPixel(13.0F);\n /* */\n /* 130 */\n xLegendOffset = fullLegendWidth + spacing;\n /* */\n }\n /* */\n else {\n /* */\n /* 134 */\n float spacing = Utils.convertDpToPixel(8.0F);\n /* */\n /* 136 */\n float legendWidth = fullLegendWidth + spacing;\n /* 137 */\n float legendHeight = this.mLegend.mNeededHeight + this.mLegend.mTextHeightMax;\n /* */\n /* 139 */\n MPPointF center = getCenter();\n /* */\n /* */\n /* */\n /* 143 */\n float bottomX = (this.mLegend.getHorizontalAlignment() == Legend.LegendHorizontalAlignment.RIGHT) ? (getWidth() - legendWidth + 15.0F) : (legendWidth - 15.0F);\n /* */\n /* 145 */\n float bottomY = legendHeight + 15.0F;\n /* 146 */\n float distLegend = distanceToCenter(bottomX, bottomY);\n /* */\n /* 148 */\n MPPointF reference = getPosition(center, getRadius(),\n /* 149 */ getAngleForPoint(bottomX, bottomY));\n /* */\n /* 151 */\n float distReference = distanceToCenter(reference.x, reference.y);\n /* 152 */\n float minOffset = Utils.convertDpToPixel(5.0F);\n /* */\n /* 154 */\n if (bottomY >= center.y && getHeight() - legendWidth > getWidth()) {\n /* 155 */\n xLegendOffset = legendWidth;\n /* 156 */\n } else if (distLegend < distReference) {\n /* */\n /* 158 */\n float diff = distReference - distLegend;\n /* 159 */\n xLegendOffset = minOffset + diff;\n /* */\n }\n /* */\n /* 162 */\n MPPointF.recycleInstance(center);\n /* 163 */\n MPPointF.recycleInstance(reference);\n /* */\n }\n /* */\n }\n /* */\n /* 167 */\n switch (this.mLegend.getHorizontalAlignment()) {\n /* */\n// case VERTICAL:\n// /* 169 */\n// legendLeft = xLegendOffset;\n// /* */\n// break;\n// /* */\n// /* */\n// case HORIZONTAL:\n// /* 173 */\n// legendRight = xLegendOffset;\n// break;\n }\n switch (this.mLegend.getVerticalAlignment())\n /* */ {\n// case VERTICAL:\n// /* 179 */\n// legendTop = Math.min(this.mLegend.mNeededHeight, this.mViewPortHandler\n///* 180 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n// break;\n// /* */\n// case HORIZONTAL:\n// /* */\n// case null:\n// /* 183 */\n// break;\n }\n legendBottom = Math.min(this.mLegend.mNeededHeight, this.mViewPortHandler\n/* 184 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n /* */\n break;\n /* */\n /* */\n /* */\n /* */\n /* */\n /* */\n /* */\n case HORIZONTAL:\n /* 193 */\n yLegendOffset = 0.0F;\n /* */\n /* 195 */\n if (this.mLegend.getVerticalAlignment() == Legend.LegendVerticalAlignment.TOP || this.mLegend\n/* 196 */.getVerticalAlignment() == Legend.LegendVerticalAlignment.BOTTOM) {\n /* */\n /* */\n /* */\n /* */\n /* 201 */\n float yOffset = getRequiredLegendOffset();\n /* */\n /* 203 */\n yLegendOffset = Math.min(this.mLegend.mNeededHeight + yOffset, this.mViewPortHandler\n/* 204 */.getChartHeight() * this.mLegend.getMaxSizePercent());\n /* */\n /* 206 */\n switch (this.mLegend.getVerticalAlignment())\n /* */ {\n// case VERTICAL:\n// /* 208 */\n// legendTop = yLegendOffset;\n// break;\n// /* */\n// case HORIZONTAL:\n// /* */\n// case null:\n// /* 211 */\n// break;\n }\n legendBottom = yLegendOffset;\n /* */\n }\n /* */\n break;\n /* */\n }\n /* */\n /* */\n /* */\n /* 218 */\n legendLeft += getRequiredBaseOffset();\n /* 219 */\n legendRight += getRequiredBaseOffset();\n /* 220 */\n legendTop += getRequiredBaseOffset();\n /* 221 */\n legendBottom += getRequiredBaseOffset();\n /* */\n }\n /* */\n /* 224 */\n float minOffset = Utils.convertDpToPixel(this.mMinOffset);\n /* */\n /* 226 */\n if (this instanceof RadarChart) {\n /* 227 */\n XAxis x = getXAxis();\n /* */\n /* 229 */\n if (x.isEnabled() && x.isDrawLabelsEnabled()) {\n /* 230 */\n minOffset = Math.max(minOffset, x.mLabelRotatedWidth);\n /* */\n }\n /* */\n }\n /* */\n /* 234 */\n legendTop += getExtraTopOffset();\n /* 235 */\n legendRight += getExtraRightOffset();\n /* 236 */\n legendBottom += getExtraBottomOffset();\n /* 237 */\n legendLeft += getExtraLeftOffset();\n /* */\n /* 239 */\n float offsetLeft = Math.max(minOffset, legendLeft);\n /* 240 */\n float offsetTop = Math.max(minOffset, legendTop);\n /* 241 */\n float offsetRight = Math.max(minOffset, legendRight);\n /* 242 */\n float offsetBottom = Math.max(minOffset, Math.max(getRequiredBaseOffset(), legendBottom));\n /* */\n /* 244 */\n this.mViewPortHandler.restrainViewPort(offsetLeft, offsetTop, offsetRight, offsetBottom);\n /* */\n /* 246 */\n if (this.mLogEnabled) {\n /* 247 */\n Log.i(\"MPAndroidChart\", \"offsetLeft: \" + offsetLeft + \", offsetTop: \" + offsetTop + \", offsetRight: \" + offsetRight + \", offsetBottom: \" + offsetBottom);\n /* */\n }\n /* */\n }",
"protected HashMap<String,Color> addColors() {\n\t\tHashMap<String,Color> colorChoices = new HashMap<String,Color>();\n\t\tcolorChoices.put(\"RED\", Color.RED);\n\t\tcolorChoices.put(\"BLUE\", Color.BLUE);\n\t\tcolorChoices.put(\"BLACK\", Color.BLACK);\n\t\treturn colorChoices;\n\t}",
"private void configure() throws InvalidStateException {\r\n // Default options\r\n mRenderer.setBackgroundColor(mContext.getResources().getColor(R.color.white));\r\n mRenderer.setMarginsColor(mContext.getResources().getColor(R.color.white));\r\n mRenderer.setLabelsColor(mContext.getResources().getColor(R.color.grey_darker));\r\n mRenderer.setXLabelsColor(mContext.getResources().getColor(R.color.grey_darker));\r\n mRenderer.setYLabelsColor(0, mContext.getResources().getColor(R.color.grey_darker));\r\n mRenderer.setYLabelsColor(1, mContext.getResources().getColor(R.color.grey_darker));\r\n mRenderer.setXLabelsAlign(Align.CENTER);\r\n mRenderer.setYLabelsAlign(Align.RIGHT);\r\n mRenderer.setYLabelsAlign(Align.LEFT, 1);\r\n mRenderer.setYAxisAlign(Align.RIGHT, 1);\r\n mRenderer.setAxesColor(mContext.getResources().getColor(R.color.grey_lighter));\r\n mRenderer.setLabelsTextSize(mTextSize);\r\n mRenderer.setAxisTitleTextSize(mTextSize);\r\n mRenderer.setApplyBackgroundColor(true);\r\n mRenderer.setShowGrid(true);\r\n\r\n int padding = 10;\r\n mRenderer.setXLabelsPadding(padding);\r\n mRenderer.setYLabelsPadding(padding);\r\n mRenderer.setYLabelsVerticalPadding(padding);\r\n\r\n if (Graph.TYPE_BAR.equals(mData.getType())) {\r\n mRenderer.setBarSpacing(0.5);\r\n }\r\n\r\n // User-configurable options\r\n mRenderer.setXTitle(mData.getConfiguration(\"x-title\", \"\"));\r\n mRenderer.setYTitle(mData.getConfiguration(\"y-title\", \"\"));\r\n mRenderer.setYTitle(mData.getConfiguration(\"secondary-y-title\", \"\"), 1);\r\n\r\n if (Graph.TYPE_BAR.equals(mData.getType())) {\r\n XYMultipleSeriesRenderer.Orientation orientation = getOrientation();\r\n mRenderer.setOrientation(orientation);\r\n if (orientation.equals(XYMultipleSeriesRenderer.Orientation.VERTICAL)) {\r\n mRenderer.setXLabelsAlign(Align.LEFT);\r\n mRenderer.setXLabelsPadding(0);\r\n }\r\n }\r\n\r\n if (mData.getConfiguration(\"x-min\") != null) {\r\n mRenderer.setXAxisMin(parseXValue(mData.getConfiguration(\"x-min\"), \"x-min\"));\r\n }\r\n if (mData.getConfiguration(\"y-min\") != null) {\r\n mRenderer.setYAxisMin(parseYValue(mData.getConfiguration(\"y-min\"), \"y-min\"));\r\n }\r\n if (mData.getConfiguration(\"secondary-y-min\") != null) {\r\n mRenderer.setYAxisMin(parseYValue(mData.getConfiguration(\"secondary-y-min\"), \"secondary-y-min\"), 1);\r\n }\r\n\r\n if (mData.getConfiguration(\"x-max\") != null) {\r\n mRenderer.setXAxisMax(parseXValue(mData.getConfiguration(\"x-max\"), \"x-max\"));\r\n }\r\n if (mData.getConfiguration(\"y-max\") != null) {\r\n mRenderer.setYAxisMax(parseYValue(mData.getConfiguration(\"y-max\"), \"y-max\"));\r\n }\r\n if (mData.getConfiguration(\"secondary-y-max\") != null) {\r\n mRenderer.setYAxisMax(parseYValue(mData.getConfiguration(\"secondary-y-max\"), \"secondary-y-max\"), 1);\r\n }\r\n\r\n boolean showGrid = Boolean.valueOf(mData.getConfiguration(\"show-grid\", \"true\")).equals(Boolean.TRUE);\r\n mRenderer.setShowGridX(showGrid);\r\n mRenderer.setShowGridY(showGrid);\r\n mRenderer.setShowCustomTextGridX(showGrid);\r\n mRenderer.setShowCustomTextGridY(showGrid);\r\n\r\n String showAxes = mData.getConfiguration(\"show-axes\", \"true\");\r\n if (Boolean.valueOf(showAxes).equals(Boolean.FALSE)) {\r\n mRenderer.setShowAxes(false);\r\n }\r\n\r\n // Legend\r\n boolean showLegend = Boolean.valueOf(mData.getConfiguration(\"show-legend\", \"false\"));\r\n mRenderer.setShowLegend(showLegend);\r\n mRenderer.setFitLegend(showLegend);\r\n mRenderer.setLegendTextSize(mTextSize);\r\n\r\n // Labels\r\n boolean hasX = configureLabels(\"x-labels\");\r\n boolean hasY = configureLabels(\"y-labels\");\r\n configureLabels(\"secondary-y-labels\");\r\n boolean showLabels = hasX || hasY;\r\n mRenderer.setShowLabels(showLabels);\r\n // Tick marks are sometimes ugly, so let's be minimalist and always leave the off\r\n mRenderer.setShowTickMarks(false);\r\n }",
"public ColorChooserPanel(ActionListener l) {\n lastRow = -1;\n \n JButton okButton = new JButton( Messages.message(\"ok\") );\n JButton cancelButton = new JButton( Messages.message(\"cancel\") );\n \n setLayout(new HIGLayout(new int[] {220, 10, 220}, new int[] {350, 10, 0}));\n \n add(colorChooser, higConst.rcwh(1, 1, 3, 1));\n add(okButton, higConst.rc(3, 1));\n add(cancelButton, higConst.rc(3, 3));\n \n okButton.setActionCommand(OK);\n cancelButton.setActionCommand(CANCEL);\n \n okButton.addActionListener(l);\n cancelButton.addActionListener(l);\n \n setOpaque(true);\n setSize(getPreferredSize());\n }",
"public static void applyUIColors(Color c) {\n \n \n Color cbr = ColorUtil.slightlyBrighter(c);\n Color cdk = ColorUtil.slightlyDarker(c);\n Color cdkdk = ColorUtil.slightlyDarker(cdk);\n \n UIManager.put(\"TabbedPane.contentAreaColor\", c);\n UIManager.put(\"TabbedPane.selected\", c);\n UIManager.put(\"TabbedPane.selectedBackground\", c);\n UIManager.put(\"TabbedPane.unselectedBackground\", cdk);\n\n UIManager.put(\"TabbedPane.tabAreaBackground\", c);\n UIManager.put(\"TabbedPane.selectHighlight\", cbr);\n UIManager.put(\"TabbedPane.tabsOpaque\", new Boolean(false));\n UIManager.put(\"TabbedPane.borderHightlightColor\", cdk);\n\n UIManager.put(\"TabbedPane.light\", cbr);\n UIManager.put(\"TabbedPane.highlight\", cbr);\n UIManager.put(\"TabbedPane.shadow\", cdk);\n UIManager.put(\"TabbedPane.darkShadow\", cdkdk);\n UIManager.put(\"TabbedPane.focus\", c);\n \n\n }",
"public void setColorTable(GridPalette colorTable) {\r\n\t\tthis.colorTable = colorTable;\r\n\t}",
"private void createLegend()\n\t{\n\t\txml = new XMLOut(rfoDir + legendName, \"reprap-fab-at-home-build version=\\\"0.1\\\"\");\n\t\tfor(int i = 0; i < astl.size(); i++)\n\t\t{\n\t\t\txml.push(\"object name=\\\"object-\" + i + \"\\\"\");\n\t\t\t xml.push(\"files\");\n\t\t\t STLObject stlo = astl.get(i);\n\t\t\t for(int subObj = 0; subObj < stlo.size(); subObj++)\n\t\t\t {\n\t\t\t\t xml.push(\"file location=\\\"\" + stlName(stlo.getUnique(subObj)) + \"\\\" filetype=\\\"application/sla\\\" material=\\\"\" + \n\t\t\t\t\t\t stlo.attributes(subObj).getMaterial() + \"\\\"\");\n\t\t\t\t xml.pop();\n\t\t\t }\n\t\t\t xml.pop();\n\t\t\t writeTransform(stlo.trans());\n\t\t\txml.pop();\n\t\t}\n\t\txml.close();\n\t}",
"private void _updateField(Color c) {\n if (_isBackgroundColor) {\n _colorField.setBackground(c);\n }\n else {\n _colorField.setForeground(c);\n }\n _colorField.setText(getLabelText() + \" (\"+_option.format(c)+\")\");\n }",
"public ColoredTableCellRenderer(HGTableColorModel scheme)\r\n {\r\n super();\r\n setColorScheme(scheme);\r\n }",
"static void patchTables() throws NoSuchFieldException, IllegalAccessException {\n if (MTConfig.getInstance().isMaterialTheme()) {\n StaticPatcher.setFinalStatic(UIUtil.class, \"DECORATED_ROW_BG_COLOR\", UIManager.get(\"Table.stripeColor\"));\n StaticPatcher.setFinalStatic(UIUtil.class, \"UNFOCUSED_SELECTION_COLOR\", UIManager.get(\"Table.stripeColor\"));\n }\n }",
"public LayersLegendPanel(VisualizationData vd) {\n\t\tsuper();\n\t\t\n\t\tthis.vd = vd;\n\n\t\tthis.pvc = vd.getPVisualizationCanvas();\n\n\t\tthis.setBorder(BorderFactory.createTitledBorder(\"Layers\"));\n\n\t\tthis.setMinimumSize(new Dimension(112, 101));\n\t\tthis.setPreferredSize(new Dimension(112, 101));\n\t\tthis.setMaximumSize(new Dimension(112, 101));\n\n\t\tthis.setLayout(new GridBagLayout());\n\t\tGridBagConstraints gbConstraints = new GridBagConstraints();\n\n\t\t// creating and setting the JCheckBox and label for the edges layer\n\t\tedgesCheckBox = new JCheckBox();\n\t\tedgesCheckBox.addItemListener(this);\n\t\tgbConstraints.gridy = 0;\n\t\tgbConstraints.gridx = 0;\n\t\tthis.add(edgesCheckBox, gbConstraints);\n\n\t\tJLabel edgesLayerCheckBoxLabel = new JLabel(\"Edges\");\n\t\tedgesLayerCheckBoxLabel.setHorizontalAlignment(JLabel.LEFT);\n\t\tgbConstraints.gridx = 1;\n\t\tthis.add(edgesLayerCheckBoxLabel, gbConstraints);\n\n\t\t// creating and setting the JCheckBox and label for the events layer\n\t\teventsCheckBox = new JCheckBox();\n\t\teventsCheckBox.addItemListener(this);\n\t\tgbConstraints.gridy = 1;\n\t\tgbConstraints.gridx = 0;\n\t\tthis.add(eventsCheckBox, gbConstraints);\n\n\t\tJLabel eventsLayerCheckBoxLabel = new JLabel(\"Events\");\n\t\teventsLayerCheckBoxLabel.setHorizontalAlignment(JLabel.LEFT);\n\t\tgbConstraints.gridx = 1;\n\t\tthis.add(eventsLayerCheckBoxLabel, gbConstraints);\n\n\t\t// creating and setting the JCheckBox and label for the labels layer\n\t\tlabelsCheckBox = new JCheckBox();\n\t\tlabelsCheckBox.addItemListener(this);\n\t\tgbConstraints.gridy = 2;\n\t\tgbConstraints.gridx = 0;\n\t\tthis.add(labelsCheckBox, gbConstraints);\n\n\t\tJLabel labelsLayerCheckBoxLabel = new JLabel(\"Labels\");\n\t\tlabelsLayerCheckBoxLabel.setHorizontalAlignment(JLabel.LEFT);\n\t\tgbConstraints.gridx = 1;\n\t\tthis.add(labelsLayerCheckBoxLabel, gbConstraints);\n\t\t\n\t\tedgesCheckBox.setSelected(true);\n\t\teventsCheckBox.setSelected(true);\n\t\tlabelsCheckBox.setSelected(true);\n\t}",
"private void initComponents() {\r\n\r\n jLabel1 = new javax.swing.JLabel();\r\n txtPageSize = new JTextFieldPallete();\r\n btnRefresh = new javax.swing.JButton();\r\n btnMoreRecords = new javax.swing.JButton();\r\n dlgLookup = new javax.swing.JDialog();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n tblRecords = new JTableReadOnly(35);\r\n jPanel1 = new javax.swing.JPanel();\r\n btnSelectRecord = new javax.swing.JButton();\r\n lblStatus = new javax.swing.JLabel();\r\n pnlCriteria = new javax.swing.JPanel();\r\n btnLookup = new component.JButtonPallete();\r\n\r\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(common2.Common2App.class).getContext().getResourceMap(LookupTable.class);\r\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\r\n\r\n txtPageSize.setText(resourceMap.getString(\"txtPageSize.text\")); // NOI18N\r\n txtPageSize.setPreferredSize(new java.awt.Dimension(40, 20));\r\n txtPageSize.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n txtPageSizeActionPerformed(evt);\r\n }\r\n });\r\n txtPageSize.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusLost(java.awt.event.FocusEvent evt) {\r\n txtPageSizeFocusLost(evt);\r\n }\r\n });\r\n\r\n btnRefresh.setText(resourceMap.getString(\"btnRefresh.text\")); // NOI18N\r\n btnRefresh.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnRefreshActionPerformed(evt);\r\n }\r\n });\r\n\r\n btnMoreRecords.setText(resourceMap.getString(\"btnMoreRecords.text\")); // NOI18N\r\n btnMoreRecords.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnMoreRecordsActionPerformed(evt);\r\n }\r\n });\r\n\r\n dlgLookup.setTitle(\"Lookup\"); // NOI18N\r\n try {\r\n dlgLookup.setAlwaysOnTop(true);\r\n }\r\n catch (Exception e) {\r\n }\r\n dlgLookup.setMinimumSize(new java.awt.Dimension(450, 250));\r\n dlgLookup.setModal(true);\r\n\r\n tblRecords.setAutoCreateRowSorter(true);\r\n tblRecords.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n tblRecordsKeyTyped(evt);\r\n }\r\n });\r\n jScrollPane1.setViewportView(tblRecords);\r\n\r\n btnSelectRecord.setText(\"Use Selected Record\"); // NOI18N\r\n btnSelectRecord.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnSelectRecordActionPerformed(evt);\r\n }\r\n });\r\n jPanel1.add(btnSelectRecord);\r\n\r\n lblStatus.setText(resourceMap.getString(\"lblStatus.text\")); // NOI18N\r\n jPanel1.add(lblStatus);\r\n\r\n pnlCriteria.setLayout(new java.awt.GridBagLayout());\r\n\r\n javax.swing.GroupLayout dlgLookupLayout = new javax.swing.GroupLayout(dlgLookup.getContentPane());\r\n dlgLookup.getContentPane().setLayout(dlgLookupLayout);\r\n dlgLookupLayout.setHorizontalGroup(\r\n dlgLookupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dlgLookupLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(dlgLookupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(pnlCriteria, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 461, Short.MAX_VALUE))\r\n .addContainerGap())\r\n );\r\n dlgLookupLayout.setVerticalGroup(\r\n dlgLookupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, dlgLookupLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(pnlCriteria, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 159, Short.MAX_VALUE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n\r\n setLayout(new java.awt.GridLayout(1, 0));\r\n\r\n btnLookup.setText(\"...\"); // NOI18N\r\n btnLookup.setIconTextGap(0);\r\n btnLookup.setMargin(new java.awt.Insets(0, 0, 0, 0));\r\n btnLookup.setName(\"btnLookup\"); // NOI18N\r\n btnLookup.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n btnLookupActionPerformed(evt);\r\n }\r\n });\r\n add(btnLookup);\r\n }",
"private void initializeSetColorButton() {\n\n setColorTextLabel = new JLabel(\"Set New Color\");\n setColorTextLabel.setBounds(250, 250,150, 25);\n setColorTextLabel.setFont(new Font(\"Arial\", Font.PLAIN, 20));\n this.add(setColorTextLabel);\n\n greenButton = new JButton();\n greenButton.setBackground(java.awt.Color.green);\n greenButton.setBounds(400, 250, 60, 25);\n this.add(greenButton);\n\n redButton = new JButton();\n redButton.setBackground(java.awt.Color.red);\n redButton.setBounds(460, 250, 60, 25);\n this.add(redButton);\n\n yellowButton = new JButton();\n yellowButton.setBackground(java.awt.Color.yellow);\n yellowButton.setBounds(520, 250, 60, 25);\n this.add(yellowButton);\n\n blueButton = new JButton();\n blueButton.setBackground(java.awt.Color.blue);\n blueButton.setBounds(580, 250, 60, 25);\n this.add(blueButton);\n\n setColorTextLabel.setVisible(false);\n greenButton.setVisible(false);\n blueButton.setVisible(false);\n redButton.setVisible(false);\n yellowButton.setVisible(false);\n }",
"public ColorCellRenderer(final boolean displayRGB) {\r\n\t\tthis.displayRGB = displayRGB;\r\n\t\tthis.unselectedBorder = null;\r\n\t\tthis.selectedBorder = null;\r\n\t\t\r\n\t\tsetOpaque(true);\r\n\t}",
"@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}",
"abstract public void colorize(TCell c);",
"@Test\n public void test25() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n SystemColor systemColor0 = SystemColor.menuText;\n categoryPlot0.setRangeCrosshairPaint(systemColor0);\n short[][] shortArray0 = new short[2][0];\n short[] shortArray1 = new short[5];\n shortArray1[0] = (short)44;\n shortArray1[1] = (short)0;\n shortArray1[2] = (short)389;\n shortArray1[3] = (short)0;\n shortArray1[4] = (short)0;\n short[] shortArray2 = new short[4];\n shortArray2[0] = (short)0;\n shortArray2[1] = (short)0;\n shortArray2[2] = (short)0;\n shortArray2[3] = (short)0;\n shortArray0[1] = shortArray2;\n ShortLookupTable shortLookupTable0 = new ShortLookupTable((int) (short)0, shortArray2);\n JFreeChart jFreeChart0 = new JFreeChart(\"\", (Plot) categoryPlot0);\n RenderingHints renderingHints0 = jFreeChart0.getRenderingHints();\n LookupOp lookupOp0 = new LookupOp((LookupTable) shortLookupTable0, renderingHints0);\n ICC_Profile[] iCC_ProfileArray0 = new ICC_Profile[2];\n // Undeclared exception!\n try { \n ICC_Profile.getInstance(\"\");\n } catch(IllegalArgumentException e) {\n //\n // Invalid ICC Profile Data\n //\n assertThrownBy(\"java.awt.color.ICC_Profile\", e);\n }\n }",
"public Object getLegendColumns() {\r\n if (legendColumns != null) {\r\n return legendColumns;\r\n }\r\n ValueBinding vb = getValueBinding(\"legendColumns\");\r\n return vb != null ? vb.getValue(getFacesContext()) : \"0\";\r\n }",
"@Override\n\tpublic boolean setGraphData(ArrayList<HashMap<String, Object>> _dataAC,\n\t\t\tString _title, String _seriesXField, String[] _yFieldName,\n\t\t\tString[] _yFieldDisplayName, boolean _crossTab, String _form,\n\t\t\tboolean _gridLIne, int _gridLineWeight, String _gridLIneDirection,\n\t\t\tint _gridLIneColor, String _legendDirection,\n\t\t\tString _legendLabelPlacement, int _legendMarkHeight,\n\t\t\tint _legendMarkWeight, String _legendLocation,\n\t\t\tString _dataLabelPosition, boolean _DubplicateAllow,\n\t\t\tint[] _yFieldFillColor) {\n\t\treturn false;\n\t}",
"public static void setLookAndFeel(){\n\t\t\n\t\tUIManager.put(\"nimbusBase\", new Color(0,68,102));\n\t\tUIManager.put(\"nimbusBlueGrey\", new Color(60,145,144));\n\t\tUIManager.put(\"control\", new Color(43,82,102));\n\t\tUIManager.put(\"text\", new Color(255,255,255));\n\t\tUIManager.put(\"Table.alternateRowColor\", new Color(0,68,102));\n\t\tUIManager.put(\"TextField.font\", new Font(\"Font\", Font.BOLD, 12));\n\t\tUIManager.put(\"TextField.textForeground\", new Color(0,0,0));\n\t\tUIManager.put(\"PasswordField.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"TextArea.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"FormattedTextField.foreground\", new Color(0,0,0));\n\t\t\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\".background\", new Color(0,68,102));\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\"[Selected].background\", new Color(0,0,0));\n\t\t\n\t\t//TODO nie chca dzialac tooltipy na mapie\n\t\tBorder border = BorderFactory.createLineBorder(new Color(0,0,0)); //#4c4f53\n\t\tUIManager.put(\"ToolTip.border\", border);\n\n\t\t//UIManager.put(\"ToolTip.foregroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.backgroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.background\", new Color(0,0,0)); //#fff7c8\n\t\t//UIManager.put(\"ToolTip.foreground\", new Color(0,0,0));\n\t\t Painter<Component> p = new Painter<Component>() {\n\t\t public void paint(Graphics2D g, Component c, int width, int height) {\n\t\t g.setColor(new Color(20,36,122));\n\t\t //and so forth\n\t\t }\n\t\t };\n\t\t \n\t\tUIManager.put(\"ToolTip[Enabled].backgroundPainter\", p);\n\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new Color(255, 255, 255)); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new Color(255, 255, 255));\n//\t\t\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\",new ColorUIResource(new Color(255, 255, 255)));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new ColorUIResource((new Color(255, 255, 255))));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new ColorUIResource(new Color(255, 255, 255))); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new ColorUIResource(new Color(255, 255, 255)));\n\t\t\n\t \n\t\ttry {\n\t\t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n\t\t if (\"Nimbus\".equals(info.getName())) {\n\t\t UIManager.setLookAndFeel(info.getClassName());\n\t\t break;\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t // If Nimbus is not available, you can set the GUI to another look and feel.\n\t\t}\n\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table:\\\"Table.cellRenderer\\\".background\", new ColorUIResource(new Color(74,144,178)));\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table.background\", new ColorUIResource(new Color(74,144,178)));\n\t\t\n\n\t}",
"@Test\n public void test16() throws Throwable {\n DefaultCategoryDataset defaultCategoryDataset0 = new DefaultCategoryDataset();\n CategoryAxis categoryAxis0 = new CategoryAxis();\n NumberAxis3D numberAxis3D0 = new NumberAxis3D();\n BoxAndWhiskerRenderer boxAndWhiskerRenderer0 = new BoxAndWhiskerRenderer();\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultCategoryDataset0, categoryAxis0, (ValueAxis) numberAxis3D0, (CategoryItemRenderer) boxAndWhiskerRenderer0);\n AxisLocation axisLocation0 = categoryPlot0.getDomainAxisLocation((-619));\n categoryPlot0.setRangeAxisLocation(axisLocation0, false);\n CenterArrangement centerArrangement0 = new CenterArrangement();\n HorizontalAlignment horizontalAlignment0 = HorizontalAlignment.RIGHT;\n VerticalAlignment verticalAlignment0 = VerticalAlignment.BOTTOM;\n FlowArrangement flowArrangement0 = new FlowArrangement(horizontalAlignment0, verticalAlignment0, (-3146.85728861904), (-3146.85728861904));\n LegendTitle legendTitle0 = new LegendTitle((LegendItemSource) categoryPlot0, (Arrangement) centerArrangement0, (Arrangement) flowArrangement0);\n RectangleInsets rectangleInsets0 = legendTitle0.getPadding();\n categoryPlot0.setAxisOffset(rectangleInsets0);\n AxisSpace axisSpace0 = categoryPlot0.getFixedDomainAxisSpace();\n categoryPlot0.drawDomainGridlines((Graphics2D) null, (Rectangle2D) null);\n }",
"public Color getLblColor() {\n return lblColor;\n }",
"public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }",
"public JPanel init(){\n // set Comboboxes\n for(int i=0; i<10; i++){\n P1color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P2color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P3color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P4color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P5color.addItem(colorArray[i]);\n }\n for(int i=0; i<10; i++){\n P6color.addItem(colorArray[i]);\n }\n\n P1color.setSelectedIndex(0);\n P2color.setSelectedIndex(1);\n P3color.setSelectedIndex(2);\n P4color.setSelectedIndex(3);\n P5color.setSelectedIndex(4);\n P6color.setSelectedIndex(5);\n\n // set labels based on the amount of players and ai's\n if (playerAmount>= 1){\n P1label.setText(\"PLAYER 1\");\n if (aiAmount >= 1) P2label.setText(\"AI 1\");\n if (aiAmount >= 2) P3label.setText(\"AI 2\");\n if (aiAmount >= 3) P4label.setText(\"AI 3\");\n if (aiAmount >= 4) P5label.setText(\"AI 4\");\n if (aiAmount == 5) P6label.setText(\"AI 5\");\n }\n if (playerAmount >= 2){\n P2label.setText(\"PLAYER 2\");\n if (aiAmount >= 1) P3label.setText(\"AI 1\");\n if (aiAmount >= 2) P4label.setText(\"AI 2\");\n if (aiAmount >= 3) P5label.setText(\"AI 3\");\n if (aiAmount == 4) P6label.setText(\"AI 4\");\n }\n if (playerAmount >= 3){\n P3label.setText(\"PLAYER 3\");\n if (aiAmount >= 1) P4label.setText(\"AI 1\");\n if (aiAmount >= 2) P5label.setText(\"AI 2\");\n if (aiAmount == 3) P6label.setText(\"AI 3\");\n }\n if (playerAmount >= 4){\n P4label.setText(\"PLAYER 4\");\n if (aiAmount >= 1) P5label.setText(\"AI 1\");\n if (aiAmount == 2) P6label.setText(\"AI 2\");\n }\n if (playerAmount >= 5){\n P5label.setText(\"PLAYER 5\");\n if (aiAmount == 1) P6label.setText(\"AI 1\");\n }\n if (playerAmount == 6){\n P6label.setText(\"PLAYER 6\");\n }\n\n // Disabele all unused player or ai widgets\n if (playerAmount + aiAmount == 2){\n P3color.setVisible(false);\n P3label.setVisible(false);\n P3text.setVisible(false);\n\n P4color.setVisible(false);\n P4label.setVisible(false);\n P4text.setVisible(false);\n\n P5color.setVisible(false);\n P5label.setVisible(false);\n P5text.setVisible(false);\n\n P6color.setVisible(false);\n P6label.setVisible(false);\n P6text.setVisible(false);\n }\n else if (playerAmount + aiAmount == 3){\n P4color.setVisible(false);\n P4label.setVisible(false);\n P4text.setVisible(false);\n\n P5color.setVisible(false);\n P5label.setVisible(false);\n P5text.setVisible(false);\n\n P6color.setVisible(false);\n P6label.setVisible(false);\n P6text.setVisible(false);\n }\n else if (playerAmount + aiAmount == 4){\n P5color.setVisible(false);\n P5label.setVisible(false);\n P5text.setVisible(false);\n\n P6color.setVisible(false);\n P6label.setVisible(false);\n P6text.setVisible(false);\n }\n else if (playerAmount + aiAmount == 5){\n P6color.setVisible(false);\n P6label.setVisible(false);\n P6text.setVisible(false);\n }\n\n // initialize buttons\n startGameButton.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n DebugLabel.setText(\"\");\n if (createPlayers()){\n new City();\n Main.getJFrame().remove(Main.getBackgroundPanel());\n JLayeredPane layeredPane = Main.getJFrame().getLayeredPane();\n layeredPane.setLayout(null);\n layeredPane.setSize(1920,1080);\n layeredPane.add(new GameUI().init(),-300);\n Main.getJFrame().revalidate();\n Main.getJFrame().repaint();\n Main.ExecuteGame();\n }\n }\n });\n BACKButton.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n DebugLabel.setText(\"\");\n Main.getBackgroundPanel().removeAll();\n Main.getBackgroundPanel().add((new GameOptionsUI().init()));\n Main.getJFrame().revalidate();\n Main.getJFrame().repaint();\n }\n });\n return MainPanel;\n }",
"private void setupAllViewsToSetTextColor(){\n allViewsToSetTextColor = new ArrayList<>();\n allViewsToSetTextColor.add(labelDegrees);\n allViewsToSetTextColor.add(entryDegrees);\n allViewsToSetTextColor.add(labelRadians);\n allViewsToSetTextColor.add(entryRadians);\n allViewsToSetTextColor.add(labelSine);\n allViewsToSetTextColor.add(sineRegularData);\n allViewsToSetTextColor.add(labelCosine);\n allViewsToSetTextColor.add(cosineRegularData);\n allViewsToSetTextColor.add(labelTangent);\n allViewsToSetTextColor.add(tangentRegularData);\n allViewsToSetTextColor.add(radianTextNumerator);\n allViewsToSetTextColor.add(radianTextDenominator);\n allViewsToSetTextColor.add(sineTextNumerator);\n allViewsToSetTextColor.add(sineTextDenominator);\n allViewsToSetTextColor.add(cosineTextNumerator);\n allViewsToSetTextColor.add(cosineTextDenominator);\n allViewsToSetTextColor.add(tangentTextNumerator);\n allViewsToSetTextColor.add(tangentTextDenominator);\n }",
"private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}",
"public CGlassEclipseColorSchemeExtension (CDockColorMap map) {\r\n if (map != null) {\r\n colMap = map;\r\n }\r\n updateUI();\r\n }",
"@Override\n\tpublic boolean setGraphData(ArrayList<HashMap<String, Object>> _dataAC,\n\t\t\tString _title, String _seriesXField, String[] _yFieldName,\n\t\t\tString[] _yFieldDisplayName, boolean _crossTab, String _form,\n\t\t\tboolean _gridLIne, int _gridLineWeight, String _gridLIneDirection,\n\t\t\tint _gridLIneColor, String _legendDirection,\n\t\t\tString _legendLabelPlacement, int _legendMarkHeight,\n\t\t\tint _legendMarkWeight, String _legendLocation,\n\t\t\tString _dataLabelPosition, boolean _DubplicateAllow,\n\t\t\tint[] _yFieldFillColor, String _colorFieldName) {\n\t\treturn false;\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n titleBar2 = new keeptoo.KGradientPanel();\n close2 = new javax.swing.JLabel();\n maxi2 = new javax.swing.JLabel();\n mini2 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n kGradientPanel3 = new keeptoo.KGradientPanel();\n kGradientPanel5 = new keeptoo.KGradientPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n backBtn2 = new javax.swing.JButton();\n rubCrsCombo = new javax.swing.JComboBox<>();\n jScrollPane1 = new javax.swing.JScrollPane();\n rubTable = new javax.swing.JTable();\n rubNameBox = new javax.swing.JTextField();\n submitBtn = new javax.swing.JButton();\n rubNameErr = new javax.swing.JLabel();\n jLabel30 = new javax.swing.JLabel();\n rubLevelNameBox = new javax.swing.JTextField();\n rubLevelWeightBox = new javax.swing.JTextField();\n rubLevelOrderBox = new javax.swing.JTextField();\n levelLabel = new javax.swing.JLabel();\n submitBtn1 = new javax.swing.JButton();\n rubCloCombo = new javax.swing.JComboBox<>();\n rubLevelErr = new javax.swing.JLabel();\n\n titleBar2.setkEndColor(new java.awt.Color(108, 117, 125));\n titleBar2.setkStartColor(new java.awt.Color(33, 37, 41));\n titleBar2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n titleBar2MouseDragged(evt);\n }\n });\n titleBar2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n titleBar2MousePressed(evt);\n }\n });\n\n close2.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n close2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rbe/img/icons8_close_window_40px_1.png\"))); // NOI18N\n close2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n close2MousePressed(evt);\n }\n });\n\n maxi2.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n maxi2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rbe/img/icons8_maximize_window_40px.png\"))); // NOI18N\n maxi2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n maxi2MousePressed(evt);\n }\n });\n\n mini2.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n mini2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rbe/img/icons8_minimize_window_40px.png\"))); // NOI18N\n mini2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n mini2MousePressed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Rockwell\", 1, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Rubrics\");\n\n javax.swing.GroupLayout titleBar2Layout = new javax.swing.GroupLayout(titleBar2);\n titleBar2.setLayout(titleBar2Layout);\n titleBar2Layout.setHorizontalGroup(\n titleBar2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(titleBar2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(mini2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(maxi2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(close2)\n .addGap(10, 10, 10))\n );\n titleBar2Layout.setVerticalGroup(\n titleBar2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(titleBar2Layout.createSequentialGroup()\n .addGroup(titleBar2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(titleBar2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(close2)\n .addComponent(maxi2)\n .addComponent(mini2)))\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n kGradientPanel3.setBackground(new java.awt.Color(218, 89, 34));\n kGradientPanel3.setkEndColor(new java.awt.Color(29, 9, 4));\n kGradientPanel3.setkStartColor(new java.awt.Color(133, 1, 0));\n kGradientPanel3.setPreferredSize(new java.awt.Dimension(868, 721));\n kGradientPanel3.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n kGradientPanel3MouseDragged(evt);\n }\n });\n kGradientPanel3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n kGradientPanel3MousePressed(evt);\n }\n });\n\n kGradientPanel5.setkEndColor(new java.awt.Color(176, 42, 55));\n kGradientPanel5.setkStartColor(new java.awt.Color(253, 126, 20));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rbe/img/icons8_brick_100px.png\"))); // NOI18N\n\n jLabel28.setFont(new java.awt.Font(\"Rockwell\", 1, 18)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(255, 255, 255));\n jLabel28.setText(\"Rubric Name\");\n\n jLabel29.setFont(new java.awt.Font(\"Rockwell\", 1, 18)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(255, 255, 255));\n jLabel29.setText(\"Course & CLO\");\n\n backBtn2.setFont(new java.awt.Font(\"Rockwell\", 1, 18)); // NOI18N\n backBtn2.setText(\"Back\");\n backBtn2.setBorderPainted(false);\n backBtn2.setFocusPainted(false);\n backBtn2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backBtn2ActionPerformed(evt);\n }\n });\n\n rubCrsCombo.setFont(new java.awt.Font(\"Palatino Linotype\", 1, 16)); // NOI18N\n rubCrsCombo.setToolTipText(\"course\");\n rubCrsCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rubCrsComboActionPerformed(evt);\n }\n });\n\n rubTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Sr.\", \"Clo\", \"Rubric Name\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n rubTable.setToolTipText(\"\");\n rubTable.getTableHeader().setReorderingAllowed(false);\n jScrollPane1.setViewportView(rubTable);\n\n rubNameBox.setFont(new java.awt.Font(\"Palatino Linotype\", 1, 16)); // NOI18N\n rubNameBox.setToolTipText(\"Rubric Name\");\n\n submitBtn.setFont(new java.awt.Font(\"Rockwell\", 1, 18)); // NOI18N\n submitBtn.setText(\"Add\");\n submitBtn.setBorderPainted(false);\n submitBtn.setFocusPainted(false);\n submitBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n submitBtnActionPerformed(evt);\n }\n });\n\n rubNameErr.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rbe/img/icons8_cancel_40px.png\"))); // NOI18N\n\n jLabel30.setFont(new java.awt.Font(\"Rockwell\", 1, 18)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(255, 255, 255));\n jLabel30.setText(\"Rubric Level\");\n\n rubLevelNameBox.setFont(new java.awt.Font(\"Palatino Linotype\", 1, 16)); // NOI18N\n rubLevelNameBox.setToolTipText(\"Level Name\");\n\n rubLevelWeightBox.setFont(new java.awt.Font(\"Palatino Linotype\", 1, 16)); // NOI18N\n rubLevelWeightBox.setToolTipText(\"Weightage\");\n\n rubLevelOrderBox.setFont(new java.awt.Font(\"Palatino Linotype\", 1, 16)); // NOI18N\n rubLevelOrderBox.setToolTipText(\"Order of Level\");\n rubLevelOrderBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rubLevelOrderBoxActionPerformed(evt);\n }\n });\n\n levelLabel.setBackground(getBackground());\n levelLabel.setFont(new java.awt.Font(\"Rockwell\", 0, 12)); // NOI18N\n levelLabel.setForeground(new java.awt.Color(255, 255, 255));\n levelLabel.setText(\"*\");\n\n submitBtn1.setFont(new java.awt.Font(\"Rockwell\", 1, 18)); // NOI18N\n submitBtn1.setText(\"Add Level\");\n submitBtn1.setBorderPainted(false);\n submitBtn1.setFocusPainted(false);\n submitBtn1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n submitBtn1ActionPerformed(evt);\n }\n });\n\n rubCloCombo.setFont(new java.awt.Font(\"Palatino Linotype\", 1, 16)); // NOI18N\n rubCloCombo.setToolTipText(\"CLO\");\n rubCloCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rubCloComboActionPerformed(evt);\n }\n });\n\n rubLevelErr.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rbe/img/icons8_cancel_40px.png\"))); // NOI18N\n\n javax.swing.GroupLayout kGradientPanel5Layout = new javax.swing.GroupLayout(kGradientPanel5);\n kGradientPanel5.setLayout(kGradientPanel5Layout);\n kGradientPanel5Layout.setHorizontalGroup(\n kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jLabel1)\n .addGap(106, 106, 106)\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addComponent(levelLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(355, 355, 355))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 504, Short.MAX_VALUE))\n .addGap(112, 112, 112))\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(backBtn2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(168, 168, 168)\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rubNameErr, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rubLevelErr, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel29)\n .addComponent(jLabel28)\n .addComponent(jLabel30))\n .addGap(24, 24, 24)\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rubLevelNameBox)\n .addComponent(rubCrsCombo, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rubNameBox, javax.swing.GroupLayout.Alignment.LEADING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, kGradientPanel5Layout.createSequentialGroup()\n .addComponent(rubCloCombo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(submitBtn))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, kGradientPanel5Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(submitBtn1))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, kGradientPanel5Layout.createSequentialGroup()\n .addComponent(rubLevelWeightBox)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rubLevelOrderBox, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(113, 113, 113))\n );\n kGradientPanel5Layout.setVerticalGroup(\n kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(67, 67, 67)\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rubCrsCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(submitBtn)\n .addComponent(rubCloCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, kGradientPanel5Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(submitBtn1))))\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rubNameErr, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rubNameBox, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(kGradientPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rubLevelNameBox, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rubLevelWeightBox, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rubLevelOrderBox, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(kGradientPanel5Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(rubLevelErr, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(12, 12, 12)\n .addComponent(levelLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(12, 12, 12)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(backBtn2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout kGradientPanel3Layout = new javax.swing.GroupLayout(kGradientPanel3);\n kGradientPanel3.setLayout(kGradientPanel3Layout);\n kGradientPanel3Layout.setHorizontalGroup(\n kGradientPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel3Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(kGradientPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(31, 31, 31))\n );\n kGradientPanel3Layout.setVerticalGroup(\n kGradientPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(kGradientPanel3Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(kGradientPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(30, 30, 30))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(titleBar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(kGradientPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 893, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(titleBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(kGradientPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 591, Short.MAX_VALUE))\n );\n }",
"@Override\n\tpublic boolean setGraphData(ArrayList<HashMap<String, Object>> _dataAC,\n\t\t\tString _title, String _seriesXField, String[] _yFieldName,\n\t\t\tString[] _yFieldDisplayName, boolean _crossTab, String _form,\n\t\t\tboolean _gridLIne, int _gridLineWeight, String _gridLIneDirection,\n\t\t\tint _gridLIneColor, String _legendDirection,\n\t\t\tString _legendLabelPlacement, int _legendMarkHeight,\n\t\t\tint _legendMarkWeight, String _legendLocation,\n\t\t\tString _dataLabelPosition, boolean _DubplicateAllow,\n\t\t\tint[] _yFieldFillColor, float _rangeMax) {\n\t\treturn false;\n\t}",
"private void createGroupTargetInputs() {\n\n\t\tGridData gridData1 = new GridData();\n\t\tgridData1.grabExcessHorizontalSpace = false;\n\t\tgridData1.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData1.verticalAlignment = GridData.CENTER;\n\t\tgridData1.grabExcessVerticalSpace = false;\n\t\tgridData1.widthHint = GRID_DATA_1_WIDTH_HINT - 5;\n\n\t\tGridData gridData2 = new GridData();\n\t\tgridData2.grabExcessHorizontalSpace = false;\n\t\tgridData2.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData2.verticalAlignment = GridData.CENTER;\n\t\tgridData2.grabExcessVerticalSpace = false;\n\t\tgridData2.widthHint = GRID_DATA_2_WIDTH_HINT;\n\n\t\tGridData gridData3 = new GridData();\n\t\tgridData3.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData3.grabExcessHorizontalSpace = false;\n\t\tgridData3.verticalAlignment = GridData.CENTER;\n\t\tgridData3.widthHint = GRID_DATA_3_WIDTH_HINT;\n\n\t\tGridData gridData4 = new GridData();\n\t\tgridData4.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData4.grabExcessHorizontalSpace = false;\n\t\tgridData4.verticalAlignment = GridData.CENTER;\n\n\t\ttargetLabel = new CLabel(this, SWT.NONE);\n\t\ttargetLabel.setLayoutData(gridData1);\n\t\ttargetLabel.setText(Messages.ResultLayerComposite_target_label + \":\"); //$NON-NLS-1$\n\t\ttargetLabel.setToolTipText(Messages.ResultLayerComposite_target_label_tooltip);\n\n\t\tcomboTargetLayer = new CCombo(this, SWT.BORDER);\n\t\tcomboTargetLayer.setLayoutData(gridData2);\n\t\tcomboTargetLayer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tselectedTargetLayerActions(comboTargetLayer);\n\t\t\t}\n\n\t\t});\n\n\t\tcomboTargetLayer.addModifyListener(new ModifyListener() {\n\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\n\t\t\t\tmodifyTextActions();\n\t\t\t}\n\t\t});\n\n\t\tresultLegend = new CLabel(this, SWT.NONE);\n\t\tresultLegend.setText(\"\"); //$NON-NLS-1$\n\t\tresultLegend.setLayoutData(gridData4);\n\t\tresultLegend.setImage(this.imagesRegistry.get(DEMO_LEGEND));\n\n\t\tcomboGeometryList = new CCombo(this, SWT.BORDER);\n\t\tcomboGeometryList.setEditable(false);\n\t\tcomboGeometryList.setLayoutData(gridData3);\n\t\tcomboGeometryList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tselectedGeometryClassActions();\n\t\t\t}\n\n\t\t});\n\t\taddGeometryTypes();\n\t}",
"public ListaColores() {\n initComponents();\n buscaColor();\n\n }",
"public static void addColor(){ \r\n \r\n welcome.add(black);\r\n black.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n black.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(red);\r\n red.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n red.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //adding some buttons, formatting them, and aligning them\r\n \r\n welcome.add(yellow);\r\n yellow.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n yellow.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(green);\r\n green.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n green.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n }",
"@Override\n\tprotected boolean setGraphProperty(String _form, boolean _gridLIne,\n\t\t\tint _gridLineWeight, String _gridLIneDirection, int _gridLIneColor,\n\t\t\tString _legendDirection, String _legendLabelPlacement,\n\t\t\tint _legendMarkHeight, int _legendMarkWeight,\n\t\t\tString _legendLocation, String _dataLabelPosition,\n\t\t\tboolean _DubplicateAllow, int[] _yFieldFillColor) {\n\t\treturn false;\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabelName = new javax.swing.JLabel();\n jTextName = new javax.swing.JTextField();\n jLabelPlugin = new javax.swing.JLabel();\n jComboBoxPlugin = new javax.swing.JComboBox();\n jTextDomain2 = new javax.swing.JTextField();\n jComboBoxDirection = new javax.swing.JComboBox();\n jTextDomain1 = new javax.swing.JTextField();\n jLabelDomains = new javax.swing.JLabel();\n jLabelDescription = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaDescription = new javax.swing.JTextArea();\n jLabelPredefinedAttributes = new javax.swing.JLabel();\n jScrollPanePredefinedAttr = new javax.swing.JScrollPane();\n jTablePredefinedAttr = new javax.swing.JTable();\n jButtonEditPredefinedAttribute = new javax.swing.JButton();\n jLabelExtendedAttributes = new javax.swing.JLabel();\n jScrollPaneExtendedAttr = new javax.swing.JScrollPane();\n jTableExtendedAttr = new javax.swing.JTable();\n jButtonAddExtendedAttribute = new javax.swing.JButton();\n jButtonDeleteExtendedAttribute = new javax.swing.JButton();\n jButtonEditExtendedAttribute = new javax.swing.JButton();\n\n jLabelName.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Name_Colon\")); // NOI18N\n\n jLabelPlugin.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Plugin_Colon\")); // NOI18N\n\n jTextDomain2.setEditable(false);\n\n jComboBoxDirection.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"---->\", \"<----\", \"<--->\" }));\n jComboBoxDirection.setPreferredSize(new java.awt.Dimension(55, 22));\n jComboBoxDirection.setVerifyInputWhenFocusTarget(false);\n\n jTextDomain1.setEditable(false);\n\n jLabelDomains.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Domains_Colon\")); // NOI18N\n\n jLabelDescription.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Description\")); // NOI18N\n\n jTextAreaDescription.setColumns(20);\n jTextAreaDescription.setRows(5);\n jScrollPane1.setViewportView(jTextAreaDescription);\n\n jLabelPredefinedAttributes.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Predefined_Attributes\")); // NOI18N\n\n jTablePredefinedAttr.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPanePredefinedAttr.setViewportView(jTablePredefinedAttr);\n\n jButtonEditPredefinedAttribute.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Edit\")); // NOI18N\n jButtonEditPredefinedAttribute.setEnabled(false);\n jButtonEditPredefinedAttribute.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n onEditPredefinedAttribute(evt);\n }\n });\n\n jLabelExtendedAttributes.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Extended_Attributes\")); // NOI18N\n\n jTableExtendedAttr.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPaneExtendedAttr.setViewportView(jTableExtendedAttr);\n\n jButtonAddExtendedAttribute.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Add\")); // NOI18N\n jButtonAddExtendedAttribute.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n onAddExtendedAttribute(evt);\n }\n });\n\n jButtonDeleteExtendedAttribute.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Remove\")); // NOI18N\n jButtonDeleteExtendedAttribute.setEnabled(false);\n jButtonDeleteExtendedAttribute.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n onRemoveExtendedAttribute(evt);\n }\n });\n\n jButtonEditExtendedAttribute.setText(org.openide.util.NbBundle.getMessage(TabRelationshipDef.class, \"LBL_Edit\")); // NOI18N\n jButtonEditExtendedAttribute.setEnabled(false);\n jButtonEditExtendedAttribute.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n onEditExtendedAttribute(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(jLabelName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 170, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(20, 20, 20)\n .add(jLabelPlugin, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 80, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jComboBoxPlugin, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 170, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(layout.createSequentialGroup()\n .add(jLabelDomains, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextDomain1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 170, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(10, 10, 10)\n .add(jComboBoxDirection, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 80, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(10, 10, 10)\n .add(jTextDomain2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 170, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(layout.createSequentialGroup()\n .add(jLabelDescription, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 440, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jLabelPredefinedAttributes, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 180, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jScrollPanePredefinedAttr, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 540, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(jLabelExtendedAttributes, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 190, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(260, 260, 260)\n .add(jButtonEditPredefinedAttribute, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jScrollPaneExtendedAttr, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 540, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(270, 270, 270)\n .add(jButtonAddExtendedAttribute, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButtonDeleteExtendedAttribute, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jButtonEditExtendedAttribute, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabelName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabelPlugin, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jComboBoxPlugin, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(8, 8, 8)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabelDomains, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextDomain1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jComboBoxDirection, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextDomain2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(20, 20, 20)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabelDescription, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 92, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(12, 12, 12)\n .add(jLabelPredefinedAttributes, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(6, 6, 6)\n .add(jScrollPanePredefinedAttr, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 110, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(10, 10, 10)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(14, 14, 14)\n .add(jLabelExtendedAttributes, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(jButtonEditPredefinedAttribute))\n .add(6, 6, 6)\n .add(jScrollPaneExtendedAttr, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 190, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(10, 10, 10)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jButtonAddExtendedAttribute)\n .add(jButtonDeleteExtendedAttribute)\n .add(jButtonEditExtendedAttribute))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }",
"@Test\n public void test39() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.setRangeCrosshairVisible(false);\n combinedRangeCategoryPlot0.clearAnnotations();\n CombinedDomainXYPlot combinedDomainXYPlot0 = new CombinedDomainXYPlot((ValueAxis) null);\n LegendItemCollection legendItemCollection0 = combinedDomainXYPlot0.getFixedLegendItems();\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n LegendItemCollection legendItemCollection1 = statisticalBarRenderer0.getLegendItems();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n \n tabbedPane = new javax.swing.JTabbedPane();\n ChannelsTablePanel = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jPanel1 = new javax.swing.JPanel();\n displayModeCombo = new javax.swing.JComboBox();\n jLabel1 = new javax.swing.JLabel();\n summarySplitPane = new javax.swing.JSplitPane();\n summaryCommentsPane = new javax.swing.JPanel();\n summaryCommentsLabel = new javax.swing.JLabel();\n summaryCommentsScrollPane = new javax.swing.JScrollPane();\n summaryCommentsTextArea = new javax.swing.JTextArea();\n summaryMetadataPanel = new javax.swing.JPanel();\n summaryMetadataScrollPane = new javax.swing.JScrollPane();\n summaryMetadataTable = new javax.swing.JTable();\n imageSplitPanel = new javax.swing.JSplitPane();\n imageCommentsPanel = new javax.swing.JPanel();\n imageCommentsLabel = new javax.swing.JLabel();\n imageCommentsScrollPane = new javax.swing.JScrollPane();\n summaryCommentsTextArea1 = new javax.swing.JTextArea();\n imageMetadataScrollPane = new javax.swing.JPanel();\n imageMetadataTableScrollPane = new javax.swing.JScrollPane();\n imageMetadataTable = new javax.swing.JTable();\n showUnchangingPropertiesCheckbox = new javax.swing.JCheckBox();\n \n setTitle(\"Metadata and Comments\");\n \n tabbedPane.setFocusable(false);\n \n displayModeCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Composite\", \"Color\", \"Grayscale\" }));\n displayModeCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n displayModeComboActionPerformed(evt);\n }\n });\n \n jLabel1.setText(\"Display mode:\");\n \n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jLabel1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(displayModeCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 134, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(309, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel1)\n .add(displayModeCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n );\n \n org.jdesktop.layout.GroupLayout ChannelsTablePanelLayout = new org.jdesktop.layout.GroupLayout(ChannelsTablePanel);\n ChannelsTablePanel.setLayout(ChannelsTablePanelLayout);\n ChannelsTablePanelLayout.setHorizontalGroup(\n ChannelsTablePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)\n );\n ChannelsTablePanelLayout.setVerticalGroup(\n ChannelsTablePanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(ChannelsTablePanelLayout.createSequentialGroup()\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 385, Short.MAX_VALUE))\n );\n \n tabbedPane.addTab(\"Channels\", ChannelsTablePanel);\n \n summarySplitPane.setBorder(null);\n summarySplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n \n summaryCommentsLabel.setText(\"Comments:\");\n \n summaryCommentsTextArea.setColumns(20);\n summaryCommentsTextArea.setLineWrap(true);\n summaryCommentsTextArea.setRows(1);\n summaryCommentsTextArea.setTabSize(3);\n summaryCommentsTextArea.setWrapStyleWord(true);\n summaryCommentsTextArea.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n summaryCommentsTextAreaFocusLost(evt);\n }\n });\n summaryCommentsScrollPane.setViewportView(summaryCommentsTextArea);\n \n org.jdesktop.layout.GroupLayout summaryCommentsPaneLayout = new org.jdesktop.layout.GroupLayout(summaryCommentsPane);\n summaryCommentsPane.setLayout(summaryCommentsPaneLayout);\n summaryCommentsPaneLayout.setHorizontalGroup(\n summaryCommentsPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(summaryCommentsPaneLayout.createSequentialGroup()\n .add(summaryCommentsLabel)\n .addContainerGap(466, Short.MAX_VALUE))\n .add(summaryCommentsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)\n );\n summaryCommentsPaneLayout.setVerticalGroup(\n summaryCommentsPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(summaryCommentsPaneLayout.createSequentialGroup()\n .add(summaryCommentsLabel)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(summaryCommentsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE))\n );\n \n summarySplitPane.setLeftComponent(summaryCommentsPane);\n \n summaryMetadataTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null},\n {null, null},\n {null, null},\n {null, null}\n },\n new String [] {\n \"Property\", \"Value\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false\n };\n \n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n summaryMetadataScrollPane.setViewportView(summaryMetadataTable);\n \n org.jdesktop.layout.GroupLayout summaryMetadataPanelLayout = new org.jdesktop.layout.GroupLayout(summaryMetadataPanel);\n summaryMetadataPanel.setLayout(summaryMetadataPanelLayout);\n summaryMetadataPanelLayout.setHorizontalGroup(\n summaryMetadataPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 538, Short.MAX_VALUE)\n .add(summaryMetadataPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(summaryMetadataScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE))\n );\n summaryMetadataPanelLayout.setVerticalGroup(\n summaryMetadataPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 166, Short.MAX_VALUE)\n .add(summaryMetadataPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, summaryMetadataScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE))\n );\n \n summarySplitPane.setRightComponent(summaryMetadataPanel);\n \n tabbedPane.addTab(\"Summary\", summarySplitPane);\n \n imageSplitPanel.setBorder(null);\n imageSplitPanel.setDividerLocation(200);\n imageSplitPanel.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n \n imageCommentsPanel.setPreferredSize(new java.awt.Dimension(500, 300));\n imageCommentsPanel.setSize(new java.awt.Dimension(500, 300));\n \n imageCommentsLabel.setText(\"Comments:\");\n \n summaryCommentsTextArea1.setColumns(20);\n summaryCommentsTextArea1.setLineWrap(true);\n summaryCommentsTextArea1.setRows(1);\n summaryCommentsTextArea1.setTabSize(3);\n summaryCommentsTextArea1.setWrapStyleWord(true);\n summaryCommentsTextArea1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n summaryCommentsTextArea1FocusLost(evt);\n }\n });\n imageCommentsScrollPane.setViewportView(summaryCommentsTextArea1);\n \n org.jdesktop.layout.GroupLayout imageCommentsPanelLayout = new org.jdesktop.layout.GroupLayout(imageCommentsPanel);\n imageCommentsPanel.setLayout(imageCommentsPanelLayout);\n imageCommentsPanelLayout.setHorizontalGroup(\n imageCommentsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(imageCommentsPanelLayout.createSequentialGroup()\n .add(imageCommentsLabel)\n .addContainerGap(466, Short.MAX_VALUE))\n .add(imageCommentsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, imageCommentsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE))\n );\n imageCommentsPanelLayout.setVerticalGroup(\n imageCommentsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(imageCommentsPanelLayout.createSequentialGroup()\n .add(imageCommentsLabel)\n .addContainerGap(184, Short.MAX_VALUE))\n .add(imageCommentsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(imageCommentsPanelLayout.createSequentialGroup()\n .addContainerGap()\n .add(imageCommentsScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)))\n );\n \n imageSplitPanel.setLeftComponent(imageCommentsPanel);\n \n imageMetadataTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n \n },\n new String [] {\n \"Property\", \"Value\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false\n };\n \n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n \n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n imageMetadataTable.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);\n imageMetadataTable.setDoubleBuffered(true);\n imageMetadataTableScrollPane.setViewportView(imageMetadataTable);\n \n showUnchangingPropertiesCheckbox.setText(\"Show unchanging properties\");\n showUnchangingPropertiesCheckbox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n showUnchangingPropertiesCheckboxActionPerformed(evt);\n }\n });\n \n org.jdesktop.layout.GroupLayout imageMetadataScrollPaneLayout = new org.jdesktop.layout.GroupLayout(imageMetadataScrollPane);\n imageMetadataScrollPane.setLayout(imageMetadataScrollPaneLayout);\n imageMetadataScrollPaneLayout.setHorizontalGroup(\n imageMetadataScrollPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(imageMetadataScrollPaneLayout.createSequentialGroup()\n .add(showUnchangingPropertiesCheckbox)\n .addContainerGap(327, Short.MAX_VALUE))\n .add(imageMetadataScrollPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(imageMetadataTableScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE))\n );\n imageMetadataScrollPaneLayout.setVerticalGroup(\n imageMetadataScrollPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(imageMetadataScrollPaneLayout.createSequentialGroup()\n .add(showUnchangingPropertiesCheckbox)\n .addContainerGap(188, Short.MAX_VALUE))\n .add(imageMetadataScrollPaneLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(imageMetadataScrollPaneLayout.createSequentialGroup()\n .add(30, 30, 30)\n .add(imageMetadataTableScrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 181, Short.MAX_VALUE)))\n );\n \n imageSplitPanel.setRightComponent(imageMetadataScrollPane);\n \n tabbedPane.addTab(\"Image\", imageSplitPanel);\n \n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(tabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 559, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(tabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 466, Short.MAX_VALUE)\n .addContainerGap())\n );\n \n pack();\n }"
] | [
"0.6299047",
"0.60928565",
"0.608676",
"0.59880936",
"0.59807193",
"0.5830143",
"0.57916415",
"0.5711994",
"0.5660068",
"0.5618074",
"0.5612079",
"0.56079847",
"0.5605566",
"0.56017977",
"0.5586004",
"0.5563738",
"0.5537191",
"0.5484582",
"0.54754066",
"0.5474345",
"0.545882",
"0.5449989",
"0.53992915",
"0.53939337",
"0.5372987",
"0.5357959",
"0.53509814",
"0.53163576",
"0.531078",
"0.5295413",
"0.52932954",
"0.5282828",
"0.52802676",
"0.5270909",
"0.52355635",
"0.52201366",
"0.52184206",
"0.52164775",
"0.521107",
"0.5194935",
"0.5194453",
"0.51867354",
"0.5181984",
"0.51714736",
"0.51680654",
"0.51540166",
"0.51515245",
"0.513765",
"0.51281387",
"0.51167554",
"0.51156694",
"0.51091486",
"0.51071966",
"0.5092012",
"0.50917065",
"0.5067391",
"0.5065311",
"0.5059113",
"0.50530833",
"0.504682",
"0.5044284",
"0.50299805",
"0.5023039",
"0.5022978",
"0.5014484",
"0.50104225",
"0.5008313",
"0.49994364",
"0.4988003",
"0.49839374",
"0.49820969",
"0.4965118",
"0.4961737",
"0.49351498",
"0.4935075",
"0.49270278",
"0.4922664",
"0.4909672",
"0.4909309",
"0.4906492",
"0.49051836",
"0.49033257",
"0.48999938",
"0.4891977",
"0.48867273",
"0.4884786",
"0.48838207",
"0.48788434",
"0.48757404",
"0.48754516",
"0.48731515",
"0.48696592",
"0.48637962",
"0.48607597",
"0.48569757",
"0.48562676",
"0.48553485",
"0.48546082",
"0.48541766",
"0.48482084"
] | 0.53587824 | 25 |
Respond to a timeChange event | protected void timeChanged(Real time) {
try {
getChart().timeChanged(time);
} catch (Exception exc) {
logException("changePosition", exc);
}
super.timeChanged(time);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void timeChanged();",
"public void timeChanged( int newTime );",
"public void updateChangedTime(int hour, int minute);",
"public interface TimeListener\n {\n \t/**\n\t * Informs the listener that the time of day has changed\n\t */\n\tpublic void timeChanged( int newTime );\n }",
"default void onCustomEndTimeChanged(LocalTime endTime) {}",
"default void onCustomStartTimeChanged(LocalTime startTime) {}",
"@Override\n public void onTimePicked() {\n }",
"public void clockChange(int time);",
"@Override\n public void timeChanged(MediaPlayer mp, long l) {\n }",
"@Override\r\n\t\t\tpublic void onValueChange(final ValueChangeEvent<Integer> event) {\n\t\t\t\tstoryTimeService.updateLobbyRoomTimer(roomData.roomName, event.getValue(), new AsyncCallback<Void>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\tif (DEBUG)\r\n\t\t\t\t\t\t\tSystem.out.println(\"Client: Error occurred in sending server the new submissionTimer value: \" + event.getValue());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(Void result) {\r\n\t\t\t\t\t\tif (DEBUG)\r\n\t\t\t\t\t\t\tSystem.out.println(\"Client: Got confirmation of submissionTimer change from server\");\r\n\t\t\t\t\t\tchoosersTimeBox.setValue(submittersTimeBox.getValue() + 5, true);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}",
"public void timeUpdate(int time) {\r\n handler.setTime(time);\r\n }",
"public void setTime(){\r\n \r\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n }",
"@Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n\n }",
"public void timeRangeChanged() {\r\n\t\tif (ctrlPressed) {\r\n\t\t\ttimeRangeChangedWhileCtrlPressed=true;\r\n\t\t} else {\r\n\t\t\tregenView();\r\n\t\t}\r\n\t}",
"@Command\n\t@NotifyChange(\"currentTime\")\n\tpublic void updateTime() {\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getEndtime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getEndtime().set(Calendar.MINUTE, minute);\n updateEndTime();\n }",
"@Override\r\n\tpublic void timeDialogCallBack(String time) {\n\t\t\r\n\t}",
"private void handleTimeUpdate() {\n Assert.isMainThread();\n Log.d(\"KeyguardUpdateMonitor\", \"handleTimeUpdate\");\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onTimeChanged();\n }\n }\n }",
"public interface OnTimeSetListener {\n\n /** **\n * Called when the user is done setting a new time and the dialog has\n * closed.\n *\n * <p> use {@link #getHour()}, {@link #getMinute()} to get the selection.\n *\n * @param dialog the dialog associated with this listener\n */\n void onTimeSet(MaterialTimePicker dialog);\n }",
"public abstract void timeContextChange(long ms, \n\t\t\tCalendar currentTime);",
"void setTime(final int time);",
"public void addTimeObserver(TimeObserver observer);",
"@Override\r\n\tpublic void timeDialogCallBack(int hour, int minute) {\n\t\t\r\n\t}",
"@JsAccessible\n public void onTimeUpdated(double currentTime) {\n timeUpdatedListeners.forEach(listener -> listener.accept(currentTime));\n }",
"@Override\n\tpublic void msgUpdateTime(int time, int day) {\n\t\tlog.add(new LoggedEvent(\"Recieved Time \" + time));\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n txtview_time_result.setText(\"Time : \"+hourOfDay+\":\"+minute);\n }",
"public abstract void updateTime(int currentTime);",
"public void setTime(String time) {\n }",
"public interface OnTimeSetListener {\n\n /**\n * @param view The view associated with this listener.\n * @param hourOfDay The hour that was set.\n * @param minute The minute that was set.\n */\n void onTimeSet(TimePicker view, int hourOfDay, int minute);\n }",
"@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }",
"public void timeCallback(View v){\n TimePickerDialog timePickerDialog = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n mHour = hourOfDay;\n mMinute = minute;\n String hourStr = String.format(\"%2s\",mHour).replace(\" \", \"0\");\n String minuteStr = String.format(\"%2s\",mMinute).replace(\" \", \"0\");\n ((EditText)findViewById(R.id.entry_time)).setText(hourStr+\":\"+minuteStr);\n }\n }, mHour, mMinute, false);\n timePickerDialog.show();\n }",
"public void scheduleViewChange(){\n PBFTRequestInfo rinfo = getRequestInfo();\n\n if(!isPrimary() && rinfo.hasSomeWaiting()){\n \n if(!overloaded() || changing()){\n long now = getClockValue();\n\n if(!getViewTimer().workingAt(now)){\n\n long timeout = getPrimaryFaultTimeout();\n PBFTTimeoutDetector ttask = (PBFTTimeoutDetector) getViewTimer().getTask();\n\n if(ttask != null && ttask.get(\"TIMEOUT\") != null){\n timeout = (Long)ttask.get(\"TIMEOUT\");\n JDSUtility.debug(\"[scheduleViewChange()] s\" + getLocalServerID() + \" computed changeview timeout equal to \" + timeout);\n }\n\n long timestamp = now + timeout;\n getViewTimer().schedule(timestamp);\n return;\n }\n return;\n }//end change-view timer is working\n JDSUtility.debug(\"[batch()]s\" + getLocalServerID() + \", at time \" + getClockValue() + \", has been in overloaded state.\");\n }//end if it is not primary\n \n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }",
"private void indicateCalendarDisplayTimeChanged() {\n raise(new CalendarDisplayTimeChangedEvent(currentDateTime));\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }",
"public void secondsChanged() {\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }",
"public self time(\n\t\t\tvapor.listeners.widget.timepicker.$change timeChangedListener) {\n\t\tfor (X vaporView : members)\n\t\t\tvaporView.time(timeChangedListener);\n\t\treturn (self) this;\n\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getStarttime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getStarttime().set(Calendar.MINUTE, minute);\n updateStartTime();\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }",
"public void setTime(long time,int ento){ \r\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }",
"void updateActiveTime(int T);",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }",
"@Override\r\n\tpublic void ptimeDialogCallBack(int hour, int minute) {\n\t\t\r\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }",
"private void updateTime() \r\n\t {\r\n\t\t \r\n\t\t \tif(Hours.getValue() < 12)\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" am\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \telse if (Hours.getValue() > 12 && Hours.getValue() < 24 )\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" pm\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }",
"public void timeUpdate(AudioHandler handler, long time) {\r\n slrTime.setValue((int) time);\r\n lblTime.setText(Utility.formatTime(time, false) + \" / \" + Utility.formatTime(handler.getDuration(), false));\r\n if (panGlassPane.isVisible()) panGlassPane.repaint();\r\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }",
"public void setTime(double time) {_time = time;}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }",
"public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }",
"public void setOnTime(Integer onTime) {\n this.onTime = onTime;\n }",
"public void setTime(String time) {\n this.time = time;\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"public void setTimeSpecificEvent(boolean timeSpecificEvent) {\n this.timeSpecificEvent = timeSpecificEvent;\n }",
"public void setTime(java.lang.Integer value) {\n this.time = value;\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }",
"public void setTime(int time)\n {\n this.time = time;\n start = time;\n end = time;\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }",
"@Override\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n Toast.makeText(getApplicationContext(), hourOfDay + \" \" + minute, Toast.LENGTH_SHORT).show();\n time_text.setText(hourOfDay + \" : \" + minute);// set the current time in text view\n\n time= time_text.getText().toString();\n\n\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }"
] | [
"0.8120623",
"0.8022613",
"0.7195083",
"0.71046853",
"0.690819",
"0.6805991",
"0.68032277",
"0.67576975",
"0.67505735",
"0.67192596",
"0.6658669",
"0.663058",
"0.65672505",
"0.6473378",
"0.64634037",
"0.64367235",
"0.6374423",
"0.63680255",
"0.635437",
"0.6353322",
"0.6343799",
"0.6317467",
"0.6317436",
"0.63111734",
"0.62815905",
"0.62377626",
"0.6232457",
"0.6218252",
"0.62175894",
"0.62058127",
"0.6194787",
"0.6193871",
"0.61920947",
"0.61920947",
"0.61920947",
"0.61797667",
"0.6159871",
"0.6126962",
"0.6124526",
"0.61204886",
"0.6115452",
"0.61143965",
"0.61123854",
"0.61116815",
"0.6105516",
"0.6104988",
"0.61013466",
"0.60986036",
"0.6096373",
"0.609463",
"0.60902387",
"0.60824907",
"0.608059",
"0.60780764",
"0.60770655",
"0.60762566",
"0.6076184",
"0.6069149",
"0.606703",
"0.6062528",
"0.605829",
"0.6054845",
"0.60547423",
"0.6050607",
"0.6048827",
"0.6047125",
"0.60423076",
"0.6041668",
"0.60402596",
"0.60393417",
"0.6038179",
"0.60336965",
"0.603342",
"0.60313886",
"0.602931",
"0.60282737",
"0.6027937",
"0.6026916",
"0.6026652",
"0.602494",
"0.602458",
"0.60230225",
"0.602244",
"0.6021678",
"0.60191137",
"0.6012167",
"0.601046",
"0.60086745",
"0.600813",
"0.60079545",
"0.600737",
"0.6003918",
"0.6001391",
"0.6000908",
"0.59984267",
"0.599701",
"0.599516",
"0.59950495",
"0.5994442",
"0.59939057"
] | 0.7144719 | 3 |
Method called when probe is moved. | protected void doMoveProbe() {
super.doMoveProbe();
// getChart().updateThumb();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void probePositionChanged(RealTuple position) {\n try {\n loadProfile(position);\n } catch (Exception exc) {\n logException(\"probePositionChanged\", exc);\n }\n\n }",
"@Override\n public void triggerProbe(DeviceId deviceId) {\n }",
"protected void setProbe(Probe<?, ?> probe) {\n this.probe = probe;\n }",
"protected void setProbe(Probe<?,?> probe) {\n this.probe = probe;\n }",
"protected void onMove() {\r\n }",
"public void monitor() {\n moveTo(1.0, 10);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n }",
"public void probe(String event) {\n profile.add(event);\n }",
"@Override\r\n\tprotected void onMove() {\n\t\t\r\n\t}",
"protected abstract void onLeveledUp();",
"@Override\n public void onCameraMoveStarted(int reason) {}",
"@Override\n\t\t\tpublic void onLocatorChanged(LocatorData locatorData) {\n\t\t\t\tsphero_x = locatorData.getPositionX();\n\t\t\t\tsphero_y = locatorData.getPositionY();\n\t\t\t}",
"public interface Probe {\n void start();\n\n void stop();\n}",
"public void onMove(float x, float y, float pressure) {\n/* 135 */ this.mTouchEventSubject.onNext(new InkEvent(InkEventType.ON_TOUCH_MOVE, x, y, this.mIsPressureSensitive ? pressure : 1.0F));\n/* */ }",
"public void insertProbe(RadioProbe p) {\n probes.add(p);\n }",
"ProbeResult run();",
"@Override\n\tpublic void onStopLookUp(PlatformPlayer player) {\n\t\t\n\t}",
"@Override\n\tpublic void driving() {\n\t\t\n\t}",
"@Override\r\n\tpublic void onLocationChange(AMapNaviLocation arg0) {\n\r\n\t}",
"@Override\r\n\tpublic void prePointersMove(float arg0, float arg1, float arg2, float arg3,\r\n\t\t\tdouble arg4) {\n\r\n\t}",
"private void notifyMove(Move move) {\r\n\t\tfor (Player e : spectators)\r\n\t\t\te.registerMove(move);\r\n\t}",
"@Override\r\n\tpublic void move() {\n\r\n\t}",
"@Override\n\tpublic void onLookUp(PlatformPlayer player) {\n\t\t\n\t}",
"public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}",
"@Override\n public void scanActuatorsParked() {\n }",
"void onMoveTaken(Piece captured);",
"@Override\n public void breakpointReached(JPDABreakpointEvent event) {\n if (!isFiltered) {\n boolean removed = allBreakpoints.remove(breakpoint);\n if (ok == null && removed) {\n ok = Boolean.TRUE;\n message = \"O.K.\";\n } else {\n if (ok != null) {\n message += \"Hit again at \"+event.getReferenceType()+\" \";\n ok = Boolean.FALSE;\n } else if (!removed) {\n message += \"BP not in list. \";\n ok = Boolean.FALSE;\n }\n }\n } else { // Filtered, expected to hit twice (in APP_CLASS_NAME and APP2_CLASS_NAME)\n //System.err.println(\"breakpointReached(\"+event+\", isFiltered = \"+isFiltered+\"), referenceType = \"+event.getReferenceType());\n String className = event.getReferenceType().name();//event.getThread().getClassName();\n boolean removed = toBeHitIn.remove(className);\n if (ok == null && removed && toBeHitIn.isEmpty()) {\n allBreakpoints.remove(breakpoint);\n ok = Boolean.TRUE;\n message = \"O.K.\";\n } else {\n if (!removed) {\n message += \"Hit again at \"+className+\" \";\n ok = Boolean.FALSE;\n }\n }\n }\n event.resume();\n }",
"@Override\r\n public synchronized void onLocationChange(Location location) {\r\n\r\n if (event.isOngoing()) { //check for event status\r\n evaluateOverspeeding(System.currentTimeMillis());\r\n } else {\r\n interrupt();\r\n }\r\n }",
"@Override\n\tpublic void onLocationChange(AMapNaviLocation arg0) {\n\n\t}",
"@Override\n public void onMove(float x, float y) {\n }",
"@Override\n\tpublic void move() {\n\t}",
"private void moved(MouseEvent e)\r\n {\n }",
"@Override\n \t\t\tpublic void onLocationChanged(Location loc) {\n \t \n \t\t\t}",
"protected void initialize() {\n \tif ((deploy && Robot.intake.getHopperTracker() == Status.deployed) || \n \t\t\t(!deploy && Robot.intake.getHopperTracker() == Status.stowed)) {\n \t\t// Hopper is already in desired position, so do nothing\n \t\twaitForMovement = false;\n \t} else if (deploy && (Robot.intake.getIntakeTracker() != Status.deployed)) {\n \t\t// Can't deploy hopper if intake is not deployed (ie., if stowed or unknown or moving)\n \t\twaitForMovement = false;\n \t} else {\n \t\t// OK, we can move the hopper\n \t\twaitForMovement = true;\n \t\tRobot.intake.setHopperTracker(Status.unknown);\t// put in unknown state while hopper is moving\n \tif (deploy) Robot.intake.deployHopper();\n \telse { Robot.intake.stowHopper(); }\n \t}\n }",
"@Override\n public void move () {\n }",
"@Override\n\tpublic void move() {\n\t\t\n\t}",
"@Override\n\tpublic void move() {\n\n\t}",
"public void onSwapPosition() {\n\n\t}",
"@Override\n public void move() {\n System.out.println(\"I roam here and there\");\n }",
"public void switchPhase() {\n\n\t\t/* Remove all events related to this virus */\n\t\tfor (int i = 0; i < Sim.events.size(); i++)\n\t\t\tif (Sim.events.elementAt(i).org.equals(this))\n\t\t\t\tSim.events.elementAt(i).delete = true;\n\n\t\t/* Remove this virus from lambda vector */\n\t\tfor (int i = 0; i < Sim.lps.size(); i++)\n\t\t\tif (Sim.lps.elementAt(i).equals(this)) {\n\t\t\t\tSim.lps.remove(i);\n\t\t\t\tSim.lps_sum_sr += this.prob_surface;\n\t\t\t\tSim.lps_sum_enz += this.prob_enzymes;\n\t\t\t}\n\n\t\t/* kill infected bacteria */\n\t\tthis.current_ba.death(); \n\n\t\t/* Create new virus progeny */\n\t\tfor (int i = 0; i < progeny; i++)\n\t\t\tSim.lps.add(new Lambda_phage(prob_surface, prob_enzymes));\n\n\t}",
"@Override\n public void onArrivedWayPoint(int arg0) {\n\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public Probe getProbe() {\n\treturn null;\n }",
"void onIdentityMove(int fromPosition, int toPosition);",
"@Override\n public void onNaviInfoUpdated(AMapNaviInfo arg0) {\n \n }",
"@Override\n public void scanActuatorsStopped() {\n }",
"@Override\n public void onMapViewCenterPointMoved(MapView arg0, MapPoint arg1) {\n\n }",
"@Override\n public void move()\n {\n System.out.println(\"tightrope walking\");\n }",
"@Test\n public void testNearBack()\n {\n String sName = \"near-back-listener\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Override\n\tpublic void onLocationChanged(Location loc)\n\t{\n\t}",
"public void move() {\n\t\t// Override move so we don't move, then get location set by owner.\n\t}",
"public synchronized void moveStarted(Move move, MoveProvider mp) {\n\t\tangle0 = 0;\n\t\tdistance0 = 0;\n\t\tcurrent = false;\n\t\tthis.m_mover = mp;\n\t}",
"@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }",
"Map<String,String> handleProbe(String... keys);",
"public abstract void notifyMoveResult(boolean hasMoved);",
"@Override\n public void onMove(boolean absolute) {\n \n }",
"@Override\n\tpublic void DoGoToWaiting(int offset) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onArrivedWayPoint(int arg0) {\n\r\n\t}",
"protected void notifyListeners() {\n // TODO could these be done earlier (or just once?)\n JMeterContext threadContext = getThreadContext();\n JMeterVariables threadVars = threadContext.getVariables();\n SamplePackage pack = (SamplePackage) threadVars.getObject(JMeterThread.PACKAGE_OBJECT);\n if (pack == null) {\n // If child of TransactionController is a ThroughputController and TPC does\n // not sample its children, then we will have this\n // TODO Should this be at warn level ?\n log.warn(\"Could not fetch SamplePackage\");\n } else {\n SampleEvent event = new SampleEvent(res, threadContext.getThreadGroup().getName(),threadVars, true);\n // We must set res to null now, before sending the event for the transaction,\n // so that we can ignore that event in our sampleOccured method\n res = null;\n- // bug 50032 \n- if (!getThreadContext().isReinitializingSubControllers()) {\n- lnf.notifyListeners(event, pack.getSampleListeners());\n- }\n+ lnf.notifyListeners(event, pack.getSampleListeners());\n }\n }",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void onScannedRobot() {\r\n\t\t// Turn gun to point at the scanned robot\r\n\t\tturnGunTo(scannedAngle);\r\n\r\n\t\t// Fire!\r\n\t\tfire(1);\r\n\t}",
"protected abstract void onAddressAllocated(int logicalAddress);",
"void onMove();",
"private final void m90475d() {\n RxBus.m86979a().mo84367a(new UnFriendlyEvent(1));\n popSelf();\n }",
"@Override\r\n\tpublic void laught() {\n\r\n\t}",
"@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}",
"@Override\n\t\t\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\t\t\t\t\n\t\t\t}",
"public void goToLocation (Locator checkpoint) { //Patrolling Guard and Stationary Guard\r\n\t\tVector2i start = new Vector2i((int)(creature.getXlocation()/Tile.TILEWIDTH), (int)(creature.getYlocation()/Tile.TILEHEIGHT));\r\n\t\tint destx = (int)(checkpoint.getX()/Tile.TILEWIDTH);\r\n\t\tint desty = (int)(checkpoint.getY()/Tile.TILEHEIGHT);\r\n\t\tif (!checkCollision(destx, desty)) {\r\n\t\tVector2i destination = new Vector2i(destx, desty);\r\n\t\tpath = pf.findPath(start, destination);\r\n\t\tfollowPath(path);\r\n\t\t}\r\n\t\tarrive();\r\n\t}",
"@Override\r\n\tpublic void onNaviInfoUpdated(AMapNaviInfo arg0) {\n\r\n\t}",
"public void walk(Agent agent) throws RemoteException {\nSystem.out.println(\"Em walk: agent = \" + agent.toXml());\n\t\tint currRow = agent.getRow();\n\t\tint currCol = agent.getColumn();\n\t\tint oldRow = currRow;\n\t\tint oldCol = currCol;\n\t\tswitch (agent.getDirection()) {\n\t\t\tcase UP: oldRow--; break;\n\t\t\tcase DOWN: oldRow++; break;\n\t\t\tcase LEFT: oldCol++; break;\n\t\t\tcase RIGHT: oldCol--; break;\n\t\t}\n\t\tString agentName = agent.getName();\n\t\tObject obj = agents.get(agentName);\n\t\tPoint p = (Point) obj;\n\t\tif (oldRow != p.x || oldCol != p.y) {\n\t\t\tSystem.out.println(\"Incompativeis!!! \");\n\t\t\treturn;\n\t\t}\n\t\tp.x = currRow;\n\t\tp.y = currCol;\n\t\tremoveImage(oldRow, oldCol, agentName);\n\t\tif (agent instanceof Wumpus) {\n\t\t\taddImage(currRow, currCol, agentName, WUMPUS_FILE);\n\t\t\tcheckStench(currRow + 1, currCol - 1, currRow - 1, currCol + 1);\n\t\t} else {\n\t\t\taddImage(currRow, currCol, agentName, EXPLORER_FILE);\n\t\t}\n\t\tsetDirection(currRow, currCol, agentName, agent.getDirection());\n\t}",
"@Override\n public void onCameraMoveStarted(int i) {\n\n }",
"@Override\n\tpublic void onLocationChanged(Location arg0) {\n\n\t}",
"@Override\n\tpublic void onLocationChanged(Location arg0) {\n\n\t}",
"private void navToPoint(Unit unit){\n\t\tMapLocation currentLocation = unit.location().mapLocation();\n\t\tMapLocation locationToTest;\n\t\tMapLocation targetLocation = orderStack.peek().getLocation();\n\t\tlong smallestDist=1000000000; //arbitrary large number\n\t\tlong temp;\n\t\tDirection closestDirection=null;\n\t\tint i=1;\n\t\t\n\t\tif(gc.isMoveReady(unitID)){\n\t\t\t//first find the direction that moves us closer to the target\n\t\t\tfor(Direction dir : Direction.values()){\n\t\t\t\tif (debug) System.out.println(\"this (\"+dir.name()+\") is the \"+i+\"th direction to check, should get to 9\");\n\t\t\t\tlocationToTest=currentLocation.add(dir);\n\t\t\t\t//make sure it is on the map and is passable\n\t\t\t\tif (debug){\n\t\t\t\t\tSystem.out.println(\"testing this location: \"+locationToTest);\n\t\t\t\t\tSystem.out.println(\"valid move? \"+gc.canMove(unitID, dir));\n\t\t\t\t}\n\t\t\t\tif(gc.canMove(unitID, dir)){\n\t\t\t\t\tif (debug)System.out.println(\"we can indeed move there...\");\n\t\t\t\t\t//make sure the location hasn't already been visited\n\t\t\t\t\tif(!pastLocations.contains(locationToTest)){\n\t\t\t\t\t\tif (debug)System.out.println(\"not been there recently...\");\n\t\t\t\t\t\t//at this point its a valid location to test, check its distance\n\t\t\t\t\t\ttemp = locationToTest.distanceSquaredTo(targetLocation);\n\t\t\t\t\t\tif (debug)System.out.println(\"distance :\"+temp);\n\t\t\t\t\t\tif (temp<smallestDist){\n\t\t\t\t\t\t\tif (debug)System.out.println(\"new closest!\");\n\t\t\t\t\t\t\t//new closest point, update accordingly\n\t\t\t\t\t\t\tsmallestDist=temp;\n\t\t\t\t\t\t\tclosestDirection=dir;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}//end of for-each loop\n\t\t}//end move ready if.\n\t\t\n\t\t//actual movement and maintenance of places recently visited\n\t\tif(closestDirection!=null){\n\t\t\tif (debug){\n\t\t\t\tSystem.out.println(\"found a closest direction, calling navInDirection()\");\n\t\t\t\tSystem.out.println(\"heading \"+closestDirection.name());\n\t\t\t}\n\t\t\tmoveInDirection(closestDirection, unit);\n\t\t\tcleanUpAfterMove(unit);\n\t\t}else{\n\t\t\t//can't get any closer\n\t\t\tif (debug) System.out.println(\"can't get closer, erasing past locations\");\n\t\t\tpastLocations.clear();\n\t\t}\n\t\t\n\t\t//have we arrived close enough?\n\t\tif(unit.location().mapLocation().distanceSquaredTo(targetLocation)<=howCloseToDestination){\n\t\t\t//atTargetLocation=true;\n\t\t\t\n\t\t\t//if order was a MOVE order, it is complete, go ahead and pop it off the stack\n\t\t\tif(orderStack.peek().getType().equals(OrderType.MOVE)){\n\t\t\t\torderStack.pop();\n\t\t\t}\n\t\t\tif (debug) System.out.println(\"Unit \"+unit.id()+\" arrived at destination.\");\n\t\t}\n\t\t\n\t\t;\n\t}",
"@Test\n public void testDistOverflowFront()\n {\n String sName = \"dist-overflow-front\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@Override\n\tpublic void setup()\n\t{\n\t\tCoreNotifications.get().addListener(this, ICoreContextOperationListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureInputListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureRuntimeListener.class);\n\t\tCoreNotifications.get().addListener(this, ICoreProcedureOperationListener.class);\n\t}",
"public void moveRobber(HexLocation loc) {\n\n\t}",
"@Override\n public void onScannedRobot(ScannedRobotEvent event) {\n super.onScannedRobot(event);\n }",
"private void movementPhase() {\n ClickObserver.getInstance().setCreatureFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n TheCupGUI.update();\n Board.removeCovers();\n }\n });\n for (Player p : playerList) {\n \tplayer = p;\n player.flipAllUp();\n\t ClickObserver.getInstance().setActivePlayer(player);\n\t ClickObserver.getInstance().setCreatureFlag(\"Movement: SelectMovers\");\n\t InfoPanel.uncover(player.getName());\n\t if (p.getHexesWithPiece().size() > 0) {\n\t \tClickObserver.getInstance().setClickedTerrain(p.getHexesWithPiece().get(0));\n\t }\n\t pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n \t GUI.getHelpText().setText(\"Movement Phase: \" + player.getName()\n + \", Move your armies\");\n \t Game.getRackGui().setOwner(player);\n }\n });\n\t \n\t while (isPaused) {\n \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t }\n\t InfoPanel.cover(player.getName());\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n ClickObserver.getInstance().setCreatureFlag(\"\");\n }",
"@Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n }",
"public void delayedFindMatching(PropFinder finder, RecorderFossil fossil, ResultRecorder recorder) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9714:OrglRoot methodsFor: 'operations'!\n{void} delayedFindMatching: finder {PropFinder}\n\twith: fossil {RecorderFossil}\n\twith: recorder {ResultRecorder}\n\t\n\t\"This does the 'now' part of setting up a recorder, once the 'later' part has been set up.\n\t It does a walk south on the O-tree, then walks back north on all the H-trees, filtered by the Bert canopy.\"\n\t\n\tself subclassResponsibility!\n*/\n}",
"public void onSensorUnplug(String idSensor) // evento que se genera al desconectar el lector de huella\n{\n objpantprincipal.writeLog(\"Lector \"+idSensor+\": Desconectado.\");\n try {\n GrFingerJava.stopCapture(idSensor);\n } catch (GrFingerJavaException e) {\n Toolkit.getDefaultToolkit().beep();\n objpantprincipal.writeLog(e.getMessage());\n }\n}",
"@Override\r\n public void run() {\r\n if (event.getEventType().equals(DrivingEventType.OVERSPEED)) {\r\n overspeedStartTimestamp = System.currentTimeMillis();\r\n LocationController.addListenerToContainer(this);\r\n } else {\r\n AccelerometerValuesController.addListenerToContainer(this);\r\n }\r\n }",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t\ttarget = pointEntity(caster,50);\r\n\t\tif (target == null) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\trefund = true;\r\n\t\t\tdead = true;\r\n\t\t\tif (refined)\r\n\t\t\t\tsteprange = 240;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tplaySound(Sound.BLOCK_CONDUIT_DEACTIVATE,caster.getLocation(),5,2F);\r\n\t\t\tplaySound(Sound.BLOCK_CONDUIT_ACTIVATE,caster.getLocation(),5,2F);\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tParUtils.parKreisDot(Particles.END_ROD, caster.getLocation(), 0, 1, 0.3F, randVector());\r\n\t\t\tdist = target.getLocation().distance(caster.getLocation());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"@Override\n\tpublic void onChildMoved(DataSnapshot arg0, String arg1) {\n\t\t\n\t}",
"@Override\n public void landedOn(Player player) {}",
"protected void end() {\n \tif (waitForMovement) Robot.intake.setHopperTracker(deploy ? Status.deployed : Status.stowed);\n }",
"@Override\r\n\tpublic void move()\r\n\t{\r\n\t\t//Updates the X and Y position by using dx and dy\r\n float x = location.getX() + dx;\r\n float y = location.getY() + dy;\r\n \r\n //Updates the particle emitter's position to the missiles current position\r\n emitter.setPosition(this.getPositionX(), this.getPositionY(),false);\r\n \r\n //Updates the location of the missile\n setLocation(x, y);\n\t}",
"private void inZoneSignal(){\n EventHandle[] trackInZone = ECAAgent.getEventHandles(inZoneEventName);\n ECAAgent.insert(trackInZone,\"TrackNumber\",trackNumber);\n ECAAgent.getDefaultECAAgent().raiseEndEvent(trackInZone,this);\n }",
"public void toCollectPos()throws InterruptedException{\n motorShoulder.setTargetPosition(-90);\r\n motorElbow.setTargetPosition(141);\r\n motorShoulder.setPower(SLOW_POWER);\r\n motorElbow.setPower(SLOW_POWER);\r\n sleep(1000);\r\n\r\n servoBucket.setPosition(0.28);\r\n\r\n motorShoulder.setTargetPosition(-440);\r\n motorElbow.setTargetPosition(280);\r\n motorShoulder.setPower(SLOW_POWER);\r\n motorElbow.setPower(SLOW_POWER);\r\n sleep(1000);\r\n\r\n motorShoulder.setTargetPosition(-500);\r\n motorShoulder.setPower(SLOW_POWER);\r\n }",
"private void switchLookupListener() {\n TopComponent active = TopComponent.getRegistry().getActivated();\n if( null != lookupRes ) {\n lookupRes.removeLookupListener( PaletteSwitch.this );\n lookupRes = null;\n }\n if( null != active ) {\n lookupRes = active.getLookup().lookup( new Lookup.Template<PaletteController>( PaletteController.class ) );\n lookupRes.addLookupListener( PaletteSwitch.this );\n lookupRes.allItems();\n }\n }",
"@Override\r\n\tpublic void beforeInvocation(IInvokedMethod arg0, ITestResult arg1) {\n\t\t\r\n\t}",
"@Override\n\tpublic void onArrivedWayPoint(int arg0) {\n\n\t}",
"@Test\n public void testDistOverflow()\n {\n String sName = \"dist-overflow-top\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"public void onMoveGestureStarted()\n\t{\n\t\tfireEvent(TiC.EVENT_MOVE_START, null);\n\t}",
"@Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n }",
"@Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n }",
"public void DestReachedEvent() {\n\tsetChanged();\n\tnotifyObservers();\n }",
"public boolean moveOn() {\n\t\t\n\t}",
"@Override\n public void mouseDragged(MouseEvent e) {\n switch (GlobalVariable.dragState) {\n case init:\n Point abPoint = EventUtil.getAbsolutePointBy(e);\n // the component that the mouse at (as it's not e.getComponent if you move far away.\n Component componentOfMouse = e.getComponent().getParent().getComponentAt(abPoint);\n if (componentOfMouse instanceof BaseUnitUI) {\n if (!(EventUtil.isPointInComponents(e, \"In\"))\n && !(EventUtil.isPointInComponents(e, \"Out\"))) {\n // You are attempt to relocate the Unit\n e.getComponent().setLocation(abPoint);\n GlobalVariable.dragState = GlobalVariable.DragState.forRelocate;\n } else {\n // You drag a In or Out, so it is to Link Unit\n GlobalVariable.dragState = GlobalVariable.DragState.forLink;\n // get the line you create during mousePress and update its endPoint\n Line line = GlobalVariable.lastLine;\n if (line != null) {\n line.updateEndPoint(abPoint);\n GlobalVariable.workPanel.updateUI();\n }\n }\n }\n break;\n case forRelocate:\n // if it is called during dragging label around\n Point newLoc = EventUtil.getAbsolutePointBy(e);\n e.getComponent().setLocation(newLoc);\n // get the unit which this UI belong to.\n int unitIndex = GlobalVariable.componentArray.indexOf(e.getComponent());\n SuperUnit unit = GlobalVariable.unitArray.get(unitIndex);\n // update the line linked with the unit you want to relocate.\n Line[] lines = unit.getOutLine();\n for (int iLine = 0; iLine < lines.length; iLine ++) {\n if (lines[iLine] != null) {\n // get the label center location\n Point origin = unit.unitUI.getComponent(unit.getInLines().length).getLocation();\n origin = EventUtil.transformToSuperLoca(origin, unit.unitUI);\n origin.x += GlobalVariable.actionWidth / 2;\n lines[iLine].updateStartPoint(origin);\n }\n }\n for (int iIn = 0; iIn < unit.getInLines().length; iIn ++) {\n if (unit.getInLines()[iIn] != null) {\n // get the label center location\n Point origin = unit.unitUI.getComponent(iIn).getLocation();\n origin = EventUtil.transformToSuperLoca(origin, unit.unitUI);\n origin.x += GlobalVariable.actionWidth / 2;\n unit.getInLines()[iIn].updateEndPoint(origin);\n }\n }\n break;\n case forLink:\n Point endPoint = EventUtil.getAbsolutePointBy(e);\n Line line = GlobalVariable.lastLine;\n if (line != null) {\n line.updateEndPoint(endPoint);\n GlobalVariable.workPanel.updateUI();\n }\n break;\n }\n }"
] | [
"0.6088321",
"0.5676952",
"0.56621385",
"0.55720675",
"0.5501902",
"0.54901594",
"0.53842586",
"0.53278685",
"0.5320527",
"0.5296427",
"0.52327645",
"0.5230949",
"0.51875114",
"0.51819116",
"0.5137246",
"0.5109254",
"0.50962406",
"0.50921404",
"0.5075011",
"0.50653225",
"0.50624967",
"0.5062251",
"0.50546217",
"0.5050205",
"0.5034728",
"0.50316185",
"0.50123924",
"0.50120527",
"0.5008082",
"0.500768",
"0.49918395",
"0.49874917",
"0.49851286",
"0.49829844",
"0.49698892",
"0.4960217",
"0.49539435",
"0.49382702",
"0.49314377",
"0.49270326",
"0.49171567",
"0.4915521",
"0.49143082",
"0.4904147",
"0.49026036",
"0.49022666",
"0.48999202",
"0.48873764",
"0.4870802",
"0.48705512",
"0.4866246",
"0.48651904",
"0.48534304",
"0.48523924",
"0.48522815",
"0.48493502",
"0.48408085",
"0.48369324",
"0.48294413",
"0.48167017",
"0.48145503",
"0.48129827",
"0.48119313",
"0.48078227",
"0.48075962",
"0.48038173",
"0.480265",
"0.48024508",
"0.48006773",
"0.4799286",
"0.4796693",
"0.4796693",
"0.47939554",
"0.4793263",
"0.4792933",
"0.47902855",
"0.47891417",
"0.4784555",
"0.4782314",
"0.47795027",
"0.4778781",
"0.47740635",
"0.47733217",
"0.47692686",
"0.47660446",
"0.47634098",
"0.47624496",
"0.47613415",
"0.47608",
"0.47599864",
"0.47596762",
"0.47586775",
"0.47584543",
"0.47572345",
"0.47533315",
"0.4748147",
"0.4748147",
"0.47458008",
"0.4743205",
"0.4741697"
] | 0.6995488 | 0 |
Handle the user pressing return | private void handleLatLonWidgetChange() {
try {
double lat = latLonWidget.getLat();
double lon = latLonWidget.getLon();
double[] xyz = earthToBox(makeEarthLocation(lat, lon, 0));
setProbePosition(xyz[0], xyz[1]);
} catch (Exception exc) {
logException("Error setting lat/lon", exc);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void keyPressed(KeyEvent e) {\n if (e.getKeyCode()==KeyEvent.VK_ENTER){\n enter();\n } \n }",
"void redirectToEnterKey();",
"public void keyPressed(KeyEvent e) {\n if(e.getKeyCode()==KeyEvent.VK_ENTER){\n\n }\n }",
"public static void pressEnterToContinue() {\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Press Enter to continue...\");\n\t\tinput.nextLine();\n\t}",
"@Override\n\t\t\tpublic void handle(KeyEvent event) {\n\t\t\t\tif(event.getCode().equals(KeyCode.ENTER)){\n\t\t\t\t\tPlatform.runLater(()->{dodaj.fire(); sifra.requestFocus();});\n\t\t\t\t}\n\t\t\t}",
"@FXML\n\tprivate void onKeyReleased(KeyEvent e) {\n\t\tif (e.getCode() == KeyCode.ENTER)\n\t\t\tanswerQuestion();\n\t}",
"public boolean pressEnter () {\n if (CareerEnvironment.isMobile) {\n getDriver ().switchTo ().activeElement ().sendKeys (\"\\r\");\n return true;\n } else if (CareerEnvironment.usingIE)\n return pressKey (Keys.ENTER);\n else\n return pressKey (Keys.RETURN);\n }",
"@Override\n\t\t\t\tpublic void handle(KeyEvent event) {\n\t\t\t\t\tif(event.getCode().equals(KeyCode.ENTER))\n\t\t\t\t\t\tPlatform.runLater(()->{dugme.fire();});\n\t\t\t\t}",
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (event.getAction() == KeyEvent.ACTION_DOWN)\n if (keyCode == KeyEvent.KEYCODE_ENTER)\n {\n\n calculate();\n dismiss();\n return true;\n }\n return false;\n }",
"public String enterPressed();",
"@FXML\n\tprivate void handleReturn() {\n\t\tmainApp.showVariableOverview(\n\t\t\t\tnew CurrentDirectoryController(mainApp.getCurrentFileController().getFile().getParentFile()));\n\t}",
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if ((event.getAction() == KeyEvent.ACTION_DOWN) &&\n (keyCode == KeyEvent.KEYCODE_ENTER)) {\n irMapa();\n return true;\n }\n return false;\n }",
"protected void enterPressed()\n\t{\n\t\t// Call the enter method if the enter key was pressed\n\t\tif (showCaret)\n\t\t\tonSubmit(text.getText().substring(0, text.getText().length() - 1));\n\t\telse onSubmit(text.getText());\n\t}",
"@Click(R.id.ivReturn)\n\tvoid toReturn() {\n\t\tfinish();\n\t}",
"@Override\n protected void handleEscapeKeyPressed() {\n\n }",
"@Override\n public void handle(KeyEvent event) {\n if (event.getCode() == KeyCode.ENTER || kcUp.match(event) || kcDown.match(event)) {\n /*\n * Requests Focus for the first Field in the currently selected Tab.\n */\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n /*\n * Checks, if the KeyCombination for Next-Tab is pressed.\n */\n } else if (kcPlus.match(event)) {\n /*\n * Switches to the next Tab to the right (first One, if the rightmost Tab was already \n * selected) and requests Focus for it's first Field.\n */\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() + 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n /*\n * Checks, if the KeyCombination for Previous-Tab is pressed.\n */\n } else if (kcMinus.match(event)) {\n /*\n * Switches to the next Tab to the left (first One, if the leftmost Tab was already \n * selected) and requests Focus for it's first Field.\n */\n tabs.getSelectionModel().select(Math.floorMod(\n tabs.getSelectionModel().getSelectedIndex() - 1, 4));\n getFieldForIndex(tabs.getSelectionModel().getSelectedIndex()).requestFocus();\n }\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n int key;\n key = e.getKeyCode();\n if(key == KeyEvent.VK_ENTER){\n if(e.getSource().toString().contains(\"Return\")){\n try{\n // System.out.println(\"walal\");\n if(\"\".equals(issueReturnView.getIssueId())){\n JOptionPane.showMessageDialog(issueReturnView, \"Please Select the Issued Item to be Return\");\n return;\n }\n // System.out.println(\"walal\"); \n if(issueReturnView.getReturnQuantity().trim().isEmpty()){\n JOptionPane.showMessageDialog(issueReturnView, \"Return Quantity Can be Zero.\");\n return;\n }\n // System.out.println(issueReturnView.getReturnQuantity());\n // System.out.println(\"walal\");\n if(Float.parseFloat(issueReturnView.getReturnQuantity())> Float.parseFloat(issueReturnView.getIssueQuantity())){\n JOptionPane.showMessageDialog(issueReturnView, \"Return Quantity is greater than Issued Quantity\");\n return;\n }\n // System.out.println(\"walal\");\n int choice;\n choice = JOptionPane.showConfirmDialog(issueReturnView, \"Do You Want to Return the Item\",\"Return Item\", JOptionPane.YES_NO_OPTION);\n if(choice == JOptionPane.YES_OPTION){\n issueReturnModel.IssueReturn(issueReturnView.getIssueReturnInfo());\n issueReturnView.clearAll();\n issueReturnView.enableReturnBtn();\n }\n }\n \n catch(Exception ee){\n JOptionPane.showMessageDialog(issueReturnView, ee+\"form IssueReturnListener\");\n }\n \n }\n if(e.getSource().toString().contains(\"Cancel\")){\n issueReturnView.clearAll(); \n issueReturnView.disableReturnBtn();\n }\n if(e.getSource().toString().contains(\"Search\")){\n String strsearch;\n String[] SearchBox = new String[7];\n boolean flag = false;\n int col =1;\n try{\n strsearch = issueReturnView.getSearch();\n for(int row = 0;row<issueReturnView.tblReturnList.getModel().getRowCount();row++){\n if(strsearch.equalsIgnoreCase(issueReturnView.tblReturnList.getValueAt(row, col).toString())||strsearch.equalsIgnoreCase(issueReturnView.tblReturnList.getValueAt(row, col-1).toString())){\n for(int scol = 0;scol<issueReturnView.tblReturnList.getModel().getColumnCount();scol++){\n SearchBox[scol] = issueReturnView.tblReturnList.getValueAt(row, scol).toString();\n }\n //inorer to scrooll over the tbale\n issueReturnView.tblReturnList.scrollRectToVisible(issueReturnView.tblReturnList.getCellRect(row, 0, true));\n // for focus\n issueReturnView.tblReturnList.setRowSelectionInterval(row, row);\n// issueReturnView.setIssueReturnInfo(SearchBox);\n// issueReturnView.setFieldEditableFalse();\n// Float UnitRelativeQuantity = issueReturnModel.getUnitRelativeQuantity(issueReturnModel.getUnitIdByIssueId(issueReturnView.getIssueId()));\n// issueReturnView.setStockQuantity(String.valueOf(issueReturnModel.getStockQuantityfromResturantStore(issueReturnView.getIssueId())/UnitRelativeQuantity));\n// issueReturnView.enableReturnBtn();\n flag = true;\n break;\n \n }\n }\n \n if(flag == false){\n JOptionPane.showMessageDialog(issueReturnView, \"Item Not Found.\");\n }\n \n }\n catch(Exception sere){\n JOptionPane.showMessageDialog(issueReturnView, sere+\"from search\");\n }\n }\n }\n }",
"private void txt_montoKeyReleased(java.awt.event.KeyEvent evt) {\n if (evt.getKeyCode()==KeyEvent.VK_ENTER){\n insertarRubro();\n } \n }",
"@Override\r\n\tpublic void handle(KeyEvent keys) {\n\t\tif(keys.getCode() == KeyCode.END){\r\n\t\t\tPlatform.exit();\r\n\t\t}\r\n\t}",
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_ENTER && event.getAction() == KeyEvent.ACTION_UP) {\n //enter key has been pressed and we hide the keyboard\n hideKeyboard();\n editFinish.setCursorVisible(false);\n rootView.requestFocus();\n //return true to let it know we handled the event\n return true;\n }\n return false;\n }",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER) {\n\t\t\t\t\tsbt_jbt.doClick();\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER && e.isControlDown())\r\n\t\t\t\t{\r\n\t\t\t\t\tSend();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}",
"public void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER) {\n\t\t\t\t\tsbt_jbt.doClick();\n\t\t\t\t}\n\t\t\t}",
"public void keyPressed(KeyEvent e) {\r\n\r\n\t\tif(e == null || e.getKeyCode()==KeyEvent.VK_ENTER){\r\n\t\t\t//System.out.println(\"keypressed: Enter\");\r\n\t\t\tif (!input.getText().equals(\"\")) {\r\n\t\t\t\tinput.setEditable(false);\r\n\t\t\t\tquote[1] = Long.toString(System.currentTimeMillis());\r\n\t\t\t\tquote[0]=input.getText();\r\n\r\n\t\t\t\tinput.setText(\"\");\r\n\t\t\t\tquote[0] = quote[0].trim();\r\n\t\t\t\taddText(\"> \"+quote[0]+\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tmDispatcher.newInput(quote);\r\n\t\t\t}else{\r\n\t\t\t\tinput.setEditable(false);\r\n\t\t\t\tinput.setText(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_ENTER && event.getAction() == KeyEvent.ACTION_UP) {\n //enter key has been pressed and we hide the keyboard\n hideKeyboard();\n editPenalty.setCursorVisible(false);\n rootView.requestFocus();\n //return true to let it know we handled the event\n return true;\n }\n return false;\n }",
"private void enterPressed(java.awt.event.KeyEvent evt){\n //Check if enter was pressed\n if(evt.getKeyCode()==java.awt.event.KeyEvent.VK_ENTER){\n //If the button is enabled\n if(this.jButtonSearch.isEnabled()){\n //Simulate a click on the button\n this.jButtonSearchActionPerformed(new java.awt.event.ActionEvent(new Object(),0,\"\"));\n }\n }\n }",
"public void keyPressed(KeyEvent e) {\r\n\r\n\t\tif (getAceptarKeyLikeTabKey()) {\r\n\t\t\tint key = e.getKeyCode();\r\n\t\t\tif (key == KeyEvent.VK_ENTER) {\r\n\t\t\t\ttransferFocus();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_ENTER && event.getAction() == KeyEvent.ACTION_UP) {\n //enter key has been pressed and we hide the keyboard\n hideKeyboard();\n //return true to let it know we handled the event\n return true;\n }\n return false;\n }",
"public static void enterToContinue()\r\n\t{\r\n\t\tScanner keyboard = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Press enter to continue the game : \");\r\n\t\tkeyboard.nextLine();\r\n\t}",
"public void onKeyUp(KeyUpEvent event) {\r\n if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {\r\n handleEvent();\r\n }\r\n }",
"public void handleKeyPressEscape() {\r\n\t\thandleKeyPressed(0, Input.KEY_ESCAPE);\t\r\n\t}",
"public void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.getKeyCode()==KeyEvent.VK_ENTER){\n\t\t\t\t\te.consume();\n\t\t\t\t\t KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent();\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\tint keyCode = e.getKeyCode();\r\n\t\tif (keyCode == KeyEvent.VK_SPACE)\r\n\t\t\tSystem.exit(0);\r\n\r\n\t}",
"public void keyTraversed(TraverseEvent e) {\n \t\t\t\tif (e.detail == SWT.TRAVERSE_ESCAPE\n \t\t\t\t\t|| e.detail == SWT.TRAVERSE_RETURN) {\n \t\t\t\t\te.doit = false;\n \t\t\t\t}\n \t\t\t}",
"@FXML\r\n void enterPressed(KeyEvent event) {\r\n if(event.getCode() == KeyCode.ENTER){//sprawdzenie czy wcisinieto enter\r\n connectSerialPort();//wywolanie wyzej zdefiniowanej metody - nawiaza polaczenie + otworzenie okna glownego aplikacji\r\n }\r\n }",
"public boolean onKey(View v, int keyCode, KeyEvent event) {\n Log.e(\"event.getAction()\",event.getAction()+\"\");\n Log.e(\"event.keyCode()\",keyCode+\"\");\n if ((event.getAction() == KeyEvent.ACTION_DOWN) &&\n (keyCode == KeyEvent.KEYCODE_ENTER)) {\n\n checkAnswer();\n return true;\n }\n return false;\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\tif (e.getKeyCode()==e.VK_ENTER) {\r\n\t\t\t\t\ttfPreco.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}",
"public void keyReleased(KeyEvent e) {\r\n\t\tif(e.getKeyCode() == KeyEvent.VK_ENTER)\r\n\t\t\tverBtn.doClick();\r\n\t\tif(e.getKeyCode() == KeyEvent.VK_ESCAPE)\r\n\t\t\tcancelarBtn.doClick();\r\n\t}",
"@Override\n\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\t\tif (e.getKeyChar() == KeyEvent.VK_ENTER) getActionNewParticipant().actionPerformed(null);\n\t\t\t\t\t}",
"public void keyPressed(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER){\n\t\t\t\t\tsend(txtMessage.getText());\n\t\t\t\t}\n\t\t\t}",
"public boolean onKeyDown(int keyCode, KeyEvent event) {\n if(keyCode== 4)\n exitByBackKey();\n return super.onKeyDown(keyCode, event);\n }",
"@FXML\n\tvoid inputPass(KeyEvent event) {\n\t\tif (event.getCode().equals(KeyCode.ENTER))\n\t\t\tbtnLogin.fire();\n\t}",
"@Override\n\tpublic boolean onKey(View view, int keyCode, KeyEvent event) {\n\t\tboolean handle = false;\n\t\tif(event.getAction()==KeyEvent.ACTION_DOWN && keyCode==KeyEvent.KEYCODE_ENTER){\n\t\t\thandle = entrarUrl();\n\t\t}\n\t\treturn handle;\n\t}",
"@Override\r\n public void handle(KeyEvent ke){\n if (ke.getCode().equals(KeyCode.ENTER) || ke.getCode().equals(KeyCode.TAB)){ \r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_buscar\")){ \r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_caja(tf_buscar.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_buscar.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. Guia NO existe en la \" + ScreenName, \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n tf_buscar.setVisible(false); //establece el textField como oculto al finalizar\r\n }\r\n }\r\n }",
"public void keyPressed(KeyEvent e)\n\t\t{ int keyCode = e.getKeyCode();\n\t\tif ((keyCode == KeyEvent.VK_ESCAPE) || (keyCode == KeyEvent.VK_Q) ||\n\t\t (keyCode == KeyEvent.VK_END) ||\n\t\t ((keyCode == KeyEvent.VK_C) && e.isControlDown()) ) {\n\t\t System.exit(0); // Beaucoup trop brutal .\n\t\t} else if (e.getKeyChar() == '-') {\n\t\t model.plusLentement();\n\t\t} else if (e.getKeyChar() == '+') {\n\t\t model.plusVite();\n\t\t}\n\t\t//System.out.println(e);\n\t\t}",
"public void keyReleased(KeyEvent e) {\n if (e.getKeyCode() == 0) {\n return;\n }\n\n // Check accelerator of actions.\n if (checkActionAccelerators(e)) {\n return;\n }\n\n switch (e.getKeyCode()) {\n case KeyEvent.VK_ACCEPT:\n case KeyEvent.VK_ENTER:\n gui.openSelected();\n break;\n }\n }",
"@Override\r\n\tpublic void handle(KeyEvent event) {\n\t}",
"@Override\n\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\tif(e.getKeyCode() == KeyEvent.VK_ENTER )\n\t\t\t\tthis.convert();\n\t\t}",
"public boolean onKey(View v, int keyCode, KeyEvent event) {\n if ((event.getAction() == KeyEvent.ACTION_DOWN) &&\n (keyCode == KeyEvent.KEYCODE_ENTER)) {\n\n onQueryEventFunctionality();\n\n return true;\n }\n return false;\n }",
"public boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\tif ((event.getAction() == KeyEvent.ACTION_DOWN) &&\n\t\t\t\t\t\t(keyCode == KeyEvent.KEYCODE_ENTER)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}",
"private void pressAnyKey() {\n Scanner myScanner = new Scanner(System.in);\n System.out.println(\"Press Enter key to continue...\");\n myScanner.nextLine();\n }",
"@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0)\r\n\t\t\t{\n\t\t\t\tif(arg0.getKeyCode() == KeyEvent.VK_ENTER)\r\n\t\t\t\t{\r\n\t\t\t\t\tverify(input.getText());\r\n\t\t\t\t\tinput.setText(\"\");\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}",
"public boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t if (keyCode == KeyEvent.KEYCODE_ENTER && \n\t\t\t (event.getAction() == KeyEvent.ACTION_DOWN) || event.getAction() == KeyEvent.ACTION_MULTIPLE) {\n\t\t\t // Perform action on key press \n\t\t\t \tonSubmit();\n\t\t\t \treturn true;\n\t\t\t }\n\t\t\t return false;\n\t\t\t }",
"public void keyPressed(KeyEvent e) {\n boolean alt = e.isAltDown();\n\n if (editor == null || e.isConsumed())\n return;\n// Diagnostic.trace(Trace.KeyEvents, \"ListView.editor.keyPressed : \" + e);\n switch (e.getKeyCode()) {\n case KeyEvent.VK_ENTER:\n safeEndEdit(true);\n if (!lockSubfocus) {\n e.consume();\n fireActionEvent();\n }\n break;\n case KeyEvent.VK_ESCAPE:\n safeEndEdit(false);\n e.consume();\n break;\n case KeyEvent.VK_UP:\n case KeyEvent.VK_DOWN:\n case KeyEvent.VK_PAGE_UP:\n case KeyEvent.VK_PAGE_DOWN:\n if (!alt) {\n safeEndEdit();\n processKeyPressed(e); // pass it on\n }\n break;\n }\n }",
"public static void toContinue() {\n System.out.println(EOF + \"Presiona ENTER para continuar...\");\n new Scanner(System.in).nextLine();\n }",
"public static void pressEnterKey() {\n\t\tActions act = new Actions(Browser.Driver);\n\t\tact.sendKeys(Keys.ENTER).perform();\n\t}",
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if(keyCode==KeyEvent.KEYCODE_ENTER) {\n layout.requestFocus();\n }\n return false;\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(1));\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(3));\r\n\t\t\t}",
"@Override\r\n\tpublic boolean onKeyUp (int keyCode, KeyEvent event) {\r\n\t\tif (keyCode == KeyEvent.KEYCODE_ENTER) {\r\n\t\t\tif (mPayeeText.hasFocus()) {\r\n\t\t\t\t//sends focus to mAmountText (user pressed \"Next\")\r\n\t\t\t\tmAmountText.requestFocus();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse if (mCategoryText.hasFocus()) {\r\n\t\t\t\t//sends focus to mMemoText (user pressed \"Next\")\r\n\t\t\t\tmTagText.requestFocus();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse if (mTagText.hasFocus()) {\r\n\t\t\t\t//sends focus to mTagText (user pressed \"Next\")\r\n\t\t\t\tmMemoText.requestFocus();\r\n\t\t\t\treturn true;\r\n\t\t\t} else if (mMemoText.hasFocus()) {\r\n\t\t\t\t//closes soft keyboard (user pressed \"Done\")\r\n\t\t\t\tInputMethodManager inputManager = (InputMethodManager)\r\n\t\t\t\tgetSystemService(Context.INPUT_METHOD_SERVICE);\r\n\t\t\t\tinputManager.hideSoftInputFromWindow(mMemoText.getWindowToken\r\n\t\t\t\t\t\t(), InputMethodManager.HIDE_NOT_ALWAYS);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent e)\r\n\t{\n\t\tif (e.getKeyCode() == KeyEvent.VK_SPACE)\r\n\t\t{\r\n\t\t\tjump();\r\n\t\t}\r\n\t}",
"private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyPressed\r\n int key = evt.getKeyCode();\r\n if (key == KeyEvent.VK_ENTER) {\r\n sendMessage(jTextField1.getText());\r\n }\r\n }",
"@Override\n\tpublic void processKeyPressed(KeyEvent e) {\n\t\tsuper.processKeyPressed(e);\n\t\tif (e.isConsumed())\n\t\t\treturn;\n\n\t\tif (e.getKeyCode() == KeyEvent.VK_TAB)\n\t\t\tgameText.keyPressed();\n\t}",
"public void keyPressed(KeyEvent e) {\n\t\tif(e.getKeyCode() == KeyEvent.VK_ENTER ||e.getKeyCode() == KeyEvent.VK_DOWN){\n\t\t\tbtnConfirmOrNext.doClick();\n\t\t} else if(e.getKeyCode() == KeyEvent.VK_UP){\n\t\t\tbtnListenAgain.doClick();\n\t\t}\n\t}",
"@FXML\r\n\t public void returnAction(ActionEvent event) throws IOException {\r\n\r\n\t\t\t\tLoadGUI.loadFXML(\"SubscriberMenu.fxml\",returnButton);\r\n\t }",
"public void commandListener(KeyEvent event) {\n\t\tKeyCode code = event.getCode();\n\t\tif(code == KeyCode.ENTER) {\n\t\t\tinputBar.setText((\"entered:\" + inputBar.getText()));\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) { \n enter();\n }",
"@Override\r\n public void handle(KeyEvent ke){\n if (ke.getCode().equals(KeyCode.UP) || ke.getCode().equals(KeyCode.DOWN)){ \r\n //Selecciona la FILA enfocada\r\n selectedRowInvoice();\r\n }\r\n }",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent typedKey)\n\t\t\t{\n\t\t\t\tif(typedKey.getID() == KeyEvent.VK_ENTER)\n\t\t\t\t{\n\t\t\t\t\tgatherInfo();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"@FXML\n private void handleKeyPress(KeyEvent keyEvent) {\n switch (keyEvent.getCode()) {\n case ESCAPE:\n puWindow.close();\n break;\n default:\n // let JavaFx handle the keypress\n }\n }",
"@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER && !inputText.getText().isEmpty()) {\n\t\t\tmsgLabel[9].setForeground(myFontColor);\n\t\t\tcommunication(myName + \": \" + inputText.getText());\n\t\t\tC.send(\"Message\", inputText.getText());\n\t\t\tinputText.setText(\"\");\n\t\t}\n\t}",
"public void keyPressed (KeyEvent event)\n {\n char key = event.getKeyChar();\n if(key == 'q')\n {\n scoreWriter.println(highScore);\n scoreWriter.close();\n System.exit(0);\n }\n }",
"@FXML\r\n private void handleReturn(ActionEvent event) throws IOException {\r\n getManagingController().addScreen(\"WelcomeView.fxml\", this);\r\n getManagingController().removeScreen(this);\r\n }",
"@Override\n public void keyPressed(KeyEvent ke) {\n if (ke.getSource().equals(frmMain.getMessageBox()) && ke.getKeyCode() == KeyEvent.VK_ENTER) {\n sendContent();\n }\n }",
"public void keyDown(int keycode){\n this.heldKeys[keycode+1] = 0;\n this.showCursor = true;\n this.frameCount = 0;\n //Keys that should only be pressed once\n if(keycode == Input.Keys.ENTER){\n if(this.enterText != null) {\n this.enterText.action(this.sOut.toString());\n }\n this.sOut = new StringBuilder();\n this.curPos = 0;\n }\n }",
"@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {\n Intent returnIntent = new Intent();\n setResult(RESULT_OK, returnIntent);\n Utility.fromAdd = true;\n finish();\n return true;\n }\n return super.onKeyDown(keyCode, event);\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\tif (e.getKeyCode()==e.VK_ENTER) {\r\n\t\t\t\t\ttfNota.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\tpublic void onBackKeyPressed() {\n\t\treturn;\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\tif(e.getKeyCode()==KeyEvent.VK_ENTER) {\r\n\t\t\tcriterio = combo_campos.getSelectedIndex();\r\n\t\t\tparametro = getTf_busqueda().getText().toString();\r\n\t\t\t\r\n\t\t\tconstruirTabla(\"bus\");\r\n\t\t}\r\n\t}",
"@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {\n if (needExit()) {\n finish();\n } else {\n back();\n }\n return true;\n }\n return super.onKeyDown(keyCode, event);\n }",
"@Override\n\tpublic void onBackKeyPressed() {\n\treturn;\t\n\t}",
"@Override\r\n public void keyReleased(KeyEvent e) {\n if(e.getKeyCode()==10){ //enter key code is 10\r\n // System.out.println(\"you have pressed enter button\");\r\n String contentToSend=messageInput.getText(); //type kia hua msg nikalna\r\n messageArea.append(\"Me :\"+contentToSend+\"\\n\");\r\n out.println(contentToSend); //msg ko send krna\r\n out.flush();\r\n messageInput.setText(\"\"); //clear hoker isme text ho jayga\r\n messageInput.requestFocus();\r\n }\r\n \r\n }",
"public static void end(){\n try{\n System.out.println(\"\\nPress Enter key to continue: \");\n\t\t System.in.read();\n System.out.print(\"\\033[H\\033[2J\"); \n System.out.flush();\n }catch(Exception e){\n System.err.println(e.getMessage());\n }\n }",
"@Override\r\npublic void keyReleased(KeyEvent e) {\n\tif(e.getKeyCode()==KeyEvent.VK_ENTER) {\r\n\t\tinput.setEditable(true);\r\n\t}\r\n\t\r\n}",
"public boolean onKey(View v, int keyCode, KeyEvent event) {\n\r\n if (event.getAction() == KeyEvent.ACTION_DOWN && event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {\r\n\r\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(((EditText) v).getWindowToken(), 0);\r\n\r\n if (((EditText) v).getText().toString().equalsIgnoreCase(\"\")) {\r\n MsgBox.Show(\"Warning\", \"Scan item barcode\");\r\n } else {\r\n Cursor BarcodeItem = null;//dbBillScreen.getItem(((EditText) v).getText().toString());\r\n if (BarcodeItem.moveToFirst()) {\r\n btnClear.setEnabled(true);\r\n AddItemToOrderTable(BarcodeItem);\r\n // ((EditText)v).setText(\"\");\r\n return true;\r\n } else {\r\n MsgBox.Show(\"Warning\", \"Item not found for the above barcode\");\r\n }\r\n }\r\n }\r\n // ((EditText)v).setText(\"\");\r\n return false;\r\n }",
"@Override\n\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\trefreshData(mAutoEdit.getText().toString().trim());\n\n\t\t\tif (keyCode == KeyEvent.KEYCODE_ENTER) {\n\n\t\t\t\tInputMethodManager imm = (InputMethodManager) v.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\n\t\t\t\tif (imm.isActive()) {\n\n\t\t\t\t\timm.hideSoftInputFromWindow(v.getApplicationWindowToken(), 0);\n\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\t}\n\n\t\t\treturn false;\n\n\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\tif (e.getKeyCode()==e.VK_ENTER) {\r\n\t\t\t\t\ttfCNPJ.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}",
"public TeamListPage pressReturnButton() {\n controls.getReturnButton().click();\n return new TeamListPage();\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(0));\r\n\t\t\t}",
"public boolean keyPressed(KeyEvent e) {\n switch (e.getKeyCode()) {\n case KeyEvent.VK_SPACE:\n int[] rows = getSelectedRows();\n changeSelectOfRow(rows);\n return true;\n case KeyEvent.VK_LEFT:\n int row = getSelectedRow();\n if (isCollapsed(row)) {\n int parentRow = getParentRow(row);\n setRowSelectionInterval(parentRow, parentRow);\n scrollRowToVisible(parentRow);\n }\n collapseRow(row);\n return true;\n case KeyEvent.VK_RIGHT:\n row = getSelectedRow();\n expandRow(row);\n }\n\n return false;\n }",
"@Override\n\t\t\tpublic boolean onKeyDown (int keycode) {\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\tif (event.getAction() != KeyEvent.ACTION_DOWN) {\n\t\t\t\t\t// if the pressed key = enter we do the add code\n\t\t\t\t\tif (event.getKeyCode() == KeyEvent.KEYCODE_ENTER) {\n\t\t\t\t\t\tonClickBtAdd();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// if we dont return false our text wont get in the\n\t\t\t\t// edittext\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\r\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event)\r\n\t{\r\n\t\tif ((keyCode == KeyEvent.KEYCODE_BACK))\r\n\t\t{\r\n\t\t\tfinish();\r\n\t\t}\r\n\t\treturn super.onKeyDown(keyCode, event);\r\n\t}",
"public boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\tif (keyCode == KeyEvent.KEYCODE_ENTER) {\n\t\t\t\tAddAccountsUtils.setViewFocus(mPswEdit);// 获取光标焦点\n\t\t\t\tAddAccountsUtils.displaySoftInput(mContext, mPswEdit);// 显示键盘\n\t\t\t\tmPswEdit.setSelection(mPswEdit.getText().toString().length());// EditText设置光标在内容的最尾端\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tboolean back = true;\n\t\tif (keyCode == KeyEvent.KEYCODE_BACK) {\n\t\t\tIntent intent = new Intent();\n\t\t\tAddNewArticleActivity.this.setResult(1, intent);\n\t\t\tAddNewArticleActivity.this.finish();\n\t\t\tback = false;\n\t\t}\n\t\treturn back;\n\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\tif((int)arg0.getKeyChar() == 10)\r\n\t\t\t\t{\r\n\t\t\t\t\tsaveAction();\r\n\t\t\t\t}\r\n\t\t\t}",
"@FXML\n\tpublic void handleKeyPressedCryptoCurrency(KeyEvent event) {\n\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\tcryptoCurrency.setText(cryptoCurrency.getText());\n\t\t\ttype.requestFocus();\n\t\t}\n\t}",
"public boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\tif (keyCode == KeyEvent.KEYCODE_ENTER) {\n\t\t\t\tAddAccountsUtils.hideSoftInput(mContext, mPswEdit);// 显示键盘\n\t\t\t\tmPswEdit.setSelection(mPswEdit.getText().toString().length());// EditText设置光标在内容的最尾端\n\t\t\t\tdoCommandLogin();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"private final static void pulsaEnter() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\nPulsa Enter para continuar...\");\n\t\tkb.nextLine();\n\t}"
] | [
"0.71971637",
"0.7072786",
"0.7028639",
"0.69149804",
"0.6913861",
"0.68913376",
"0.6838856",
"0.6741206",
"0.6734525",
"0.6714212",
"0.6630196",
"0.6616848",
"0.6591255",
"0.6567893",
"0.6556297",
"0.6525749",
"0.65156186",
"0.65116847",
"0.651082",
"0.6510019",
"0.6505743",
"0.6503194",
"0.64971596",
"0.6496641",
"0.64880735",
"0.6483369",
"0.6453374",
"0.64061606",
"0.6385991",
"0.6379484",
"0.6377192",
"0.63425136",
"0.6326111",
"0.63156796",
"0.6279959",
"0.62794554",
"0.6213512",
"0.620698",
"0.62020946",
"0.62000436",
"0.6199648",
"0.61870486",
"0.61852396",
"0.6173253",
"0.6173094",
"0.61695826",
"0.61661726",
"0.61622953",
"0.6161101",
"0.6154163",
"0.613945",
"0.61149544",
"0.6110364",
"0.6099781",
"0.60874885",
"0.60543454",
"0.6051582",
"0.6031768",
"0.6025659",
"0.60192496",
"0.6010591",
"0.6007353",
"0.6002361",
"0.5996064",
"0.59904206",
"0.59780264",
"0.59731007",
"0.596567",
"0.5964548",
"0.59637374",
"0.5956472",
"0.5947928",
"0.5940469",
"0.59399134",
"0.59311855",
"0.59279746",
"0.59255534",
"0.5920318",
"0.59059024",
"0.59053475",
"0.5905049",
"0.5903338",
"0.5901218",
"0.58970207",
"0.5894227",
"0.58833283",
"0.5877757",
"0.58647865",
"0.5861496",
"0.5855671",
"0.585382",
"0.5852897",
"0.5848664",
"0.5839652",
"0.5832736",
"0.583127",
"0.5815227",
"0.5809057",
"0.5805681",
"0.5801319",
"0.579846"
] | 0.0 | -1 |
Get the DataChoice associated with the parameter at a particular row. | public DataChoice getDataChoiceAtRow(int row) {
List choices = getDataChoices();
if (row >= choices.size()) {
return null;
}
return (DataChoice) choices.get(row);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getDataValue(String column, int row);",
"Object getDataValue(final int row, final int column);",
"String getFieldName(int row) {\n return getVPInfo(row).getDataInstance().getDataChoice().getName();\n }",
"String getValue(String column, int row);",
"public Relatorio get(int row){\n\t\t\t\t\n\t\t\t\treturn valores.get(row);\n\t\t\t}",
"public boolean myChoice(int row, int column);",
"public String getChoice1(int a){\n String choice0 = choices[a][0];\n return choice0;\n }",
"public Object getValueAt(int row, int column) {\n Preso cli = lista.get(row);\n /*if (column == Id) {\n return cli.getId();\n } else*/ if (column == Nome) {\n return cli.getNome();\n } if (column == Tempo) {\n return cli.getTempo();\n } else\n\n return \"\"; //Nunca deve ocorrer \n }",
"@Override public Object getValueAt(int iRowIndex, int iColumnIndex)\r\n {\r\n Object oReturn = null;\r\n\r\n Parameter cParameter = m_alParameters.get(iRowIndex);\r\n\r\n if (cParameter != null)\r\n {\r\n switch (iColumnIndex)\r\n {\r\n case 0:\r\n oReturn = cParameter.getName();\r\n break;\r\n\r\n case 1:\r\n\r\n PropertyMetadata pm = m_mMetadata.get(cParameter.getName());\r\n if (pm != null)\r\n {\r\n oReturn = pm.getType();\r\n }\r\n break;\r\n\r\n case 2:\r\n oReturn = cParameter.getValue();\r\n break;\r\n\r\n default:\r\n oReturn = cParameter;\r\n break;\r\n }\r\n }\r\n\r\n return oReturn;\r\n }",
"public int getValue(int row, int column);",
"public Object getValueAt (int rowIdx, int colIdx)\n {\n if (colIdx == PARAM_NAME_COL_IDX)\n return (pHelpers [rowIdx].getName ());\n else if (colIdx == PARAM_VALUE_COL_IDX)\n {\n // printMsg (\" returning param value\");\n int valueType = pHelpers [rowIdx].getProeType ();\n return (BaseParameterHelper.valueToString (newValues [rowIdx],\n valueType));\n }\n else\n {\n return (null);\n }\n }",
"public Object getValueAt(int aRow, int aColumn) {\n return model.getValueAt(indexes[aRow], aColumn);\n }",
"@Override\r\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn rowData[arg0][arg1];\r\n\t}",
"public Object getValue(int aRow, int aColumn, String type) throws RowOutOfRangeException, ColumnOutOfRangeException {\n if (aRow < 0 || aRow >= rowCount) {\n throw new RowOutOfRangeException(aRow, rowCount);\n }\n if (aColumn < 0 || aColumn >= columnCount) {\n throw new ColumnOutOfRangeException(aColumn, columnCount);\n }\n \n if (aRow >= m_fetchedRowCount)\n {\n //System.out.println(\"NOT FETCHED: col = \" + aColumn + \", row = \" + aRow);\n return new WaitData(\"waiting for data...\");\n }\n \n return cellData[aRow][aColumn];\n }",
"public Object getValueAt(int row, int column) {\n\t\tString[] rowValues = this.records.get(row);\n return rowValues[column];\n\t}",
"RelDataType getParameterRowType();",
"@SuppressWarnings(\"unchecked\")\n\tpublic T get( int row, int column ) {\n\t\tString S = C + \": get(): \";\n\t\tcheckBounds( row, column, S );\n\t\treturn (T)data[row * numCols + column];\n\t}",
"@Override\n public Object getValueAt(int aRow, int aColumn) {\n return model.getValueAt(aRow, aColumn); \n }",
"public String getChoice2(int a){\n String choice1 = choices[a][1];\n return choice1;\n }",
"private IssuePost getSingleSelectedRow() {\n ListSelectionModel selectionModel = table.getSelectionModel();\n int selectedIndex = selectionModel.getLeadSelectionIndex();\n if (selectedIndex != NOT_SELECTED) {\n return table.getRowData(selectedIndex);\n }\n return null;\n }",
"public Object getValueAt(int row, int col)\n\t{\n\t\t// invalid row\n\t\tif (row < 0 || row >= m_data.rows.size())\n\t\t\treturn null;\n\t//\t\tthrow new java.lang.IllegalArgumentException(\"Row invalid\");\n\t\tif (col < 0 || col >= m_data.cols.size())\n\t\t\treturn null;\n\t//\t\tthrow new java.lang.IllegalArgumentException(\"Column invalid\");\n\t\t//\n\t\tArrayList<Object> myRow = (ArrayList<Object>)m_data.rows.get(row);\n\t\t// invalid column\n\t\tif (myRow == null || col >= myRow.size())\n\t\t\treturn null;\n\t\t// setValue\n\t\treturn myRow.get(col);\n\t}",
"public Combustivel select(int rowSelected) {\n return combs.get(rowSelected);\n }",
"public int getValue()\n { \n return table.get(getSelectedItem());\n }",
"public Object getValueAt(int rowIndex, int columnIndex) {\n final AccountFilterSelectListTableEntry entry = _data.get(rowIndex);\n switch (columnIndex) {\n case NAME_INDEX: {\n Account account = entry.getAccount();\n if (account != null) return account; // could be an account type\n return entry.getName();\n }\n case SEL_INDEX: {\n return entry.getFilterSelection();\n }\n default: {\n return N12ESelector.EMPTY;\n }\n } // switch columnIndex\n }",
"public Object getValueAt(int row, int column)\n {\n return getModel().getDataAt(row, convertColumnIndexToModel(column));\n }",
"public int getChoice() {\n\t\treturn choice;\n\t}",
"public Object getValueAt(int aRow, int aColumn) \n {\n if (rowCount >= aRow && colCount >= aColumn)\n return (rowData[aRow][aColumn]); \n else\n return(null);\n }",
"public Object getValueAt(int row, int col)\n\t{\n\t\tOrdreMatch ordreMatch = (OrdreMatch)datas.get(row);\n\t\tswitch(col)\n\t\t{\t\t\t\n\t\t\tcase 0 : // match n°\t\t\t\n\t\t\t\treturn \"\"+(ordreMatch.getNumMatch());\n\t\t\tcase 1 : // adversaire 1\n\t\t\t\treturn \"\"+ordreMatch.getAdversaire1();\n\t\t\tcase 2 : // adversaire 2\t\t\t\n\t\t\t\treturn \"\"+ordreMatch.getAdversaire2();\n\t\t\tdefault :\n\t\t\t\treturn \"\";\t\t\t\n\t\t}\n\t}",
"public Object getObject(int row, int column) {\n\t\treturn getColumn(column).getRow(subset[row]);\n\t}",
"public Choice getChoice() {\n return choice;\n }",
"public Object get(int row) {\n\t\treturn null;\n\t}",
"T getRowData(int rowNumber);",
"public String getChoice(int choiceNum) {\r\n\t\treturn choices[choiceNum].getChoice();\r\n\t}",
"private Object getEntry( Object[] row, String rrName ) {\n Integer icol = colMap_.get( rrName );\n return icol == null ? null : row[ icol.intValue() ];\n }",
"public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }",
"public Object getValueAt(int row, int column){\n return dataEntries[row][column];\n }",
"public Object getValueAt(final int rowArg, final int colArg)\n {\n int column = colArg + 1;\n int row = rowArg;\n \n if (resultSet == null) return null;\n\n try\n {\n row++;\n\n if (row == 1)\n {\n if (!resultSet.first())\n {\n log.error(\"Error doing resultSet.first\");\n return null;\n }\n currentRow = 1;\n } else\n {\n if (currentRow+1 == row)\n {\n if (!resultSet.next())\n {\n log.error(\"Error doing resultSet.next\");\n return null;\n }\n currentRow++;\n } else\n {\n if (!resultSet.absolute(row))\n {\n log.error(\"Error doing resultSet.absolute(\"+row+\")\");\n return null;\n }\n currentRow = row;\n }\n }\n return resultSet.getObject(column);\n\n } catch (SQLException ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrSQLUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(ResultSetTableModelDirect.class, ex);\n log.error(\"getValueAt\", ex);\n }\n\n return null;\n }",
"public Object getValueAt(int row, int col)\n {\n //if row is greater than the total attributes length return null\n if (row > prop_names.size() - 1)\n return null;\n\n //if column is 0 then return the name of the attribute\n //as names are stored at nth row column 0\n if (col == 0)\n return prop_names.get(row);\n\n //return null if there is no value stored for editor for that row\n if (prop_map.size() <= row)\n return null;\n\n //get the value of the attribute from editor\n return prop_map.get(row);\n //return super.getValueAt(row,color);\n }",
"public Object getValueAt(int row, int column) {\n switch(column) {\n case SECURITY_NAME_COLUMN: return allSecurities.get(row).security;\n case CURRENT_PRICE_COLUMN: return allSecurities.get(row).currentPrice;\n case NEW_PRICE_COLUMN: return allSecurities.get(row).newPrice;\n default: return \"?\";\n }\n }",
"Object getColumnValue(int colIndex);",
"public Object getValueAt(int row, int col) {\n Object listObject = radioObjects.get(row);\n switch (col) {\n case 0:\n return ((Schedule) listObject).getTitle();\n case 1:\n String startTime = this.convertDateToTime(\n ((Schedule) listObject).getStartTime()\n );\n String endTime = this.convertDateToTime(\n ((Schedule) listObject).getEndTime()\n );\n if(startTime.equals(\"n\") && endTime.equals(\"n\")){\n return \"Ingen tid angiven\";\n }else {\n return \" \" + startTime + \" till \" + endTime;\n }\n case 2:\n return ((Schedule) listObject).getEpisode();\n\n case 3:\n return this.checkBroadCastStatus(\n ((Schedule) listObject).getStartTime(),\n ((Schedule) listObject).getEndTime()\n );\n default:\n return null;\n }\n }",
"public Object getValueAt(int row, int col) {\n Noeud noeud = noeuds.get(row);\n //voici les cellules pour chaque colonne\n return switch (col) {\n case 0 -> noeud.getNomDuFichier();\n case 1 -> noeud.getMot();\n case 2 -> noeud.getFrequence();\n default -> null;\n };\n }",
"public Object getValueAt(int row, int col) {\r\n if (col == 0) {\r\n return ((ProcessVariableDescription)pvValues[row][0]).getName();\r\n }\r\n else if (col == 1) {\r\n return ((ProcessVariableDescription)pvValues[row][0]).getCategory();\r\n }\r\n else {\r\n return pvValues[row][col];\r\n }\r\n }",
"public T get(int row) {\n\t\tint index = binarysearch(array,currentnnz,row);\n\t\t\n\t\tif (index < 0 || array.at(index).row != row )\n\t\t\treturn null;\n\t\telse\n\t\t\treturn array.at(index).thing;\n\t}",
"public Object getValueAt(int row, int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\treturn expressions.get(row);\n\t\tcase 1:\n\t\t\treturn values.get(row);\n\t\t}\n\t\treturn \"\";\n\t}",
"public T getRow(int row) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter getRow\");\r\n\t\t\r\n\t\tif (row >= getRowCount() || row < 0) {\r\n\t\t\tlogger.trace(\"Exit getRow - row >= getRowCount() || row < 0\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tlogger.trace(\"Exit getRow\");\r\n\t\treturn data.get(row);\r\n\t}",
"public Object getValueAt(int row, int col)\n {\n \tProductLogger product = products.get(row);\n \tswitch (col) {\n \tcase 0 : return product.label;\n \tcase 1 : return product.info;\n \tcase 2 : return product.debug;\n \tcase 3 : return product.warning;\n \t}\n \treturn null;\n }",
"public T getSelection() {\n ButtonModel selected = buttonGroup.getSelection();\n if (selected == null) {\n return null;\n }\n T key = modelToKeyMap.get(selected);\n if (key == null) {\n throw new IllegalArgumentException(\"Key not found for selected radio button: \" + selected);\n }\n return (key != NULL ? key : null);\n }",
"@Override\n public Object getValueAt(int row, int column) {\n return this.data[row][column];\n }",
"public Object getValueAt(int row, int col) {\n\t\tList rowList = data.get(row);\n\t\tObject result = null;\n\t\tif (col<rowList.size()) {\n\t\t\tresult = rowList.get(col);\n\t\t}\n\t\t\n\t\t// _apparently_ it's ok to return null for a \"blank\" cell\n\t\treturn(result);\n\t}",
"public Object getValueAt(int row, int col)\n {\n\tif (col==0) {\n\t return smartPrescaleTable.prescaleCondition(row);\n\t} else if (col==1) {\n\t if (smartPrescaleTable.simple(row)) {\n\t\treturn smartPrescaleTable.prescale(row);\n\t } else {\n\t\treturn new Long(-1);\n\t }\n\t} else {\n\t if (smartPrescaleTable.simple(row)) {\n\t\tString pathName=smartPrescaleTable.pathName(row);\n\t\tif (smartPrescaleTable.checkHLTPathExists(pathName)) {\n\t\t return smartPrescaleTable.prescale(row)\n\t\t\t*prescaleTable.prescales(pathName).get(col-2);\n\t\t} else {\n\t\t return new Long(-1);\n\t\t}\n\t } else {\n\t\treturn new Long(-1);\n\t }\n\t}\n }",
"public String getChoice3(int a){\n String choice2 = choices[a][2];\n return choice2;\n }",
"public ParameterAPI getIndependentParameter(String name)\n throws ParameterException;",
"public java.lang.Object getChoiceValue() {\n return this._choiceValue;\n }",
"@Override\n public Object getValueAt(int row, int column) { return data[row][column]; }",
"private VerticalProfileInfo getVPInfo(int row) {\n while (row >= infos.size()) {\n VerticalProfileInfo info = new VerticalProfileInfo(this);\n infos.add(info);\n }\n VerticalProfileInfo info = (VerticalProfileInfo) infos.get(row);\n if (info.getDataInstance() == null) { // first time through\n List choices = getDataChoices();\n try {\n DataChoice dc = (DataChoice) choices.get(row);\n showWaitCursor();\n info.setDataInstance(new GridDataInstance(dc,\n getDataSelection(), getRequestProperties()));\n showNormalCursor();\n initializeVerticalProfileInfo(info);\n } catch (VisADException exc) {}\n catch (RemoteException exc) {}\n }\n return info;\n }",
"public Posto select(int rowSelected) {\n return postos.get(rowSelected);\n }",
"private Object getDataSetData(MapDataSet dataSet, DataSetColumn column) {\n \t\tif (dataSet.getRowMap().containsKey(new Integer(0))) {\n \t\t\treturn dataSet.getColumnValue(0, column.getName());\n \t\t}\n \t\telse {\n \t\t\treturn dataSet.getData(column);\n \t\t}\n \t}",
"public R getSingleSelection()\r\n {\r\n final ListSelectionModel lsm = jTable.getSelectionModel();\r\n if( lsm.isSelectionEmpty() == false )\r\n {\r\n final int row = lsm.getLeadSelectionIndex(); // or use .getJTable().getSelectedRow() for single or lsm.isSelectedIndex() for multiple selection\r\n if( row != Util.INVALID_INDEX )\r\n {\r\n final int xlatedRow = jTable.convertRowIndexToModel( row ); // has to be done with auto-sorter\r\n return provideRow( xlatedRow );\r\n }\r\n }\r\n\r\n return null;\r\n }",
"@Override\r\n public Object getValueAt(int row, int col) {\r\n Object obj = null;\r\n Venta venta = cuenta.getVentas().get(row);\r\n switch (col) {\r\n case 0:\r\n obj = venta.getCantidad();\r\n break;\r\n case 1:\r\n obj = venta.getProducto().getNombre();\r\n break;\r\n case 2:\r\n obj = venta.getProducto().getPrecioMasIva();\r\n break;\r\n case 3:\r\n obj = venta.getTotal();\r\n }\r\n return obj;\r\n }",
"public String getSelectedRowID()\n\t{\n\t\tint selectedRow = recordTable.getSelectedRow();\n\t\tString returnData = null;\n\t\tif(selectedRow==-1)\n\t\t{//If there is no row selected...\n\t\t\treturn null;\n\t\t}\n\t\treturnData = (String)recordTable.getValueAt(selectedRow, Information.FIELDID);\n\t\treturn returnData;\n\t}",
"private String getChoice() {\n return searchChoiceBox.getValue();\n }",
"public Object getValueAt(int row, int col) throws Exception{\r\n Object obj = null;\r\n if(data!= null){\r\n\tobj = ((Vector) data.elementAt(row)).elementAt(col);\r\n }\r\n return obj;\r\n }",
"public int getInt(int row, int column) {\n\t\treturn getColumn(column).getInt(subset[row]);\n\t}",
"RowValue createRowValue();",
"private <E extends Enum<E>, R extends ADatabaseRow<E>> R queryDataItem(Class<R> rowClass, Class<E> propsClass, CharSequence sql, Object... args) throws IOException {\n\t\tfinal List<R> dataItems = this.queryDataList(rowClass, propsClass, sql, args);\n\t\tif(dataItems == null || dataItems.isEmpty()) return null;\n\t\tif(dataItems.size() > 1) {\n\t\t\tlogger.info(String.format(\n\t\t\t\t\"%d records found but only one record was expected.\",\n\t\t\t\tInteger.valueOf(dataItems.size())\n\t\t\t));\n\t\t}\n\t\treturn dataItems.get(0);\n\t}",
"public Object getValueAt(int rowIndex, int columnIndex) {\n Customer p = (Customer) customers.get(rowIndex);\n\n //verifica qual valor deve ser retornado\n if (columnIndex == COL_ID) {\n return p.getId();\n } else if (columnIndex == COL_NAME) {\n return p.getName();\n }\n return \"\";\n }",
"public Object evaluate(fyiReporting.RDL.Report rpt, Row row) throws Exception {\n if (row == null)\n return null;\n \n Textbox tb;\n String t = _ArgExpr.evaluateString(rpt,row);\n if (t == null)\n return null;\n \n tb = _ReportItems[t] instanceof Textbox ? (Textbox)_ReportItems[t] : (Textbox)null;\n if (tb == null)\n return null;\n \n return tb.evaluate(rpt,row);\n }",
"public Object getValueAt(int row, int col) {\n return data[row][col];\n }",
"@Override\n\tpublic Object getValueAt(int row, int col) {\n\t\treturn data[row][col];\n\t}",
"@Override\n\tpublic Object getValueAt(int row, int col) {\n\t\treturn data[row][col];\n\t}",
"public Number getValue(int row, int column) { return this.underlying.getValue(row, column + this.firstCategoryIndex); }",
"public Object getValueAt(int rowIndex, int columnIndex) {\r\n if (table.isValidRow(rowIndex)) {\r\n return this.table.getValue(rowIndex, columnIndex);\r\n } else {\r\n return null;\r\n }\r\n }",
"public double[] getRowData(int row) {\n return data[row];\n }",
"public ProcessVariableDescription getProcessVariable(int row) {\r\n return (ProcessVariableDescription)pvValues[row][0];\r\n }",
"@Override\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn data[arg0][arg1];\n\t}",
"@Override\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn data[arg0][arg1];\n\t}",
"private Rubrica getTableRubricaSeleccionada() {\n if (tbRubrica != null) {\n List<Rubrica> tabela = tbRubrica.getSelectionModel().getSelectedItems();\n if (tabela.size() == 1) {\n final Rubrica rubricaSeleccionada = tabela.get(0);\n return rubricaSeleccionada;\n }\n }\n return null;\n }",
"protected Object getCellValue(int row, String column) {\r\n\r\n\t\t// translate\r\n\t\tif(NAME.equals(column))\r\n\t\t{\r\n\t\t\tIUnitIf unit = getId(row);\r\n\t\t\tString name = MsoUtils.getUnitName(getId(row), true);\t\t\t\r\n\t\t\treturn unit.isChanged()?name.concat(\"*\"):name;\r\n\t\t}\r\n\t\telse if(VIEW.equals(column))\r\n\t\t\treturn getId(row);\r\n\r\n\t\t// not supported\r\n\t\treturn null;\r\n\r\n\t}",
"public String getIdForRow(int row);",
"@Override\r\n public Object getValueAt(int rowIndex, int columnIndex) {\n Hashtable rowData = fixHashtables[rowIndex];\r\n return rowData.get(getColumnName(columnIndex));\r\n }",
"public ISlideDataElement getSlideDataElement(int row, int col);",
"private WebElement chooseFirstRow() {\n return getRowsFromTable().get(0);\n\n }",
"public Object getValueAt(int row, int col) {\n return data[row][col];\n }",
"public Object getValueAt(int row, int col) {\n\t\treturn data[row][col];\n\t}",
"public Object getValueAt(int row, int col) {\n\t\treturn data[row][col];\n\t}",
"@Override\n public Object getValueAt(int rowIndex, int columnIndex) {\n Spedizione rowItem = spedizioni.elementAt(rowIndex);\n //Ritorna l'oggetto\n return switch (columnIndex) {\n case 0 -> rowItem.getId();\n case 1 -> rowItem.getDestinazione();\n case 2 -> rowItem.getPeso();\n case 3 -> rowItem.getData();\n case 4 -> rowItem.getAssicurata();\n case 5 -> rowItem.getValoreAssicurato();\n case 6 -> rowItem.getStato();\n default -> \"\";\n };\n }",
"T getValueForSpinner(@IdRes int spinnerId);",
"Parameter getParameter();",
"public Object getValueAt(int row, int col) {\n\t\tDownload download = DownloadList.getInstance().getDownload(row);\n\t\tswitch (col) {\n\t\tcase 0:\n\t\t\tif(download.getFileWeb() instanceof Firmware) {\n\t\t\t\treturn ((DownloadFirmware)download).getCommercialDevice().getNomeCommerciale();\n\t\t\t} else {\n\t\t\t\treturn \"iTunes\";\n\t\t\t}\n\t\tcase 1: //versione (eventualmente anche la build)\n\t\t\tif(download.getFileWeb() instanceof Firmware) {\n\t\t\t\treturn TableLogic.getVersione(download.getProcessList().get(0).getURIString());\t\t\t\t\n\t\t\t} else {\n\t\t\t\treturn ((ItunesVersion)download.getFileWeb()).getVersionAndOs();\n\t\t\t}\n\t\tcase 2: // Size\n\t\t\treturn download.getDimension();\n\t\tcase 3: // Progress\n\t\t\treturn new Float((((float) download.getDownloadedBytes()) / (download.getDimensioneTotale())) * 100);\n\t\tcase 4: // Status\n\t\t\treturn download.getStatus();\n\t\tcase 5: // Veocita'\n\t\t\treturn download.getSpeed();\n\t\tcase 6: // Tempo rimamente\n\t\t\treturn download.getRemainingTime(); \n\t\tcase 7: //azione\n\t\t\treturn StateActionTableButton.getInstance().getButton(download.getUri().toString());\n\t\t}\n\t\treturn \"\";\n\t}",
"public Object getCell(int col, int row) {\n Vector data = ((DefaultTableModel) getModel()).getDataVector();\n return ((Vector) data.get(row)).get(col);\n }",
"public Object getObject(int row, int column) {\n return columns[column].getRow(row);\n }",
"public void getChoice()\n {\n }",
"public Row getRow(int row) throws Exception{\n\t\tif(row >= size)\n\t\t\tthrow new Exception(\"Index out of bounds\");\n\n\t\treturn rows[row];\n\t}",
"Question getQuestionInPick(String questionId);",
"public String getChoice() {\r\n\t\ttype(ConfigurationItemType.CHOICE);\r\n\t\treturn stringValue;\r\n\t}",
"@Override\r\n\tpublic Object getValueAt(int rowIndex, int columnIndex) {\n\t\treturn this.variableData.get(rowIndex).get(columnIndex);\r\n\t}",
"public Object getParamValue(int i);",
"public Object getValueAt(int iRow, int iCol) {\n \n AcceleratorNode nodeDev = this.lstDaqHware.get(iRow);\n \n switch (iCol) {\n \n case 0:\n return nodeDev;\n \n case 1:\n JProgressBar barProg = this.mapDevPBar.get(nodeDev);\n return barProg;\n \n case 2:\n JTextArea txtArea = this.mapDevMotion.get(nodeDev);\n return txtArea;\n \n default:\n return null;\n }\n }",
"public Object getValueAt(int rowIndex, int columnIndex) {\n\t\tGradoTitulo gt = (GradoTitulo) l.get(rowIndex);\r\n\t\tObject o = null;\r\n\t\ttry {\r\n\t\t\to = PropertyUtils.getProperty(gt, columns[columnIndex].getPropertyName());\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchMethodException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn o;\r\n\t}"
] | [
"0.6272917",
"0.5893469",
"0.5796401",
"0.5705605",
"0.5664314",
"0.55035144",
"0.5485336",
"0.5435703",
"0.54339564",
"0.53707826",
"0.5360278",
"0.53580636",
"0.5284943",
"0.5267366",
"0.5262052",
"0.52597123",
"0.52588195",
"0.52529395",
"0.5251409",
"0.5249293",
"0.5202302",
"0.519973",
"0.51914984",
"0.5191213",
"0.5179813",
"0.5158527",
"0.51504505",
"0.513176",
"0.5128857",
"0.5128533",
"0.51280946",
"0.5126083",
"0.5118054",
"0.5115058",
"0.5114814",
"0.5107322",
"0.5094162",
"0.5089278",
"0.50890106",
"0.50881374",
"0.5082119",
"0.5077281",
"0.50503635",
"0.50196064",
"0.5018168",
"0.50100577",
"0.5000861",
"0.4985951",
"0.49800363",
"0.49655297",
"0.49625695",
"0.49526855",
"0.49468735",
"0.49392915",
"0.49317318",
"0.4922463",
"0.49205497",
"0.48904425",
"0.4880877",
"0.487422",
"0.4861096",
"0.4854669",
"0.48437485",
"0.48435587",
"0.48287478",
"0.4828523",
"0.48283222",
"0.4827537",
"0.48211893",
"0.4819275",
"0.4819275",
"0.480977",
"0.48000312",
"0.47977462",
"0.47974598",
"0.47951493",
"0.47951493",
"0.47949278",
"0.4789405",
"0.47742197",
"0.4769602",
"0.4768498",
"0.47626632",
"0.47595853",
"0.47516242",
"0.47516242",
"0.47489598",
"0.4748331",
"0.47411272",
"0.4739327",
"0.4737667",
"0.4736164",
"0.47343507",
"0.47212386",
"0.47187027",
"0.471778",
"0.4711584",
"0.47068578",
"0.4703836",
"0.4699293"
] | 0.7972348 | 0 |
Create and initialize a new ProbeRowInfo if needed. Return it. | private VerticalProfileInfo getVPInfo(int row) {
while (row >= infos.size()) {
VerticalProfileInfo info = new VerticalProfileInfo(this);
infos.add(info);
}
VerticalProfileInfo info = (VerticalProfileInfo) infos.get(row);
if (info.getDataInstance() == null) { // first time through
List choices = getDataChoices();
try {
DataChoice dc = (DataChoice) choices.get(row);
showWaitCursor();
info.setDataInstance(new GridDataInstance(dc,
getDataSelection(), getRequestProperties()));
showNormalCursor();
initializeVerticalProfileInfo(info);
} catch (VisADException exc) {}
catch (RemoteException exc) {}
}
return info;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}",
"protected HpccRow() {\n this.schema = null;\n this.fieldList = null;\n this.fieldMap = null;\n }",
"private Row.SimpleBuilder rowBuilder()\n {\n if (rowBuilder == null)\n {\n rowBuilder = updateBuilder.row();\n if (noRowMarker)\n rowBuilder.noPrimaryKeyLivenessInfo();\n }\n\n return rowBuilder;\n }",
"Row createRow();",
"private RowData() {\n initFields();\n }",
"private void initRowSource() {\n\t\tRowStructure rs = new RowStructure(6);\n\t\trs.add(\"EMP_ID\", StringType.get());\n\t\trs.add(\"EMP_FULLNAME\", StringType.get());\n\t\trs.add(\"Work Date\", StringType.get());\n\t\trs.add(\"Start Time\t\t\", StringType.get());\n\t\trs.add(\"End Time\t\t\", StringType.get());\n\t\trs.add(\"Time Worked (mins)\", StringType.get());\n\t\trowDefinition = new RowDefinition(-1, rs);\n\t}",
"public static org.apache.gora.cascading.test.storage.TestRow.Builder newBuilder() {\n return new org.apache.gora.cascading.test.storage.TestRow.Builder();\n }",
"@Override\n public Object[] createRow() {\n ObjectDescriptor.TypeObject newTypeObjectInstance = ObjectDescriptor.newInstance();\n List<PropertyDescriptor> descriptors = typeObjectDescriptor.getObjectProperties();\n InitValuesFiller.fill(newTypeObjectInstance, descriptors);\n\n return new Object[]{ StringUtils.EMPTY, newTypeObjectInstance };\n }",
"RowValues createRowValues();",
"public void initialize() {\n resultsTable.setItems(null);\n resultsTable.setRowFactory(tv -> {\n TableRow<SuperAgentAppRecord> row = new TableRow<>();\n // Open window if row double-clicked\n row.setOnMouseClicked(event -> {\n if (event.getClickCount() == 2 && (!row.isEmpty())) {\n SuperAgentAppRecord rowData = row.getItem();\n try {\n // Open selected row in new window\n displayInspectApplications(rowData);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n return row;\n });\n }",
"public void acceptRow( Object[] row ) {\n nrow_++;\n\n /* Get values using the column lookup table.\n * In fact we know what sequence the columns are in so we could\n * hard code the colum indices in here, but doing it like this\n * reduces the chance of programming error. */\n final String ivoid = getString( row, \"ivoid\" );\n final String shortName = getString( row, \"short_name\" );\n final String title = getString( row, \"res_title\" );\n final String refUrl = getString( row, \"reference_url\" );\n final String baseRole = getString( row, \"base_role\" );\n final String roleName = getString( row, \"role_name\" );\n final String email = getString( row, \"email\" );\n final Object intfIndex = getEntry( row, \"intf_index\" );\n final String accessUrl = getString( row, \"access_url\" );\n final String standardId = getString( row, \"standard_id\" );\n final String capType = getString( row, \"cap_type\" );\n final String capDescription = getString( row, \"cap_description\" );\n final String stdVersion = getString( row, \"std_version\" );\n final String subjectTxt = getString( row, \"res_subjects\" );\n\n /* Update this object's data structures in accordance with the\n * information received from this row. */\n if ( ! resMap_.containsKey( ivoid ) ) {\n String[] subjects = subjectTxt == null\n ? new String[ 0 ]\n : subjectTxt.split( SUBJECT_DELIM );\n resMap_.put( ivoid,\n new RegTapResource( ivoid, shortName, title,\n refUrl, subjects ) );\n }\n RegTapResource resource = resMap_.get( ivoid );\n if ( \"contact\".equals( baseRole ) ) {\n resource.contactName_ = roleName;\n resource.contactEmail_ = email;\n }\n else if ( \"publisher\".equals( baseRole ) ) {\n resource.publisherName_ = roleName;\n }\n if ( intfIndex != null ) {\n if ( ! resource.capMap_.containsKey( intfIndex ) ) {\n resource.capMap_.put( intfIndex,\n new RegCapabilityInterface() {\n public String getAccessUrl() {\n return accessUrl;\n }\n public String getStandardId() {\n return standardId;\n }\n public String getXsiType() {\n return capType;\n }\n public String getDescription() {\n return capDescription;\n }\n public String getVersion() {\n return stdVersion;\n }\n } );\n }\n }\n }",
"private static boolean[] initRow(int rowNumber){\n boolean[] row = new boolean[TOTAL_TILES];\n\n while(rowNumber % TILES_PER_ROW != 0){\n row[rowNumber] = true;\n rowNumber++;\n }\n return row;\n }",
"public Builder addProbeFieldsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureProbeFieldsIsMutable();\n probeFields_.add(value);\n onChanged();\n return this;\n }",
"public int getProbeRow(int column, int row);",
"private Row() {\n }",
"public static Row createRow(String[] rowAsArray, int lineCount) {\n\n\t\t//Row is initialized to null so that we don't get an error if ININC is blank\n\t\t//Row object requires ININC number in constructor\n\t\tRow outputRow = new Row(lineCount);\n\n\t\t//First check if ININC column is empty for current row data\n\t\tif(rowAsArray[11].isEmpty()) {\n\t\t\tGUI.sendError(\"Error: ININC# does not exist for row \"+lineCount+\".\");\n\t\t}\n\t\telse {\n\t\t\t//If not, try to parse what is there\n\t\t\t//It should be a long integer\n\t\t\ttry {\n\t\t\t\toutputRow.setIninc(Long.parseLong(rowAsArray[11]));\n\t\t\t}\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t//Otherwise we get an error and this row is set to invalid\n\t\t\t\t//A message is printed informing what the error is and the line in which the error occurred\n\t\t\t\tGUI.sendError(\"Error: ININC# is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\t\toutputRow.setValid(false);\n\t\t\t}\n\t\t}\n\n\n\t\t//try/catch for INPRTY\n\t\t//Any numerical values have to be parsed, which allows for an exception if the String is not numerical\n\t\t//The try/catch statements handle the NumberFormatException that could potentially be thrown\n\t\ttry {\n\t\t\toutputRow.setPriority((int) Double.parseDouble(rowAsArray[0]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t//If there is not a valid number where there should be, print an error and set this row to invalid\n\t\t\t//Data in this row must be corrected in GUI to make it valid again\n\t\t\tGUI.sendError(\"Error: INPRTY is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//address block\n\t\t//error handling tbd\n\t\toutputRow.setAddress(rowAsArray[1].trim());\n\n\t\tif(rowAsArray[2] != null) {\n\t\t\toutputRow.setCross(rowAsArray[2].trim());\n\t\t}\n\t\telse {\n\t\t\toutputRow.setCross(\"\");\n\t\t}\n\t\t//end address block\n\n\n\t\t//Date block\n\t\t//DateTimeFormatter is created to specify format that we expect the date/time to be in\n\t\t//This is consistent with what is usually found in the Excel/CSV\n\t\t//If the date/time read from CSV is not able to be read by this formatter, an error will be thrown\n\t\t//And this line of data will not be included\n\t\tDateTimeFormatter dateAndTimeFormatter = DateTimeFormatter.ofPattern(\"M/d/yyyy H:mm[:ss]\");\n\t\ttry {\n\t\t\toutputRow.setDispatch(LocalDateTime.parse(rowAsArray[3].trim(), dateAndTimeFormatter));\n\t\t\toutputRow.setArrive(LocalDateTime.parse(rowAsArray[4].trim(), dateAndTimeFormatter));\n\t\t}\n\t\tcatch (DateTimeParseException e) {\n\t\t\tGUI.sendError(\"Error: could not parse dispatch and/or arrive time for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\t//See above comments about parsing numbers\n\t\t//This block attempts to parse the RESPONSE variable as a double\n\t\ttry {\n\t\t\toutputRow.setResponseDouble(Double.parseDouble(rowAsArray[5]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: RESPONSE is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//If parsing was successful, we can also check that the number parsed is still valid\n\t\t//Response time logically must be at least zero, so any negative response time results in a warning\n\t\t//Warning (as opposed to error) means the row will still be valid, but there is possibly something wrong with the data\n\t\tif(outputRow.getResponseDouble() < 0) {\n\t\t\tGUI.sendInfo(\"Warning: RESPONSE is invalid (less than zero) for row \"+lineCount+\".\");\n\t\t\tGUI.sendInfo(\"This will be overwritten by a manually calculated response time, but still worth noting.\");\n\t\t}\n\n\n\t\toutputRow.setStaffing(rowAsArray[6].trim());\n\t\t//Quick validation check to ensure Staffing is either Volunteer or Career Staffing\n\t\tif(outputRow.getStaffing().toLowerCase().compareTo(\"volunteer\") != 0 && outputRow.getStaffing().toLowerCase().compareTo(\"career staff\") != 0) {\n\t\t\tGUI.sendError(\"Error: Staffing is unexpected value (neither Volunteer nor Career Staffing) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\t//The following code ensures that the day of week is a valid day of week\n\t\t//Since is this isn't an entirely essential variable, a warning is thrown if day of week is invalid\n\t\t//Again, the data will still be included, but it does suggest there is an issue with it\n\t\toutputRow.setDay(rowAsArray[7].trim());\n\t\tswitch (outputRow.getDay().toLowerCase()) {\n\t\tcase \"monday\":\n\t\t\tbreak;\n\t\tcase \"tuesday\":\n\t\t\tbreak;\n\t\tcase \"wednesday\":\n\t\t\tbreak;\n\t\tcase \"thursday\":\n\t\t\tbreak;\n\t\tcase \"friday\":\n\t\t\tbreak;\n\t\tcase \"saturday\":\n\t\t\tbreak;\n\t\tcase \"sunday\":\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tGUI.sendError(\"Error: Day of Week is invalid for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t\tbreak;\n\t\t}\n\n\n\t\t//SSA validation moved to row class\n\t\toutputRow.setSsa(rowAsArray[8].trim());\n\n\t\t//Try/catch for district number to ensure data is numerical and avoid error causing crash\n\t\ttry {\n\t\t\toutputRow.setDistrict((int) Double.parseDouble(rowAsArray[9]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: District number is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//moved district number validation to row class\n\n\n\t\t//not sure about validation for these\n\t\toutputRow.setInori(rowAsArray[10].trim());\n\t\toutputRow.setInunit(rowAsArray[12].trim());\n\t\toutputRow.setInbdg(rowAsArray[13].trim());\n\t\toutputRow.setInitype(rowAsArray[14].trim());\n\n\n\t\t//INSECT variable is numerical so try/catch to avoid errors\n\t\ttry {\n\t\t\toutputRow.setInsect((int) Double.parseDouble(rowAsArray[15]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: INSECT is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//see above comments on numerical variables\n\t\ttry {\n\t\t\toutputRow.setCadinc(Long.parseLong(rowAsArray[16]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: CAD_INC is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//Service_type should be either FIRE or EMS\n\t\t//We can check this easily, if it is neither than throw an error and skip this row of data\n\t\t//Subject to change \n\t\tif(rowAsArray[17].compareTo(\"FIRE\") == 0) {\n\t\t\toutputRow.setServiceType(ServiceType.FIRE);\n\t\t}\n\t\telse if (rowAsArray[17].compareTo(\"EMS\") == 0) {\n\t\t\toutputRow.setServiceType(ServiceType.EMS);\n\t\t}\n\t\telse {\n\t\t\tGUI.sendError(\"Error: SERVICE_TYPE is invalid for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\toutputRow.setFua(rowAsArray[18].trim());\n\n\n\t\tif(outputRow.getDispatchTime() != null && outputRow.getArriveTime() != null) {\n\t\t\t//for calculating response time\n\t\t\t//first calculates total number of minutes between dispatch and arrive\n\t\t\tint responseTimeMinutesValue = (int) ChronoUnit.MINUTES.between(outputRow.getDispatchTime(), outputRow.getArriveTime());\n\t\t\tint responseTimeHoursValue = 0;\n\t\t\t//If minutes is 60 or greater, than response time is over an hour, so we have to account for that\n\t\t\twhile(responseTimeMinutesValue > 59) {\n\t\t\t\tresponseTimeMinutesValue -= 60;\n\t\t\t\tresponseTimeHoursValue++;\n\t\t\t}\n\t\t\t//Once hours and minutes are calculated, move on to seconds\n\t\t\tint responseTimeSecondsValue = (int) ChronoUnit.SECONDS.between(outputRow.getDispatchTime(), outputRow.getArriveTime());\n\t\t\t//Here we check to ensure that DISPATCH comes before ARRIVE, otherwise throw an error since we have a time traveler on our hands\n\t\t\tif(responseTimeSecondsValue < 0) {\n\t\t\t\tGUI.sendError(\"Error: Response time less than zero (calculated from Dispatch and Arrive) for row \"+lineCount+\".\");\t\n\t\t\t\toutputRow.setValid(false);\n\t\t\t}\n\t\t\t//Assuming that check passes, we can finalize the value of the seconds variable by calculating it modulo 60\n\t\t\tresponseTimeSecondsValue = responseTimeSecondsValue%60;\n\n\t\t\t//now make sure hours is 23 or less\n\t\t\tif(responseTimeHoursValue > 23) {\n\t\t\t\tresponseTimeHoursValue = 23;\n\t\t\t\tGUI.sendError(\"Error: Response time exceeds 1 day for row \"+lineCount+\". Response time value in table may not be accurate; check Dispatch and Arrival times.\");\n\t\t\t}\n\t\t\t//Then use the calculated variables for hours, minutes, and seconds to create the responseTime variable\n\t\t\tLocalTime responseTime = LocalTime.of(responseTimeHoursValue, responseTimeMinutesValue, responseTimeSecondsValue);\n\t\t\toutputRow.setResponseTime(responseTime);\n\t\t}\n\t\telse {\n\t\t\tGUI.sendError(\"Error: Dispatch and/or Response time are null for row \"+lineCount+\", so response time could not be calculated.\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//Now that all of the data has been imported into the Row object, return the Row object so it can be added to ArrayList\n\t\treturn outputRow;\n\t}",
"protected int getProbe(int row) {\r\n return this.clusters[this.clusterIndex][row];\r\n }",
"public ActiveRowMapper() {\n\t}",
"private RowMapper<Object[]> getInitalWorkerMapper () {\n\t\treturn new RowMapper<Object[]>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object[] mapRow(ResultSet rs, int rowIndex) throws SQLException {\n\t\t\t\t\n\t\t\t\tResultSetMetaData rsMeta = rs.getMetaData();\n\t\t\t\t\n\t\t\t\tcolCount = rsMeta.getColumnCount() ;\n\t\t\t\tObject[] retval = new Object[colCount];\n\t\t\t\tanalizeQueryResultMetaData(rsMeta, metaData.getDecimalColumns()); \n\t\t\t\tsetRowMapper(getNormalWorkerMapper());\n\t\t\t\tfor ( int i=0 ; i < colCount;i++){\n\t\t\t\t\tretval[i] = rs.getObject(i+1);\n\t\t\t\t}\n\t\t\t\treturn retval;\n\t\t\t}\n\t\t};\n\t}",
"private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}",
"public static org.apache.gora.cascading.test.storage.TestRow.Builder newBuilder(org.apache.gora.cascading.test.storage.TestRow other) {\n return new org.apache.gora.cascading.test.storage.TestRow.Builder(other);\n }",
"Row<T> createRow(final T element);",
"RowValue createRowValue();",
"@Override\n public Participant apply(Row row) {\n return new Participant(row.getString(0), row.getString(1), row.getString(2), row.getString(3), row.getString(4),\n row.getBoolean(5));\n }",
"public Probe getProbe() {\n\treturn null;\n }",
"public Row(BaseTable table) {\n this.table = table;\n }",
"@Override\n\t\tpublic Info createFromParcel(Parcel source) {\n\t\t\treturn new Info(source);\n\t\t}",
"public void initialize(RestRequestTestData rowData) throws IOException {\n\t\t\n\t\t\n\t\tbaseUrl\t\t = (rowData.getBaseURL()!= null)?rowData.getBaseURL():\"\";\n\t\trequestURL = baseUrl + rowData.getApi();\n\t\theaderKey = (rowData.getHeader_Key()!= null)?rowData.getHeader_Key():\"\";\n\t\theaderValue = (rowData.getHeader_Value()!= null)?rowData.getHeader_Value():\"\";\n\t\trequestName = (rowData.getRequest_Name()!= null)?rowData.getRequest_Name():\"\";\n\t\trequestParam = (rowData.getRequest_Parameters()!= null)?rowData.getRequest_Parameters():\"\";\n\t\texpectedResponseCode = (rowData.getExpected_Response_Code()!= null)?rowData.getExpected_Response_Code():\"\";\n\t\trequestMethod = (rowData.getRequest_Method()!= null)?rowData.getRequest_Method():\"\";\n\t\tcontentType = (rowData.getContentType()!= null)?rowData.getContentType():\"\";\n\t\trequestBody = generateValidRequestBody(requestName, requestParam);\n\t\terrorName = (rowData.getError_Name()!= null)?rowData.getError_Name():\"\";\n\t\tresponseKeySet = (rowData.getResponse_Keys()!= null)?rowData.getResponse_Keys():\"\";\n\t\turlParameters = (rowData.getUrl_Parameters()!= null)?rowData.getUrl_Parameters():\"\";\n\t\trequestValues = (rowData.getRequest_Values()!= null)?rowData.getRequest_Values():\"\";\n\t\tfileUploadSrcPath = (rowData.getFile_Src_Path()!= null)?rowData.getFile_Src_Path():\"\";\n\t\ttcid \t\t\t\t = rowData.getTcid().trim();\n\t\t\n\t\tif(rowData.getAuth_Service().trim().equalsIgnoreCase(\"YES\")){\n\t\t\tisLoginRequired = true;\n\t\t}\n\t\telse{\n\t\t\tisLoginRequired = false;\n\t\t}\n\t}",
"protected void addRowAttributes(TableRowBuilder row) {\n }",
"public LazyHBaseRow(LazySimpleStructObjectInspector oi) {\n super(oi);\n }",
"private Shelf fillShelf(ResultSet rs) throws SQLException{\n Shelf shelf = new Shelf();\n shelf.setId(rs.getInt(\"id\"));\n shelf.setColumn(rs.getInt(\"col\"));\n shelf.setRow(rs.getInt(\"row\"));\n shelf.setMaxWeight(rs.getDouble(\"maxWeight\"));\n shelf.setCapacity(rs.getInt(\"capacity\"));\n shelf.setSecure(rs.getBoolean(\"secure\"));\n return shelf;\n }",
"private void instantiateProbes() {\n\t\tString probe_str = this.config.getProperty(\"probes.include\", \"all\");\n\t\tString probe_exclude_str = this.config.getProperty(\"probes.exclude\", \"\");\n\t\tString probe_external = this.config.getProperty(\"probes.external\", \"\");\n\t\t\t\t\n\t\ttry {\n\t\t\tArrayList<String> availableProbeList = this.listAvailableProbeClasses();\n\t\t\t//user wants to instantiate all available probes with default params\n\t\t\t//TODO - allow user to parameterize probes when selecting to add all probes\n\t\t\tif (probe_str.equals(\"all\")) {\n\t\t\t\tfor(String s : availableProbeList) \n\t\t\t\t\tthis.probes.put(s, null);\n\t\t\t\t\n\t\t\t\t//user wants to instantiate all available probes except the ones specified for exclusion\n\t\t\t\tif (!probe_exclude_str.equals(\"\")) {\n\t\t\t\t\tString[] probe_list = probe_exclude_str.split(\";\");\n\t\t\t\t\tfor(String s:probe_list)\n\t\t\t\t\t\tthis.probes.remove(s.split(\",\")[0]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//instantiate\n\t\t\t\tfor(Entry<String,IProbe> p:this.probes.entrySet()){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tIProbe tempProbe = JCProbeFactory.newInstance(PROBE_LIB_PATH, p.getKey());\n\t\t\t\t\t\ttempProbe.attachQueue(this.queue);\n\t\t\t\t\t\ttempProbe.attachLogger(this.logger);\n\t\t\t\t\t\tp.setValue(tempProbe);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (CatascopiaException e) {\n\t\t\t\t\t\tthis.writeToLog(Level.SEVERE, e);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//user wants to instantiate specific probes (and may set custom params)\n\t\t\telse{\n\t\t\t\tString[] probe_list = probe_str.split(\";\");\n\t\t\t\tfor(String s:probe_list) {\n\t\t\t\t\ttry{\n\t\t\t\t\t\tString[] params = s.split(\",\");\n\t\t\t\t\t\tIProbe tempProbe = JCProbeFactory.newInstance(PROBE_LIB_PATH,params[0]);\n\t\t\t\t\t\ttempProbe.attachQueue(this.queue);\n\t\t\t\t\t\ttempProbe.attachLogger(this.logger);\n\t\t\t\t\t\tif(params.length > 1) //user wants to define custom collecting period\n\t\t\t\t\t\t\ttempProbe.setCollectPeriod(Integer.parseInt(params[1]));\n\t\t\t\t\t\tthis.probes.put(params[0], tempProbe);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (CatascopiaException e) {\n\t\t\t\t\t\tthis.writeToLog(Level.SEVERE, e);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//activate Agent probes\n\t\t\tthis.activateAllProbes();\n\t\t\t\n\t\t\t//deploy external probes located in a custom user-defined path\n\t\t\tif (!probe_external.equals(\"\")) {\n\t\t\t\tString[] probe_list = probe_external.split(\";\");\n\t\t\t\tfor(String s:probe_list){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tString[] params = s.split(\",\");\n\t\t\t\t\t\tString pclass = params[0];\n\t\t\t\t\t\tString ppath = params[1];\n\t\t\t\t\t\tthis.deployProbeAtRuntime(ppath, pclass);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (ArrayIndexOutOfBoundsException e){\n\t\t\t\t\t\tthis.writeToLog(Level.SEVERE, \"External Probe deployment error. Either the probe class name of classpath are not correctly provided\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t\t//log probe list added to Agent\n\t\t\tString l = \" \";\n\t\t\tfor(Entry<String,IProbe> entry:this.probes.entrySet())\n\t\t\t\tl += entry.getKey() + \",\";\n\t\t\tthis.writeToLog(Level.INFO,\"Probes Activated: \"+l.substring(0, l.length()-1));\n\t\t}\n\t\tcatch (CatascopiaException e){\n\t\t\tthis.writeToLog(Level.SEVERE, e);\n\t\t}\n\t}",
"public HpccRow(Object[] rowFields, StructType rowSchema) {\n this.schema = rowSchema;\n this.fieldList = new Object[rowFields.length];\n this.fieldMap = new HashMap<String,Integer>(2*rowFields.length);\n String[] fieldNames = rowSchema.fieldNames();\n for (int i=0; i<rowFields.length; i++) {\n this.fieldList[i] = rowFields[i];\n fieldMap.put(fieldNames[i], new Integer(i));\n }\n }",
"private GeneListAnalysis setupGeneListAnalysisValues(String[] dataRow) {\r\n\r\n \t//log.debug(\"in setupGeneListAnalysisValues\");\r\n \t//log.debug(\"dataRow= \"); new Debugger().print(dataRow);\r\n\r\n \tGeneListAnalysis newGeneListAnalysis = new GeneListAnalysis();\r\n\r\n\t\tnewGeneListAnalysis.setAnalysis_id(Integer.parseInt(dataRow[0]));\r\n newGeneListAnalysis.setDescription(dataRow[1]);\r\n newGeneListAnalysis.setGene_list_id(Integer.parseInt(dataRow[2]));\r\n newGeneListAnalysis.setCreate_date_as_string(dataRow[3]);\r\n\t\tnewGeneListAnalysis.setCreate_date(new ObjectHandler().getDisplayDateAsTimestamp(dataRow[3]));\r\n newGeneListAnalysis.setUser_id(Integer.parseInt(dataRow[4]));\r\n\t\tnewGeneListAnalysis.setCreate_date_for_filename(dataRow[5]);\r\n\t\tnewGeneListAnalysis.setAnalysis_type(dataRow[6]);\r\n\t\tnewGeneListAnalysis.setVisible(Integer.parseInt(dataRow[7]));\r\n newGeneListAnalysis.setName(dataRow[8]);\r\n newGeneListAnalysis.setStatus(dataRow[9]);\r\n newGeneListAnalysis.setPath(dataRow[10]);\r\n\t\tif (dataRow.length>11 && dataRow[11] != null && !dataRow[11].equals(\"\")) {\r\n\t\t\tnewGeneListAnalysis.setParameter_group_id(Integer.parseInt(dataRow[11]));\r\n\t\t} else {\r\n\t\t\tnewGeneListAnalysis.setParameter_group_id(-99);\r\n\t\t}\r\n \r\n //check for long running probably an error\r\n if(newGeneListAnalysis.getStatus()!=null && newGeneListAnalysis.getStatus().equals(\"Running\")){\r\n java.util.Date cur=new java.util.Date();\r\n long diff=cur.getTime()-newGeneListAnalysis.getCreate_date().getTime();\r\n if(diff>excessiveTimeLimit){\r\n newGeneListAnalysis.setStatus(\"Error\");\r\n }\r\n }\r\n\r\n \treturn newGeneListAnalysis;\r\n \t}",
"@Override\n\t\tpublic KhachHang mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\tKhachHang kh=new KhachHang();\n\t\t\tkh.setMaKH(rs.getString(1));\n\t\t\tkh.setAddress(rs.getString(2));\n\t\t\tkh.setName(rs.getString(3));\n\t\t\tkh.setPhoneNum(rs.getString(4));\n\t\t\treturn kh;\n\t\t}",
"@Override\r\n\t\tpublic Registration mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\tRegistration registration = new Registration();\r\n\t\t\tregistration.setId(rs.getLong(\"id\"));\r\n\t\t\tregistration.setName(rs.getString(\"name\"));\r\n\t\t\tregistration.setAddress(rs.getString(\"address\"));\r\n\t\t\r\n\t\t\treturn registration;\r\n\t\t}",
"public ProbingHashClass()\n {\n tableSize = DEFAULT_TABLE_SIZE;\n probeFlag = LINEAR_PROBING;\n tableArray = new StudentClass[tableSize];\n }",
"@Override\r\n public void init() throws HarvesterException {\r\n JsonSimple options = new JsonSimple(getJsonConfig().getObject(\"harvester\", \"csv\"));\r\n \r\n String filePath = options.getString(null, \"fileLocation\");\r\n if (filePath == null) {\r\n throw new HarvesterException(\"No data file provided!\");\r\n }\r\n File csvDataFile = new File(filePath);\r\n if (csvDataFile == null || !csvDataFile.exists()) {\r\n throw new HarvesterException(\"Could not find CSV file '\" + filePath + \"'\");\r\n }\r\n filename = csvDataFile.getName();\r\n \r\n idPrefix = options.getString(\"\", \"recordIDPrefix\");\r\n maxRows = options.getInteger(-1, \"maxRows\");\r\n ignoredFields = getStringList(options, \"ignoreFields\");\r\n includedFields = getStringList(options, \"includedFields\");\r\n payloadId = options.getString(DEFAULT_PAYLOAD_ID, \"payloadId\");\r\n batchSize = options.getInteger(DEFAULT_BATCH_SIZE, \"batchSize\");\r\n hasMore = true;\r\n \r\n try {\r\n // open the CSV file for reading\r\n Reader fileReader = new InputStreamReader(new FileInputStream(csvDataFile), \"UTF-8\");\r\n char delimiter = options.getString(String.valueOf(DEFAULT_DELIMITER), \"delimiter\").charAt(0);\r\n csvReader = new CSVReader(fileReader, delimiter);\r\n \r\n // configure the data fields\r\n if (options.getBoolean(true, \"headerRow\")) {\r\n dataFields = Arrays.asList(csvReader.readNext());\r\n } else {\r\n dataFields = getStringList(options, \"headerList\");\r\n }\r\n \r\n // check that the specified id column is valid\r\n idColumn = options.getString(null, \"idColumn\");\r\n if (idColumn != null && !dataFields.contains(idColumn)) {\r\n throw new HarvesterException(\"'\" + idColumn + \"' is invalid!\");\r\n }\r\n } catch (IOException ioe) {\r\n throw new HarvesterException(ioe);\r\n }\r\n }",
"public LOVLocationViewRowImpl() {\n }",
"public static ParkingProfile init(String pathToParkingProfilePropertiesFile) throws Exception {\n if(\"Check for multiprofile enabled in propetties file\") {\n // Create singleton and set values\n return parkingProfile;\n } else {\n // Allow to create nultiple and set values\n return new ParkingProfile();\n }\n }",
"Rows createRows();",
"private void loadVillage(HashMap<String, String> info) {\n\t\tsuper.init(info);\n\t}",
"Information createInformation();",
"private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }",
"public StubReport() {\n\t\t\thashMapDB = new HashMap<String, HashMap<Integer, String>>();\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(1, \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\");\n\t\t\tparkReportData.put(2,\n\t\t\t\t\t\"12 88 28 60 28 0 76 40 20 32 76 0 16 96 0 96 0 0 60 56 28 56 28 0 60 28 0 56 0 0 92 28 0 44 28 0\");\n\t\t\tparkReportData.put(3, \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\");\n\t\t\thashMapDB.put(\"Haifa Park\", parkReportData);\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(4, \"1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1\");\n\t\t\tparkReportData.put(5, \"1 2 7 4 7 6 7 7 0 8 7 0 7 7 7 0 7 0 7 5 7 5 7 6 7 7 7 8 7 5 7 6 7 5 7 7\");\n\t\t\tparkReportData.put(6,\n\t\t\t\t\t\"11 22 33 44 55 66 17 23 5 8 4 2 3 2 54 34 2 32 1 61 1 75 32 46 12 67 23 82 12 56 32 36 12 85 232 7\");\n\t\t\thashMapDB.put(\"Tel-Aviv Park\", parkReportData);\n\n\t\t\tparkReportData = new HashMap<Integer, String>();\n\t\t\tparkReportData.put(7, \"1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 1\");\n\t\t\tparkReportData.put(8, \"1 2 3 4 5 6 0 0 0 8 9 0 3 0 4 0 6 0 0 5 5 5 0 6 0 7 0 8 0 5 0 6 0 5 0 7\");\n\t\t\tparkReportData.put(9, \"1 2 3 4 5 6 1 23 2 8 9 2 3 2 4 3 2 2 1 1 1 5 32 6 12 7 23 8 12 5 32 6 12 5 23 7\");\n\t\t\thashMapDB.put(\"Safed Park\", parkReportData);\n\t\t}",
"@Override\n\t\t\t\t\t\tpublic Employee mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\t\t\tEmployee emp = new Employee();\n\t\t\t\t\t\t\temp.setEmployeeId(rs.getInt(\"empid\"));\n\t\t\t\t\t\t\temp.setFirstName(rs.getString(\"fname\"));\n\t\t\t\t\t\t\temp.setLastName(rs.getString(\"lname\"));\n\t\t\t\t\t\t\temp.setEmail(rs.getString(\"email\"));\n\t\t\t\t\t\t\temp.setDesignation(rs.getString(\"desig\"));\n\t\t\t\t\t\t\temp.setLocation(rs.getString(\"location\"));\n\t\t\t\t\t\t\temp.setSalary(rs.getInt(\"salary\"));\n\t\t\t\t\t\t\treturn emp;\n\t\t\t\t\t\t}",
"public GMUserData mapRow(ResultSet rs, int rowNum) throws SQLException {\n\n\t\tGMUserData pd = new GMUserData();\n\t\tpd.setId(rs.getLong(\"id\"));\n\t\tpd.setUname(rs.getString(\"uname\"));\n\t\tpd.setPw(rs.getString(\"pw\"));\n\t\tpd.setPower(rs.getInt(\"power\"));\n\t\t\n\t\treturn pd;\n\t}",
"public ProductTableRowModel(WebElement row) {\n this.productTypeLink = TableUtils.getAllCells(row).get(0).findElement(By.tagName(\"a\"));\n this.productNameLink = TableUtils.getAllCells(row).get(1).findElement(By.tagName(\"a\"));\n this.productStatusLabel = TableUtils.getAllCells(row).get(2).findElement(By.tagName(\"span\"));\n this.productLastUpdated = TableUtils.getAllCells(row).get(3);\n // this.cloneToButton = TableUtils.getAllCells(row).get(4).findElement(By.tagName(\"a\"));\n }",
"loadDetails initloadDetails(loadDetails iLoadDetails)\n {\n iLoadDetails.setLorryName(\"lorryName\");\n iLoadDetails.setEstateName(\"estateName\");\n iLoadDetails.setDate(\"date\");\n \n return iLoadDetails;\n }",
"HashTable() {\n int trueTableSize = nextPrime(tableSize);\n HT = new FlightDetails[nextPrime(trueTableSize)];\n }",
"public Builder clearProbeFields() {\n probeFields_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000020);\n onChanged();\n return this;\n }",
"public static BlockInfoRow blockToRow(Block block) {\n return null;\n }",
"protected void perRecordInit(Record record)\n {\n }",
"private CellSampler createSampler(EasyMockSupport support)\r\n {\r\n CellSampler sampler = support.createMock(CellSampler.class);\r\n sampler.getBeginningSampleCells();\r\n EasyMock.expectLastCall().andReturn(CsvTestUtils.createBasicData());\r\n\r\n return sampler;\r\n }",
"private Object[] buildEmptyRow() {\n Object[] rowData = RowDataUtil.allocateRowData( data.outputRowMeta.size() );\n\n return rowData;\n }",
"@Override\n public T apply(Row row, RowMetadata metadata) {\n Collection<String> columnNames = metadata.getColumnNames();\n\n if (columnNames.size() == 1) {\n Class<?> javaType = metadata.getColumnMetadata(0).getJavaType();\n assert javaType != null;\n if (javaType.equals(clazz)) {\n return clazz.cast(row.get(0));\n }\n }\n\n T instance;\n\n try {\n instance = clazz.getDeclaredConstructor().newInstance();\n } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n throw new R2dbcException(String.format(\"%s: field to create instance.\", className), e);\n }\n\n for (String columnName : columnNames) {\n Object value = row.get(columnName);\n\n Field field = allColumns.get(columnName);\n\n if (field != null) {\n // 1. setFieldValue: @Column exists, set value to associated field.\n Utils.setFieldValue(instance, field, value);\n } else {\n // 2. setFieldValue: @Column not exists, set value to ColumnName corresponding field.\n\n // FieldName <= ColumnName\n String fieldName = Utils.toCamelCase(columnName, false);\n\n // Field <= FieldName\n field = allFields.get(fieldName);\n\n if (field == null) {\n throw new R2dbcException(String.format(\"%s: field [%s] not found. (column %s)\", className, fieldName, columnName));\n }\n\n // sets value to field.\n Utils.setFieldValue(instance, field, value);\n }\n }\n\n return instance;\n }",
"static public TableViewRowProxy processRow(Object obj)\n\t{\n\t\tif (obj instanceof HashMap) {\n\t\t\tfinal TableViewRowProxy row = new TableViewRowProxy();\n\n\t\t\trow.handleCreationDict(new KrollDict((HashMap) obj));\n\t\t\treturn row;\n\t\t} else if (obj instanceof TableViewRowProxy) {\n\t\t\treturn (TableViewRowProxy) obj;\n\t\t}\n\t\treturn null;\n\t}",
"public Builder addProbeFields(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureProbeFieldsIsMutable();\n probeFields_.add(value);\n onChanged();\n return this;\n }",
"public interface IRowProvider<T> {\n\t\n\t/**\n\t * Create a new Row for the element specified.\n\t */\n\tRow<T> createRow(final T element);\n\n}",
"public static org.apache.gora.cascading.test.storage.TestRow.Builder newBuilder(org.apache.gora.cascading.test.storage.TestRow.Builder other) {\n return new org.apache.gora.cascading.test.storage.TestRow.Builder(other);\n }",
"@Before\n public final void setupKijiInstance() throws IOException {\n mKiji = getKiji();\n mKiji.createTable(KijiTableLayouts.getLayout(KijiTableLayouts.ROW_DATA_TEST));\n mTable = mKiji.openTable(\"row_data_test_table\");\n mEntityId = mTable.getEntityId(\"row1\");\n final KijiTableWriter writer = mTable.openTableWriter();\n try {\n // Map type column family\n writer.put(mEntityId, \"map\", \"qualA\", 1L, 5);\n writer.put(mEntityId, \"map\", \"qualA\", 2L, 6);\n writer.put(mEntityId, \"map\", \"qualA\", 3L, 7);\n writer.put(mEntityId, \"map\", \"qualB\", 2L, 8);\n\n // Regular column family\n writer.put(mEntityId, \"family\", \"qual0\", 1L, \"a\");\n writer.put(mEntityId, \"family\", \"qual0\", 2L, \"b\");\n writer.put(mEntityId, \"family\", \"qual0\", 3L, \"c\");\n writer.put(mEntityId, \"family\", \"qual1\", 2L, \"d\");\n } finally {\n writer.close();\n }\n mReader = mTable.openTableReader();\n }",
"public ProductInfo call() throws DataLoadException {\n\t\t\treturn new ProductInfo();\r\n\t\t}",
"public static AdminRecord initialize() {\n if (Logger.isTraceOn(Logger.TT_CORE, 9) || Logger.isDebugLoggingActivatedByCommandLine()) {\n Logger.log(Logger.DEBUG, Logger.MSG_CORE_STARTUPINITIALIZATION, \"initialize()\");\n printEfaInfos(false, false, true, false, false);\n }\n AdminRecord newlyCreatedAdminRecord = null;\n iniScreenSize();\n iniMainDirectory();\n iniEfaBaseConfig();\n iniLanguageSupport();\n iniUserDirectory();\n iniLogging();\n iniSplashScreen(true);\n iniEnvironmentSettings();\n iniDirectories();\n iniEfaSec();\n boolean createNewAdmin = iniAdmins();\n Object[] efaFirstSetup = iniEfaFirstSetup(createNewAdmin);\n CustSettings cust = (efaFirstSetup != null ? (CustSettings) efaFirstSetup[0] : null);\n iniEfaConfig(cust);\n iniEfaRunning();\n iniEfaTypes(cust);\n iniCopiedFiles();\n iniAllDataFiles();\n iniRemoteEfaServer();\n iniEmailSenderThread();\n iniGUI();\n iniChecks();\n if (createNewAdmin && efaFirstSetup != null) {\n return (AdminRecord) efaFirstSetup[1];\n }\n return null;\n }",
"@Override\n protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet resultSet) {\n ViewRowImpl value = super.createRowFromResultSet(qc, resultSet);\n return value;\n }",
"protected RowMapper<Project> getRowMapper() {\n\t\treturn new ProjectMapper();\n\t}",
"@Override\r\n\tpublic ItemInfo createItemInfo() {\n\t\treturn new HpInfo();\r\n\t}",
"public static SATableReadCapabilityAttributesExtension newObj(SL_ContainerObj root) throws SL_Exception\n {\n TableReadCapabilityAttributesExtension imfObj = CapabilityIFactory.I_INSTANCE.createTableReadCapabilityAttributesExtension();\n Utils.objectUtilsNewObject(imfObj);\n return newObjFrom(imfObj, root);\n }",
"private RuntimeFilterInfo generateRuntimeFilterInfo (HashJoinPrel hashJoinPrel) throws RuntimeException {\n List<RuntimeFilterEntry> partitionColumns = new ArrayList<>();\n List<RuntimeFilterEntry> nonPartitionColumns = new ArrayList<>();\n\n JoinRelType joinRelType = hashJoinPrel.getJoinType();\n JoinInfo joinInfo = hashJoinPrel.analyzeCondition();\n if (!joinInfo.isEqui()) {\n return null;\n }\n\n if ((joinRelType == JoinRelType.LEFT && !hashJoinPrel.isSwapped())\n || (joinRelType == JoinRelType.RIGHT && hashJoinPrel.isSwapped())\n || joinRelType == JoinRelType.FULL) {\n return null;\n }\n\n final RelNode currentProbe;\n final RelNode currentBuild;\n final List<Integer> probeKeys;\n final List<Integer> buildKeys;\n\n //identify probe sie and build side prel tree\n if (hashJoinPrel.isSwapped()) {\n currentProbe = hashJoinPrel.getRight();\n currentBuild = hashJoinPrel.getLeft();\n probeKeys = hashJoinPrel.getRightKeys();\n buildKeys = hashJoinPrel.getLeftKeys();\n } else {\n currentProbe = hashJoinPrel.getLeft();\n currentBuild = hashJoinPrel.getRight();\n probeKeys = hashJoinPrel.getLeftKeys();\n buildKeys = hashJoinPrel.getRightKeys();\n }\n\n // find exchange node from build side\n ExchangePrel buildExchangePrel = findExchangePrel(currentBuild);\n ExchangePrel probeExchangePrel = findExchangePrel(currentProbe);\n if(buildExchangePrel == null && probeExchangePrel == null) {\n //does not support single fragment mode, that is the right build side can\n //only be BroadcastExchangePrel or HashToRandomExchangePrel\n return null;\n }\n List<String> rightFields = currentBuild.getRowType().getFieldNames();\n\n for (Pair<Integer,Integer> keyPair : Pair.zip(probeKeys, buildKeys)) {\n Integer probeKey = keyPair.left;\n Integer buildKey = keyPair.right;\n String buildFieldName = rightFields.get(buildKey);\n\n //This also avoids the left field of the join condition with a function call.\n if (!(currentProbe instanceof Prel)) {\n return null;\n }\n List<ColumnOriginScan> columnOrigins = ((Prel) currentProbe).accept(new FindScanVisitor(), probeKey);\n columnOrigins.stream()\n .filter(Objects::nonNull)\n .forEach(columnOrigin -> {\n Prel scanPrel = columnOrigin.getScan();\n String leftFieldName = columnOrigin.getField();\n PrelSequencer.OpId opId = prelOpIdMap.get(scanPrel);\n int probeScanMajorFragmentId = opId.getFragmentId();\n int probeScanOperatorId = opId.getAsSingleInt();\n RuntimeFilterEntry runtimeFilterEntry = new RuntimeFilterEntry(leftFieldName, buildFieldName, probeScanMajorFragmentId, probeScanOperatorId);\n if (isPartitionColumn(scanPrel, leftFieldName)) {\n partitionColumns.add(runtimeFilterEntry);\n } else {\n nonPartitionColumns.add(runtimeFilterEntry);\n }\n });\n }\n if(!partitionColumns.isEmpty() || !nonPartitionColumns.isEmpty()) {\n return new RuntimeFilterInfo.Builder()\n .nonPartitionJoinColumns(nonPartitionColumns)\n .partitionJoinColumns(partitionColumns)\n .isBroadcastJoin((buildExchangePrel instanceof BroadcastExchangePrel))\n .build();\n } else {\n return null;\n }\n\n }",
"DataFrameRow<R,C> row(R rowKey);",
"public final QScanResultEntity createFromParcel(Parcel parcel) {\n QScanResultEntity qScanResultEntity = new QScanResultEntity();\n qScanResultEntity.packageName = parcel.readString();\n qScanResultEntity.softName = parcel.readString();\n qScanResultEntity.version = parcel.readString();\n qScanResultEntity.versionCode = parcel.readInt();\n qScanResultEntity.path = parcel.readString();\n qScanResultEntity.apkType = parcel.readInt();\n qScanResultEntity.certMd5 = parcel.readString();\n qScanResultEntity.size = parcel.readInt();\n qScanResultEntity.type = parcel.readInt();\n qScanResultEntity.advice = parcel.readInt();\n qScanResultEntity.malwareid = parcel.readInt();\n qScanResultEntity.name = parcel.readString();\n qScanResultEntity.label = parcel.readString();\n qScanResultEntity.discription = parcel.readString();\n qScanResultEntity.url = parcel.readString();\n return qScanResultEntity;\n }",
"Grid createRow(final HostVLan hostVLan) {\n HorizontalPanel checkboxPanel = new HorizontalPanel();\n checkboxPanel.setWidth(\"100%\"); //$NON-NLS-1$\n\n if (isSelectionAvailable) {\n checkboxPanel.add(getCheckBox());\n }\n checkboxPanel.add(new Image(resources.splitRotateImage()));\n checkboxPanel.add(new Label(new HostVLanNameRenderer().render(hostVLan)));\n\n Grid row = createBaseVlanRow(checkboxPanel,\n hostVLan.getInterface().getIsManagement(),\n hostVLan.getNetworkName(),\n hostVLan.getInterface().getNetworkImplementationDetails(),\n hostVLan.getAddress());\n\n return row;\n }",
"protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }",
"private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Override\n\tpublic LockThreadInfo mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\tLockThreadInfo lockThreadInfo = new LockThreadInfo(rs.getString(\"tid\"), rs.getString(\"nid\"), rs.getString(\"state\"));\n\t\treturn lockThreadInfo;\n\t}",
"@Override\n public DownLoadResumeInfoBean createFromParcel(Parcel source) {\n DownLoadResumeInfoBean downLoadResumeInfoBean = new DownLoadResumeInfoBean();\n downLoadResumeInfoBean.operate_time = source.readString();\n downLoadResumeInfoBean.resume_number = source.readString();\n downLoadResumeInfoBean.name = source.readString();\n downLoadResumeInfoBean.echo_yes = source.readString();\n downLoadResumeInfoBean.sex = source.readString();\n downLoadResumeInfoBean.year = source.readString();\n downLoadResumeInfoBean.work_beginyear = source.readString();\n downLoadResumeInfoBean.high_education = source.readString();\n downLoadResumeInfoBean.location = source.readString();\n downLoadResumeInfoBean.pic_filekey = source.readString();\n downLoadResumeInfoBean.user_id = source.readString();\n downLoadResumeInfoBean.resume_id = source.readString();\n downLoadResumeInfoBean.moremajor = source.readString();\n downLoadResumeInfoBean.operate_name = source.readString();\n downLoadResumeInfoBean.isnew = source.readString();\n return downLoadResumeInfoBean;\n }",
"DataRow rowFromFlatRow(DataRow flatRow) {\n DataRow row = new DataRow(rowCapacity);\n\n // extract subset of flat row columns, recasting to the target keys\n for (ColumnDescriptor column : columns) {\n row.put(column.getName(), flatRow.get(column.getDataRowKey()));\n }\n\n // since JDBC row reader won't inject JOINED entity name, we have to detect it here...\n ClassDescriptor descriptor = resolver.getDescriptor();\n ObjEntity entity = descriptor.getEntityInheritanceTree().entityMatchingRow(row);\n row.setEntityName(entity == null ? null : entity.getName());\n return row;\n }",
"private void initialize() {\r\n\t\tsetLayout(new BorderLayout());\r\n\t\tadd(createInfoTable(), BorderLayout.CENTER);\r\n\r\n\t\t// load the data\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tEnumeration names = props.propertyNames();\r\n\t\t\twhile (names.hasMoreElements()) {\r\n\t\t\t\tString name = (String) names.nextElement();\r\n\t\t\t\tString value = props.getProperty(name);\r\n\t\t\t\tObject[] row = new Object[2];\r\n\t\t\t\trow[0] = name;\r\n\t\t\t\trow[1] = value;\r\n\t\t\t\tm_model.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}",
"@Override\n protected void initResultTable() {\n }",
"protected abstract DatabaseInitializer createInitializer();",
"public io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row.Builder getRowBuilder(\n int index) {\n return getRowFieldBuilder().getBuilder(index);\n }",
"protected abstract void initialiseTable();",
"public PassengerInfos(){\r\n\t\tthis.serial = 0;\r\n\t\tthis.phone = VAL_DEFAULT_STRING;\r\n\t\tthis.name = VAL_DEFAULT_STRING;\r\n\t\tthis.recordDesc = this.name;\r\n\t\tthis.addressInfos = new AddressInfos();\r\n\t\tthis.selected = false;\r\n\t\tthis.bigpackages = 0;\r\n\t}",
"public Color getProbeColor(int row);",
"public HashMap<String, String> newVillageInfo() {\n\t\treturn newVillageInfo;\n\t}",
"public LoadBalancingRulePropertiesFormat withProbe(SubResource probe) {\n this.probe = probe;\n return this;\n }",
"@ProbeBuilder\n public TestProbeBuilder probeConfiguration(TestProbeBuilder probe) {\n probe.setHeader(Constants.DYNAMICIMPORT_PACKAGE, \"*\");\n return probe;\n }",
"public void newInst() {\n\t\tlogger.debug(\"DeviceNameTableTester has been initialized\");\n\t\t\n\t\tlogger.debug(\"@@@@@@@@@@@@@@@@@@@ Try to set the name of a device\");\n\t\tdeviceNameTable.addName(testDeviceId, null, \"La lampe HUE 1\");\n\t\t\n\t\tlogger.debug(\"@@@@@@@@@@@@@@@@@@@ Try to get the name of a device\");\n\t\tString name = deviceNameTable.getName(testDeviceId, null);\n\t\tlogger.debug(\" @@@@@@@@@@@@ Device name get: \"+name);\n\t\t\n\t\tlogger.debug(\"@@@@@@@@@@@@@@@@@@@ Try to delete the device name: \");\n\t\tdeviceNameTable.deleteName(testDeviceId, null);\n\t\t\n\t\tlogger.debug(\"@@@@@@@@@@@@@@@@@@@ Try to get the name of a device\");\n\t\tname = deviceNameTable.getName(testDeviceId, null);\n\t\tlogger.debug(\" @@@@@@@@@@@@ Device name get: \"+name);\n\t\t\n\t\tlogger.debug(\"@@@@@@@@@@@@@@@@@@@ Try to get the name of a device for a non existing user\");\n\t\tname = deviceNameTable.getName(testDeviceId, \"plop\");\n\t\tlogger.debug(\" @@@@@@@@@@@@ Device name get: \"+name);\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic Employee mapRow(ResultSet rs, int row) throws SQLException {\n\t\t\t\tEmployee emp = new Employee();\r\n\t\t\t\temp.setNo(rs.getInt(\"EMP_NO\"));\r\n\t\t\t\temp.setName(rs.getString(\"EMP_NAME\"));\r\n\t\t\t\temp.setPhone(rs.getString(\"EMP_PHONE\"));\r\n\t\t\t\temp.setPosition(rs.getString(\"EMP_POSITION\"));\r\n\t\t\t\temp.setEmail(rs.getString(\"EMP_EMAIL\"));\r\n\t\t\t\treturn emp;\r\n\t\t\t}",
"@Nullable\n\t\t\t@Override\n\t\t\tpublic T mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tString title = rs.getString(\"title\");\n\t\t\t\tString author = rs.getString(\"author\");\n\t\t\t\tint numPages = rs.getInt(\"num_pages\");\n\t\t\t\tDate releaseDate = rs.getDate(\"release_date\");\n\t\t\t\tboolean available = rs.getBoolean(\"available\");\n\n\t\t\t\tClass<T> type = null; // TODO: we need the type\n\t\t\t\tT object = null; // TODO: type.newInstance();\n\n\t\t\t\t/* TODO: create instance and fill properties\n\t\t\t\tbook.setId(id);\n\t\t\t\tbook.setTitle(title);\n\t\t\t\tbook.setAuthor(author);\n\t\t\t\tbook.setNumPages(numPages);\n\t\t\t\tbook.setReleaseDate(releaseDate);\n\t\t\t\tbook.setAvailable(available);\n\t\t\t\t*/\n\n\t\t\t\treturn object;\n\t\t\t}",
"@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }",
"protected abstract void initTable() throws RemoteException, NotBoundException, FileNotFoundException;",
"public Row(int width) {\n data = new Object[width];\n }",
"public io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row.Builder addRowBuilder() {\n return getRowFieldBuilder().addBuilder(\n io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row.getDefaultInstance());\n }",
"public void initRow(int row){\n ICalculator[] calcs = getRow(row);\n for (int i = 0; i < calcs.length; i++) {\n calcs[i].init();\n }\n }",
"private HashGroupifyEntry createEntry(final int row, final int index, final int hash, final int line) {\n final HashGroupifyEntry entry = new HashGroupifyEntry(this.dataOutput, row, hash);\n entry.next = hashTableBuckets[index];\n entry.representative = line;\n hashTableBuckets[index] = entry;\n if (hashTableFirstEntry == null) {\n hashTableFirstEntry = entry;\n hashTableLastEntry = entry;\n } else {\n hashTableLastEntry.nextOrdered = entry;\n hashTableLastEntry = entry;\n }\n return entry;\n }"
] | [
"0.54006594",
"0.5106204",
"0.50799876",
"0.5050943",
"0.5045801",
"0.49645552",
"0.49034366",
"0.48933178",
"0.47815195",
"0.47657138",
"0.47319087",
"0.47078308",
"0.47055557",
"0.46706617",
"0.46455845",
"0.45929557",
"0.45919946",
"0.4582229",
"0.45809543",
"0.45447147",
"0.4534513",
"0.45329738",
"0.45238608",
"0.45179072",
"0.44879797",
"0.444538",
"0.44332057",
"0.44231185",
"0.44174653",
"0.43934247",
"0.43908262",
"0.43880236",
"0.43837792",
"0.4371399",
"0.43643385",
"0.4361232",
"0.43538755",
"0.43445012",
"0.4331955",
"0.43250325",
"0.43230554",
"0.43029124",
"0.42951617",
"0.429507",
"0.42888132",
"0.42868134",
"0.42794073",
"0.42643398",
"0.42628008",
"0.42560035",
"0.42482495",
"0.4245906",
"0.42384496",
"0.42323065",
"0.42308927",
"0.42308742",
"0.42294937",
"0.42277983",
"0.42244333",
"0.42214108",
"0.42194235",
"0.42168823",
"0.42128655",
"0.42100137",
"0.42052028",
"0.4201249",
"0.41753522",
"0.41624364",
"0.41609055",
"0.41550726",
"0.41540253",
"0.4153802",
"0.41529474",
"0.41529474",
"0.41529474",
"0.41529474",
"0.41529474",
"0.41529474",
"0.4146131",
"0.4134041",
"0.41335908",
"0.41307673",
"0.4119575",
"0.4117581",
"0.40943307",
"0.40939972",
"0.40891373",
"0.4087172",
"0.40846002",
"0.4082267",
"0.4078129",
"0.40777996",
"0.40739286",
"0.4069227",
"0.40690875",
"0.4064648",
"0.40640825",
"0.40598994",
"0.40590283",
"0.40560475"
] | 0.4614556 | 15 |
Get the field name (parameter) at a particular row | String getFieldName(int row) {
return getVPInfo(row).getDataInstance().getDataChoice().getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract String getFieldName(String parameter);",
"String getFieldName();",
"String getField();",
"String getValue(String column, int row);",
"java.lang.String getField1033();",
"java.lang.String getField1333();",
"java.lang.String getField1001();",
"java.lang.String getField1133();",
"public String getFieldName();",
"java.lang.String getField1335();",
"public String getFieldName(int i) throws NoSuchElementException {\n if(i < 0 || i >= getNumFields()) {\n throw new NoSuchElementException();\n }\n return columns.get(i).getName();\n }",
"java.lang.String getField1111();",
"java.lang.String getField1339();",
"java.lang.String getField1015();",
"java.lang.String getField1533();",
"java.lang.String getField1337();",
"java.lang.String getField1124();",
"java.lang.String getField1019();",
"java.lang.String getField1334();",
"java.lang.String getField1005();",
"java.lang.String getField1336();",
"java.lang.String getField1331();",
"java.lang.String getField1073();",
"java.lang.String getField1050();",
"java.lang.String getField1125();",
"java.lang.String getField1233();",
"java.lang.String getField1155();",
"java.lang.String getField1120();",
"java.lang.String getField1017();",
"java.lang.String getField1051();",
"java.lang.String getParameterName();",
"java.lang.String getField1159();",
"java.lang.String getField1573();",
"java.lang.String getField1049();",
"java.lang.String getField1134();",
"java.lang.String getField1177();",
"java.lang.String getField1191();",
"java.lang.String getField1587();",
"java.lang.String getField1223();",
"java.lang.String getField1067();",
"java.lang.String getField1087();",
"java.lang.String getField1061();",
"java.lang.String getField1254();",
"java.lang.String getField1173();",
"java.lang.String getField1069();",
"java.lang.String getField1174();",
"java.lang.String getField1175();",
"java.lang.String getField1013();",
"java.lang.String getField1055();",
"java.lang.String getField1129();",
"java.lang.String getField1135();",
"java.lang.String getField1199();",
"java.lang.String getField1074();",
"java.lang.String getField1149();",
"java.lang.String getField1733();",
"java.lang.String getField1569();",
"java.lang.String getField1046();",
"java.lang.String getField1059();",
"java.lang.String getField1054();",
"java.lang.String getField1554();",
"java.lang.String getField1577();",
"java.lang.String getField1274();",
"java.lang.String getField1273();",
"java.lang.String getField1154();",
"java.lang.String getField1094();",
"java.lang.String getField1034();",
"java.lang.String getField1591();",
"java.lang.String getField1012();",
"java.lang.String getField1145();",
"java.lang.String getField1194();",
"java.lang.String getField1157();",
"java.lang.String getField1549();",
"java.lang.String getField1330();",
"java.lang.String getField1574();",
"java.lang.String getField1187();",
"java.lang.String getField1184();",
"java.lang.String getField1599();",
"java.lang.String getField1045();",
"java.lang.String getField1584();",
"java.lang.String getField1291();",
"java.lang.String getField1255();",
"java.lang.String getField1131();",
"java.lang.String getField1793();",
"java.lang.String getField1543();",
"java.lang.String getField1791();",
"java.lang.String getField1109();",
"java.lang.String getField1593();",
"java.lang.String getField1171();",
"java.lang.String getField1243();",
"public String getFieldText(String fieldName, int index);",
"java.lang.String getField1567();",
"java.lang.String getField1589();",
"java.lang.String getField1245();",
"java.lang.String getField1079();",
"java.lang.String getField1099();",
"java.lang.String getField1293();",
"java.lang.String getField1523();",
"java.lang.String getField1769();",
"java.lang.String getField1559();",
"java.lang.String getField1091();"
] | [
"0.72356904",
"0.67253226",
"0.66361433",
"0.65933394",
"0.6550809",
"0.64815557",
"0.6460125",
"0.64572555",
"0.644753",
"0.64400387",
"0.6435536",
"0.64238954",
"0.6416816",
"0.6411071",
"0.63904184",
"0.6388167",
"0.6379944",
"0.63650244",
"0.63534015",
"0.63473594",
"0.6346899",
"0.6340245",
"0.6339595",
"0.6332617",
"0.6328174",
"0.63259196",
"0.6317423",
"0.63073343",
"0.6304999",
"0.63048327",
"0.6302845",
"0.63011897",
"0.62918764",
"0.6287443",
"0.6286736",
"0.62846476",
"0.6283245",
"0.62831324",
"0.6278376",
"0.6277182",
"0.6274668",
"0.62746584",
"0.62702304",
"0.62693936",
"0.62688494",
"0.6267867",
"0.62672764",
"0.6265724",
"0.62656873",
"0.62654495",
"0.6265238",
"0.6264561",
"0.6262716",
"0.62621367",
"0.6260836",
"0.62578434",
"0.62549484",
"0.62549275",
"0.6253937",
"0.6252645",
"0.62509835",
"0.6249963",
"0.62443066",
"0.6243094",
"0.6242926",
"0.62369204",
"0.6236545",
"0.62352663",
"0.62340057",
"0.62295943",
"0.6229198",
"0.6228297",
"0.62270474",
"0.6226898",
"0.62266636",
"0.6224441",
"0.62244385",
"0.62242067",
"0.6223574",
"0.6221866",
"0.6220663",
"0.6219466",
"0.62184805",
"0.621704",
"0.6216769",
"0.621497",
"0.6213894",
"0.6213299",
"0.6211967",
"0.62108684",
"0.6209742",
"0.62087566",
"0.6208204",
"0.62061685",
"0.62058073",
"0.6205451",
"0.6205206",
"0.62049395",
"0.6204316",
"0.6204163"
] | 0.7926311 | 0 |
Return the appropriate label text for the menu. | protected String getChangeParameterLabel() {
return "Add Parameter...";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getMenuLabel();",
"public void setMenuLabel(java.lang.String value);",
"java.lang.String getLabel();",
"public String getLabelText();",
"public java.lang.String getLabel();",
"public abstract String getLabelText();",
"String getLabel();",
"String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel() {\n\t\t// just return item text until we get the grade levels straighted out for\n\t\t// comm_core\n\t\treturn this.itemText;\n\t\t/*\n\t\t * if (this.label == null) { if (this.getLevel() == 1) { this.label =\n\t\t * this.itemText; } else if (this.getIsLeafNode()) { this.label = \"[\" +\n\t\t * this.getGradeRange() + \"] \" + this.itemText; } else { this.label =\n\t\t * this.itemText + \" [\" + this.getGradeRange() + \"]\"; } } return this.label;\n\t\t */\n\t}",
"public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}",
"public static String choicelabel() {\n\t\treturn null;\n\t}",
"public CharSequence getSelectedLabel()\n\t{\n\t\treturn _current.label.getText();\n\t}",
"public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }",
"public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }",
"String getMenuName();",
"public abstract String getLabel();",
"public String getName() {\n\t\treturn MenuString;\n\t}",
"public String getLabel() {\r\n return layout.label;\r\n }",
"public String getLabel() {\r\n return lbl;\r\n }",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"String nameLabel();",
"public String getLabel()\n {\n return label;\n }",
"public String getLabel()\n { \n return label;\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"@Override\n public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel()\n\t{\n\t\treturn label;\n\t}",
"public String getLabel()\n {\n return label;\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}",
"public String getLabel(){\n\t\treturn label;\n\t}",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel(){\n return label;\n }",
"public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }",
"public String getLabel() {\n return _label == null ? name() : _label;\n }",
"public String getLabel()\n {\n return m_label;\n }",
"public CharSequence getLabel() {\n // TODO: Go through LauncherAppsService\n return getActivityInfo().loadLabel(mPm);\n }",
"public String getLanguageMenuText() {\r\n\t\treturn \"语言\";\r\n\t}",
"public String getLabel() {\n\t\treturn myLabel;\n\t}",
"public String getLabel() {\n\t\treturn label;\n\t}",
"@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}",
"public String label() {\n return this.label;\n }",
"@Nullable\n public CharSequence getLabel() {\n return mPrimaryLabel;\n }",
"public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }",
"@Override\n public java.lang.String getLabelToDisplay() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.LABEL_TO_DISPLAY_);\n return (java.lang.String)retnValue;\n }",
"String getLabel() {\n return label;\n }",
"public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"@Override\n\tpublic String getShortLabel()\n\t{\n\t\treturn label;\n\t}",
"public String getLabel() {\n return this.label;\n }",
"public Object getLabel() \n {\n return label;\n }",
"@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }",
"private String getLabel() {\n return this.label;\n }",
"public static LabelTarget label() { throw Extensions.todo(); }",
"public String getLabel(){\n\t\treturn sAnzeige;\n\t}",
"java.lang.String getViewsLabel();",
"public final String getLabel() {\n\t\treturn _label;\n\t}",
"String getFormFieldLabel();",
"public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}",
"public String getProductLabel(){\n return productLabel.getText().trim();\n }",
"public String getTranslatedTabLabel()\n {\n return \"Harry Potter\";\n }",
"public T2 getLabel() {\r\n\t\treturn label;\r\n\t}",
"private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}",
"public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}",
"public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}",
"public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}",
"private String getLabel(String label, String text) {\n\t\tStringBuffer buffer = new StringBuffer(label);\n\t\tif (text != null && !\"\".equals(text)) {\n\t\t\tif (!\"Choose One\".equals(text)) {\n\t\t\t\tbuffer.append(\": '\" + text + \"'\");\n\t\t\t}\n\t\t}\n\n\t\treturn buffer.toString();\n\t}",
"public final String aoy() {\n return this.label;\n }",
"String getCaption();",
"private static String getLabel(State from, State to) {\n String label = transitionLabels.get(hashOf(from, to));\n if (label != null)\n return label;\n else\n return \"\";\n }",
"public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}",
"public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}",
"public String getLabel() {\n\t\treturn this._label;\n\t}",
"public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}",
"public int getLabel() {\n\t\treturn label;\n\t}",
"@Override\n\tpublic void setLabelText(String label) {\n\t}",
"private RLabel getProductLabel() {\n if (productLabel == null) {\n productLabel = new RLabel();\n productLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/product\\\") %>\");\n productLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n productLabel.setName(\"productLabel\");\n }\n return productLabel;\n }"
] | [
"0.8170583",
"0.77771854",
"0.74368817",
"0.7330596",
"0.72665805",
"0.71436214",
"0.71220016",
"0.71220016",
"0.70195967",
"0.70195967",
"0.70195967",
"0.70195967",
"0.70127386",
"0.6863764",
"0.6856931",
"0.68405765",
"0.6791788",
"0.67855734",
"0.677868",
"0.6776262",
"0.6725469",
"0.67093927",
"0.6699027",
"0.66652125",
"0.66652125",
"0.66652125",
"0.6638547",
"0.6564653",
"0.65549415",
"0.65464",
"0.65464",
"0.6535247",
"0.6526604",
"0.65189224",
"0.6509201",
"0.6497205",
"0.6497205",
"0.6497205",
"0.6490576",
"0.64849246",
"0.6483141",
"0.64762324",
"0.64762324",
"0.64762324",
"0.64762324",
"0.6451469",
"0.64399755",
"0.64388394",
"0.64388394",
"0.64388394",
"0.64326924",
"0.64324105",
"0.64268845",
"0.6417829",
"0.6416566",
"0.6392535",
"0.63869786",
"0.6381882",
"0.6373867",
"0.6373867",
"0.6373867",
"0.63289994",
"0.6307281",
"0.6303182",
"0.62818086",
"0.62621564",
"0.6247061",
"0.62369037",
"0.62369037",
"0.62369037",
"0.62369037",
"0.623492",
"0.61983275",
"0.6194164",
"0.6183739",
"0.61711746",
"0.6164027",
"0.61559737",
"0.61495036",
"0.614716",
"0.61421597",
"0.6137718",
"0.6135264",
"0.61259544",
"0.6121762",
"0.61035585",
"0.6100938",
"0.60811543",
"0.60536766",
"0.6048833",
"0.60444486",
"0.60288566",
"0.60196096",
"0.6012969",
"0.6008695",
"0.6008622",
"0.6003468",
"0.5995199",
"0.5992911",
"0.59869117",
"0.5976115"
] | 0.0 | -1 |
Get the menu items for the parameter at the given row | private List getParameterMenuItems(final int row) {
List items = new ArrayList();
JMenu paramMenu = new JMenu("Parameter " + getFieldName(row));
items.add(paramMenu);
VerticalProfileInfo rowInfo = getVPInfo(row);
paramMenu.add(GuiUtils.makeMenuItem("Chart Properties",
VerticalProfileControl.this,
"showLineProperties", rowInfo));
// change unit choice
JMenuItem jmi;
jmi = new JMenuItem("Change Unit...");
paramMenu.add(jmi);
jmi.addActionListener(new ObjectListener(new Integer(row)) {
public void actionPerformed(ActionEvent ev) {
Unit newUnit = getDisplayConventions().selectUnit(
getVPInfo(row).getUnit(), null);
if (newUnit != null) {
getVPInfo(row).setUnit(newUnit);
try {
doMoveProbe();
} catch (Exception exc) {
logException("After changing units", exc);
}
}
}
});
// Remove this parameter
jmi = new JMenuItem("Remove");
paramMenu.add(jmi);
jmi.addActionListener(new ObjectListener(new Integer(row)) {
public void actionPerformed(ActionEvent ev) {
removeField(((Integer) theObject).intValue());
}
});
return items;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getMenuItems(){ \n\t\tParseUser user = ParseUser.getCurrentUser();\n\t\tmenu = user.getParseObject(\"menu\");\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"Item\");\n\t\tquery.whereEqualTo(\"menu\", menu);\n\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\t\t\tpublic void done(List<ParseObject> menuItems, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tlistMenuItems(menuItems);\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public Object getValueAt(int row, int column) {\n\n // Check if we are displaying a menu item (as opposed to one of the totals rows).\n if (row < menuItems.size()) {\n MenuItem menuItem = menuItems.get(row);\n switch (column) {\n case 0:\n return menuItem.getName();\n case 1:\n return menuItem.getPrice();\n case 2:\n return menuItem.getEnergy();\n case 3:\n return menuItem.getProtean();\n case 4:\n return menuItem.getCarbohydrates();\n case 5:\n return menuItem.getFat();\n case 6:\n return menuItem.getFibre();\n case 7:\n return menuItem.getType();\n case 8:\n return menuItem.getCategory();\n default:\n return \"undefined\";\n }\n } else if (row == getRowCount() - 2) {\n return \"\";\n } else if (row == getRowCount() - 1) {\n int priceTotal = 0;\n int energyTotal = 0;\n double proteanTotal = 0;\n double carbTotal = 0;\n double fatTotal = 0;\n double fibreTotal = 0;\n\n for (MenuItem item : menuItems) {\n priceTotal += item.getPrice();\n energyTotal += item.getEnergy();\n proteanTotal += item.getProtean();\n carbTotal += new BigDecimal(item.getCarbohydrates()).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n fatTotal += new BigDecimal(item.getFat()).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n fibreTotal += new BigDecimal(item.getFibre()).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n }\n\n switch (column) {\n case 0:\n return \"Totals:\";\n case 1:\n return priceTotal;\n case 2:\n return energyTotal;\n case 3:\n return String.format(\"%1.2f\", proteanTotal);\n case 4:\n return String.format(\"%1.2f\", carbTotal);\n case 5:\n return String.format(\"%1.2f\", fatTotal);\n case 6:\n return String.format(\"%1.2f\", fibreTotal);\n default:\n return \"\";\n }\n }\n return \"undefined\";\n }",
"public ArrayList<MenuItem> getMenuItems() throws SQLException\r\n {\r\n ArrayList<MenuItem> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM menuitems\";\r\n myRs = myStmt.executeQuery(sqlQuery);\r\n while (myRs.next()) {\r\n result.add(new MenuItem(\r\n myRs.getString(1), \r\n myRs.getString(2), \r\n myRs.getString(3), \r\n Integer.parseInt(myRs.getString(4)), \r\n Integer.parseInt(myRs.getString(5)), \r\n Float.parseFloat(myRs.getString(6)), \r\n Float.parseFloat(myRs.getString(7)), \r\n Float.parseFloat(myRs.getString(8)), \r\n Float.parseFloat(myRs.getString(9)), \r\n Integer.parseInt(myRs.getString(10))\r\n ));\r\n }\r\n return result;\r\n }",
"public RowIterator getRoleMenusVA() {\n return (RowIterator)getAttributeInternal(ROLEMENUSVA);\n }",
"private JMenuItem getParamjMenuItem() {\r\n\t\tif (ParamjMenuItem == null) {\r\n\t\t\tParamjMenuItem = new JMenuItem();\r\n\t\t\tParamjMenuItem.setText(\"Parametres\");\r\n\t\t\tParamjMenuItem.setIcon(new ImageIcon(getClass().getResource(\"/parametres_petit.png\")));\r\n\t\t\tParamjMenuItem.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tParamjMenuItem.setActionCommand(\"Parametres\");\r\n\t\t\tParamjMenuItem.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t//System.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\r\n\t\t\t\t\tif (e.getActionCommand().equals(\"Parametres\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Param();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn ParamjMenuItem;\r\n\t}",
"List<MenuInfo> selectByExample(MenuInfoExample example);",
"@Override\n public String[] displayMenu() {\n\n PersonalMatchDAO personalMatchDAO = new PersonalMatchDAO();\n personalMatchDAO.listAllPersonalMatches();\n\n String[] str = {selection};\n return str;\n\n }",
"public MenuItem findItem(int id);",
"void populateCellMenu(Cell cell, List<String> actions);",
"public Object getMenuV2(String menuItemkey) {\n\t\tlogger.info(\":::inside getMenuV2:::\");\r\n\t\tArrayList<HubMenuModelV2> subMenuList=null;\r\n\t\tSqlRowSet rst=null,rst1=null;\r\n\t\tHubMenuModelV2 menuModel=new HubMenuModelV2();\r\n\t\ttry{\r\n\t\t\trst=jdbcTemplateObject.queryForRowSet(\"select * from tbl_hub_menu_list where menu_key='\"+menuItemkey+\"'\");\r\n\t\t\tif(rst.next()){\r\n\t\t\t\tmenuModel.setKey(rst.getString(\"menu_key\"));\r\n\t\t\t\tmenuModel.setValue(rst.getString(\"value\"));\r\n\t\t\t\tmenuModel.setIcon(rst.getString(\"icon\"));\r\n\t\t\t\tmenuModel.setSelected_icon(rst.getString(\"selected_icon\"));\r\n\t\t\t\tmenuModel.setDeeplink_url(rst.getString(\"deeplink_url\"));\r\n\t\t\t\tmenuModel.setSort_order_id(rst.getString(\"sort_order_id\"));\r\n\t\t\t\trst1=jdbcTemplateObject.queryForRowSet(\"select * from tbl_hub_sub_menu_list where menu_id=\"+rst.getInt(\"menu_id\"));\r\n\t\t\t\tif(rst1!=null){\r\n\t\t\t\t\tsubMenuList=new ArrayList<HubMenuModelV2>();\r\n\t\t\t\t}\r\n\t\t\t\twhile(rst1.next()){\r\n\t\t\t\t\tHubMenuModelV2 menuModel1=new HubMenuModelV2();\r\n\t\t\t\t\tmenuModel1.setKey(rst1.getString(\"menu_key\"));\r\n\t\t\t\t\tmenuModel1.setValue(rst1.getString(\"value\"));\r\n\t\t\t\t\tmenuModel1.setIcon(rst1.getString(\"icon\"));\r\n\t\t\t\t\tmenuModel1.setSelected_icon(rst1.getString(\"selected_icon\"));\r\n\t\t\t\t\tmenuModel1.setDeeplink_url(rst1.getString(\"deeplink_url\"));\r\n\t\t\t\t\tmenuModel1.setSort_order_id(rst1.getString(\"sort_order_id\"));\r\n\t\t\t\t\tsubMenuList.add(menuModel1);\r\n\t\t\t\t}\r\n\t\t\t\tif(subMenuList!=null){\r\n\t\t\t\t\tmenuModel.setSubMenuList(subMenuList);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.info(\":::Exception in getting menu:::\"+e.getLocalizedMessage());\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn menuModel;\r\n\t}",
"List<Menu> listarMenuPorUsuario(String nombre);",
"String getMenus(MmtConfig cfg);",
"public Relatorio get(int row){\n\t\t\t\t\n\t\t\t\treturn valores.get(row);\n\t\t\t}",
"private List<CellRangeAddress> getMenuCell(){\n List<CellRangeAddress> mergedRanges = parser.getMergedRange(0); // always get from first sheet\n if(mergedRanges == null || mergedRanges.isEmpty()){\n logger.error(\"excel format different from the previous one or excel file not found\");\n return null;\n }\n\n List<CellRangeAddress> menuRanges = new ArrayList<>();\n for (CellRangeAddress range : mergedRanges) {\n\n // menu range`s column is always 1.\n if(range.getFirstColumn() == 1 && range.getLastColumn() == 1){\n menuRanges.add(range);\n }\n }\n\n menuRanges.sort((c0, c1) -> {\n int startRow0 = c0.getFirstRow();\n int startRow1 = c1.getFirstRow();\n if(startRow0 > startRow1) return 1;\n else if(startRow0 < startRow1) return -1;\n return 0;\n });\n\n return menuRanges;\n }",
"List<ViewDefinition> listForMenu();",
"protected void getViewMenuItems(List items, boolean forMenuBar) {\n super.getViewMenuItems(items, forMenuBar);\n items.add(GuiUtils.MENU_SEPARATOR);\n List paramItems = new ArrayList();\n paramItems.add(GuiUtils.makeCheckboxMenuItem(\"Show Parameter Table\",\n this, \"showTable\", null));\n paramItems.add(doMakeChangeParameterMenuItem());\n List choices = getDataChoices();\n for (int i = 0; i < choices.size(); i++) {\n paramItems.addAll(getParameterMenuItems(i));\n }\n\n items.add(GuiUtils.makeMenu(\"Parameters\", paramItems));\n\n JMenu chartMenu = new JMenu(\"Chart\");\n chartMenu.add(\n GuiUtils.makeCheckboxMenuItem(\n \"Show Thumbnail in Legend\", getChart(), \"showThumb\", null));\n List chartMenuItems = new ArrayList();\n getChart().addViewMenuItems(chartMenuItems);\n GuiUtils.makeMenu(chartMenu, chartMenuItems);\n items.add(chartMenu);\n items.add(doMakeProbeMenu(new JMenu(\"Probe\")));\n\n }",
"UmsMenu getItem(Long id);",
"public List<MenuItem> getMenuItems(){\n return menuItems;\n }",
"@Override\r\n\tpublic List<Menu> getAllMenu() {\n\t\t\r\n\t\tallMenuList=new ArrayList<Menu>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tConnection connection=DBConnection.getConnection();\r\n\t\t\tString sqlQuery=\"select * from Menu\";\r\n\t\t\t\r\n\t\t\tPreparedStatement pst=connection.prepareStatement(sqlQuery);\r\n\t\t\t\r\n\t\t\tpst.executeQuery();\r\n\t\t\tResultSet rs=pst.getResultSet();\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tint mid=rs.getInt(COLmid);\r\n\t\t\t\tint vid=rs.getInt(COLvid);\r\n\t\t\t\tString mname=rs.getString(COLmname);\r\n\t\t\t\tint mprice=rs.getInt(COLmprice);\r\n\t\t\t\tString vname=rs.getString(COLvname);\r\n\t\t\t\r\n\t\t\t\tMenu menu=new Menu(mid,vid,mname,mprice,vname);\r\n\t\t\t\t\r\n\t\t\t\tallMenuList.add(menu);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn allMenuList;\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\r\n\t\t\r\n\t\t\r\n\t}",
"private ArrayList<String> extractColumn(String category, int column) {\n ArrayList<String> arr = new ArrayList<>();\n arr.add(\"\");\n\n for(String[] item : menuItems) {\n if (item[0] == category)\n arr.add(item[column]);\n }\n\n return arr;\n }",
"MenuInfo selectByPrimaryKey(Integer menuid);",
"UmsMenu selectByPrimaryKey(String menuId);",
"public SelectItem[] getRowItems() {\n\t\tif (rowItems.length == 0) {\n\t\t\trowItems = new SelectItem[3];\n\t\t\trowItems[0] = new SelectItem(10);\n\t\t\trowItems[1] = new SelectItem(20);\n\t\t\trowItems[2] = new SelectItem(50);\n\t\t}\n\t\treturn rowItems;\n\t}",
"PensionRoleMenu selectByPrimaryKey(Long id);",
"UsrMmenus selectByPrimaryKey(String menuid);",
"List<String> getSelectedItems();",
"@Override\n\tpublic Menu getItem(int arg0) {\n\t\treturn arrayList.get(arg0);\n\t}",
"List<UmsMenu> selectAll();",
"public ICalculator[] getRow(int row){\n return calculators[row];\n }",
"List<PensionRoleMenu> selectByExample(PensionRoleMenuExample example);",
"public interface MenuItem {\n\tpublic int getBasePrice();\n\tpublic int getAddOnPrice();\n\tpublic int getTotalGuestPrice(int additionalGuestTotal);\n\tpublic String getName();\n\tpublic String getDetails();\n}",
"@objid (\"491bee9e-12dd-11e2-8549-001ec947c8cc\")\n private static void createMenuEntriesForAction(IModule module, MMenu moduleMenu, MPart view) {\n Map<String, MMenu> slotMap = new HashMap<>();\n \n // ask module for its IModuleAction that should be inserted into the\n // contextual menu and for each of them\n for (IModuleAction action : module.getActions(ActionLocation.contextualpopup)) {\n // Create the MHandler and MHandledItem for this action.\n \n // MCommand\n MCommand command = ModuleCommandsRegistry.getCommand(module, action);\n \n // MHandler\n final MHandler handler = createAndActivateHandler(command, module, action, view);\n \n // MHandledItem\n MHandledMenuItem item = createAndInsertItem(moduleMenu, action, slotMap);\n // Bind to command\n item.setCommand(command);\n \n Expression visWhen = new IsVisibleExpression(handler.getObject(), item);\n MCoreExpression isVisibleWhenExpression = MUiFactory.INSTANCE.createCoreExpression();\n isVisibleWhenExpression.setCoreExpressionId(\"programmatic.value\");\n isVisibleWhenExpression.setCoreExpression(visWhen);\n \n item.setVisibleWhen(isVisibleWhenExpression);\n }\n }",
"List<UmsMenu> list(Long parentId, Integer pageSize, Integer pageNum);",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn grid_names.get(arg0);\r\n\t}",
"@Override\n\tpublic List<Menu> getListByUsername(String username) {\n\t\tString hql = \" from Menu where enable=1 and autoId in(select menuId from GroupMenu where groupId in(SELECT groupId FROM UserMenuGroup where username='\"\n\t\t\t\t+ username + \"'))\";\n\t\thql+=\" order by menuOrder asc\";\n\t\tQuery query = getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}",
"public JMenuItem getNegrita() {return negrita;}",
"Menu getMenuEdit();",
"public Combustivel select(int rowSelected) {\n return combs.get(rowSelected);\n }",
"protected void getEditMenuItems(List items, boolean forMenuBar) {\n ObjectListener listener = new ObjectListener(\"\") {\n public void actionPerformed(ActionEvent ae, Object obj) {\n stationTableName = ((NamedStationTable) obj).getFullName();\n stationIdx = 0;\n setStations();\n }\n };\n List stationTables = getControlContext().getLocationList();\n items.add(\n GuiUtils.makeMenu(\n \"Set Locations\",\n NamedStationTable.makeMenuItems(stationTables, listener)));\n \n super.getEditMenuItems(items, forMenuBar);\n }",
"List<PageItemCfg> selectByExampleWithRowbounds(PageItemCfgExample example, RowBounds rowBounds);",
"@Override\r\n\tpublic List<TPortalMenu> getAllPortalMenu() throws SQLException {\n\t\tString sql = \"SELECT `ID`, `MENU_ID`, `MENU_NAME`, `PARAM4`, `PARAM5` \" +\r\n\t\t\t\t\"FROM `T_SCS_PORTAL_MENU`;\";\r\n\t\tBeanPropertyRowMapper<TPortalMenu> subActMapper = new BeanPropertyRowMapper<TPortalMenu>(TPortalMenu.class);\r\n\t \r\n\t\tList<TPortalMenu> tPortalList = null;\r\n\t\ttry {\r\n\t\t\ttPortalList = this.getJdbcTemplate().query(sql, new RowMapperResultSetExtractor<TPortalMenu>(subActMapper));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new SQLException(\"query error,error msg:\" + e.getMessage());\r\n\t\t}\r\n\t\treturn tPortalList;\r\n\t}",
"@Override\n\tpublic List<Function> findMenu() {\n\t\tUser user = BosContext.getLoginUser();\n\t\tif(user.getUsername().equals(\"admin\")){\n\t\t\treturn functionDao.findAllMenu();\n\t\t}else{\n\t\t\treturn functionDao.findMenuByUserId(user.getId());\n\t\t}\n\t\t\n\t}",
"public abstract int getMenu();",
"int getRowIndex(int n) {\r\n return command_parameters.intAt(n);\r\n }",
"private void addFormatItemsToMenu(javax.swing.JComponent m){\r\n\r\n\r\n jMenuItemFillCell = new javax.swing.JMenuItem();\r\n jMenuItemFillCell.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_maximise.png\")));\r\n jMenuItemFillCell.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCell\", \"Fill the cell\"));\r\n jMenuItemFillCell.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCell);\r\n\r\n jMenuItemFillCellH = new javax.swing.JMenuItem();\r\n jMenuItemFillCellH.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_hmaximise.png\")));\r\n jMenuItemFillCellH.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCellHorizontally\", \"Fill the cell (horizontally)\"));\r\n jMenuItemFillCellH.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE_H).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCellH);\r\n\r\n jMenuItemFillCellV = new javax.swing.JMenuItem();\r\n\r\n jMenuItemFillCellV.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vmaximise.png\")));\r\n jMenuItemFillCellV.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCellVertically\", \"Fill the cell (vertically)\"));\r\n jMenuItemFillCellV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE_V).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCellV);\r\n\r\n\r\n jMenuAlign = new javax.swing.JMenu();\r\n jMenuAlign.setText(it.businesslogic.ireport.util.I18n.getString(\"align\", \"Align...\"));\r\n\r\n jMenuItemAlignLeft = new javax.swing.JMenuItem();\r\n\r\n jMenuItemAlignLeft.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_left.png\")));\r\n jMenuItemAlignLeft.setText(it.businesslogic.ireport.util.I18n.getString(\"alignLeft\", \"Align left\"));\r\n jMenuItemAlignLeft.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignLeftActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignLeft);\r\n\r\n jMenuItemAlignRight = new javax.swing.JMenuItem();\r\n jMenuItemAlignRight.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_right.png\")));\r\n jMenuItemAlignRight.setText(it.businesslogic.ireport.util.I18n.getString(\"alignRight\", \"Align right\"));\r\n jMenuItemAlignRight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignRightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignRight);\r\n\r\n jMenuItemAlignTop = new javax.swing.JMenuItem();\r\n jMenuItemAlignTop.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_top.png\")));\r\n jMenuItemAlignTop.setText(it.businesslogic.ireport.util.I18n.getString(\"alignTop\", \"Align top\"));\r\n jMenuItemAlignTop.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignTopActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignTop);\r\n\r\n jMenuItemAlignBottom = new javax.swing.JMenuItem();\r\n jMenuItemAlignBottom.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_bottom.png\")));\r\n jMenuItemAlignBottom.setText(it.businesslogic.ireport.util.I18n.getString(\"alignBottom\", \"Align bottom\"));\r\n jMenuItemAlignBottom.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignBottomActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignBottom);\r\n\r\n jSeparator19 = new javax.swing.JSeparator();\r\n jMenuAlign.add(jSeparator19);\r\n\r\n jMenuItemAlignVerticalAxis = new javax.swing.JMenuItem();\r\n jMenuItemAlignVerticalAxis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_center_axis.png\")));\r\n jMenuItemAlignVerticalAxis.setText(it.businesslogic.ireport.util.I18n.getString(\"alignVerticalAxis\", \"Align vertical axis\"));\r\n jMenuItemAlignVerticalAxis.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignVerticalAxisActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignVerticalAxis);\r\n\r\n jMenuItemAlignHorizontalAxis = new javax.swing.JMenuItem();\r\n jMenuItemAlignHorizontalAxis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vcenter_axis.png\")));\r\n jMenuItemAlignHorizontalAxis.setText(it.businesslogic.ireport.util.I18n.getString(\"alignHorizontalAxis\", \"Align horizontal axis\"));\r\n jMenuItemAlignHorizontalAxis.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignHorizontalAxisActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignHorizontalAxis);\r\n\r\n m.add(jMenuAlign);\r\n\r\n jMenuSize = new javax.swing.JMenu();\r\n jMenuSize.setText(it.businesslogic.ireport.util.I18n.getString(\"size\", \"Size...\"));\r\n jMenuItemSameWidth = new javax.swing.JMenuItem();\r\n jMenuItemSameWidth.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize.png\")));\r\n jMenuItemSameWidth.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidth\", \"Same width\"));\r\n jMenuItemSameWidth.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidth);\r\n\r\n jMenuItemSameWidthMax = new javax.swing.JMenuItem();\r\n jMenuItemSameWidthMax.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize_plus.png\")));\r\n jMenuItemSameWidthMax.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidthMax\", \"Same width (max)\"));\r\n jMenuItemSameWidthMax.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthMaxActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidthMax);\r\n\r\n jMenuItemSameWidthMin = new javax.swing.JMenuItem();\r\n jMenuItemSameWidthMin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize_min.png\")));\r\n jMenuItemSameWidthMin.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidthMin\", \"Same width (min)\"));\r\n jMenuItemSameWidthMin.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthMinActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidthMin);\r\n\r\n jSeparator17 = new javax.swing.JSeparator();\r\n jMenuSize.add(jSeparator17);\r\n\r\n jMenuItemSameHeight = new javax.swing.JMenuItem();\r\n jMenuItemSameHeight.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize.png\")));\r\n jMenuItemSameHeight.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeight\", \"Same height\"));\r\n jMenuItemSameHeight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeight);\r\n\r\n jMenuItemSameHeightMin = new javax.swing.JMenuItem();\r\n jMenuItemSameHeightMin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize_min.png\")));\r\n jMenuItemSameHeightMin.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeightMin\", \"Same height (min)\"));\r\n jMenuItemSameHeightMin.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightMinActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeightMin);\r\n\r\n jMenuItemSameHeightMax = new javax.swing.JMenuItem();\r\n jMenuItemSameHeightMax.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize_plus.png\")));\r\n jMenuItemSameHeightMax.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeightMax\", \"Same height (max)\"));\r\n jMenuItemSameHeightMax.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightMaxActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeightMax);\r\n\r\n jSeparator18 = new javax.swing.JSeparator();\r\n jMenuSize.add(jSeparator18);\r\n\r\n jMenuItemSameSize = new javax.swing.JMenuItem();\r\n jMenuItemSameSize.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_size.png\")));\r\n jMenuItemSameSize.setText(it.businesslogic.ireport.util.I18n.getString(\"sameSize\", \"Same size\"));\r\n jMenuItemSameSize.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameSizeActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameSize);\r\n\r\n m.add(jMenuSize);\r\n\r\n jMenuPosition = new javax.swing.JMenu();\r\n jMenuPosition.setText(it.businesslogic.ireport.util.I18n.getString(\"position\", \"Position...\"));\r\n jMenuItemCenterH = new javax.swing.JMenuItem();\r\n jMenuItemCenterH.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_hcenter.png\")));\r\n jMenuItemCenterH.setText(it.businesslogic.ireport.util.I18n.getString(\"centerHorizontallyCellBased\", \"Center horizontally (cell based)\"));\r\n jMenuItemCenterH.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterHActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterH);\r\n\r\n jMenuItemCenterV = new javax.swing.JMenuItem();\r\n jMenuItemCenterV.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vcenter.png\")));\r\n jMenuItemCenterV.setText(it.businesslogic.ireport.util.I18n.getString(\"centerVerticallyCellBased\", \"Center vertically (cell based)\"));\r\n jMenuItemCenterV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterVActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterV);\r\n\r\n jMenuItemCenterInCell = new javax.swing.JMenuItem();\r\n jMenuItemCenterInCell.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_ccenter.png\")));\r\n jMenuItemCenterInCell.setText(it.businesslogic.ireport.util.I18n.getString(\"centerInCell\", \"Center in cell\"));\r\n jMenuItemCenterInCell.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterInBandActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterInCell);\r\n\r\n jMenuItemJoinLeft = new javax.swing.JMenuItem();\r\n jMenuItemJoinLeft.setText(it.businesslogic.ireport.util.I18n.getString(\"joinSidesLeft\", \"Join sides left\"));\r\n jMenuItemJoinLeft.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemJoinLeftActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemJoinLeft);\r\n\r\n jMenuItemJoinRight = new javax.swing.JMenuItem();\r\n jMenuItemJoinRight.setText(it.businesslogic.ireport.util.I18n.getString(\"joinSidesRight\", \"Join sides right\"));\r\n jMenuItemJoinRight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemJoinRightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemJoinRight);\r\n\r\n m.add(jMenuPosition);\r\n\r\n jSeparator5 = new javax.swing.JSeparator();\r\n m.add(jSeparator5);\r\n\r\n jMenuHSpacing = new javax.swing.JMenu();\r\n jMenuHSpacing.setText(it.businesslogic.ireport.util.I18n.getString(\"horizontalSpacing\", \"Horizontal spacing...\"));\r\n\r\n jMenuItemHSMakeEqual = new javax.swing.JMenuItem();\r\n jMenuItemHSMakeEqual.setText(it.businesslogic.ireport.util.I18n.getString(\"makeEqual\", \"Make equal\"));\r\n jMenuItemHSMakeEqual.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSMakeEqualActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSMakeEqual);\r\n\r\n jMenuItemHSIncrease = new javax.swing.JMenuItem();\r\n jMenuItemHSIncrease.setText(it.businesslogic.ireport.util.I18n.getString(\"increase\", \"Increase\"));\r\n jMenuItemHSIncrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSIncreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSIncrease);\r\n\r\n jMenuItemHSDecrease = new javax.swing.JMenuItem();\r\n jMenuItemHSDecrease.setText(it.businesslogic.ireport.util.I18n.getString(\"decrease\", \"Decrease\"));\r\n jMenuItemHSDecrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSDecreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSDecrease);\r\n\r\n jMenuItemHSRemove = new javax.swing.JMenuItem();\r\n jMenuItemHSRemove.setText(it.businesslogic.ireport.util.I18n.getString(\"remove\", \"Remove\"));\r\n jMenuItemHSRemove.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSRemoveActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSRemove);\r\n\r\n m.add(jMenuHSpacing);\r\n\r\n jMenuVSpacing = new javax.swing.JMenu();\r\n jMenuVSpacing.setText(it.businesslogic.ireport.util.I18n.getString(\"verticalSpacing\", \"Vertical spacing\"));\r\n jMenuItemVSMakeEqual = new javax.swing.JMenuItem();\r\n jMenuItemVSMakeEqual.setText(it.businesslogic.ireport.util.I18n.getString(\"makeEqual\", \"Make equal\"));\r\n jMenuItemVSMakeEqual.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSMakeEqualActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSMakeEqual);\r\n\r\n jMenuItemVSIncrease = new javax.swing.JMenuItem();\r\n jMenuItemVSIncrease.setText(it.businesslogic.ireport.util.I18n.getString(\"increase\", \"Increase\"));\r\n jMenuItemVSIncrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSIncreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSIncrease);\r\n\r\n jMenuItemVSDecrease = new javax.swing.JMenuItem();\r\n jMenuItemVSDecrease.setText(it.businesslogic.ireport.util.I18n.getString(\"decrease\", \"Decrease\"));\r\n jMenuItemVSDecrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSDecreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSDecrease);\r\n\r\n jMenuItemVSRemove = new javax.swing.JMenuItem();\r\n jMenuItemVSRemove.setText(it.businesslogic.ireport.util.I18n.getString(\"remove\", \"Remove\"));\r\n jMenuItemVSRemove.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSRemoveActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSRemove);\r\n\r\n m.add(jMenuVSpacing);\r\n\r\n jSeparator8 = new javax.swing.JSeparator();\r\n m.add(jSeparator8);\r\n\r\n jMenuItemBringToFront = new javax.swing.JMenuItem();\r\n jMenuItemBringToFront.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/sendtofront.png\")));\r\n jMenuItemBringToFront.setText(it.businesslogic.ireport.util.I18n.getString(\"bringToFront\", \"Bring to front\"));\r\n jMenuItemBringToFront.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemBringToFrontActionPerformed(evt);\r\n }\r\n });\r\n\r\n m.add(jMenuItemBringToFront);\r\n\r\n jMenuItemSendToBack = new javax.swing.JMenuItem();\r\n jMenuItemSendToBack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/sendtoback.png\")));\r\n jMenuItemSendToBack.setText(it.businesslogic.ireport.util.I18n.getString(\"sendToBack\", \"Send to back\"));\r\n jMenuItemSendToBack.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSendToBackActionPerformed(evt);\r\n }\r\n });\r\n\r\n m.add(jMenuItemSendToBack);\r\n\r\n }",
"private JPopupMenu rightClickNodeHandle(int selRow, JPopupMenu menu, DefaultTreeModel model, TreeNode node) {\n\t\t\tif (menu == null){\n\t\t\t\tmenu = new JPopupMenu();\n\t\t\t}\n\n\t\t\tif (selRow - 1 < 0 || node == null){\n\t\t\t\treturn menu;\n\t\t\t}\n\n\t\t\tJMenuItem item;\n\t\t\tint i = 0;\n\t\t\tfor (String dinosaur : node.getNodeOption().getList()){\n\t\t\t\tfinal int ii = i;\n\t\t\t\titem = new JMenuItem(dinosaur);\n\t\t\t\titem.addActionListener(new ActionListener(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tnode.getNodeOption().click(ii, selRow - 1);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tmenu.add(item);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tJMenuItem edit = new JMenuItem(\"Edit\");\n\t\t\tedit.addActionListener(new ActionListener(){\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tRatPackStudio.dataManager.getGameData().editData(node);\n\t\t\t\t}\n\t\t\t});\n\t\t\tJMenuItem delete = new JMenuItem(\"Delete\");\n\t\t\tdelete.addActionListener(new ActionListener(){\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tint response = JOptionPane.showConfirmDialog(null, \"Are you sure you want to delete \" + node.getUserObject() + \"?\");\n\t\t\t\t\tif (response == 0){\n\t\t\t\t\t\ttree.deleteItem(selRow - 1);\n\t\t\t\t\t\tRatPackStudio.dataManager.getGameData().removeData(node);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tJMenuItem rename = new JMenuItem(\"Rename\");\n\t\t\trename.addActionListener(new ActionListener(){\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tString newName = JOptionPane.showInputDialog(null, \"Enter a new name for \" + node.getUserObject() + \".\");\n\t\t\t\t\tif (newName != null){\n\t\t\t\t\t\tif (newName.length() != 0){\n\t\t\t\t\t\t\tnode.setUserObject(newName);\n\t\t\t\t\t\t\tmodel.reload();\n\t\t\t\t\t\t\tRatPackStudio.dataManager.getGameData().renameData(node, newName);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tmenu.add(edit);\n\t\t\tmenu.add(delete);\n\t\t\tmenu.add(rename);\n\t\t\treturn menu;\n\t\t}",
"public Object getMenuStructure(Map<String, Object> params) {\r\n\t\treturn menuEditor.getMenuStructure(null, params);\r\n\t}",
"public native MenuItem getSelectedItem();",
"@Override\n\tpublic List<MenuDto> menuInfo() {\n\t\tList<MenuDto> menuByParent = mapper.menuByParent(0);\n\t\treturn menuByParent;\n\t}",
"C getMenu();",
"private static List<Integer> getRow(int rowIndex, int[][] m) {\r\n int[] rowArray = m[rowIndex];\r\n List<Integer> row = new ArrayList<Integer>(rowArray.length);\r\n for (int i : rowArray)\r\n row.add(i);\r\n\r\n return row;\r\n }",
"@Override\n\t\t\tpublic TableRow<Document> call(TableView<Document> param) {\n\t\t\t\tTableRow<Document> row = new TableRow<Document>();\n\t\t\t\tMenuItem openItem = new MenuItem(\"打开\");\n\t\t\t\topenItem.setOnAction(e->{\n\t\t\t\t\tSystem.out.println(\"打开文件\");\n\t\t\t\t});\n\t\t\t\tMenuItem deleteItem = new MenuItem(\"删除\");\n\t\t\t\tMenuItem renameItem = new MenuItem(\"重命名\");\n\t\t\t\tMenuItem setmodeItem = new MenuItem(\"设置属性\");\n\t\t\t\tContextMenu menu = new ContextMenu(openItem,deleteItem,renameItem,setmodeItem);\n\t\t\t\trow.setOnMouseClicked(e->{\n\t\t\t\t\tif (e.getButton() == MouseButton.PRIMARY &&\n\t\t\t\t\t\t\t!row.isEmpty()) {\n\t\t\t\t\t\trow.setContextMenu(menu);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn row;\n\t\t\t}",
"public String getOptionsSectionData(int row)\r\n\t\t{\r\n\t\t\treturn receiptsetup.getOptionsSectionData(row);\r\n\t\t}",
"public Object getValueAt(int row, int column) {\n Preso cli = lista.get(row);\n /*if (column == Id) {\n return cli.getId();\n } else*/ if (column == Nome) {\n return cli.getNome();\n } if (column == Tempo) {\n return cli.getTempo();\n } else\n\n return \"\"; //Nunca deve ocorrer \n }",
"public ArrayList<String> menuComBox();",
"@Override\n\tpublic List<Menu> getListByUsernameAndType(String username, String type) {\n\t\tString hql = \" from Menu where enable=1 and autoId in(select menuId from GroupMenu where groupId in(SELECT groupId FROM UserMenuGroup where username='\"\n\t\t\t\t+ username + \"')) and type='\" + type + \"'\";\n\t\thql+=\" order by menuOrder asc\";\n\t\tQuery query = getCurrentSession().createQuery(hql);\n\t\treturn query.list();\n\t}",
"@NonNull\n Collection<TObj> getRowItems(int row) {\n Collection<TObj> result = new LinkedList<>();\n SparseArrayCompat<TObj> array = mData.get(row);\n for (int count = array.size(), i = 0; i < count; i++) {\n int key = array.keyAt(i);\n TObj columnObj = array.get(key);\n if (columnObj != null) {\n result.add(columnObj);\n }\n\n }\n return result;\n }",
"public void populateMenuFields(){\n\t\t\t\n\t\t\tif (restaurant.getMenu().getItems().size()!=0)\n\t\t\t{\n\t\t\t\tfor(int i=0;i<restaurant.getMenu().getItems().size();i++)\n\t\t\t\t{\n\t\t\t\t\tlistOfItemNames.add(restaurant.getMenu().getItemAt(i).getItemName());\n\t\t\t\t\tlistOfDescription.add(restaurant.getMenu().getItemAt(i).getItemDescription());\n\t\t\t\t\tlistOfPrice.add(restaurant.getMenu().getItemAt(i).getItemPrice()+\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private List<LevelInformation> getLevelListToRun(String path, SubMenuAnimation<Task<Void>> subMenu)\n throws IOException {\n List<LevelSpecificationReader> levelSpecificationReaderList = new ArrayList<>();\n LevelSetReader levelSetReader = new LevelSetReader(Paths.get(path));\n levelSetReader.fromReader(new FileReader(path));\n Map<String, List<String>> levelSetMap = levelSetReader.getMapToAdd();\n List<String> keyStringList = new ArrayList<>();\n List<String> messageStringList = new ArrayList<>();\n List<String> pathStringList = new ArrayList<>();\n\n for (Map.Entry<String, List<String>> entry : levelSetMap.entrySet()) {\n levelSpecificationReaderList.add(new LevelSpecificationReader(\n Paths.get(entry.getValue().get(1))));\n\n keyStringList.add(entry.getKey() + \"\");\n messageStringList.add(\"Press (\" + entry.getKey() + \") for \" + entry.getValue().get(0) + \" Level\");\n pathStringList.add(entry.getValue().get(1));\n\n\n }\n int i = 0;\n for (LevelSpecificationReader lsr : levelSpecificationReaderList) {\n subMenu.addSelection(keyStringList.get(i),\n messageStringList.get(i)\n , new StartTask(this,\n levelSpecificationReaderList.get(i).fromReader(new FileReader(pathStringList.get(i)))));\n i++;\n }\n\n return new ArrayList<>();\n }",
"private int getMenuSelection() {\n return view.printMenuAndGetSelection();\n }",
"@Override\n\tpublic List<Menu> getMenuPerById(Menu menu,Integer roleId) {\n\t\treturn this.menuDao.getMenuPerById(menu,roleId);\n\t}",
"public static int menu()\n {\n \n int choix;\n System.out.println(\"MENU PRINCIPAL\");\n System.out.println(\"--------------\");\n System.out.println(\"1. Operation sur les membres\");\n System.out.println(\"2. Operation sur les taches\");\n System.out.println(\"3. Assignation de tache\");\n System.out.println(\"4. Rechercher les taches assigne a un membre\");\n System.out.println(\"5. Rechercher les taches en fonction de leur status\");\n System.out.println(\"6. Afficher la liste des taches assignees\");\n System.out.println(\"7. Sortir\");\n System.out.println(\"--------------\");\n System.out.print(\"votre choix : \");\n choix = Keyboard.getEntier();\n System.out.println();\n return choix;\n }",
"public void listarParametros(String idPanel) throws Exception;",
"public JMenuItem getMenuItem()\n\t\t\t\t{\n\t\t\t\tEvSwingUtil.tearDownMenu(miBookmark);\n\t\t\t\tmiBookmark.add(miAddBookmark);\n\t\t\t\tmiAddBookmark.addActionListener(new ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tEvContainer container=w.getSelectedData();\n\t\t\t\t\t\tString name=Bookmark.addBookmarkDialog(w, container);\n\t\t\t\t\t\tif(name!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tBookmark b=new Bookmark();\n\t\t\t\t\t\t\tb.frame=w.getFrame();\n\t\t\t\t\t\t\tb.z=w.getZ();\n\t\t\t\t\t\t\tnew UndoOpPutObject(\"Add bookmark \"+name, b, container, name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\tmiBookmark.addSeparator();\n\t\t\t\t\n\t\t\t\tfor(EvData data:EvDataGUI.openedData)\n\t\t\t\t\t{\n\t\t\t\t\tJMenu miData=new JMenu(data.getMetadataName());\n\t\t\t\t\tfor(Map.Entry<EvPath, Bookmark> e:data.getIdObjectsRecursive(Bookmark.class).entrySet())\n\t\t\t\t\t\t{\n\t\t\t\t\t\tJMenuItem miGoto=new JMenuItem(\"=> \"+e.getKey());\n\t\t\t\t\t\tmiData.add(miGoto);\n\t\t\t\t\t\tfinal Bookmark m=e.getValue();\n\t\t\t\t\t\t\n\t\t\t\t\t\tmiGoto.addActionListener(new ActionListener()\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//if(w.frameControl!=null)\n\t\t\t\t\t\t\t\t\t//{\n\t\t\t\t\t\t\t\tw.setFrame(m.frame);\n\t\t\t\t\t\t\t\tif(m.z!=null)\n\t\t\t\t\t\t\t\t\tw.setZ(m.z);\n\t\t\t\t\t\t\t\t\t//}\n\t\t\t\t\t\t\t\tw.repaint();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\tif(miData.getItemCount()>0)\n\t\t\t\t\t\tmiBookmark.add(miData);\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treturn miBookmark;\n\t\t\t\t}",
"public static String[] generarOpcionesMenu() {\n\t\tString[] opcionesMenu = new String[VALUES.length + 1];\n\t\tint i = 0;\n\t\tfor (Modelo modelo : VALUES) {\n\t\t\topcionesMenu[i++] = modelo.name();\n\t\t}\n\t\topcionesMenu[i] = \"Salir\";\n\t\treturn opcionesMenu;\n\t}",
"public void readTheMenu();",
"@Override\n public List<WebElement> getSubMenu() {\n\n final List<WebElement> subMenus = DriverConfig.getDriver().findElements(\n By.xpath(\"//*[@id='submenu']/a\"));\n if (subMenus != null) {\n for (final WebElement webElement : subMenus) {\n DriverConfig.setLogString(\"SubMenu :\" + webElement.getText(), true);\n }\n }\n return subMenus;\n }",
"private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }",
"String getRows(int index);",
"private Object getMenuListResponce(String appUserId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tlogger.info(\":::inside getMentListResponce:::\"+appUserId);\r\n\t\tArrayList<HubMenuModelV2> mainMenuList=new ArrayList<HubMenuModelV2>();\r\n\t\tArrayList<HubMenuModelV2> subMenuList=null;\r\n\t\tSqlRowSet rst=null,rst1=null;\r\n\t\ttry{\r\n\t\t\trst=jdbcTemplateObject.queryForRowSet(\"select * from tbl_hub_menu_list order by sort_order_id\");\r\n\t\t\twhile(rst.next()){\r\n\t\t\t\tHubMenuModelV2 menuModel=new HubMenuModelV2();\r\n\t\t\t\tmenuModel.setKey(rst.getString(\"menu_key\"));\r\n\t\t\t\tmenuModel.setValue(rst.getString(\"value\"));\r\n\t\t\t\tmenuModel.setIcon(rst.getString(\"icon\"));\r\n\t\t\t\tmenuModel.setSelected_icon(rst.getString(\"selected_icon\"));\r\n\t\t\t\tmenuModel.setDeeplink_url(rst.getString(\"deeplink_url\"));\r\n\t\t\t\tmenuModel.setSort_order_id(rst.getString(\"sort_order_id\"));\r\n\t\t\t\trst1=jdbcTemplateObject.queryForRowSet(\"select * from tbl_hub_sub_menu_list where menu_id=\"+rst.getInt(\"menu_id\")+\" order by sort_order_id\");\r\n\t\t\t\tif(rst1!=null){\r\n\t\t\t\t\tsubMenuList=new ArrayList<HubMenuModelV2>();\r\n\t\t\t\t}\r\n\t\t\t\twhile(rst1.next()){\r\n\t\t\t\t\tHubMenuModelV2 menuModel1=new HubMenuModelV2();\r\n\t\t\t\t\tmenuModel1.setKey(rst1.getString(\"menu_key\"));\r\n\t\t\t\t\tmenuModel1.setValue(rst1.getString(\"value\"));\r\n\t\t\t\t\tmenuModel1.setIcon(rst1.getString(\"icon\"));\r\n\t\t\t\t\tmenuModel1.setSelected_icon(rst1.getString(\"selected_icon\"));\r\n\t\t\t\t\tmenuModel1.setDeeplink_url(rst1.getString(\"deeplink_url\"));\r\n\t\t\t\t\tmenuModel1.setSort_order_id(rst1.getString(\"sort_order_id\"));\r\n\t\t\t\t\tsubMenuList.add(menuModel1);\r\n\t\t\t\t}\r\n\t\t\t\tif(subMenuList!=null){\r\n\t\t\t\t\tmenuModel.setSubMenuList(subMenuList);\r\n\t\t\t\t}\r\n\t\t\t\tmainMenuList.add(menuModel);\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.info(\":::Exception in getting menu list:::\"+e.getLocalizedMessage());\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn mainMenuList;\r\n\t}",
"@Override\r\n\tpublic Menu getMenu(int mid) \r\n\t{\n\t\ttry {\r\n\t\t\tMenu dummy=new Menu();\r\n\t\t\tdummy.setMid(mid);\r\n\t\r\n\t\t\tif(allMenuList.contains(dummy))\r\n\t\t\t{\r\n\t\t\t\tint index=allMenuList.indexOf(dummy);\r\n\t\t\t\treturn allMenuList.get(index);\r\n\t\t\t}\r\n\t\t\t//if not found from the list then get from db and add it to the list\r\n\t\tConnection connection=DBConnection.getConnection();\r\n\t\tString sqlQuery=\"select * from \"+TABLEmenu+\" where \"+COLmid+\" = \"+\"?\";\r\n\t\t\r\n\t\t\tPreparedStatement pst=connection.prepareStatement(sqlQuery);\r\n\t\t\tpst.setInt(1, mid);\r\n\t\t\tSystem.out.println(pst);\r\n\t\t\tpst.executeQuery();\r\n\t\t\tResultSet rs=pst.getResultSet();\r\n\t\t\t//if not even a single line is returned there is no student with this id\r\n\t\t\tif(rs.next()==false) return null;\r\n\t\t\t\r\n\t\t\tint vid=rs.getInt(COLvid);\r\n\t\t\tString mname=rs.getString(COLmname);\r\n\t\t\tint mprice=rs.getInt(COLmprice);\r\n\t\t\tString vname=rs.getString(COLvname);\r\n\t\t\r\n\t\t\tMenu menu=new Menu(mid,vid,mname,mprice,vname);\r\n\t\t\t\r\n\t\t\tallMenuList.add(menu);\r\n\t\t\treturn menu;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<Tmenu> findList(Tmenu t) throws Exception {\n\t\tt.setTotalNum(menuMapper.findCount(t));\n\t\treturn menuMapper.findForList(t);\n\t}",
"public abstract Tree extractMenuBarItems (Object obj) throws SAFSException;",
"public String navigateMenuRolList() {\n Submenu selected = this.getSelected();\n if (selected != null) {\n SubmenuFacade ejbFacade = (SubmenuFacade) this.getFacade();\n List<MenuRol> selectedMenuRolList = ejbFacade.findMenuRolList(selected);\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"MenuRol_items\", selectedMenuRolList);\n }\n return this.mobilePageController.getMobilePagesPrefix() + \"/app/menuRol/index\";\n }",
"public List getMenu() {\n createMenuGroupError = false;\n menulist = new Menus_List();\n return menulist.getMenu();\n }",
"public Object getValueAt(int row, int col)\n {\n \tProductLogger product = products.get(row);\n \tswitch (col) {\n \tcase 0 : return product.label;\n \tcase 1 : return product.info;\n \tcase 2 : return product.debug;\n \tcase 3 : return product.warning;\n \t}\n \treturn null;\n }",
"private List<DrawerItem> getDrawerMenuItems() {\n List<DrawerItem> items = new ArrayList<DrawerItem>();\n items.add(new DrawerItem().setTitle(\"all\").setFeedStrategy(_personalKeyStrategyProvider.create()));\n items.add(new DrawerItem().setTitle(\"shared\").setFeedStrategy(_sharedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"recommended\").setFeedStrategy(_recommendedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"saved\").setFeedStrategy(_savedFeedStrategyProvider.create(0)));\n items.add(new DrawerItem().setTitle(\"read\").setFeedStrategy(_readFeedStrategyProvider.create(0)));\n return items;\n }",
"@Transactional\r\n\tpublic List<Menu> getMenu() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\r\n\t\t// create a query\r\n\t\tQuery<Menu> theQuery = currentSession.createQuery(\"from Menu\", Menu.class);\r\n\r\n\t\t// execute query and get result list\r\n\t\tList<Menu> m = theQuery.getResultList();\r\n\t\t// return the results\r\n\t\treturn m;\r\n\r\n\t}",
"public int menu() {\n System.out.println(\"MENU PRINCIPAL\\n\"\n + \"1 - CADASTRO DE PRODUTOS\\n\"\n + \"2 - MOVIMENTAÇÃO\\n\"\n + \"3 - REAJUSTE DE PREÇOS\\n\"\n + \"4 - RELATÓRIOS\\n\"\n + \"0 - FINALIZAR\\n\");\n return getEscolhaMenu(); \n }",
"ObservableList<MenuItem> getFilteredMenuItemList();",
"public MenuItem getMenuItem() {\n return menuItem;\n }",
"@Override\n\tpublic List<Tmenu> selectParentMenu() {\n\t\treturn menuMapper.selectParentMenu();\n\t}",
"void parameterSelection(DynamicTable table) {\n\n // Add checkbox to form\n table.addRow(ec.crSpanColsRow(\"<br>Weather Parameter Selection\",2));\n table.addRow(ec.crSpanColsRow(\"<font color=green size=2>\" +\n \"Select ONE or MORE of the following: </font>\",2));\n String seqNum[] = {\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\"};\n boolean tf = true;\n String parms = \"\";\n for (int i = 0; i < 10; i++) {\n parms += \"\\n\" + chFSize(sc.VOSPARMSLIST[i],\"-1\") + \" \" +\n new CheckBox(sc.PARMS+seqNum[i], seqNum[i], tf).toHTML() +\n \" <br>\";\n tf = false;\n } // for int i\n table.addRow(ec.crSpanColsRow(parms,2,false,\"\",IHAlign.RIGHT));\n }",
"public int getRow(){\r\n // return statement\r\n return row;\r\n }",
"@Override\n\tpublic Object getValueAt(int arg0, int arg1) {\n\t\treturn allProducts[arg0][arg1];\n\t}",
"public void componentSelected(MenuEvent ce) {\n\t\t\t\tREModel.setResourceExplorer(null);\n\t\t\t\t\n\t\t\t\tif (REModel.CLOSE){\n\t\t\t\t\t//hide the context menu\n\t\t\t\t\tREModel.getResourceExplorer().setCatalogueContextMenu(null);\n\t\t\t\t\tREModel.getResourceExplorer().getWindow().close();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfinal List<ResourceChildModel> projectList = new ArrayList<ResourceChildModel>();\n\t\t\t\tfinal List<ResourceChildModel> selectedItems = table.getSelectionModel().getSelectedItems();\n\t\t\t\n\t\t\t\tfor (ResourceChildModel model : selectedItems) {\n\t\t\t\t\t\n\t\t\t\t\tif(model.getType().equals(ResourceType.PROJECT))\n\t\t\t\t\t projectList.add(model);\n\t\t\t\t\telse {\n\t\t\t\t\t\t//projectList.add((ResourceChildModel)((item.getParentItem()).getParentItem()).getModel());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//open project resources\n\t\t\t\tfor (ResourceChildModel rsrcModel: selectedItems){\n\t\t\t\t\tString type = rsrcModel.getType();\n\t\t\t\t\tLong id = Long.valueOf(rsrcModel.getId());\n\t\t\t\t\t\t\n\t\t\t\t\tif(type.equals(ResourceType.MAPVIEW)) {\n\t\t\t\t\t\tMapWindow mw = new MapWindow(rsrcModel.getId(), rsrcModel.getName());\n\t\t\t\t\t\tmw.show();\n\t\t\t\t\t}\n\t\t\t\t\telse if(type.equals(ResourceType.CHARTVIEW)) {\n\t\t\t\t\t\tnew ChartViewer(rsrcModel.getId());\n\t\t\t\t\t}\n\t\t\t\t\telse if(type.equals(ResourceType.TABLEVIEW)) {\t\t\t\t\t\n\t\t\t\t\t\tnew TableWindow().showAllData(id, rsrcModel.hasWritePermission(), rsrcModel.isFlexDatasetType(), rsrcModel.getName());\n\t\t\t\t\t\t//new TableWindow().build(id, rsrcModel.hasWritePermission(), rsrcModel.isFlexDatasetType(), rsrcModel.getName());\n\t\t\t\t\t}\n\t\t\t\t\telse if(type.equals(ResourceType.DATASET)) {\t\t\t\t\t\t\n\t\t\t\t\t\tnew TableWindow().showAllData(id, rsrcModel.hasWritePermission(), rsrcModel.isFlexDatasetType(), rsrcModel.getName());\n\t\t\t\t\t\t//new TableWindow().build(id, rsrcModel.hasWritePermission(), rsrcModel.isFlexDatasetType(), rsrcModel.getName());\n\t\t\t\t\t}\n\t\t\t\t\telse if(type.equals(ResourceType.REPORT)) {\n\t\t\t\t\t\tnew ReportViewer(id);\n\t\t\t\t\t}\n\t\t\t\t\telse if(type.equals(ResourceType.TEXTVIEW)) {\n\t\t\t\t\t\tResourceOpener.openTextViewer(id, rsrcModel.hasWritePermission());\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(type.equals(ResourceType.LAYER)) {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse if(type.equals(ResourceType.PATTERN)) {\n\t\t\t\t\t\tFenixAlert.info(\"Info\", \"The associated datasets for the data theme can be viewed from the project manager.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\n\t\t\t\tif(projectList!=null){\n\t\t\t\t//add parent project to project manager\n\t\t\t\tPMModel.addProjectToProjectManager(projectList);\n\t\t\t\t} else {\n\t\t\t\t\tPMModel.addResourceToProjectManager(selectedItems, \"addResource\");\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}",
"protected abstract List<OpcionMenu> inicializarOpcionesMenu();",
"public Object getSubMenuV2(String menuItemkey,String subMenuItemkey) {\n\t\tlogger.info(\":::inside getSubMenuV2:::\");\r\n\t\tSqlRowSet rst=null,rst1=null;\r\n\t\tHubMenuModelV2 menuModel1=new HubMenuModelV2();\r\n\t\ttry{\r\n\t\t\trst=jdbcTemplateObject.queryForRowSet(\"select menu_id from tbl_hub_menu_list where menu_key='\"+menuItemkey+\"'\");\r\n\t\t\tif(rst.next()){\r\n\t\t\t\trst1=jdbcTemplateObject.queryForRowSet(\"select * from tbl_hub_sub_menu_list where menu_id=\"+rst.getInt(\"menu_id\")+\" and menu_key='\"+subMenuItemkey+\"'\");\r\n\t\t\t\tif(rst1.next()){\r\n\t\t\t\t\tmenuModel1.setKey(rst1.getString(\"menu_key\"));\r\n\t\t\t\t\tmenuModel1.setValue(rst1.getString(\"value\"));\r\n\t\t\t\t\tmenuModel1.setIcon(rst1.getString(\"icon\"));\r\n\t\t\t\t\tmenuModel1.setSelected_icon(rst1.getString(\"selected_icon\"));\r\n\t\t\t\t\tmenuModel1.setDeeplink_url(rst1.getString(\"deeplink_url\"));\r\n\t\t\t\t\tmenuModel1.setSort_order_id(rst1.getString(\"sort_order_id\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.info(\":::Exception in getting SubMenu:::\"+e.getLocalizedMessage());\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\t\treturn menuModel1;\r\n\t}",
"@Override\n\tpublic List<Tmenu> selectMenuByUser(Tadmin admin) {\n\t\treturn menuMapper.selectMenuByUser(admin);\n\t}",
"public String getText(T anItem, int aCol) { return getText(anItem); }",
"public interface ChooseMenuAdapter {\n\n int getMenuCount();\n\n String getMenuTitleByPosition(int position);\n\n View getView(int position);\n}",
"public List<FeatureDataBean> getAllMenuMenuitemFeatures() throws GenericDatabaseException {\n List<String> MenutypesRequired = new ArrayList<>();\n MenutypesRequired.add(\"Menu\");\n MenutypesRequired.add(\"MenuItem\");\n return (convertFeatureDataBeanToFeatureModel(featureService.retrieveAllFeaturesByListOfMenuType(MenutypesRequired, null, true, false)));\n }",
"@SuppressWarnings(\"unchecked\")\r\n public List<SysRoleMenu> selectByExample(SysRoleMenuExample example) throws SQLException {\r\n List<SysRoleMenu> list =\r\n sqlMapClient.queryForList(\"SYS_ROLE_MENU.ibatorgenerated_selectByExample\", example);\r\n return list;\r\n }",
"public void list_of_menu_items() {\n\t\tdriver.findElement(open_menu_link).click();\n\t}",
"public List<MenuDTO> getMenuAll() throws NamingException, SQLException\n {\n Connection con = null;\n PreparedStatement pst =null;\n ResultSet rs = null;\n List<MenuDTO> list = null;\n try\n {\n con = dbultis.DBUtils.makeConnection();\n if(con!=null)\n {\n String sql = \"use [J3.L.P0013]\\n\"\n + \"select MenuID,[Menu Name],[Information Food], Price\\n\"\n + \"from MenuAndprice\";\n pst = con.prepareStatement(sql);\n rs = pst.executeQuery();\n if(rs!=null)\n {\n list = new ArrayList<>();\n while(rs.next())\n {\n int id;\n String menuName,informationFood;\n float price;\n id = rs.getInt(\"MenuID\");\n menuName = rs.getString(\"Menu Name\");\n informationFood = rs.getString(\"Information Food\");\n price = rs.getFloat(\"Price\");\n list.add(new MenuDTO(id, menuName, informationFood, price));\n }\n }\n }\n }\n finally\n {\n if(con!=null)\n {\n con.close();\n }\n }\n return list;\n }",
"public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }",
"@Override\n public int getRowCount() {\n if (menuItems.size() > 0) {\n return menuItems.size() + 2;\n } else {\n return menuItems.size();\n }\n }",
"private ContextMenu getElementSpecificContextMenu(){\n MenuItem menuItem_EditTLE = new MenuItem(\"Edit annotation\");\n menuItem_EditTLE.setOnAction(event -> handleEditTimeLineElementClick());\n\n\n MenuItem menuItem_DeleteTLE = new MenuItem(\"Delete annotation\");\n menuItem_DeleteTLE.setOnAction(event -> handleDeleteTimeLineElementClick());\n\n return new ContextMenu(menuItem_EditTLE, menuItem_DeleteTLE);\n }",
"public int getRow(){ return (Integer)args[0]; }",
"String getValue(String column, int row);"
] | [
"0.5869055",
"0.5832966",
"0.5796256",
"0.56592923",
"0.565637",
"0.5654712",
"0.564312",
"0.56395066",
"0.5625126",
"0.5482042",
"0.5470708",
"0.54607785",
"0.5455548",
"0.54223853",
"0.5402144",
"0.53973305",
"0.53972316",
"0.5370566",
"0.5363735",
"0.53506005",
"0.53488827",
"0.53389525",
"0.533502",
"0.53188914",
"0.53153336",
"0.52990943",
"0.5292952",
"0.5290671",
"0.52730244",
"0.5258821",
"0.5257028",
"0.5242124",
"0.5210703",
"0.51643825",
"0.51584643",
"0.51110196",
"0.5099114",
"0.50981385",
"0.509435",
"0.5084189",
"0.5069953",
"0.5059507",
"0.504892",
"0.50391203",
"0.5030408",
"0.5017405",
"0.50149614",
"0.5012637",
"0.5008894",
"0.5004989",
"0.500078",
"0.49999022",
"0.49961063",
"0.49959785",
"0.49953902",
"0.499392",
"0.4978056",
"0.4974708",
"0.4964684",
"0.49548903",
"0.4950119",
"0.49456948",
"0.49274102",
"0.49254298",
"0.49248978",
"0.49239892",
"0.49214736",
"0.4918731",
"0.49175566",
"0.49172178",
"0.49131808",
"0.49097243",
"0.49096367",
"0.49092922",
"0.4894886",
"0.48941037",
"0.48914647",
"0.48897758",
"0.48855722",
"0.48814672",
"0.48766285",
"0.48766237",
"0.48619562",
"0.48587215",
"0.48534042",
"0.48456183",
"0.48401102",
"0.48399666",
"0.4835724",
"0.48355106",
"0.48350143",
"0.48338887",
"0.4828372",
"0.48274246",
"0.48261273",
"0.48250738",
"0.4820767",
"0.48203096",
"0.48153284",
"0.48124227"
] | 0.7713654 | 0 |
This gets called by the base class LineProbeControl class when the probe positon has changed (either through user interaction or through the sharing framework. | protected void probePositionChanged(RealTuple position) {
try {
loadProfile(position);
} catch (Exception exc) {
logException("probePositionChanged", exc);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void doMoveProbe() {\n super.doMoveProbe();\n // getChart().updateThumb();\n }",
"private void handleLatLonWidgetChange() {\n try {\n double lat = latLonWidget.getLat();\n double lon = latLonWidget.getLon();\n double[] xyz = earthToBox(makeEarthLocation(lat, lon, 0));\n setProbePosition(xyz[0], xyz[1]);\n\n } catch (Exception exc) {\n logException(\"Error setting lat/lon\", exc);\n }\n\n }",
"@Override\r\n public void changed(ObservableValue<? extends Duration> observable, Duration oldValue, Duration newValue) {\r\n\r\n // skip starting at 0/0\r\n if( oldValue == Duration.ZERO)\r\n return;\r\n\r\n // get current location\r\n double x = pen.getTranslateX();\r\n double y = pen.getTranslateY();\r\n\r\n // initialize the location\r\n if( oldLocation == null) {\r\n oldLocation = new Location();\r\n oldLocation.x = x;\r\n oldLocation.y = y;\r\n return;\r\n }\r\n\r\n // draw line\r\n gc.setStroke(Color.BLUE);\r\n gc.setFill(Color.YELLOW);\r\n gc.setLineWidth(7);\r\n gc.strokeLine(oldLocation.x, oldLocation.y, x, y);\r\n\r\n // update old location with current one\r\n oldLocation.x = x;\r\n oldLocation.y = y;\r\n }",
"@Override\n\t\t\tpublic void onLocatorChanged(LocatorData locatorData) {\n\t\t\t\tsphero_x = locatorData.getPositionX();\n\t\t\t\tsphero_y = locatorData.getPositionY();\n\t\t\t}",
"public void setLinePos(int linePos) {\n this.linePos = linePos;\n }",
"@Override\r\n public void postComputeInputOutputHook()\r\n {\n if (view.isTrackingEnabled() || view.isCASelected())\r\n {\r\n //Change to time of last event, by Chao at 9.23.2019\r\n view.addTrackingAt(simulator.getTimeOfLastEvent());\r\n } \r\n \r\n if (view.isCASelected())\r\n {\r\n view.synchronizeCAView();\r\n }\r\n else\r\n {\r\n view.synchronizeView();\r\n }\r\n }",
"private void cursorPosChanged( double x, double y )\n {\n }",
"@Override\n public void offsetChange (float xOffset, float yOffset, float xOffsetStep, float yOffsetStep, int xPixelOffset, int yPixelOffset) {\n pixelOffset = xPixelOffset;\n }",
"public final void changeModified(int line, int column) {\n\t\tmodified=true;\n\t\tArrayList<Integer> coordinates = new ArrayList<Integer>(); \n\t\tcoordinates.add(line);\n\t\tcoordinates.add(column);\n\t\tsetChanged();\n\t\tnotifyObservers(coordinates);\n\t}",
"void setPointChange(Integer setPoint, Integer expectedValue);",
"public void showLineProperties(VerticalProfileInfo vpInfo) {\n PropertyChangeListener listener = new PropertyChangeListener() {\n public void propertyChange(PropertyChangeEvent evt) {\n try {\n VerticalProfileControl.this.doMoveProbe();\n } catch (Exception exc) {\n logException(\"Updating position\", exc);\n }\n }\n };\n LineState lineState = vpInfo.getLineState();\n lineState.showPropertiesDialog(getStore(), listener,\n getChart().getPlotNames(),\n getChart().getCurrentRanges());\n }",
"public void changed(LocationEvent arg0) {\n \t\t\t\t\t\t\n \t\t\t\t\t}",
"@Override\n \tpublic void roiChanged(ROIEvent evt) {\n \t\t\n \t}",
"public abstract void onLineMode ();",
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}",
"public void setLine (int Line);",
"public void onOutputLineAdded(Window window, OutputLine line) {\n\t\t\t\n\t\t\tlinesLayout.addLine(line);\n\t\t}",
"public void setThresholdOffset(IfcLengthMeasure ThresholdOffset)\n\t{\n\t\tthis.ThresholdOffset = ThresholdOffset;\n\t\tfireChangeEvent();\n\t}",
"public void setLiningOffset(IfcLengthMeasure LiningOffset)\n\t{\n\t\tthis.LiningOffset = LiningOffset;\n\t\tfireChangeEvent();\n\t}",
"void setupLineScaleProportional() {\n\t\t// init start position of neighbor lines\n\t\tleftNeighborLine = line[neighbor(selectedLine)[0]];\n\t\trightNeighborLine = line[neighbor(selectedLine)[1]];\n\t\toppositeLine = line[neighbor(selectedLine)[2]];\n\n\t\t// reset their start values\n\t\tleftNeighborLine.resetLockPoints(P);\n\t\trightNeighborLine.resetLockPoints(P);\n\t\toppositeLine.resetLockPoints(P);\n\n\t\tbeginP.set(P);\n\n\t\t// check on which side of the mirror we are\n\t\toppositeLine.isOnThisSideOfLine = oppositeLine.checkLineSide(P);\n\n\t}",
"@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}",
"public abstract void inputChangeEvent( float time, int dstPin, boolean v );",
"void updateGlobalLines() {\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (i != selectedLine) // do not update Line if it is being dragged\n\t\t\t\t\t\t\t\t\t// (because dragging method already updates\n\t\t\t\t\t\t\t\t\t// it\n\t\t\t{\n\t\t\t\tline[i] = new Line(myParent, point[neighborPointsFromLine(i)[1]].position,\n\t\t\t\t\t\tpoint[neighborPointsFromLine(i)[0]].position, i, this);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n \t\t\tpublic void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n \n \t\t\t}",
"public void propertyChange(PropertyChangeEvent evt) {\n if(evt.getPropertyName().equals(\"position\")){\n// System.out.println(\"slider property change new val=\"+evt.getNewValue());\n sliderDontProcess=true;\n // note this cool semaphore/flag trick to avoid processing the\n // event generated when we programmatically set the slider position here\n playerSlider.setValue(Math.round(player.getFractionalPosition()*100));\n }else if(evt.getPropertyName().equals(\"readerStarted\")){\n log.info(\"MotionViewer.propertyChange: AEReader started, fixing device control menu\");\n // cypress reader started, can set device control for cypress usbio reader thread\n// fixDeviceControlMenuItems();\n }\n }",
"public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }",
"public synchronized void landmarksChanged (CityMap sender) {\n mapLandmarks = cityMap.getMapLandmarks ();\n lastActivated = null;\n repaint ();\n }",
"private void touchStarted(float x, float y, int lineID){\n Path path;\n Point point;\n\n // if there is already a path of lineID\n if( pathMap.containsKey(lineID) ){\n path = pathMap.get(lineID); // get the Path\n path.reset(); // reset Path because new touch has started\n point = previousPointMap.get(lineID); // get Path's last point\n } else {\n path = new Path();\n pathMap.put(lineID, path); // add the Path to Map\n point = new Point(); // create a new Point\n previousPointMap.put(lineID, point); // add the Point\n }\n\n // move to coordinates of the touch\n path.moveTo(x, y);\n point.x = (int) x;\n point.y = (int) y;\n }",
"public void setSelDataPoint(DataPoint aDP)\n{\n if(SnapUtils.equals(aDP, _selPoint)) return;\n firePropChange(SelDataPoint_Prop, _selPoint, _selPoint = aDP);\n repaint();\n}",
"void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }",
"protected void chartPartDidChange(PropChange aPC)\n {\n // Do normal version\n super.chartPartDidChange(aPC);\n\n // Clear cached data path info\n Object src = aPC.getSource();\n if (src == getTrace() || src instanceof Axis) {\n clearDataPath();\n }\n }",
"public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }",
"@Override\n public void valueChanged(double control_val) {\n samplePlayer.setPosition(control_val);\n setAudioTextPosition(control_val);\n // Write your DynamicControl code above this line \n }",
"public void setLine(int line);",
"@Override\n public void onValueSelected(int lineIndex, int pointIndex, PointValue value) {\n }",
"public void checkPosition(){\n int absPos = mArm.getSensorCollection().getPulseWidthPosition();\n // mArm.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);\n mArm.setSelectedSensorPosition(absPos - offset);\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\r\n\t\t\t\t\t\t\t\t}",
"@Override\r\n\tpublic void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n\t\t\r\n\t}",
"public void processInput(InputHandler inputHandler) {\n\n if (inputHandler.p == null) {\n return;\n } else {\n projection.convertFromPixels(inputHandler.p);\n }\n\n if (inputHandler.eventID == 1) {\n // First down touch\n currentLine = new Line(this.targetGenerator.getDirection(), isLandscape);\n currentLine.add(inputHandler.p);\n if (this.startPoint.hitCheck(inputHandler.p)) {\n isValidLine = true;\n soundManager.playStartLineSound();\n }\n } else if (inputHandler.eventID == 2 && currentLine != null) {\n // Move\n currentLine.add(inputHandler.p);\n if (isValidLine) {\n // Check for hitting pickups\n for (PickUpGameObject pickup : pickups) {\n if (pickup.hitCheck(inputHandler.p)) {\n currentPickup = pickup;\n Log.d(\"Simulation\", pickup.getClass().getSimpleName() + \" bound as current pickup\");\n gameListeners.touchedPickup(pickup);\n currentLine.isResearchable = false;\n }\n }\n pickups.remove(currentPickup);\n\n // Check for hitting obstacles\n for (ObstacleGameObject obstacle : obstacles) {\n if (obstacle.hitCheck(inputHandler.p)) {\n isValidLine = false;\n gameListeners.touchedObstacle(obstacle);\n currentLine.isResearchable = false;\n }\n }\n }\n } else if (inputHandler.eventID == 3 && currentLine != null) {\n // Action Up\n if (!this.targetPoint.hitCheck(inputHandler.p)) {\n isValidLine = false;\n }\n\n if (isValidLine) {\n currentLine.add(inputHandler.p);\n currentLine.isResearchable = true;\n addCurrentLine();\n setNewTarget();\n isValidLine = false;\n this.soundManager.playFinishedLineSound();\n } else {\n currentLine.clear();\n this.soundManager.playMissedTargetSound();\n }\n }\n inputHandler.reset();\n }",
"public void processData(int newVal) {\n\t\tif(samplePoints[counter] < 0) {\n\t\t\tsamplePoints[counter] = newVal;\n\t\t\tlastAverage = newVal;\n\t\t} else {\n\t\t\tdouble newAverage = lastAverage + ((newVal - samplePoints[counter]) / SAMPLE_POINTS);\n\t\t\tdouble difference = 10 * Math.abs(newAverage - lastAverage);\n\t\t\tsamplePoints[counter] = newVal;\n\t\t\tlastAverage = newAverage;\n\t\t\tif(tookOff) {\n\t\t\t\tif(difference > DIFFERENCE_THRESHOLD || System.currentTimeMillis() - startTime > 16000) {\n\t\t\t\t\t//The robot is landing\n\t\t\t\t\tSound.beep();\n\t\t\t\t\tziplineController.resumeThread();\n\t\t\t\t\ttookOff = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(difference < DIFFERENCE_THRESHOLD) {\n\t\t\t\t\tdifferenceCounter--;\n\t\t\t\t} else {\n\t\t\t\t\tdifferenceCounter = DIFFERENCE_POINTS_COUNTER;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(differenceCounter < 0) {\n\t\t\t\t\t//The robot is now in the air.\n\t\t\t\t\tSound.beep();\n\t\t\t\t\ttookOff = true;\n\t\t\t\t\tstartTime = System.currentTimeMillis();\n\t\t\t\t\tziplineController.resumeThread();\n\t\t\t\t\tArrays.fill(samplePoints, -1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(4000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcounter = (counter + 1) % SAMPLE_POINTS;\n\t}",
"public void mousePressed(MouseEvent e) // When mouse is pressed:\n {\n Location pt = new Location(e.getX(),e.getY());\n origPress = pt;\n\n if(hLine.contains(pt)) // If press is on hLine:\n {\n hLineGrabbed = true; // hLine is grabbed\n }\n\n if(vLine.contains(pt)) // If press is on vLine:\n {\n vLineGrabbed = true; // vLine is grabbed\n }\n\n lastPt = pt; // Set the point to lastPt\n }",
"private void atEndOfPathIsDetected() {\n \t\tmoveUltrasonicSensorToDefaultPosition();\n \t\trecursiveDepth = 0;\n \t\tturn = -15;\n \t}",
"public void propertyChange(PropertyChangeEvent e) {\n String name = e.getPropertyName();\n if (name.equals(\"stepnumber\")) { //$NON-NLS-1$\n if (trackerPanel.getSelectedTrack() == this) {\n displayWorldCoordinates();\n stepValueLabel.setText(e.getNewValue() + \":\"); //$NON-NLS-1$\n }\n } else if (name.equals(\"locked\")) { //$NON-NLS-1$\n xField.setEnabled(!isLocked());\n yField.setEnabled(!isLocked());\n } else super.propertyChange(e);\n }",
"@Override\r\n\tpublic void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n\r\n\t}",
"@Override\n\tpublic void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n\t}",
"@Override\n\tpublic void inputChanged( Viewer arg0, Object arg1, Object arg2 ) {\n\t}",
"@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }",
"@Override\n\tpublic void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n\n\t}",
"@Override \n\t\t\t\tpublic void onStopTrackingTouch(SeekBar analyseSeekBar) {\n\t\t\t\tp1 = analyseSeekBar.getProgress();\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void newLocationHasBeenCalculated(final String LocationCalculated) {\n\t\tfinal TextView ts = (TextView) findViewById(R.id.virtualSpot);\r\n\t\td(\"newLocation = \" + LocationCalculated);\r\n\t\t//currVS.setText(\"LocationCalculated\");\r\n\t\trunOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n \tts.setText(LocationCalculated);\r\n \t\r\n \tcurrentVirtualSpot = mapOfVirtualSpots.get(LocationCalculated);\r\n \t\tif (location != -1 && currentVirtualSpot != null){\r\n \t\t\troute = ninethFloor.getRoute(currentVirtualSpot.getFirstPOI(), \"\"+location);\t\r\n \t\t\tdirectionDescription = route.getDirections();\r\n \t\t\tts.setText(directionDescription);\r\n \t\t}\r\n }\r\n });\r\n\t\t\r\n\t}",
"@Override\n public void mouseEntered(PInputEvent event) {\n \tif (currentListener instanceof DistanceTool) {\n PGISCanvas.this.setCursor(((MapTool) currentListener).getCursor());\n } \n \telse {\n PGISCanvas.this.setCursor(Cursor.getDefaultCursor());\n }\n }",
"public void setLineToStart(final int lineToStart) {\r\n\t\tthis.lineToStart = lineToStart;\r\n\t}",
"@Override\n \t\t\tpublic void onLocationChanged(Location loc) {\n \t \n \t\t\t}",
"public void monitor() {\n moveTo(1.0, 10);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n }",
"@Override\r\n\tpublic void onLocationChange(AMapNaviLocation arg0) {\n\r\n\t}",
"private void updateInfoBarOnMove(Point eventPoint) {\n\t\tfor (Render<? extends MovableDrawing> renderFigure : canvasState.renderFigures()) {\n\t\t\tif (renderFigure.getFigure().pointBelongs(eventPoint)) {\n\t\t\t\tstatusPane.updateStatus(renderFigure.getFigure().toString());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tstatusPane.updateStatus(eventPoint.toString());\n\t}",
"public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n\t\t\r\n\t}",
"public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n\t\t\r\n\t}",
"public void attachObserver(AssemblyLineStateObserver observer);",
"public void recalculate(){\n\t\t\n\t\tLinkedList<Line> primaryLines = lineLists.get(0);\n\t\t\n\t\tfor (int i = 0; i < controlPoints.size()-1; i++){\n\t\t\tControlPoint current = controlPoints.get(i);\n\t\t\tControlPoint next = controlPoints.get(i+1);\n\t\t\t\n\t\t\tLine line = primaryLines.get(i);\n\t\t\t\n\t\t\tline.setStartX(current.getCenterX());\n\t\t\tline.setStartY(current.getCenterY());\n\t\t\tline.setEndX(next.getCenterX());\n\t\t\tline.setEndY(next.getCenterY());\n\t\t}\n\t}",
"protected abstract void trace_pre_updates();",
"private void updateSensors()\r\n\t{\t\t\r\n\t\tthis.lineSensorRight\t\t= perception.getRightLineSensor();\r\n\t\tthis.lineSensorLeft \t\t= perception.getLeftLineSensor();\r\n\t\t\r\n\t\tthis.angleMeasurementLeft \t= this.encoderLeft.getEncoderMeasurement();\r\n\t\tthis.angleMeasurementRight \t= this.encoderRight.getEncoderMeasurement();\r\n\r\n\t\tthis.mouseOdoMeasurement\t= this.mouseodo.getOdoMeasurement();\r\n\r\n\t\tthis.frontSensorDistance\t= perception.getFrontSensorDistance();\r\n\t\tthis.frontSideSensorDistance = perception.getFrontSideSensorDistance();\r\n\t\tthis.backSensorDistance\t\t= perception.getBackSensorDistance();\r\n\t\tthis.backSideSensorDistance\t= perception.getBackSideSensorDistance();\r\n\t}",
"public void setLine ( String value )\n {\n line = value;\n }",
"public void line(String line) {\n\t\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t\taccleration.setText(\"X: \" + event.values[0]+\n\t\t\t\t\t\t\t\"\\n Y: \"+ event.values[1]+\n\t\t\t\t\t\t\t\"\\n Z:\" + event.values[2]);\n\t\t\n\t\t\n\t\t\n\t}",
"void markLine() {\n lineMark = cursor;\n }",
"public void resetLine() {\n reactorLine.setCurrentFrequency(reactorLine.getBaseFrequency());\n reactorLine.setCurrentAmplitude(reactorLine.getBaseAmplitude());\n reactorLine.setCurrentPhase(reactorLine.getBasePhase());\n inputAdjuster.setCurrentFrequency(inputAdjuster.getBaseFrequency());\n inputAdjuster.setCurrentAmplitude(inputAdjuster.getBaseAmplitude());\n inputAdjuster.setCurrentPhase(inputAdjuster.getBasePhase());\n this.updateOscilloscopeData();\n }",
"@Override\r\n public synchronized void onLocationChange(Location location) {\r\n\r\n if (event.isOngoing()) { //check for event status\r\n evaluateOverspeeding(System.currentTimeMillis());\r\n } else {\r\n interrupt();\r\n }\r\n }",
"@Override\n\tpublic void onLocationChange(AMapNaviLocation arg0) {\n\n\t}",
"@Override\r\n public void changedUpdate(DocumentEvent e) {\n HayCambio();\r\n }",
"void onFloppyDriveTrackChanged(int trackNumber, FloppyDriveSide trackSide);",
"public synchronized void onPointEvent(Object source, PointEvent evt) {\n PointData pd = evt.getPointData();\n // Check that there's data.. ?\n if (pd == null) { // || pd.getData() == null) {\n return;\n }\n\n // Find the index of the point\n String fullname = pd.getName();\n int i = 0;\n for (; i < itsNumPoints; i++) {\n if (itsNames[i].equals(fullname)) {\n break;\n }\n }\n if (i == itsNumPoints) {\n Logger logger = Logger.getLogger(this.getClass().getName());\n logger.warn(\"(\" + itsParent.getFullName() + \") received unsolicited data from \" + fullname);\n return;\n }\n\n // Everything looks good\n itsValues[i] = pd;\n\n // Check whether now is an appropriate time to recalculate output\n if (matchData()) {\n // Recalculate output and fire update event\n Object resval = doCalculations();\n AbsTime ts;\n if (itsNumPoints==1) {\n \t // Only listening to a single point so preserve the timestamp\n \t ts = pd.getTimestamp();\n } else {\n \t // Mutliple points, therefore original timestamp is not clearly defined\n \t ts = new AbsTime();\n }\n PointData res = new PointData(itsParent.getFullName(), ts, resval);\n itsParent.firePointEvent(new PointEvent(this, res, true));\n }\n }",
"@Override\n public void onLineInserted(int y, String line) {\n if (cursor.getY() == file.getLineCount() - 1) {\n if (file.getLineCount() > 1) {\n throw new IllegalStateException();\n }\n return;\n }\n if (y <= cursor.getY()) {\n cursor.moveBy(1, 0);\n }\n fireSizeChanged();\n }",
"private void updateLinePositions() {\n\n\t\tif (alLabelLines.size() == 0) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tfloat fXLinePosition = fXContainerLeft + CONTAINER_BOUNDARY_SPACING;\n\n\t\t\tLabelLine firstLine = alLabelLines.get(0);\n\t\t\tfloat fYLinePosition = fYContainerCenter + (fHeight / 2.0f)\n\t\t\t\t\t- CONTAINER_BOUNDARY_SPACING - firstLine.getHeight();\n\t\t\tfirstLine.setPosition(fXLinePosition, fYLinePosition);\n\n\t\t\tfor (int i = 1; i < alLabelLines.size(); i++) {\n\t\t\t\tLabelLine currentLine = alLabelLines.get(i);\n\t\t\t\tfYLinePosition -= (currentLine.getHeight() + CONTAINER_LINE_SPACING);\n\t\t\t\tcurrentLine.setPosition(fXLinePosition, fYLinePosition);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void update() {\n if (Pneumatics.get_instance().get_solenoids() && in_inner_thresh()) {\n Pneumatics.get_instance().set_solenoids(false);\n }\n }",
"private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }",
"SegmentIndexComparator(final PolyLine line)\n {\n this.lineSegments = line.segments();\n }",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"public void mouseReleased(MouseEvent e) // When mouse is released:\n {\n hLineGrabbed = vLineGrabbed = // Neither line is grabbed\n hLineMoved = vLineMoved = false; // Neither line is moved anymore\n }",
"public void updatePageValueBeforeRecording() {\n // Ensure the display starts with the play cursor inside the page\n cursorTimelinePage.setValue(cursorTimelinePlay.getValue());\n\n // Place cursors to make sense\n double fltDataAmountPercent = getDataAmountAsPercent();\n if (cursorTimelinePlay.getValue() > fltDataAmountPercent) {\n // Play cursor cannot be further right than real file length percentage\n cursorTimelinePlay.setValue(fltDataAmountPercent);\n }\n if (cursorTimelineEnd.getValue() > fltDataAmountPercent) {\n // End cursor cannot be further right than real file length percentage\n cursorTimelineEnd.setValue(fltDataAmountPercent);\n }\n if (cursorTimelineEnd.getValue() < cursorTimelinePlay.getValue()) {\n // End cursor is set to real file length percentage if placed before the play cursor\n cursorTimelineEnd.setValue(fltDataAmountPercent);\n }\n }",
"public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {\n\n\t}",
"public void onTrackingStarted() {\n this.mFalsingManager.onTrackingStarted(!this.mKeyguardStateController.canDismissLockScreen());\n super.onTrackingStarted();\n if (this.mQsFullyExpanded) {\n this.mQsExpandImmediate = true;\n this.mNotificationStackScroller.setShouldShowShelfOnly(true);\n }\n int i = this.mBarState;\n if (i == 1 || i == 2) {\n this.mAffordanceHelper.animateHideLeftRightIcon();\n }\n this.mNotificationStackScroller.onPanelTrackingStarted();\n }",
"@Override\r\n\tpublic void control() {\r\n // data is aggregated this time step\r\n q.put(qCur);\r\n v.put(vCur);\r\n if (lane.model.settings.getBoolean(\"storeDetectorData\")) {\r\n qHist.add(qCur);\r\n vHist.add(vCur);\r\n tHist.add(lane.model.t);\r\n }\r\n // reset count\r\n qCur = 0;\r\n vCur = 0;\r\n }",
"private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}",
"private synchronized void updatePathFollower() {\n TrajectoryStatus leftUpdate = pathFollower\n .getLeftVelocity(leftDrive.getPosition(), leftDrive.getSpeed(), -navX.getYaw());\n TrajectoryStatus rightUpdate = pathFollower\n .getRightVelocity(rightDrive.getPosition(), rightDrive.getSpeed(), -navX.getYaw());\n leftStatus = leftUpdate;\n rightStatus = rightUpdate;\n if (isEncodersConnected()) {\n setVelocitySetpoint(\n new DriveSignal(leftUpdate.getOutput(), rightUpdate.getOutput(), brakePath),\n leftUpdate.getArbFeed(), rightUpdate.getArbFeed());\n } else {\n leftDrive.set(ControlMode.PercentOutput,\n ((1.0 / MkMath.RPMToInchesPerSec(DRIVE.RIGHT_RPM_MAX)) * leftUpdate.getOutput()), false,\n leftUpdate.getArbFeed());\n rightDrive.set(ControlMode.PercentOutput,\n ((1.0 / MkMath.RPMToInchesPerSec(DRIVE.LEFT_RPM_MAX)) * rightUpdate.getOutput()), false,\n rightUpdate.getArbFeed());\n }\n }",
"public synchronized void visitorPositionChanged (CityMap sender) {\n cityMap.getVisitorXY (tmpXY);\n visitorX = tmpXY[CityMap.X];\n visitorY = tmpXY[CityMap.Y];\n repaint ();\n }",
"public void inputChangeEvent( float time, int dstPin, boolean v ) {\n\tErrors.fatal( \"Input should never change: \" + toString() );\n }",
"private void setCalculatePosition() {\n fptUserCalculated = getFilterPointDesign(drawingPad.getSelectedItems(), true);\n drawingPad.getSelectedItems().finalizeMovement();\n drawingPad.getSelectedItems().calculate(fptUserCalculated);\n drawingPad.repaint();\n }",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\n\t\t\t}",
"@Override\n public void onLocationChanged(Location location) {\n //update current lacation when the GPS changed\n c = new LatLng(location.getLatitude(), location.getLongitude());\n updateCameraBearing(map, location.getBearing());\n nearestPointIndex = findNearestPoint(c,points2);\n if(nearestPointIndex>0){\n ArrayList p3 = new ArrayList();\n for (int j = nearestPointIndex; j < points2.size(); j++) {\n LatLng point = (LatLng) points2.get(j);\n p3.add(point);\n }\n points2 = p3;\n DrawDots(listResult,points2);\n }\n }",
"public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }",
"void notifyVisibilityStatusIncrease(JDPoint p);",
"@Override\n public void positionChanged(int newPosition) {\n\t if (newPosition >= stop) {\n stopButtonActionPerformed(null);\n } else {\n if (newPosition < posStart || newPosition > posEnd) {\n test = false;\n scrollBar.setValue(newPosition);\n test = true;\n posStart = newPosition;\n posEnd = (int) (newPosition + scrollBar.getVisibleAmount());\n if (posEnd > wave.getSampleCount()) {\n posStart -= (posEnd - wave.getSampleCount());\n posEnd = wave.getSampleCount();\n }\n rysuj();\n if (!startTime.getValue().equals(endTime.getValue())) {\n paintSelected();\n }\n }\n position = (int) (wavePanel.getWidth() * ((newPosition - posStart) / (double) (posEnd - posStart)));\n cursorPanel.setLocation(position, 0);\n }\n }",
"@Override\n\tpublic void changeMapPointer(ImageView posView) {\n\t\tif (room.equals(properties.getRoomFromProperties().get(1))) {\n\t\t\tposView.relocate(789, 272);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(2))) {\n\t\t\tposView.relocate(788, 185);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(3))) {\n\t\t\tposView.relocate(880.0, 281);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(4))) {\n\t\t\tposView.relocate(867.0, 200);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(5))) {\n\t\t\tposView.relocate(880.0, 64.0);\n\n\t\t} else {\n\t\t\tposView.relocate(788.0, 60.0);\n\t\t}\n\t}",
"@Override\n public void triggerProbe(DeviceId deviceId) {\n }",
"@Override\n\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\n\t}",
"public void markLine(Line line, Player player) {\n // The logic preventing double marking of a side is handled\n // in the mark function of the Board type. CHECK THIS!\n //\n Side side = line.getSide();\n this.setSide(side, true);\n\n Color lineColor = player.getLineColor();\n BoardDisplay bd = controller.getDisplay().getBoardDisplay();\n bd.colorSelectedLine(line, lineColor);\n }",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}"
] | [
"0.62588775",
"0.6082938",
"0.5832175",
"0.5706808",
"0.5618379",
"0.5607847",
"0.55989045",
"0.5583454",
"0.55569065",
"0.5505427",
"0.55000323",
"0.54756683",
"0.54686606",
"0.5447806",
"0.5445218",
"0.5431534",
"0.5422172",
"0.54212934",
"0.54209316",
"0.539161",
"0.53905934",
"0.538125",
"0.53759515",
"0.5355046",
"0.5341788",
"0.5295998",
"0.5278031",
"0.5266666",
"0.5257802",
"0.52548236",
"0.525342",
"0.524387",
"0.52232677",
"0.52140486",
"0.51971906",
"0.5192202",
"0.5190157",
"0.51808566",
"0.5176629",
"0.5171938",
"0.5165064",
"0.5156581",
"0.51549995",
"0.515092",
"0.51497394",
"0.51497006",
"0.5149467",
"0.51490974",
"0.51455724",
"0.51445997",
"0.51426834",
"0.5142142",
"0.5141073",
"0.51357824",
"0.51355916",
"0.5134939",
"0.513447",
"0.513447",
"0.5132515",
"0.5131771",
"0.51260227",
"0.5125895",
"0.5123235",
"0.51220596",
"0.5119317",
"0.51159817",
"0.5113557",
"0.51129794",
"0.51127815",
"0.5112743",
"0.51065105",
"0.5106337",
"0.5102028",
"0.50993013",
"0.50963485",
"0.5083738",
"0.5080283",
"0.50800216",
"0.50800216",
"0.50800216",
"0.50785553",
"0.5077983",
"0.5077874",
"0.5077844",
"0.50778323",
"0.50763726",
"0.50762504",
"0.5073593",
"0.5072594",
"0.5066638",
"0.5060704",
"0.5060244",
"0.5058875",
"0.50568086",
"0.50522304",
"0.5051794",
"0.50502896",
"0.5045554",
"0.504343",
"0.5040028"
] | 0.58675385 | 2 |
Given the location of the profile SelectorPoint, and a FieldImpl for one or more times for animation, create a data set for a profile at the profile's SP location. Create a vertical line showing where profile is in the data. | public void loadProfile(RealTuple position)
throws VisADException, RemoteException {
if ( !getHaveInitialized()) {
return;
}
if ((infos == null) || (position == null)) {
return;
}
LatLonPoint llp = null;
RealTupleType rttype = (RealTupleType) position.getType();
if (rttype.equals(RealTupleType.SpatialCartesian2DTuple)) {
// get earth location of the x,y position in the VisAD display
double[] values = position.getValues();
EarthLocationTuple elt =
(EarthLocationTuple) boxToEarth(new double[] { values[0],
values[1], 1.0 });
llp = elt.getLatLonPoint();
} else if (rttype.equals(RealTupleType.SpatialCartesian3DTuple)) {
//If is a 3d point then we are probably in the globe view
double[] values = position.getValues();
double length = new Point3d(0, 0,
0).distance(new Point3d(values[0],
values[1], values[2]));
if (length != 0) {
values[0] = values[0] * (1 / length);
values[1] = values[1] * (1 / length);
values[2] = values[2] * (1 / length);
}
EarthLocationTuple elt =
(EarthLocationTuple) boxToEarth(new double[] { values[0],
values[1], values[2] });
llp = elt.getLatLonPoint();
} else if (rttype.equals(RealTupleType.SpatialEarth2DTuple)) {
Real[] reals = position.getRealComponents();
llp = new LatLonTuple(reals[1], reals[0]);
} else if (rttype.equals(RealTupleType.LatitudeLongitudeTuple)) {
Real[] reals = position.getRealComponents();
llp = new LatLonTuple(reals[0], reals[1]);
} else {
throw new VisADException(
"Can't convert position to navigable point");
}
List localInfos = new ArrayList(infos);
List chartInfos = new ArrayList();
for (int i = 0; i < localInfos.size(); i++) {
VerticalProfileInfo info =
(VerticalProfileInfo) localInfos.get(i);
if ((info == null) || (info.getDataInstance() == null)) {
continue;
}
FieldImpl newFI = GridUtil.getProfileAtLatLonPoint(
info.getDataInstance().getGrid(), llp,
info.getSamplingMode());
if (newFI != null) {
info.setProfile(makeProfile(newFI), llp);
chartInfos.add(info);
}
}
getChart().setProfiles(chartInfos);
// set location label, if available.
if (llp != null) {
positionText = getDisplayConventions().formatLatLonPoint(llp);
// update lat/lon widget
if (latLonWidget != null) {
latLonWidget.setLat(
getDisplayConventions().formatLatLon(
llp.getLatitude().getValue()));
latLonWidget.setLon(
getDisplayConventions().formatLatLon(
llp.getLongitude().getValue()));
}
}
updateLegendLabel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void processProfilePlot() {\r\n DivaClientService.computeProfilePlot(900, 900,\r\n new AsyncCallback<ProfilePlotResults>() {\r\n @Override\r\n public void onFailure(Throwable caught) {\r\n Selection_Manager.connError();\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n\r\n @Override\r\n public void onSuccess(ProfilePlotResults result) {\r\n if (profilePlotComponent != null) {\r\n topMidLayout.remove(profilePlotComponent.getLayout());\r\n profilePlotComponent.getLayout().removeFromParent();\r\n profilePlotComponent.remove();\r\n }\r\n if (pcaPlotComponent != null) {\r\n topMidLayout.remove(pcaPlotComponent.getPCAComponent());\r\n pcaPlotComponent.getPCAComponent().removeFromParent();\r\n pcaPlotComponent.remove();\r\n }\r\n\r\n profilePlotComponent = new ProfilePlotComponent(result.getUrl(), Selection_Manager, DivaClientService, result.getImgHeight(), result.getImgWidth(), middlePanelWidth);\r\n topMidLayout.add(profilePlotComponent.getLayout());\r\n if (!init) {\r\n SelectionManager.Busy_Task(false, true);\r\n }\r\n if (init) {\r\n viewPCAChart(0, 1);\r\n }\r\n }\r\n });\r\n }",
"public CANTalon.TrajectoryPoint[] calculateProfile() {\r\n\t\t\r\n\t\tCANTalon.TrajectoryPoint[] trajectory = new CANTalon.TrajectoryPoint[totalPoints + 1];\r\n\t\t\r\n\t\tfor(int i = 0; i <= totalPoints; i++) {\r\n\t\t\trunFilters();\r\n\t\t\tcalculateVelocity();\r\n\t\t\tcalculatePosition();\r\n\t\t\t\r\n\t\t\ttrajectory[i] = new CANTalon.TrajectoryPoint();\r\n\t\t\ttrajectory[i].timeDurMs = itp;\r\n\t\t\ttrajectory[i].position = currentPosition;\r\n\t\t\ttrajectory[i].velocity = currentVelocity * 60;\r\n\t\t\ttrajectory[i].profileSlotSelect = 0;\r\n\t\t\ttrajectory[i].velocityOnly = false;\r\n\t\t\ttrajectory[i].zeroPos = (currentPoint == 0);\r\n\t\t\ttrajectory[i].isLastPoint = (currentPoint == totalPoints);\r\n\t\t\t\t\t\r\n\t\t\tcurrentPoint++;\r\n\t\t}\r\n\t\t\r\n\t\tRobot.logger.log(\"Points in Trajectory: \" + totalPoints, 5);\r\n\t\t\t\t\r\n\t\treturn trajectory;\r\n\t}",
"private void smooth_plot(Bundle bundle, boolean spliceCurve, String suffix) {\n\n int[] xdata = bundle.getIntArray(\"xdata\" + suffix);\n float[] ydata = bundle.getFloatArray(\"ydata\" + suffix);\n\n // create a list of the points\n int totalPoints = xdata.length;\n ArrayList<UtilsMisc.XYPoint> details = new ArrayList<>();\n for (int i = 0; i < totalPoints; i++)\n details.add(new UtilsMisc.XYPoint(xdata[i], ydata[i]));\n\n // break up the list into chunks of NUM_POINTS based on the number of curves\n List<List<UtilsMisc.XYPoint>> partitions = new ArrayList<>();\n int NUM_CURVES = (int) Math.round(Math.log10(totalPoints)) * 2;\n int NUM_POINTS = (NUM_CURVES == 0) ? 1 : totalPoints / NUM_CURVES;\n for (int i = 0; i < totalPoints; i += NUM_POINTS)\n partitions.add(details.subList(i, Math.min(i + NUM_POINTS, totalPoints)));\n\n // for each partition, get 4 control points\n ArrayList<UtilsMisc.XYPoint> fourPoints = new ArrayList<>();\n int color = 0;\n for (int i = 0; i < partitions.size(); i++) {\n // verify that there are at least four points\n if (partitions.get(i).size() < 4) continue;\n\n // get the subset of details\n List<UtilsMisc.XYPoint> subDetails = partitions.get(i);\n UtilsMisc.XYPoint[] p = new UtilsMisc.XYPoint[4];\n\n // set the first and last control points\n double x, y;\n int first = (i == 0) ? 1 : 0;\n //x = (subDetails.get(first).getTimestamp() - start_time) / 1000.0;\n //y = getYCoordinate(subDetails, first, dataIndex);\n x = subDetails.get(first).getX();\n y = subDetails.get(first).getY();\n p[0] = new UtilsMisc.XYPoint(x, y, color);\n\n int last = subDetails.size() - 1;\n //x = (subDetails.get(last).getTimestamp() - start_time) / 1000.0;\n //y = getYCoordinate(subDetails, last, dataIndex);\n x = subDetails.get(last).getX();\n y = subDetails.get(last).getY();\n p[3] = new UtilsMisc.XYPoint(x, y, color);\n\n // find the min. and max values for the second and third control points\n // in between the first and last control points\n int min_index = 0;\n int max_index = 0;\n float max_sub_value = 0.0f;\n float min_sub_value = Constants.LARGE_FLOAT;\n for (int j = 1; j < subDetails.size() - 1; j++) {\n // float value = getYCoordinate(subDetails, j, dataIndex);\n float value = (float) subDetails.get(j).getY();\n if (value < min_sub_value) {\n min_index = j;\n min_sub_value = value;\n }\n if (value > max_sub_value) {\n max_index = j;\n max_sub_value = value;\n }\n }\n\n double xmin = subDetails.get(min_index).getX();\n double ymin = subDetails.get(min_index).getY();\n double xmax = subDetails.get(max_index).getX();\n double ymax = subDetails.get(max_index).getY();\n\n if (max_index > min_index) {\n p[1] = new UtilsMisc.XYPoint(xmin, ymin, color);\n p[2] = new UtilsMisc.XYPoint(xmax, ymax, color);\n } else {\n p[2] = new UtilsMisc.XYPoint(xmin, ymin, color);\n p[1] = new UtilsMisc.XYPoint(xmax, ymax, color);\n }\n\n fourPoints.addAll(Arrays.asList(p)); // build the list of main points\n }\n\n // build the list of control points,\n ArrayList<UtilsMisc.XYPoint> controlPoints = new ArrayList<>();\n for (int i = 0; i < fourPoints.size(); i++) {\n controlPoints.add(fourPoints.get(i));\n // in a spliced curve, add a center control point for every alternate pair of points\n if (spliceCurve && (i % 2 == 0) && (i > 0) && (i + 3) < fourPoints.size()) {\n controlPoints.add(UtilsMisc.center(fourPoints.get(i), fourPoints.get(i + 1)));\n }\n }\n\n // for a spliced curve do the 4 point bezier interpolation from 0..3, 3..6, 6..9\n // otherwise, do the 4 point bezier interpolation from 0..3, 4..7, 8..11\n UtilsMisc.XYPoint p1, p2, p3, p4;\n ArrayList<UtilsMisc.XYPoint> allPoints = new ArrayList<>();\n int INCREMENT = spliceCurve ? 3 : 4;\n for (int i = 0; i < controlPoints.size(); i += INCREMENT) {\n if ((i + 3) < controlPoints.size()) {\n p1 = controlPoints.get(i);\n p2 = controlPoints.get(i + 1);\n p3 = controlPoints.get(i + 2);\n p4 = controlPoints.get(i + 3);\n allPoints.addAll(UtilsMisc.BezierInterpolate(p1, p2, p3, p4));\n }\n }\n\n // remove duplicate x coordinates\n ArrayList<Integer> times_list = new ArrayList<>();\n ArrayList<Float> values_list = new ArrayList<>();\n Hashtable<Integer, Boolean> seenInt = new Hashtable<>();\n for (int i = 0; i < allPoints.size(); i++) {\n int xloc = (int) Math.round(allPoints.get(i).getX());\n if (seenInt.containsKey(xloc)) continue;\n seenInt.put(xloc, true);\n times_list.add(xloc);\n values_list.add((float) allPoints.get(i).getY());\n }\n\n // convert array list to array\n int[] smooth_times = UtilsMisc.convertIntegers(times_list);\n float[] smooth_values = UtilsMisc.convertFloats(values_list);\n\n bundle.putIntArray(\"xdata\" + suffix, smooth_times);\n bundle.putFloatArray(\"ydata\" + suffix, smooth_values);\n }",
"private void plotData(){\n List<Entry> entriesMedidas = new ArrayList<Entry>();\n try{\n // #1\n FileInputStream fis = getApplicationContext().openFileInput(fileName);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n\n // #2. Skips the name, birthdate and gender of the baby\n reader.readLine();\n reader.readLine();\n reader.readLine();\n\n // #3\n String line = reader.readLine();//First line with data\n\n while (line != null) {\n double[] datum = obtainSubstring(line, mag);\n entriesMedidas.add(new Entry((float) datum[0], (float) datum[1]));\n\n line = reader.readLine();\n }\n\n reader.close();\n isr.close();\n fis.close();\n\n }catch(IOException e){\n e.printStackTrace();\n }\n\n // #4\n LineDataSet lineaMedidas = new LineDataSet(entriesMedidas, this.name);\n lineaMedidas.setAxisDependency(YAxis.AxisDependency.LEFT);\n lineaMedidas.setColor(ColorTemplate.rgb(\"0A0A0A\"));\n lineaMedidas.setCircleColor(ColorTemplate.rgb(\"0A0A0A\"));\n todasMedidas.add(lineaMedidas);\n\n }",
"private LineDataSet createSet(){\n LineDataSet set = new LineDataSet(null, \"SPL Db\");\n set.setDrawCubic(true);\n set.setCubicIntensity(0.2f);\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n set.setColor(ColorTemplate.getHoloBlue());\n set.setLineWidth(2f);\n set.setCircleSize(4f);\n set.setFillAlpha(65);\n set.setFillColor(ColorTemplate.getHoloBlue());\n set.setHighLightColor(Color.rgb(244,117,177));\n set.setValueTextColor(Color.WHITE);\n set.setValueTextSize(10f);\n\n return set;\n }",
"private void prepareTimeline() {\n\r\n\t new AnimationTimer() {\r\n\r\n\t @Override\r\n\t public void handle(long now) {\r\n\r\n\t addDataToSeries();\r\n\r\n\t }\r\n\t }.start();\r\n\r\n\t}",
"public void displayProfileData() {\n MimsJTable table = new MimsJTable(ui);\n table.setPlanes(planes);\n table.setStats(stats);\n table.setRois(rois);\n table.setImages(images);\n String[] columnnames = table.getColumnNames();\n //MimsJTable requires multi-dim array, so need to convert dataset\n Object[][] exportedData = FileUtilities.convertXYDatasetToArray(data);\n table.createCustomTable(exportedData, columnnames);\n table.showFrame();\n }",
"private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }",
"private static Profile createProfile(Scanner line)\n\t{\n\t\t// get the name\n\t\tString name=line.next();\n\t\t\n\t\t// get the date of birth (dd,mm,yyy)\n\t\tint dayOfBirth=line.nextInt();\n\t\tint monthOfBirth=line.nextInt();\n\t\tint yearOfBirth=line.nextInt();\n\t\t\n\t\t// get the town and country\n\t\tString town=line.next();\n\t\tString country=line.next();\n\t\t\n\t\t// get the nationality\n\t\tString nationality=line.next();\n\t\t\n\t\t// get the interests\n\t\tString[] interests=createInterests(line);\n\t\t\n\t\t// create a profile object\n\t\tProfile p=new Profile(name, dayOfBirth, monthOfBirth, yearOfBirth,\n\t\t\t\ttown, country, nationality, interests);\n\t\t\n\t\treturn p;\n\t}",
"private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}",
"@Override\n public void execute() {\n\n ProfileModel profileModel = new ProfileModel(1,\"TestName\",\"TestLastName\", \"Nick\",1,new GregorianCalendar(1900,11,1),false,\n new GregorianCalendar(1925,6,11),10);\n ProfileView profileView = new ProfileView(profileModel);\n profileView.init();\n profileView.draw(new ConsoleCanvas(80,200));\n }",
"private CreateScanRetentionTimeQCPlotData(){}",
"private LineData generateLineData() {\n\n LineData d = new LineData();\n LineDataSet set = new LineDataSet(ReportingRates, \" ARVs (Reporting Rates)\");\n set.setColors(Color.parseColor(\"#90ed7d\"));\n set.setLineWidth(2.5f);\n set.setCircleColor(Color.parseColor(\"#90ed7d\"));\n set.setCircleRadius(2f);\n set.setFillColor(Color.parseColor(\"#90ed7d\"));\n set.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n set.setDrawValues(true);\n\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n d.addDataSet(set);\n\n return d;\n }",
"private Profile profileData(String name, String department, String dateHired){\n Date dateHiredObject = new Date(dateHired);\n Profile newEmployeeProfile = new Profile(name, department, dateHiredObject);\n return newEmployeeProfile;\n }",
"private void prepareData(List<String[]> subset, Set<String> selections) {\n Bundle chartBundle = new Bundle();\n //Get the years and user selected data for the graph\n ArrayList<String> year = new ArrayList<>();\n ArrayList<ArrayList<Float>> data = new ArrayList<>();\n ArrayList<String> options = new ArrayList<>();\n float max=Float.MIN_VALUE;\n float min=Float.MAX_VALUE;\n boolean useLog = false;\n for (String option : selections) {\n //Loop over options\n ArrayList<Float> dataSeries = new ArrayList<>();\n int numOption = Integer.parseInt(option);\n //For every option get data required for the option\n options.add(OPTION_NAMES[numOption]);\n for (String[] line : subset) {\n dataSeries.add(Float.valueOf(line[numOption + CONSTANT]));\n }\n //Keep track of maximum of minimum values user has requested\n float tempMax = Collections.max(dataSeries);\n float tempMin = Collections.min(dataSeries);\n if (tempMax>max){\n max = tempMax;\n }\n if (tempMin<min && tempMin!=0){\n min=tempMin;\n }\n //Add user option to overall data they want to see\n data.add(dataSeries);\n }\n for (String[] line : subset) {\n //Loop preparing list of labels for X Axis\n year.add(line[2]);\n }\n if ((max/min)>50){\n //If the biggest and smallest values have a range bigger than factor of 50 then convert values to log scale\n useLog=true;\n for (int i=0;i<data.size();i++){\n //Loop which removes the data entries, converts them to log and then places them back to their original position in ArrayList\n ArrayList<Float> tempEntry = data.get(i);\n data.remove(i);\n ArrayList<Float> convertedValues = convertToLog(tempEntry);\n data.add(i,convertedValues);\n }\n }\n //Putting all the values in the Bundle in preparation for ChartActivity\n chartBundle.putSerializable(\"Data\", data);\n chartBundle.putString(\"country\", user_choice);\n chartBundle.putSerializable(\"Label\", options);\n chartBundle.putSerializable(\"year\", year);\n chartBundle.putBoolean(\"log\",useLog);\n Intent chart_intent = new Intent(this, ChartActivity.class);\n chart_intent.putExtra(\"Bundle\", chartBundle);\n startActivity(chart_intent);\n }",
"private LineData generateDataLine(int cnt) {\n\n ArrayList<Entry> e1 = new ArrayList<Entry>();\n\n for (int i = 0; i < 12; i++) {\n e1.add(new Entry(i, (int) (Math.random() * 65) + 40));\n }\n\n LineDataSet d1 = new LineDataSet(e1, \"New DataSet \" + cnt + \", (1)\");\n d1.setLineWidth(2.5f);\n d1.setCircleRadius(4.5f);\n d1.setHighLightColor(Color.rgb(244, 117, 117));\n d1.setDrawValues(false);\n\n ArrayList<Entry> e2 = new ArrayList<Entry>();\n\n for (int i = 0; i < 12; i++) {\n e2.add(new Entry(i, e1.get(i).getY() - 30));\n }\n\n LineDataSet d2 = new LineDataSet(e2, \"New DataSet \" + cnt + \", (2)\");\n d2.setLineWidth(2.5f);\n d2.setCircleRadius(4.5f);\n d2.setHighLightColor(Color.rgb(244, 117, 117));\n d2.setColor(ColorTemplate.VORDIPLOM_COLORS[0]);\n d2.setCircleColor(ColorTemplate.VORDIPLOM_COLORS[0]);\n d2.setDrawValues(false);\n\n ArrayList<ILineDataSet> sets = new ArrayList<ILineDataSet>();\n sets.add(d1);\n sets.add(d2);\n\n LineData cd = new LineData(sets);\n return cd;\n }",
"@SuppressWarnings(\"unchecked\")\r\n private void makeIntensityProfiles() {\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n // There should be only one VOI\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one curve corresponding to the external abdomen boundary\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n int[] xVals;\r\n int[] yVals;\r\n int[] zVals;\r\n try {\r\n xVals = new int [curve.size()];\r\n yVals = new int [curve.size()];\r\n zVals = new int [curve.size()];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate the abdomen VOI arrays\");\r\n return;\r\n }\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n // one intensity profile for each radial line. Each radial line is 3 degrees and\r\n // there are 360 degrees in a circle\r\n try {\r\n intensityProfiles = new ArrayList[360 /angularResolution];\r\n xProfileLocs = new ArrayList[360 / angularResolution];\r\n yProfileLocs = new ArrayList[360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile arrays\");\r\n return;\r\n }\r\n \r\n // load the srcImage into the slice buffer (it has the segmented abdomen image in it now)\r\n try {\r\n srcImage.exportData(0, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n // allocate the ArrayLists for each radial line\r\n try {\r\n intensityProfiles[contourPointIdx] = new ArrayList<Short>();\r\n xProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n yProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile list: \" +contourPointIdx);\r\n return;\r\n }\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n // intensityProfiles, xProfileLocs, and yProfileLocs are set, we can find the \r\n // internal boundary of the subcutaneous fat now\r\n }",
"private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }",
"private void initChart() {\n Cartesian cartesian = AnyChart.line();\n\n cartesian.animation(true);\n\n cartesian.padding(10d, 20d, 5d, 20d);\n\n cartesian.crosshair().enabled(true);\n cartesian.crosshair()\n .yLabel(true)\n // TODO ystroke\n .yStroke((Stroke) null, null, null, (String) null, (String) null);\n\n cartesian.tooltip().positionMode(TooltipPositionMode.POINT);\n\n cartesian.title(\"Steps taken in this week and last week\");\n\n cartesian.yAxis(0).title(\"Steps\");\n cartesian.xAxis(0).labels().padding(5d, 5d, 5d, 5d);\n\n List<DataEntry> seriesData = new ArrayList<>();\n Log.d(\"Size This Week\",stepsTakenModelsThisWeek.size()+\"\");\n for(int i = 0 ; i<7 ; i++){\n CustomDataEntry c = new CustomDataEntry(days[i],stepsTakenModelsLastWeek.get(i).getSteps());\n if(i<stepsTakenModelsThisWeek.size()){\n c.setValue(\"value2\",stepsTakenModelsThisWeek.get(i).getSteps());\n }else{\n if(DateUtilities.getDayInAbbBySelectedDate(stepsTakenModelsLastWeek.get(i).getDate()).equals(\n DateUtilities.getCurrentDayInAbb()))\n {\n c.setValue(\"value2\",stepsToday);\n }else{\n c.setValue(\"value2\",0);\n }\n }\n seriesData.add(c);\n }\n\n Set set = Set.instantiate();\n set.data(seriesData);\n Mapping series1Mapping = set.mapAs(\"{ x: 'x', value: 'value' }\");\n Mapping series2Mapping = set.mapAs(\"{ x: 'x', value: 'value2' }\");\n\n Line series1 = cartesian.line(series1Mapping);\n series1.name(\"Last Week\");\n series1.hovered().markers().enabled(true);\n series1.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series1.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n Line series2 = cartesian.line(series2Mapping);\n series2.name(\"This Week\");\n series2.hovered().markers().enabled(true);\n series2.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series2.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n\n cartesian.legend().enabled(true);\n cartesian.legend().fontSize(13d);\n cartesian.legend().padding(0d, 0d, 10d, 0d);\n\n chart.setChart(cartesian);\n }",
"private ProviderProfile parseProfile(Elements tds) throws ParsingException {\n try {\n ProviderProfile profile = new ProviderProfile();\n String id = tds.get(0).text();\n String fullProviderInfo = tds.get(1).text();\n fullProviderInfo = fullProviderInfo.replaceAll(\"\\u00A0\", \" \").trim();\n String adminBoundary = \"\";\n Elements bolds = tds.get(1).children().select(\"b\");\n if (bolds.size() >= 6) {\n adminBoundary = bolds.get(5).text();\n }\n\n String name = Util.getStringInBetween(fullProviderInfo, \"Name:\", \"Address:\");\n String address = Util.getStringInBetween(fullProviderInfo, \"Address:\", \"Phone:\");\n String phone = Util.getStringInBetween(fullProviderInfo, \"Phone:\", \"Fax:\");\n String fax = Util.getStringInBetween(fullProviderInfo, \"Fax:\", \"Administrator:\");\n String administrator = !\"\".equals(adminBoundary) ? Util.getStringInBetween(fullProviderInfo,\n \"Administrator:\", adminBoundary) : \"\";\n \n // classifications\n Elements classifications = tds.get(1).children().select(\"p\");\n for (Element classification : classifications) {\n String para = classification.text().replaceAll(\"\\u00A0\", \" \").trim();\n if (para.contains(\"Minnesota Classifications\")) {\n profile.setStateClassifications(para.substring(\"Minnesota Classifications:\".length()));\n } else if (para.contains(\"Federal Classifications\")) {\n profile.setFederalClassifications(para.substring(\"Federal Classifications:\".length()));\n }\n }\n\n // id\n profile.setEmployerId(id);\n // name\n Business business = new Business();\n profile.setBusiness(business);\n business.setName(name);\n // address\n List<Address> addresses = new ArrayList<Address>();\n Address addressObj = new Address();\n addresses.add(addressObj);\n profile.setAddresses(addresses);\n String[] addressParts = address.split(\" \");\n if (addressParts.length >= 4) {\n String location = addressParts[0].trim();\n String city = addressParts[1].trim();\n String state = addressParts[2].trim();\n String zipcode = addressParts[3].trim();\n addressObj.setLocation(location);\n addressObj.setCity(city);\n addressObj.setState(state);\n addressObj.setZipcode(zipcode);\n }\n // phone\n profile.setContactPhoneNumber(phone);\n // fax\n profile.setContactFaxNumber(fax);\n // administrator\n profile.setContactName(administrator);\n\n profile.setProviderType(getProviderType());\n return profile;\n } catch (Throwable e) {\n throw new ParsingException(\"Failed to parse the html\", e);\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n private void makeIntensityProfiles(int sliceNum) {\r\n \r\n // sanity check\r\n if (sliceNum < 0 || sliceNum >= zDim) return;\r\n\r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM(sliceNum);\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n \r\n // There should be only one VOI\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n // there should be only one curve on each slice corresponding to the external abdomen boundary\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().elementAt(sliceNum)); \r\n int[] xVals;\r\n int[] yVals;\r\n int[] zVals;\r\n try {\r\n xVals = new int [curve.size()];\r\n yVals = new int [curve.size()];\r\n zVals = new int [curve.size()];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate the abdomen VOI arrays\");\r\n return;\r\n }\r\n curve.exportArrays(xVals, yVals, zVals);\r\n \r\n // one intensity profile for each radial line. Each radial line is 3 degrees and\r\n // there are 360 degrees in a circle\r\n try {\r\n intensityProfiles = new ArrayList[360 /angularResolution];\r\n xProfileLocs = new ArrayList[360 / angularResolution];\r\n yProfileLocs = new ArrayList[360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile arrays\");\r\n return;\r\n }\r\n \r\n // load the srcImage into the slice buffer (it has the segmented abdomen image in it now)\r\n try {\r\n srcImage.exportData(sliceNum * sliceSize, sliceSize, sliceBuffer);\r\n } catch (IOException ex) {\r\n System.err.println(\"JCATsegmentAbdomen2D(): Error exporting data\");\r\n return;\r\n }\r\n\r\n double angleRad;\r\n int count;\r\n int contourPointIdx = 0;\r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n count = 0;\r\n int x = xcm;\r\n int y = ycm;\r\n int yOffset = y * xDim;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n // allocate the ArrayLists for each radial line\r\n try {\r\n intensityProfiles[contourPointIdx] = new ArrayList<Short>();\r\n xProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n yProfileLocs[contourPointIdx] = new ArrayList<Integer>();\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeIntensityProfiles(): Can NOT allocate profile list: \" +contourPointIdx);\r\n return;\r\n }\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > xVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yVals[contourPointIdx]) {\r\n // store the intensity and location of each point along the radial line\r\n intensityProfiles[contourPointIdx].add((short)sliceBuffer[yOffset + x]);\r\n xProfileLocs[contourPointIdx].add(x);\r\n yProfileLocs[contourPointIdx].add(y);\r\n count++;\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n yOffset = y * xDim;\r\n }\r\n }\r\n \r\n contourPointIdx++;\r\n } // end for (angle = 0; ...\r\n\r\n // intensityProfiles, xProfileLocs, and yProfileLocs are set, we can find the \r\n // internal boundary of the subcutaneous fat now\r\n }",
"private JPanel createChartPanel(XYSeriesCollection li) {\n\n String chartTitle = \" Movement Chart\";\n String xAxisLabel = \"Matrix Size\";\n String yAxisLabel = \"time in ms\";\n\n XYSeriesCollection dataset = li;\n // System.out.println(\"tesst count \" + dataset.getSeriesCount());\n\n //XYDataset dataset = createDataset(li);\n JFreeChart chart = ChartFactory.createXYLineChart(chartTitle, xAxisLabel, yAxisLabel, dataset);\n XYPlot plot = chart.getXYPlot();\n XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();\n plot.setRenderer(renderer);\n\n return new ChartPanel(chart);\n }",
"void copyJetspeedInformaitonToMiddleTable(List<CustomizeProfileModel> profiles) throws AAException;",
"private List< PlotData > valueOfDesireAlongLine( final Line line, final int which_one_my_master )\n\t{\n\t\tfinal Img< UnsignedShortType > img = ImagePlusAdapter.wrap( imgPlus );\n\t\tfinal Cursor< UnsignedShortType > cursor = img.cursor();\n\n\t\t// get 'line' as vector based at 0\n\t\tfinal double vec_x = line.x2 - line.x1;\n\t\tfinal double vec_y = line.y2 - line.y1;\n\t\t// direction of 'line' as normalized vecter at 0\n\t\tfinal Vector2D vec_line_direction = new Vector2D( vec_x, vec_y );\n\n\t\tfinal int frames = imgPlus.getDimensions()[ 4 ]; // 4 happens to be the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// time-dimension...\n\t\tfinal List< PlotData > summed_intensities = new ArrayList< PlotData >();\n\t\tfinal List< PlotData > volume = new ArrayList< PlotData >();\n\t\tfinal List< PlotData > concentrations = new ArrayList< PlotData >();\n\n\t\tfor ( int i = 0; i < frames; i++ )\n\t\t{\n\t\t\tsummed_intensities.add( new PlotData( ( int ) Math.floor( line.getLength() ) ) );\n\t\t\tvolume.add( new PlotData( ( int ) Math.floor( line.getLength() ) ) );\n\t\t\tconcentrations.add( new PlotData( ( int ) Math.floor( line.getLength() ) ) );\n\t\t}\n\n\t\tdouble pixel_value;\n\t\tfinal double voxel_depth = this.imgPlus.getCalibration().getZ( 1.0 );\n\t\twhile ( cursor.hasNext() )\n\t\t{\n\t\t\tpixel_value = 0.0;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tpixel_value = cursor.next().get();\n\t\t\t}\n\t\t\tcatch ( final ClassCastException e )\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\tIJ.error( \"ClassCastException\", \"Please make source image 16bit!\" );\n\t\t\t}\n\t\t\tfinal double xpos = cursor.getIntPosition( 0 ) - line.x1;\n\t\t\tfinal double ypos = cursor.getIntPosition( 1 ) - line.y1;\n\t\t\t// final int zpos = cursor.getIntPosition( 2 );\n\t\t\tfinal int tpos = cursor.getIntPosition( 3 );\n\n\t\t\t// vector to current pixel\n\t\t\tfinal Vector2D vec_pos = new Vector2D( xpos, ypos );\n\n\t\t\t// compute projection onto line-ROI\n\t\t\tfinal Vector2D lineProjection = vec_line_direction.project( vec_pos );\n\t\t\tfinal double fractional_slice_num = lineProjection.getLength();\n\t\t\t// don't do anything in case voxel is below or above line\n\t\t\tif ( lineProjection.dot( vec_line_direction ) < 0 || fractional_slice_num > vec_line_direction.getLength() )\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// add the shit\n\t\t\tif ( pixel_value > 0.0 )\n\t\t\t{\n\t\t\t\tsummed_intensities.get( tpos ).addValueToXValue( fractional_slice_num, pixel_value );\n\t\t\t\tvolume.get( tpos ).addValueToXValue( fractional_slice_num, voxel_depth );\n\t\t\t}\n\t\t}\n\n\t\t// compute concentrations (iterate over summed intensities and divide by\n\t\t// volume)\n\t\tfor ( int t = 0; t < summed_intensities.size(); t++ )\n\t\t{\n\t\t\tfor ( int i = 0; i < summed_intensities.get( t ).getXData().length; i++ )\n\t\t\t{\n\t\t\t\tdouble concentration = summed_intensities.get( t ).getYData()[ i ] / volume.get( t ).getYData()[ i ];\n\t\t\t\tif ( Double.isNaN( concentration ) )\n\t\t\t\t\tconcentration = 0.0;\n\t\t\t\tconcentrations.get( t ).addValueToXValue( summed_intensities.get( t ).getXData()[ i ], concentration );\n\t\t\t}\n\t\t}\n\n\t\tif ( which_one_my_master == WISH_CONCENTRATION )\n\t\t{\n\t\t\treturn concentrations;\n\t\t}\n\t\telse if ( which_one_my_master == WISH_SUM_INTENSITIES )\n\t\t{\n\t\t\treturn summed_intensities;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn volume;\n\t\t}\n\t}",
"public ArrayList<ProfileInfo> getProfileList()\r\n\t{\r\n\t\tArrayList<ProfileInfo> list = new ArrayList<ProfileInfo>();\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\t// grab each set of values and add as a ProfileInfo object to list\r\n\t\t\tString str = ps.getString(i + PROFILE);\r\n\t\t\t\r\n\t\t\tString[] values = str.split(\",\");\r\n\t\t\t\r\n\t\t\tif (values.length == 4)\t// Should be 4 strings representing values\r\n\t\t\t{\r\n\t\t\t\tProfileInfo info = new ProfileInfo(values[0],\r\n\t\t\t\t\tvalues[1],\r\n\t\t\t\t\tvalues[2],\r\n\t\t\t\t\tInteger.parseInt(values[3]));\r\n\t\t\t\r\n\t\t\t\tlist.add(info);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"private void doLine()\n\t{\n\t\tubisenseData = new UbisenseMockupData();\n\t\tDecimalFormat df = new DecimalFormat(\"#0,00\");\n\n\t\telapsedTime = 0;\n\t\t\n\t\tubisenseData.setTagID(Helper.DEFAULT_TAG_ID);\n\t\tubisenseData.setUnit(Helper.UBISENSE_UNIT);\n\t\tubisenseData.setOntology(Helper.LP_ONTOLOGY_URL);\n\t\tubisenseData.setVersion(Helper.UBISENSE_VERSION);\n\t\tubisenseData.setId(\"\");\n\t\tubisenseData.setSendTime(sendTime);\n\t\t\n\t\tlong millis = startDate.getMillis();\n\t\tmillis += offset.toStandardDuration().getMillis();\n//\t\tmillis += parentOffset.toStandardDuration().getMillis();\n\t\t\n\t\t// Steigung m und Achsenabschnitt b berechnen\n//\t\tdouble m = 0.;\n//\t\tif ((x2-x1)!=0)\n//\t\t\tm = (y2-y1)/(x2-x1);\n//\t\tdouble b = y1 - (m * x1);\n\t\t\n\t\t// Abstand zwischen beiden Koordinaten d\n\t\tdouble dsquare = Math.pow((x2-x1),2) + Math.pow((y2-y1),2);\n\t\tdouble d = Math.sqrt(dsquare);\n\n\t\t// Zeit t [s] berechnen, die für die Distanz d unter gegebener Geschwindigkeit benötigt wird.\n\t\tdouble t = d / toolSpeed;\n\t\tdouble steps = Math.ceil(t) +1;\n\t\t\n\t\twhile (steps>0 && !terminate)\n\t\t{\n\t\t\tdouble x,y, currentTime=0;\n\t\t\tif (t != 0)\n\t\t\tcurrentTime = elapsedTime / t;\n\t\t\t\n\t\t\tx = (x2-x1) * currentTime + x1;\n\t\t\ty = (y2-y1) * currentTime + y1;\n\t\t\tubisenseData.setPosition(new Point3D(\tDouble.parseDouble(df.format(x)),\n\t\t\t \tDouble.parseDouble(df.format(y)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t1.6));\n\t\t\tubisenseData.setId(String.valueOf(Helper.getRandomInt()));\n\t\t\tubisenseData.setTime(millis + (long)(elapsedTime*SLEEP_INTERVAL));\n\t\t\tEntryEvent event = new EntryEvent(this);\n\t\t\tnotifyListeners(event);\n\t\t\telapsedTime++;\n\t\t\tif (elapsedTime > t)\n\t\t\t\telapsedTime = t;\n\t\t\t\n\t\t\tsteps--;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (speed > 0)\n\t\t\t\t\tThread.sleep(SLEEP_INTERVAL/speed);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }",
"public SeriesSelection getSeriesAndPointForScreenCoordinate(Point screenPoint) {\r\n return null;\r\n }",
"protected abstract Profile[] getProfileSet();",
"public VerticalProfiling(String climatefilepath, String trackfilepath) {\n\n nctest = new NetCDFReader2D(climatefilepath);\n nctest.ReadNetCDF();\n GMLPointReader gmlptreader = new GMLPointReader(trackfilepath);\n pathPositions = gmlptreader.GetPositions(gmlptreader.readGMLData());\n variablename = nctest.GetVariableName();\n this.GetProfling();\n\n }",
"private VerticalProfileInfo getVPInfo(int row) {\n while (row >= infos.size()) {\n VerticalProfileInfo info = new VerticalProfileInfo(this);\n infos.add(info);\n }\n VerticalProfileInfo info = (VerticalProfileInfo) infos.get(row);\n if (info.getDataInstance() == null) { // first time through\n List choices = getDataChoices();\n try {\n DataChoice dc = (DataChoice) choices.get(row);\n showWaitCursor();\n info.setDataInstance(new GridDataInstance(dc,\n getDataSelection(), getRequestProperties()));\n showNormalCursor();\n initializeVerticalProfileInfo(info);\n } catch (VisADException exc) {}\n catch (RemoteException exc) {}\n }\n return info;\n }",
"private void findStaffLinePositions()\n {\n Log.i(TAG, \"findStaffLinePositions\");\n final int sliceStart = (int)(0.45*mWidth);\n final int sliceEnd = (int)(0.65*mWidth);\n \n boolean connected;\n int lineNum;\n for(int x = sliceStart; x<sliceEnd; ++x) //only consider a slice of x values\n {\n connected=false;\n lineNum=0;\n for(int y=0; y<mHeight; ++y)\n {\n if(mHorizontalProjHist[y] >= x) //the histogram for this y value is within the slice we're looking at\n {\n if(mStaffLineMap.indexOfKey(y) < 0) //we haven't seen this y value, so add it\n {\n \tmStaffLineMap.put(y, lineNum);\n }\n connected = true;\n }\n else if(connected) //encountered whitespace after a line\n {\n lineNum++;\n connected = false;\n }\n }\n }\n\n }",
"@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}",
"public Parent createLineGraph(ObservableList<HappinessReport> data) {\n xAxis = new CategoryAxis();\n xAxis.setLabel(\"Country\");\n //Yaxis Creation\n yAxis = new NumberAxis();\n yAxis.setLabel(\"Life Expectancy (Years)\");\n //Chart Creation\n linechart = new LineChart<>(xAxis, yAxis);\n linechart.setTitle(\"Linechart\");\n //Country and Score Data load into chart\n for (int intx = 0; intx < data.size(); intx++) {\n XYChart.Series LineChartSeries = new XYChart.Series<>();\n LineChartSeries.getData().add(new XYChart.Data(String.valueOf(data.get(intx).getCountry()), data.get(intx).getExpectancy()));\n linechart.getData().add(LineChartSeries);\n }\n linechart.setTitle(\"Horizontal Bar Chart Example\");\n linechart.setVerticalGridLinesVisible(false);\n linechart.setLegendVisible(false);\n return linechart;\n }",
"private void prepareDataAnimation() {\n for (SliceValue value : pieChartData.getValues()) {\n value.setTarget((float) Math.random() * 30 + 15);//更新数据\n }\n detailLineChart.startDataAnimation();\n }",
"@Override\n protected void paintTrace(Painter aPntr)\n {\n // Get area bounds\n double areaW = getWidth();\n double areaH = getHeight();\n\n // Get whether TraceView/Trace is selected or targeted\n boolean isSelected = isSelectedOrTargeted();\n\n // Get Trace info\n Trace trace = getTrace();\n boolean showLine = trace.isShowLine();\n boolean showPoints = trace.isShowPoints();\n boolean showArea = trace.isShowArea();\n\n // Get DataColor, DataStroke\n Color dataColor = getDataColor();\n Stroke dataStroke = trace.getLineStroke();\n\n // If reveal is not full (1) then clip\n double reveal = getReveal();\n if (reveal < 1 && (showPoints || showArea)) {\n aPntr.save();\n aPntr.clipRect(0, 0, areaW * reveal, areaH);\n }\n\n // If ShowArea, fill path, too\n if (showArea) {\n Shape traceAreaShape = getTraceAreaShape();\n Color traceFillColor = trace.getFillColor();\n aPntr.setColor(traceFillColor);\n aPntr.fill(traceAreaShape);\n }\n\n // Get dataShape (path) (if Reveal is active, get shape as SplicerShape so we can draw partial/animated)\n Shape dataShape = getTraceLineShape();\n if (reveal < 1 && showLine)\n dataShape = new SplicerShape(dataShape, 0, reveal);\n\n // If ShowLine, draw path\n if (isSelected && showLine) {\n aPntr.setStrokePure(true);\n\n // If selected, draw path\n Color selColor = dataColor.blend(Color.CLEARWHITE, .75);\n Stroke selStroke = dataStroke.copyForWidth(dataStroke.getWidth() * 3 + 8).copyForDashes(null);\n aPntr.setColor(selColor);\n aPntr.setStroke(selStroke);\n aPntr.draw(dataShape);\n\n // If selected, draw path\n Color selColor2 = dataColor.blend(Color.WHITE, 1);\n Stroke selStroke2 = dataStroke.copyForWidth(dataStroke.getWidth() + 2);\n aPntr.setColor(selColor2);\n aPntr.setStroke(selStroke2);\n aPntr.draw(dataShape);\n\n aPntr.setStrokePure(false);\n aPntr.setColor(dataColor);\n aPntr.setStroke(dataStroke);\n }\n\n // Set color, stroke\n aPntr.setColor(dataColor);\n aPntr.setStroke(dataStroke);\n\n // If ShowLine, draw path\n if (showLine) {\n aPntr.setStrokePure(true);\n aPntr.draw(dataShape);\n aPntr.setStrokePure(false);\n }\n\n // If Reveal is active, paint TailShape\n if (dataShape instanceof SplicerShape)\n paintTailShape(aPntr, (SplicerShape) dataShape);\n\n // Paint selected point\n if (isSelected)\n paintSelDataPoint(aPntr);\n\n // If ShowPoints or ShowTags\n boolean showTags = trace.isShowTags();\n if (showPoints || showTags)\n _pointPainter.paintSymbolsAndTagsPrep();\n\n // If ShowPoints, paint symbols\n if (showPoints)\n paintSymbols(aPntr);\n\n // If reveal not full, resture gstate\n if (reveal < 1 && (showPoints || showArea))\n aPntr.restore();\n }",
"@Override\n\t\tpublic ProfileImpl build() {\n\t\t\treturn new ProfileImpl(\n\t\t\t\tsecurity,\n\t\t\t\t(ProfileInfo)map.get(PROFILE_INFO),\n\t\t\t\t(Address)map.get(ADDRESS),\n\t\t\t\t(Address)map.get(SHIPPING_ADDRESS),\n\t\t\t\t(Social)map.get(SOCIAL),\n\t\t\t\t(Attributes)map.get(ATTRIBUTES)\n\t\t\t);\n\t\t}",
"private void createRecordedActivity(RecordingService recordingService, double elevationGain, Profile profile) {\n ArrayList<LatLng> latLngs = new ArrayList<>();\n for (Location location : recordingService.getLocations()) {\n latLngs.add(new LatLng(location.getLatitude(), location.getLongitude()));\n }\n\n Duration duration = getDurationFromTimeView();\n Sport sport = Sport.convertToSport(activityView.getText().toString());\n\n int calories = CalorieCalculator.calculateCalories(profile, duration, sport);\n\n RecordedActivity recordedActivity = new RecordedActivity(latLngs, duration,\n sport, recordingService.getDistance() / 1000,\n recordingService.getAverageSpeed(), (float)elevationGain, calories);\n\n Intent intent = new Intent(this, SaveRecordingActivity.class);\n intent.putExtra(SaveRecordingActivity.RECORDED_ACTIVITY, recordedActivity);\n intent.putExtra(HomeActivity.FRAGMENT_ID, getIntent().getIntExtra(HomeActivity.FRAGMENT_ID, 0));\n startActivity(intent);\n finish();\n }",
"public PlotPanel2D(List<Point2D> plotData)\r\n {\r\n this();\r\n _plotData.add(plotData);\r\n _plotType.add(PLOT_TYPE_LINE);\r\n _pointSize = DEFAULT_POINT_SIZE;\r\n }",
"private FactoryViewPanel buildAdvancedPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n if (myIsImport)\r\n {\r\n addField(panel, myDataSourceModel.getIncludeInTimeline());\r\n }\r\n JPanel refreshPanel = buildRefreshPanel();\r\n panel.addLabelComponent(ControllerFactory.createLabel(myDataSourceModel.getAutoRefresh(), refreshPanel.getComponent(0)),\r\n refreshPanel);\r\n addField(panel, myDataSourceModel.getPointType());\r\n addField(panel, myDataSourceModel.getFeatureAltitude());\r\n addField(panel, myDataSourceModel.getPolygonFill());\r\n addField(panel, myDataSourceModel.getScalingMethod());\r\n addField(panel, myDataSourceModel.getShowLabels());\r\n return panel;\r\n }",
"public Builder addProfiles(org.beangle.security.session.protobuf.Model.Profile value) {\n if (profilesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureProfilesIsMutable();\n profiles_.add(value);\n onChanged();\n } else {\n profilesBuilder_.addMessage(value);\n }\n return this;\n }",
"public void setTopObjectInitData() {\n\t\t\n\t\tthis.partShape = 0; // L, T, Z, I, H,\n\t\tthis.ABClines = 0; // if reflects lines for\n\t\t// ABC dims of\n\t\t// parts, by T\n\t\t// partDimA = 0f / myLevelShape.myMainPanel.scale;\n\t\t// partDimB = 0 / myLevelShape.myMainPanel.scale;\n\t\t// partDimC = 0 / myLevelShape.myMainPanel.scale;\n\t\t// partDimM = 0f / myLevelShape.myMainPanel.scale;\n\t\tthis.partID = 999;\n\t\tthis.stockCode = \"Profile\";\n\t}",
"private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}",
"public HistoryData(int sp, int inc) {\n\t\tspeed = sp;\n\t\tincline = inc;\n\t\tduration = 0.0;\n\t}",
"public LinkedList<Curve> getSelectedProfiles() {\r\n\t\tLinkedList<Curve> retList = new LinkedList<>();\r\n\t\t/**\r\n\t\t * Enable access to the imported profiles only if the import button was\r\n\t\t * pressed.\r\n\t\t */\r\n\t\tif (enableAccessToImpProfile) {\r\n\t\t\tString infoMessage = null;\r\n\t\t\tint len = Integer.parseInt(textfieldLenCorrection.getText());\r\n\t\t\tfor (Curve p : parsedProfiles) {\r\n\t\t\t\tif (selectedProfiles.get(parsedProfiles.indexOf(p)) == true) {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * Check if length correction is enabled\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (cbEnableLenCorrect.isSelected()) {\r\n\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t * Add the profiles according to the length correction\r\n\t\t\t\t\t\t * definition\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tretList.add(new Curve(p.getName(), p.getYequiX( len ) ));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t * If no length correction is enabled check against the\r\n\t\t\t\t\t\t * minimum number of required data points and correct\r\n\t\t\t\t\t\t * automatically if smaller.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif (p.size() < minRequiredDataPoints) {\r\n\t\t\t\t\t\t\t// interpolate to minimal point number\r\n\t\t\t\t\t\t\tretList.add(new Curve(p.getName(),\r\n\t\t\t\t\t\t\t\t\tp.getYequiX(minRequiredDataPoints)\r\n\t\t\t\t\t\t\t\t\t));\r\n\t\t\t\t\t\t\tif (infoMessage == null)\r\n\t\t\t\t\t\t\t\tinfoMessage = new String();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinfoMessage += \"> Profile \" + p.getName()\r\n\t\t\t\t\t\t\t\t\t+ \" = \" + p.size()\r\n\t\t\t\t\t\t\t\t\t+ \" data points\\n\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tretList.add(p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * Show user information if automatically length correction was\r\n\t\t\t * performed\r\n\t\t\t */\r\n\t\t\tif (infoMessage != null) {\r\n\t\t\t\tString additionalInfo = \"The following profiles had less than \"\r\n\t\t\t\t\t\t+ minRequiredDataPoints\r\n\t\t\t\t\t\t+ \" data points.\\n\"\r\n\t\t\t\t\t\t+ \"These profiles were interpolated.\\n\\n\";\r\n\t\t\t\tString title = \"Length correction information\";\r\n\t\t\t\tJOptionPane.setDefaultLocale(Locale.ENGLISH);\r\n\t\t\t\tJOptionPane.showMessageDialog(null, additionalInfo\r\n\t\t\t\t\t\t+ infoMessage, title, JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retList;\r\n\t}",
"public void showLineProperties(VerticalProfileInfo vpInfo) {\n PropertyChangeListener listener = new PropertyChangeListener() {\n public void propertyChange(PropertyChangeEvent evt) {\n try {\n VerticalProfileControl.this.doMoveProbe();\n } catch (Exception exc) {\n logException(\"Updating position\", exc);\n }\n }\n };\n LineState lineState = vpInfo.getLineState();\n lineState.showPropertiesDialog(getStore(), listener,\n getChart().getPlotNames(),\n getChart().getCurrentRanges());\n }",
"private LineData generateDataLine(int cnt, String name, ArrayList<Double> mainEmotion) {\n\n ArrayList<Entry> values1 = new ArrayList<>();\n\n //int[] val = {(int) happinessr, (int) sadnessr, (int) surpriser, (int) fearr, (int) neutralr, (int) contemptr, (int) angerr, (int) disgustr};\n\n for (int i = 0; i < mainEmotion.size(); i++) {\n values1.add(new Entry(i, mainEmotion.get(i).intValue()));\n }\n\n LineDataSet d1 = new LineDataSet(values1, name);\n d1.setLineWidth(2.5f);\n d1.setCircleRadius(4.5f);\n //Toast.makeText(getContext().getApplicationContext(), name, Toast.LENGTH_LONG).show();\n\n switch (name) {\n case \"Happiness\":\n d1.setColor(Color.rgb(189, 237, 255));\n d1.setCircleColors(Color.rgb(189, 237, 255));\n break;\n case \"Sadness\":\n d1.setColor(Color.rgb(74, 88, 176));\n d1.setCircleColors(Color.rgb(74, 88, 176));\n break;\n case \"Contempt\":\n d1.setColor(Color.rgb(242, 5, 92));\n d1.setCircleColors(Color.rgb(242, 5, 92));\n break;\n case \"Disgust\":\n d1.setColor(Color.rgb(79, 139, 62));\n d1.setCircleColors(Color.rgb(79, 139, 62));\n break;\n case \"Fear\":\n d1.setColor(Color.rgb(89, 72, 122));\n d1.setCircleColors(Color.rgb(89, 72, 122));\n break;\n case \"Surprise\":\n d1.setColor(Color.rgb(205, 185, 39));\n d1.setCircleColors(Color.rgb(205, 185, 39));\n break;\n case \"Anger\":\n d1.setColor(Color.rgb(189, 73, 84));\n d1.setCircleColors(Color.rgb(189, 73, 84));\n break;\n case \"Neutral\":\n d1.setColor(Color.rgb(220, 235, 221));\n d1.setCircleColors(Color.rgb(220, 235, 221));\n break;\n default:\n break;\n\n }\n\n d1.setHighLightColor(Color.rgb(255, 0, 0));\n d1.setDrawValues(false);\n\n ArrayList<Entry> values2 = new ArrayList<>();\n\n for (int i = 0; i < mainEmotion.size(); i++) {\n values2.add(new Entry(i, values1.get(i).getY() - 30));\n }\n\n ArrayList<ILineDataSet> sets = new ArrayList<>();\n sets.add(d1);\n //sets.add(d2);\n\n return new LineData(sets);\n }",
"public void slicePlot(PlotFrame pframe, polyfun.Polynomial poly, double sleft, double sright) {\n\t\tdouble width = sright-sleft; // width is distance between extreme x values\n\t\tint intPoint = gen.nextInt(1001); // random number between 0-1000\n\t\tdouble point = intPoint*width/1000; // value of how far in between sleft and sright the x value is\n\t\tdouble height = (PolyPractice.eval(poly, sleft+point)); // gets height of random point\n\t\tDrawableShape myrect = DrawableShape.createRectangle(sleft+(width/2), height/2, Math.abs(width), Math.abs(height)); // center x value, center y value, total width, total height\n// myrect.setMarkerColor(Color.blue, Color.black); // interior blue, black border\n\t\tpframe.addDrawable(myrect); // draws it\n\n\t}",
"private void populateData(String seriesName) {\n competitorsList = new ArrayList<>();\n {\n Cursor cursor = DB.readSeriesResult(seriesName);\n int rankCount = 1;\n while (cursor.moveToNext()) {\n\n int rank = rankCount;\n String bClass = cursor.getString(0);\n int sailNo = Integer.parseInt(cursor.getString(1));\n String helmName = cursor.getString(2);\n String crewName = cursor.getString(3) == null ? \"\" :cursor.getString(3) ;\n int PY = Integer.parseInt(cursor.getString(4));\n int points = cursor.getString(5) == null ? -1 : Integer.parseInt(cursor.getString(5));\n rankCount++;\n FinalCompetitorData competitor = new FinalCompetitorData(rank, bClass, sailNo, helmName, crewName, PY, points);\n competitorsList.add(competitor);\n }\n records = new String[competitorsList.size()][columnHeaders.length];\n for (int i = 0; i < competitorsList.size(); i++) {\n FinalCompetitorData s = competitorsList.get(i);\n\n records[i][0] = String.valueOf(s.getRank());\n records[i][1] = s.getBoatClass();\n records[i][2] = String.valueOf(s.getSailNo());\n records[i][3] = s.getHelmName();\n records[i][4] = s.getCrewName().equals(\"\") ? \"--\" : s.getCrewName();\n records[i][5] = String.valueOf(s.getPY());\n records[i][6] = s.getPoints() == -1 ? \"--\" : String.valueOf(s.getPoints());\n }//for\n }\n }",
"private static void fillDataset(Dataset d){\n try{\n\n BufferedReader in = new BufferedReader(new FileReader(\"src/points.txt\"));\n String str;\n while ((str = in.readLine()) != null){\n String[] tmp=str.split(\",\");\n d.addPoint(new Point(Double.parseDouble(tmp[0]), Double.parseDouble(tmp[1])));\n }\n in.close();\n }\n catch (IOException e){\n System.out.println(\"File Read Error\");\n }\n }",
"private void loadFromOutputline(String p, SBEPanel panel) {\n StringTokenizer stok = new StringTokenizer(p,\";\\\"\");\n stok.nextToken();//mid\n String id=stok.nextToken();\n stok.nextToken();//bio seq.\n loadSNPInto(panel,stok.nextToken());//snp\n \n int pl = -1;\n try {\n pl =Integer.parseInt(stok.nextToken());//pl\n }catch(NumberFormatException e) {};\n stok.nextToken();//primerlength\n stok.nextToken();//gc\n stok.nextToken();//tm\n stok.nextToken();//excl. 5\n stok.nextToken();//excl. 3\n stok.nextToken();//sec1\n stok.nextToken();//sec2\n stok.nextToken();//sec3\n stok.nextToken();//sec4\n stok.nextToken();//3 or 5\n stok.nextToken();//t\n stok.nextToken();//g\n stok.nextToken();//pcrprod. length\n String seq=stok.nextToken();//\n panel.tfName.setText(id);\n panel.tfSequence.setText(seq);\n panel.setSelectedPL(pl);\n }",
"public void setProfileSegments(Set<String> profileSegments) {\n this.profileSegments = profileSegments;\n }",
"synchronized private void setupForDisplay() {\n \t\tif (-1 == n_points) n_points = 0;\n \t\t// load points\n \t\t/* Database storage not implemented yet\n \t\tif (null == p) {\n \t\t\tArrayList al = project.getLoader().fetchPolylinePoints(id);\n \t\t\tn_points = al.size();\n \t\t\tp = new double[2][n_points];\n \t\t\tp_layer = new long[n_points];\n \t\t\tIterator it = al.iterator();\n \t\t\tint i = 0;\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tObject[] ob = (Object[])it.next();\n \t\t\t\tp[0][i] = ((Double)ob[0]).doubleValue();\n \t\t\t\tp[1][i] = ((Double)ob[1]).doubleValue();\n \t\t\t\tp_layer[i] = ((Long)ob[7]).longValue();\n \t\t\t\ti++;\n \t\t\t}\n \t\t}\n \t\t*/\n \t}",
"private void createGooglePlusProfileTable(){\n cellTableOfGooglePlusProfile.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);\n\n // Add a text columns to show the details.\n TextColumn<GooglePlusIdentity> columnFirstLine = new TextColumn<GooglePlusIdentity>() {\n @Override\n public String getValue(GooglePlusIdentity object) {\n return object.getId();\n }\n };\n cellTableOfGooglePlusProfile.addColumn(columnFirstLine, \"ID\");\n\n TextColumn<GooglePlusIdentity> columnSecondLine = new TextColumn<GooglePlusIdentity>() {\n @Override\n public String getValue(GooglePlusIdentity object) {\n return object.getGivenName();\n }\n };\n cellTableOfGooglePlusProfile.addColumn(columnSecondLine, \"Given Name\");\n\n TextColumn<GooglePlusIdentity> townColumn = new TextColumn<GooglePlusIdentity>() {\n @Override\n public String getValue(GooglePlusIdentity object) {\n return object.getFamilyName();\n }\n };\n cellTableOfGooglePlusProfile.addColumn(townColumn, \"Family Name\");\n\n TextColumn<GooglePlusIdentity> countryColumn = new TextColumn<GooglePlusIdentity>() {\n @Override\n public String getValue(GooglePlusIdentity object) {\n return object.getUrl();\n }\n };\n cellTableOfGooglePlusProfile.addColumn(countryColumn, \"URL\");\n\n TextColumn<GooglePlusIdentity> imageURL = new TextColumn<GooglePlusIdentity>() {\n @Override\n public String getValue(GooglePlusIdentity object) {\n return object.getImageUrl();\n }\n };\n cellTableOfGooglePlusProfile.addColumn(imageURL, \"ImageURL\");\n\n TextColumn<GooglePlusIdentity> kind = new TextColumn<GooglePlusIdentity>() {\n @Override\n public String getValue(GooglePlusIdentity object) {\n return object.getImageUrl();\n }\n };\n cellTableOfGooglePlusProfile.addColumn(kind, \"Kind\");\n\n final SingleSelectionModel<GooglePlusIdentity> selectionModel = new SingleSelectionModel<>();\n cellTableOfGooglePlusProfile.setSelectionModel(selectionModel);\n }",
"private void setData() {\n LineDataSet set1 = new LineDataSet(valuesTemperature, \"Temperature\");\n\n set1.setColor(Color.RED);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n LineData data = new LineData(set1);\n\n // set data\n chartTemperature.setData(data);\n\n // get the legend (only possible after setting data)\n Legend l = chartTemperature.getLegend();\n l.setEnabled(true);\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesPressure, \"Pressure\");\n\n set1.setColor(Color.GREEN);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartPressure.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartPressure.getLegend();\n l.setEnabled(true);\n\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesAltitude, \"Altitude\");\n\n set1.setColor(Color.BLUE);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartAltitude.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartAltitude.getLegend();\n l.setEnabled(true);\n }",
"public Position.PositionList buildSegment() {\n List<Position> positions = new ArrayList<>(3);\n\n // determine the middle point of the descending segment\n Position middlePos;\n if (startPoint.getElevation() > endPoint.getElevation()) {\n middlePos = new Position(\n Position.interpolateGreatCircle(1 - PATH_INTERPOLATE_AMOUNT, startPoint, endPoint), startPoint.getElevation());\n } else {\n middlePos = new Position(\n Position.interpolateGreatCircle(PATH_INTERPOLATE_AMOUNT, startPoint, endPoint), endPoint.getElevation());\n }\n\n // add the last points\n positions.add(middlePos);\n positions.add(endPoint);\n\n return new Position.PositionList(positions);\n }",
"@Override\n \t\t\t\tpublic void doCreateLineParticle() {\n \n \t\t\t\t}",
"public XYDataset getLineDataset() {\n\n // Initialize some variables\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series[][] = new XYSeries[rois.length][images.length];\n String seriesname[][] = new String[rois.length][images.length];\n int currentSlice = ui.getOpenMassImages()[0].getCurrentSlice();\n ArrayList<String> seriesNames = new ArrayList<String>();\n String tempName = \"\";\n map = new HashMap<String, Pair<MimsPlus, Roi>>();\n double stat;\n\n // Image loop\n for (int j = 0; j < images.length; j++) {\n MimsPlus image;\n if (images[j].getMimsType() == MimsPlus.HSI_IMAGE || images[j].getMimsType() == MimsPlus.RATIO_IMAGE) {\n image = images[j].internalRatio;\n } else {\n image = images[j];\n }\n // Roi loop\n for (int i = 0; i < rois.length; i++) {\n\n // Set the Roi to the image.\n Integer[] xy = ui.getRoiManager().getRoiLocation(rois[i].getName(), image.getCurrentSlice());\n rois[i].setLocation(xy[0], xy[1]);\n image.setRoi(rois[i]);\n\n // Stat loop\n for (int k = 0; k < stats.length; k++) {\n\n // Generate a name for the dataset.\n String prefix = \"\";\n if (image.getType() == MimsPlus.MASS_IMAGE || image.getType() == MimsPlus.RATIO_IMAGE) {\n prefix = \"_m\";\n }\n if (seriesname[i][j] == null) {\n tempName = \"mean\" + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName();\n int dup = 1;\n while (seriesNames.contains(tempName)) {\n tempName = \"mean\" + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName() + \" (\" + dup + \")\";\n dup++;\n }\n seriesNames.add(tempName);\n seriesname[i][j] = tempName;\n }\n series[i][j] = new XYSeries(seriesname[i][j]);\n ij.gui.ProfilePlot profileP = new ij.gui.ProfilePlot(image);\n double[] newdata = profileP.getProfile();\n for (int p = 0; p < newdata.length; p++) {\n series[i][j].add(p, newdata[p]);\n }\n Pair tuple = new Pair(images[j], rois[i]);\n map.put(seriesname[i][j], tuple);\n\n } // End of Stat\n } // End of Roi\n } // End of Image\n\n // Populate the final data structure.\n for (int i = 0; i < rois.length; i++) {\n for (int j = 0; j < images.length; j++) {\n dataset.addSeries(series[i][j]);\n }\n }\n\n ui.getOpenMassImages()[0].setSlice(currentSlice);\n\n return dataset;\n }",
"public LineData() {\n\t\t\tallPoints = new ArrayList<>(SIZE_OF_ORIGINAL_LIST);\n\t\t}",
"private void prepareTimeline() {\n // Every frame to take any data from queue and add to chart\n new AnimationTimer() {\n @Override\n public void handle(long now) {\n int i = -1;\n for (NumberSeries numberSeries : AreaChartSample.this.numberSeries) {\n i = Math.max(i, numberSeries.updateSerie());\n }\n if (i >= 0) {\n updateAxis(i);\n }\n }\n }.start();\n }",
"public static DataSample generateDataSampleFromProfilerRecords(String domain, Tolerance tolerance, List<ProfilerRecord> records) throws DataAccessException {\n\t\tSampleProfiler sampleProfiler = new SampleProfiler(tolerance);\n\t\trecords.forEach(record->sampleProfiler.accumulate(record));\n\t\tDataSample bean = sampleProfiler.finish();\n\t\tInterpretationEngineFacade.interpretInline(bean, domain, null);\n\t\tSampleSecondPassProfiler secondPassProfiler = new SampleSecondPassProfiler(bean);\n\t\trecords.forEach(record->secondPassProfiler.accumulate(record));\n\t\tDataSample sample = secondPassProfiler.finish();\n\t\tsample.setDsName(UUID.randomUUID().toString());\n\t\tsample.setDsGuid(sample.getDsName());\n\t\tsample.setDsLastUpdate(Timestamp.from(Instant.now()));\n\t\treturn sample;\n\t}",
"private void addPoint(PointF p) {\n final long t = System.currentTimeMillis();\n final int size;\n synchronized (lastSegment) {\n size = lastSegment.size();\n final PointF sheetPoint = sheet.toSheet(p);\n lastSegment.add(sheetPoint);\n lastSegmentTimes.add(t);\n lastSegmentCurve.setThickness(currentThickness);\n lastSegmentCurve.addPoint(sheetPoint);\n }\n if (size >= maxPoints - 1) {\n finishSegment();\n mode = IDLE_MODE;\n }\n }",
"@Override\n public void start(final Stage primaryStage) {\n loadDemoData(demoDataFile);\n\n ProcessingProfiler.setVerboseOutputState(true);\n ProcessingProfiler.setLoggerOutputState(true);\n ProcessingProfiler.setDebugState(false);\n\n DefaultErrorDataSet bubbleDataSet1a = new DefaultErrorDataSet(\"women\");\n DefaultErrorDataSet bubbleDataSet1b = new DefaultErrorDataSet(\"men\");\n DefaultDataSet bubbleDataSet2a = new DefaultDataSet(\"women\");\n DefaultDataSet bubbleDataSet2b = new DefaultDataSet(\"men\");\n\n Map<String, Double> sortedGDP = gdpPerCapita.entrySet().stream().sorted(Entry.comparingByValue()).collect(Collectors.toMap(Entry::getKey, Entry::getValue, (e1, e2) -> e2, LinkedHashMap::new));\n // N.B. for the time the being the Zoomer plugin and Data reduction algorithm require\n // DataSets to be sorted along the x coordinate\n int count = 0;\n for (Entry<String, Double> entry : sortedGDP.entrySet()) {\n final String country = entry.getKey();\n final double gdp = entry.getValue();\n final double popSize = 0.2 * population.get(country) / maxPopulation;\n\n // set bubble size as error of y (also possible to set it as error of X or both)\n // N.B. Tip: Math.sqrt(..) since for the observer the surface are is more important than the diameter\n bubbleDataSet1a.add(gdp, lifeExpectancyWomen.get(country), Math.sqrt(popSize), Math.sqrt(popSize), country);\n bubbleDataSet1b.add(gdp, lifeExpectancyMen.get(country), Math.sqrt(popSize), Math.sqrt(popSize), country);\n\n // set markerSize according to bubble size\n bubbleDataSet2a.add(gdp, lifeExpectancyWomen.get(country), country);\n bubbleDataSet2b.add(gdp, lifeExpectancyMen.get(country), country);\n // N.B. markerSize is in pixel regardless of the xAxis or yAxis scale\n String markerSize = \"markerSize=\" + 40 * Math.sqrt(population.get(country) / maxPopulation) + \"; index=\"\n + count + \";\";\n bubbleDataSet2a.addDataStyle(count, markerSize);\n bubbleDataSet2b.addDataStyle(count, markerSize);\n if (\"FRA\".equals(country)) {\n bubbleDataSet2a.addDataStyle(count, markerSize + \"markerColor=darkblue; markerType=circle2;\");\n bubbleDataSet2b.addDataStyle(count, markerSize + \"markerColor=darkred; markerType=circle2;\");\n } else if (\"JPN\".equals(country)) {\n bubbleDataSet2a.addDataStyle(count, markerSize + \"markerColor=green; markerType=diamond;\");\n bubbleDataSet2b.addDataStyle(count, markerSize + \"markerColor=lightgreen; markerType=diamond;\");\n }\n // for more marker types see DefaultMarker\n\n count++;\n }\n\n Chart chart1 = getDefaultChart(\"Bubble-Chart via DataSetError interface\");\n final ErrorDataSetRenderer errorRenderer1 = new ErrorDataSetRenderer();\n errorRenderer1.setMarkerSize(1);\n errorRenderer1.setPolyLineStyle(LineStyle.NONE);\n errorRenderer1.setErrorType(ErrorStyle.ERRORBARS);\n errorRenderer1.setDrawMarker(false);\n errorRenderer1.setDrawBubbles(true);\n errorRenderer1.setAssumeSortedData(false); // !! important since DS is likely unsorted\n chart1.getRenderers().setAll(errorRenderer1);\n errorRenderer1.getDatasets().addAll(bubbleDataSet1a, bubbleDataSet1b);\n\n primaryStage.setTitle(this.getClass().getSimpleName());\n primaryStage.setScene(new Scene(chart1, 800, 600));\n primaryStage.setOnCloseRequest(evt -> Platform.exit());\n primaryStage.show();\n\n // alternative solution using Marker and DataSet style\n Stage secondaryStage = new Stage();\n\n Chart chart2 = getDefaultChart(\"Scatter-Chart via addDataStyle(<index>, <String>) interface\");\n final ErrorDataSetRenderer errorRenderer2 = new ErrorDataSetRenderer();\n errorRenderer2.setMarkerSize(5);\n errorRenderer2.setPolyLineStyle(LineStyle.NONE);\n errorRenderer2.setErrorType(ErrorStyle.NONE);\n errorRenderer2.setDrawMarker(true);\n errorRenderer2.setAssumeSortedData(false); // !! important since DS is likely unsorted\n // set default marker either via\n bubbleDataSet2a.setStyle(\"markerType=circle;\");\n bubbleDataSet2b.setStyle(\"markerType=circle;\");\n // or via global default, this also allows to set custom marker implementing the 'Marker' interface\n errorRenderer2.setMarker(DefaultMarker.DIAMOND);\n\n errorRenderer2.setDrawBubbles(false);\n chart2.getRenderers().setAll(errorRenderer2);\n errorRenderer2.getDatasets().addAll(bubbleDataSet2a, bubbleDataSet2b);\n\n secondaryStage.setTitle(this.getClass().getSimpleName());\n secondaryStage.setScene(new Scene(chart2, 800, 600));\n secondaryStage.setOnCloseRequest(evt -> System.exit(0)); // NOPMD by rstein on 05/08/2019\n secondaryStage.show();\n }",
"private void plotDato() {\n List<Entry> entriesMedidas = new ArrayList<Entry>();\n entriesMedidas.add(new Entry((float) dato.getYears(), (float) dato.getMeasures()[mag]));\n LineDataSet lineaMedidas = new LineDataSet(entriesMedidas, \"Medida\");\n lineaMedidas.setAxisDependency(YAxis.AxisDependency.LEFT);\n lineaMedidas.setColor(ColorTemplate.rgb(\"0A0A0A\"));\n lineaMedidas.setCircleColor(ColorTemplate.rgb(\"0A0A0A\"));\n todasMedidas.add(lineaMedidas);\n }",
"void getProfilesInTimeWindow(Future<List<AggregatedProfileNamingStrategy>> profiles, String baseDir, String appId, String clusterId, String proc, ZonedDateTime startTime, int durationInSeconds);",
"public static double[] getLastVisiblePointData( List<ProfilePoint> profile ) {\n if (profile.size() < 2) {\n throw new IllegalArgumentException(\"A profile needs to have at least 2 points.\");\n }\n ProfilePoint first = profile.get(0);\n double baseElev = first.getElevation();\n Coordinate baseCoord = new Coordinate(0, 0);\n\n double minAzimuthAngle = Double.POSITIVE_INFINITY;\n double maxAzimuthAngle = Double.NEGATIVE_INFINITY;\n ProfilePoint minAzimuthPoint = null;\n ProfilePoint maxAzimuthPoint = null;\n for( int i = 1; i < profile.size(); i++ ) {\n ProfilePoint currentPoint = profile.get(i);\n double currentElev = currentPoint.getElevation();\n if (JGTConstants.isNovalue(currentElev)) {\n continue;\n }\n currentElev = currentElev - baseElev;\n double currentProg = currentPoint.getProgressive();\n Coordinate currentCoord = new Coordinate(currentProg, currentElev);\n\n double azimuth = GeometryUtilities.azimuth(baseCoord, currentCoord);\n if (azimuth <= minAzimuthAngle) {\n minAzimuthAngle = azimuth;\n minAzimuthPoint = currentPoint;\n }\n if (azimuth >= maxAzimuthAngle) {\n maxAzimuthAngle = azimuth;\n maxAzimuthPoint = currentPoint;\n }\n }\n\n if (minAzimuthPoint == null || maxAzimuthPoint == null) {\n return null;\n }\n\n return new double[]{//\n /* */minAzimuthPoint.elevation, //\n minAzimuthPoint.position.x, //\n minAzimuthPoint.position.y, //\n minAzimuthPoint.progressive, //\n minAzimuthAngle, //\n maxAzimuthPoint.elevation, //\n maxAzimuthPoint.position.x, //\n maxAzimuthPoint.position.y, //\n maxAzimuthPoint.progressive, //\n maxAzimuthAngle, //\n };\n\n }",
"private void initChart() {\r\n /*mCurrentSeries = new XYSeries(\"Sample Data\");\r\n mDataset.addSeries(mCurrentSeries);\r\n mCurrentRenderer = new XYSeriesRenderer();\r\n mRenderer.addSeriesRenderer(mCurrentRenderer);*/\r\n \t\r\n \tList<Integer> MyListValue = new ArrayList<Integer>();\r\n\t\t/*for (int i = 0; i < SpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(SpeakingTimeList.get(i));\r\n\t\t}*/\r\n\t\tfor (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(participantAndSpeakingTimeList.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t\t/*MyList.add(25);\r\n\t\tMyList.add(10);\r\n\t\tMyList.add(15);\r\n\t\tMyList.add(20);*/\r\n\t\t\t\t\r\n\t\tint[] y = new int[MyListValue.size()];\r\n\t\tfor (int i = 0; i < MyListValue.size(); i++) \r\n\t\t\ty[i] = MyListValue.get(i);\r\n\t\t\r\n\t\t//int y[] = {25,10,15,20};\r\n\t \r\n CategorySeries series = new CategorySeries(\"Speaking time in secondes\");\r\n for(int i=0; i < y.length; i++){\r\n series.add(\"Bar\"+(i+1),y[i]);\r\n }\r\n \r\n dataSet = new XYMultipleSeriesDataset(); // collection of series under one object.,there could any\r\n dataSet.addSeries(series.toXYSeries()); // number of series\r\n \r\n //customization of the chart\r\n \r\n XYSeriesRenderer renderer = new XYSeriesRenderer(); // one renderer for one series\r\n renderer.setColor(Color.parseColor(\"#0099FF\"));\r\n renderer.setDisplayChartValues(true);\r\n renderer.setChartValuesSpacing((float) 5.5d);\r\n renderer.setLineWidth((float) 10.5d);\r\n \r\n \r\n mRenderer = new XYMultipleSeriesRenderer(); // collection multiple values for one renderer or series\r\n mRenderer.addSeriesRenderer(renderer);\r\n mRenderer.setChartTitle(\"Speaking time per participant\");\r\n// mRenderer.setXTitle(\"xValues\");\r\n mRenderer.setYTitle(\"Time in secondes\");\r\n mRenderer.setZoomButtonsVisible(true); mRenderer.setShowLegend(true);\r\n mRenderer.setShowGridX(true); // this will show the grid in graph\r\n mRenderer.setShowGridY(true); \r\n// mRenderer.setAntialiasing(true);\r\n mRenderer.setBarSpacing(.5); // adding spacing between the line or stacks\r\n mRenderer.setApplyBackgroundColor(true);\r\n mRenderer.setBackgroundColor(Color.BLACK);\r\n mRenderer.setXAxisMin(0);\r\n mRenderer.setYAxisMin(0);\r\n //mRenderer.setXAxisMax(5);\r\n /*mRenderer.setXAxisMax(ParticipantsList.size()+1);*/\r\n mRenderer.setXAxisMax(participantAndSpeakingTimeList.size()+1);\r\n //mRenderer.setYAxisMax(100);\r\n mRenderer.setYAxisMax(Math.round(getMaxValue()/10)*10+10);\r\n// \r\n \r\n mRenderer.setXLabels(0);\r\n \r\n mRenderer.setXLabelsAngle(90);\r\n mRenderer.setXLabelsAlign(Align.LEFT);\r\n \r\n /*for (int i = 0; i < ParticipantsList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, ParticipantsList.get(i));\r\n\t\t}*/\r\n for (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, participantAndSpeakingTimeList.get(i).getName());\r\n\t\t}\r\n \r\n /*mRenderer.addXTextLabel(1,\"Income\");\r\n mRenderer.addXTextLabel(2,\"Saving\");\r\n mRenderer.addXTextLabel(3,\"Expenditure\");\r\n mRenderer.addXTextLabel(4,\"NetIncome\");*/\r\n \r\n mRenderer.setPanEnabled(true, true); // will fix the chart position\r\n //Intent intent = ChartFactory.getBarChartIntent(context, dataSet, mRenderer,Type.DEFAULT);\r\n \r\n //return intent;\r\n\r\n\t\r\n\t}",
"@Override\n public void execute()\n {\n measurementPoint = new MeasurementPoint(position);\n // Add marker to map and get the position of the marker on the map\n markerPositionOnMap = mapCanvas.addMarker(position, layer.getLayerName(), \"\", layer.getColor());\n // Add marker position to measurementPoint\n measurementPoint.setMarkerPositionOnMap(markerPositionOnMap);\n // Add measurementPoint to layerManager\n layer.addMeasurementPoint(measurementPoint);\n }",
"interface WithVirtualMachineProfile {\n /**\n * Specifies the virtualMachineProfile property: The profile used for creating lab virtual machines..\n *\n * @param virtualMachineProfile The profile used for creating lab virtual machines.\n * @return the next definition stage.\n */\n WithCreate withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile);\n }",
"public static NameServerProfile fromLine(String line) {\r\n\t\tString[] split = line.split(\";\");\r\n\t\tif (split.length != 3)\r\n\t\t\treturn null;\r\n\t\tString profileName = split[0];\r\n\t\tString hostname = split[1];\r\n\t\tint port;\r\n\t\ttry {\r\n\t\t\tport = Integer.parseInt(split[2]);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn new NameServerProfile(profileName, hostname, port);\r\n\t}",
"public ArrayList<Trial> createTrials(){\n Profile profile1 = new Profile(\"id1\");\n Profile profile2 = new Profile(\"id2\");\n Profile profile3 = new Profile(\"id3\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=0; i<15; i++){\n if (i<4){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile1));\n } else if (i<10){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile2));\n } else {\n trials.add(new TrialCount(\"\"+i, uni_loc, profile3));\n }\n }\n\n return trials;\n }",
"public PlotPanel2D(List<List<Point2D>> plotData, int pointSize)\r\n {\r\n _plotData = plotData;\r\n _plotType = Arrays.asList(new Integer[_plotData.size()]);\r\n Collections.fill(_plotType, PLOT_TYPE_LINE);\r\n _pointSize = pointSize;\r\n }",
"public static TransformDesign grabLine(DrawingPad drawingPad, FPointType fptNewPoint, java.awt.geom.Rectangle2D.Float r, boolean currLayerOnly) {\n throw new UnsupportedOperationException(\"TODO\");\n// DrawingDesign dSelect = drawingPad.getDesign().grabLine(fptNewPoint, r, currLayerOnly);\n//\n// // Create new DesignTransform.\n// if (dSelect == null)\n// return null;\n// return new DesignTransform(dSelect);\n }",
"public void setDatasets(VerifiedSNP snp, String phenotype) {\r\n int overallMaxN = 0;\r\n double overallMaxSEM = 0;\r\n double overallMinSEM = -1;\r\n double overallMaxPercentile = 0;\r\n double overallMinPercentile = -1;\r\n double overallMaxMedian = 0;\r\n double overallMinMedian = -1;\r\n\r\n JsonObject snpDataObject = snp.getDataBaseEntry().getDataObject();\r\n \r\n //System.out.println(\"snpDataObject: \" + snpDataObject.toJson());\r\n \r\n Map <String, JsonObject> dataObjects = new HashMap();\r\n \r\n for (String sex : new String[] {\"female\", \"male\"}) {\r\n dataObject = Json.createObject();\r\n dataObjects.put(sex, dataObject);\r\n \r\n dataObject.put(\"sex\", sex);\r\n dataObject.put(\"SNP ID\", snp.getDataBaseEntry().getAnnotation().get(\"Id\"));\r\n dataObject.put(\"phenotype\", phenotype);\r\n \r\n for (String genotype : new String[] {\"AA\", \"AB\", \"BB\"}) { \r\n //System.out.println(\"phenotype: \" + phenotype);\r\n //System.out.println(\"phenotype: \" + phenotype + \", object: \" + snpDataObject.getObject(phenotype).getObject(sex));\r\n JsonObject genotypeObject = snpDataObject.getObject(phenotype).getObject(sex).getObject(genotype);\r\n //System.out.println(\"genotypeObject: \" + genotypeObject.toJson());\r\n if (snpDataObject.getObject(phenotype).getBoolean(\"longitudinal\")) {\r\n List <String> nData = converter.jsonArrayToList(genotypeObject.get(\"N\"));\r\n String nMin = converter.minInteger(nData);\r\n String nMax = converter.maxInteger(nData);\r\n \r\n if (genotypeObject.hasKey(\"median\")) {\r\n List <String> medianData = converter.jsonArrayToList(genotypeObject.get(\"median\"));\r\n double medianMax = Double.parseDouble(converter.maxDouble(medianData)); \r\n if (medianMax > overallMaxMedian) {\r\n overallMaxMedian = medianMax;\r\n }\r\n double medianMin = Double.parseDouble(converter.minDouble(medianData));\r\n if (medianMin < overallMinMedian || overallMinMedian < 0) {\r\n overallMinMedian = medianMin;\r\n } \r\n }\r\n \r\n if (genotypeObject.hasKey(\"upper SEM\")) {\r\n List <String> upperSEMData = converter.jsonArrayToList(genotypeObject.get(\"upper SEM\"));\r\n double semMax = Double.parseDouble(converter.maxDouble(upperSEMData));\r\n if (semMax > overallMaxSEM) {\r\n overallMaxSEM = semMax;\r\n } \r\n }\r\n if (genotypeObject.hasKey(\"lower SEM\")) {\r\n List <String> lowerSEMData = converter.jsonArrayToList(genotypeObject.get(\"lower SEM\"));\r\n double semMin = Double.parseDouble(converter.minDouble(lowerSEMData));\r\n if (semMin < overallMinSEM || overallMinSEM < 0) {\r\n overallMinSEM = semMin;\r\n }\r\n }\r\n if (genotypeObject.hasKey(\"97.5%\")) {\r\n List <String> upperPercentileData = converter.jsonArrayToList(genotypeObject.get(\"97.5%\"));\r\n double percentileMax = Double.parseDouble(converter.maxDouble(upperPercentileData));\r\n if (percentileMax > overallMaxPercentile) {\r\n overallMaxPercentile = percentileMax;\r\n }\r\n }\r\n if (genotypeObject.hasKey(\"2.5%\")) {\r\n List <String> lowerPercentileData = converter.jsonArrayToList(genotypeObject.get(\"2.5%\"));\r\n double percentileMin = Double.parseDouble(converter.minDouble(lowerPercentileData));\r\n if (percentileMin < overallMinPercentile || overallMinPercentile < 0) {\r\n overallMinPercentile = percentileMin;\r\n }\r\n }\r\n\r\n\r\n String info = \"\";\r\n\r\n if (!nMax.equals(\"<5\")) {\r\n int currMax = Integer.parseInt(nMax);\r\n if (currMax > overallMaxN) {\r\n overallMaxN = currMax; \r\n } \r\n } \r\n String separator = \"\";\r\n if (nMin.equals(\"0\") && nMax.equals(\"0\")) {\r\n info = \"(no individuals)\";\r\n separator = \" \";\r\n }\r\n else if (nMin.equals(\"<5\") && nMax.equals(\"<5\")) {\r\n info = \"(less than 5 individuals)\";\r\n separator = \" \";\r\n }\r\n else {\r\n info = \"n ∈ [\" + nMin + \", \" + nMax + \"]\";\r\n separator = \", \";\r\n }\r\n jsonHelper.put(genotypeObject, \"labels\", Arrays.asList(new String[] {genotype + separator + info}));\r\n }\r\n dataObject.put(genotype, genotypeObject); \r\n \r\n }\r\n \r\n JsonObject numberObject = Json.createObject();\r\n for (String genotype : new String[] {\"AA\", \"AB\", \"BB\"}) {\r\n numberObject.put(genotype, dataObject.getObject(genotype).getArray(\"N\"));\r\n }\r\n //numberPlot.sendData(numberObject);\r\n }\r\n \r\n // when SEM or percentile data is missing, medians might provide the extreme values\r\n if (overallMinSEM > overallMinMedian) {\r\n overallMinSEM = overallMinMedian;\r\n }\r\n if (overallMinPercentile > overallMinMedian) {\r\n overallMinPercentile = overallMinMedian;\r\n }\r\n if (overallMaxSEM < overallMaxMedian) {\r\n overallMaxSEM = overallMaxMedian;\r\n }\r\n if (overallMaxPercentile < overallMaxMedian) {\r\n overallMaxPercentile = overallMaxMedian;\r\n }\r\n \r\n //System.out.println(\"dataObjects: \" + dataObjects);\r\n \r\n // enter extreme values and send\r\n for (String sex : new String[] {\"female\", \"male\"}) {\r\n dataObjects.get(sex).put(\"SEM min\", overallMinSEM);\r\n dataObjects.get(sex).put(\"SEM max\", overallMaxSEM);\r\n dataObjects.get(sex).put(\"percentile max\", overallMaxPercentile);\r\n dataObjects.get(sex).put(\"percentile min\", overallMinPercentile);\r\n dataObjects.get(sex).put(\"n max\", overallMaxN);\r\n }\r\n femaleChart.sendData(dataObjects.get(\"female\"));\r\n maleChart.sendData(dataObjects.get(\"male\"));\r\n plotDataWindow.setTab(\"1\", dataObjects.get(\"female\").toJson(), \"female\");\r\n plotDataWindow.setTab(\"2\", dataObjects.get(\"male\").toJson(), \"male\"); \r\n }",
"private PieData generateDataPie() {\n\n ArrayList<PieEntry> entries = new ArrayList<>();\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n TransactionBeans transactionBeans = transactionDB.getTransactionRecordsYear(month1,year);\n if(transactionBeans!=null) {\n float income = 0;\n float expense = 0;\n try{\n income = (float) (Double.parseDouble(transactionBeans.getIncome()));\n }catch(Exception e){\n income = 0;\n }\n try{\n expense = (float) (Double.parseDouble(transactionBeans.getExpense()));\n }catch(Exception e){\n expense = 0;\n }\n entries.add(new PieEntry(income, \"Income \"));\n entries.add(new PieEntry(expense, \"Expense \"));\n }\n PieDataSet d = new PieDataSet(entries, \"\");\n\n // space between slices\n d.setSliceSpace(2f);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n\n return new PieData(d);\n }",
"protected void createSelection() {\r\n\t\tsel = new GraphSelection();\r\n\t}",
"private void makeSubcutaneousFatVOIfromIntensityProfiles(int sliceNum) {\r\n \r\n int[] xLocsSubcutaneousVOI;\r\n int[] yLocsSubcutaneousVOI;\r\n int[] zVals;\r\n try {\r\n xLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n yLocsSubcutaneousVOI = new int [360 / angularResolution];\r\n zVals = new int [360 / angularResolution];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"makeSubcutaneousFatVOIfromIntensityProfiles(): Can NOT allocate xLocsSubcutaneousVOI\");\r\n return;\r\n }\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n // fixSubcutaneiousFat2DVOI requires the zVal to be 0 (does VOI extraction on a 2D slice image)\r\n zVals[idx] = 0;\r\n }\r\n \r\n int numSamples;\r\n \r\n for(int idx = 0; idx < 360 / angularResolution; idx++) {\r\n numSamples = intensityProfiles[idx].size();\r\n \r\n int sampleIdx = numSamples - 10; // skip over the skin\r\n while (sampleIdx >= 0 &&\r\n intensityProfiles[idx].get(sampleIdx) < muscleThresholdHU &&\r\n intensityProfiles[idx].get(sampleIdx) > airThresholdHU) {\r\n sampleIdx--;\r\n }\r\n if (sampleIdx <= 0) {\r\n // could not find a valid subcutaneous fat point in the intensity profile\r\n// MipavUtil.displayError(\"findAbdomenVOI(): Can NOT find the subcutaneous fat VOI point in the intensity profile for angle: \" +idx * angularResolution);\r\n if (idx > 0) {\r\n // assign this subcutaneous fat VOI point to the previous point if one exists\r\n xLocsSubcutaneousVOI[idx] = xLocsSubcutaneousVOI[idx-1];\r\n yLocsSubcutaneousVOI[idx] = yLocsSubcutaneousVOI[idx-1];\r\n } else {\r\n // assign this subcutaneous fat VOI point to the abdomen VOI point\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(numSamples - 1);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(numSamples - 1);\r\n }\r\n } else {\r\n // we found a point in the intensity profile that matches subcutaneous fat\r\n xLocsSubcutaneousVOI[idx] = xProfileLocs[idx].get(sampleIdx);\r\n yLocsSubcutaneousVOI[idx] = yProfileLocs[idx].get(sampleIdx);\r\n }\r\n \r\n } // end for (int idx = 0; ...)\r\n\r\n // make the VOI's and add the points to them\r\n subcutaneousVOI.importCurve(xLocsSubcutaneousVOI, yLocsSubcutaneousVOI, zVals);\r\n\r\n }",
"private static XYDataset createDataset(Double[] x, Double[] y) {\n\t\tlogger.info(\"Creating Dataset\");\n\t\tXYSeries s1 = new XYSeries(Double.valueOf(1));\n\t\tif (x.length != y.length) {\n\t\t\tlogger.error(\"Error in createDataset of ScatterDialog. \" +\n\t\t\t\t\t\"Could not create a dataset for the scatter plot -- missing data\");\n\t\t\treturn null;\n\t\t}\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\tif (y[i] != null) {\n\t\t\t\ts1.add(x[i], y[i]);\n\t\t\t}\n\t\t}\n\t\tXYSeriesCollection dataset = new XYSeriesCollection();\n\t\tdataset.addSeries(s1);\n\t\treturn dataset;\n\t}",
"void diagramSelection(DynamicTable table, String line, int product) {\n\n float longDif = longitudeMaxO - longitudeMinO;\n float latDif = latitudeMaxO - latitudeMinO;\n\n if (longDif > latDif){\n areaDifference = longDif;\n } else {\n areaDifference = latDif;\n }\n areaDifference = ec.ceiling(areaDifference,0);\n\n //................FLOOR VALUE - ........................\n float latitudeMin = ec.floor(latitudeMinO,0);\n float longitudeMin = ec.floor(longitudeMinO,0);\n\n //................CEILING ......................\n float latitudeMax = ec.ceiling(latitudeMaxO,0);\n float longitudeMax = ec.ceiling(longitudeMaxO,0);\n\n // ....... Initialize the value of the areadifference ARRAY[] .............\n for (int tf = 0; tf < sc.MAX1; tf++) {\n if ((tf+1) == areaDifference) {\n trueFalse[tf] = \"true\";\n } else {\n trueFalse[tf] = \"\";\n } // if (tf == areaDifference)\n } // for int tf\n\n //................CREATE SELECT BOXES.................\n Select tableSelect = new Select(sc.TABLESIZE +\n \"\\\" onChange=\\\"updateMenus(this); updatePTable(this); \" +\n \"writeIt(plongitudewest.value,platitudenorth.value,ptable.value)\");\n tableSelect.addOption(new Option(\" \" +\n \" \" +\n \" \" +\n \" \"));\n tableSelect.addOption(new Option(\"\"));\n tableSelect.addOption(new Option(\"\"));\n\n Select blockSelect = new Select(sc.BLOCKSIZE);\n blockSelect.addOption(new Option(\" \" +\n \" \" +\n \" \" +\n \" \"));\n blockSelect.addOption(new Option(\"\"));\n blockSelect.addOption(new Option(\"\"));\n if (dbg) System.out.println(\"blocksize <br>\");\n\n //................IF STATEMENT for DIAGRAM................\n\n if ( (product == INVEN) || (product == MEANS) ) { // inventories, means\n\n //................DIAGRAM:................\n String latNJavaScript = \"\\\" onChange=\\\"writeIt(\" + sc.LONGITUDEWEST +\n \".value,\" + sc.LATITUDENORTH + \".value,ptable.value);\\\"\\n\";\n String latSJavaScript = \"\\\" onFocus=\\\"this.blur()\";\n String lonWJavaScript = \"\\\" onChange=\\\"writeIt(\" + sc.LONGITUDEWEST +\n \".value,\" + sc.LATITUDENORTH + \".value,ptable.value);\\\"\\n\";\n String lonEJavaScript = \"\\\" onFocus=\\\"this.blur()\";\n\n table.addRow(ec.latlonRangeInput(\n \"Select Top right Corner\",\n 6,\n new Float (latitudeMin).toString(),\n new Float (latitudeMax).toString(),\n new Float (longitudeMin).toString(),\n new Float (longitudeMax).toString(),\n \"<b><font color=green>N</font></b>\", \"<b>S</b>\",\n \"<b><font color=green>W</font></b>\", \"<b>E</b>\",\n latNJavaScript, latSJavaScript,\n latNJavaScript, latSJavaScript,\n \"\"));\n //BREAKS\n table.addRow(ec.crSpanColsRow(\"<br>\",2));\n\n //TABLE SIZE input box\n //TextField txt2 = new TextField(sc.TABLESIZE, 10, 10, \"\");\n table.addRow(ec.cr2ColRow(\n \" \" +\n \" \" +\n chFSize(\"Table Size:<br><i>(degrees square)</i>\",\"-1\"),\n tableSelect.toHTML()));\n\n //BLOCK SIZE Size input box\n //txt2 = new TextField(sc.BLOCKSIZE, 10, 10, \"\");\n table.addRow(ec.cr2ColRow(\n \" \" +\n \" \" +\n chFSize(\"Block Size: <br><i>(minutes square)</i>\",\"-1\"),\n blockSelect.toHTML()));\n //BREAKS\n table.addRow(ec.crSpanColsRow(\"<br>\",2));\n\n if (dbg) System.out.println(\"blockSelect = \" + blockSelect + \"<br>\");\n\n } else { // ROSES, HISTO, SCATT, TIMES\n\n //................DIAGRAM:................\n table.addRow(ec.latlonRangeInput(\n \"Enter Range Selection\",\n 6,\n new Float (latitudeMin).toString(),\n new Float (latitudeMax).toString(),\n new Float (longitudeMin).toString(),\n new Float (longitudeMax).toString(),\n \"<b><font color=green>N</font></b>\",\n \"<b><font color=green>S</font></b>\",\n \"<b><font color=green>W</font></b>\",\n \"<b><font color=green>E</font></b>\",\n \"\", \"\", \"\", \"\", \"\"));\n table.addRow(ec.crSpanColsRow(\"<br>\",2));\n\n } // if ((product == 1) ...\n }",
"public XYSeries getXYSeries(String serie_name){ \n XYSeries serie = new XYSeries(serie_name); \n Point2D[] points_bezier = getPoint2DArray(); \n for(int j = 0 ; j < points_bezier.length; j++){ \n \n serie.add(points_bezier[j].getX(),points_bezier[j].getY()); \n } \n return serie; \n}",
"private void initMultiSkp(PaintPreviewTestService service) {\n\n FrameData childD = new FrameData(new Size(300, 500), new Rect[] {}, new String[] {},\n new Rect[] {}, new FrameData[] {});\n FrameData childB =\n new FrameData(new Size(900, 3000), new Rect[] {new Rect(50, 2300, 250, 2800)},\n new String[] {TEST_OUT_OF_VIEWPORT_LINK_URL},\n new Rect[] {new Rect(50, 2000, 150, 2100)}, new FrameData[] {childD});\n\n // Link is located at 200, 200.\n FrameData childC = new FrameData(new Size(400, 200),\n new Rect[] {new Rect(50, 50, 300, 200)}, new String[] {TEST_IN_VIEWPORT_LINK_URL},\n new Rect[] {}, new FrameData[] {});\n FrameData childA = new FrameData(new Size(500, 300), new Rect[] {}, new String[] {},\n new Rect[] {new Rect(50, 50, 450, 250)}, new FrameData[] {childC});\n\n FrameData rootFrame = new FrameData(new Size(TEST_PAGE_WIDTH, TEST_PAGE_HEIGHT),\n new Rect[] {mInViewportLinkRect, mOutOfViewportLinkRect},\n new String[] {TEST_IN_VIEWPORT_LINK_URL, TEST_OUT_OF_VIEWPORT_LINK_URL},\n new Rect[] {new Rect(100, 100, 600, 400), new Rect(50, 1000, 900, 2000)},\n new FrameData[] {childA, childB});\n Assert.assertTrue(service.createFramesForKey(TEST_DIRECTORY_KEY, TEST_URL, rootFrame));\n }",
"public void setVerticalProfileChart(VerticalProfileChart value) {\n chart = value;\n }",
"private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }",
"@Override\n protected void draw(GrainMatrix grainMatrix) {\n dataTable = DataTable.create();\n dataTable.addColumn(ColumnType.DATETIME, \"Time\");\n for (MetaDefinition metric : grainMatrix.getMetaDefinitions()) {\n dataTable.addColumn(ColumnType.NUMBER, \"Min\");\n addTooltipColumn(dataTable);\n dataTable.addColumn(ColumnType.NUMBER, \"Avg\");\n addTooltipColumn(dataTable);\n dataTable.addColumn(ColumnType.NUMBER, \"Max\");\n addTooltipColumn(dataTable);\n dataTable.addColumn(ColumnType.NUMBER, \"Count\");\n addTooltipColumn(dataTable);\n dataTable.addColumn(ColumnType.NUMBER, \"Sum\");\n addTooltipColumn(dataTable);\n }\n\n TreeMap<Long, HashMap<String, Datapoint>> metricMap = grainMatrix.getMetricMap();\n dataTable.addRows(metricMap.size());\n\n int i = 0;\n for (long datetime : metricMap.keySet()) {\n dataTable.setValue(i, 0, new Date(datetime));\n i++;\n }\n\n int col = 1; // First column is reserved for Time\n int row = 0;\n Datapoint point;\n String tooltip;\n for (long datetime : metricMap.keySet()) {\n HashMap<String, Datapoint> innerMap = metricMap.get(datetime);\n col = 1;\n for (String metricId : innerMap.keySet()) {\n point = metricMap.get(datetime).get(metricId);\n tooltip = new Date(point.getDatetime()).toString() + \"\\n\" + \"Min: \" + point.getMin() + \"\\n\"\n + \"Avg: \" + point.getAvg() + \"\\n\" + \"Max: \" + point.getMax() + \"\\n\" + \"Count: \"\n + point.getCount() + \"\\n\" + \"Sum: \" + point.getSum() + \"\\n\";\n dataTable.setValue(row, col, point.getMin());\n col++;\n dataTable.setValue(row, col, tooltip);\n col++;\n dataTable.setValue(row, col, point.getAvg());\n col++;\n dataTable.setValue(row, col, tooltip);\n col++;\n dataTable.setValue(row, col, point.getMax());\n col++;\n dataTable.setValue(row, col, tooltip);\n col++;\n dataTable.setValue(row, col, point.getCount());\n col++;\n dataTable.setValue(row, col, tooltip);\n col++;\n dataTable.setValue(row, col, point.getSum());\n col++;\n dataTable.setValue(row, col, tooltip);\n col++;\n }\n row++;\n }\n\n chart.draw(dataTable, options);\n }",
"@DataProvider\r\n\tpublic Object[][] validFPData() {\r\n\t\tList<String> firstPage = new ArrayList<String>();\r\n\r\n\t\tfirstPage.add(\"Line1\");\r\n\t\tfirstPage.add(\"Line2\");\r\n\t\tfirstPage.add(\"Line3\");\r\n\t\t\r\n\t\treturn new Object[][] { {firstPage}};\r\n\t}",
"public void initGraphData(String dataSeriesName1, String dataSeriesName2, String dataSeriesName3) {\n m_pDataSeriesName1 = dataSeriesName1;\n m_pDataSeriesName2 = dataSeriesName2;\n m_pDataSeriesName3 = dataSeriesName3;\n\n initDataSeries(m_pDataSeriesName1, m_pDataSeriesName2, m_pDataSeriesName3);\n\n m_pAnimation = new Timeline();\n m_pAnimation.getKeyFrames().add(new KeyFrame(Duration.millis(2000), new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent actionEvent) {\n try {\n m_pLock.lock();\n if (mTimeInSecond != null) {\n\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_2_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_2_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_2_SECONDS);\n\n if (mChartModeCounter % 10 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_10_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_10_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_10_SECONDS);\n }\n\n if (mChartModeCounter % 30 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_30_SECONDS);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_30_SECONDS);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_30_SECONDS);\n }\n\n if (mChartModeCounter % 300 == 0) {\n addToDataSeries1(mTimeInSecond, mPlotValue1, CHART_MODE_5_MINUTES);\n addToDataSeries2(mTimeInSecond, mPlotValue2, CHART_MODE_5_MINUTES);\n addToDataSeries3(mTimeInSecond, mPlotValue3, CHART_MODE_5_MINUTES);\n mChartModeCounter = 0;\n }\n\n mChartModeCounter += 2;\n\n // Set null after plotting\n mTimeInSecond = null;\n mPlotValue1 = null;\n mPlotValue2 = null;\n mPlotValue3 = null;\n\n // Update the X Axis if it has been initialized\n if (m_pXAxis != null) {\n int chartRange;\n ObservableList<XYChart.Data<Number, Number>> observableList1, observableList2, observableList3;\n switch (mChartMode) {\n case CHART_MODE_2_SECONDS:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n break;\n case CHART_MODE_10_SECONDS:\n observableList1 = m_pDataSerieObservableList1_10SEC;\n observableList2 = m_pDataSerieObservableList2_10SEC;\n observableList3 = m_pDataSerieObservableList3_10SEC;\n chartRange = X_AXIS_RANGE_10_SECOND_MODE;\n break;\n case CHART_MODE_30_SECONDS:\n observableList1 = m_pDataSerieObservableList1_30SEC;\n observableList2 = m_pDataSerieObservableList2_30SEC;\n observableList3 = m_pDataSerieObservableList3_30SEC;\n chartRange = X_AXIS_RANGE_30_SECOND_MODE;\n break;\n case CHART_MODE_5_MINUTES:\n observableList1 = m_pDataSerieObservableList1_5MIN;\n observableList2 = m_pDataSerieObservableList2_5MIN;\n observableList3 = m_pDataSerieObservableList3_5MIN;\n chartRange = X_AXIS_RANGE_5_MINUTE_MODE;\n break;\n default:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n break;\n }\n\n\n double maxValue = Math.max(Math.max(observableList1.get(observableList1.size() - 1).getXValue().doubleValue(),\n observableList2.get(observableList1.size() - 1).getXValue().doubleValue()),\n observableList3.get(observableList1.size() - 1).getXValue().doubleValue());\n double newLowerBound = maxValue - chartRange;\n double newUpperBound = maxValue;\n m_pXAxis.setLowerBound(newLowerBound);\n m_pXAxis.setUpperBound(newUpperBound);\n m_pXAxis.setDisable(false);\n }\n }\n } finally {\n m_pLock.unlock();\n }\n }\n }));\n m_pAnimation.setCycleCount(Timeline.INDEFINITE);\n m_pAnimation.play();\n }",
"private void createCustomMarker(Point2D screenPosition, Point2D framePosition) {\n Point newPoint = activeTrajectory.copyLastPoint();\n newPoint.setX((int) Math.round(framePosition.getX()));\n newPoint.setY((int) Math.round(framePosition.getY()));\n\n // Temporarily add the point so that it will be displayed\n // while the errorDialog is visible\n activeTrajectory.set(getCurrentFrame(), newPoint);\n repaint();\n\n TrajectoryEditDialog dialog = new TrajectoryEditDialog(getScene().getWindow(), activeTrajectory, newPoint);\n dialog.setX(screenPosition.getX());\n dialog.setY(screenPosition.getY());\n dialog.showAndWait();\n\n if (dialog.succeeded()) {\n activeTrajectory.setId(dialog.getTrajectoryId());\n activeTrajectory.setFromAction(dialog.getStartAction());\n activeTrajectory.setToAction(dialog.getToAction());\n newPoint.setActivity(dialog.getActivity());\n\n activeTrajectory.set(getCurrentFrame(), newPoint);\n // Save the trajectory\n save(activeTrajectory);\n\n if (dialog.finalizeRequested()) {\n // Make this trajectory no longer active\n // The list still has a strong reference to it.\n activeTrajectory = null;\n }\n }\n else {\n // Not succeeded; Remove the new point\n activeTrajectory.set(getCurrentFrame(), null);\n }\n }",
"private static List<Point> createLinearDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 100);\r\n add(data, 5, 200);\r\n add(data, 10, 300);\r\n add(data, 15, 400);\r\n return data;\r\n }",
"public Builder addProfiles(\n int index, org.beangle.security.session.protobuf.Model.Profile value) {\n if (profilesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureProfilesIsMutable();\n profiles_.add(index, value);\n onChanged();\n } else {\n profilesBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private void addOrReplaceDataSeries() {\n int chartMode;\n try {\n m_pLock.lock();\n chartMode = mChartMode;\n } finally {\n m_pLock.unlock();\n }\n\n if (m_pLineChart.getData().size() > 0) {\n m_pLineChart.getData().clear();\n }\n\n switch (chartMode) {\n case CHART_MODE_2_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_2SEC);\n m_pLineChart.getData().add(m_pDataSeries2_2SEC);\n m_pLineChart.getData().add(m_pDataSeries3_2SEC);\n break;\n case CHART_MODE_10_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_10SEC);\n m_pLineChart.getData().add(m_pDataSeries2_10SEC);\n m_pLineChart.getData().add(m_pDataSeries3_10SEC);\n break;\n case CHART_MODE_30_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_30SEC);\n m_pLineChart.getData().add(m_pDataSeries2_30SEC);\n m_pLineChart.getData().add(m_pDataSeries3_30SEC);\n break;\n case CHART_MODE_5_MINUTES:\n m_pLineChart.getData().add(m_pDataSeries1_5MIN);\n m_pLineChart.getData().add(m_pDataSeries2_5MIN);\n m_pLineChart.getData().add(m_pDataSeries3_5MIN);\n break;\n default:\n break;\n }\n\n m_pXAxis.setDisable(true);\n int chartRange;\n int tickUnit;\n ObservableList<XYChart.Data<Number, Number>> observableList1, observableList2, observableList3;\n switch (mChartMode) {\n case CHART_MODE_2_SECONDS:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n tickUnit = X_AXIS_TICK_2_SECOND_MODE;\n break;\n case CHART_MODE_10_SECONDS:\n observableList1 = m_pDataSerieObservableList1_10SEC;\n observableList2 = m_pDataSerieObservableList2_10SEC;\n observableList3 = m_pDataSerieObservableList3_10SEC;\n chartRange = X_AXIS_RANGE_10_SECOND_MODE;\n tickUnit = X_AXIS_TICK_10_SECOND_MODE;\n break;\n case CHART_MODE_30_SECONDS:\n observableList1 = m_pDataSerieObservableList1_30SEC;\n observableList2 = m_pDataSerieObservableList2_30SEC;\n observableList3 = m_pDataSerieObservableList3_30SEC;\n chartRange = X_AXIS_RANGE_30_SECOND_MODE;\n tickUnit = X_AXIS_TICK_30_SECOND_MODE;\n break;\n case CHART_MODE_5_MINUTES:\n observableList1 = m_pDataSerieObservableList1_5MIN;\n observableList2 = m_pDataSerieObservableList2_5MIN;\n observableList3 = m_pDataSerieObservableList3_5MIN;\n chartRange = X_AXIS_RANGE_5_MINUTE_MODE;\n tickUnit = X_AXIS_TICK_5_MINUTE_MODE;\n break;\n default:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n tickUnit = X_AXIS_TICK_2_SECOND_MODE;\n break;\n }\n\n if (observableList1.isEmpty() == false && observableList2.isEmpty() == false && observableList3.isEmpty() == false) {\n double maxValue = Math.max(Math.max(observableList1.get(observableList1.size() - 1).getXValue().doubleValue(),\n observableList2.get(observableList1.size() - 1).getXValue().doubleValue()),\n observableList3.get(observableList1.size() - 1).getXValue().doubleValue());\n double newLowerBound = maxValue - chartRange;\n double newUpperBound = maxValue;\n m_pXAxis.setLowerBound(newLowerBound);\n m_pXAxis.setUpperBound(newUpperBound);\n m_pXAxis.setTickUnit(tickUnit);\n m_pXAxis.setDisable(false);\n }\n \n // Update if there is some data series which is not to be plotted\n boolean toPlotDataSeries1 = mToPlotDataSeries1;\n boolean toPlotDataSeries2 = mToPlotDataSeries2;\n boolean toPlotDataSeries3 = mToPlotDataSeries3;\n mToPlotDataSeries1 = true;\n mToPlotDataSeries2 = true;\n mToPlotDataSeries3 = true; \n switchDataSeriesStatus(1, toPlotDataSeries1);\n switchDataSeriesStatus(2, toPlotDataSeries2);\n switchDataSeriesStatus(3, toPlotDataSeries3);\n \n\n }",
"@Override\n public void run() {\n XYChart.Data<Number, Number> data = new XYChart.Data<>(-x, y);\n data.setNode(new Circle(5, javafx.scene.paint.Color.GREY));\n series.getData().add(data);\n lineChart.getData().add(series);\n }",
"public void setData(double[] points)\r\n/* 39: */ {\r\n/* 40: 29 */ if ((this.data.length != 0) && (this.data.length != points.length)) {\r\n/* 41: 30 */ System.err.println(\"setData in Spider got wrong number of data points\");\r\n/* 42: */ }\r\n/* 43: 32 */ this.data = points;\r\n/* 44: 33 */ repaint();\r\n/* 45: */ }",
"public ConfigProfile buildProfileFour() {\n this.topicsRegex = \"^kafka-data[0-9]$\";\n this.token = \"mytoken\";\n this.uri = \"https://dummy:8088\";\n this.raw = true;\n this.ack = false;\n this.indexes = \"index-1\";\n this.sourcetypes = \"kafka-data\";\n this.sources = \"kafka-connect\";\n this.httpKeepAlive = true;\n this.validateCertificates = false;\n this.eventBatchTimeout = 1;\n this.ackPollInterval = 1;\n this.ackPollThreads = 1;\n this.maxHttpConnPerChannel = 1;\n this.totalHecChannels = 1;\n this.socketTimeout = 1;\n this.enrichements = \"hello=world\";\n this.enrichementMap = new HashMap<>();\n this.trackData = false;\n this.maxBatchSize = 1;\n this.numOfThreads = 1;\n this.headerSupport = true;\n this.headerIndex = \"splunk.header.index\";\n this.headerSource = \"splunk.header.source\";\n this.headerSourcetype = \"splunk.header.sourcetype\";\n this.headerHost = \"splunk.header.host\";\n\n return this;\n }",
"protected void getPickSpotULPanel(final ULPanel ulPanel ) {\n //final ULPanel ulPanel = new ULPanel();\n SearchParameters searchParameters = new SearchParameters();\n searchParameters.setLatitude(mywebapp.getCurrentLocation().getLatitude());\n searchParameters.setLongitude(mywebapp.getCurrentLocation().getLongitude());\n searchParameters.setLicensePlate(false);\n ApiServiceAsync myService = mywebapp.getApiServiceAsync();\n myService.search(searchParameters, new AsyncCallback() {\n public void onFailure(Throwable caught) {\n getMessagePanel().displayMessage(\"Error:\" + caught.getMessage());\n }\n\n public void onSuccess(Object result) {\n MobileResponse mobileResponse = (MobileResponse) result;\n ulPanel.add(addSpotNotHere());\n for (LocationResult locationResult : mobileResponse.getLocationResults()) {\n ListItem listItem = new ListItem();\n Anchor anchor = new Anchor(locationResult.getLabel());\n listItem.add(anchor);\n ulPanel.add(listItem);\n if (locationResult.getSolrDocument() == null) {\n pickLocationMap.put(anchor, locationResult);\n anchor.addClickHandler(createSpotFromLocationHandler);\n } else {\n Long spotId = locationResult.getSolrDocument().getFirstLong(\"spotid_l\");\n String targetHistoryToken = \"#\" + MyWebApp.LEAVE_SPOT_MARK + spotId;\n anchor.setHref(targetHistoryToken);\n }\n }\n ulPanel.add(addSpotNotHere());\n }\n });\n //return ulPanel;\n }",
"public void drawChart() {\n ArrayList<Entry> confuse = new ArrayList<>();\n ArrayList<Entry> attention = new ArrayList<>();\n ArrayList<Entry> engagement = new ArrayList<>();\n ArrayList<Entry> joy = new ArrayList<>();\n ArrayList<Entry> valence = new ArrayList<>();\n // point = \"Brow Furrow: \\n\";\n String dum = null, dum2 = null;\n for (int i = 0; i < size; i++) {\n //point += (\"\" + Emotion.getBrowFurrow(i).getL() + \" seconds reading of \" + Emotion.getBrowFurrow(i).getR() + \"\\n\");\n dum2 = Emotion.getBrowFurrow(i).getL().toString();\n dum = Emotion.getBrowFurrow(i).getR().toString();\n confuse.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getAttention(i).getL().toString();\n dum = Emotion.getAttention(i).getR().toString();\n attention.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getEngagement(i).getL().toString();\n dum = Emotion.getEngagement(i).getR().toString();\n engagement.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getJoy(i).getL().toString();\n dum = Emotion.getJoy(i).getR().toString();\n joy.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getValence(i).getL().toString();\n dum = Emotion.getValence(i).getR().toString();\n valence.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n }\n\n LineDataSet data1 = new LineDataSet(confuse,\"Confuse\");\n LineDataSet data2 = new LineDataSet(attention,\"Attention\");\n LineDataSet data3 = new LineDataSet(engagement,\"Engagement\");\n LineDataSet data4 = new LineDataSet(joy,\"Engagement\");\n LineDataSet data5 = new LineDataSet(valence,\"Valence\");\n data1.setColor(Color.BLUE);\n data1.setDrawCircles(false);\n data2.setColor(Color.YELLOW);\n data2.setDrawCircles(false);\n data3.setColor(Color.GRAY);\n data3.setDrawCircles(false);\n data4.setColor(Color.MAGENTA);\n data4.setDrawCircles(false);\n data5.setColor(Color.GREEN);\n data5.setDrawCircles(false);\n\n\n dataSets.add(data1);\n dataSets.add(data2);\n dataSets.add(data3);\n dataSets.add(data4);\n dataSets.add(data5);\n }",
"public int[] addToOverlay(String seriesKey, double x, double y) {\n //check to see if either seriesKey or map is null- this indicates that either no crosshair is set\n //or that this is not a line ROI graph\n if (seriesKey != null && map != null) {\n Pair tuple = map.get(seriesKey);\n MimsPlus finalImage = (MimsPlus) tuple.First;\n Roi roi = (Roi) tuple.Second;\n pointX = -1;\n pointY = -1;\n //check that this a line ROI graph\n if (roi.isLine()) {\n if (roi.getType() == Roi.LINE) {\n Line line = (Line) roi;\n //convert from series coordinate system to image coordinate system\n double ratio = x / line.getLength();\n Polygon points = line.getPoints();\n int[] xpoints = points.xpoints;\n int[] ypoints = points.ypoints;\n double xvec = (xpoints[0] - xpoints[1]) * ratio;\n double yvec = (ypoints[0] - ypoints[1]) * ratio;\n pointX = (int) (xpoints[0] - xvec);\n pointY = (int) (ypoints[0] - yvec);\n //add the roi to the overlay, and set it \n /*Overlay overlay = finalImage.getGraphOverlay();\n overlay.add(shaperoi);\n overlay.setFillColor(java.awt.Color.yellow);\n finalImage.setOverlay(overlay);*/\n } else if (roi.getType() == Roi.FREELINE || roi.getType() == Roi.POLYLINE) {\n Polygon points = roi.getPolygon();\n int[] xpoints = points.xpoints;\n int[] ypoints = points.ypoints;\n double distanceTraveled = 0;\n //loop through all segments and figure out which one the point lies on\n for (int i = 0; i < xpoints.length - 1; i++) {\n //calculate length of current segment\n double distance = Math.pow((Math.pow((double) (xpoints[i] - xpoints[i + 1]), 2) + Math.pow((double) (ypoints[i] - ypoints[i + 1]), 2)), 0.5);\n if (distanceTraveled + distance > x) {\n //figure out where the point lies on desired segment\n double needToTravel = x - distanceTraveled;\n double ratio = needToTravel / distance;\n double xvec = (xpoints[i] - xpoints[i + 1]) * ratio;\n double yvec = (ypoints[i] - ypoints[i + 1]) * ratio;\n pointX = (int) (xpoints[i] - xvec);\n pointY = (int) (ypoints[i] - yvec);\n i = xpoints.length;\n } else {\n //continue along line if not desired segment\n distanceTraveled += distance;\n }\n }\n }\n int[] coords = {pointX, pointY};\n Ellipse2D shape = new Ellipse2D.Float(pointX - 2, pointY - 2, 4, 4);\n Roi shaperoi = new ShapeRoi(shape);\n shaperoi.setName(roi.getName() + graphID);\n //remove any previous crosshair ROIs that originated from this graph\n //this is why we set and remove based on the unique global graphID\n MimsPlus[] openImages = ui.getAllOpenImages();\n //originally coordinate was only displayed on relveant image/roi pair\n //switch out the next two lines to restore this functionality\n //for (MimsPlus image : images) {\n for (MimsPlus image : openImages) {\n Overlay overlay = image.getGraphOverlay();\n //remove all coordinate displays from this graph from all images\n for (Roi roim : rois) {\n int indexm = overlay.getIndex(roim.getName() + graphID);\n if (indexm > -1) {\n overlay.remove(indexm);\n }\n }\n //add new coordinate\n overlay.add(shaperoi);\n overlay.setFillColor(java.awt.Color.yellow);\n image.setOverlay(overlay);\n }\n return coords;\n }\n }\n return null;\n }",
"public CategoryDataset createDataset() {\n\t\tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\tProjectManagement projectManagement = new ProjectManagement();\n\t\tif (this.chartName == \"Earned Value\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getEarnedValue(date), \"Earned Value\", date);\n\t\t\t}\n\t\t} else if (this.chartName == \"Schedule Variance\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getScheduleVariance(date), \"Schedule Variance\", date);\n\t\t\t}\n\n\t\t} else {// Cost Variance\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getCostVariance(date), \"Cost Variance\", date);\n\t\t\t}\n\t\t}\n\t\treturn dataset;\n\t}",
"@Select({ \"select c.pid as pid,c.filename as filename,c.start_time as start_time,c.end_time as end_time, \",\n\t\t\t\"p.arrestdate as arrestdate,c.length as len, p.arresttime as arresttime, c.uuid as uuid, c.conflict_resolved as resolved, c.comment as comment\",\n\t\t\t\"from csv_file c, patient p where p.version<='${version}' and p.version != 0 and c.start_version !=0 and c.start_version<='${version}' and c.end_version>'${version}' and c.pid = p.id and c.machine= '${machine}' and c.status <> 1 and p.arrestdate is not null\" })\n\tList<TimeLine> getPatientTimeLinesByVersion(@Param(\"version\") int version, @Param(\"machine\") String machine);",
"public DataPanel(CurvesPropertiesComponent curvesPropertiesComponent) {\n\n\t\tthis.componentsHandler=curvesPropertiesComponent.getComponentsHandler();\n\t\tbuild();\n\t}",
"public SeoProfileRecord() {\n super(SeoProfile.SEO_PROFILE);\n }"
] | [
"0.51040107",
"0.46288404",
"0.4627026",
"0.46131167",
"0.45520172",
"0.45270002",
"0.4519174",
"0.44745526",
"0.4440831",
"0.44186604",
"0.43864927",
"0.43707362",
"0.43409085",
"0.43379608",
"0.43274313",
"0.4323905",
"0.43173552",
"0.42983684",
"0.42938438",
"0.42937592",
"0.42755038",
"0.42675287",
"0.42540827",
"0.424505",
"0.42427164",
"0.4233189",
"0.42165306",
"0.42130515",
"0.42012113",
"0.4179332",
"0.4171082",
"0.41659552",
"0.41636655",
"0.41598552",
"0.4130745",
"0.41224518",
"0.4121174",
"0.41203174",
"0.41062632",
"0.4101093",
"0.4100439",
"0.40978613",
"0.408619",
"0.40826356",
"0.40780953",
"0.4076341",
"0.4076293",
"0.40679774",
"0.40673593",
"0.4064922",
"0.4064907",
"0.40554577",
"0.40549964",
"0.40492877",
"0.4048055",
"0.4045328",
"0.4045024",
"0.40439525",
"0.4038683",
"0.40361485",
"0.4034952",
"0.40260667",
"0.40258187",
"0.40171286",
"0.40167513",
"0.40110666",
"0.40044",
"0.40036106",
"0.39966196",
"0.39937362",
"0.39784902",
"0.39741313",
"0.39691612",
"0.39628547",
"0.39594316",
"0.3951178",
"0.39466062",
"0.39453277",
"0.39449736",
"0.3944397",
"0.3941204",
"0.39320323",
"0.3929672",
"0.39261112",
"0.39202976",
"0.39195278",
"0.3911384",
"0.3905992",
"0.39000803",
"0.38986346",
"0.38950625",
"0.38932973",
"0.3892895",
"0.3892406",
"0.38907623",
"0.38893503",
"0.38886225",
"0.38862312",
"0.3883858",
"0.38817164"
] | 0.40709144 | 47 |
Add the relevant file menu items into the list | protected void getSaveMenuItems(List items, boolean forMenuBar) {
super.getSaveMenuItems(items, forMenuBar);
items.add(GuiUtils.makeMenuItem("Save Chart Image...", getChart(),
"saveImage"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUpFileMenu() {\n add(fileMenu);\n fileMenu.add(new OpenAction(parent));\n fileMenu.add(new SaveAction(parent));\n fileMenu.add(new SaveAsAction(parent));\n fileMenu.addSeparator();\n fileMenu.add(new ShowWorldPrefsAction(parent.getWorldPanel()));\n fileMenu.add(new CloseAction(parent.getWorkspaceComponent()));\n }",
"private void populateRecentMenu(){\r\n\t\trecentMenu.removeAll();\r\n\t\tString[] files = BibtexPrefs.getOpenedFiles();\r\n\t\trecentMenuItems = new JMenuItem[files.length];\r\n\t\tfor(int i = 0; i < files.length; i++){\r\n\t\t\trecentMenuItems[i] = new JMenuItem(files[i]);\r\n\t\t\trecentMenuItems[i].addActionListener(this);\r\n\t\t\trecentMenu.add(recentMenuItems[i]);\r\n\t\t}\r\n\t}",
"private JMenu createFileMenu() {\n\t\tJMenu menu = new JMenu(\"File\"); \n\t\tmenu.add(createDetectiveNotes());\n\t\tmenu.add(createFileExitItem());\n\t\treturn menu;\n\t}",
"protected void setupRecentFiles() {\r\n\t\trecentMenu.removeAll();\r\n\t\tList keys = recentFiles.getFiles();\r\n\t\tif (keys.isEmpty()) {\r\n\t\t\tJMenuItem recentMenuItem = new JMenuItem(\"<<None>>\");\r\n\t\t\trecentMenu.add(recentMenuItem);\r\n\t\t} else\r\n\t\t\tfor (int i = 0; i < keys.size(); i++) {\r\n\t\t\t\tString key = (String) keys.get(i);\r\n\t\t\t\tJMenuItem recentMenuItem = new JMenuItem((i + 1) + \". \" + key);\r\n\t\t\t\trecentMenuItem.addActionListener(new OpenRecentListener());\r\n\t\t\t\trecentMenu.add(recentMenuItem);\r\n\t\t\t\tsuper.repaint();\r\n\t\t\t}\r\n\t}",
"private void adjustRecentFilesMenu() {\n _recent.removeAll();\n ArrayList list = getRecentFilesList();\n Iterator it = list.iterator();\n while ( it.hasNext() ) {\n _recent.add( ( JMenuItem ) it.next() );\n }\n }",
"protected void initializeFileMenu() {\n\t\tfinal JMenu fileMenu = new JMenu(\"File\");\n\t\tthis.add(fileMenu);\n\t\t// Status\n\t\tfinal JMenuItem sysStatusItem = new JMenuItem();\n\t\tsysStatusItem.setAction(this.commands.findById(CmdStatus.DEFAULT_ID));\n\t\tsysStatusItem.setAccelerator(KeyStroke.getKeyStroke('S',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(sysStatusItem);\n\t\t// Log\n\t\tfinal JMenuItem sysLogItem = new JMenuItem();\n\t\tsysLogItem.setAction(this.commands.findById(CmdLog.DEFAULT_ID));\n\t\tsysLogItem.setAccelerator(KeyStroke.getKeyStroke('L',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(sysLogItem);\n\t\t// Separator\n\t\tfileMenu.add(new JSeparator());\n\t\t// Exit\n\t\tfinal JMenuItem exitItem = new JMenuItem(\"Exit\");\n\t\texitItem.setAction(this.commands.findById(CmdExit.DEFAULT_ID));\n\t\texitItem.setAccelerator(KeyStroke.getKeyStroke('Q',\n\t\t\t\tInputEvent.CTRL_DOWN_MASK));\n\t\tfileMenu.add(exitItem);\n\t}",
"private MenuManager createFileMenu(\tIWorkbenchWindow window) {\n\t\tMenuManager menu = new MenuManager(Messages.getString(\"IU.Strings.39\"),IWorkbenchActionConstants.M_FILE); //$NON-NLS-1$\n\t\t\n\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START));\n\n\t\tIContributionItem[] items=menu.getItems();\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.NEW_EXT));\n\t\t/**/\n\t\t/**/\n\t\tmenu.add(getAction(ActionFactory.CLOSE.getId()));\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.CLOSE_EXT));\n\n\t\tmenu.add(new Separator());\n\n\t\tmenu.add(getAction(ActionFactory.SAVE.getId()));\n\t\tmenu.add(getAction(ActionFactory.SAVE_AS.getId()));\n\t\t//menu.add(getAction(ActionFactory.REVERT.getId()));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.PRINT.getId()));\n\t\t\n\t\tmenu.add(ContributionItemFactory.REOPEN_EDITORS.create(window));\n\n\t\tmenu.add(new Separator());\n\n\t\tmenu.add(getAction(ActionFactory.QUIT.getId()));\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));\n\n\t\t\n\t\t//remove convert line delimiter and open file doublon\n\t\tActionSetRegistry reg = WorkbenchPlugin.getDefault().getActionSetRegistry();\n\t\tIActionSetDescriptor[] actionSets = reg.getActionSets();\n\t\t//String actionSetId = \"org.eclipse.ui.edit.text.actionSet.navigation\"; //$NON-NLS-1$\n\t\tString actionSetId = \"org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo\"; //$NON-NLS-1$\n\t\tString actionSetId2 = \"org.eclipse.ui.actionSet.openFiles\"; //$NON-NLS-1$\n\t\t// Removing convert line delimiters menu.\n\n\t\tfor (int i = 0; i <actionSets.length; i++)\n\t\t{\n\t\t\tif ((!actionSets[i].getId().equals(actionSetId)) && (!actionSets[i].getId().equals(actionSetId2)))\n\t\t\t\tcontinue;\n\t\t\tIExtension ext = actionSets[i].getConfigurationElement()\n\t\t\t\t.getDeclaringExtension();\n\t\t\treg.removeExtension(ext, new Object[] { actionSets[i] });\n\t\t}\n\t\treturn menu;\n\t}",
"public Menu createFileMenu();",
"public JMenu createFileMenu(){\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmenu.add(createFileResetItem());\n\t\tmenu.add(createFilePracticeItem());\t\t\n\t\tmenu.add(createFileExitItem());\n\t\treturn menu;\n\t}",
"private void buildFileMenu(){\n //Create a Save menu item\n saveItem = new JMenuItem(\"Save\");\n saveItem.setMnemonic(KeyEvent.VK_S);\n saveItem.addActionListener(new SaveListener());\n \n //Create a Load menu item\n loadItem = new JMenuItem(\"Load\");\n loadItem.setMnemonic(KeyEvent.VK_L);\n loadItem.addActionListener(new LoadListener());\n\n //Create an Exit menu item\n exitItem = new JMenuItem(\"Exit\");\n exitItem.setMnemonic(KeyEvent.VK_X);\n exitItem.addActionListener(new ExitListener());\n \n //Create a JMenu object for the file menu\n fileMenu = new JMenu(\"File\");\n fileMenu.setMnemonic(KeyEvent.VK_F);\n \n //Add the items to the menu\n fileMenu.add(saveItem);\n fileMenu.add(loadItem);\n fileMenu.add(exitItem);\n }",
"private JMenu createFileMenu()\r\n {\r\n JMenu fileMenu = new JMenu(\"File\");\r\n fileMenu.add(new JMenuItem(openFileAction));\r\n fileMenu.add(new JMenuItem(openUriAction));\r\n fileMenu.add(new JSeparator());\r\n\r\n fileMenu.add(recentUrisMenu.getMenu());\r\n fileMenu.add(new JSeparator());\r\n\r\n fileMenu.add(new JMenuItem(importObjFileAction));\r\n fileMenu.add(new JSeparator());\r\n \r\n fileMenu.add(new JMenuItem(saveAsAction));\r\n fileMenu.add(new JMenuItem(saveAsBinaryAction));\r\n fileMenu.add(new JMenuItem(saveAsEmbeddedAction));\r\n fileMenu.add(new JSeparator());\r\n fileMenu.add(new JMenuItem(exitAction));\r\n return fileMenu;\r\n }",
"private void setUpMenuBar_FileMenu(){\r\n\t\t// Add the file menu.\r\n\t\tthis.fileMenu = new JMenu(STR_FILE);\r\n\t\tthis.openMenuItem = new JMenuItem(STR_OPEN);\r\n\t\tthis.openMenuItem2 = new JMenuItem(STR_OPEN2);\r\n\t\tthis.resetMenuItem = new JMenuItem(STR_RESET);\r\n\t\tthis.saveMenuItem = new JMenuItem(STR_SAVE);\r\n\t\tthis.saveAsMenuItem = new JMenuItem(STR_SAVEAS);\r\n\t\tthis.exitMenuItem = new JMenuItem(STR_EXIT);\r\n\t\t\r\n\t\t// Add the action listeners for the file menu.\r\n\t\tthis.openMenuItem.addActionListener(this);\r\n\t\tthis.openMenuItem2.addActionListener(this);\r\n\t\tthis.resetMenuItem.addActionListener(this);\r\n\t\tthis.saveMenuItem.addActionListener(this);\r\n\t\tthis.saveAsMenuItem.addActionListener(this);\r\n\t\tthis.exitMenuItem.addActionListener(this);\r\n\t\t\r\n\t\t// Add the menu items to the file menu.\r\n\t\tthis.fileMenu.add(openMenuItem);\r\n\t\tthis.fileMenu.add(openMenuItem2);\r\n\t\tthis.fileMenu.add(resetMenuItem);\r\n\t\tthis.fileMenu.addSeparator();\r\n\t\tthis.fileMenu.add(saveMenuItem);\r\n\t\tthis.fileMenu.add(saveAsMenuItem);\r\n\t\tthis.fileMenu.addSeparator();\r\n\t\tthis.fileMenu.add(exitMenuItem);\r\n\t\tthis.menuBar.add(fileMenu);\r\n\t}",
"private JMenu createFileMenu() {\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic('f');\r\n\t\tfileMenu.add(createSaveHistoryMenuItem());\r\n\t\tfileMenu.add(createLoadHistoryMenuItem());\r\n\r\n\t\treturn fileMenu;\r\n\t}",
"private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }",
"public static void setUpMenuItems( JMenu Menuu , JDataTree tree , \n IObserver IOBs ){\n \n int nSavedFiles = SharedData.getintProperty( \"NSavedFiles\",\"\"+NSavedFiles);\n if(nSavedFiles <=0)\n return;\n Preferences pref = null;\n try{\n pref = Preferences.userNodeForPackage( \n Class.forName( \"DataSetTools.retriever.Retriever\" ) );\n }catch( Exception s1 ){\n JOptionPane.showMessageDialog( null , \n \"No Preferences \" + s1 );\n return;\n }\n \n \n \n boolean shortMange = SharedData.getbooleanProperty(\"ShortSavedFileName\",\"false\");\n if( nSavedFiles > 0)\n Menuu.addSeparator();\n \n for( int i = 0 ; i < nSavedFiles ; i++ ){\n\n String filname = pref.get( \"File\" + i , NO_SUCH_FILE );\n \n if( (filname != NO_SUCH_FILE) &&( (new File(filname)).exists()) ){\n\n JMenuItem jmi = new JMenuItem( Mangle( filname,shortMange ) );\n Menuu.add( jmi );\n MyActionListener actList =new MyActionListener( tree , filname , \n IOBs ) ;\n jmi.addActionListener(actList );\n }\n }\n \n }",
"private void openItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openItemActionPerformed\n if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n String t = \"\";\n if (file.isFile()) {\n if ((file.getName().toLowerCase().endsWith(\".jpg\")\n || file.getName().toLowerCase().endsWith(\".png\"))) {\n files.add(file.getAbsolutePath());\n flist.add(file);\n } else if (file.getName().toLowerCase().endsWith(\".pdf\")) {\n parsePDF(file.getAbsolutePath());\n flist.add(file);\n }\n t += file.getAbsolutePath() + \"\\n\";\n } else {\n for (File f : file.listFiles()) {\n if (f.isFile() && (f.getName().toLowerCase().endsWith(\".jpg\")\n || f.getName().toLowerCase().endsWith(\".png\"))) {\n files.add(f.getAbsolutePath());\n flist.add(f);\n t += f.getAbsolutePath() + \"\\n\";\n } else if (f.isFile() && f.getName().toLowerCase().endsWith(\".pdf\")) {\n parsePDF(f.getAbsolutePath());\n flist.add(f);\n t += f.getAbsolutePath() + \"\\n\";\n }\n }\n }\n textArea.setText(t);\n } else {\n System.out.println(\"File access cancelled.\");\n }\n }",
"protected void createFileList()\n {\n // get a sorted array of files\n File f = new File(appManagementDir);\n String[] files = f.list(new FileFilter(AppSettings.getFilter()));\n \n // get the adapter for this file list\n ArrayAdapter<String> a = (ArrayAdapter<String>)fileList.getAdapter();\n a.clear();\n \n // clear the check boxes\n fileList.clearChoices();\n \n if (files != null && files.length > 0)\n {\n Arrays.sort(files, 0, files.length, new Comparator<Object>() {\n \n @Override\n public int compare(Object object1, Object object2)\n {\n int comp = 0;\n if (object1 instanceof String \n && object2 instanceof String)\n {\n String str1 = (String)object1;\n String str2 = (String)object2;\n \n comp = str1.compareToIgnoreCase(str2);\n }\n \n return comp;\n }});\n \n \n // add all the files\n for (String fileName : files)\n {\n a.add(fileName);\n }\n \n fileList.invalidate();\n }\n }",
"public void updateRecentPaneFilesMenu()\r\n {\r\n recentPaneFilesMenu.removeAll(); // clear previous menu items\r\n recentPaneFilesMenu.setFont(GlobalValues.uifont);\r\n clearRecentFilesJMenuItem = new JMenuItem(\"Clear the list of recent files\");\r\n clearRecentFilesJMenuItem.setFont(GlobalValues.uifont);\r\n clearRecentFilesJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n recentPaneFiles.clear();\r\n recentPaneFilesMenu.removeAll();\r\n }\r\n });\r\n\r\n recentPaneFilesMenu.add(clearRecentFilesJMenuItem);\r\n \r\n int numberRecentFiles = recentPaneFiles.size();\r\n for (int k=numberRecentFiles-1; k>=0; k--) { // reverse order for displaying the most recently loaded first\r\n final String recentFileName = (String)recentPaneFiles.elementAt(k); // take the recent filename\r\n recentFileMenuItem = new JMenuItem(recentFileName);\r\n recentFileMenuItem.setFont(GlobalValues.uifont);\r\n recentFileMenuItem.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n jShellLabEdit(recentFileName); // reload the recent file in editor\r\n \r\n // update the workingDir\r\n String pathOfLoadFileName = recentFileName.substring(0, recentFileName.lastIndexOf(File.separatorChar));\r\n GlobalValues.workingDir = pathOfLoadFileName;\r\n }\r\n });\r\n recentPaneFilesMenu.add(recentFileMenuItem); // add the menu item corresponding to the recent file\r\n } // for all the recently accessed files \r\n\r\n recentPaneFilesMenu.setToolTipText(\"Tracks \\\"Saved As\\\" Files\");\r\n mainJMenuBar.add(recentPaneFilesMenu); // finally add the recent files menu to the main menu bar\r\n \r\n }",
"private void helperDisplayProjectFiles ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString[] fileNameList = DataController.scenarioGetFileNames();\r\n\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentComboboxFileName().removeAllItems();\r\n\r\n\t\t\tfor (int i = 0; i < fileNameList.length; i++)\r\n\t\t\t{\r\n\t\t\t\tmainFormLink.getComponentPanelLeft().getComponentComboboxFileName().addItem(fileNameList[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.files, menu);\n\t\treturn true;\n\t}",
"private JMenu getFileMenu() {\n\t\tif (fileMenu == null) {\n\t\t\tfileMenu = new JMenu();\n\t\t\tfileMenu.setText(\"File\");\n\t\t\tfileMenu.add(getExitMenuItem());\n\t\t}\n\t\treturn fileMenu;\n\t}",
"private static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }",
"protected void addTagSpecificMenuItems(IMenuManager menu)\n \t{\n \t\t//all this mess is really just to get the offset and a handle to the\n \t\t//CFDocument object attached to the Document...\n \t\tIEditorPart iep = getSite().getPage().getActiveEditor();\n \t\tITextEditor editor = (ITextEditor)iep;\n \t\tIDocument doc = editor.getDocumentProvider().getDocument(editor.getEditorInput());\n \t\tICFDocument cfd = (ICFDocument)doc;\n \t\tISelection sel = editor.getSelectionProvider().getSelection();\n \t\t\n \t\t//ok got our tag (or null)\n \t\tint startpos = ((ITextSelection)sel).getOffset();\n \t\t\n \t\tCfmlTagItem cti = cfd.getTagAt(startpos,startpos);\n \t\t\n \t\t\n \t\tif(cti != null)\n \t\t \n \t\t{\n \t\t \n \n \t\t\tif(cti.matchingItem != null) {\n \t\t\t\tjumpAction.setDocPos(cti.matchingItem.getEndPosition());\n \t\t\t\tjumpAction.setActiveEditor(null, getSite().getPage().getActiveEditor());\n \t\t\t\tAction jumpNow = new Action(\"Jump to end tag\", \n \t\t\t\t\t\t\t\t\t\t\tCFPluginImages.getImageRegistry().getDescriptor(CFPluginImages.ICON_FORWARD)\n \t\t\t\t\t\t\t\t\t\t\t) { public void run() { jumpAction.run(null); } };\n \t\t\t\tmenu.add(jumpNow);\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tString n = cti.getName(); \n \t\t\tif(n.equalsIgnoreCase(\"include\") || n.equalsIgnoreCase(\"module\"))\n \t\t\t{\n \t\t\t\t//this is a bit hokey - there has to be a way to load the action\n \t\t\t\t//in the xml file then just call it here...\n \t\t\t\t//TODO\n \t\t\t\tgfa.setActiveEditor(null,getSite().getPage().getActiveEditor());\n \t\t\t\tAction ack = new Action(\n \t\t\t\t\t\"Open File\",\n \t\t\t\t\tCFPluginImages.getImageRegistry().getDescriptor(CFPluginImages.ICON_IMPORT)\n \t\t\t\t){\n \t\t\t\t\tpublic void run()\n \t\t\t\t\t{\n \t\t\t\t\t\tgfa.run(null);\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tmenu.add(ack);\n \t\t\t}\n \t\t}\n \t}",
"private JMenu getFileMenu() {\n if (fileMenu == null) {\n fileMenu = new JMenu();\n fileMenu.setText(\"File\");\n fileMenu.add(getExitMenuItem());\n }\n return fileMenu;\n }",
"private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}",
"public void updateMenuFile() {\n\t\tif (fileMenu != null) {\n\t\t\tfileMenu.update();\n\t\t}\n\t}",
"private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}",
"public void loadRecentPaneFiles() {\r\n // create streams\r\n \r\n boolean exists = (new File(fileWithFileListOfPaneRecentFiles)).exists();\r\nif (exists) {\r\n \r\n try {\r\n // open the file containing the stored list of recent files\r\n FileInputStream input = new FileInputStream(fileWithFileListOfPaneRecentFiles);\r\n \r\n //create reader stream\r\n BufferedReader recentsReader= new BufferedReader(new InputStreamReader(input));\r\n\r\n recentPaneFiles.clear(); // clear the Vector of recent files\r\n String currentLine; // refill it from disk\r\n while ((currentLine = recentsReader.readLine()) != null)\r\n if (recentPaneFiles.indexOf(currentLine) == -1) // file not already in list\r\n recentPaneFiles.add(currentLine);\r\n\r\n recentsReader.close();\r\n input.close();\r\n updateRecentPaneFilesMenu(); // update the recent files menu\r\n\r\n }\r\n catch(java.io.IOException except)\r\n {\r\n System.out.println(\"IO exception in readRecentsFiles. File: \"+fileWithFileListOfPaneRecentFiles+\" not found\");\r\n recentPaneFilesMenu.removeAll(); // clear previous menu items\r\n clearRecentFilesJMenuItem = new JMenuItem(\"Clear the list of recent files\");\r\n clearRecentFilesJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n recentPaneFiles.clear();\r\n recentPaneFilesMenu.removeAll();\r\n }\r\n });\r\n\r\n recentPaneFilesMenu.add(clearRecentFilesJMenuItem);\r\n mainJMenuBar.add(recentPaneFilesMenu); // finally add the recent files menu to the main menu bar\r\n \r\n }\r\n }\r\n }",
"public JMenu getFileMenu() {\n return fileMenu;\n }",
"void doShowFiles()\n\t{\n\t\ttry\n\t\t{\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tIterator itr = m_fileInfo.getAllFiles();\n\n\t\t\twhile(itr.hasNext())\n\t\t\t{\n\t\t\t\tSourceFile m = (SourceFile) ((Map.Entry)itr.next()).getValue();\n\n\t\t\t\tString name = m.getName();\n\t\t\t\tint id = m.getId();\n\t\t\t\tString path = m.getFullPath();\n\n\t\t\t\tsb.append(id);\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(path);\n\t\t\t\tsb.append(\", \"); //$NON-NLS-1$\n\t\t\t\tsb.append(name);\n\t\t\t\tsb.append(m_newline);\n\t\t\t}\n\t\t\tout( sb.toString() );\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noSourceFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t}",
"private void initMenuBar() {\r\n\t\t// file menu\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\r\n\t\tadd(fileMenu);\r\n\r\n\t\tJMenuItem fileNewMenuItem = new JMenuItem(new NewAction(parent, main));\r\n\t\tfileNewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileNewMenuItem);\r\n\t\tJMenuItem fileOpenMenuItem = new JMenuItem(new OpenAction(parent, main));\r\n\t\tfileOpenMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileOpenMenuItem);\r\n\r\n\t\tJMenuItem fileSaveMenuItem = new JMenuItem(new SaveAction(main));\r\n\t\tfileSaveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveMenuItem);\r\n\t\tJMenuItem fileSaveAsMenuItem = new JMenuItem(new SaveAsAction(main));\r\n\t\tfileSaveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveAsMenuItem);\r\n\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.addSeparator();\r\n\r\n\t\tJMenuItem exitMenuItem = new JMenuItem(new ExitAction(main));\r\n\t\texitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(exitMenuItem);\r\n\r\n\t\t// tools menu\r\n\t\tJMenu toolsMenu = new JMenu(\"Application\");\r\n\t\ttoolsMenu.setMnemonic(KeyEvent.VK_A);\r\n\t\tadd(toolsMenu);\r\n\r\n\t\tJMenuItem defineCategoryMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineCategoryAction());\r\n\t\tdefineCategoryMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_C, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineCategoryMenuItem);\r\n\t\tJMenuItem defineBehaviorNetworkMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineBehaviorNetworkAction());\r\n\t\tdefineBehaviorNetworkMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_B, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineBehaviorNetworkMenuItem);\r\n\t\tJMenuItem startSimulationMenuItem = new JMenuItem(\r\n\t\t\t\tnew StartSimulationAction(main));\r\n\t\tstartSimulationMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_E, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(startSimulationMenuItem);\r\n\r\n\t\t// help menu\r\n\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\r\n\t\tadd(helpMenu);\r\n\r\n\t\tJMenuItem helpMenuItem = new JMenuItem(new HelpAction(parent));\r\n\t\thelpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\thelpMenu.add(helpMenuItem);\r\n\r\n\t\t// JCheckBoxMenuItem clock = new JCheckBoxMenuItem(new\r\n\t\t// ScheduleSaveAction(parent));\r\n\t\t// helpMenu.add(clock);\r\n\t\thelpMenu.addSeparator();\r\n\t\tJMenuItem showMemItem = new JMenuItem(new ShowMemAction(parent));\r\n\t\thelpMenu.add(showMemItem);\r\n\r\n\t\tJMenuItem aboutMenuItem = new JMenuItem(new AboutAction(parent));\r\n\t\thelpMenu.add(aboutMenuItem);\r\n\t}",
"private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}",
"public JMenu getRecentFilesMenu() {\n JMenu menu = new JMenu( \"Recent Files\" );\n String recent = \"\";\n try {\n recent = Constants.PREFS.get( Constants.RECENT_LIST, \"\" );\n }\n catch ( Exception e ) {} // NOPMD\n ActionListener al =\n new ActionListener() {\n public void actionPerformed( ActionEvent ae ) {\n JMenuItem item = ( JMenuItem ) ae.getSource();\n String filename = item.getText();\n File file = new File( filename );\n openBuildFile( file );\n }\n };\n StringTokenizer st = new StringTokenizer( recent, File.pathSeparator );\n while ( st.hasMoreTokens() ) {\n JMenuItem item = new JMenuItem( st.nextToken() );\n item.addActionListener( al );\n menu.add( item );\n }\n return menu;\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_file_select, menu);\r\n return true;\r\n }",
"private JMenu getFileMenu() {\n\t\tif (fileMenu == null) {\n\t\t\tfileMenu = new JMenu();\n\t\t\tfileMenu.setText(\"Súbor\");\n\t\t\t//fileMenu.add(getSaveMenuItem());\n\t\t\tfileMenu.add(getExitMenuItem());\n\t\t\tfileMenu.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tSystem.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn fileMenu;\n\t}",
"private void initializeSideMenuList(String xmlFileName){\n \tMenuActions menu;\n \t\ttry {\n \t\t\tmenu = ParseUtils.parseMenuData(this, xmlFileName);\n \t\t\tList<MenuActionDataItem> listActions= menu.getList();\n \t \t\n \t \tListView lv = (ListView)findViewById(R.id.sideMenuList);\n \t \tlv.setAdapter(new NwListAdapter(this.activity, R.layout.list_item, listActions));\n \t\t\tlv.setTextFilterEnabled(true);\n \t\t} catch (InvalidFileException e) {\n \t\t\tLog.e(\"initializeSideMenuList\", e.getMessage());\n \t\t}\n }",
"private void addPressed() {\n\n\t\tJFileChooser fc = new JFileChooser();\n\t\tfc.setFileFilter(SwingFileFilterFactory.newMediaFileFilter());\n\t\tint returnVal = fc.showOpenDialog(Library.this);\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tString newFile = fc.getSelectedFile().getAbsolutePath();\n\t\t\t// Check that file is a video or audio file.\n\t\t\tInvalidCheck i = new InvalidCheck();\n\t\t\tboolean isValidMedia = i.invalidCheck(newFile);\n\n\t\t\tif (!isValidMedia) {\n\t\t\t\tJOptionPane.showMessageDialog(Library.this, \"You have specified an invalid file.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}else{\n\t\t\t\tselectedFile = fc.getSelectedFile();\n\t\t\t\tl.addElement(selectedFile.getName());\n\t\t\t\tpaths.put(selectedFile.getName(), selectedFile.getAbsolutePath());\n\t\t\t\tsizes.put(selectedFile.getName(),selectedFile.length());\n\t\t\t}\n\t\t}\n\t}",
"private void update() {\r\n \tthis.pathTextView.setText(this.currentPath);\r\n \tthis.fileListAdapter.clear();\r\n \tthis.fileListAdapter.add(\"[\"+getResources().getString(R.string.go_home)+\"]\");\r\n \tif (!this.currentPath.equals(\"/\"))\r\n \t\tthis.fileListAdapter.add(\"..\");\r\n \t\r\n \tFile files[] = new File(this.currentPath).listFiles(this.fileFilter);\r\n\r\n \tif (files != null) {\r\n\t \ttry {\r\n\t\t \tArrays.sort(files, new Comparator<File>() {\r\n\t\t \t\tpublic int compare(File f1, File f2) {\r\n\t\t \t\t\tif (f1 == null) throw new RuntimeException(\"f1 is null inside sort\");\r\n\t\t \t\t\tif (f2 == null) throw new RuntimeException(\"f2 is null inside sort\");\r\n\t\t \t\t\ttry {\r\n\t\t \t\t\t\tif (dirsFirst && f1.isDirectory() != f2.isDirectory()) {\r\n\t\t \t\t\t\t\tif (f1.isDirectory())\r\n\t\t \t\t\t\t\t\treturn -1;\r\n\t\t \t\t\t\t\telse\r\n\t\t \t\t\t\t\t\treturn 1;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\treturn f1.getName().toLowerCase().compareTo(f2.getName().toLowerCase());\r\n\t\t \t\t\t} catch (NullPointerException e) {\r\n\t\t \t\t\t\tthrow new RuntimeException(\"failed to compare \" + f1 + \" and \" + f2, e);\r\n\t\t \t\t\t}\r\n\t\t\t\t\t}\r\n\t\t \t});\r\n\t \t} catch (NullPointerException e) {\r\n\t \t\tthrow new RuntimeException(\"failed to sort file list \" + files + \" for path \" + this.currentPath, e);\r\n\t \t}\r\n\t \t\r\n\t \tfor(int i = 0; i < files.length; ++i) this.fileListAdapter.add(files[i].getName());\r\n \t}\r\n \t\r\n \tif (isHome(currentPath)) {\r\n \t\trecent = new Recent(this);\r\n \t\t\r\n \tfor (int i = 0; i < recent.size(); i++) {\r\n \t\tthis.fileListAdapter.insert(\"\"+(i+1)+\": \"+(new File(recent.get(i))).getName(), \r\n \t\t\t\tRECENT_START+i);\r\n \t}\r\n \t}\r\n \telse {\r\n \t\trecent = null;\r\n \t}\r\n \t\r\n \tthis.filesListView.setSelection(0);\r\n }",
"Menu getMenuFile();",
"private ListView setTopicMenu(String folderExtension) {\n ListView topicMenu = new ListView();\n ObservableList<String> topicList = FXCollections.observableArrayList();\n File folder = new File(folderExtension);\n for (File questionFile : folder.listFiles()) {\n if (!questionFile.isDirectory()) {\n String textfile = questionFile.getName();\n int end = textfile.lastIndexOf(\".\");\n String noExtension = textfile.substring(0, end);\n topicList.add(noExtension);\n }\n }\n topicMenu.setItems(topicList);\n setCellFormat(topicMenu);\n return topicMenu;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_open_file, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_file_operations, menu);\n return true;\n }",
"private JMenu getJMenuFile() {\r\n if (jMenuFile == null) {\r\n jMenuFile = new JMenu();\r\n jMenuFile.setMnemonic(KeyEvent.VK_F);\r\n jMenuFile.setText(\"File\");\r\n jMenuFile.add(getJMenuItemImport());\r\n jMenuFile.add(getJMenuItemExport());\r\n }\r\n return jMenuFile;\r\n }",
"@FXML\n void loadButtonClicked(ActionEvent event) throws FileNotFoundException\n {\n FileChooser file = new FileChooser();\n\n file.setTitle(\"Load file (.txt)\");\n\n file.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"Text Files\", \"*.txt\"));\n\n File selectedFile = file.showOpenDialog(listView.getScene().getWindow());\n\n // Create new file with all info on file, do this in a method\n loadFile(selectedFile);\n\n // Send all this info to the list in order to create new one\n for(int i=0; i<Item.getToDoList().size(); i++)\n {\n // Display items\n display();\n\n }\n }",
"protected abstract void addMenuOptions();",
"private void addMediaMenu(){\n\t\t\n\t}",
"@Override\r\n\tpublic void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {\r\n\t\tsuper.onCreateContextMenu(menu, v, menuInfo);\r\n\r\n\t\tAdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;\r\n\t\tFileItem fileItem = files.getItem(info.position);\r\n\r\n\t\tif (!fileItem.isDirectory()) {\r\n\t\t\tgetActivity().getMenuInflater().inflate(R.menu.chordsheet_context, menu);\r\n\t\t}\r\n\t}",
"private void updateListView() {\n fileList.getItems().setAll(files.readList());\n //System.out.println(System.currentTimeMillis() - start + \" мс\");\n }",
"private void initList() {\r\n\t\tlist = new JList<>();\r\n\t\tFile rootFile = new File(System.getProperty(\"user.dir\"));\r\n\t\tloadFilesInFolder(rootFile);\r\n\t\tlist.addListSelectionListener(new FileListSelectionListener());\r\n\t}",
"public void refreshMenu() {\n ObservableList list = FXCollections.observableArrayList();\n FileParser_Interface[] parsers = {new FileParser_DHCPnetworks(), new FileParser_RouterVlanNetwork(), new FileParser_SwitchConfigs(), new FileParser_VlanTagsOther()};\n list.addAll(Arrays.asList(parsers));\n this.setItems(list);\n //this.getSelectionModel().selectFirst(); // causes NullPointerExceptions when used, thou are warned\n this.setConverter(new ParserConverter());\n }",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"public void updateFileImportMenu(Menu importMenue) {\n\t\tMenuItem importDeviceLogItem;\n\n\t\tif (importMenue.getItem(importMenue.getItemCount() - 1).getText().equals(Messages.getString(gde.messages.MessageIds.GDE_MSGT0018))) {\t\t\t\n\t\t\tnew MenuItem(importMenue, SWT.SEPARATOR);\n\n\t\t\timportDeviceLogItem = new MenuItem(importMenue, SWT.PUSH);\n\t\t\timportDeviceLogItem.setText(Messages.getString(MessageIds.GDE_MSGT2550, GDE.MOD1));\n\t\t\timportDeviceLogItem.setAccelerator(SWT.MOD1 + Messages.getAcceleratorChar(MessageIds.GDE_MSGT2550));\n\t\t\timportDeviceLogItem.addListener(SWT.Selection, new Listener() {\n\t\t\t\tpublic void handleEvent(Event e) {\n\t\t\t\t\tlog.log(Level.FINEST, \"importDeviceLogItem action performed! \" + e); //$NON-NLS-1$\n\t\t\t\t\topen_closeCommPort();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"public FileMenu(ChatWindow parentWindow) {\r\n\r\n super(Messages.getI18NString(\"file\").getText());\r\n\r\n this.parentWindow = parentWindow;\r\n\r\n this.setForeground(new Color(\r\n ColorProperties.getColor(\"chatMenuForeground\")));\r\n\r\n this.add(saveMenuItem);\r\n this.add(printMenuItem);\r\n\r\n this.addSeparator();\r\n\r\n this.add(closeMenuItem);\r\n\r\n this.saveMenuItem.setName(\"save\");\r\n this.printMenuItem.setName(\"print\");\r\n this.closeMenuItem.setName(\"close\");\r\n\r\n this.saveMenuItem.addActionListener(this);\r\n this.printMenuItem.addActionListener(this);\r\n this.closeMenuItem.addActionListener(this);\r\n\r\n this.setMnemonic(Messages.getI18NString(\"file\").getMnemonic());\r\n this.saveMenuItem.setMnemonic(saveString.getMnemonic());\r\n this.printMenuItem.setMnemonic(printString.getMnemonic());\r\n this.closeMenuItem.setMnemonic(closeString.getMnemonic());\r\n \r\n this.saveMenuItem.setAccelerator(\r\n KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n KeyEvent.CTRL_MASK));\r\n \r\n this.printMenuItem.setAccelerator(\r\n KeyStroke.getKeyStroke(KeyEvent.VK_R,\r\n KeyEvent.CTRL_MASK));\r\n \r\n // Disable all menu items that do nothing.\r\n this.saveMenuItem.setEnabled(false);\r\n this.printMenuItem.setEnabled(false);\r\n }",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\tgetMenuInflater().inflate(R.menu.fileuploadsd, menu);\n\treturn true;\n}",
"public static void processOneFileSelecction()\n {\n int answer = JSoundsMainWindowViewController.jfcOneFile.showOpenDialog(JSoundsMainWindowViewController.jSoundsMainWindow);\n \n if (answer == JFileChooser.APPROVE_OPTION)\n {\n File actualDirectory = JSoundsMainWindowViewController.jfcOneFile.getCurrentDirectory();\n String directory = actualDirectory.getAbsolutePath() + \"/\" + JSoundsMainWindowViewController.jfcOneFile.getSelectedFile().getName();\n UtilFunctions.listOneFile(JSoundsMainWindowViewController.jfcOneFile.getSelectedFile());\n JSoundsMainWindowViewController.orderBy(true, false, false); \n }\n }",
"private JMenu getMnuFile() {\r\n\t\tif (mnuFile == null) {\r\n\t\t\tmnuFile = new JMenu();\r\n\t\t\tmnuFile.setText(\"File\");\r\n\t\t\tmnuFile.add(getMniOpen());\r\n\t\t\tmnuFile.add(getSepFile1());\r\n\t\t\tmnuFile.add(getMniExit());\r\n\t\t}\r\n\t\treturn mnuFile;\r\n\t}",
"private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}",
"public void fileChooser() {\n\t\tWindow stage = mediaView.getScene().getWindow();\n// configureFileChooser(fileChooser);\n\t\tfileChooser.setTitle(\"Open Resource File\");\n\t\tfileChooser.getExtensionFilters().addAll(new ExtensionFilter(\"Video Files\", \"*.mp4\", \"*.mpeg\"),\n\t\t\t\tnew ExtensionFilter(\"Audio Files\", \"*.mp3\"),\n\t\t\t\tnew ExtensionFilter(\"All Files\", \"*.*\"));\n\t\tFile selectedFile = fileChooser.showOpenDialog(stage);\n\t\tif (selectedFile != null) {\n\t\t\ttry {\n\t\t\t\tif(arrayList.size() != 0) {\n\t\t\t\t\tmp.stop();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdesktop.open(selectedFile);\n\t\t\t\tdirectory = selectedFile.getAbsolutePath();\n\t\t\t\t\n\t\t\t\tplayMedia(directory);\n\t\t\t\t\n\t\t\t\tarrayList.add(new File(directory));\n//\t\t\t\tSystem.out.println(arrayList.get(i).getName());\n\t\t\t\ti++;\n\t\t\t\t\n\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\t}",
"private static JMenu getFileMenu(final EnvironmentFrame frame) {\n\t\tfinal Environment environment = frame.getEnvironment();\n\t\tfinal JMenu menu = new JMenu(\"File\");\n\t\taddItem(menu, new NewAction());\n\t\tfinal SecurityManager sm = System.getSecurityManager();\n\t\tif (Universe.CHOOSER != null) {\n\t\t\t// Can't open and save files.\n\t\t\taddItem(menu, new OpenAction());\n\t\t\taddItem(menu, new SaveAction(environment));\n\t\t\taddItem(menu, new SaveAsAction(environment));\n\t\t\tJMenu saveImageMenu;\n\t\t\tsaveImageMenu = new JMenu(\"Save Image As...\");\n\t\t\tsaveImageMenu.add(new SaveGraphJPGAction(environment, menu));\n\t\t\tsaveImageMenu.add(new SaveGraphPNGAction(environment, menu));\n\t\t\tsaveImageMenu.add(new SaveGraphGIFAction(environment, menu));\n\t\t\tsaveImageMenu.add(new SaveGraphBMPAction(environment, menu));\n\t\t\tif (environment instanceof AutomatonEnvironment) { // this is\n\t\t\t\t// strictly for\n\t\t\t\t// non-Grammar\n\t\t\t\tJarFile jar = null;\n\t\t\t\ttry {\n\t\t\t\t\tif (new File(\"JFLAP.jar\").exists()) {\n\t\t\t\t\t\tjar = new JarFile(\"JFLAP.jar\");\n\t\t\t\t\t} else if (new File(\"JFLAP_With_Source.jar\").exists()) {\n\t\t\t\t\t\tjar = new JarFile(\"JFLAP_With_Source.jar\");\n\t\t\t\t\t}\n\t\t\t\t} catch (final IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tif (new File(\"svg.jar\").exists() || (jar != null && jar.getJarEntry(\"org/foo.txt\") != null)) {\n\t\t\t\t\t// saveImageMenu.add(new ExportAction(environment));\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfinal RestrictedAction ra = (RestrictedAction) Class.forName(\"gui.action.ExportAction\")\n\t\t\t\t\t\t\t\t.getConstructor(new Class[] { Environment.class }).newInstance(environment);\n\t\t\t\t\t\tsaveImageMenu.add(ra);\n\t\t\t\t\t} catch (final Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tSystem.err.println(\"Cannot make menu\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmenu.add(saveImageMenu);\n\t\t} else {\n\t\t\taddItem(menu, new OpenURLAction());\n\t\t}\n\t\taddItem(menu, new CloseAction(environment));\n\t\taddItem(menu, new CloseWindowAction(frame));\n\t\ttry {\n\t\t\tif (sm != null) {\n\t\t\t\tsm.checkPrintJobAccess();\n\t\t\t}\n\t\t\taddItem(menu, new PrintAction(environment));\n\t\t} catch (final SecurityException e) {\n\t\t\t// Damn. Can't print!\n\t\t}\n\t\ttry {\n\t\t\tif (sm != null) {\n\t\t\t\tsm.checkExit(0);\n\t\t\t}\n\t\t\taddItem(menu, new QuitAction());\n\t\t} catch (final SecurityException e) {\n\t\t\t// Well, can't exit anyway.\n\t\t}\n\n\t\t// if (environment instanceof AutomatonEnvironment){\n\t\t// addItem(menu, new SetUndoAmountAction());\n\t\t// }\n\n\t\treturn menu;\n\t}",
"private void loadFiles() {\n User user = ConnectionManager.getInstance().getUser();\n List<NoteFile> files = DatabaseManager.getInstance().getSharedFiles(user);\n ObservableList<GuiFile> guiFiles = FXCollections.observableArrayList();\n\n for (NoteFile file : files)\n guiFiles.add(new GuiFile(file));\n\n tableFiles.setItems(guiFiles);\n GUIUtils.autoResizeColumns(tableFiles);\n }",
"private JMenu fileMenu(final DrawingPanel thePanel) {\r\n myTrue = false;\r\n \r\n final JMenu fileMenu = new JMenu(\"File\");\r\n fileMenu.setMnemonic(KeyEvent.VK_F); \r\n \r\n \r\n \r\n final JMenuItem fileClear = new JMenuItem(\"Clear\");\r\n fileClear.setMnemonic(KeyEvent.VK_C);\r\n fileClear.setEnabled(thePanel.isThereShapes());\r\n \r\n fileMenu.addChangeListener((theEvent) -> {\r\n myTrue = thePanel.isThereShapes();\r\n fileClear.setEnabled(myTrue);\r\n });\r\n \r\n fileClear.addActionListener((theEvent) -> {\r\n if (fileClear.isEnabled()) {\r\n thePanel.clearShapes();\r\n thePanel.isClear();\r\n }\r\n });\r\n \r\n fileMenu.add(fileClear);\r\n fileMenu.addSeparator();\r\n final JMenuItem fileQuit = new JMenuItem(\"Quit\");\r\n fileQuit.setMnemonic(KeyEvent.VK_Q);\r\n fileQuit.addActionListener((theEvent) -> {\r\n System.exit(0);\r\n });\r\n fileMenu.add(fileQuit);\r\n \r\n return fileMenu;\r\n }",
"public void setFileMenu(JMenu fileMenu) {\n this.fileMenu = fileMenu;\n }",
"public Elegir()\n {\n initComponents();\n\n try\n {\n ObjectInputStream directorios = new ObjectInputStream(new FileInputStream(\"dirFav.dat\"));\n directoriosFavoritos = (ArrayList<String>) directorios.readObject();\n if (directoriosFavoritos == null)\n {\n directoriosFavoritos = new ArrayList<>();\n } else\n {\n for (int i = 0; i < directoriosFavoritos.size(); i++)\n {\n JMenuItem menuItem = new JMenuItem(directoriosFavoritos.get(i));\n menuItem.addActionListener(this);\n jMenuFavoritos.add(menuItem);\n submenus.add(menuItem);\n }\n }\n directorios.close();\n } catch (Exception e)\n {\n }\n }",
"public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_view_foreign_file, menu);\n return true;\n }",
"private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }",
"@Override\r\n public void actionPerformed( ItemActionEvent<File> event )\r\n {\n }",
"private void setupMenuItems() {\n\t\taboutMenu.setOnAction(event -> {\n\t\t\tAnchorPane root;\n\t\t\ttry {\n\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"about.fxml\"));\n\n\t\t\t\tStage stage = new Stage();\n\t\t\t\tstage.setScene(new Scene(root));\n\t\t\t\tstage.setTitle(\"About\");\n\t\t\t\tstage.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.error(\"Error loading About Window - \" + e.getMessage());\n\t\t\t}\n\t\t});\n\n\t\texitMenu.setOnAction(event -> {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tPlatform.exit();\n\t\t\t\t\tlog.debug(\"Window closed\");\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tloadMenu.setOnAction(event -> loadFile(true));\n\n\t\tsaveMenu.setOnAction(event -> Main.serializeItems());\n\n\t\tgroupByMenu.setOnAction(event -> {\n\t\t\tOptional<String> sortOption = Alerter.getChoiceDialog(\"Sorting\", null, \"Select how you want to group: \");\n\t\t\tsortOption.ifPresent(letter -> groupItems(letter));\n\t\t});\n\n\t\tupdateAllMenu.setOnAction(event -> {\n\t\t\tnew Thread(new Task<Void>() {\n\t\t\t\t@Override\n\t\t\t\tprotected Void call() throws Exception {\n\t\t\t\t\tlog.debug(\"UpdateAll Thread Triggered\");\n\n\t\t\t\t\titemsMap.forEach((a, b) -> {\n\t\t\t\t\t\tupdateItem(b);\n\t\t\t\t\t});\n\n\t\t\t\t\tupdateList();\n\t\t\t\t\tMain.serializeItems();\n\n\t\t\t\t\tlog.debug(\"UpdateAll Thread terminated successfully\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}).start();\n\t\t});\n\n\t\tupdateMenu.setOnAction(event -> {\n\t\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\t\t\t\tupdateItem(itemBox);\n\t\t\t} else {\n\t\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"No Item selected\", null,\n\t\t\t\t\t\t\"Please select the Item you want to update!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\tlog.debug(\"Info Popup triggered, No item selected\");\n\t\t\t}\n\t\t});\n\n\t\tdeleteMenu.setOnAction(event -> {\n\t\t\tItemBox rem = itemsMap.remove(listView.getSelectionModel().getSelectedItem().getGtin());\n\t\t\tlog.info(\"Item: \" + rem.getName() + \" removed\");\n\t\t\tupdateList();\n\t\t});\n\n\t\trepeatMenu.setOnAction(event -> {\n\t\t\tif (lastCommand != null) {\n\t\t\t\tString[] props = lastCommand.split(\" \");\n\t\t\t\tlog.info(\"Repeat called with: \" + lastCommand);\n\n\t\t\t\tswitch (props[0]) {\n\t\t\t\tcase \"ADD\":\n\t\t\t\t\taddItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RM\":\n\t\t\t\t\tremoveItem(props[1]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tprintMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.OVERVIEW);\n\t\t});\n\n\t\tprintShoppingMenu.setOnAction(event -> {\n\t\t\tprintOut(PrintOutType.SHOPPING);\n\t\t});\n\n\t}",
"void onShowAllPreview(List<FileItem> fileItemList);",
"private void loadAPlayListPressed() {\n\n\t\t// go to the selected folder and look for a file called list.txt and then load all the names of the files onto the jlist\n\n\t\tJFileChooser outputChooser = new JFileChooser();\n\t\toutputChooser.setCurrentDirectory(new java.io.File(\".\"));\n\t\toutputChooser.setDialogTitle(\"Choose a directory to output to\");\n\n\t\toutputChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n\t\tint returnValue = outputChooser.showOpenDialog(Library.this);\n\n\t\tif (returnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\tplaylistDirectory = outputChooser.getSelectedFile().getAbsoluteFile();\n\n\t\t}\n\n\t\t// now look in the playlist directory for the list.txt file. If there is one then go to all the paths and then load the file \n\t\t// names onto the jlist\n\t\tFile[] files;\n\t\tif(playlistDirectory !=null){\n\t\t\tfiles = playlistDirectory.listFiles();\n\n\t\t\tboolean textFileExists = false;\n\t\t\tFile a = null;\n\t\t\tfor(File f : files ){\n\t\t\t\tif((f.getName().toLowerCase().endsWith(\".txt\"))){\n\t\t\t\t\ttextFileExists = true;\n\t\t\t\t\ta = f;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// checks if the file exists\n\t\t\tif(textFileExists){\n\n\t\t\t\ttry {\n\t\t\t\t\tl.clear();\n\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(a));\n\t\t\t\t\tString line = br.readLine();\n\t\t\t\t\twhile (line != null) {\n\t\t\t\t\t\tString[] split = line.split(File.separator);\n\t\t\t\t\t\tint last = split.length;\n\t\t\t\t\t\tString lastString = split[last-1];\n\t\t\t\t\t\tpaths.put(lastString, line);\n\t\t\t\t\t\tFile mock = new File(line);\n\t\t\t\t\t\tsizes.put(lastString,mock.length());\n\t\t\t\t\t\tl.addElement(lastString);\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e3) {\n\t\t\t\t\t// Could not read log file, display error message\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Could not open file\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\n\t\t\t}else{\n\t\t\t\tJOptionPane.showMessageDialog(Library.this, \"Sorry, no plyalist exists in this folder!\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.add_new_notice_attach_files) {\n\n // check for is new notice created or not\n if(new_notice_created){\n\n // Upload new file as a attachment.\n askForFileName();\n\n } else {\n Toast.makeText(AddNewNoticeActivity.this, \"Please first create new notice, After that only you can upload files !!\",\n Toast.LENGTH_SHORT).show();\n }\n\n return true;\n }\n\n if (id == R.id.add_new_notice_delete_files) {\n\n if(new_notice_created) {\n deleteAttachments(new_notice_key);\n }\n\n return true;\n }\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_update_file, menu);\r\n return true;\r\n }",
"void doCF()\n {\n try\n {\n int module = propertyGet(LIST_MODULE);\n\t\t\tint currentLine = propertyGet(LIST_LINE);\n\n if (hasMoreTokens())\n {\n String arg = nextToken();\n module = parseFileArg(module, arg);\n\t\t\t\tcurrentLine = 1;\n setListingPosition(module, currentLine);\n }\n\n SourceFile sourceFile = m_fileInfo.getFile(module);\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(sourceFile.getName());\n\t\t\tsb.append('#');\n\t\t\tsb.append(sourceFile.getId());\n\t\t\tsb.append(':');\n\t\t\tsb.append(currentLine);\n\t\t\tout( sb.toString() );\n }\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t\tcatch(ParseException pe)\n\t\t{\n\t\t\terr(pe.getMessage());\n\t\t}\n\t\tcatch(AmbiguousException ae)\n\t\t{\n\t\t\terr(ae.getMessage());\n\t\t}\n\t\tcatch(NoMatchException nme)\n\t\t{\n\t\t\terr(nme.getMessage());\n\t\t}\n }",
"void addRecentEntry(final String fileName) {\r\n\t\tif (recent.add(fileName)) {\r\n\t\t\tif (ui.fileRecent.getItemCount() < 2) {\r\n\t\t\t\tui.fileRecent.addSeparator();\r\n\t\t\t}\r\n\t\t\tJMenuItem item = new JMenuItem(fileName);\r\n\t\t\titem.addActionListener(new Act() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void act() {\r\n\t\t\t\t\tdoOpenRecent(fileName);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tui.fileRecent.insert(item, 2);\r\n\t\t}\r\n\t}",
"public void setUpListView(){\n ObservableList<File> observableList = FXCollections.observableArrayList();\n // dir is the folder that contains our saved game files - different for singleplayer and multiplayer\n File dir;\n if(ActiveGameState.isMultiplayer())\n dir = new File(\".multiplayerGames\");\n else\n dir = new File(\".singleplayerGames\");\n\n File[] savedGames = dir.listFiles((directory, filename) -> filename.endsWith(\".json\"));\n // add files to observable List and furthermore to gameList\n observableList.clear();\n observableList.addAll(savedGames);\n gameList.setItems(observableList);\n\n\n // use Cell Factory to display only the Name of the Files + make ContextMenu for loading/deleting gameFile\n gameList.setCellFactory(new Callback<ListView<File>, ListCell<File>>() {\n @Override\n public ListCell<File> call(ListView<File> gameList) {\n\n // change updateItem method - display name of file\n ListCell<File> cell = new ListCell<File>() {\n @Override\n protected void updateItem(File item, boolean empty) {\n super.updateItem(item, empty);\n if (item == null)\n setText(\"\");\n else\n setText(item.getName());\n }\n };\n\n // create context menu + function for its items\n ContextMenu contextMenu = new ContextMenu();\n\n //1// Currently Disabled Feature Load\n //By adding make sure to add the item to the context menu\n\n //Delete -> delete game file from list and system\n MenuItem delete = new MenuItem();\n delete.setText((ActiveGameState.getLanguage() == ActiveGameState.Language.german) ? \"Spielstand löschen\" : \"Delete Game\");\n delete.setOnAction(e -> {\n logLoadGame.log(Level.INFO, \"Delete Item\" + cell.getItem().toString());\n\n //Remove linker in multiplayer savegames\n String fileNameToDelete = cell.getItem().toString();\n String onlyFileNameJson = cell.getItem().getName();\n String[] onlyFileName = onlyFileNameJson.split(\"\\\\.\");\n boolean linkerDeleted;\n if (ActiveGameState.isMultiplayer()){\n linkerDeleted = SavegameLinker.removeLinker(onlyFileName[0]);\n if (!linkerDeleted) logLoadGame.log(Level.WARNING, \"Savegame \"+ fileNameToDelete +\" link couldn`t removed from the savegame linker\");\n }\n\n\n File game = cell.getItem();\n gameList.getItems().remove(game);\n\n if(!(game.delete())) logLoadGame.log(Level.WARNING, \"Savegame \"+ fileNameToDelete +\" couldn't be deleted from system\");\n });\n contextMenu.getItems().addAll(delete);\n\n // display context menu only for cells that contain file - not for empty cells\n cell.emptyProperty().addListener((obs, wasEmpty, isNowEmpty) -> {\n if (isNowEmpty) {\n cell.setContextMenu(null);\n } else {\n cell.setContextMenu(contextMenu);\n }\n });\n\n return cell;\n }\n });\n }",
"public void llenarListaArchivos(int op) {\n String[] archivosPermitidos = {\".HA\", \".HE\"};\n if (op == 1) {\n archivos_directorio.removeAllItems();\n } else {\n archivos_directorio2.removeAllItems();\n }\n File directorio = new File(\"./\");\n File[] archivos = null;\n if (directorio.exists()) {\n archivos = directorio.listFiles();\n }\n int i;\n\n for (i = 0; i < archivos.length; i++) {\n if (op == 1 && (\"\" + archivos[i]).contains(\".txt\")) {\n archivos_directorio.addItem(\"\" + archivos[i]);\n } else {\n int j;\n for (j = 0; j < archivosPermitidos.length; j++) {\n if ((\"\" + archivos[i]).contains(archivosPermitidos[j])) {\n archivos_directorio2.addItem(\"\" + archivos[i]);\n break;\n }\n }\n }\n }\n\n }",
"public ArrayList getRecentFilesList() {\n ArrayList list = new ArrayList();\n String recent = \"\";\n try {\n recent = Constants.PREFS.get( Constants.RECENT_LIST, \"\" );\n }\n catch ( Exception e ) {} // NOPMD\n StringTokenizer st = new StringTokenizer( recent, File.pathSeparator );\n while ( st.hasMoreTokens() ) {\n String filename = st.nextToken();\n JMenuItem item = new JMenuItem( filename );\n item.addActionListener( new MenuItemListener( AntelopePanel.this, filename ) );\n list.add( item );\n }\n return list;\n }",
"@Override \n protected void onListItemClick(ListView l, View v, int position, long id) {\n mPath = filePaths.get(position);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t if (mDrawerToggle.onOptionsItemSelected(item)) {\n\t return true;\n\t }\n\t // Handle your other action bar items...\n\t switch(item.getItemId()){\n\t case R.id.menu_add: \n\t \t // Create the ACTION_GET_CONTENT Intent\n\t /*Intent getContentIntent = FileUtils.createGetContentIntent();\n\n\t Intent intent = Intent.createChooser(getContentIntent, \"Select a file\");\n\t startActivityForResult(intent, REQUEST_CHOOSER);\n\t \tbreak;*/\n\n break;\n case R.id.menu_record:\n Intent i = new Intent(this , AudioBookMaker.class);\n startActivity(i);\n break;\n\t }\n\t return super.onOptionsItemSelected(item);\n\t}",
"public void onMenuOpen() {\n String initialDirectory = getInitialDirectory();\n System.out.println(initialDirectory);\n File file = FileChooserHelper.showOpenDialog(initialDirectory, this);\n\n if (file == null || !file.exists() || !file.isFile()) {\n return;\n }\n\n handleMenuOpen(file.getAbsolutePath());\n }",
"public void list_of_menu_items() {\n\t\tdriver.findElement(open_menu_link).click();\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n\n return true;\n }\n //added the if for write\n if (id == R.id.action_write) {\n\n FileIO fileIO = new FileIO();\n fileIO.WriteFile(this, items);\n return true;\n }\n if (id == R.id.action_read) {\n\n\n //commit\n FileIO fileIO = new FileIO();\n fileIO.ReadFile(this);\n // Log.println(Log.DEBUG, TAG, \"File Read!!!!!!!!!\");\n return true;\n }\n if (id == R.id.action_additem)\n {\n Log.i(\"ItemButtonClick\", \"clicked the button\");\n AddAnimalDialog();\n return true;\n }\n if (id == R.id.action_refresh)\n {\n arrayAdapter.notifyDataSetChanged();\n }\n if (id == R.id.action_removeall)\n {\n\n }\n if (id == R.id.action_removechecked)\n {\n //removes the checkedboxes etc\n lvItems.invalidateViews();\n }\n\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { // Add Items to menu\n if (v.getId() == R.id.listView) {\n String[] menuItems = getResources().getStringArray(R.array.menu);\n for (int i = 0; i < menuItems.length; i++) {\n menu.add(Menu.NONE, i, i, menuItems[i]);\n }\n }\n }",
"private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}",
"public void on_append(ActionEvent actionEvent) {\r\n\t\tFile[] files = CommonTool.get_imagefiles( _open_directory_key, _parent);\r\n\t\tif ( null == files)\r\n\t\t\treturn;\r\n\r\n\t\tappend( files);\r\n\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int pos,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tFile[] tem = currentFiles[pos].listFiles();\n\t\t\t\tif (tem == null || tem.length == 0) {\n\t\t\t\t\tToast.makeText(FileExplorerActivity.this, \"当前路径不可访问\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\t\t\t\t\tcurrentParent = currentFiles[pos];\n\t\t\t\t\tcurrentFiles = tem;\n\t\t\t\t\tinflateListView(currentFiles);\n\t\t\t\t}\n\t\t\t}",
"private void itemFileButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"Select Raffle Items File\");\n File workingDirectory = new File(System.getProperty(\"user.dir\"));\n chooser.setCurrentDirectory(workingDirectory);\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n itemFile = chooser.getSelectedFile();\n itemFileLabel.setText(getFileName(itemFile));\n pcs.firePropertyChange(\"ITEM\" , null, itemFile);\n }\n }",
"protected void addEditMenuItems (JMenu edit)\n {\n }",
"private void buildMenu() {\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n\n JMenu fileMenu = new JMenu(\"File\");\n fileMenu.addMenuListener(this);\n\n JMenuItem openItem = new JMenuItem(\"Open\");\n openItem.setEnabled(false);\n JMenuItem newItem = new JMenuItem(\"New\");\n newItem.setEnabled(false);\n saveItem = new JMenuItem(\"Save\");\n saveItem.setEnabled(false);\n saveAsItem = new JMenuItem(\"Save As\");\n saveAsItem.setEnabled(false);\n reloadCalItem = new JMenuItem(RELOAD_CAL);\n exitItem = new JMenuItem(EXIT);\n\n mbar.add(makeMenu(fileMenu, new Object[]{newItem, openItem, null,\n reloadCalItem, null,\n saveItem, saveAsItem, null, exitItem}, this));\n\n JMenu viewMenu = new JMenu(\"View\");\n mbar.add(viewMenu);\n JMenuItem columnItem = new JMenuItem(COLUMNS);\n columnItem.addActionListener(this);\n JMenuItem logItem = new JMenuItem(LOG);\n logItem.addActionListener(this);\n JMenu satMenu = new JMenu(\"Satellite Image\");\n JMenuItem irItem = new JMenuItem(INFRA_RED);\n irItem.addActionListener(this);\n JMenuItem wvItem = new JMenuItem(WATER_VAPOUR);\n wvItem.addActionListener(this);\n satMenu.add(irItem);\n satMenu.add(wvItem);\n viewMenu.add(columnItem);\n viewMenu.add(logItem);\n viewMenu.add(satMenu);\n\n observability = new JCheckBoxMenuItem(\"Observability\", true);\n observability.setToolTipText(\"Check that the source is observable.\");\n remaining = new JCheckBoxMenuItem(\"Remaining\", true);\n remaining.setToolTipText(\n \"Check that the MSB has repeats remaining to be observed.\");\n allocation = new JCheckBoxMenuItem(\"Allocation\", true);\n allocation.setToolTipText(\n \"Check that the project still has sufficient time allocated.\");\n\n String ZOA = System.getProperty(\"ZOA\", \"true\");\n boolean tickZOA = true;\n if (\"false\".equalsIgnoreCase(ZOA)) {\n tickZOA = false;\n }\n\n zoneOfAvoidance = new JCheckBoxMenuItem(\"Zone of Avoidance\", tickZOA);\n localQuerytool.setZoneOfAvoidanceConstraint(!tickZOA);\n\n disableAll = new JCheckBoxMenuItem(\"Disable All\", false);\n JMenuItem cutItem = new JMenuItem(\"Cut\",\n new ImageIcon(ClassLoader.getSystemResource(\"cut.gif\")));\n cutItem.setEnabled(false);\n JMenuItem copyItem = new JMenuItem(\"Copy\",\n new ImageIcon(ClassLoader.getSystemResource(\"copy.gif\")));\n copyItem.setEnabled(false);\n JMenuItem pasteItem = new JMenuItem(\"Paste\",\n new ImageIcon(ClassLoader.getSystemResource(\"paste.gif\")));\n pasteItem.setEnabled(false);\n\n mbar.add(makeMenu(\"Edit\",\n new Object[]{\n cutItem,\n copyItem,\n pasteItem,\n null,\n makeMenu(\"Constraints\", new Object[]{observability,\n remaining, allocation, zoneOfAvoidance, null,\n disableAll}, this)}, this));\n\n mbar.add(SampClient.getInstance().buildMenu(this, sorter, table));\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic('H');\n\n mbar.add(makeMenu(helpMenu, new Object[]{new JMenuItem(INDEX, 'I'),\n new JMenuItem(ABOUT, 'A')}, this));\n\n menuBuilt = true;\n }",
"public FileMenu(final CalcMenuBar menuBar){\n\t\tsetText(\"File\");\n\t\tsetBackground(Color.gray);\n\t\tthis.menuBar = menuBar;\n\t\t//init items\n\t\tmiOpen = new JMenuItem(\"Open\");\n\t\tmiOpen.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPressed();\n\t\t\t}\n\t\t});\n\t\tadd(miOpen);\n\t\tmiSave = new JMenuItem(\"Save\");\n\t\tmiSave.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsavePressed();\n\t\t\t}\n\t\t});\n\t\tadd(miSave);\n\t\tmiClearFormulas = new JMenuItem(\"Clear Functions\");\n\t\tmiClearFormulas.setToolTipText(\"Erases all User Functions\");\n\t\tmiClearFormulas.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(JOptionPane.showConfirmDialog(null, \"Are you sure you want to erase all user created functions?\", \"Are you sure?\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION){\n\t\t\t\t\tSystem.out.println(\"Removing Functions\");\n\t\t\t\t\tUserFunction.getFunctions().clear();\n\t\t\t\t\tSystem.out.println(UserFunction.getFunctions());\n\t\t\t\t\tmenuBar.updateFunctions();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tadd(miClearFormulas);\n\t\tmiClearMem = new JMenuItem(\"Clear Variables\");\n\t\tmiClearMem.setToolTipText(\"Erases all User craeted variables\");\n\t\tmiClearMem.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(JOptionPane.showConfirmDialog(null, \"Are you sure you want to erase all user created variables?\", \"Are you sure?\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION){\n\t\t\t\t\tSystem.out.println(\"Removing Variables\");\n\t\t\t\t\tVariable.getVariables().clear();\n\t\t\t\t\tmenuBar.updateFunctions();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tadd(miClearMem);\n\t\t\n\t}",
"public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem);\n\t}",
"@Override\n public void actionPerformed(ActionEvent event)\n {\n Object source = event.getSource();\n\n if (source == fileNewItem)\n {\n //\n // File->New is clicked.\n //\n parent.onFileNew();\n }\n else if (source == fileOpenItem)\n {\n //\n // File->Open is clicked.\n //\n parent.onFileOpen();\n }\n else if (source == fileEditItem)\n {\n //\n // File->Edit is clicked.\n //\n parent.onFileEdit();\n }\n else if (source == fileCloseItem)\n {\n //\n // File->Close is clicked.\n //\n parent.onFileClose();\n }\n else if (source == fileAboutItem)\n {\n //\n // File->About is clicked.\n //\n parent.onFileAbout();\n }\n else if (source == fileExitItem)\n {\n //\n // File->Exit is clicked.\n //\n parent.onFileExit();\n }\n }",
"void buildWindowAddFavorite(){ \n assert(false);\n \n //main.gui.addMenuItemGThread(\"menuFileNaviRefresh\", main.idents.menuFileNaviRefreshBar, actionRefreshFileTable); // /\n //main.gui.addMenuItemGThread(\"menubarFolderCreate\", main.idents.menuConfirmMkdirFileBar, main.mkCmd.actionOpenDialog); // /\n //main.gui.addMenuItemGThread(\"menubarFolderSearch\", main.idents.menuBarSearchFiles, actionSearchFiles); // /\n main.gui.menuBar.addMenuItem(\"menuBarFolderSyncMidRight\", main.idents.menuBarFolderSyncMidRight, actionSyncMidRight); // /\n //main.gui.addMenuItemGThread(\"menubarFileProps\", main.idents.menuFilePropsBar, main.filePropsCmd.actionOpenDialog);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuFileViewBar, main.viewCmd.actionOpenView);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuFileEditBar, main.actionEdit);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuBarEditIntern, main.editWind.actionOpenEdit);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuConfirmCopyBar, main.copyCmd.actionConfirmCopy);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuConfirmFileDelBar, main.deleteCmd.actionConfirmDelete);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuExecuteBar, main.executer.actionExecuteFileByExtension);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuExecuteCmdBar, main.cmdSelector.actionExecCmdWithFiles);\n\n //main.gui.menuBar.addMenuItem(\"menuBarCreateFavor\", main.idents.menuBarCreateFavor, actionCreateFavor); // /\n main.gui.menuBar.addMenuItem(\"menuDelTab\", main.idents.menuDelTab, actionDelTab); // /\n main.gui.menuBar.addMenuItem(\"menuSaveFavoriteSel\", main.idents.menuSaveFavoriteSel, actionSaveFavoritePathes); // /\n main.gui.menuBar.addMenuItem(\"menuReadFavoriteSel\", main.idents.menuReadFavoriteSel, actionReadFavoritePathes); // /\n\n\n \n main.gui.gralMng.selectPanel(\"primaryWindow\"); //\"output\"); //position relative to the output panel\n //panelMng.setPosition(1, 30+GralGridPos.size, 1, 40+GralGridPos.size, 1, 'r');\n main.gui.gralMng.setPosition(-19, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n \n\n windAddFavorite.window = main.gui.gralMng.createWindow(\"addFavoriteWindow\", \"add favorite\", GralWindow.windConcurrently);\n \n main.gui.gralMng.setPosition(4, GralPos.size -4, 1, GralPos.size +34, 'r');\n windAddFavorite.widgLabel = main.gui.gralMng.addTextField(\"addFavoriteTab\", true, \"label\", \"t\");\n windAddFavorite.widgLabel.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.tab.\");\n main.gui.gralMng.setPosition(4, GralPos.size -4, 35, GralPos.size +10, 'r');\n windAddFavorite.widgPersistent = main.gui.gralMng.addTextField(\"addFavoriteTab\", true, \"lmr ?\", \"t\");\n windAddFavorite.widgLabel.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.persist.\");\n \n main.gui.gralMng.setPosition(8, GralPos.size -4, 1, GralPos.size +45, 'd');\n windAddFavorite.widgShortName = main.gui.gralMng.addTextField(\"addFavoriteAlias\", true, \"alias (show in list)\", \"t\");\n windAddFavorite.widgShortName.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.alias.\");\n windAddFavorite.widgPath = main.gui.gralMng.addTextField(\"addFavoritePath\", true, \"the directory path\", \"t\");\n windAddFavorite.widgPath.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.dir.\");\n \n main.gui.gralMng.setPosition(-4, -1, 1, 6, 'r');\n main.gui.gralMng.addButton(\"addFavoriteEsc\", actionAddFavorite, \"esc\", null, \"esc\");\n main.gui.gralMng.setPosition(-4, -1, -14, GralPos.size +6, 'r',1);\n GralWidget widg = main.gui.gralMng.addButton(\"addFavoriteOk\", actionAddFavorite, \"temp\", null, \"temp\");\n widg.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.temp.\");\n widg = main.gui.gralMng.addButton(\"addFavoriteOk\", actionAddFavorite, \"ok\", null, \"Save\");\n widg.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.save.\");\n \n }",
"void addAllMenuItem_actionPerformed(ActionEvent e) {\n\n // open the profilefile and append the\n // score data for all articles\n filterAgent.addAllArticlesToProfile(articles);\n }",
"public void addItem(final CommitFile file) {\n addItem(TYPE_FILE_HEADER, file);\n addItems(TYPE_FILE_LINE, diffStyler.get(file.getFilename()));\n }",
"public boolean onOptionsItemSelected(MenuItem item){\n switch(item.getItemId()){\n case(android.R.id.home): //if home (back) button is pressed\n Intent myIntent = new Intent(getApplicationContext(), MainActivity.class);\n startActivityForResult(myIntent, 0);\n break;\n case(R.id.menuSortDate): //if sort by date selected\n Toast.makeText(this,\"Sorted by date created\", Toast.LENGTH_LONG).show();\n fileListAdapter.sortDateCreated(); //sort files by date created\n fileListAdapter.notifyDataSetChanged();\n sortOrder = SortOrder.DATE; //update sort order\n break;\n case(R.id.menuSortAlphabetically): //if sort alphabetically selected\n Toast.makeText(this,\"Sorted alphabetically\", Toast.LENGTH_LONG).show();\n fileListAdapter.sortAlphabetically(); //sort files by alphabetical order\n fileListAdapter.notifyDataSetChanged();\n sortOrder = SortOrder.ALPHABETICAL; //update sort order\n break;\n case(R.id.menuSortFileType): //if sort by file type selected\n Toast.makeText(this,\"Sorted by file type\", Toast.LENGTH_LONG).show();\n fileListAdapter.sortFileType();\n fileListAdapter.notifyDataSetChanged();\n sortOrder = SortOrder.FILE_TYPE; //update sort order\n break;\n case(R.id.menuSortFileSize):\n Toast.makeText(this,\"Sorted by file size\", Toast.LENGTH_LONG).show();\n fileListAdapter.sortFileSize();\n fileListAdapter.notifyDataSetChanged();\n sortOrder = SortOrder.FILE_SIZE;\n break;\n// MenuItem fileSizeSortItem = sortMenu.findItem(R.id.menuSortFileSize);\n// fileSizeSortItem.setChecked(true);\n default:\n return super.onOptionsItemSelected(item);\n }\n updateSortOrderCheckBox(); //update checkboxes of sort order dropdown\n return true;\n }",
"private void selectFolderBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_selectFolderBtnMouseClicked\n if (workingDirectory == null)\n {\n workingDirectory = new File(\".\");\n }\n JFileChooser selectFolderUI = new JFileChooser();\n selectFolderUI.setCurrentDirectory(workingDirectory);\n selectFolderUI.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n int response = selectFolderUI.showOpenDialog(mainUI.this);\n if (response == JFileChooser.APPROVE_OPTION)\n {\n ArrayList<FileItem> fileList = new ArrayList<>();\n workingDirectory = selectFolderUI.getSelectedFile();\n ArrayList<File> files = \n new ArrayList<>(Arrays.asList(workingDirectory.listFiles()));\n \n for (File f : files)\n {\n if (!f.isDirectory())\n {\n FileItem fi = null;\n try {\n fi = new FileItem(f);\n } catch (IOException ex) {\n Logger.getLogger(mainUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n fileList.add(fi);\n }\n }\n \n CSPB.testFiles = fileList;\n mainUI.this.refresh();\n } \n }",
"private void initListView() {\n lv.setAdapter(new PathListViewAdapter(getActivity(), R.layout.file_list_row, values));\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (new File(values.get(position).getPath()).isDirectory()) {\n FileGridViewFragment fragment = new FileGridViewFragment();\n Bundle b = new Bundle();\n b.putString(\"dir\", values.get(position).getPath());\n b.putString(\"filetype\",getArguments().getString(\"filetype\"));\n fragment.setArguments(b);\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(contentId, fragment)\n .addToBackStack(getArguments().getString(\"filetype\")).commit();\n } else {\n Toast.makeText(getActivity(), values.get(position).getPath(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"public void setFilesList(File nowFile) {\n enterFilePath(nowFile);\n }",
"private void bind() \r\n\t{\r\n\t\tsuper.menuPut(\"list\", newJMenu(\"List\", 'L'));\r\n\t\tsuper.menuPut(\"list/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionNew(x));\r\n\t\tsuper.menuPut(\"list/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionLoad(x));\r\n\t\tsuper.menuPut(\"list/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionSave(x));\r\n\t\tsuper.menuPut(\"list/***1\", \"\");\r\n\t\tsuper.menuPut(\"list/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionAdd(x));\r\n\t\tsuper.menuPut(\"list/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionRemove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"tree\", newJMenu(\"Tree\", 'T'));\r\n\t\tsuper.menuPut(\"tree/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK), x -> menuEdit.actionNew(x));\r\n\t\tsuper.menuPut(\"tree/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK), x -> menuEdit.actionLoad(x));\r\n\t\tsuper.menuPut(\"tree/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK), x -> menuEdit.actionSave(x));\r\n\t\tsuper.menuPut(\"tree/***1\", \"\");\r\n\t\tsuper.menuPut(\"tree/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK), x -> menuEdit.actionAdd(x));\r\n\t\tsuper.menuPut(\"tree/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK), x -> menuEdit.actionRemove(x));\r\n\t\tsuper.menuPut(\"tree/move\", newJMenuItem(\"Move\", 'V', KeyEvent.VK_6, ActionEvent.SHIFT_MASK), x -> menuEdit.actionMove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"graph\", newJMenu(\"Graph\", 'G'));\r\n\t\tsuper.menuPut(\"graph/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.CTRL_MASK), x -> menuHelp.actionNew(x));\r\n\t\tsuper.menuPut(\"graph/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.CTRL_MASK), x -> menuHelp.actionOpen(x));\r\n\t\tsuper.menuPut(\"graph/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.CTRL_MASK), x -> menuHelp.actionSave(x));\r\n\t\tsuper.menuPut(\"graph/***1\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-node\", newJMenuItem(\"Add node\", 'A', KeyEvent.VK_4, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddNode(x));\r\n\t\tsuper.menuPut(\"graph/remove-node\", newJMenuItem(\"Remove node\", 'R', KeyEvent.VK_5, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveNode(x));\r\n\t\tsuper.menuPut(\"graph/move-node\", newJMenuItem(\"Move node\", 'V', KeyEvent.VK_6, ActionEvent.CTRL_MASK), x -> menuHelp.actionMoveNode(x));\r\n\t\tsuper.menuPut(\"graph/***2\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-link\", newJMenuItem(\"Add link\", 'D', KeyEvent.VK_7, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddLink(x));\r\n\t\tsuper.menuPut(\"graph/remove-link\", newJMenuItem(\"Remove link\", 'L', KeyEvent.VK_8, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveLink(x));\r\n\t\t\r\n\t\tsuper.menuDump();\t\t\r\n\t}",
"@Override\n public ListCell<File> call(ListView<File> gameList) {\n ListCell<File> cell = new ListCell<File>() {\n @Override\n protected void updateItem(File item, boolean empty) {\n super.updateItem(item, empty);\n if (item == null)\n setText(\"\");\n else\n setText(item.getName());\n }\n };\n\n // create context menu + function for its items\n ContextMenu contextMenu = new ContextMenu();\n\n //1// Currently Disabled Feature Load\n //By adding make sure to add the item to the context menu\n\n //Delete -> delete game file from list and system\n MenuItem delete = new MenuItem();\n delete.setText((ActiveGameState.getLanguage() == ActiveGameState.Language.german) ? \"Spielstand löschen\" : \"Delete Game\");\n delete.setOnAction(e -> {\n logLoadGame.log(Level.INFO, \"Delete Item\" + cell.getItem().toString());\n\n //Remove linker in multiplayer savegames\n String fileNameToDelete = cell.getItem().toString();\n String onlyFileNameJson = cell.getItem().getName();\n String[] onlyFileName = onlyFileNameJson.split(\"\\\\.\");\n boolean linkerDeleted;\n if (ActiveGameState.isMultiplayer()){\n linkerDeleted = SavegameLinker.removeLinker(onlyFileName[0]);\n if (!linkerDeleted) logLoadGame.log(Level.WARNING, \"Savegame \"+ fileNameToDelete +\" link couldn`t removed from the savegame linker\");\n }\n\n\n File game = cell.getItem();\n gameList.getItems().remove(game);\n\n if(!(game.delete())) logLoadGame.log(Level.WARNING, \"Savegame \"+ fileNameToDelete +\" couldn't be deleted from system\");\n });\n contextMenu.getItems().addAll(delete);\n\n // display context menu only for cells that contain file - not for empty cells\n cell.emptyProperty().addListener((obs, wasEmpty, isNowEmpty) -> {\n if (isNowEmpty) {\n cell.setContextMenu(null);\n } else {\n cell.setContextMenu(contextMenu);\n }\n });\n\n return cell;\n }"
] | [
"0.71943384",
"0.71659684",
"0.71125644",
"0.7016519",
"0.6942618",
"0.6900677",
"0.6888729",
"0.6869053",
"0.680041",
"0.6788407",
"0.6731737",
"0.6694227",
"0.6627925",
"0.65952367",
"0.65391326",
"0.6493948",
"0.6431895",
"0.64062333",
"0.63931006",
"0.6354034",
"0.63069797",
"0.6304151",
"0.62918746",
"0.62789625",
"0.6265632",
"0.6209117",
"0.6144578",
"0.61387306",
"0.6135704",
"0.6113899",
"0.6098377",
"0.6078539",
"0.6060299",
"0.604002",
"0.60328984",
"0.6014248",
"0.6010759",
"0.60072714",
"0.5967316",
"0.59632915",
"0.59481174",
"0.59452754",
"0.5920856",
"0.5915241",
"0.5886357",
"0.5880412",
"0.5873633",
"0.58716226",
"0.58665675",
"0.5861861",
"0.58588886",
"0.5853491",
"0.5836984",
"0.5828034",
"0.5826126",
"0.58172566",
"0.5808894",
"0.5808737",
"0.58043575",
"0.5790638",
"0.5786724",
"0.5786279",
"0.5773731",
"0.5766842",
"0.5760285",
"0.5758504",
"0.57498646",
"0.5733351",
"0.573048",
"0.57298845",
"0.5720055",
"0.5708956",
"0.5699857",
"0.5699405",
"0.56934404",
"0.56864846",
"0.56851095",
"0.5683689",
"0.5676594",
"0.5673074",
"0.56692195",
"0.5661435",
"0.56516206",
"0.56496805",
"0.5648529",
"0.5646549",
"0.564446",
"0.5643505",
"0.5639205",
"0.563333",
"0.56285685",
"0.56162757",
"0.561355",
"0.56097865",
"0.56009454",
"0.56002283",
"0.5600011",
"0.5592967",
"0.55919594",
"0.55911535",
"0.5588062"
] | 0.0 | -1 |
Make the view menu items | protected void getViewMenuItems(List items, boolean forMenuBar) {
super.getViewMenuItems(items, forMenuBar);
items.add(GuiUtils.MENU_SEPARATOR);
List paramItems = new ArrayList();
paramItems.add(GuiUtils.makeCheckboxMenuItem("Show Parameter Table",
this, "showTable", null));
paramItems.add(doMakeChangeParameterMenuItem());
List choices = getDataChoices();
for (int i = 0; i < choices.size(); i++) {
paramItems.addAll(getParameterMenuItems(i));
}
items.add(GuiUtils.makeMenu("Parameters", paramItems));
JMenu chartMenu = new JMenu("Chart");
chartMenu.add(
GuiUtils.makeCheckboxMenuItem(
"Show Thumbnail in Legend", getChart(), "showThumb", null));
List chartMenuItems = new ArrayList();
getChart().addViewMenuItems(chartMenuItems);
GuiUtils.makeMenu(chartMenu, chartMenuItems);
items.add(chartMenu);
items.add(doMakeProbeMenu(new JMenu("Probe")));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Menu createViewMenu();",
"private void buildViewMenu(){\n //Create a Run Payroll menu item\n viewItem = new JMenuItem(\"View CS History\");\n viewItem.setMnemonic(KeyEvent.VK_H);\n viewItem.addActionListener(new ViewListener());\n \n //Create a JMenu object for the run menu\n viewMenu = new JMenu(\"View\");\n viewMenu.setMnemonic(KeyEvent.VK_V);\n \n //Add the item to the menu\n viewMenu.add(viewItem);\n }",
"private void initializeMenu() {\n menu = new Menu(parent.getShell());\n MenuItem item1 = new MenuItem(menu, SWT.NONE);\n item1.setText(Resources.getMessage(\"LatticeView.9\")); //$NON-NLS-1$\n item1.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n model.getClipboard().addToClipboard(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.CLIPBOARD, selectedNode));\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n \n MenuItem item2 = new MenuItem(menu, SWT.NONE);\n item2.setText(Resources.getMessage(\"LatticeView.10\")); //$NON-NLS-1$\n item2.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(final SelectionEvent arg0) {\n controller.actionApplySelectedTransformation();\n model.setSelectedNode(selectedNode);\n controller.update(new ModelEvent(ViewSolutionSpace.this, ModelPart.SELECTED_NODE, selectedNode));\n actionRedraw();\n }\n });\n }",
"public myView() {\n initComponents();\n CreatMenu();\n }",
"List<ViewDefinition> listForMenu();",
"IMenuView getMenuView();",
"public void createMenu() {\n\t\tmenuBar.add(createGameMenuColumn());\n\t\tmenuBar.add(createTestsMenuColumn());\n\t\tmenuBar.add(createCheatsMenuColumn());\n\n\t\tparentMainView.setJMenuBar(menuBar);\n\t}",
"private void createMenuList() {\n SlideMenuItem menuItem0 = new SlideMenuItem(ContentFragment.CLOSE, R.drawable.ic_action_remove);\n list.add(menuItem0);\n SlideMenuItem menuItem = new SlideMenuItem(ContentFragment.GAMES, R.drawable.ic_action_gamepad);\n list.add(menuItem);\n\n SlideMenuItem menuItem3 = new SlideMenuItem(ContentFragment.FRIENDS, R.drawable.ic_action_person);\n list.add(menuItem3);\n SlideMenuItem menuItem4 = new SlideMenuItem(ContentFragment.SETTINGS, R.drawable.ic_action_settings);\n list.add(menuItem4);\n }",
"@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}",
"private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}",
"@objid (\"491bee9e-12dd-11e2-8549-001ec947c8cc\")\n private static void createMenuEntriesForAction(IModule module, MMenu moduleMenu, MPart view) {\n Map<String, MMenu> slotMap = new HashMap<>();\n \n // ask module for its IModuleAction that should be inserted into the\n // contextual menu and for each of them\n for (IModuleAction action : module.getActions(ActionLocation.contextualpopup)) {\n // Create the MHandler and MHandledItem for this action.\n \n // MCommand\n MCommand command = ModuleCommandsRegistry.getCommand(module, action);\n \n // MHandler\n final MHandler handler = createAndActivateHandler(command, module, action, view);\n \n // MHandledItem\n MHandledMenuItem item = createAndInsertItem(moduleMenu, action, slotMap);\n // Bind to command\n item.setCommand(command);\n \n Expression visWhen = new IsVisibleExpression(handler.getObject(), item);\n MCoreExpression isVisibleWhenExpression = MUiFactory.INSTANCE.createCoreExpression();\n isVisibleWhenExpression.setCoreExpressionId(\"programmatic.value\");\n isVisibleWhenExpression.setCoreExpression(visWhen);\n \n item.setVisibleWhen(isVisibleWhenExpression);\n }\n }",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"private void setUpMenu() {\n\t\tresideMenu = new ResideMenu(this);\n\t\tresideMenu.setBackground(R.drawable.menu_background);\n\t\tresideMenu.attachToActivity(this);\n\t\tresideMenu.setMenuListener(menuListener);\n\t\t// valid scale factor is between 0.0f and 1.0f. leftmenu'width is\n\t\t// 150dip.\n\t\tresideMenu.setScaleValue(0.6f);\n\n\t\t// create menu items;\n\t\titemGame = new ResideMenuItem(this, R.drawable.icon_game,\n\t\t\t\tgetResources().getString(R.string.strGame));\n\t\titemBook = new ResideMenuItem(this, R.drawable.icon_book,\n\t\t\t\tgetResources().getString(R.string.strBook));\n\t\titemNews = new ResideMenuItem(this, R.drawable.icon_news,\n\t\t\t\tgetResources().getString(R.string.strNews));\n\t\t// itemSettings = new ResideMenuItem(this, R.drawable.icon_setting,\n\t\t// getResources().getString(R.string.strSetting));\n\t\titemLogin = new ResideMenuItem(this, R.drawable.icon_share,\n\t\t\t\tgetResources().getString(R.string.strShare));\n\t\titemBookPDF = new ResideMenuItem(this, R.drawable.icon_bookpdf,\n\t\t\t\tgetResources().getString(R.string.strBookPDF));\n\t\titemMore = new ResideMenuItem(this, R.drawable.icon_more,\n\t\t\t\tgetResources().getString(R.string.strMore));\n\n\t\titemGame.setOnClickListener(this);\n\t\titemBook.setOnClickListener(this);\n\t\titemNews.setOnClickListener(this);\n\t\t// itemSettings.setOnClickListener(this);\n\t\titemBookPDF.setOnClickListener(this);\n\t\titemMore.setOnClickListener(this);\n\t\titemLogin.setOnClickListener(this);\n\n\t\tresideMenu.addMenuItem(itemBookPDF, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemBook, ResideMenu.DIRECTION_LEFT);\n\t\tresideMenu.addMenuItem(itemNews, ResideMenu.DIRECTION_LEFT);\n\t\t// resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n\n\t\tresideMenu.addMenuItem(itemGame, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemLogin, ResideMenu.DIRECTION_RIGHT);\n\t\tresideMenu.addMenuItem(itemMore, ResideMenu.DIRECTION_RIGHT);\n\n\t\t// You can disable a direction by setting ->\n\t\t// resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n\t\tfindViewById(R.id.title_bar_left_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tfindViewById(R.id.title_bar_right_menu).setOnClickListener(\n\t\t\t\tnew View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View view) {\n\t\t\t\t\t\tresideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"private void setUpMenu() {\n resideMenu = new ResideMenu(this);\n\n resideMenu.setBackground(R.drawable.menu_background);\n resideMenu.attachToActivity(this);\n resideMenu.setMenuListener(menuListener);\n resideMenu.setScaleValue(0.6f);\n\n // create menu items;\n itemHome = new ResideMenuItem(this, R.drawable.icon_profile, \"Home\");\n itemSerre = new ResideMenuItem(this, R.drawable.serre, \"GreenHouse\");\n itemControl = new ResideMenuItem(this, R.drawable.ctrl, \"Control\");\n itemTable = new ResideMenuItem(this, R.drawable.database, \"Parametre\");\n\n // itemProfile = new ResideMenuItem(this, R.drawable.user, \"Profile\");\n // itemSettings = new ResideMenuItem(this, R.drawable.stat_n, \"Statistique\");\n itemPicture = new ResideMenuItem(this, R.drawable.cam, \"Picture\");\n itemLog = new ResideMenuItem(this, R.drawable.log, \"Log file \");\n\n itemLogout = new ResideMenuItem(this, R.drawable.logout, \"Logout\");\n\n\n\n itemHome.setOnClickListener(this);\n itemSerre.setOnClickListener(this);\n itemControl.setOnClickListener(this);\n itemTable.setOnClickListener(this);\n\n// itemProfile.setOnClickListener(this);\n // itemSettings.setOnClickListener(this);\n itemLogout.setOnClickListener(this);\n itemPicture.setOnClickListener(this);\n itemLog.setOnClickListener(this);\n\n\n resideMenu.addMenuItem(itemHome, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemSerre, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemControl, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemTable, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemLog, ResideMenu.DIRECTION_LEFT);\n\n\n // resideMenu.addMenuItem(itemProfile, ResideMenu.DIRECTION_RIGHT);\n // resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_RIGHT);\n resideMenu.addMenuItem(itemPicture, ResideMenu.DIRECTION_RIGHT);\n\n resideMenu.addMenuItem(itemLogout, ResideMenu.DIRECTION_RIGHT);\n\n // You can disable a direction by setting ->\n // resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n findViewById(R.id.title_bar_left_menu).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n resideMenu.openMenu(ResideMenu.DIRECTION_LEFT);\n }\n });\n findViewById(R.id.title_bar_right_menu).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n resideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);\n }\n });\n }",
"public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }",
"protected abstract void addMenuOptions();",
"public menuFornecedorView() {\n initComponents();\n botoes(true,true,false,true,false,false);\n campos(false,true,false,false,false,false);\n }",
"private void setMenu() {\n\n if (tree.isEmpty() || !treeGrid.anySelected()) {\n mainMenu.setItems(newMenuItem, new MenuItemSeparator(), settingMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecord() == null) {\n mainMenu.setItems(renameMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem);\n } else if (treeGrid.getSelectedRecords().length > 1) {\n ListGridRecord[] selectedNode = treeGrid.getSelectedRecords();\n if (isSameExtension(selectedNode, Extension.FP)) {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem, exportMenuItem);\n } else if (isSameExtension(selectedNode, Extension.FPS)) {\n mainMenu.setItems(newFPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.BPS)) {\n mainMenu.setItems(newBPItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else if (isSameExtension(selectedNode, Extension.SCSS)) {\n mainMenu.setItems(newSCSItem, deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n } else {\n mainMenu.setItems(deleteMenu, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, progMenuItem);\n }\n } else if (tree.isFolder(treeGrid.getSelectedRecord())) {\n mainMenu.setItems(newMenuItem, deleteMenu, renameMenuItem, copyMenuItem, pasteMenuItem, searchMenuItem, correlationDiagramMenuItem, progMenuItem, downloadMenuItem,\n copyPathMenuItem);\n } else {\n FileTreeNode selectedNode = (FileTreeNode) treeGrid.getSelectedRecord();\n VMResource resource = selectedNode.getResource();\n if (resource instanceof VMDirectory) {\n return;\n }\n Extension extension = ((VMFile) resource).getExtension();\n if (extension == null) {\n mainMenu.setItems(openWithMenuItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n } else\n switch (extension) {\n case ARC:\n mainMenu.setItems(newBPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FM:\n mainMenu.setItems(newFMCItem, newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FMC:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case TC:\n mainMenu.setItems(newTCItem, newFPSItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n case FPS:\n mainMenu.setItems(newFPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case FP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, exportMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BPS:\n mainMenu.setItems(newBPItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case BP:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCSS:\n mainMenu.setItems(newSCSItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n case SCS:\n mainMenu.setItems(newSPQLItem, deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem,\n correlationDiagramMenuItem, copyPathMenuItem);\n break;\n default:\n mainMenu.setItems(deleteMenu, renameMenuItem, historyMenuItem, copyMenuItem, pasteMenuItem, downloadMenuItem, searchMenuItem, correlationDiagramMenuItem,\n copyPathMenuItem);\n break;\n }\n }\n }",
"public Menu createToolsMenu();",
"private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }",
"private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}",
"private void initializeMenuForListView() {\n\t\tMenuItem sItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_S_MENU));\n\t\tsItem.setOnAction(event ->\n\t\t\taddSAction()\n\t\t);\n\t\t\n\t\tMenuItem scItem = new MenuItem(labels.get(Labels.PROP_INFO_ADD_SC_MENU));\n\t\tscItem.setOnAction(event ->\n\t\t\t\taddScAction()\n\t\t);\n\t\t\n\t\tContextMenu menu = new ContextMenu(sItem, scItem);\n\t\tfirstListView.setContextMenu(menu);\n\t\tsecondListView.setContextMenu(menu);\n\t}",
"private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}",
"@Override\n\tprotected void setMenu() {\n\t\t\n\t\tfinal ButtonGroup actionButtonGroup = new ButtonGroup();\n\t\tfor (String s : ((TreeSite) object).actions) {\n\t\t\tJRadioButton button = new JRadioButton(s);\n\t\t\tbutton.setActionCommand(s);\n\t\t\tactionButtonGroup.add(button);\n\t\t\tmenu.add(button);\n\t\t}\n\t\t\n\t\tJPanel headingPanel = new JPanel();\n\t\theadingPanel.setLayout(new BoxLayout(headingPanel, BoxLayout.LINE_AXIS));\n\t\theadingPanel.add(new JLabel(\"Heading: \"));\n\t\tfinal JTextField headingField = new JTextField();\n\t\theadingField.setText(Float.toString(INITIAL_FLOAT_VALUE));\n\t\theadingField.setColumns(10);\n\t\theadingPanel.add(headingField);\n\t\tmenu.add(headingPanel);\n\t\t\n\t\tJPanel lengthPanel = new JPanel();\n\t\tlengthPanel.setLayout(new BoxLayout(lengthPanel, BoxLayout.LINE_AXIS));\n\t\tlengthPanel.add(new JLabel(\"Length: \"));\n\t\tfinal JTextField lengthField = new JTextField();\n\t\tlengthField.setText(Integer.toString(INITIAL_INTEGER_VALUE));\n\t\tlengthField.setColumns(10);\n\t\tlengthPanel.add(lengthField);\n\t\tmenu.add(lengthPanel);\n\t\t\n\t\tJPanel counterPanel = new JPanel();\n\t\tcounterPanel.setLayout(new BoxLayout(counterPanel, BoxLayout.LINE_AXIS));\n\t\tcounterPanel.add(new JLabel(\"Counter: \"));\n\t\tfinal JTextField counterField = new JTextField();\n\t\tcounterField.setText(Integer.toString(INITIAL_INTEGER_VALUE));\n\t\tcounterField.setColumns(10);\n\t\tcounterPanel.add(counterField);\n\t\tmenu.add(counterPanel);\n\t\t\n\t\tJPanel targetPanel = new JPanel();\n\t\ttargetPanel.setLayout(new BoxLayout(targetPanel, BoxLayout.LINE_AXIS));\n\t\ttargetPanel.add(new JLabel(\"Target position: \"));\n\t\ttargetFieldX = new JTextField();\n\t\ttargetFieldX.setEditable(false);\n\t\ttargetFieldX.setText(\"\");\n\t\ttargetFieldX.setColumns(4);\n\t\ttargetFieldY = new JTextField();\n\t\ttargetFieldY.setEditable(false);\n\t\ttargetFieldY.setText(\"\");\n\t\ttargetFieldY.setColumns(4);\n\t\ttargetPanel.add(targetFieldX);\n\t\ttargetPanel.add(new JLabel(\", \"));\n\t\ttargetPanel.add(targetFieldY);\n\t\tmenu.add(targetPanel);\n\t\tmenu.add(new SetTargetPositionButton(editor).button);\n\t\t\n\t\tJButton removeTargetButton = new JButton(\"Remove Target\");\n\t\tremoveTargetButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttargetFieldX.setText(\"\");\n\t\t\t\ttargetFieldY.setText(\"\");\n\t\t\t\teditor.targetIcon.setVisible(false);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmenu.add(removeTargetButton);\n\t\t\n\t\tfinal CyclicButtonGroup cyclicButtons = new CyclicButtonGroup();\n\t\t\n\t\tJRadioButton nonCyclicButton = new JRadioButton(\"Set to non-cyclic\");\n\t\tnonCyclicButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tcyclicButtons.beginningOfCycle.data.cycleStart = false;\n\t\t\t\t\tcyclicButtons.beginningOfCycle = null;\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tcyclicButtons.add(nonCyclicButton);\n\t\t\n\t\tfinal JButton addActionButton = new JButton(\"Add Action\");\n\t\t\n\t\tmenu.add(addActionButton);\n\t\tmenu.add(nonCyclicButton);\n\t\t\n\t\taddActionButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif (actionButtonGroup.getSelection() == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please select an action type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tFloat headingValue = null;\n\t\t\t\tInteger lengthValue = null;\n\t\t\t\tInteger counterValue = null;\n\t\t\t\tInteger targetValueX = null;\n\t\t\t\tInteger targetValueY = null;\n\t\t\t\tboolean noTarget = false;\n\t\t\t\ttry {\n\t\t\t\t\ttargetValueX = Integer.parseInt(targetFieldX.getText());\n\t\t\t\t\ttargetValueY = Integer.parseInt(targetFieldY.getText());\n\t\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\t\tnoTarget = true;\n\t\t\t\t}\n\t\t\t\tif (headingField.getText() == null || !isValidHeading(headingField.getText())) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a heading value greater than or equal to 0 and less than 360\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\theadingValue = Float.parseFloat(headingField.getText());\n\t\t\t\t}\n\t\t\t\tif (lengthField.getText() == null || !isValidLength(lengthField.getText())) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter an integer length value greater than 0\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlengthValue = Integer.parseInt(lengthField.getText());\n\t\t\t\t}\n\t\t\t\tif (counterField.getText() == null || !isValidCounter(counterField.getText(), Integer.parseInt(lengthField.getText()))) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter an integer counter value greater than 0 and less than the length value\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcounterValue = Integer.parseInt(counterField.getText());\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tActionMetadata data = new ActionMetadata(actionButtonGroup.getSelection().getActionCommand(),\n\t\t\t\t\t\theadingValue, lengthValue, counterValue, false, targetValueX, targetValueY);\n\t\t\t\t((TreeSite) object).actionQueue.add(data);\n\t\t\t\tcreateActionPanel(cyclicButtons, data);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tfor (ActionMetadata metadata : ((TreeSite) object).actionQueue) {\n\t\t\tcreateActionPanel(cyclicButtons, metadata);\n\t\t}\n\t\t\n\t}",
"private void updateMenuItems()\r\n\t {\r\n\t\t setListAdapter(new ArrayAdapter<String>(this,\r\n\t\t android.R.layout.simple_list_item_1, home_menu));\r\n\t\t \t \r\n\t }",
"private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}",
"public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem);\n\t}",
"public void initializeMenuItems() {\n\t\tuserMenuButton = new MenuButton();\n\t\tmenu1 = new MenuItem(bundle.getString(\"mVmenu1\")); //\n\t\tmenu2 = new MenuItem(bundle.getString(\"mVmenu2\")); //\n\t}",
"public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }",
"@Override\n\t\tpublic void openMenu() {\n\t\t}",
"public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }",
"private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }",
"@Override\n public void create(SwipeMenu menu) {\n switch (menu.getViewType()) {\n case 0:\n createMenu1(menu);\n break;\n case 1:\n createMenu2(menu);\n break;\n case 2:\n createMenu3(menu);\n break;\n }\n }",
"public void setMenu() {\n\t \n\t\ttop = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t add(top, BorderLayout.CENTER);\n\t \n\t lPro = new JLabel(\"Projects: \");\n\t top.add(lPro);\n\t \n\t cPro = new JComboBox();\n\t getProject();\n\t\ttop.add(cPro);\n\t\t\n\t\tview = new JButton(\"View Sample\");\n\t\ttop.add(view);\n\t\t\n\t\tbottom = new JPanel(new FlowLayout(FlowLayout.CENTER));\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tcancel = new JButton(\"Cancel\");\n\t\tbottom.add(cancel);\n\t\t\n\t\tdownload = new JButton(\"Download\");\n\t\tbottom.add(download);\n\t\t\n\t\tsetActionListener();\t\n\t}",
"public MainMenuView() {\r\n super(\"\\n\" +\r\n \"**************************\\n\" +\r\n \"* CIT 360 - Technologies *\\n\" +\r\n \"**************************\\n\" +\r\n \" 1 - Java Collections\\n\" +\r\n \" 2 - Threads, Executors and Runnables\\n\" +\r\n \" 3 - Application Controller Pattern\\n\" +\r\n \" 4 - MVC\\n\" + \r\n \" 5 - Hibernate\\n\" +\r\n \" 6 - JSON\\n\" +\r\n \" 7 - HttpURLConnection\\n\" +\r\n \" 8 - Quit\\n\", \r\n 8);\r\n }",
"private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}",
"private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}",
"public void initMenu(){\n\t}",
"public void mainMenu(View view) {\n\t\t\n\t\t// Temporary save if any changes are made, so we can display\n\t\t// to the user later.\n\t\tLockedDocument mlocked = mObjects.getLockedDoc();\n\t\tif (mlocked != null) {\n\t\t\tmlocked.setTitle(text1.getText().toString());\n\t\t\tmlocked.setContents(text2.getText().toString());\n\t\t}\n \tIntent intent = new Intent().setClass(this, CollaboratorAndroidActivity.class);\n \tstartActivity(intent);\n }",
"@Override\n public void create(SwipeMenu menu) {\n switch (menu.getViewType()) {\n case VIEW_TYPE_1:\n createMenu1(menu);\n break;\n case VIEW_TYPE_2:\n createMenu2(menu);\n break;\n case VIEW_TYPE_3:\n createMenu3(menu);\n break;\n }\n }",
"void createMenus(Container cp) {\r\n createMenu4Shape(cp);\r\n createMenu4Color(cp);\r\n createMenu4Filled(cp);\r\n createButtons(cp);\r\n }",
"public void createmenu(){\n\n\n Context context = getApplicationContext();\n menuadpater = new MenuAdapter(context);\n\n MENULIST.setAdapter(menuadpater);\n\n\n }",
"@Override\r\n\tpublic void setContentMenu() {\n\r\n\t}",
"protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}",
"public void generateMenu(){\n\t\tmenuBar = new JMenuBar();\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tJMenu tools = new JMenu(\"Tools\");\n\t\tJMenu help = new JMenu(\"Help\");\n\n\t\tJMenuItem open = new JMenuItem(\"Open \");\n\t\tJMenuItem save = new JMenuItem(\"Save \");\n\t\tJMenuItem exit = new JMenuItem(\"Exit \");\n\t\tJMenuItem preferences = new JMenuItem(\"Preferences \");\n\t\tJMenuItem about = new JMenuItem(\"About \");\n\n\n\t\tfile.add(open);\n\t\tfile.add(save);\n\t\tfile.addSeparator();\n\t\tfile.add(exit);\n\t\ttools.add(preferences);\n\t\thelp.add(about);\n\n\t\tmenuBar.add(file);\n\t\tmenuBar.add(tools);\n\t\tmenuBar.add(help);\n\t}",
"private static JMenu getViewMenu(final EnvironmentFrame frame) {\n\t\tfinal Environment environment = frame.getEnvironment();\n\t\tfinal JMenu menu = new JMenu(\"View\");\n\t\tfinal Serializable object = environment.getObject();\n\t\tif (AutomatonAction.isApplicable(object)) {\n\t\t\tfinal Automaton automaton = (Automaton) object;\n\t\t\tfinal LayoutStorageAction store = new LayoutStorageAction(\"Save Current Graph Layout\",\n\t\t\t\t\t\"Restore Saved Graph Layout\", automaton);\n\t\t\tmenu.add(store);\n\t\t\tmenu.add(store.getRestoreAction());\n\n\t\t\tJMenu viewMenu, subMenu;\n\t\t\tviewMenu = new JMenu(\"Move Vertices\");\n\t\t\tsubMenu = new JMenu(\"Reflect Across Line...\");\n\t\t\tsubMenu.add(new LayoutAlgorithmAction(\"Horizontal Line Through Center\", automaton, environment,\n\t\t\t\t\tVertexMover.HORIZONTAL_CENTER));\n\t\t\tsubMenu.add(new LayoutAlgorithmAction(\"Vertical Line Through Center\", automaton, environment,\n\t\t\t\t\tVertexMover.VERTICAL_CENTER));\n\t\t\tsubMenu.add(new LayoutAlgorithmAction(\"Diagonal From Upper-Left To Lower-Right\", automaton, environment,\n\t\t\t\t\tVertexMover.POSITIVE_SLOPE_DIAGONAL));\n\t\t\tsubMenu.add(new LayoutAlgorithmAction(\"Diagonal From Lower-Left To Upper-Right\", automaton, environment,\n\t\t\t\t\tVertexMover.NEGATIVE_SLOPE_DIAGONAL));\n\t\t\tviewMenu.add(subMenu);\n\t\t\tviewMenu.add(new LayoutAlgorithmAction(\"Rotate The Graph\", automaton, environment, VertexMover.ROTATE));\n\t\t\tviewMenu.add(new LayoutAlgorithmAction(\"Fill Screen With Graph\", automaton, environment, VertexMover.FILL));\n\t\t\tmenu.add(viewMenu);\n\n\t\t\tmenu.add(new LayoutAlgorithmAction(\"Apply A Random Layout Algorithm\", automaton, environment,\n\t\t\t\t\tLayoutAlgorithmFactory.RANDOM_CHOICE));\n\t\t\tviewMenu = new JMenu(\"Apply A Specific Layout Algorithm\");\n\t\t\tviewMenu.add(new LayoutAlgorithmAction(\"Circle\", automaton, environment, LayoutAlgorithmFactory.CIRCLE));\n\t\t\tviewMenu.add(new LayoutAlgorithmAction(\"GEM\", automaton, environment, LayoutAlgorithmFactory.GEM));\n\t\t\tviewMenu.add(new LayoutAlgorithmAction(\"Random\", automaton, environment, LayoutAlgorithmFactory.RANDOM));\n\t\t\tviewMenu.add(new LayoutAlgorithmAction(\"Spiral\", automaton, environment, LayoutAlgorithmFactory.SPIRAL));\n\t\t\tsubMenu = new JMenu(\"Tree\");\n\t\t\tsubMenu.add(\n\t\t\t\t\tnew LayoutAlgorithmAction(\"Degree\", automaton, environment, LayoutAlgorithmFactory.TREE_DEGREE));\n\t\t\tsubMenu.add(new LayoutAlgorithmAction(\"Hierarchy\", automaton, environment,\n\t\t\t\t\tLayoutAlgorithmFactory.TREE_HIERARCHY));\n\t\t\tviewMenu.add(subMenu);\n\t\t\tviewMenu.add(\n\t\t\t\t\tnew LayoutAlgorithmAction(\"Two Circle\", automaton, environment, LayoutAlgorithmFactory.TWO_CIRCLE));\n\t\t\tmenu.add(viewMenu);\n\t\t\t// menu.add(new StateColorSelector(automaton,environment,menu));\n\t\t}\n\t\treturn menu;\n\t}",
"public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}",
"private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}",
"@Override\n public void create(SwipeMenu menu) {\n switch (menu.getViewType()) {\n case 0:\n createMenu1(menu);\n break;\n case 1:\n createMenu2(menu);\n break;\n\n }\n }",
"public void setupMenuItems(){\n\n MenuItem[] items = {\n new MenuItem(R.string.menu_item_one, R.drawable.paye_icon),\n new MenuItem(R.string.menu_item_two, R.drawable.mortgage_icon),\n new MenuItem(R.string.menu_item_three, R.drawable.mortgage_icon),\n new MenuItem(R.string.menu_item_four, R.drawable.mortgage_icon),\n new MenuItem(R.string.menu_item_five, R.drawable.mortgage_icon),\n new MenuItem(R.string.menu_item_six, R.drawable.mortgage_icon)\n };\n\n GridView menuGrid = (GridView) findViewById(R.id.menu_grid);\n MainPageAdapter mainPageAdapter = new MainPageAdapter(this, items);\n menuGrid.setAdapter(mainPageAdapter);\n\n menuGrid.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n\n switch(position) {\n case 0:\n getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, new PayeFragment()).addToBackStack(null).commit();\n break;\n }\n\n }\n });\n }",
"@Override\n public void create(SwipeMenu menu) {\n SwipeMenuItem item1 = new SwipeMenuItem(\n getApplicationContext());\n item1.setBackground(new ColorDrawable(Color.DKGRAY));\n // set width of an option (px)\n item1.setWidth(200);\n item1.setTitle(\"Action 1\");\n item1.setTitleSize(18);\n item1.setTitleColor(Color.WHITE);\n menu.addMenuItem(item1);\n\n SwipeMenuItem item2 = new SwipeMenuItem(\n getApplicationContext());\n // set item background\n item2.setBackground(new ColorDrawable(Color.RED));\n item2.setWidth(200);\n item2.setTitle(\"Action 2\");\n item2.setTitleSize(18);\n item2.setTitleColor(Color.WHITE);\n menu.addMenuItem(item2);\n }",
"public menuPrincipalView() {\n initComponents();\n }",
"private void setUpMenu() {\n resideMenu = new ResideMenu(this);\n resideMenu.setBackground(R.drawable.menu_background);\n resideMenu.attachToActivity(this);\n\n //resideMenu.setMenuListener(menuListener);\n //scaling activity slide ke menu\n resideMenu.setScaleValue(0.7f);\n\n itemHome = new ResideMenuItem(this, R.drawable.ic_home, \"Home\");\n itemProfile = new ResideMenuItem(this, R.drawable.ic_profile, \"Profile\");\n //itemCalendar = new ResideMenuItem(this, R.drawable.ic_calendar, \"Calendar\");\n itemSchedule = new ResideMenuItem(this, R.drawable.ic_schedule, \"Schedule\");\n //itemExams = new ResideMenuItem(this, R.drawable.ic_exams, \"Exams\");\n //itemSettings = new ResideMenuItem(this, R.drawable.ic_setting, \"Settings\");\n //itemChat = new ResideMenuItem(this, R.drawable.ic_chat, \"Chat\");\n //itemTask = new ResideMenuItem(this, R.drawable.ic_task, \"Task\");\n\n\n resideMenu.addMenuItem(itemHome, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemProfile, ResideMenu.DIRECTION_LEFT);\n // resideMenu.addMenuItem(itemCalendar, ResideMenu.DIRECTION_LEFT);\n resideMenu.addMenuItem(itemSchedule, ResideMenu.DIRECTION_LEFT);\n //resideMenu.addMenuItem(itemExams, ResideMenu.DIRECTION_LEFT);\n //resideMenu.addMenuItem(itemTask, ResideMenu.DIRECTION_LEFT);\n //resideMenu.addMenuItem(itemChat, ResideMenu.DIRECTION_LEFT);\n //resideMenu.addMenuItem(itemSettings, ResideMenu.DIRECTION_LEFT);\n\n // matikan slide ke kanan\n resideMenu.setSwipeDirectionDisable(ResideMenu.DIRECTION_RIGHT);\n\n itemHome.setOnClickListener(this);\n itemSchedule.setOnClickListener(this);\n itemProfile.setOnClickListener(this);\n //itemSettings.setOnClickListener(this);\n\n\n }",
"private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tmenu.add(group1Id, Edit, Edit, \"Edit\");\n\t\t\tmenu.add(group1Id, Delete, Delete, \"Delete\");\n\t\t\tmenu.add(group1Id, Finish, Finish, \"Finish\");\n\t\t\treturn super.onCreateOptionsMenu(menu); \n\t\t}",
"private void placeActions() {\n IActionBars actionBars = getViewSite().getActionBars();\n\n // first in the menu\n IMenuManager menuManager = actionBars.getMenuManager();\n menuManager.add(mCreateFilterAction);\n menuManager.add(mEditFilterAction);\n menuManager.add(mDeleteFilterAction);\n menuManager.add(new Separator());\n menuManager.add(mClearAction);\n menuManager.add(new Separator());\n menuManager.add(mExportAction);\n\n // and then in the toolbar\n IToolBarManager toolBarManager = actionBars.getToolBarManager();\n for (CommonAction a : mLogLevelActions) {\n toolBarManager.add(a);\n }\n toolBarManager.add(new Separator());\n toolBarManager.add(mCreateFilterAction);\n toolBarManager.add(mEditFilterAction);\n toolBarManager.add(mDeleteFilterAction);\n toolBarManager.add(new Separator());\n toolBarManager.add(mClearAction);\n }",
"@Override\n public void onClick(View view) {\n clearItemData();\n set_view_for(1);\n getSellMenuId();\n\n\n }",
"private void setItemMenu() {\n choices = new ArrayList<>();\n \n choices.add(Command.INFO);\n if (item.isUsable()) {\n choices.add(Command.USE);\n }\n if (item.isEquipped()) {\n choices.add(Command.UNEQUIP);\n } else {\n if (item.isEquipable()) {\n choices.add(Command.EQUIP);\n }\n }\n \n if (item.isActive()) {\n choices.add(Command.UNACTIVE);\n } else {\n if (item.isActivable()) {\n choices.add(Command.ACTIVE);\n }\n }\n if (item.isDropable()) {\n choices.add(Command.DROP);\n }\n if (item.isPlaceable()) {\n choices.add(Command.PLACE);\n }\n choices.add(Command.DESTROY);\n choices.add(Command.CLOSE);\n \n this.height = choices.size() * hItemBox + hGap * 2;\n }",
"public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }",
"public MenuItemView(float x, float y, float width, float height,\n\t\t\tApplication app, MenuItem menuItem, int indexInArray) {\n\t\tsuper(app);\n\t\t\n\t\tthis.translate(new Vector3D(x,y));\n\t\tmenuItemView = new MTRectangle(width, height, app);\n\t\tbgImage = app.loadImage(menuItem.getImgPath());\n\t\tmenuItemView.setTexture(bgImage);\n\t\tmenuItemView.setNoStroke(true);\n\t\tthis.addChild(menuItemView);\n\t\t\n\t\tmenuItemViewColored = new MTRectangle(width, height, app);\n\t\tbgImageColor = app.loadImage(menuItem.getMenuImgPathColor());\n\t\tmenuItemViewColored.setTexture(bgImageColor);\n\t\tmenuItemViewColored.setFillColor(new MTColor(255, 255, 255, 0));\n\t\tmenuItemViewColored.setNoStroke(true);\n\t\tthis.addChild(menuItemViewColored);\n\t\tcolored = false;\n\t\t\n\t\tMTRectangle transBox = new MTRectangle(0, height / 15 * 11, width,\n\t\t\t\theight / 15 * 4, app);\n\t\ttransBox.setFillColor(app.getTransparantBlack());\n\t\ttransBox.setNoStroke(true);\n\t\tthis.addChild(transBox);\n\t\t\n\t\tMTTextArea textBox = new MTTextArea(app, app.getFontTitle());\n\t\tthis.addChild(textBox);\n\n\t\ttextBox.setNoFill(true);\n\t\ttextBox.setNoStroke(true);\n\t\ttextBox.setText(menuItem.getName());\n\t\ttextBox.setPositionRelativeToParent(new Vector3D(width / 2,\n\t\t\t\theight/10 * 8.5f));\n\t\t\n\t\tfinal MTComponent component = this;\n\t\tfor (MTComponent comp : this.getChildren()) {\n\t\t\tcomp.removeAllGestureEventListeners();\n\t\t\tcomp.addGestureListener(DragProcessor.class,\n\t\t\t\t\tnew IGestureEventListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean processGestureEvent(MTGestureEvent ge) {\n\t\t\t\t\tge.setTargetComponent(component);\n\t\t\t\t\tcomponent.processGestureEvent(ge);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tcomp.registerInputProcessor(new TapProcessor(app));\n\t\t\tcomp.addGestureListener(TapProcessor.class, \n\t\t\t\t\tnew IGestureEventListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic boolean processGestureEvent(MTGestureEvent ge) {\n\t\t\t\t\tcomponent.processGestureEvent(ge);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\tarrow = new ArrowUp(app);\n\t\tthis.addChild(arrow);\n\t\tarrow.setPositionRelativeToParent(new Vector3D(width / 2,\n\t\t\t\tapp.height / 20 * 19));\n\t\t\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\r\n\t\tfor(int i=0;i<menu.size();i++)\r\n\t\t{\r\n\t\t\tif(menu.getItem(i).getItemId()!=R.id.action_childName)\r\n\t\t\t\tmenu.getItem(i).setVisible(true);\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmenu.findItem(R.id.action_childName).setTitle(StaticVariables.currentChild.getFirstName());\r\n\t\t\t\tmenu.getItem(i).setVisible(true);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\r\n\t}",
"public void viewMenu() {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\tmm.clear();\n\n\t\t\tmm = (ArrayList<AlacarteMenu>) ois.readObject();\n\n\t\t\tString leftAlignFormat = \"| %-10s | %-37s | %-5s | %-12s | %n\";\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\n\t\t\t\n\t\t\tCollections.sort(mm); \n\t\t\tfor (AlacarteMenu item : mm) {\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\n\t\t\t\tSystem.out.format(leftAlignFormat, item.getMenuName(), item.getMenuDesc(), item.getMenuPrice(),\n\t\t\t\t\t\titem.getMenuType());\n\t\t\t}\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (IOException e) {\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"private JMenu getMnuView() {\r\n\t\tif (mnuView == null) {\r\n\t\t\tmnuView = new JMenu();\r\n\t\t\tmnuView.setText(\"View\");\r\n\t\t\tmnuView.add(getMnuGoTo());\r\n\t\t\tmnuView.add(getSepView1());\r\n\t\t\tmnuView.add(getMniDebug());\r\n\t\t\tmnuView.add(getMniAutoRun());\r\n\t\t\tmnuView.add(getMniViewVXML());\r\n\t\t\tmnuView.add(getMniViewJS());\r\n\t\t}\r\n\t\treturn mnuView;\r\n\t}",
"public void generateMenu () \n {\n mCoffeeList = mbdb.getCoffeeMenu();\n for(int i =0;i<mCoffeeList.size();i++){\n coffeeTypeCombo.addItem(mCoffeeList.get(i).toString());\n }\n mWaffleList = mbdb.getWaffleMenu();\n for(int j =0;j<mWaffleList.size();j++){\n waffleTypeCombo.addItem(mWaffleList.get(j).toString());\n }\n }",
"private void buildMenu() {\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n\n JMenu fileMenu = new JMenu(\"File\");\n fileMenu.addMenuListener(this);\n\n JMenuItem openItem = new JMenuItem(\"Open\");\n openItem.setEnabled(false);\n JMenuItem newItem = new JMenuItem(\"New\");\n newItem.setEnabled(false);\n saveItem = new JMenuItem(\"Save\");\n saveItem.setEnabled(false);\n saveAsItem = new JMenuItem(\"Save As\");\n saveAsItem.setEnabled(false);\n reloadCalItem = new JMenuItem(RELOAD_CAL);\n exitItem = new JMenuItem(EXIT);\n\n mbar.add(makeMenu(fileMenu, new Object[]{newItem, openItem, null,\n reloadCalItem, null,\n saveItem, saveAsItem, null, exitItem}, this));\n\n JMenu viewMenu = new JMenu(\"View\");\n mbar.add(viewMenu);\n JMenuItem columnItem = new JMenuItem(COLUMNS);\n columnItem.addActionListener(this);\n JMenuItem logItem = new JMenuItem(LOG);\n logItem.addActionListener(this);\n JMenu satMenu = new JMenu(\"Satellite Image\");\n JMenuItem irItem = new JMenuItem(INFRA_RED);\n irItem.addActionListener(this);\n JMenuItem wvItem = new JMenuItem(WATER_VAPOUR);\n wvItem.addActionListener(this);\n satMenu.add(irItem);\n satMenu.add(wvItem);\n viewMenu.add(columnItem);\n viewMenu.add(logItem);\n viewMenu.add(satMenu);\n\n observability = new JCheckBoxMenuItem(\"Observability\", true);\n observability.setToolTipText(\"Check that the source is observable.\");\n remaining = new JCheckBoxMenuItem(\"Remaining\", true);\n remaining.setToolTipText(\n \"Check that the MSB has repeats remaining to be observed.\");\n allocation = new JCheckBoxMenuItem(\"Allocation\", true);\n allocation.setToolTipText(\n \"Check that the project still has sufficient time allocated.\");\n\n String ZOA = System.getProperty(\"ZOA\", \"true\");\n boolean tickZOA = true;\n if (\"false\".equalsIgnoreCase(ZOA)) {\n tickZOA = false;\n }\n\n zoneOfAvoidance = new JCheckBoxMenuItem(\"Zone of Avoidance\", tickZOA);\n localQuerytool.setZoneOfAvoidanceConstraint(!tickZOA);\n\n disableAll = new JCheckBoxMenuItem(\"Disable All\", false);\n JMenuItem cutItem = new JMenuItem(\"Cut\",\n new ImageIcon(ClassLoader.getSystemResource(\"cut.gif\")));\n cutItem.setEnabled(false);\n JMenuItem copyItem = new JMenuItem(\"Copy\",\n new ImageIcon(ClassLoader.getSystemResource(\"copy.gif\")));\n copyItem.setEnabled(false);\n JMenuItem pasteItem = new JMenuItem(\"Paste\",\n new ImageIcon(ClassLoader.getSystemResource(\"paste.gif\")));\n pasteItem.setEnabled(false);\n\n mbar.add(makeMenu(\"Edit\",\n new Object[]{\n cutItem,\n copyItem,\n pasteItem,\n null,\n makeMenu(\"Constraints\", new Object[]{observability,\n remaining, allocation, zoneOfAvoidance, null,\n disableAll}, this)}, this));\n\n mbar.add(SampClient.getInstance().buildMenu(this, sorter, table));\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic('H');\n\n mbar.add(makeMenu(helpMenu, new Object[]{new JMenuItem(INDEX, 'I'),\n new JMenuItem(ABOUT, 'A')}, this));\n\n menuBuilt = true;\n }",
"private void makeUtilitiesMenu() {\r\n\t\tJMenu utilitiesMnu = new JMenu(\"Utilidades\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Reportes\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Reportes\",\r\n\t\t\t\t\timageLoader.getImage(\"reports.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'r',\r\n\t\t\t\t\t\"Ver los reportes del sistema\", null,\r\n\t\t\t\t\tReports.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"ConsultarPrecios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Consultar Precios\",\r\n\t\t\t\t\timageLoader.getImage(\"money.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'p',\r\n\t\t\t\t\t\"Consultar los precios de los productos\", null,\r\n\t\t\t\t\tPriceRead.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Calculadora\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Calculadora Impuesto\",\r\n\t\t\t\t\timageLoader.getImage(\"pc.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'c',\r\n\t\t\t\t\t\"Calculadora de impuesto\", null, Calculator.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tutilitiesMnu.addSeparator();\r\n\t\tif (StoreCore.getAccess(\"Categorias\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Categorias Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"group.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'i',\r\n\t\t\t\t\t\"Manejar las categorias del inventario\", null, Groups.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Impuestos\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Impuestos\");\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 't',\r\n\t\t\t\t\t\"Manejar el listado de impuestos\", null, Tax.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Ciudades\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ciudades\");\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'u',\r\n\t\t\t\t\t\"Manejar el listado de ciudades\", null, City.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tutilitiesMnu.setMnemonic('u');\r\n\t\t\tadd(utilitiesMnu);\r\n\t\t}\r\n\t}",
"private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_view_detail, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu2, menu);\n this.menu=menu;\n if(idName!=null) {menu.getItem(1).setVisible(false);\n menu.getItem(2).setVisible(true);}\n if(create) menu.getItem(0).setVisible(false);\n else menu.getItem(0).setVisible(true);\n /* if(extrasBundle!=null) if(extrasBundle.getBoolean(\"From Option\")==true) {\n menu.getItem(1).setVisible(false);\n menu.getItem(0).setVisible(true);\n\n }*/\n return true;\n }",
"public void buildMenu() {\n\t\tthis.Menu = new uPanel(this.layer, 0, 0, (int) (this.getWidth() * 2), (int) (this.getHeight() * 3)) {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean handleEvent(uEvent event) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick() {\r\n\t\t\t\tsuper.onClick();\r\n\t\t\t\tthis.space.sortLayer(this.layer);\r\n\t\t\t\tthis.castEvent(\"MENUPANEL_CLICK\");\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.screen.addPrehide(this.Menu);\r\n\r\n\t\tthis.Node.addChild(this.Menu.getNode());\r\n\r\n\t}",
"public JMTMenuBar createMenu() {\r\n \t\tJMTMenuBar menu = new JMTMenuBar(JMTImageLoader.getImageLoader());\r\n \t\t// File menu\r\n \t\tMenuAction action = new MenuAction(\"File\", new AbstractJmodelAction[] { newModel, openModel, saveModel, saveModelAs, closeModel, null, exit });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Edit menu\r\n \t\taction = new MenuAction(\"Edit\", new AbstractJmodelAction[] {\r\n \t\t// editUndo, editRedo, null\r\n \t\t\t\tactionCut, actionCopy, actionPaste, actionDelete, null, takeScreenShot });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Define menu\r\n \t\taction = new MenuAction(\"Define\",\r\n \t\t\t\tnew AbstractJmodelAction[] { editUserClasses, editMeasures, editSimParams, editPAParams, null, editDefaults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Solve menu\r\n \t\taction = new MenuAction(\"Solve\", new AbstractJmodelAction[] { simulate, pauseSimulation, stopSimulation, null, switchToExactSolver, null,\r\n \t\t\t\tshowResults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Help menu\r\n \t\taction = new MenuAction(\"Help\", new AbstractJmodelAction[] { openHelp, null, about });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\treturn menu;\r\n \t}",
"public void refreshMenu() {\n\t\tthis.Menu.setSize(this.Menu.getWidth(), this.Items.size() * (this.textSize + 4) + 4);\r\n\t\tthis.Menu.Camera.setPosition(0, 0);\r\n\t\tthis.anchorX();\r\n\t\tthis.anchorY();\r\n\t\t//println(\"----------\");\r\n\t\tthis.Menu.reposition((int) menuAnchor.x, (int) menuAnchor.y);\r\n\r\n\t\tfor (uTextButton t : this.Items) {\r\n\t\t\tt.setPosition(t.getX(), (this.Items.indexOf(t) * t.getHeight()));\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\r\n\t\tfor(int i=0;i<menu.size();i++)\r\n\t\t{\r\n\t\t\tif(menu.getItem(i).getItemId()!=R.id.action_childName)\r\n\t\t\t\tmenu.getItem(i).setVisible(false);\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmenu.findItem(R.id.action_childName).setTitle(StaticVariables.currentChild.getFirstName());\r\n\t\t\t\tmenu.getItem(i).setVisible(true);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\r\n\t}",
"@Override\n \tpublic boolean onPrepareOptionsMenu(Menu menu) {\n \t\tmenu.clear();\n \t\tswitch (mViewFlipper.getDisplayedChild()) {\n \t\tcase 0:\n \t\t\tmenu.add(Menu.NONE, Menu.FIRST + 4, 4, getString(R.string.omenuitem_reglogin)).setIcon(R.drawable.ic_menu_login);\n \t\t\tmenu.add(Menu.NONE, Menu.FIRST + 5, 5, getString(R.string.omenuitem_quit)).setIcon(android.R.drawable.ic_menu_close_clear_cancel);\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\tif (mBrowPage.isDooming()) {\n \t\t\t\tmenu.add(Menu.NONE, Menu.FIRST + 1, 1, R.string.label_browse).setIcon(android.R.drawable.ic_menu_zoom);\n \t\t\t} else {\n \t\t\t\tmenu.add(Menu.NONE, Menu.FIRST + 1, 1, R.string.label_zoom).setIcon(android.R.drawable.ic_menu_zoom);\n \t\t\t}\n \t\t\tmenu.add(Menu.NONE, Menu.FIRST + 2, 1, R.string.label_reset).setIcon(android.R.drawable.ic_menu_revert);\n \t\t\tmenu.add(Menu.NONE, Menu.FIRST + 3, 1, R.string.label_refresh).setIcon(R.drawable.ic_menu_refresh);\n \t\t\tbreak;\n \t\tcase 2:\n \t\t\tbreak;\n \t\t}\n \t\tmenu.add(Menu.NONE, Menu.FIRST + 6, 6, getString(R.string.omenuitem_about)).setIcon(android.R.drawable.ic_menu_help);\n \n \t\treturn super.onPrepareOptionsMenu(menu);\n \t}",
"@Override\n public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { // Add Items to menu\n if (v.getId() == R.id.listView) {\n String[] menuItems = getResources().getStringArray(R.array.menu);\n for (int i = 0; i < menuItems.length; i++) {\n menu.add(Menu.NONE, i, i, menuItems[i]);\n }\n }\n }",
"@Override\n\t\t\tpublic void create(SwipeMenu menu) {\n\t\t\t\tSwipeMenuItem openItem = new SwipeMenuItem(getActivity()\n\t\t\t\t\t\t.getApplicationContext());\n\t\t\t\topenItem.setWidth(dp2px(60));\n\t\t\t\topenItem.setIcon(R.drawable.list_delete);\n\t\t\t\topenItem.setBackground(R.color.deep_pink);\n\t\t\t\tmenu.addMenuItem(openItem);\n\n\t\t\t\t// Edit Item\n\t\t\t\tSwipeMenuItem editItem = new SwipeMenuItem(getActivity()\n\t\t\t\t\t\t.getApplicationContext());\n\t\t\t\teditItem.setBackground(R.color.deep_yellow);\n\t\t\t\teditItem.setWidth(dp2px(60));\n\t\t\t\teditItem.setIcon(R.drawable.total_swipeedit);\n\t\t\t\tmenu.addMenuItem(editItem);\n\n\t\t\t}",
"public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}",
"private void setupMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t// Build the first menu.\n\t\tJMenu menu = new JMenu(Messages.getString(\"Gui.File\")); //$NON-NLS-1$\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenuBar.add(menu);\n\n\t\t// a group of JMenuItems\n\t\tJMenuItem menuItem = new JMenuItem(openAction);\n\t\tmenu.add(menuItem);\n\n\t\t// menuItem = new JMenuItem(openHttpAction);\n\t\t// menu.add(menuItem);\n\n\t\t/*\n\t\t * menuItem = new JMenuItem(crudAction); menu.add(menuItem);\n\t\t */\n\n\t\tmenuItem = new JMenuItem(showLoggingFrameAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(quitAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuBar.add(menu);\n\n\t\tJMenu optionMenu = new JMenu(Messages.getString(\"Gui.Options\")); //$NON-NLS-1$\n\t\tmenuItem = new JCheckBoxMenuItem(baselineModeAction);\n\t\toptionMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(toggleButtonsAction);\n\t\toptionMenu.add(menuItem);\n\n\t\tmenuBar.add(optionMenu);\n\t\tJMenu buttonMenu = new JMenu(Messages.getString(\"Gui.Buttons\")); //$NON-NLS-1$\n\t\tmenuItem = new JMenuItem(wrongAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(attendingAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(independentAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(verbalAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(modelingAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(noAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuBar.add(buttonMenu);\n\t\tframe.setJMenuBar(menuBar);\n\n\t\tframe.pack();\n\n\t\tframe.setVisible(true);\n\t}",
"private void makeToolsMenu() {\r\n\t\tJMenu toolsMnu = new JMenu(\"Herramientas\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Usuarios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Manejo de Usuarios\",\r\n\t\t\t\t\timageLoader.getImage(\"users.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'm',\r\n\t\t\t\t\t\"Manejar los usuarios del sistema\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F7, 0), Users.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"FacturacionManual\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Facturacion Manual\",\r\n\t\t\t\t\timageLoader.getImage(\"kwrite.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'f',\r\n\t\t\t\t\t\"Manejar la Facturacion Manual\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F3, 0), ManualInvoice.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\ttoolsMnu.setMnemonic('h');\r\n\t\t\tadd(toolsMnu);\r\n\t\t}\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_create_view_group, menu);\n return true;\n }",
"private void createMenusNow()\n {\n JMenu debugMenu = myToolbox.getUIRegistry().getMenuBarRegistry().getMenu(MenuBarRegistry.MAIN_MENU_BAR,\n MenuBarRegistry.DEBUG_MENU);\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Print Summary\", e -> printSummary()));\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Tag Data Type\", e -> tagDataType()));\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\tsuper.onCreateOptionsMenu(menu, inflater);\n\tinflater.inflate(R.menu.menu_main, menu);\n\tmenu.findItem(R.id.action_edit).setVisible(false);\n\tmenu.findItem(R.id.action_share).setVisible(false);\n\tmenu.findItem(R.id.action_settings).setVisible(true);\n }",
"public void initializeMenuItems() {\n menuItems = new LinkedHashMap<TestingOption, MenuDrawerItem>();\n menuItems.put(TestingOption.TESTING_OPTION, create(TestingOption.TESTING_OPTION, getResources().getString(R.string.testing_section).toUpperCase(), MenuDrawerItem.SECTION_TYPE));\n menuItems.put(TestingOption.ANNOTATION_OPTION, create(TestingOption.ANNOTATION_OPTION, getResources().getString(R.string.option_annotation_POI), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VIEW_SETTINGS_OPTION, create(TestingOption.MAP_VIEW_SETTINGS_OPTION, getResources().getString(R.string.option_map_view_settings), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_CACHE_OPTION, create(TestingOption.MAP_CACHE_OPTION, getResources().getString(R.string.option_map_cache), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.LAST_RENDERED_FRAME_OPTION, create(TestingOption.LAST_RENDERED_FRAME_OPTION, getResources().getString(R.string.option_last_rendered_frame), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, create(TestingOption.ANIMATION_CUSTOM_VIEW_OPTION, getResources().getString(R.string.option_ccp_animation_custom_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.BOUNDING_BOX_OPTION, create(TestingOption.BOUNDING_BOX_OPTION, getResources().getString(R.string.option_bounding_box), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.INTERNALIZATION_OPTION, create(TestingOption.INTERNALIZATION_OPTION, getResources().getString(R.string.option_internalization), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ANIMATE_OPTION, create(TestingOption.ANIMATE_OPTION, getResources().getString(R.string.option_animate), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_STYLE_OPTION, create(TestingOption.MAP_STYLE_OPTION, getResources().getString(R.string.option_map_style), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.SCALE_VIEW_OPTION, create(TestingOption.SCALE_VIEW_OPTION, getResources().getString(R.string.option_scale_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.CALLOUT_VIEW_OPTION, create(TestingOption.CALLOUT_VIEW_OPTION, getResources().getString(R.string.option_callout_view), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTING_OPTION, create(TestingOption.ROUTING_OPTION, getResources().getString(R.string.option_routing), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.ROUTE_WITH_POINTS, create(TestingOption.ROUTE_WITH_POINTS, getResources().getString(R.string.option_routing_with_points),MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.MAP_VERSION_OPTION, create(TestingOption.MAP_VERSION_OPTION, getResources().getString(R.string.option_map_version_information), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.OVERLAYS_OPTION, create(TestingOption.OVERLAYS_OPTION, getResources().getString(R.string.option_overlays), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POI_TRACKER, create(TestingOption.POI_TRACKER, getResources().getString(R.string.option_poi_tracker), MenuDrawerItem.ITEM_TYPE));\n menuItems.put(TestingOption.POSITION_LOGGING_OPTION, create(TestingOption.POSITION_LOGGING_OPTION, getResources().getString(R.string.option_position_logging), MenuDrawerItem.ITEM_TYPE));\n\n list = new ArrayList<MenuDrawerItem>(menuItems.values());\n drawerList.setAdapter(new MenuDrawerAdapter(DebugMapActivity.this, R.layout.element_menu_drawer_item, list));\n drawerList.setOnItemClickListener(new DrawerItemClickListener());\n\n }",
"public static void createLookAndFeelMenuItem(JMenu viewMenu, JFrame f) {\n\t\t\r\n\t}",
"void onMenuItemClicked();",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.viewer, menu);\n\t\t\treturn true;\n\t\t}",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"public void createSwitchButtonPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.view, menu);\n\t\treturn true;\n\t}",
"private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(com.wep.common.app.R.menu.menu_main, menu);\r\n for (int j = 0; j < menu.size(); j++) {\r\n MenuItem item = menu.getItem(j);\r\n item.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_ALWAYS);\r\n }\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.lab03_list, menu);\r\n\t\treturn true;\r\n\t}",
"private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}",
"public void menu(){\n super.goToMenuScreen();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_principal, menu);//Menu Resource, Menu\n return true;\n }",
"void addMenu(V object);",
"private void bind() \r\n\t{\r\n\t\tsuper.menuPut(\"list\", newJMenu(\"List\", 'L'));\r\n\t\tsuper.menuPut(\"list/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionNew(x));\r\n\t\tsuper.menuPut(\"list/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionLoad(x));\r\n\t\tsuper.menuPut(\"list/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionSave(x));\r\n\t\tsuper.menuPut(\"list/***1\", \"\");\r\n\t\tsuper.menuPut(\"list/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionAdd(x));\r\n\t\tsuper.menuPut(\"list/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionRemove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"tree\", newJMenu(\"Tree\", 'T'));\r\n\t\tsuper.menuPut(\"tree/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK), x -> menuEdit.actionNew(x));\r\n\t\tsuper.menuPut(\"tree/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK), x -> menuEdit.actionLoad(x));\r\n\t\tsuper.menuPut(\"tree/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK), x -> menuEdit.actionSave(x));\r\n\t\tsuper.menuPut(\"tree/***1\", \"\");\r\n\t\tsuper.menuPut(\"tree/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK), x -> menuEdit.actionAdd(x));\r\n\t\tsuper.menuPut(\"tree/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK), x -> menuEdit.actionRemove(x));\r\n\t\tsuper.menuPut(\"tree/move\", newJMenuItem(\"Move\", 'V', KeyEvent.VK_6, ActionEvent.SHIFT_MASK), x -> menuEdit.actionMove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"graph\", newJMenu(\"Graph\", 'G'));\r\n\t\tsuper.menuPut(\"graph/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.CTRL_MASK), x -> menuHelp.actionNew(x));\r\n\t\tsuper.menuPut(\"graph/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.CTRL_MASK), x -> menuHelp.actionOpen(x));\r\n\t\tsuper.menuPut(\"graph/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.CTRL_MASK), x -> menuHelp.actionSave(x));\r\n\t\tsuper.menuPut(\"graph/***1\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-node\", newJMenuItem(\"Add node\", 'A', KeyEvent.VK_4, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddNode(x));\r\n\t\tsuper.menuPut(\"graph/remove-node\", newJMenuItem(\"Remove node\", 'R', KeyEvent.VK_5, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveNode(x));\r\n\t\tsuper.menuPut(\"graph/move-node\", newJMenuItem(\"Move node\", 'V', KeyEvent.VK_6, ActionEvent.CTRL_MASK), x -> menuHelp.actionMoveNode(x));\r\n\t\tsuper.menuPut(\"graph/***2\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-link\", newJMenuItem(\"Add link\", 'D', KeyEvent.VK_7, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddLink(x));\r\n\t\tsuper.menuPut(\"graph/remove-link\", newJMenuItem(\"Remove link\", 'L', KeyEvent.VK_8, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveLink(x));\r\n\t\t\r\n\t\tsuper.menuDump();\t\t\r\n\t}"
] | [
"0.7796728",
"0.7352008",
"0.7123084",
"0.6828597",
"0.6822722",
"0.68224216",
"0.6794397",
"0.67739344",
"0.6743913",
"0.6735914",
"0.67083144",
"0.6697753",
"0.6686139",
"0.6665275",
"0.66444266",
"0.66389126",
"0.66343796",
"0.66314244",
"0.6608626",
"0.6595003",
"0.6556104",
"0.6554352",
"0.6546353",
"0.65449315",
"0.65283906",
"0.65037394",
"0.6501841",
"0.6500139",
"0.64969313",
"0.64758265",
"0.6466893",
"0.645254",
"0.64419216",
"0.64413697",
"0.6433289",
"0.6431061",
"0.64276075",
"0.64251566",
"0.6421087",
"0.6418493",
"0.6401254",
"0.6395785",
"0.63687766",
"0.6365683",
"0.6365353",
"0.6362387",
"0.63551986",
"0.63480973",
"0.634399",
"0.63421",
"0.63277304",
"0.6325033",
"0.63155836",
"0.6304408",
"0.62970835",
"0.6278245",
"0.6275719",
"0.6270633",
"0.6253626",
"0.62526554",
"0.6248406",
"0.6246553",
"0.62375164",
"0.6237359",
"0.62179154",
"0.6215389",
"0.6214938",
"0.6209362",
"0.6207583",
"0.620719",
"0.6206824",
"0.6203654",
"0.6198189",
"0.61956483",
"0.6194249",
"0.61903244",
"0.6189865",
"0.61893",
"0.6185053",
"0.6183433",
"0.6182565",
"0.61765677",
"0.61760414",
"0.61758834",
"0.61677146",
"0.61649877",
"0.6162146",
"0.61579883",
"0.6156539",
"0.6156272",
"0.6153963",
"0.61493814",
"0.6149111",
"0.6144054",
"0.6139817",
"0.61378366",
"0.6135028",
"0.61346555",
"0.61306953",
"0.6130198"
] | 0.69208467 | 3 |
The sampling mode editor | public SamplingEditor() {
super(new JComboBox());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SampleMode getSampleMode();",
"public void setSampleMode( SampleMode sampleMode );",
"public void mode() {\n APIlib.getInstance().addJSLine(jsBase + \".mode();\");\n }",
"private void initSimulateModeView() {\n simulateMode = new Label(\"SIMULATE\");\n simulateMode.setPrefSize(200, 100);\n simulateMode.setFont(Font.font(null, FontWeight.BOLD, 30));\n simulateMode.setTextFill(Color.ORANGE);\n simulateMode.setEffect(getDropShadow());\n }",
"private void handle_mode_display() {\n\t\t\t\n\t\t}",
"private void actionSampleDetectionModeChanged ()\r\n\t{\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeAuto().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(false);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (mainFormLink.getComponentPanelLeft().getComponentRadioModeManual().isSelected())\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAdd().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleAddControl().setEnabled(true);\r\n\t\t\tmainFormLink.getComponentPanelLeft().getComponentSampleDelete().setEnabled(true);\r\n\t\t}\r\n\t}",
"@Override\n protected void screenMode(int mode) {\n\n }",
"@Override\n public void setMode(RunMode mode) {\n\n }",
"public void updateSamples();",
"GameMode mode();",
"public void setSamples(int samples){ \n this.samples = samples; \n }",
"public static void main(String[] args) {\n String keyboard = \"q2we4r5ty7u8i9op-[=zxdcfvgbnjmk,;/' \";\r\n // number of strings variable\r\n int numberOfStrings = keyboard.length();\r\n GuitarString[] guitarStringsArray = new GuitarString[numberOfStrings];\r\n RingBuffer sampleBuff = new RingBuffer();\r\n \r\n StdDraw.setXscale(0, 100); // sets x scale from 0 to 100\r\n StdDraw.setYscale(-10,10); // sets y scale from -10 to 10 (y should be between -1 and 1)\r\n StdDraw.enableDoubleBuffering(); // drawing takes place on off-screen canvas\r\n \r\n int x = 0;\r\n for (int i = 0; i < numberOfStrings; i++) {\r\n double f = 440.0 * Math.pow(2, (i - 24) / 12.0);\r\n guitarStringsArray[i] = new GuitarString(f);\r\n }\r\n \r\n while (true) {\r\n double sample = 0;\r\n if (StdDraw.hasNextKeyTyped()) {\r\n char key = StdDraw.nextKeyTyped();\r\n if (keyboard.indexOf(key) != -1) {\r\n guitarStringsArray[keyboard.indexOf(key)].pluck();\r\n }\r\n }\r\n\t for (int j = 0; j < guitarStringsArray.length; j++) {\r\n\t sample += guitarStringsArray[j].sample();\r\n\t }\r\n\t //System.out.println(sample);\r\n\t // plays audio\r\n\t StdAudio.play(sample); \r\n\t // enqueues sample into buffer\r\n\t sampleBuff.enqueue(sample);\r\n\t \r\n\t // if buffer size is greater than 1\r\n\t if (sampleBuff.size() > 1) {\r\n\t \tSystem.out.println(\"x: \" + x);\r\n\t // if x == 0 clear the drawing \r\n\t if (x == 100) {\r\n\t \tx = 0;\r\n\t \tStdDraw.clear();\r\n\t }\r\n\t // draws from (x, buff.deq) to (x+1, buff.peek)\r\n\t StdDraw.line(x, sampleBuff.dequeue(), x+1, sampleBuff.peek());\r\n\t // shows and pauses the drawing \r\n\t \r\n\t StdDraw.show();\r\n\t StdDraw.pause(10);\r\n\t \r\n\t // x iterator\r\n\t x++;\r\n\t } \r\n\t \r\n\t for (int j = 0; j < guitarStringsArray.length; j++) {\r\n\t guitarStringsArray[j].tic();\r\n\t } \r\n }\r\n }",
"private void __intialiseMode(Gamemode mode) {\n List<ImageView> imageViews = new ArrayList<ImageView>();\n\n switch (mode) {\n case PRACTICE:\n imageViews.add(practice);\n imageViews.add(practiceAvatar);\n break;\n case RANKED:\n imageViews.add(ranked);\n imageViews.add(rankedAvatar);\n break;\n default:\n System.err.println(\"ERROR: Game mode not implemented.\");\n break;\n }\n\n for (ImageView view : imageViews) {\n view.addEventHandler(MouseEvent.MOUSE_ENTERED, event -> {\n try {\n this.__toggleSaturation(imageViews, true);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n });\n\n view.addEventHandler(MouseEvent.MOUSE_EXITED, event -> {\n try {\n this.__toggleSaturation(imageViews, false);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n });\n\n view.addEventHandler(MouseEvent.MOUSE_CLICKED, event -> {\n try {\n Sounds.playSoundEffect(\"pop\");\n this.__selectMode(mode);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }",
"public abstract void initMode();",
"public void speakModeHint()\n {\n // speak hint text\n if (getHintsEnabled()) {\n if (mCurrentMode) {\n AudioService.getInstance().speak(getResources().getString(R.string.read_mode_hint_general));\n }\n else {\n AudioService.getInstance().speak(getResources().getString(R.string.search_mode_hint_general));\n }\n }\n }",
"public void openMixerSave() {\n\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/SaveMixerSettings.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tSaveMixerSettingsController smsc = fxmlLoader.getController();\n\t\t\tsmsc.setMainController(this);\n\t\t\tsmsc.getSettings(sliderPitch.getValue(), sliderEchoLength.getValue(), sliderDecay.getValue(),\n\t\t\t\t\tsliderGain.getValue(), sliderFlangerLength.getValue(), sliderWetness.getValue(),\n\t\t\t\t\tsliderLfoFrequency.getValue(), (float) sliderLowPass.getValue());\n\t\t\tStage stage = new Stage();\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"mSTitle\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@FXML\n\tpublic void changeSamplingMethod(ActionEvent e)\n\t{\n\t\tupdateNumberOfDatasets(e);\n\t}",
"void setBasicMode() {basicMode = true;}",
"private void actionViewSamplesON ()\r\n\t{\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tisDisplaySamples = true;\r\n\r\n\t\t\thelperDisplayDetectedSamples();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES_ON );\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_OFF);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View original image\");\r\n\t\t}\r\n\t}",
"Mode(int height, int width, int mines)\n {\n this.height = height;\n this.width = width;\n this.mines = mines;\n }",
"@Override\n\tpublic void settings() {\n\t\tSystem.out.println(\"settings\");\n\t\tsize(800, 800);\n\t}",
"public int getMode()\r\n { \r\n return this.mode; // used at the beginning to check if the game has started yet\r\n }",
"public void startTrainingMode() {\n\t\t\r\n\t}",
"public void display() {\n startPreview();\n }",
"String getSceneModePref();",
"private void drawModesHub(Renderer r) {\n r.drawText(\"F1: SAT\", 8, 10, (mode == 0 ? HexColors.RED : HexColors.YELLOW));\n r.drawText(\"F2: SAT/STATIC\", 8, 40, (mode == 1 ? HexColors.RED : HexColors.YELLOW));\n r.drawText(\"F3: DIAG\", 8, 70, (mode == 2 ? HexColors.RED : HexColors.YELLOW));\n r.drawText(\"F4: DIAG/STATIC\", 8, 100, (mode == 3 ? HexColors.RED : HexColors.YELLOW));\n }",
"void selectionModeChanged(SelectionMode mode);",
"public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }",
"public void showSamples(){\n\t\tfor(int i=0; i<arrIns.size(); i++){\n\t\t\tfor(int j=0; j<arrIns.get(i).numAttributes(); j++){\n\t\t\t\tSystem.out.print(\" | \" + arrIns.get(i).value(j) + \" | \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"private void initSimulateMode() {\n initSimulateModeView();\n initSimulateModeController();\n }",
"public Screen()\n { \n FileReader filereader;\n BufferedReader reader;\n PrintWriter writer;\n String line;\n int defaultColor;\n int defaultDiff;\n int defaultMode;\n int defaultOps;\n try{\n filereader = new FileReader(\"settings.txt\");\n reader = new BufferedReader(filereader);\n \n //if(reader.readLine() !=null)\n line = reader.readLine();\n defaultMode = Integer.parseInt(line);\n line = reader.readLine();\n defaultDiff = Integer.parseInt(line);\n line = reader.readLine();\n defaultColor = Integer.parseInt(line);\n line = reader.readLine();\n defaultOps = Integer.parseInt(line);\n String[] options = {\"Regular Mode\", \"Time Trial\"};\n int n = -1;\n n = JOptionPane.showOptionDialog(null,\"Choose your mode\",\"Mode Selection\",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE,null,options,options[defaultMode]);\n if(n==0)\n modeT = false;\n else if(n==1)\n {\n modeT = true;\n difficult = \"HARD\";\n \n timer2=5.0;\n }\n else if(n==-1)\n {\n resetSettings();\n System.exit(0);\n }\n if(!modeT)\n {\n difficult = (String)JOptionPane.showInputDialog(null,\"Choose your difficulty\",\"Choose Difficulty\",JOptionPane.QUESTION_MESSAGE,null,difficultyOption,difficultyOption[defaultDiff]);\n if(difficult == null)\n { \n resetSettings();\n System.exit(0);\n }\n }\n int a = 2;\n int b = 0;\n int c = 0;\n int d = 0;\n writer = new PrintWriter(new File(\"settings.txt\"));\n for(int i = 0;i<difficultyOption.length;i++)\n {\n if(difficultyOption[i].equalsIgnoreCase(difficult))\n {\n a = i;\n //writer.println(i);\n //System.out.println(i);\n }\n }\n //On ghost the color will automatically be black so you shouldn't be allowed to select a color\n if(!difficult.equals(\"GHOST\") && difficult != null && color != null )\n {\n color = (String)JOptionPane.showInputDialog(null,\"Select a color for your Snake\",\"Choose Color\",JOptionPane.QUESTION_MESSAGE,null,colorOption,colorOption[defaultColor]);\n if(color == null)\n {\n resetSettings();\n System.exit(0);\n \n }\n for(int i = 0;i<colorOption.length;i++)\n {\n if(colorOption[i].equalsIgnoreCase(color))\n {\n //writer = new PrintWriter(new File(\"settings.txt\"));\n //writer.println(i);\n //System.out.println(i);\n b = i;\n }\n }\n \n int restart = -1;\n String[] ops = {\"Yes\", \"No\"};\n String str1 = \"Would you like to play with special power ups and challenges?\\nIf yes is selected, different items will occasionally appear which have temporary special effects:\\n\\n\\nBlue Shell: No boundaries\\nStar: snake cannot die\\nGolden Mushroom: increases head size of snake\\nGhost: turns the snake invisible\\nPow Block: allows the snake to travel through itself\\nThree Mushrooms: double points\\nBanana: reverses the keys\";\n String str2 = \"Would you like to play with special power ups and challenges?\\nIf yes is selected, different items will occasionally appear which have temporary special effects:\\n\\n\\nBlue Shell: No boundaries\\nStar: snake cannot die, timer stops\\nGolden Mushroom: adds 3 extra seconds to timer when collected\\nIce Crystal: pauses timer\\nPow Block: allows the snake to travel through itself\\nThree Mushrooms: double points\\nGreen Mushroom: increases head size of state\";\n //int restart = JOptionPane.showOptionDialog(null,\"Choose your mode\",\"Mode Selection\",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE,null,options,options[defaultMode]);\n if(!modeT)\n restart = JOptionPane.showOptionDialog(null,str1,\"Specials?\",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE,null,ops,ops[defaultOps]);\n //restart = JOptionPane.showConfirmDialog(null,\"Would you like to play with special power ups and challenges?\\nIf yes is selected, different items will occasionally appear which have temporary special effects:\\n\\n\\nBlue Shell: No boundaries\\nStar: snake cannot die\\nGolden Mushroom: increases head size of snake\\nGhost: turns the snake invisible\\nPow Block: allows the snake to travel through itself\\nThree Mushrooms: double points\\nBanana: reverses the keys\" ,\"Specials?\",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);\n else\n restart = JOptionPane.showOptionDialog(null,str2,\"Specials?\",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE,null,ops,ops[defaultOps]);\n //restart = JOptionPane.showConfirmDialog(null,\"Would you like to play with special power ups and challenges?\\nIf yes is selected, different items will occasionally appear which have temporary special effects:\\n\\n\\nBlue Shell: No boundaries\\nStar: snake cannot die, timer stops\\nGolden Mushroom: adds 3 extra seconds to timer when collected\\nIce Crystal: pauses timer\\nPow Block: allows the snake to travel through itself\\nThree Mushrooms: double points\\nGreen Mushroom: increases head size of state\" ,\"Specials?\",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);\n \n if(restart == 1) \n specials = false;\n else if(restart ==0) \n specials = true;\n else if(restart == -1)\n {\n resetSettings();\n System.exit(0);\n }\n \n d = restart;\n }\n if(modeT)\n c = 1;\n \n int[] ab = {c,a,b,d};\n for(int x: ab)\n writer.println(x);\n writer.close();\n //Makes sure the cancel option works\n if(color == null)\n {\n resetSettings();\n System.exit(0);\n }\n }\n catch(IOException e){} \n try { \n image = ImageIO.read(new File(\"Star.png\"));\n image2 = ImageIO.read(new File(\"Mushroom.png\"));\n image3 = ImageIO.read(new File(\"Red Mushroom.png\"));\n image4 = ImageIO.read(new File(\"Blue Shell.png\"));\n image5 = ImageIO.read(new File(\"Boo.png\"));\n image6 = ImageIO.read(new File(\"Three Mushrooms.png\"));\n image7 = ImageIO.read(new File(\"Pow Block.png\"));\n image8 = ImageIO.read(new File(\"Banana.png\"));\n image9 = ImageIO.read(new File(\"Ice Crystal.png\"));\n image10 = ImageIO.read(new File(\"Unmute.png\"));\n image11 = ImageIO.read(new File(\"Mute.png\"));\n image12 = ImageIO.read(new File(\"Green Mushroom.png\"));\n image13 = ImageIO.read(new File(\"Red Shell.png\"));\n image14 = ImageIO.read(new File(\"Red Shell Big.png\"));\n } catch (IOException ex) {\n // handle exception...\n }\n try{\n URL url = this.getClass().getClassLoader().getResource(\"Coin.wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n bclip = AudioSystem.getClip();\n \n //URL url2 = this.getClass().getClassLoader().getResource(\"Relaxing Elevator Music.wav\");\n \n //AudioInputStream audioIn2 = AudioSystem.getAudioInputStream(url2);\n // Get a sound clip resource.\n pclip = AudioSystem.getClip();\n \n // Open audio clip and load samples from the audio input stream.\n //clip2.open(audioIn2); \n }catch(Exception e){}\n \n try{ \n //bclip.stop();\n \n URL url = this.getClass().getClassLoader().getResource(\"Refreshing Elevator Music.wav\");\n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n pclip = AudioSystem.getClip();\n \n // Open audio clip and load samples from the audio input stream.\n //pclip.open(audioIn); \n \n }catch(Exception e){}\n \n \n //Makes sure the cancel option works\n \n \n setFocusable(true);\n requestFocusInWindow();\n setPreferredSize(new Dimension(WIDTH, HEIGHT));\n \n //Creates a list of all locations on the grid\n for(int b = 150; b<630; b+= 15)\n {\n for(int a = 150; a< 1260; a+= 15)\n {\n allLocations.add(new Location(a,b));\n }\n } \n startSnake();\n \n //Makes sure the Dot does not originally start on the snake\n boolean go = true;\n while(go)\n {\n if(snakeOnDot())\n {\n //dots.remove(0);\n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n //dots.add(dot);\n }\n else\n go = false;\n }\n \n start();\n }",
"@Override\n\tpublic void start() {\n\t\t\n\t\t_mode.init();\n\t\t\n\t\t_mode.start();\n\t}",
"public void switchInsMode() {\n this.inputMode = !this.inputMode;\n }",
"private void initPlayModeView() {\n playMode = new Label(\"PLAY\");\n playMode.setPrefSize(200,100);\n playMode.setFont(Font.font(null, FontWeight.BOLD, 30));\n playMode.setTextFill(Color.BLUE);\n playMode.setEffect(getDropShadow());\n }",
"@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}",
"@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}",
"public void display() {\r\n System.out.println(firstPrompt + \"[\" + minScale + \"-\" + maxScale + \"]\");\r\n }",
"public void sample() {\n getFunctionEstimator().sample();\n }",
"void changeMode(int mode);",
"public void displaySaveGameView()\n {\n System.out.println(\"\\nSave Game View selected.\");\n }",
"public void setSourceMode(int mode) {\n _mode = mode;\n }",
"private void initSimulateModeController() {\n simulateMode.setOnMouseClicked(event -> {\n SimulatorMain sm = null;\n try { sm = new SimulatorMain(); }\n catch (Exception e) { e.printStackTrace(); }\n sm.start(SimulatorMain.stage);\n });\n simulateMode.setOnMouseEntered(event -> { simulateMode.setGraphic(new Circle(5)); });\n simulateMode.setOnMouseExited(event -> { simulateMode.setGraphic(null); });\n }",
"private void __selectMode(Gamemode mode) throws IOException {\n Game game = new Game(mode);\n MainApp.setGameState(game);\n MainApp.setRoot(Views.TOPIC);\n }",
"public void takeScreenShot() {\r\n \t\tgraph.clearSelection();\r\n \t\tgraph.showScreenShotDialog();\r\n \t}",
"@Override\r\n\tprotected int getGUILayout()\r\n\t{\n\t\treturn R.layout.tutorial_stereo_rendering;\r\n\t}",
"private void loadSamplesWithScale() {\n\t\tpixelsPerSample = (int)(guiScale * 2);\n\t\t//pixelsPerSample = 10;\n\t\tassert(pixelsPerSample != 0);\n\t\t// Get the amount of samples that can be rendered in the display\n\t\tGSamplesInDisplay = displayWidth / pixelsPerSample;\n\t\tSystem.out.println(\"GSamplesInDisplay: \" + GSamplesInDisplay + \" - of \" + pixelsPerSample + \" pixel each\");\n\t\t// How Many Music Samples from the audio file do we want to 'show' in the window\n\t\t// Default 'all'\n\t\tint AUSamplesInWindow = (int) (loader.getStreamSampleLength()*scale);\n\t\tAUSamplesInGSample = AUSamplesInWindow / GSamplesInDisplay;\n\t\t\n\t\tassert(AUSamplesInGSample != 0); \n\t\t// Get how many pixels are per second\n\t\tsecondsInDisplay = AUSamplesInWindow / sampleRate; // Normally 44100\n\t\tSystem.out.println(\"Seconds Calculalted After: \" + secondsInDisplay);\n\t\t\n\t\tpixelsPerSecond = (displayWidth / secondsInDisplay);\n\t\tSystem.out.println(\"Pixels Per Second: \" + pixelsPerSecond);\n\t\tassert(pixelsPerSecond != 0);\n\t\t// Now Get the XEnd of what is resting to show from the music\n\t\t\n\t\t\n\t}",
"void update_sample(int new_sample) {\n\t sample_choice = new_sample;\n\t combine_message_and_sample();\n\t update_content();\n }",
"@Override protected void startup() {\n BlaiseGraphicsTestFrameView view = new BlaiseGraphicsTestFrameView(this);\n canvas1 = view.canvas1;\n root1 = view.canvas1.getGraphicRoot();\n canvas1.setSelectionEnabled(true);\n show(view);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n \tString selectedPattern = (String) patternsList.getSelectedItem();//get the selected item\n \ttickCount = 0;\n \tgenCountLabel.setText(\"Generation: \"+tickCount);\n \tgridPane.setSeed(new ArrayList<Cell>());\n switch (selectedPattern) {//check for a matching pattern and call there respective functions from Class Pattern\n case \"Block\":\n \tgridPane.setSeed(patterns.getBlock());\n break;\n case \"Beehive\":\n \tgridPane.setSeed(patterns.getBeehive());\n break;\n case \"Loaf\":\n \tgridPane.setSeed(patterns.getLoaf());\n break;\n case \"Boat\":\n \tgridPane.setSeed(patterns.getBoat());\n break;\n case \"Tub\":\n \tgridPane.setSeed(patterns.getTub());\n break;\n case \"Blinker\":\n \tgridPane.setSeed(patterns.getBlinker());\n break;\n case \"Toad\":\n \tgridPane.setSeed(patterns.getToad());\n break;\n case \"Beacon\":\n \tgridPane.setSeed(patterns.getBeacon());\n break;\n case \"Pentadecathlon\":\n \tgridPane.setSeed(patterns.getPentadecathlon());\n break;\n case \"Glider\":\n \tgridPane.setSeed(patterns.getGlider());\n break;\n case \"LWSS\":\n \tgridPane.setSeed(patterns.getLWSS());\n break;\n }//end switch Pattern\n }",
"public void setConstantSamples(String sourceEntry);",
"public void playInstructions() {\r\n\t\tSystem.out.println(\"\\nYou are now ready to select areas.\");\r\n\t\tSystem.out.println(\"In normal mode, areas that you do not select will become still\");\r\n\t\tSystem.out.println(\"In black and white mode, areas you select will become black and white\");\r\n\t\tSystem.out.println(\"Press the left mouse button to select a point\");\r\n\t\tSystem.out.println(\"After 3 or more points, you may press \\\"p\\\"\"\r\n\t\t\t\t+ \"\\nAnd Delaunay Triangulation will be used to mark an area around points you have selected\");\r\n\t\tSystem.out.println(\"Pressing \\\"o\\\" will clear the points you have selected\");\r\n\t\tSystem.out.println(\"Press SPACE when you are done marking areas\");\r\n\t\tSystem.out.println(\"You may press ESCAPE to quit at any time\");\r\n\t}",
"private void helperDisplaySamplesCombobox ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint indexImage = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\tif (indexImage >= 0 && indexImage < tableSize)\r\n\t\t\t\t{\r\n\t\t\t\t\t//---- Get number of samples and index of the control sample\r\n\t\t\t\t\tint samplesCount = DataController.getTable().getElement(indexImage).getChannelCount();\r\n\t\t\t\t\tint indexControlSample = DataController.getTable().getElement(indexImage).getDataDevice().getControlChannelIndex();\r\n\r\n\t\t\t\t\tmainFormLink.getComponentPanelLeft().getComponentComboboxSampleName().removeAllItems();\r\n\t\t\t\t\tmainFormLink.getComponentPanelLeft().getComponentComboboxSampleName().setEnabled(true);\r\n\r\n\t\t\t\t\tfor (int i = 0; i < samplesCount; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString displayedSampleName = \"\";\r\n\r\n\t\t\t\t\t\tif (i == indexControlSample) { displayedSampleName = \"control \" + (i+1); }\r\n\t\t\t\t\t\telse { displayedSampleName = \"sample \" + (i+1);}\r\n\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelLeft().getComponentComboboxSampleName().addItem(displayedSampleName);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}",
"public Mode(Drawing d, Container c){\n\t\tdwg = d;\n\t\tcp = c;\n\t\tcmd = new Command();\n\t\tselectCmd = new SelectThreeCardsCmd();\n\t\ttoSelectOrNot = false;\n\t\toptionPanel = new JPanel();\n\t\t\n\t\tCanvasPanel canvasPanel = new CanvasPanel();\n\t\tcanvasPanel.setBackground(Color.cyan);\n\t\t\n\t\t\n\t\tJButton restartButton = new JButton(\"Restart\");\n\t\tJButton switchButton = new JButton(\"Switch Mode\");\n\t\t\n\t\trestartButton.addActionListener(new RestartButtonListener());\n\t\tswitchButton.addActionListener(new SwitchButtonListener());\n\t\t\n\t\tJPanel GeneralOptionPanel = new JPanel();\n\t\tGeneralOptionPanel.setLayout(new FlowLayout());\n\t\trestartButton.setBackground(Color.CYAN);\n\t\tswitchButton.setBackground(Color.CYAN);\n\t\tGeneralOptionPanel.add(restartButton);\n\t\tGeneralOptionPanel.add(switchButton);\n\t\tGeneralOptionPanel.setBackground(Color.white);\n\t\t\n\t\tcp.add(GeneralOptionPanel, BorderLayout.NORTH);\n\t\tcp.add(canvasPanel, BorderLayout.CENTER);\n\t\tcp.repaint();\n\t\tcp.validate();\n\t\t\n\t\t//Create Deck\n\t\tdeck = Deck.getUniqueInstance();\n\t\t//Initialize deck \n\t\tdeck.shuffle();\n\t\t\n\t\t//Add 12 cards\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\t Card card = deck.deal();\n\t\t\t dwg.addCard(i, card);\n\t\t}\n\t\t\n\t\tmodeName = this.getClass().getName();\n\t}",
"public void startDevMode(int i)\n\t{\n\t\tString filename = \"Song-keys/eyeofthetiger.txt\";\n\n\t\ttry {\n\n\t\t\tbw = new PrintWriter(new FileWriter(filename, true));\n\t\t\twhile(k <= i)\n\t\t\t{\n\t\t\t\tif(keyTime[k] != 0)\n\t\t\t\t{\n\t\t\t\t\tbw.println(side[k]);\n\t\t\t\t\tbw.println(keyTime[k]+-190);\n\t\t\t\t\tSystem.out.println(side[k] + \"\\nhi\" + keyTime[k]+-190 + \"\\n\");\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.close();\n\n\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void show4() {\n\t\t\n\t}",
"public void chooseYourMode(){\r\n ActionHandlers.ChooseModeHandler chooseModeHandler = (s) -> {\r\n try {\r\n choice.put(s);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n };\r\n runLater(() -> main.run(chooseModeHandler));\r\n }",
"public void setSampleSize(int size){\r\n\t\tSampleSize = size;\r\n\t}",
"private void settingsScreenRender() {\n overlay.draw(batch, 0.5f);\n uiFont.draw(batch, scoreTxt, 0, HEIGHT - (scoreLayout.height));\n uiFont.draw(batch, healthTxt, WIDTH / 2, HEIGHT - (healthLayout.height));\n musicOn.draw(batch, 1);\n musicOff.draw(batch, 1);\n resume.draw(batch, 1);\n settingStage.draw();\n }",
"int pauseSample() {\n return 0;\n }",
"@Override\n\tpublic void run() {\n\t\tinitMode();\n\t\t\n\t\tdisplayStartMsg();\n\t\t\n\t\tdisplayMsgBeforeRun();\n\t\tint resultGame = runMode();\n\t\t\n\t\tdisplayEndMsg(resultGame);\n\t}",
"Sample start();",
"public String getCurrentSampleLabelKey();",
"public TextUI() {\n rand = new Random(System.nanoTime());\n scan = new Scanner(System.in);\n }",
"public void setSciMode(boolean entry) {\r\n\t\tsciMode = entry;\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tJFrame frame = null;\r\n\t\tif (viewer.getMode() == \"self\") {\r\n\t\t\tSystem.out.println(\"Generate Antigen\");\r\n\t\t\tViewer viewer = new Viewer(10, \"antigen\", this.viewer.getCell());\r\n\t\t\tframe = viewer;\r\n\t\t\tframe.setTitle(\"Antigen - Detector Generator\");\r\n\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\tframe.pack();\r\n\t\t\tframe.setResizable(true);\r\n\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\tframe.setVisible(true);\r\n\t\t} else if (viewer.getMode() == \"antigen\"\r\n\t\t\t\t|| viewer.getMode() == \"antibody\") {\r\n\t\t\tif (!refreshBoard(viewer.getCell())) {\r\n\t\t\t\tif (timer.isRunning() == false) {\r\n\t\t\t\t\tviewer.getButton().setEnabled(false);\r\n\t\t\t\t\ttimer.start();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t\tif (viewer.getMode() == \"antigen\") {\r\n\t\t\t\t\tviewer.getButton().setLabel(\"Generate Antibody\");\r\n\t\t\t\t\tviewer.getButton().setEnabled(true);\r\n\t\t\t\t\tviewer.setMode(\"antigenOK\");\r\n\t\t\t\t} else if (viewer.getMode() == \"antibody\") {\r\n\t\t\t\t\tviewer.getButton().setLabel(\"Finish\");\r\n\t\t\t\t\tviewer.getButton().setEnabled(false);\r\n\t\t\t\t\tviewer.setMode(\"antibodyOK\");\r\n\t\t\t\t}\r\n\t\t\t\ttimer.stop();\r\n\t\t\t}\r\n\t\t} else if (viewer.getMode() == \"antigenOK\") {\r\n\t\t\tSystem.out.println(\"Generate Antibody\");\r\n\t\t\tframe = new Viewer(10, \"antibody\", this.viewer.getCell());\r\n//\t\t\tthis.viewer.getCell().printCell();\r\n\t\t\tframe.setTitle(\"Antibody - Detector Test\");\r\n\t\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\tframe.pack();\r\n\t\t\tframe.setResizable(true);\r\n\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\tframe.setVisible(true);\r\n\t\t} else {\r\n\r\n\t\t}\r\n\t}",
"public void setMode(WhichVariables mode)\n\t{\n\t\tif (!mode.equals(m_mode))\n\t\t{\n\t\t\tm_mode = mode;\n\t\t\tm_viewer.refresh();\n\t\t}\n\t}",
"public SampledPolicy() {\r\n super(ExecutablePolicyType.SAMPLED);\r\n }",
"@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,gst.resultFile);\r\n\t\t\t\t\t\t\t\t\t\t}",
"protected boolean canSampleArea() { return true; }",
"private void setquestion() {\n qinit();\n question_count++;\n\n if (modeflag == 3) {\n modetag = (int) (Math.random() * 3);\n } else {\n modetag = modeflag;\n }\n\n WordingIO trueword = new WordingIO(vocabulary);\n\n if (modetag == 0) {\n\n MCmode(trueword);\n }\n\n if (modetag == 1) {\n BFmode(trueword);\n }\n\n if (modetag == 2) {\n TLmode(trueword);\n }\n\n if (time_limit != 0) {\n timingtoanswer(time_limit, jLabel2, answer_temp, jLabel5, jLabel6, jButton1);\n }\n }",
"void graphSelectionChanged(Mode mode);",
"@Override\n public void run() {\n\n GLMouseListener mouse = viewer.getMouseHandler();\n if (mouse instanceof GLMouseAdapter) {\n ((GLMouseAdapter)mouse).setLaptopConfig();\n }\n \n viewer.addSelectionListener(new SimpleSelectionHandler(renderables));\n\n // Create a animator that drives canvas' display() at the specified FPS.\n final FPSAnimator animator;\n final FPSMonitor fpsMonitor;\n \n if (MultiViewer.doFPS) {\n animator = new FPSAnimator(viewer.getCanvas().getDrawable(), FPS, true);\n animator.setUpdateFPSFrames(3, null);\n animator.start();\n fpsMonitor = new FPSMonitor(title + \" FPS: \", animator);\n new Thread(fpsMonitor).start();\n } else {\n animator = null;\n fpsMonitor = null;\n }\n \n // Create the top-level container\n frame = new JFrame(); // Swing's JFrame or AWT's Frame\n frame.add(viewer.getCanvas().getComponent());\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // Use a dedicate thread to run the stop() to ensure that the\n // animator stops before program exits.\n new Thread() {\n @Override\n public void run() {\n \n if (animator != null && animator.isStarted()) {\n animator.stop();\n }\n if (fpsMonitor != null) { \n fpsMonitor.stop();\n }\n \n try {\n SwingUtilities.invokeAndWait (new Runnable() {\n @Override\n public void run () {\n viewer.dispose ();\n }\n });\n }\n catch (InvocationTargetException e) {\n }\n catch (InterruptedException e) {\n }\n \n closed = true;\n }\n }.start();\n }\n });\n frame.setTitle(title);\n // frame.pack();\n frame.setVisible(true);\n // animator.start(); // start the animation loop\n }",
"public boolean visualizeLastGeneration ();",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tIWorkbenchPage page = getPage();\n\t\t\t\t\tJasmineEditorInput input = new JasmineEditorInput(specRunner, name);\n\t\t\t\t\tpart.add(page.openEditor(input, ID));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\texception.add(e);\n\t\t\t\t}\n\t\t\t}",
"private static void forceBasicEditorConfiguration() {\n Game.graphics().setBaseRenderScale(1.0f);\n Game.config().debug().setDebugEnabled(true);\n Game.config().graphics().setGraphicQuality(Quality.VERYHIGH);\n Game.config().graphics().setReduceFramesWhenNotFocused(false);\n }",
"public void showDraw(){\n\t\tdraw = new Document( drawFilePath);\n\t}",
"Main(String mode) {\n if (mode.equals(\"game\")) {\n createGameMode();\n } else {\n createSimulatorMode();\n }\n }",
"private void writeInstancePanel() {\n \t\tgetView().getComboInstance().clear();\n \t\tfor (int i = 0; i<Storage_access.getNumberOfInstance(); i++)\n \t\t\tgetView().getComboInstance().addItem(\"\"+Storage_access.getInstanceLocalNum(i)+\": \"+Storage_access.getInstanceDesc(i));\n \t\t//Storage_access.printStorage();\n \t\t\n \t}",
"@Override\n\tpublic void setMode(int mode) {\n\t\t\n\t}",
"private void setTEMswitchesFromRunner(){\n\t\t//\n\t\tint nfeed =0;\n\t\tint avlnflg =0; \n\t\tint baseline =0;\t\t\n\t\tif(nfeedjrb[1].isSelected()){\n\t\t\tnfeed =1;\n\t\t}\n\t\tif(avlnjrb[1].isSelected()){\n\t\t\tavlnflg =1;\n\t\t}\n\t\tif(baselinejrb[1].isSelected()){\n\t\t\tbaseline =1;\n\t\t}\n\t\tTEM.runcht.cht.getBd().setBaseline(baseline); \t \n TEM.runcht.cht.getBd().setAvlnflg(avlnflg);\n TEM.runcht.cht.getBd().setNfeed(nfeed);\n \n //\n if (envmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setEnvmodule(false);\n if (envmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setEnvmodule(true);\n\n if (ecomodulejrb[0].isSelected())\n \tTEM.runcht.cht.setEcomodule(false);\n if (ecomodulejrb[1].isSelected())\n \tTEM.runcht.cht.setEcomodule(true);\n \n if (dslmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setDslmodule(false);\n if (dslmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setDslmodule(true);\n\n if (dsbmodulejrb[0].isSelected())\n \tTEM.runcht.cht.setDsbmodule(false);\n if (dsbmodulejrb[1].isSelected())\n \tTEM.runcht.cht.setDsbmodule(true);\n\t}",
"public int value() { return mode; }",
"@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tblockC.setFocusTraversable(true);\n\t\tblockC.setOnMouseClicked(event -> {\n\t\t\t\t// TODO Auto-generated method stub \n\t\t\t\tjavaSoundRecorder = new Voiceget();\n\t\t Thread thread = new Thread(javaSoundRecorder);\n\t\t thread.start();\n\t\t long startTime = System.currentTimeMillis();\n\t\t\t\t long estimatedTime = System.currentTimeMillis() - startTime;\n\t\t\t\twhile (estimatedTime < 5000) {\n\t\t\t\t\t\t estimatedTime = System.currentTimeMillis() - startTime;\n\t\t\t\t}\n\t\t\t\tjavaSoundRecorder.finish();\n\t\t\t\t\n\t\t\t\tpleasetell tel = new pleasetell();\n\t\t\t\tfrefre = tel.freqVisualizer();\n\t\t\t\tblockFlag=true;\n\t\t\t\tgc = blockC.getGraphicsContext2D();\n\t\t\t\tSystem.out.println(frefre.size());\n\t\t\t\tfor(int i = 0; i<frefre.size(); i++) {\n\t\t\t\t\tRandom random = new Random();\n\t\t\t\t\tgc.setFill(new Color(random.nextDouble(), random.nextDouble(),0.5, 1));\n\t\t\t\t\tgc.fillRect(280+10*i, 1000-(frefre.get(i)*300+522), 10, frefre.get(i)*300+522);\n\t\t\t\t}\n\t\t\t});\n\t\tblockC.setOnKeyPressed(event -> {\n\t\t\ttry {\n\t\t\t\tKeyCode keyCode = event.getCode();\n\t\t\t\tSystem.out.println(keyCode);\n\t\t\t\tif(KeyCode.UP.equals(keyCode) || KeyCode.LEFT.equals(keyCode) || KeyCode.RIGHT.equals(keyCode) || KeyCode.DOWN.equals(keyCode))\n\t\t\t\t\tuser_move(event);\n\t\t\t\telse if(KeyCode.T.equals(keyCode))\n\t\t\t\t\tturn();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t});\n\t\tinitializeGroupArray();\n\t\tgravity();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\tGameSpec gs = new GameSpec();\n\t\t\t\tgs.minFishRelease = (int) Integer.parseInt(mintim.getText());\n\t\t\t\tgs.maxFishRelease = (int) Integer.parseInt(maxtim.getText());\n\t\t\t\tgs.good.soundFile = goodSoundTF.getText();\n\t\t\t\tgs.bad.soundFile = badSoundTF.getText();\n\t\t\t\tgs.stereo = (soundtype.getSelectedItem().toString().equals(\"Stereo\"));\n\t\t\t\tgs.good.throbRate = (int) Integer.parseInt(goodVisualHzTF.getText());\n\t\t\t\tgs.bad.throbRate = (int) Integer.parseInt(badVisualHzTF.getText());\t\n\t\t\t\tgs.maxThrobSize = (int) Integer.parseInt(maxSizeTF.getText());\n\t\t\t\tgs.minThrobSize = (int) Integer.parseInt(minSizeTF.getText());\n\t\t\t\tgs.backgroundSpeed = (double) Double.parseDouble(backgroundSpeed.getText());\n\t\t\t\tgs.channelWidth = (int) Integer.parseInt(cWidth.getText());\n\t\t\t\tString volumeLevel = (vol.getSelectedItem()).toString();\n\t\t\t if (volumeLevel.equals(\"low\")) {\n\t\t\t \tgs.bgSound = \"water1.wav\";\n\t\t\t }else if (volumeLevel.equals(\"med\")){\n\t\t\t \tgs.bgSound = \"water2.wav\";\n\t\t\t } else {\n\t\t\t \tgs.bgSound = \"water3.wav\";\n\t\t\t }\n\t\t\t gs.bgSound = \"sounds/background/\" + gs.bgSound;\n\t\t\t\t\n\n\t\t\t\t\t\t\n\t\t\t\tint numberOfFish = Integer.parseInt(numactors.getText());\n\t\t\t\tSystem.out.println(gs.toScript());\n\t\t\t\tsgen.generate(gs,numberOfFish);\n\t\t\t\t\n\t\t\t\t// here we generate a report for the user, so they know what's happening\n\t\t\t\tjtextarea.append(gs.toScript());\n\t\t\t\tjtextarea.append(\"GENERATE \"+numberOfFish+\" events\\n\");\n\t\t\t\t\n\n\t\t\t}",
"public void setMode(int mode) {\n this.mode = mode;\n }",
"private void activeSensor(Sensor sensor) {\n selectedSensor = sensor;\n// selectedSensor.debug(true);\n// if (start) {\n// view = (DrawingView) findViewById(R.id.surface);\n// bitmap = Bitmap.createBitmap(view.getWidth(), view.getHeight(), Bitmap.Config.RGB_565);\n// canvas = new Canvas(bitmap);\n// view.setDrawer(new DrawingView.Drawer() {\n// @Override\n// public void draw(Canvas canvas) {\n// canvas.drawBitmap(bitmap, 0, 0, null);\n// }\n// });\n// }\n }",
"@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\tif(change_tempo){\r\n\t\t\t\t\t\t\t\t\t\t\tPatternMaker.changeSpeed(pattern, ratio);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tgotoPractice(pattern);\r\n\t\t\t\t\t\t\t\t\t}",
"public static void sample() {\n\t\tlcd.clear();\n\t\tint counter =0;\n\t\t//run 100 samples\n\t\twhile(counter<100) {\n\t\t\tmyColorSample.fetchSample(sampleColor, 0); \n\t\t\tfloat r = sampleColor[0]*1000; \n\t\t\tfloat g = sampleColor[1]*1000; \n\t\t\tfloat b = sampleColor[2]*1000; \n\t\t\tSystem.out.print(r +\",\");\n\t\t\tSystem.out.print(g+\",\");\n\t\t\tSystem.out.println(b);\n\t\t\tcounter ++;\n\t\t}\t\t\n\t}",
"private void toggleMode() {\n\t if(freestyle){\n\t\t Toast.makeText(getApplicationContext(), \"Take a picture in any pose\", Toast.LENGTH_LONG).show();\n\t\t \nmodeTextView.setText(\"Freestyle\");\nnewImgButton.setEnabled(false);\ncountdownView.setEnabled(false);\ncountdownView.setText(\"-\");\nframenumTextView.setEnabled(false);\nframenumTextView.setText(\"-\");\n\t }\n\t else{\n\t\t Toast.makeText(getApplicationContext(), \"Try to match the shape and take a picture\", Toast.LENGTH_LONG).show();\n\t\t modeTextView.setText(\"Match\");\n\t\t newImgButton.setEnabled(true);\n\t\t countdownView.setEnabled(true);\n\t\t framenumTextView.setEnabled(true);\n\t }\n\t \n\t\n}",
"public Object showContinuousEditor() throws Exception {\n \t\tfinal EditorDisplayer editor = EditorDisplayer.getEditor(this, EditorType.CONTINUOUS);\n \n \t\tif (editor == EditorDisplayer.CONTINUOUS_COLOR)\n \t\t\teditor.setParameters(new Object[] { 450, 180, \"Gradient Editor for \" + this.calcName, this });\n \t\telse if (editor == EditorDisplayer.CONTINUOUS_CONTINUOUS)\n \t\t\teditor.setParameters(new Object[] {\n \t\t\t 450, 350, \"Continuous Editor for \" + this.calcName, this\n \t\t\t });\n \t\telse\n \t\t\teditor.setParameters(new Object[] {\n \t\t\t 450, 300, \"Continuous Editor for \" + this.calcName, this\n \t\t\t });\n \n \t\treturn showEditor(editor);\n \t}",
"public void settings() {\n size(640, 384);\n }",
"@Override\n public void runOpMode() {\n initialize();\n\n //wait for user to press start\n waitForStart();\n\n if (opModeIsActive()) {\n\n // drive forward 24\"\n // turn left 90 degrees\n // turnLeft(90);\n // drive forward 20\"\n // driveForward(20);\n // turn right 90 degrees\n // turnRight(90);\n // drive forward 36\"\n // driveForward(36);\n\n }\n\n\n }",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}",
"public void doAction()\n {\n if (app.getBuilderEditorPanel().getBoardViewPanel().getBoard().willPopulate())\n {\n app.getBuilderEditorPanel().getBoardViewPanel().getBoard().setPopulate(false);\n app.getBuilderEditorPanel().getBoardViewPanel().getBoard().resetBoard();\n app.getBuilderEditorPanel().getBoardViewPanel().refresh();\n }\n String levelType = app.getBuilderEditorPanel().getLevelTypeSelector().getSelectedItem().toString();\n int timeLimit = 0;\n if (!app.getBuilderEditorPanel().getTimeLimitSelector().getText().equals(\"\"))\n {\n timeLimit = Integer.parseInt(app.getBuilderEditorPanel().getTimeLimitSelector().getText());\n }\n int moveLimit = 0;\n if (!app.getBuilderEditorPanel().getMoveLimitSelector().getText().equals(\"\"))\n {\n moveLimit = Integer.parseInt(app.getBuilderEditorPanel().getMoveLimitSelector().getText());\n }\n boolean specialMoves = app.getBuilderEditorPanel().getSpecialMovesAllowedSelector().isSelected();\n int threeStar = Integer.parseInt(app.getBuilderEditorPanel().getThreeStarSelector().getText());\n int twoStar = Integer.parseInt(app.getBuilderEditorPanel().getTwoStarSelector().getText());\n int freq1 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"1\");\n int freq2 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"2\");\n int freq3 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"3\");\n int freq4 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"4\");\n int freq5 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"5\");\n int freq6 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"6\");\n int freqx1 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"x1\");\n int freqx2 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"x2\");\n int freqx3 = app.getBuilderEditorPanel().getOptionsPanel().getFrequencies().get(\"x3\");\n SquareFactory sf1 = new SquareFactory(freq1, freq2, freq3, freq4, freq5, freq6, freqx1, freqx2, freqx3);\n if (app.getBuilderEditorPanel().getCurrentLevel() != null)\n {\n if (levelType.equals(app.getBuilderEditorPanel().getCurrentLevel().getType()))\n {\n Board board = app.getBuilderEditorPanel().getBoardViewPanel().getBoard();\n board.setSquareFactory(new SquareFactory(freq1, freq2, freq3, freq4, freq5,\n freq6, freqx1, freqx2, freqx3));\n String bd = board.getBoardData();\n app.getBuilderEditorPanel().getCurrentLevel().setBoardData(bd);\n app.getBuilderEditorPanel().getCurrentLevel().saveLevel();\n } else {\n Board board = app.getBuilderEditorPanel().getBoardViewPanel().getBoard();\n board.setSquareFactory(new SquareFactory(freq1, freq2, freq3, freq4, freq5,\n freq6, freqx1, freqx2, freqx3));\n String bd = board.getBoardData();\n Level oldLevel = app.getBuilderEditorPanel().getCurrentLevel();\n int idx = game.getLevels().indexOf(oldLevel);\n if (levelType.equals(\"Release\"))\n {\n ReleaseLevel nl = new ReleaseLevel(oldLevel.getBasicLevel());\n game.replaceLevel(nl, idx);\n } else if (levelType.equals(\"Lightning\"))\n {\n LightningLevel nl = new LightningLevel(oldLevel.getBasicLevel());\n nl.setTimeLimit(timeLimit);\n game.replaceLevel(nl, idx);\n } else if (levelType.equals(\"Elimination\"))\n {\n EliminationLevel nl = new EliminationLevel(oldLevel.getBasicLevel());\n game.replaceLevel(nl, idx);\n } else if (levelType.equals(\"Puzzle\"))\n {\n PuzzleLevel nl = new PuzzleLevel(oldLevel.getBasicLevel());\n nl.setMoveLimit(moveLimit);\n game.replaceLevel(nl, idx);\n }\n app.getBuilderEditorPanel().setCurrentLevel(game.getLevels().get(idx));\n app.getBuilderEditorPanel().getCurrentLevel().setBoardData(bd);\n app.getBuilderEditorPanel().getCurrentLevel().saveLevel();\n }\n } else\n {\n Level l = null;\n File outFile = null;\n try\n {\n outFile = new File(getClass().getClassLoader().getResource(\"levels\").toURI().getPath(),\n \"level\" + (game.getLevels().size() + 1) + \".txt\");\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n\n SquareFactory sf = new SquareFactory(freq1, freq2, freq3, freq4, freq5, freq6, freqx1, freqx2, freqx3);\n app.getBuilderEditorPanel().getBoardViewPanel().getBoard().setSquareFactory(sf);\n\n if (levelType.equals(\"Puzzle\"))\n {\n l = new PuzzleLevel(\"NewLevel\", game.getLevels().size() + 1, 0, twoStar,\n threeStar, \"\", true, moveLimit, specialMoves, outFile);\n } else if (levelType.equals(\"Elimination\"))\n {\n l = new EliminationLevel(\"NewLevel\", game.getLevels().size() + 1, 0, twoStar,\n threeStar, \"\", true, specialMoves, outFile);\n } else if (levelType.equals(\"Lightning\"))\n {\n l = new LightningLevel(\"NewLevel\", game.getLevels().size() + 1, 0, twoStar,\n threeStar, \"\", true, timeLimit, specialMoves, outFile);\n } else if (levelType.equals(\"Release\"))\n {\n l = new ReleaseLevel(\"NewLevel\", game.getLevels().size() + 1, 0, twoStar,\n threeStar, \"\", true, specialMoves, outFile);\n }\n app.getBuilderEditorPanel().getBoardViewPanel().getBoard().setLevel(l);\n assert l != null;\n l.setBoardData(app.getBuilderEditorPanel().getBoardViewPanel().getBoard().getBoardData());\n l.saveLevel();\n }\n game.reloadFromDisk();\n app.getBuilderLevelSelectPanel().updateLevelList(game);\n }",
"void enableSampledStatistics();",
"void loadExperiment();",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n setContentView(R.layout.main);\n \n /* ============================================================== */\n /* buttons */\n /* the closing button */\n closeButton = (Button) findViewById(R.id.close);\n closeButton.setOnTouchListener(new OnTouchListener() {\n public boolean onTouch(View v, MotionEvent e) {\n finish();\n return true;\n }\n });\n \n /* ============================================================== */\n /* Text Views */\n sampleRateText = (TextView) findViewById(R.id.sampleRateText);\n \n /* ============================================================== */\n /* seekbar */\n rateMultiplier = (SeekBar)this.findViewById(R.id.rateMultiplier);\n rateMultiplier.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tInteractionModelSingleton.get().setRate(progress);\n\t\t\t\tsampleRateText.setText(InteractionModelSingleton.get().rateAsString());\n\t\t\t}\n\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\t\n\t\t\t}\n\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\t\n\t\t\t}\n \t\n \t\n });\n rateMultiplier.setProgress(InteractionModelSingleton.get().getRate());\n \n /* ============================================================== */\n /* Drop down menu */\n /*\n filterSpinner = (Spinner) findViewById(R.id.filterList);\n ArrayAdapter<CharSequence> filterAdapter = ArrayAdapter.createFromResource(this, R.array.filter_array, android.R.layout.simple_spinner_item);\n filterAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n filterSpinner.setAdapter(filterAdapter);\n filterSpinner.setOnItemSelectedListener(new OnItemSelectedListener () {\n\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint pos, long id) {\n\t\t\t\tString value = parent.getItemAtPosition(pos).toString();\n\t\t\t\tStepDetection detector = null;\n\t\t\t\tLog.i(TAG, \"Filter spinner had this selected: \" + parent.getItemAtPosition(pos).toString());\n\t\t\t\tif(!value.equals(\"No detection\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdetector = (StepDetection) Class.forName(\"be.ugent.csl.StepCounter.\"+value).newInstance();\n\t\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\t\tLog.e(TAG, \"Not allowed to for filter selection \" + value, e);\n\t\t\t\t\t} catch (InstantiationException e) {\n\t\t\t\t\t\tLog.e(TAG, \"Cannot instantiate for filter selection \" + value, e);\n\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\tLog.e(TAG, \"Cannot find class for filter selection \" + value, e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\taccellMeterService.setFilter(detector);\n\t\t\t}\n\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t// TODO Auto-generated method stub\t\n\t\t\t}\n \t\n });\n */\n \n \n \tIntent i = new Intent(this, AccellMeterService.class);\n \t/* first we bind to the service to be able to talk to it through the local binding */\n \taccellMeterServiceBound = bindService(i, accellMeterServiceConnection, BIND_AUTO_CREATE);\n \tLog.i(InteractionModelSingleton.TAG, \"AccelMeterService bound\");\n \t\n \t/* we also need to start the service explicitly, with the same intent to make sure\n \t * the service keeps running even when the activity loses focus. \n \t */\n \tstartService(i);\t \n \tLog.i(InteractionModelSingleton.TAG, \"AccellMeterService started\");\n \n \t/* The log button */\n \tlogButton = (Button) findViewById(R.id.addMessageButton);\n \t\n \tfinal EditText data = (EditText) findViewById(R.id.messageData);\n\n \tlogLinesText = (TextView) findViewById(R.id.linesCount);\n \t\n \tlogButton.setOnClickListener(new OnClickListener() {\n \t\t@Override\n \t\tpublic void onClick(View v) {\n \t\t\tInteractionModelSingleton.get().logString(data.getText().toString());\n \t\t\tupdateLogCount();\n \t\t}\n \t});\n\n \t\n \tCheckBox logData = (CheckBox) findViewById(R.id.logData);\n \tlogData.setChecked(InteractionModelSingleton.get().isLogging());\n \tlogData.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n \t\t@Override\n \t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n \t\t\tInteractionModelSingleton.get().setLogging(isChecked);\n \t\t}\n \t});\n\n \tlogTask = new UpdateLogTask();\n \tlogTask.execute();\n \t\n \tButton clearButton = (Button) findViewById(R.id.clear);\n \tclearButton.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tInteractionModelSingleton.get().clearFile();\n\t\t\t\tupdateLogCount();\n\t\t\t}\n\t\t});\n }",
"private void analyseSamples(){\n EditText editTx;\n\n resetBackgrounds();\n\n MeasureSet measureSet;\n ArrayList<View> views = new ArrayList<View>();\n\n for(int y = 1; y <= rowCount; y++) {\n measureSet = new MeasureSet();\n views.clear();\n measureSet.copyUncertainty(measuredMag);\n for (int x = 1; x <= columnCount; x++) {\n editTx = (EditText) rootView.findViewById(Integer.parseInt(\"10\" + x + \"00\" + y)).findViewById(R.id.third_list_value);\n views.add(editTx);\n\n try {\n measureSet.add(Double.parseDouble(editTx.getText().toString()));\n } catch (Exception e) {\n editTx.setBackgroundResource(R.drawable.red_shape);\n Toast.makeText(getActivity(), getString(R.string.third_invalid_value), Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n if (!StatisticUtils.applyChauvenet(measureSet, views)) {\n Toast.makeText(getActivity(), getString(R.string.third_chauvenet_invalid_samples), Toast.LENGTH_SHORT).show();\n return;\n }\n\n measuredMag.addMeasureSet(measureSet);\n }\n\n ((MainActivity) getActivity()).callFragment(Constants.FINAL_STEP_FRAGMENT, mag1, mag2);\n }",
"@Override\n public void run() {\n mode = NONE;\n }",
"@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\tNoteInJson[] pattern=gpt.getPattern();\r\n\t\t\t\t\t\t\t\t\t\t\tgotoLiveView(pattern,sound_cache);\r\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void updateBuzzerCount() {\n getProgramController().setSimpleOutputView(new SimpleOutputView(getProgramController()));\n getProgramController().getProgramView().repaint();\n getProgramPresentationView().updateBuzzerCount();\n }"
] | [
"0.6685487",
"0.6651653",
"0.61433935",
"0.6025794",
"0.60141814",
"0.57082164",
"0.5629833",
"0.5617139",
"0.54772264",
"0.5453554",
"0.54334134",
"0.5432533",
"0.54165304",
"0.53680515",
"0.5368004",
"0.53641605",
"0.5351509",
"0.531901",
"0.5318788",
"0.53158844",
"0.5313099",
"0.5301689",
"0.52786475",
"0.5272376",
"0.5241566",
"0.52398485",
"0.52383715",
"0.5219571",
"0.5198832",
"0.5198118",
"0.51962376",
"0.5191526",
"0.51845443",
"0.51771474",
"0.51670337",
"0.51670337",
"0.51632243",
"0.5163019",
"0.5156122",
"0.5149115",
"0.5147157",
"0.51281613",
"0.5105294",
"0.5103183",
"0.5097808",
"0.5092386",
"0.5083853",
"0.50690246",
"0.5066074",
"0.506224",
"0.5061235",
"0.5058515",
"0.5052612",
"0.5049035",
"0.5046597",
"0.50440735",
"0.5040606",
"0.5038632",
"0.5033813",
"0.50329745",
"0.5028382",
"0.5026039",
"0.50178444",
"0.5016491",
"0.5014086",
"0.50138783",
"0.50132006",
"0.50085527",
"0.5006218",
"0.50032234",
"0.5001696",
"0.49999112",
"0.49958462",
"0.49949527",
"0.49946234",
"0.49863416",
"0.49857366",
"0.4984886",
"0.4984441",
"0.49801338",
"0.49765342",
"0.49720645",
"0.49612886",
"0.4955204",
"0.49537486",
"0.4950978",
"0.4948402",
"0.49478534",
"0.49471438",
"0.49464235",
"0.49453235",
"0.49444553",
"0.49419665",
"0.493965",
"0.49390626",
"0.49373826",
"0.49345478",
"0.49306235",
"0.49304652",
"0.4927987"
] | 0.61234677 | 3 |
Get the component for editing the sampling methods | public Component getTableCellEditorComponent(JTable table,
Object value, boolean isSelected, int rowIndex,
int vColIndex) {
JComboBox box = (JComboBox) getComponent();
GuiUtils.setListData(box, samplingLabels);
box.setSelectedItem(value);
return box;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"public String getComponent() {\n return this.component;\n }",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"public Component getComponent() {\n\treturn component;\n}",
"public JPanel getRolodexComponent(){\r\n /* Set the controls enable/disable and background color depending\r\n * on the function type\r\n */\r\n setControls(functionType);\r\n return this;\r\n }",
"@Override\n public GeneralOrthoMclSettingsVisualPanel getComponent() {\n if (component == null) {\n component = new GeneralOrthoMclSettingsVisualPanel();\n\n }\n return component;\n }",
"public Component getComponent() {\n return component;\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}",
"@Override\n\tpublic Component getComponent() {\n\t\treturn p;\n\t}",
"ISModifyComponent createISModifyComponent();",
"JComponent getImpl();",
"protected ComponentModel getComponentModel()\n {\n return componentModel;\n }",
"@Override\n public Component getComponent() {\n if (component == null) {\n component = new PubMLSTVisualPanel2();\n }\n component.setPreferredSize(new java.awt.Dimension(480,340));\n return component;\n }",
"@Override\n public SelectCurriculumVisualPanel getComponent() {\n if (component == null) {\n component = new SelectCurriculumVisualPanel();\n component.manager.addPropertyChangeListener(this);\n }\n return component;\n }",
"public JFormattedTextField getEditComponent() {\r\n\t\tif(m_editComponent==null) {\r\n\t\t\t// create\r\n\t\t\tm_editComponent = createDefaultComponent(true,m_documentListener);\r\n\t\t\t//m_editComponent.getDocument().addDocumentListener(m_documentListener);\r\n\t\t}\r\n\t\treturn m_editComponent;\r\n\t}",
"protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}",
"Object getComboViewerInput(T elem, EStructuralFeature feature);",
"@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}",
"@Override\n public abstract String getComponentType();",
"public <S> ComponentInstance<S> getComponentInstance();",
"@Override\n\tpublic String getComponentDefinition() {\n\t\tString component = \"\\n\\tWebElement submit_\" + getComponentName() + \" = driver.findElement(\"\n\t\t\t\t+ getSearchIdentifierString() + \");\";\n\t\tif (getAction() != null && (getAction().equals(\"click\") || getAction().equals(\"submit\"))) {\n\t\t\tcomponent += \"\\n\\tsubmit_\" + getComponentName() + \".submit();\";\n\n\t\t}\n\t\tcomponent += \"\\n\\tThread.sleep(1000);\";\n\t\treturn component;\n\t}",
"public Modify() {\n initComponents();\n }",
"private JPanel getMethodSelectionPanel() {\n\t\tif (methodSelectionPanel == null) {\n\t\t\tmethodSelectionPanel = new JPanel();\n\t\t\tmethodSelectionPanel.setLayout(null);\n\t\t\tmethodSelectionPanel.setBounds(new java.awt.Rectangle(2, 127, 467,\n\t\t\t\t\t94));\n\t\t\tmethodSelectionPanel\n\t\t\t\t\t.setBorder(javax.swing.BorderFactory\n\t\t\t\t\t\t\t.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));\n\t\t\tmethodSelectionPanel.add(getDistanceBufferRadioButton(), null);\n\t\t\tmethodSelectionPanel.add(getBufferDistanceTextField(), null);\n\t\t\tmethodSelectionPanel.add(getAttributeBufferRadioButton(), null);\n\t\t\tmethodSelectionPanel.add(getLayerFieldsComboBox(), null);\n\t\t\tmethodSelectionPanel.add(getDissolveEntitiesJCheckBox(), null);\n\t\t\tmethodSelectionPanel.add(getEndCapCheckBox(), null);\n\t\t}\n\t\treturn methodSelectionPanel;\n\t}",
"public JPanel getPanel() { return gate; }",
"public int getComponentID() {\n return COMPONENT_ID;\n }",
"public void onComponentSelection(){\r\n\r\n }",
"String getComponentName();",
"String getComponentName();",
"public ProcessProvider getComponent() {\n return component;\n }",
"public SamplingEditor() {\n super(new JComboBox());\n }",
"@Override\n public IAlgorithmPanel getGUI() {\n return new PFileLoader(this);\n }",
"public PanelSelectionMethod() {\n\t\t\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// CREATE THE COMPONENTS\n\t\t// ----------------------------------------------------------------------------\n\t\t// Create the model to management the elements.\n\t\tlistModel = new DefaultListModel<String>(); \n\t\tmethodList = new JList<String>(listModel);\n\t\t\n\t\tlistModel.addElement(Method_0);\n\t\tlistModel.addElement(Method_1);\n\t\tlistModel.addElement(Method_2);\n\t\tlistModel.addElement(Method_3);\n\t\tlistModel.addElement(Method_4);\n\t\tlistModel.addElement(Method_5);\n\t\t\n\t\tselectionModel = methodList.getSelectionModel(); \n\t\t\n\t\t// Create the components.\n\t\ttitle = new JLabel(\"Methods:\"); // Title\n\t\tJScrollPane scrollUniverses = new JScrollPane(methodList);\n\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// DEFINE LAYOUT ADMINISTRATOR\n\t\t// ----------------------------------------------------------------------------\n\t\tthis.setLayout(new GridBagLayout());\n\t\tthis.setMinimumSize(new Dimension(width,height));\n\t\tthis.setMaximumSize(new Dimension(width,height));\n\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// DEFINE GRIDBAGCONSTRAINTS\n\t\t// ----------------------------------------------------------------------------\n\t\tGridBagConstraints infoTitle = new GridBagConstraints();\n\t\tinfoTitle.insets = new Insets(3,3,3,3);\n\t\tinfoTitle.gridx = 0;\n\t\tinfoTitle.gridy = 0;\n\t\tinfoTitle.weightx = 1.0;\n\t\tinfoTitle.weighty = 0.0;\n\t\tinfoTitle.anchor = GridBagConstraints.NORTHWEST;\n\t\t\n\t\tGridBagConstraints infoScroll = new GridBagConstraints();\n\t\tinfoScroll.gridx = 0;\n\t\tinfoScroll.gridy = 1;\n\t\tinfoScroll.weightx = 1.0;\n\t\tinfoScroll.weighty = 1.0;\n\t\tinfoScroll.fill = GridBagConstraints.BOTH;\n\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// ADD THE COMPONENTS TO THE CONTAINER\n\t\t// ----------------------------------------------------------------------------\n\t\tthis.add(title,infoTitle);\n\t\tthis.add(scrollUniverses,infoScroll);\n\t\t\n\t\t// ----------------------------------------------------------------------------\n\t\t// EVENTS HANDLERS\n\t\t// ----------------------------------------------------------------------------\n\t\tthis.selectionModel.addListSelectionListener(new ListSelectionListener(){\n\t\t\tpublic void valueChanged (ListSelectionEvent e){\n\t\t\t\tif (!e.getValueIsAdjusting() && (methodList.getSelectedValue()!=null)){\n\t\t\t\t\tPageRankGUI.actMethod = (String) methodList.getSelectedValue();\n\t\t\t\t\tSystem.out.println(\"Selected : \" + PageRankGUI.actMethod);\n\t\t\t\t\tif ((PageRankGUI.actUniverse!=null) && (PageRankGUI.actMethod!=null) &&\n\t\t\t\t\t\t (PageRankGUI.actOption!=null)){\n\t\t\t\t\t\tPanelShowPageRank.loadPageRank();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n \n\t}",
"ComponentParameterInstance createComponentParameterInstance();",
"public final Object getSample()\n { return(this.sample); }",
"public interface PIComponent {\n\t\n\t\n\t/**\n\t * returns the current height of the component.\n\t * @return the components height\n\t */\n\tpublic float getHeight();\n\t\n\t\n\t/**\n\t * returns the current width of the component.\n\t * @return the components width\n\t */\n\tpublic float getWidth();\n\t\n\t\n\t/**\n\t * Resizes the component so that it has width width and height height. \n\t * @param width the new width of the component\n \t * @param height the new height of the component\n\t */\n\tpublic void setSize(float width, float height);\n\t\n\t\n\t/**\n\t * Returns the current x coordinate of the components origin.\n\t * @return the current x coordinate of the components origin\n\t */\n\tpublic float getX();\n\t\n\t\n\t/**\n\t * Returns the current y coordinate of the components origin.\n\t * @return the current y coordinate of the components origin\n\t */\n\tpublic float getY();\n\t\n\t\n\t/**\n\t * sets the location of the component\n\t * @param x the x value\n\t * @param y the y value\n\t */\n\tpublic void setLocation(float x, float y);\n\t\n\n\t/**\n\t * checks if the components contains x and y for the sake of e.g. mouse processing. \n\t * @param x the x coordinate of the point\n\t * @param y the y coordinate of the point\n\t * @return true if the component contains x and y\n\t */\n\tpublic boolean contains(float x, float y);\n\t\n\t\n\t/**\n\t * returns the component's unique id.\n\t * @return the component's unique id. \n\t */\n\tpublic UUID getComponentId();\n\t\n\t\n\t/**\n\t * to draw the component onto the canvas\n\t */\n\tpublic void draw();\n\n}",
"public JComponent getComponent() { return _panel; }",
"@Override public Object getComponente(String componente){\n return getBlindaje(componente);\n }",
"private JPanel getJPanelMethod() {\r\n\t\t// if (jPanelMethod== null) {\r\n\t\tjPanelMethod = new JPanel();\r\n\t\tjPanelMethod.setLayout(new BoxLayout(jPanelMethod, BoxLayout.Y_AXIS));\r\n\t\t//jPanelMethod.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\t\tjPanelMethod.setBorder(new TitledBorder(null, \"Method\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\t\r\n\t\tjPanelMethod.add(getJRadioButtonButtZero());\r\n\t\tjPanelMethod.add(getJRadioButtonButtConst());\r\n\t\tjPanelMethod.add(getJRadioButtonButtCopy());\r\n\t\tjPanelMethod.add(getJRadioButtonButtReflect());\r\n\t\tjPanelMethod.add(getJRadioButtonButtWrap());\r\n\t\t// jPanelMethod.addSeparator();\r\n\t\tthis.setButtonGroupMethod(); // Grouping of JRadioButtons\r\n\t\t// }\r\n\t\treturn jPanelMethod;\r\n\t}",
"default Component getQuickPropertiesComponent()\r\n {\r\n return null;\r\n }",
"@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}",
"public JPanel getPanel(){\n return panel;\n }",
"public ResourceId component() {\n return this.component;\n }",
"public JButton getAddButton(){ return addCustomTraitButton; }",
"public JPanel getSettingsPanel() {\n\t\t//edgeAttributeHandler.updateAttributeList();\n\t\t// Everytime we ask for the panel, we want to update our attributes\n\t\tTunable attributeTunable = clusterProperties.get(\"attributeList\");\n\t\tattributeArray = getAllAttributes();\n\t\tattributeTunable.setLowerBound((Object)attributeArray);\n\n\t\treturn clusterProperties.getTunablePanel();\n\t}",
"public String getSampleName();",
"private PointsOfContactEditorPanel getServicePointsOfContactEditorPanel() {\r\n if (this.servicePointsOfContactEditorPanel == null) {\r\n this.servicePointsOfContactEditorPanel = new PointsOfContactEditorPanel();\r\n }\r\n return this.servicePointsOfContactEditorPanel;\r\n }",
"public Control getControl()\n {\n return composite;\n }",
"public Entity getComponent() {\n return component;\n }",
"public interface IEmfPropertyComboHandler<T> {\r\n\r\n /**\r\n * Configures a combo viewer associated with a structural feature.\r\n * \r\n * @param comboViewer\r\n * the combo viewer.\r\n * @param feature\r\n * the structural feature.\r\n */\r\n void configureComboViewer(ComboViewer comboViewer, EStructuralFeature feature);\r\n\r\n /**\r\n * Returns the input for a combo viewer associated with a structural feature.\r\n * \r\n * @param elem\r\n * the selected model element.\r\n * @param feature\r\n * the structural feature.\r\n * @return the input for the combo viewer.\r\n */\r\n Object getComboViewerInput(T elem, EStructuralFeature feature);\r\n\r\n}",
"public Object getComponentEditPart() {\n\t\treturn componentEditPart;\n\t}",
"@Override\n public Component getUiComponent() {\n return this;\n }",
"@Override\n public JComponent getComponent () {\n return this;\n }",
"@Override\n public SampleModel getSampleModel() {\n return this.sampleModel;\n }",
"public ChooseParameterPanel() {\n initComponents();\n }",
"@Override\n\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\tif(InitComplete && e.getStateChange() == 1)\n\t\t\t{\n\t\t\t\tString AllName[] = e.getSource().toString().split(\",\");\n\t\t\t\t\n\t\t\t\tString Index = AllName[0].replace(\"javax.swing.JComboBox[Smooth\", \"\");\n\t\t\t\t\n\t\t\t\tComponent Point = null;\n\t\t\t\tfor(Component one:parameterPanel.getComponents())\n\t\t\t\t{\n\t\t\t\t\tif(one.getName() != null && one.getName().equals(\"Parameter\" + Index))\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint = one;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Point != null)\n\t\t\t\t{\n\t\t\t\t\tJTextField PointText = (JTextField) Point;\n\t\t\t\t\tString MethodValue = smoothParameters.GetMethodOneValue(e.getItem().toString());\n\t\t\t\t\t\n\t\t\t\t\tPointText.setText(MethodValue);\n\t\t\t\t\tPointText.setToolTipText(smoothParameters.GetMethodComment(e.getItem().toString()));\n\t\t\t\t\tif (MethodValue.equals(\"0\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tPointText.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tPointText.setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@FXML\n\tpublic void changeSamplingMethod(ActionEvent e)\n\t{\n\t\tupdateNumberOfDatasets(e);\n\t}",
"@Override\n\tpublic JPanel getPanel()\n\t{\n\t\treturn panel;\n\t}",
"public ShortCutComponent getShortCutComponent() {\n return shortCutComponent;\n }",
"public JPanel getPanel()\n {\n return panel;\n }",
"public abstract String getManipulatorButtonLabel();",
"public Component getSelf(ExecutionCtrl exec);",
"public EditPanel getEditPanel() { return ep; }",
"public JPanel getPanel()\r\n\t {\r\n\t JPanel result = new JPanel();\r\n\t spinner = new JSpinner();\r\n\t spinner.setPreferredSize(new Dimension(50, 50));\r\n\t spinner.setAlignmentY(1.5F);\r\n\t result.add(spinner);\r\n\t return result;\r\n\t }",
"public JawbComponent getMainComponent () {\n return null;\n }",
"public JComponent getComponent() {\n return getGradleUI().getComponent();\n }",
"public ParameterPanel getParameterPanel() {\n return m_parameters;\n }",
"private Component getOpcionesSesion() {\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(new JScrollPane(getPanelOpcionesSuperior()), BorderLayout.CENTER);\n\t\t//panel.add(getPanelOpcionesInferior(), BorderLayout.SOUTH);\n\t\tFakeInternalFrame fr = new FakeInternalFrame(\"Configuracion de la sesion\", panel);\n\t\treturn fr;\n\t}",
"Component createComponent();",
"Component createComponent();",
"public JPanel getJPanel();",
"public JPanel getJPanel();",
"public PluginComponent getPluginComponent()\n {\n return (PluginComponent) getSource();\n }",
"public Sample getPrideSample() {\n\n \n return prideSample;\n\n }",
"protected JComponent createEditor() {\n return spinner.getEditor(); }",
"public SensorPanelPresenter getPanel(){\n return this.panel;\n }",
"public Component select( Object hint )\n throws ComponentException\n {\n final Component component = (Component)m_components.get( hint );\n\n if( null != component )\n {\n return component;\n }\n else\n {\n throw new ComponentException( hint.toString(), \"Unable to provide implementation.\" );\n }\n }",
"public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }",
"protected Component getOptionsPanel() {\n return _options;\n }",
"public String getSampleType() {\n return sampleType;\n }",
"public Component getComponent()\n {\n if(null == _sqlPanel)\n {\n _sqlPanel = createSqlPanel();\n }\n return _sqlPanel;\n }",
"public Component getPanelControl() {\n\t\tTableSorter sorterOperaciones = new TableSorter(modeloOperaciones);\n\t\tJTable tablaOperaciones = new JTable(sorterOperaciones);\n\t\tsorterOperaciones.setTableHeader(tablaOperaciones.getTableHeader());\n\t\tJScrollPane panelScrollDerecha = new JScrollPane(tablaOperaciones);\n\t\tpanelScrollDerecha.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelDerecha = new FakeInternalFrame(\"Log de Operaciones\", panelScrollDerecha);\n\n\t\tTableSorter sorterPrecios = new TableSorter(modeloPrecios);\n\t\tJTable tablaPrecios = new JTable(sorterPrecios);\n\t\tsorterPrecios.setTableHeader(tablaPrecios.getTableHeader());\n\t\ttablaPrecios.getColumn(tablaPrecios.getColumnName(1)).setCellRenderer(modeloPrecios.getRenderer());\n\n\t\tJScrollPane panelScrollIzqAbajo = new JScrollPane(tablaPrecios);\n\t\tpanelScrollIzqAbajo.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelIzqAbajo = new FakeInternalFrame(\"Precios en bolsa\", panelScrollIzqAbajo);\n\n\t\t//panelSecundario = new JSplitPane(JSplitPane.VERTICAL_SPLIT, panelIzqAbajo, panelIzqArriba);\n\t\tpanelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelIzqAbajo, panelDerecha);\n\n\t\tpanelPrincipal.setDividerLocation(300);\n\t\t//panelSecundario.setDividerLocation(300);\n\n\t\tpanelIzqAbajo.setPreferredSize(new Dimension(250, 300));\n\t\tpanelDerecha.setPreferredSize(new Dimension(550, 600));\n\n\t\treturn panelPrincipal;\n\t}",
"public Modification() {\n initComponents();\n }",
"public int getPanelGen(){\n return this.mFarm.getPanelGen();\n }",
"public interface DomainBuilderComponent extends PropertyChangeListener {\n\t/**\n\t * get name of the component\n\t * @return\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * get icon for the component\n\t * @return\n\t */\n\tpublic Icon getIcon();\n\t\n\t\n\t/**\n\t * get component\n\t * @return\n\t */\n\tpublic Component getComponent();\n\t\n\t\n\t/**\n\t * get menu bar\n\t * @return\n\t */\n\tpublic JMenuBar getMenuBar();\n\t\n\t\n\t/**\n\t * load whatever resources one needs to get this piece working \n\t */\n\tpublic void load();\n\t\n\t/**\n\t * dispose of this component\n\t */\n\tpublic void dispose();\n}",
"public interface ComboPropertiesEditionPart {\n\n\t/**\n\t * @return the combo\n\t */\n\tpublic Object getCombo();\n\n\t/**\n\t * Init the combo\n\t * @param eClass the eClass to manage\n\t * @param current the current value\n\t */\n\tpublic void initCombo(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new combo\n\t * @param newValue the new combo to set\n\t */\n\tpublic void setCombo(Object newValue);\n\n\t/**\n\t * Adds the given filter to the combo edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t */\n\tpublic void addFilterToCombo(ViewerFilter filter);\n\n\n\n\n\n\n\t/**\n\t * @return the comboRO\n\t */\n\tpublic Object getComboRO();\n\n\t/**\n\t * Init the comboRO\n\t * @param eClass the eClass to manage\n\t * @param current the current value\n\t */\n\tpublic void initComboRO(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new comboRO\n\t * @param newValue the new comboRO to set\n\t */\n\tpublic void setComboRO(Object newValue);\n\n\t/**\n\t * Adds the given filter to the comboRO edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t */\n\tpublic void addFilterToComboRO(ViewerFilter filter);\n\n\n\n\n\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}",
"RenderTool getRenderTool();",
"public JPanel getPanel() {\n return panel;\n }",
"String getDescriptor();",
"public static int getDrawingTool(){ return selectedDrawingTool; }",
"public JawbComponent getEditorComponent () {\n if (editorComponent == null)\n initEditorComponent ();\n return editorComponent;\n }",
"@Override\n public AttributeDescriptor.ComponentType getComponentType(AttributeDescriptor.Operator operator)\n {\n DemoAttributeDescriptor demoAttrDesc = (DemoAttributeDescriptor) getAttribute();\n boolean isMultiSelectOper = demoAttrDesc.hasVariableOperands(operator);\n if (demoAttrDesc.isLOV())\n {\n if (isMultiSelectOper)\n {\n // always return selectOneChoice for multiSelect enabled operators\n return ComponentType.selectManyChoice;\n }\n else\n {\n // For certain operators the default component type is used, otherwise the base component\n // type is used (based on the datatype)\n if (demoAttrDesc.useDefaultComponentType(operator))\n {\n AttributeDescriptor.ComponentType compType = demoAttrDesc.getComponentType();\n \n //try to simulate the current model driven query's behaviour and return \n //inputText for all operators except equals and non equals\n if(compType.equals(AttributeDescriptor.ComponentType.selectOneChoice))\n {\n if(operator != null && (DemoPageDef.OperatorDef.EQUALS.getLabel().equals(operator.getLabel()) || \n DemoPageDef.OperatorDef.NOT_EQUALS.getLabel().equals(operator.getLabel())))\n {\n return compType;\n }\n else\n {\n return ComponentType.inputText;\n }\n }\n }\n else\n {\n // based on the type of the attribute \n String typeName = demoAttrDesc.getType().getName();\n if (typeName.equals(\"java.lang.Number\"))\n return ComponentType.inputNumberSpinbox;\n else if (typeName.equals(\"java.util.Date\"))\n return ComponentType.inputDate;\n else\n return ComponentType.inputText;\n }\n }\n }\n \n // Return default componentType\n return demoAttrDesc.getComponentType();\n }",
"@Override\n\tpublic Component getComponent() {\n\t\tComponent component = button.getComponent();\n\t\tcomponent.setBackground(color);\n\t\treturn component;\n\t}",
"public JComponent getComponent();",
"private WritePrescriptionPanel getWritePrescriptionPanel() {\n if (writePrescriptionPanel == null) {\n writePrescriptionPanel = new WritePrescriptionPanel();\n //writePrescriptionPanel.setLayout(new GridBagLayout());\n }\n return writePrescriptionPanel;\n }",
"@Override \n\tpublic String getStrategyName() {\n\t\treturn \"Sample\"; \n\t}",
"ViewComponentPart createViewComponentPart();",
"List<String> getEditPanelInput();",
"public AppComponent component(){\n return mComponent;\n }",
"public jHistorialSeleccionarVoluntario() {\n initComponents();\n \n \n }",
"public tool() {\n initComponents();\n }",
"JPanel getPanel();"
] | [
"0.6191181",
"0.5966118",
"0.579396",
"0.5756915",
"0.5754768",
"0.5721531",
"0.5720696",
"0.57123005",
"0.5711775",
"0.5633821",
"0.5627352",
"0.5581586",
"0.5578104",
"0.5567195",
"0.5564806",
"0.55516005",
"0.55431575",
"0.5522971",
"0.5504763",
"0.5466995",
"0.5458384",
"0.5454266",
"0.5430895",
"0.5419913",
"0.54139555",
"0.5403111",
"0.5385904",
"0.5385904",
"0.5385548",
"0.538213",
"0.5374249",
"0.5372376",
"0.53186834",
"0.53159416",
"0.53049845",
"0.52982974",
"0.52933776",
"0.529235",
"0.52746564",
"0.52513844",
"0.52504545",
"0.5247977",
"0.5245394",
"0.523755",
"0.52358526",
"0.5214233",
"0.52140427",
"0.520787",
"0.5197752",
"0.51915836",
"0.5190313",
"0.51836616",
"0.51804185",
"0.5167054",
"0.51637936",
"0.51609856",
"0.51502365",
"0.51496047",
"0.5143252",
"0.5139192",
"0.51361245",
"0.5116599",
"0.51135916",
"0.5112764",
"0.5107474",
"0.50962704",
"0.50931233",
"0.5089798",
"0.5089798",
"0.5083003",
"0.5083003",
"0.50804734",
"0.5076721",
"0.5067934",
"0.5066285",
"0.50645196",
"0.5059993",
"0.5054416",
"0.50532913",
"0.5051596",
"0.50486344",
"0.5018838",
"0.50187135",
"0.5014953",
"0.5006282",
"0.50057584",
"0.5005532",
"0.5003009",
"0.50026274",
"0.5000728",
"0.4996234",
"0.4996177",
"0.49949414",
"0.49924493",
"0.4989707",
"0.49883875",
"0.49833032",
"0.4980368",
"0.49768156",
"0.49716514",
"0.49686906"
] | 0.0 | -1 |
Show the line properties editor | public void showLineProperties(VerticalProfileInfo vpInfo) {
PropertyChangeListener listener = new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
try {
VerticalProfileControl.this.doMoveProbe();
} catch (Exception exc) {
logException("Updating position", exc);
}
}
};
LineState lineState = vpInfo.getLineState();
lineState.showPropertiesDialog(getStore(), listener,
getChart().getPlotNames(),
getChart().getCurrentRanges());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void edit()\n {\n openProperties(getHighlightedActors());\n }",
"public void showProperties() {\n \t\tmainFrame.showProperties();\n \t}",
"public void showProperties() {\n if ( _project != null ) {\n AntelopeProperties ap = new AntelopeProperties( this );\n ap.showProperties( _project );\n }\n }",
"public void showEditor()\n {\n\n try {\n UIManager.setLookAndFeel(Constants.LOOK_AND_FEEL);\n SwingUtilities.updateComponentTreeUI(this);\n pack();\n } catch (Exception e) {\n\t System.out.println(e.toString());\n\t e.printStackTrace();\n\t}\n\n setSize(Constants.EDITOR_SIZE);\n setVisible(true);\n }",
"public void properties(){\n setChanged();\n notifyObservers(name);\n System.out.println(\"Name: \" + name);\n System.out.println(\"Formula: \" + FORMULA);\n System.out.println(\"Colour: \" + COLOUR);\n System.out.println(\"Streak: \" + STREAK);\n System.out.println(\"Luster: \" + LUSTER);\n System.out.println(\"Diaphaneity: \" + DIAPHANEITY);\n System.out.println(\"Cleavage: \" + CLEAVAGE);\n System.out.println(\"Crystal system: \" + CRYSTAL_SYSTEM);\n System.out.println(\"Hardness: \" + HARDNESS);\n System.out.println(\"Specific Gravity: \" + SPECIFIC_GRAVITY);\n }",
"public String showLine() {\n return \"----------------------------------------------------------\" + System.lineSeparator();\n }",
"public void showProperties(Class type);",
"private void showPropertyDescription(MouseEvent event) {\r\n\t\tPropertyDescriptionStage propertyDescriptionStage = new PropertyDescriptionStage(property);\r\n\t\tpropertyDescriptionStage.show();\r\n\t}",
"public int getPropertyShowMode()\n {\n return propertyShowMode;\n }",
"private void displayEditMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Edit Menu ------------\");\r\n System.out.println(\"(1) Edit Car Colour\");\r\n System.out.println(\"(2) Edit Car Price\");\r\n System.out.println(\"(3) Back to Main Menu\");\r\n }",
"public boolean isShowLineNumbers() { return _showLineNumbers; }",
"public void configureEditor() {\n\t\tsuper.configureEditor();\n\t}",
"public void showLine() {\n System.out.print(LINE_SEPARATOR);\n }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"Line\");\n\t}",
"public void updateDescriptionText() {\n \n String toolTipText = new String(\"<html>\");\n \n if (!m_OptionsWereValid) {\n \n toolTipText += \"<font COLOR=\\\"#FF0000\\\">\"\n\t+ \"<b>Invalid Model:</b><br>\" + m_ErrorText + \"<br></font>\";\n }\n \n toolTipText += \"<TABLE>\";\n \n PropertyDescriptor properties[] = null;\n MethodDescriptor methods[] = null;\n \n try {\n BeanInfo bi = Introspector.getBeanInfo(m_Classifier.getClass());\n properties = bi.getPropertyDescriptors();\n methods = bi.getMethodDescriptors();\n } catch (IntrospectionException ex) {\n System.err.println(\"LibraryModel: Couldn't introspect\");\n return;\n }\n \n for (int i = 0; i < properties.length; i++) {\n \n if (properties[i].isHidden() || properties[i].isExpert()) {\n\tcontinue;\n }\n \n String name = properties[i].getDisplayName();\n Class type = properties[i].getPropertyType();\n Method getter = properties[i].getReadMethod();\n Method setter = properties[i].getWriteMethod();\n \n // Only display read/write properties.\n if (getter == null || setter == null) {\n\tcontinue;\n }\n \n try {\n\tObject args[] = {};\n\tObject value = getter.invoke(m_Classifier, args);\n\t\n\tPropertyEditor editor = null;\n\tClass pec = properties[i].getPropertyEditorClass();\n\tif (pec != null) {\n\t try {\n\t editor = (PropertyEditor) pec.newInstance();\n\t } catch (Exception ex) {\n\t // Drop through.\n\t }\n\t}\n\tif (editor == null) {\n\t editor = PropertyEditorManager.findEditor(type);\n\t}\n\t//editors[i] = editor;\n\t\n\t// If we can't edit this component, skip it.\n\tif (editor == null) {\n\t continue;\n\t}\n\tif (editor instanceof GenericObjectEditor) {\n\t ((GenericObjectEditor) editor).setClassType(type);\n\t}\n\t\n\t// Don't try to set null values:\n\tif (value == null) {\n\t continue;\n\t}\n\t\n\ttoolTipText += \"<TR><TD>\" + name + \"</TD><TD>\"\n\t+ value.toString() + \"</TD></TR>\";\n\t\n } catch (InvocationTargetException ex) {\n\tSystem.err.println(\"Skipping property \" + name\n\t + \" ; exception on target: \" + ex.getTargetException());\n\tex.getTargetException().printStackTrace();\n\tcontinue;\n } catch (Exception ex) {\n\tSystem.err.println(\"Skipping property \" + name\n\t + \" ; exception: \" + ex);\n\tex.printStackTrace();\n\tcontinue;\n }\n }\n \n toolTipText += \"</TABLE>\";\n toolTipText += \"</html>\";\n m_DescriptionText = toolTipText;\n }",
"public void setShowLineNumbers(boolean aValue)\n {\n if (aValue == isShowLineNumbers()) return;\n _showLineNumbers = aValue;\n\n // Adjust PrefWidth\n setPrefWidth(getSuggestedPrefWidth());\n }",
"public CustomModuleEditor getPropertyEditor() {\n\t return new SetErrorFunction();\n }",
"void showNewLine(String lineNumber, String directionId);",
"public void showLineage() {\n\t\tfor (Iterator i = this.getLineage().iterator(); i.hasNext();) {\n\t\t\tprtln((String) i.next());\n\t\t}\n\t}",
"public PropertyEditor getCellEditor() {\n Icon[] iconArray = new Icon[LineStyle.getIconSet().values().size()];\n\t\tint i = 0;\n for ( Icon newIcon : LineStyle.getIconSet().values()) {\n ((VisualPropertyIcon)newIcon).setIconHeight(16);\n ((VisualPropertyIcon)newIcon).setIconWidth(16);\n iconArray[i++] = newIcon;\n\t\t}\n\n\t\tlineCellEditor.setAvailableValues(LineStyle.getIconSet().keySet().toArray());\n lineCellEditor.setAvailableIcons(iconArray);\n\t\treturn lineCellEditor;\n }",
"public void setupEditor(MapUIController controller, GUIEditorGrid editor) {\n editor.addLabel(\"Type\", getType().name());\n editor.addLabel(\"Vertices\", Arrays.toString(getVertices()));\n }",
"public void show() {\n super.show(color, value.toString());\n }",
"private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}",
"public boolean isVisualizeEditEnabled() {\n return visualizeEditEnabled;\n }",
"void showCustomizer();",
"@FXML\n\t private void setProdInfoToTextArea ( Product prod) {\n\t resultArea.setText(\"Denumire: \" + prod.getDenumire() + \"\\n\" +\"Producator: \" + prod.getProducator() + \"\\n\" + \"Pret: \" + prod.getPrice() + \"\\n\" + \"Marime: \" + prod.getMarime() + \"\\n\" + \"Culoare: \" + prod.getCuloare());\n\t }",
"public static void showCommandLineOptions() {\n showCommandLineOptions(new TextUICommandLine());\n }",
"public EditorPropertyDisplayer(Property p) {\n this(p, null);\n }",
"public boolean isShowLineMarkers() { return _showLineMarkers; }",
"public void setShowLineMarkers(boolean aValue)\n {\n if (aValue == isShowLineMarkers()) return;\n _showLineMarkers = aValue;\n\n // Adjust PrefWidth\n setPrefWidth(getSuggestedPrefWidth());\n }",
"public void addPolyLine() {\n abstractEditor.drawNewShape(new ELineDT());\n }",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"public void propertyChange(PropertyChangeEvent e) {\n String name = e.getPropertyName();\n if (name.equals(\"stepnumber\")) { //$NON-NLS-1$\n if (trackerPanel.getSelectedTrack() == this) {\n displayWorldCoordinates();\n stepValueLabel.setText(e.getNewValue() + \":\"); //$NON-NLS-1$\n }\n } else if (name.equals(\"locked\")) { //$NON-NLS-1$\n xField.setEnabled(!isLocked());\n yField.setEnabled(!isLocked());\n } else super.propertyChange(e);\n }",
"public void showDefaultsEditor() {\r\n \t\tDefaultsEditor.getInstance(mainWindow, DefaultsEditor.JMODEL).show();\r\n \t}",
"public Integer linesForEditing() {\n return this.linesForEditing;\n }",
"private void editArguments() {\n\t\tDialog d = new EditArgumentsDialog(creator.modpack.minecraft.arguments, frame, true);\n\t\td.setVisible(true);\n\t}",
"public static List<DisplayProperty> getDisplayProperties() {return DISPLAY_PROPERTIES;}",
"@Override\n\tpublic void onEditorCreate()\n\t{\n\t\tsetPath(t().getComponent(LttlPath.class, true));\n\t}",
"private void displayColourMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------- Colour Menu ---------------\");\r\n System.out.println(\"(1) To edit Colour1\");\r\n System.out.println(\"(2) To edit Colour2\");\r\n System.out.println(\"(3) To edit Colour3\");\r\n }",
"@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}",
"public void showPrimaryLines(){\n\t\tLinkedList<Line> primary = lineLists.get(0);\n\t\tfor (Line l: primary){\n\t\t\tl.setVisible(true);\n\t\t}\n\t\tshowPrimaryLines = true;\n\t}",
"private void cmdMultiLine() {\n fMultiLineMode = true;\n }",
"public static void designTextEditor() {\n\t\t\n\t}",
"public lineas() {\n initComponents();\n \n }",
"public String Line() {\n return \"==================================================================================================================\";\n }",
"public Editor() {\n initComponents();\n this.setTitle(\"Diario “La Otra Perspectiva”\");\n this.setLocationRelativeTo(null);\n }",
"public void openSelectedProperties()\n {\n FieldActorDescriptor[] actors = new FieldActorDescriptor[1];\n actors[0] = getSelectedActor();\n\n openProperties(actors);\n }",
"@Override\n public Line getLine() {\n return line;\n }",
"private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }",
"public static void prtProperties() {\n prop.list(System.out);\n }",
"public void setShowGestureLine(boolean show) {\n this.mShowGestureLine = show;\n postInvalidate();\n }",
"public void show() {\n int width = mEditor.getWidth();\n RectF leftHandleRect = mEditor.getLeftHandleRect();\n RectF rightHandleRect = mEditor.getRightHandleRect();\n\n // when right handle goes below visible area, it rect becomes empty. so this feature (or bug) used to calculate popup location\n // if we can not use this,\n // alternative method can be implemented using mMaximumTop\n // @TODO implement a proper way to calculate popup position\n if (rightHandleRect.isEmpty()) {\n rightHandleRect.top = mMaximumTop;\n rightHandleRect.left = width;\n rightHandleRect.bottom = mMaximumTop;\n rightHandleRect.right = width;\n }\n\n float handleHeight = leftHandleRect.height();\n selectionRect.top = Math.min(leftHandleRect.top, rightHandleRect.top);\n selectionRect.bottom = Math.max(leftHandleRect.bottom, rightHandleRect.bottom);\n selectionRect.left = Math.min(leftHandleRect.left, rightHandleRect.left);\n selectionRect.right = Math.max(leftHandleRect.right, rightHandleRect.right);\n\n // prevent drawing popup over the keyboard\n /*if (selectionRect.bottom > mMaximumTop - popHeightPx) {\n selectionRect.bottom -= popHeightPx;\n }*/\n\n if (mLeft > width - getWidth()) {\n mLeft = width - getWidth();\n }\n int height = mEditor.getHeight();\n if (mTop > height - getHeight()) {\n mTop = height - getHeight();\n }\n if (mTop < 0) {\n mTop = 0;\n }\n if (mLeft < 0) {\n mLeft = 0;\n }\n mEditor.getLocationInWindow(mLocation);\n boolean topCovered = mLocation[1] > selectionRect.top - textSizePx - popHeightPx - handleHeight;\n\n if (topCovered) {\n mTop = (int) (selectionRect.bottom + (handleHeight));\n } else {\n mTop = (int) (selectionRect.top - textSizePx - popHeightPx - handleHeight);\n }\n if (isShowing()) {\n update(mLocation[0] + mLeft, mLocation[1] + mTop, getWidth(), getHeight());\n return;\n }\n super.showAtLocation(mEditor,\n Gravity.START | Gravity.TOP,\n mLocation[0] + mLeft, mLocation[1] + mTop);\n }",
"public ObjectProperty<DrawingInfos> lastLineProperty() {\n return lastLine;\n }",
"@Override\n public void setShowGridLines(boolean showGridLines) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.SHOW_GRID_LINESQ_, new Boolean (showGridLines));\n }",
"private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\tLevelEditor le = new LevelEditor();\n\t}",
"@Override\n public String toString() {\n // using String.format to display out put value and infomation of Property\n return String.format(\n \"\\nCoordinates: %d, %d\\n\" + \"Length: %d m Width: %d m\\n\" + \"Registrant: #%d\\nArea: %d m2\\n\"\n + \"Property Taxes : $%.1f\",\n this.getXLeft(), this.getYTop(), this.getXLength(), this.getYWidth(), this.getRegNum(), this.getArea(),\n this.getTaxes());\n }",
"public EditTokenDialog() {\r\n \t\tsuper(\"net/rptools/maptool/client/ui/forms/tokenPropertiesDialog.jfrm\");\r\n \r\n \t\tpanelInit();\r\n \t}",
"private void printEditMenu(){\n System.out.println(\"fh - Flip horizontal \\n fv - Flip vertical \\n sl - Slide left \\n sr - Slide right \\n su - Slide up \\n sd - Slide down \\n nr - Slide number right. Currently=\" + numberRight + \"\\n nl - Slide number left. Currently=\" + numberLeft + \"\\n nd - Slide number down. Currently=\" + numberDown + \"\\n nu - Slide number up. Currently=\" + numberUp + \"\\n r - Repeat last operation (Default slide left) \\n q - Quit (Return to main menu)\");\n }",
"public SampleComponentProperties() {\n // Initialize the GUI\n initComponents();\n \n // Listen for changes to the info text field\n infoTextField.getDocument().addDocumentListener(new InfoTextFieldListener());\n \n }",
"public void processAddLine() {\n AppTextColorEnterDialogSingleton dialog = AppTextColorEnterDialogSingleton.getSingleton();\n\n // POP UP THE DIALOG\n dialog.show(\"Add Metro Line\", \"Enter Name and Color of the Metro Line:\", Color.web(\"#cccc33\"));\n\n // IF THE USER SAID YES\n if (dialog.getSelection()) {\n // CHANGE THE CURSOR\n Scene scene = app.getGUI().getPrimaryScene();\n scene.setCursor(Cursor.CROSSHAIR);\n \n // CHANGE THE STATE\n dataManager.setState(mmmState.ADD_LINE_MODE);\n }\n }",
"public void displayProperties() throws Exception {\n\t\tSystem.out.println(\"Monster \" + this.getName() + \" properties:\");\n\t\tSystem.out.println(\"Protection: \" + this.getProtection());\n\t\tSystem.out.println(\"Remaining Hitpoints: \" + this.getHitpoints());\n\t\tSystem.out.println(\"Strength: \" + this.getStrength());\n\t\tSystem.out.println(\"Total value of possessions: \" + this.getTotalValue() + \" dukats\");\n\t\tfor(Items temp : this.anchors) {\n\t\t\tif (temp == null)\n\t\t\t\tcontinue;\n\t\t\ttemp.displayProperties();\n\t\t}\n\t}",
"public ConfmlEditor() {\r\n\t\tsuper();\r\n\t\tinitializeEditingDomain();\r\n\t}",
"public void propertyChange(PropertyChangeEvent e) {\n String prop = e.getPropertyName();\n\n if (isVisible()\n && (e.getSource() == optionPane)\n && (JOptionPane.VALUE_PROPERTY.equals(prop) ||\n JOptionPane.INPUT_VALUE_PROPERTY.equals(prop))) {\n Object value = optionPane.getValue();\n if (value == JOptionPane.UNINITIALIZED_VALUE)\n return;\n optionPane.setValue(JOptionPane.UNINITIALIZED_VALUE);\n\n if (btnString1.equals(value)) {\n \tint charsPerLine = (int)widthField.getValue();\n \tBufferedImage image = getFontImage(charsPerLine);\n \t\ttry {\n \t\t File file = new File(\"fontx.png\");\n \t\t ImageIO.write(image, \"png\", file);\n \t\t} catch (IOException ioe) {}\n \t\t}\n\t\t\tsetVisible(false);\n }\n\t}",
"public int getLineType() {\n return lineType;\n }",
"public void setInfoParamsOfTurtleAndLine()\n\t{\n\t\tthis.myTurtleView.setTurtleInfo(\"Position: \\t\\t[\" + Math.floor(getTurtleLocation().getX()) + \", \" + Math.floor(getTurtleLocation().getY()) + \"]\"\n\t\t\t\t+ \" \\n\" + \"Heading: \\t\\t\" + this.getTurtleOrientation()\n\t\t\t\t+ \" \\n\" + \"Pen Status: \\t\" + myPenHandler.getPenStatus()\n\t\t\t\t);\n\t\t\n\t\tthis.myPenHandler.setThicknessParameter();\n\t}",
"@FXML\n\tpublic void showArrangementEditor(ActionEvent event) {\n\t\tpianoRoll.setVisible(false);\n\t\tarrangementEditor.setVisible(true);\n\t}",
"public String getLine() {\n \treturn this.lineColor;\n }",
"private void showThatEditable() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"You may now edit this recipe!\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Edit Mode\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}",
"public void setLineMode (boolean lineMode)\r\n\t{\r\n\t\tm_lineMode = lineMode;\r\n\t}",
"public Object showContinuousEditor() throws Exception {\n \t\tfinal EditorDisplayer editor = EditorDisplayer.getEditor(this, EditorType.CONTINUOUS);\n \n \t\tif (editor == EditorDisplayer.CONTINUOUS_COLOR)\n \t\t\teditor.setParameters(new Object[] { 450, 180, \"Gradient Editor for \" + this.calcName, this });\n \t\telse if (editor == EditorDisplayer.CONTINUOUS_CONTINUOUS)\n \t\t\teditor.setParameters(new Object[] {\n \t\t\t 450, 350, \"Continuous Editor for \" + this.calcName, this\n \t\t\t });\n \t\telse\n \t\t\teditor.setParameters(new Object[] {\n \t\t\t 450, 300, \"Continuous Editor for \" + this.calcName, this\n \t\t\t });\n \n \t\treturn showEditor(editor);\n \t}",
"public EntryEditorOutlinePage( EntryEditor entryEditor )\n {\n this.entryEditor = entryEditor;\n BrowserCommonActivator.getDefault().getPreferenceStore().addPropertyChangeListener( propertyChangeListener );\n }",
"public PropertyInspector()\n {\n super( new BorderLayout() );\n\n add(splitPane, BorderLayout.CENTER); \n splitPane.setDividerSize(5);\n\n setupPopupMenu( popup = new JPopupMenu() );\n\n //inspectorActionManager = new InspectorActionManager( mobile );\n\n addComponentListener(new ComponentAdapter()\n {\n @Override\n public void componentResized(ComponentEvent evt)\n {\n updateSplitPaneDivider();\n }\n });\n\n }",
"@Override\n public void update() {\n CommandNodeGameState gs = (CommandNodeGameState) state;\n String acc = String.valueOf(gs.getAcc());\n accView.setText(acc);\n String bak = String.valueOf(gs.getBak());\n bakView.setText(bak);\n String last = String.valueOf(gs.getLast());\n lastView.setText(last);\n String mode = String.valueOf(gs.getMode());\n modeView.setText(mode);\n String idle = String.valueOf(0);\n idleView.setText(idle);\n\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < gs.lineCount(); i++) {\n builder.append(gs.getLine(i).toString());\n builder.append(\"\\n\");\n }\n textArea.setText(builder.toString());\n\n if (state.isActive()) {\n highlightedLine = gs.getSelectedLine();\n } else {\n highlightedLine = null;\n }\n invalidate();\n }",
"public PropertiesView(){\n\n\t\tbtnDescTemplate = new DescTemplateWidget(this);\n\t\tbtnCalculation = new DescTemplateWidget(this);\n\n\t\ttable.setWidget(0, 0, new Label(LocaleText.get(\"text\")));\n\t\ttable.setWidget(1, 0, new Label(LocaleText.get(\"helpText\")));\n\t\ttable.setWidget(2, 0, new Label(LocaleText.get(\"type\")));\n\t\ttable.setWidget(3, 0, new Label(LocaleText.get(\"binding\")));\n\t\ttable.setWidget(4, 0, new Label(LocaleText.get(\"visible\")));\n\t\ttable.setWidget(5, 0, new Label(LocaleText.get(\"enabled\")));\n\t\ttable.setWidget(6, 0, new Label(LocaleText.get(\"locked\")));\n\t\ttable.setWidget(7, 0, new Label(LocaleText.get(\"required\")));\n\t\ttable.setWidget(8, 0, new Label(LocaleText.get(\"defaultValue\")));\n\t\ttable.setWidget(9, 0, new Label(LocaleText.get(\"calculation\")));\n\t\t\n\t\tlblDescTemplate = new Label(LocaleText.get(\"descriptionTemplate\"));\n\t\ttable.setWidget(10, 0, lblDescTemplate);\n\t\ttable.setWidget(11, 0, new Label(LocaleText.get(\"formKey\")));\n\n\t\ttable.setWidget(0, 1, txtText);\n\t\ttable.setWidget(1, 1, txtHelpText);\n\t\ttable.setWidget(2, 1, cbDataType);\n\t\ttable.setWidget(3, 1, txtBinding);\n\t\ttable.setWidget(4, 1, chkVisible);\n\t\ttable.setWidget(5, 1, chkEnabled);\n\t\ttable.setWidget(6, 1, chkLocked);\n\t\ttable.setWidget(7, 1, chkRequired);\n\t\ttable.setWidget(8, 1, txtDefaultValue);\n\n\t\tHorizontalPanel panel = new HorizontalPanel();\n\t\tpanel.add(txtCalculation);\n\t\tpanel.add(btnCalculation);\n\t\tpanel.setCellWidth(btnCalculation, \"20%\");\n\t\tFormUtil.maximizeWidget(txtCalculation);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(9, 1, panel);\n\n\t\tpanel = new HorizontalPanel();\n\t\tpanel.add(txtDescTemplate);\n\t\tpanel.add(btnDescTemplate);\n\t\tpanel.setCellWidth(btnDescTemplate, \"20%\");\n\t\tFormUtil.maximizeWidget(txtDescTemplate);\n\t\tFormUtil.maximizeWidget(panel);\n\t\ttable.setWidget(10, 1, panel);\n\t\t\n\t\ttable.setWidget(11, 1, txtFormKey);\n\n\t\ttable.setStyleName(\"cw-FlexTable\");\n\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeText\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeNumber\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDecimal\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDate\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeDateTime\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBoolean\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeMultSelect\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeRepeat\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypePicture\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeVideo\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeAudio\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeSingleSelectDynamic\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeGPS\"));\n\t\tcbDataType.addItem(LocaleText.get(\"qtnTypeBarcode\"));\n\n\t\tFlexCellFormatter cellFormatter = table.getFlexCellFormatter();\n\t\tcellFormatter.setHorizontalAlignment(15, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\n\t\ttable.setWidth(\"100%\");\n\t\tcellFormatter.setWidth(0, 0, \"20%\");\n\t\t//cellFormatter.setColSpan(0, 0, 2);\n\t\t\n\t\t//cellFormatter.setWidth(9, 0, \"20\"+PurcConstants.UNITS);\n\t\t//cellFormatter.setWidth(9, 1, \"20\"+PurcConstants.UNITS);\n\n\t\ttxtText.setWidth(\"100%\");\n\t\ttxtHelpText.setWidth(\"100%\");\n\t\ttxtBinding.setWidth(\"100%\");\n\t\ttxtDefaultValue.setWidth(\"100%\");\n\t\tcbDataType.setWidth(\"100%\");\n\t\ttxtFormKey.setWidth(\"100%\");\n\n\t\tVerticalPanel verticalPanel = new VerticalPanel();\n\t\tverticalPanel.setSpacing(5);\n\t\tverticalPanel.add(table);\n\n\t\tDecoratedTabPanel tabs = new DecoratedTabPanel();\n\t\ttabs.add(skipRulesView, LocaleText.get(\"skipLogic\"));\n\t\ttabs.add(validationRulesView, LocaleText.get(\"validationLogic\"));\n\t\ttabs.add(dynamicListsView, LocaleText.get(\"dynamicLists\"));\n\n\t\ttabs.selectTab(0);\n\t\tverticalPanel.add(tabs);\n\t\tFormUtil.maximizeWidget(tabs);\n\n\t\tFormUtil.maximizeWidget(verticalPanel);\n\t\tinitWidget(verticalPanel);\n\n\t\tsetupEventListeners();\n\n\t\tcbDataType.setSelectedIndex(-1);\n\n\t\tenableQuestionOnlyProperties(false);\n\t\ttxtText.setEnabled(false);\n\t\t//txtDescTemplate.setVisible(false);\n\t\t//btnDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\t\ttxtCalculation.setEnabled(false);\n\t\tbtnCalculation.setEnabled(false);\n\t\ttxtBinding.setEnabled(false);\n\n\t\ttxtText.setTitle(LocaleText.get(\"questionTextDesc\"));\n\t\ttxtHelpText.setTitle(LocaleText.get(\"questionDescDesc\"));\n\t\ttxtBinding.setTitle(LocaleText.get(\"questionIdDesc\"));\n\t\ttxtDefaultValue.setTitle(LocaleText.get(\"defaultValDesc\"));\n\t\tcbDataType.setTitle(LocaleText.get(\"questionTypeDesc\"));\n\n\t\tDOM.sinkEvents(getElement(), Event.ONKEYDOWN | DOM.getEventsSunk(getElement()));\n\t}",
"public interface SlamPropertiesEditionPart {\n\n\t/**\n\t * @return the side\n\t * \n\t */\n\tpublic Enumerator getSide();\n\n\t/**\n\t * Init the side\n\t * @param eenum the enum to manage\n\t * @param current the current value\n\t */\n\tpublic void initSide(EEnum eenum, Enumerator current);\n\n\t/**\n\t * Defines a new side\n\t * @param newValue the new side to set\n\t * \n\t */\n\tpublic void setSide(Enumerator newValue);\n\n\n\t/**\n\t * @return the announced\n\t * \n\t */\n\tpublic Boolean getAnnounced();\n\n\t/**\n\t * Defines a new announced\n\t * @param newValue the new announced to set\n\t * \n\t */\n\tpublic void setAnnounced(Boolean newValue);\n\n\n\t/**\n\t * @return the achieved\n\t * \n\t */\n\tpublic Boolean getAchieved();\n\n\t/**\n\t * Defines a new achieved\n\t * @param newValue the new achieved to set\n\t * \n\t */\n\tpublic void setAchieved(Boolean newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}",
"public void display(String line) {\r\n\t\tif (console.size() == 50) {\r\n\t\t\tconsole.remove(0);\r\n\t\t}\r\n\t\tconsole.addElement(line);\r\n\t}",
"public interface AttributePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}",
"protected boolean showOutlineView() {\r\n\t\treturn false;\r\n\t}",
"public Color getLineColor()\n {\n return lineacolore;\n }",
"public void setLine(String line) {\n this.line = line;\n //System.out.println(this.line + \" \" + line);\n }",
"public void setLine ( String value )\n {\n line = value;\n }",
"public void echoProperties(Server server) {\n String cr = System.getProperty(\"line.separator\"); \n String eq = \" = \";\n String pad = \" \";\n String propertyInfo = \"SensorBase Properties:\" + cr +\n pad + ADMIN_EMAIL_KEY + eq + get(ADMIN_EMAIL_KEY) + cr +\n pad + ADMIN_PASSWORD_KEY + eq + get(ADMIN_PASSWORD_KEY) + cr +\n pad + HOSTNAME_KEY + eq + get(HOSTNAME_KEY) + cr +\n pad + CONTEXT_ROOT_KEY + eq + get(CONTEXT_ROOT_KEY) + cr +\n pad + DB_DIR_KEY + eq + get(DB_DIR_KEY) + cr +\n pad + DB_IMPL_KEY + eq + get(DB_IMPL_KEY) + cr +\n pad + LOGGING_LEVEL_KEY + eq + get(LOGGING_LEVEL_KEY) + cr +\n pad + SMTP_HOST_KEY + eq + get(SMTP_HOST_KEY) + cr +\n pad + PORT_KEY + eq + get(PORT_KEY) + cr +\n pad + TEST_INSTALL_KEY + eq + get(TEST_INSTALL_KEY) + cr + \n pad + XML_DIR_KEY + eq + get(XML_DIR_KEY);\n server.getLogger().info(propertyInfo);\n }",
"public void propertyChange(PropertyChangeEvent e) {\n super.propertyChange(e);\n String name = e.getPropertyName();\n if (e.getSource() == paramEditor && name.equals(\"edit\")) { //$NON-NLS-1$\n initEditor.getTable().selectOnFocus = false;\n } else if (name.equals(\"angles_in_radians\") && model.trackerPanel != null) { //$NON-NLS-1$\n model.trackerPanel.getTFrame().setAnglesInRadians((Boolean) e.getNewValue());\n }\n }",
"private void initEditorPanel() {\n\t\t\n\t\t//Remove all components from panel\n\t\tthis.editor.removeAll();\n\t\t\n\t\t//Redraw which feature\n\t\tthis.whichFeature.validate();\n\t\tthis.whichFeature.repaint();\n\t\t\n\t\t//Setting icon values\n\t\tpartL.setIcon(myParent.editor.profileImage);\n\t\tendTypeLTL.setIcon(myParent.editor.ltImage);\n\t\tendTypeRBL.setIcon(myParent.editor.rbImage);\n\t\tpfFormLL.setIcon(myParent.profileshapeImage);\n\t\tsetGo.setIcon(myParent.setImage);\n\t\tcancel.setIcon(myParent.cancelImage);\n\t\t\n\t\t//Setting values visibility\n\t\tpart.setVisible(false);\n\t\tpartL.setVisible(false);\n\t\tparts.setVisible(false);\n\t\t\n\t\tendTypeLT.setVisible(false);\n\t\tendTypeLTL.setVisible(false);\n\t\tlCut.setVisible(false);\n\t\tendTypeRB.setVisible(false);\n\t\tendTypeRBL.setVisible(false);\n\t\trCut.setVisible(false);\n\t\tpfFormL.setVisible(false);\n\t\tpfFormLL.setVisible(false);\n\t\tpfCombo.setVisible(false);\n\t\t\n\t\toffsetL.setVisible(false);\n\t\toffsetR.setVisible(false);\n\t\toffsetLT.setVisible(false);\n\t\toffsetRB.setVisible(false);\n\t\t\n\t\tbL.setVisible(false);\n\t\tbR.setVisible(false);\n\t\tdeltaL.setVisible(false);\n\t\tdeltaR.setVisible(false);\n\t\t\n\t\tsetGo.setVisible(false);\n\t\tcancel.setVisible(false);\n\t\t\n\t\tmyParent.dim.masterSelected.setEnabled(false);\n\t\tmyParent.dim.slaveSelected.setEnabled(false);\n\t\tmyParent.dim.masterSelected.setVisible(false);\n\t\tmyParent.dim.slaveSelected.setVisible(false);\n\t\tmyParent.dim.doAlign.setVisible(false);\n\t\tmyParent.dim.changeAlign.setVisible(false);\n\t\tmyParent.dim.cancelAlign.setVisible(false);\n\t\tmyParent.dim.doAlign.setEnabled(false);\n\t\tmyParent.dim.changeAlign.setEnabled(false);\n\t\t\n\t\tmyParent.alignSeq = 0;\n\t\t\n\t\t//Adding components to editor panel\n\t\teditor.add(part, new XYConstraints(1, 1, 20, 19));\n\t\teditor.add(partL, new XYConstraints(22, 1, 20, 19));\n\t\teditor.add(parts, new XYConstraints(42, 1, 140, 19));\n\t\t\n\t\teditor.add(endTypeLT, new XYConstraints(1, 23, 20, 19));\n\t\teditor.add(endTypeLTL, new XYConstraints(22, 23, 20, 19));\n\t\teditor.add(lCut, new XYConstraints(81, 23, 100, 19));\n\t\t\n\t\teditor.add(endTypeRB, new XYConstraints(1, 44, 20, 19));\n\t\teditor.add(endTypeRBL, new XYConstraints(22, 44, 20, 19));\n\t\teditor.add(rCut, new XYConstraints(81, 44, 100, 19));\n\t\t\n\t\teditor.add(pfFormL, new XYConstraints(1, 65, 20, 19));\n\t\teditor.add(pfFormLL, new XYConstraints(22, 65, 20, 19));\n\t\teditor.add(pfCombo, new XYConstraints(81, 65, 100, 19));\n\t\t\n\t\teditor.add(offsetL, new XYConstraints(1, 86, 50, 19));\n\t\teditor.add(offsetR, new XYConstraints(1, 107, 50, 19));\n\t\teditor.add(bL, new XYConstraints(1, 128, 50, 19));\n\t\teditor.add(bR, new XYConstraints(1, 149, 50, 19));\n\t\t\n\t\teditor.add(offsetLT, new XYConstraints(60, 86, 118, 19));\n\t\teditor.add(offsetRB, new XYConstraints(60, 107, 118, 19));\n\t\t\n\t\teditor.add(deltaL, new XYConstraints(60, 127, 118, 19));\n\t\teditor.add(deltaR, new XYConstraints(60, 147, 118, 19));\n\t\t\n\t\teditor.add(setGo, new XYConstraints(56, 168, 60, 19));\n\t\teditor.add(cancel, new XYConstraints(118, 168, 60, 19));\n\t\t\n\t\teditor.add(myParent.dim.masterSelected, new XYConstraints(1, 3, 120, 19));\n\t\teditor.add(myParent.dim.slaveSelected, new XYConstraints(1, 24,120, 19));\n\t\t\n\t\teditor.add(myParent.dim.doAlign, new XYConstraints(1, 50, 59, 19));\n\t\teditor.add(myParent.dim.changeAlign, new XYConstraints(61, 50, 59, 19));\n\t\teditor.add(myParent.dim.cancelAlign, new XYConstraints(121, 50, 59, 19));\n\t}",
"public DiffOptionsPanel() {\n initComponents();\n internalDiff.addChangeListener(this);\n externalDiff.addChangeListener(this);\n ignoreWhitespace.addChangeListener(this);\n externalCommand.getDocument().addDocumentListener(this);\n refreshComponents();\n }",
"protected void configureShell(Shell shell) {\n super.configureShell(shell);\n shell.setText(Messages.getString(\"EditAction.Edit\") + getPropertyLabel()); //$NON-NLS-1$\n }",
"public void display() {\n System.out.println(\"Displaying Order properties:\\n Order ID number: \" + getOrderID() + \"\\n Customer ID Number: \" + getCustomerID() + \"\\n Order Status: \" + getStatus());\n }",
"private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}",
"private void $$$setupUI$$$() {\n linea = new JPanel();\n linea.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));\n addLineaButton = new JButton();\n addLineaButton.setText(\"addLinea\");\n linea.add(addLineaButton, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n numLinea = new JTextField();\n linea.add(numLinea, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(2, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(1, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n linea.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }",
"public static void showLine(Stage primaryStage) {\n Scene scene = new Scene(new LinePane(), 200, 200);\n primaryStage.setTitle(\"ShowLine\"); // Set the stage title\n primaryStage.setScene(scene); // Place the scene in the stage\n primaryStage.show(); // Display the stage\n }",
"public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }",
"public String getLineColor()\n {\n return lineColor;\n }",
"public ShowView() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}",
"@Override\r\n protected void updateView() {\r\n putValue(ActionUtil.SELECTED_KEY,\r\n getActiveView() != null &&\r\n ! getActiveView().isPropertiesPanelVisible()\r\n );\r\n }",
"@Override\n public void openEditorPanel(Object object) {\n openEditorPanel(object, 1);\n }",
"protected void addMultiLinePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Widget_multiLine_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Widget_multiLine_feature\", \"_UI_Widget_type\"),\n\t\t\t\t WavePackage.Literals.WIDGET__MULTI_LINE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public void openProductEditor()\n {\n ArrayList<GenericEditor.GERow> rows = new ArrayList<>();\n rows.add(new GenericEditor.GERow(\"Product\", \"Product Name\", this));\n rows.add(new GenericEditor.GERow(\"Store\", \"Store Name\", this));\n rows.add(new GenericEditor.GERow(\"Deal\", \"Deal Description\", this));\n rows.add(new GenericEditor.GERow(\"Price\", \"$$$\", this));\n\n\n GenericEditor pEditor = new GenericEditor(\"Product Editor\", rows);\n pEditor.setOnInputListener(productEditorListener);\n\n pEditor.show(getSupportFragmentManager(), \"ProductEditor\");\n }",
"public Object showDiscreteEditor() throws Exception {\n \t\treturn showEditor(EditorDisplayer.getEditor(this, EditorType.DISCRETE));\n \t}",
"public HasDisplayableProperties getProperties();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPolicyLine();"
] | [
"0.62644356",
"0.6181986",
"0.6087474",
"0.59320414",
"0.5792934",
"0.5745598",
"0.56698227",
"0.5651483",
"0.56095743",
"0.5605834",
"0.5598461",
"0.55941325",
"0.54903144",
"0.54797924",
"0.54634386",
"0.5460283",
"0.5457431",
"0.5448911",
"0.5443217",
"0.54429233",
"0.5430229",
"0.5419053",
"0.53737956",
"0.5314511",
"0.5308215",
"0.530509",
"0.53043854",
"0.5266476",
"0.5257627",
"0.523421",
"0.5213108",
"0.5200054",
"0.51639646",
"0.5152297",
"0.5145592",
"0.514377",
"0.5143192",
"0.5129879",
"0.5122469",
"0.51198286",
"0.51155394",
"0.5109448",
"0.5097017",
"0.5079132",
"0.5078928",
"0.50781363",
"0.5075271",
"0.5062216",
"0.50571656",
"0.50547713",
"0.5049216",
"0.50439566",
"0.502919",
"0.5023633",
"0.50199234",
"0.5018997",
"0.5013242",
"0.5010881",
"0.5008408",
"0.5008108",
"0.5006522",
"0.49877676",
"0.49849018",
"0.4983055",
"0.49819967",
"0.49741653",
"0.49738804",
"0.4969633",
"0.49659574",
"0.4958507",
"0.4957445",
"0.49523363",
"0.4951982",
"0.49511564",
"0.4942643",
"0.49387437",
"0.49313027",
"0.4931202",
"0.49302113",
"0.49224642",
"0.4921293",
"0.4918292",
"0.49172446",
"0.49112928",
"0.49089345",
"0.49087593",
"0.4898265",
"0.48975798",
"0.48895565",
"0.48887345",
"0.4887021",
"0.4884507",
"0.48825142",
"0.4880047",
"0.48742113",
"0.48711756",
"0.4869429",
"0.4866429",
"0.48542586",
"0.48530462"
] | 0.65210545 | 0 |
Create a merged time set from the DataChoices. | private Set calculateTimeSet() {
List choices = getDataChoices();
if (choices.isEmpty()) {
return null;
}
Set newSet = null;
for (int i = 0; i < choices.size(); i++) {
try {
VerticalProfileInfo info = getVPInfo(i);
GridDataInstance dataInstance = info.getDataInstance();
Set set = GridUtil.getTimeSet(dataInstance.getGrid());
//System.out.println("di.timeset["+i+"] = " + set);
if (set != null) {
if (newSet == null) {
newSet = set;
} else {
newSet = newSet.merge1DSets(set);
}
}
} catch (Exception e) {
logger.error("Problem calculating TimeSet", e);
}
}
//System.out.println("merged time set = " + newSet);
return newSet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DateRange setDefaultTemporalSubset(DimensionDescriptor timeDimension, SimpleFeature f) {\n final String start = timeDimension.getStartAttribute();\n final String end = timeDimension.getEndAttribute();\n Date startTime = (Date) f.getAttribute(start);\n Date endTime = startTime;\n if (end != null) {\n endTime = (Date) f.getAttribute(end);\n }\n return new DateRange(startTime, endTime);\n }",
"public List<ProjectModel> buildMasterData(List<TimeEntry> timeEntries) {\n buildProjectMonthTotals(timeEntries);\n return generateSummaryList();\n }",
"private static void setupTimePicker(LoopView timeHours, LoopView timeMins, LoopView timeTime) {\n timeHours.setItemsVisibleCount(5);\n timeHours.setNotLoop();\n //timeMins.setItems(timeMinsList);\n timeMins.setItemsVisibleCount(5);\n timeMins.setNotLoop();\n //timeTime.setItems(timeTimeList);\n timeTime.setItemsVisibleCount(5);\n timeTime.setNotLoop();\n }",
"@Override\n public Optional<List<Object[]>> getPopulateTempTableContent() {\n List<Object[]> batchArgs = new ArrayList<>();\n\n for (DataSet dataSet : objects) {\n CategoryCombo categoryCombo = dataSet.getCategoryCombo();\n\n for (OrganisationUnit orgUnit : dataSet.getSources()) {\n if (!categoryCombo.isDefault()) {\n if (orgUnit.hasCategoryOptions()) {\n Set<CategoryOption> orgUnitOptions = orgUnit.getCategoryOptions();\n\n for (CategoryOptionCombo optionCombo : categoryCombo.getOptionCombos()) {\n Set<CategoryOption> optionComboOptions = optionCombo.getCategoryOptions();\n\n if (orgUnitOptions.containsAll(optionComboOptions)) {\n Date startDate =\n DateUtils.min(\n optionComboOptions.stream()\n .map(co -> co.getStartDate())\n .collect(Collectors.toSet()));\n Date endDate =\n DateUtils.max(\n optionComboOptions.stream()\n .map(co -> co.getAdjustedEndDate(dataSet))\n .collect(Collectors.toSet()));\n\n List<Object> values =\n Lists.newArrayList(\n dataSet.getId(), orgUnit.getId(), optionCombo.getId(), startDate, endDate);\n\n batchArgs.add(values.toArray());\n }\n }\n }\n } else {\n List<Object> values =\n Lists.newArrayList(\n dataSet.getId(), orgUnit.getId(), defaultOptionCombo.getId(), null, null);\n\n batchArgs.add(values.toArray());\n }\n }\n }\n\n return Optional.of(batchArgs);\n }",
"private void prepareData(List<String[]> subset, Set<String> selections) {\n Bundle chartBundle = new Bundle();\n //Get the years and user selected data for the graph\n ArrayList<String> year = new ArrayList<>();\n ArrayList<ArrayList<Float>> data = new ArrayList<>();\n ArrayList<String> options = new ArrayList<>();\n float max=Float.MIN_VALUE;\n float min=Float.MAX_VALUE;\n boolean useLog = false;\n for (String option : selections) {\n //Loop over options\n ArrayList<Float> dataSeries = new ArrayList<>();\n int numOption = Integer.parseInt(option);\n //For every option get data required for the option\n options.add(OPTION_NAMES[numOption]);\n for (String[] line : subset) {\n dataSeries.add(Float.valueOf(line[numOption + CONSTANT]));\n }\n //Keep track of maximum of minimum values user has requested\n float tempMax = Collections.max(dataSeries);\n float tempMin = Collections.min(dataSeries);\n if (tempMax>max){\n max = tempMax;\n }\n if (tempMin<min && tempMin!=0){\n min=tempMin;\n }\n //Add user option to overall data they want to see\n data.add(dataSeries);\n }\n for (String[] line : subset) {\n //Loop preparing list of labels for X Axis\n year.add(line[2]);\n }\n if ((max/min)>50){\n //If the biggest and smallest values have a range bigger than factor of 50 then convert values to log scale\n useLog=true;\n for (int i=0;i<data.size();i++){\n //Loop which removes the data entries, converts them to log and then places them back to their original position in ArrayList\n ArrayList<Float> tempEntry = data.get(i);\n data.remove(i);\n ArrayList<Float> convertedValues = convertToLog(tempEntry);\n data.add(i,convertedValues);\n }\n }\n //Putting all the values in the Bundle in preparation for ChartActivity\n chartBundle.putSerializable(\"Data\", data);\n chartBundle.putString(\"country\", user_choice);\n chartBundle.putSerializable(\"Label\", options);\n chartBundle.putSerializable(\"year\", year);\n chartBundle.putBoolean(\"log\",useLog);\n Intent chart_intent = new Intent(this, ChartActivity.class);\n chart_intent.putExtra(\"Bundle\", chartBundle);\n startActivity(chart_intent);\n }",
"private List<String> calculateCombinations(TimeBean obj) {\r\n\t\tList<String> listTimeComb = new ArrayList<String>();\r\n\r\n\t\twhile(obj.getStartHr() <= obj.getEndHr()) {\r\n\t\t\t//If Hr is not 2 digit then pass to next cycle till end time\r\n\t\t\tif(obj.getStartHr() < 10 && obj.getStartHr()!=0) {\r\n\t\t\t\tTimeUtil.incrementHr(obj);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If both end time and start time is 00\r\n\t\t\tif(obj.getStartHr() == 0 && obj.getEndHr() == 0){\r\n\t\t\t\t\r\n\t\t\t\tif(obj.getStartMin()<10) {\r\n\t\t\t\t\tTimeUtil.incrementMin(obj);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(obj.getStartMin() < obj.getEndMin() ) {\r\n\t\t\t\t\tlistTimeComb.add(\"00:\"+obj.getStartMin()+\":\"+obj.getStartMin());\r\n\t\t\t\t\tTimeUtil.incrementMin(obj);\r\n\t\t\t\t}else if(obj.getStartMin() == obj.getEndMin() && obj.getEndMin() <= obj.getEndSec()) {\r\n\t\t\t\t\tlistTimeComb.add(\"00:\"+obj.getStartMin()+\":\"+obj.getStartMin());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t //If start time is zero but end time is not zero\t\r\n\t\t\t}else if(obj.getStartHr() == 0 && obj.getEndHr()!= 0){\r\n\t\t\t\t\r\n\t\t\t\tif(obj.getStartMin()<10) {\r\n\t\t\t\t\tTimeUtil.incrementMin(obj);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(obj.getStartMin() >= obj.getStartSec()) {\r\n\t\t\t\t\tlistTimeComb.add(\"00:\"+obj.getStartMin()+\":\"+obj.getStartMin());\r\n\t\t\t\t\tTimeUtil.incrementMin(obj);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//Both start Hr and end Hr is same. (Last condition check)\r\n\t\t\t}else if(obj.getStartHr()==obj.getEndHr()) {\r\n\t\t\t\tcheckCombinationWhenHrAreEqual(obj, listTimeComb);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t//Check rest of the combination\t\r\n\t\t\t}else{\r\n\t\t\t\tcheckCombinationWhenHrNotEqual(obj, listTimeComb);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn listTimeComb;\r\n\t}",
"private void populateMinMaxTime()\n {\n final ColumnHolder columnHolder = index.getColumnHolder(ColumnHolder.TIME_COLUMN_NAME);\n try (final NumericColumn column = (NumericColumn) columnHolder.getColumn()) {\n this.minTime = DateTimes.utc(column.getLongSingleValueRow(0));\n this.maxTime = DateTimes.utc(column.getLongSingleValueRow(column.length() - 1));\n }\n }",
"public Map<String, List<TimePeriodModel>> getAllTimePeriods();",
"private void mInitData(int DaysRange, int HourRange) {\n mDaysRange = DaysRange;\n mHourRange = HourRange;\n\n mDateList = new ArrayList<>();\n mHourList = new ArrayList<>();\n mTimeWithMeridianList = new ArrayList<>();\n mDatewithYearList = new ArrayList<>();\n\n // Calculate Date List\n calculateDateList();\n }",
"private void generateDefaultTimeSlots() {\n\t\tLocalTime startTime = LocalTime.of(9, 0); // 9AM start time\n\t\tLocalTime endTime = LocalTime.of(19, 0); // 5PM end time\n\n\t\tfor (int i = 1; i <= 7; i++) {\n\t\t\tList<Timeslot> timeSlots = new ArrayList<>();\n\t\t\tLocalTime currentTime = startTime.plusMinutes(15);\n\t\t\twhile (currentTime.isBefore(endTime) && currentTime.isAfter(startTime)) {\n\t\t\t\tTimeslot newSlot = new Timeslot();\n\t\t\t\tnewSlot.setTime(currentTime);\n\t\t\t\tnewSlot = timeslotRepository.save(newSlot);\n\t\t\t\ttimeSlots.add(newSlot);\n\t\t\t\tcurrentTime = currentTime.plusHours(1); // new slot after one hour\n\t\t\t}\n\t\t\tDay newDay = new Day();\n\t\t\tnewDay.setTs(timeSlots);\n\t\t\tnewDay.setDayOfWeek(DayOfWeek.of(i));\n\t\t\tdayRepository.save(newDay);\n\t\t}\n\t}",
"public void setTime() {\r\n\t\tArrayList<String> slots = new ArrayList<String>();\r\n\t\tString inSched = getWorkHours();\r\n\t\tswitch(inSched) {\r\n\t\tcase \"6AM-3PM\":\r\n\t\t\tArrayList<String> sched1 = new ArrayList<String>(Arrays.asList(\"06AM\",\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"12PM\",\"1PM\",\"2PM\"));\r\n\t\t\tslots = sched1;\r\n\t\t\tbreak;\r\n\t\tcase \"7AM-4PM\":\r\n\t\t\tArrayList<String> sched2 = new ArrayList<String>(Arrays.asList(\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"1PM\",\"2PM\",\"3PM\"));\r\n\t\t\tslots = sched2;\r\n\t\t\tbreak;\r\n\t\tcase \"8AM-5PM\":\r\n\t\t\tArrayList<String> sched3 = new ArrayList<String>(Arrays.asList(\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"2PM\",\"3PM\",\"4PM\"));\r\n\t\t\tslots = sched3;\r\n\t\t\tbreak;\r\n\t\tcase \"9AM-6PM\":\r\n\t\t\tArrayList<String> sched4 = new ArrayList<String>(Arrays.asList(\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"3PM\",\"4PM\",\"5PM\"));\r\n\t\t\tslots = sched4;\r\n\t\t\tbreak;\r\n\t\tcase \"10AM-7PM\":\r\n\t\t\tArrayList<String> sched5 = new ArrayList<String>(Arrays.asList(\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"2PM\",\"4PM\",\"5PM\",\"6PM\"));\r\n\t\t\tslots = sched5;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tslots.add(\"No appointments available for this date.\");\r\n\t\t}\r\n\t\tthis.timeAvailable = slots;\r\n\t}",
"@Test\n public void testMerge() {\n \t//create data set\n final LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n lastWriteWinSet1.add(time3, \"php\");\n lastWriteWinSet1.add(time1, \"java\");\n lastWriteWinSet1.add(time1, \"scala\");\n lastWriteWinSet1.delete(time2, \"scala\");\n\n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n lastWriteWinSet2.add(time1, \"php\");\n lastWriteWinSet2.add(time1, \"python\");\n lastWriteWinSet2.add(time1, \"scala\");\n lastWriteWinSet2.delete(time2, \"php\");\n\n // run test\n final LastWriteWinSet<String> resultSet = lastWriteWinSet1.merge(lastWriteWinSet2);\n\n assertTrue(resultSet.getData().size() == 3);\n assertTrue(resultSet.getData().contains(\"php\"));\n assertTrue(resultSet.getData().contains(\"python\"));\n assertTrue(resultSet.getData().contains(\"java\"));\n \n \n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultAddSet = resultSet.getAddSet();\n final Set<LastWriteWinSet.ItemTD<String>> addedData = resultAddSet.getData();\n assertTrue(addedData.size() == 5);\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(3, \"php\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"java\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"python\")));\n assertTrue(addedData.contains(new LastWriteWinSet.ItemTD<>(1, \"scala\")));\n\n final GrowOnlySet<LastWriteWinSet.ItemTD<String>> resultDeleteSet = resultSet.getDeleteSet();\n final Set<LastWriteWinSet.ItemTD<String>> deletedData = resultDeleteSet.getData();\n assertTrue(deletedData.size() == 2);\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"scala\")));\n assertTrue(deletedData.contains(new LastWriteWinSet.ItemTD<>(2, \"php\")));\n }",
"private void generateCheckInTimes() throws ParseException {\n \n int numToGen = (Integer)occurSpinner.getValue();\n SimpleDateFormat aSdf = Constants.CHECKIN_DATE_FORMAT;\n DefaultListModel theModel = (DefaultListModel)checkInTimeList.getModel();\n \n //Get the white listed times\n int startHour = (Integer)startHourSpinner.getValue();\n int startMinute = (Integer)startMinSpinner.getValue(); \n int endHour = (Integer)endHourSpinner.getValue(); \n int endMinute = (Integer)endMinSpinner.getValue(); \n \n //Convert to absolute times\n int startTime = startHour * 60 + startMinute;\n int endTime = endHour * 60 + endMinute;\n \n //Get the frequency\n TimeFreq freqObj = (TimeFreq)freqCombo.getSelectedItem();\n \n //Get the current date\n Calendar theCalendar = Calendar.getInstance();\n Date currentDate;\n if( theModel.isEmpty() ){\n currentDate = new Date();\n } else {\n String currentDateStr = (String)theModel.get( theModel.size() - 1 ); \n currentDate = Constants.CHECKIN_DATE_FORMAT.parse(currentDateStr);\n }\n \n //Set the time\n theCalendar.setTime( currentDate ); \n \n //If the freq is hourly then make sure the start time is after the current time\n int theFreq = freqObj.getType(); \n if( theFreq != TimeFreq.HOURLY ){\n \n //Calculate the range\n int range;\n if( endTime >= startTime ){\n\n range = endTime - startTime;\n\n } else {\n\n //If the start time is greater than the stop time then the range is\n //start to max and min to end\n range = maximumTime - startTime;\n range += endTime;\n\n }\n\n //Generate some dates\n for( int i = 0; i < numToGen; i++ ){\n\n //Get the random num\n float rand = aSR.nextFloat();\n int theRand = (int)(rand * range);\n\n //Get the new absolute time\n int newTime = theRand + startTime;\n if( newTime > maximumTime )\n newTime -= maximumTime;\n \n //Convert to hour and second\n int newHour = newTime / 60;\n int newMin = newTime % 60; \n\n //Everything but hourly\n theCalendar.set( Calendar.HOUR_OF_DAY, newHour);\n theCalendar.set( Calendar.MINUTE, newMin);\n theCalendar.add( theFreq, 1);\n \n //Add the time\n String aDate = aSdf.format( theCalendar.getTimeInMillis());\n theModel.addElement(aDate);\n }\n \n } else {\n \n int currHour = theCalendar.get( Calendar.HOUR_OF_DAY );\n int currSecond = theCalendar.get( Calendar.MINUTE );\n \n int currTime = currHour * 60 + currSecond;\n \n //Go to the next day\n //Generate some dates\n for( int i = 0; i < numToGen; i++ ){\n \n //Get the random num\n float rand = aSR.nextFloat();\n int theRand = (int)(rand * 30);\n\n if( currTime + 60 > endTime ){\n theCalendar.add( Calendar.DAY_OF_YEAR, 1);\n theCalendar.set( Calendar.HOUR_OF_DAY, startHour);\n theCalendar.set( Calendar.MINUTE, startMinute);\n } else {\n theCalendar.add( theFreq, 1); \n theCalendar.add( Calendar.MINUTE, theRand );\n }\n \n \n //Add the time\n String aDate = aSdf.format( theCalendar.getTimeInMillis());\n theModel.addElement(aDate);\n\n //Update time\n currHour = theCalendar.get( Calendar.HOUR_OF_DAY );\n currSecond = theCalendar.get( Calendar.MINUTE );\n currTime = currHour * 60 + currSecond;\n \n }\n } \n \n \n \n }",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}",
"public void startDateQuestionSet() {\n this.dateQuestionSet = new HashSet<>();//creates a new dateQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 4) {//if the question is type Date Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.dateQuestionSet.add(newQuest);//adds the new Quest to the new dateQuestionSet\n }\n }\n }",
"public void timePickerForSetAll() {\n\r\n i=0;\r\n TimePickerDialog dialog = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\r\n\r\n @Override\r\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\r\n\r\n String m , h ;\r\n\r\n if(minute < 10 )\r\n m = \"0\"+minute ;\r\n else\r\n m = minute+\"\" ;\r\n\r\n if(hourOfDay<10)\r\n h=\"0\"+hourOfDay ;\r\n else\r\n h=hourOfDay+\"\";\r\n\r\n tcSunEnd.setText(h + \":\" + m);\r\n tcMonEnd.setText(h + \":\" + m);\r\n tcTuEnd.setText (h + \":\" + m);\r\n tcWeEnd.setText (h + \":\" + m);\r\n tcThuEnd.setText(h + \":\" + m);\r\n tcFriEnd.setText(h + \":\" + m);\r\n tcSatEnd.setText(h + \":\" + m);\r\n\r\n save();\r\n\r\n }\r\n }, 0, 0, true);\r\n\r\n dialog.show();\r\n\r\n if (i==0){\r\n i++ ;\r\n TimePickerDialog dialogEnd = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\r\n\r\n @Override\r\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\r\n\r\n String m , h ;\r\n\r\n if(minute < 10 )\r\n m = \"0\"+minute ;\r\n else\r\n m = minute+\"\" ;\r\n\r\n if(hourOfDay<10)\r\n h=\"0\"+hourOfDay ;\r\n else\r\n h=hourOfDay+\"\";\r\n\r\n tcSunStart.setText(h + \":\" + m);\r\n tcMonStart.setText(h + \":\" + m);\r\n tcTuStart.setText (h + \":\" + m);\r\n tcWeStart.setText (h + \":\" + m);\r\n tcThuStart.setText(h + \":\" + m);\r\n tcFriStart.setText(h + \":\" + m);\r\n tcSatStart.setText(h + \":\" + m);\r\n\r\n save();\r\n }\r\n }, 0, 0, true);\r\n\r\n dialogEnd.show();\r\n }//if\r\n\r\n LocalDateTime q = new LocalDateTime ();\r\n String s = q.toString(\"dd.MM.yy\");\r\n\r\n save();\r\n\r\n Toast.makeText(getActivity(), s , Toast.LENGTH_LONG).show();\r\n\r\n }",
"public void addListDataToDB() {\n\n for (int i = 1; i < 10; i++) {\n TimerDisplay timer = new TimerDisplay();\n timer.setCurrentDate(\"Jan 0\" + i + \" 2017 00:00\");\n timer.setEndDate(\"Jan 0\" + (i + 2) + \" 2017 00:00\");\n timer.setPercentage();\n\n databaseHelper.addDate(timer);\n //listTimers.add(timer);\n }\n }",
"public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }",
"public void setDataTest() {\n\n for(int i=0;i<10;i++){\n LocalDate date = DateHelper.getPastDate(i);\n\n for(int j=0;j<3;j++){\n Enums.MealTime time = Enums.MealTime.Breakfast;\n if(j==0) time = Enums.MealTime.Breakfast;\n if(j==1)time = Enums.MealTime.Lunch;\n if(j==2)time = Enums.MealTime.Dinner;\n\n for(int k=0;k<2;k++) {\n final LocalDate d = date;\n final Enums.MealTime t = time;\n FirebaseDBMenuDataHelper.getMenuData(Enums.RestaurantName.CafeVentanas, DateHelper.getCurrentDate(), time,\n new FirebaseDBCallaback<ArrayList<MenuEntity>>() {\n @Override\n public void getData(ArrayList<MenuEntity> data) {\n int ran = (int)(Math.random()*data.size());\n FirebaseDBUserDataHelper.setStatisticsData(d, t,data.get(ran));\n }\n });\n }\n }\n }\n /*\n MenuEntity ent = new MenuEntity();\n ent.setName(\"TTasdsda0\");\n ent.setPrice(200);\n FirebaseDBUserDataHelper.setStatisticsData(DateHelper.getCurrentDate(),ent);\n */\n }",
"private void populateData() {\r\n\t\tfor(int i = 0; i < this.incomeRanges.length; i++) {\r\n\t\t\tthis.addData(new Data(incomeRanges[i], 0), true);\r\n\t\t}\t// end for\r\n\t}",
"private static List<Aeropuerto> llenarAeropuertos(){\n List<Aeropuerto> res = new ArrayList<>();\n res.add(new Aeropuerto(\"la paz\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"cochabamba\",LocalTime.of(06,0,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"santa cruz\",LocalTime.of(06,20,0),LocalTime.of(23,59,0)));\n res.add(new Aeropuerto(\"tarija\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"sucre\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"oruro\",LocalTime.of(06,15,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"potosi\",LocalTime.of(06,10,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"beni\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n res.add(new Aeropuerto(\"pando\",LocalTime.of(06,0,0),LocalTime.of(18,0,0)));\n return res;\n }",
"private void populateTimes() {\n\n int trackID = preferences.getInt(\"Track\", -1);\n int reverse = preferences.getInt(\"Reverse\", -1);\n Cursor topTimes = DBQueries.getTopTimes(trackID, reverse, \"liststring\", 3, database);\n Cursor latestTimes = DBQueries.getLatestTimes(trackID, reverse, \"liststring\", 3, database);\n\n ListView latestTimeList = (ListView) findViewById(R.id.latestTimes);\n ListView topTimesList = (ListView) findViewById(R.id.topTimes);\n\n ListAdapter topTimesAdapter = new SimpleCursorAdapter(\n this,\n R.layout.custom_listview_item,\n topTimes,\n new String[]{topTimes.getColumnName(topTimes.getColumnIndex(\"liststring\"))},\n new int[]{android.R.id.text1},\n 0);\n ListAdapter latestTimesAdapter = new SimpleCursorAdapter(\n this,\n R.layout.custom_listview_item,\n latestTimes,\n new String[]{latestTimes.getColumnName(latestTimes.getColumnIndex(\"liststring\"))},\n new int[]{android.R.id.text1},\n 0);\n\n topTimesList.setAdapter(topTimesAdapter);\n latestTimeList.setAdapter(latestTimesAdapter);\n\n Utilities.setListViewHeightFromContent(topTimesList);\n Utilities.setListViewHeightFromContent(latestTimeList);\n }",
"private void fillComboBox() {\n List<String> times = this.resultSimulation.getTimes();\n this.timesComboBox.getItems().addAll(times);\n this.timesComboBox.getSelectionModel().select(0);\n }",
"private void fillData() {\n\t\tmCursor = dbHelper.getResultsByTime();\n\t\tstartManagingCursor(mCursor);\n\n\t\tdataListAdapter = new SimpleCursorAdapter(this, R.layout.row, mCursor,\n\t\t\t\tFROM, TO);\n\t\tmConversationView.setAdapter(dataListAdapter);\n\t}",
"public static ImmutableMap<Long, Sample> mergeResults(final Map<Long, Sample> generated, final Map<Long, Sample> data) {\n final Map<Long, Sample> all = new HashMap<>();\n all.putAll(generated);\n all.putAll(data);\n return ImmutableMap.copyOf(all);\n }",
"public abstract void synchronizeTime(Map<String,List<Map<String,String>>> data, long syncTime);",
"public void makeDropDowns() {\n\t\tString[] hoursArray = new String[24];\n\t\tObservableList<Object> hours = FXCollections.observableArrayList();\n\t\tfor (int i = 0; i < hoursArray.length; i++) {\n\t\t\thoursArray[i] = i + \"\";\n\t\t\t\n\t\t\t//Formats the hours to always have two digits\n\t\t\tif (i < 10)\n\t\t\t\thoursArray[i] = \"0\" + i;\n\t\t\t\n\t\t\thours.add(hoursArray[i]);\n\t\t}\n\t\thourDropDown.setItems(hours);\n\n\t\t// Make the minuteDropDown box\n\t\tString[] minutesArray = new String[12];\n\t\tObservableList<Object> minutes = FXCollections.observableArrayList();\n\t\tfor (int i = 0; i < minutesArray.length; i++) {\n\t\t\tminutesArray[i] = i * 5 + \"\";\n\t\t\t\n\t\t\t//Formats the minutes to always have two digits\n\t\t\tif ((i * 5) < 10)\n\t\t\t\tminutesArray[i] = \"0\" + minutesArray[i];\n\t\t\t\n\t\t\tminutes.add(minutesArray[i]);\n\t\t}\n\t\tminuteDropDown.setItems(minutes);\n\t}",
"private void setUp() {\r\n Calendar calendar1 = Calendar.getInstance();\r\n calendar1.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n calendar1.roll(Calendar.DAY_OF_YEAR, -6);\r\n \r\n Calendar calendar2 = Calendar.getInstance();\r\n calendar2.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n \r\n acceptedDatesRange[0] = calendar1.get(Calendar.DAY_OF_YEAR);\r\n acceptedDatesRange[1] = calendar2.get(Calendar.DAY_OF_YEAR); \r\n \r\n if(acceptedDatesRange[1] < 7) {\r\n acceptedDatesRange[0] = 1; \r\n }\r\n \r\n //MiscStuff.writeToLog(\"Ranges set \" + calendar1.get\r\n // (Calendar.DAY_OF_YEAR) + \" \" + calendar2.get(Calendar.DAY_OF_YEAR));\r\n }",
"private TaskSeriesCollection createCollection3() {\n Task sub1 = new Task(\"Sub1\", new Date(11), new Date(111));\n Task sub2 = new Task(\"Sub2\", new Date(22), new Date(222));\n Task sub3 = new Task(\"Sub3\", new Date(33), new Date(333));\n Task sub4 = new Task(\"Sub4\", new Date(44), new Date(444));\n Task sub5 = new Task(\"Sub5\", new Date(55), new Date(555));\n Task sub6 = new Task(\"Sub6\", new Date(66), new Date(666));\n sub1.setPercentComplete(0.111);\n sub2.setPercentComplete(0.222);\n sub3.setPercentComplete(0.333);\n sub4.setPercentComplete(0.444);\n sub5.setPercentComplete(0.555);\n sub6.setPercentComplete(0.666);\n TaskSeries seriesA = new TaskSeries(\"Series A\");\n Task taskA1 = new Task(\"Task 1\", new SimpleTimePeriod(new Date(100), new Date(200)));\n taskA1.setPercentComplete(0.1);\n taskA1.addSubtask(sub1);\n Task taskA2 = new Task(\"Task 2\", new SimpleTimePeriod(new Date(220), new Date(350)));\n taskA2.setPercentComplete(0.2);\n taskA2.addSubtask(sub2);\n taskA2.addSubtask(sub3);\n seriesA.add(taskA1);\n seriesA.add(taskA2);\n TaskSeries seriesB = new TaskSeries(\"Series B\");\n Task taskB2 = new Task(\"Task 2\", new SimpleTimePeriod(new Date(2220), new Date(3350)));\n taskB2.setPercentComplete(0.3);\n taskB2.addSubtask(sub4);\n taskB2.addSubtask(sub5);\n taskB2.addSubtask(sub6);\n seriesB.add(taskB2);\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(seriesA);\n tsc.add(seriesB);\n return tsc;\n }",
"private void initializeUI(List<Date> dates, List<Date> conflictDates)\n\t{\n\t\tif(!dates.isEmpty())\n\t\t{\n\t\t\tDateSplitter splitter = new DateSplitter(dates.get(0));\n\t\t\tthis.dayOfMonth = splitter.getDay();\n\t\t\tthis.add(new Label(splitter.getDayAsString()));\n\t\t}\n\t\t\n\t\t// for loop to add all the given time slots\n\t\tfor(Date date : dates)\n\t\t{\n\t\t\tDateSplitter splitter = new DateSplitter(date);\n\t\t\tint hour = splitter.getHour();\n\t\t\t\n\t\t\tTimeSlot slotToAdd = new TimeSlot(timeIntervals[hour], date);\n\t\t\t\n\t\t\tif(conflictDates.contains(date))\n\t\t\t{\n\t\t\t\tslotToAdd.setStyleName(\"conflicting-time\");\n\t\t\t}\n\t\t\t\n\t\t\tthis.add(slotToAdd);\n\t\t}\n\t}",
"public void getoptions() {\n if (mydatepicker.getValue() != null) {\n ObservableList<String> options1 = FXCollections.observableArrayList(\n \"09:00\",\n \"09:30\",\n \"10:00\",\n \"10:30\",\n \"11:00\",\n \"11:30\",\n \"12:00\",\n \"12:30\",\n \"13:00\",\n \"13:30\",\n \"14:00\",\n \"14:30\"\n );\n ObservableList<String> options2 = FXCollections.observableArrayList(\n \"09:00\",\n \"09:30\",\n \"10:00\",\n \"10:30\",\n \"11:00\"\n );\n ObservableList<String> options3 = FXCollections.observableArrayList(\"NOT open on Sunday\");\n\n int a = mydatepicker.getValue().getDayOfWeek().getValue();\n if (a == 7) {\n time_input.setItems(options3);\n } else if (a == 6) {\n time_input.setItems(options2);\n } else {\n time_input.setItems(options1);\n }\n }\n }",
"private List<ComparisonExpression> comparisons(HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds) {\n List<ComparisonExpression> newComparisons = new ArrayList<>();\n // for all selectors, as lowerBounds has the same keys as upperBounds\n for (Map.Entry<TimeSelector, Long> entry : lowerBounds.entrySet()) {\n TimeSelector selector = entry.getKey();\n Long lower = entry.getValue();\n Long upper = upperBounds.get(selector);\n if (lower.equals(upper)) {\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, EQ, new TimeLiteral(lower)),\n new ComparableTPGMFactory()));\n } else {\n if (lower > TemporalElement.DEFAULT_TIME_FROM) {\n // check if informative: lower bound of from is trivial lower bound of to\n if (selector.getTimeProp().equals(TX_TO)) {\n TimeSelector txFromSel = new TimeSelector(selector.getVariable(), TX_FROM);\n if (lowerBounds.getOrDefault(txFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(VAL_TO)) {\n TimeSelector valFromSel = new TimeSelector(selector.getVariable(), VAL_FROM);\n if (lowerBounds.getOrDefault(valFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(new TimeLiteral(lower), LTE, selector),\n new ComparableTPGMFactory()));\n }\n if (upper < TemporalElement.DEFAULT_TIME_TO) {\n // analagously as for lower bounds\n // upper bound of to is trivial upper of from\n if (selector.getTimeProp().equals(TimeSelector.TimeField.TX_FROM)) {\n TimeSelector txToSel = new TimeSelector(selector.getVariable(), TX_TO);\n if (upperBounds.getOrDefault(txToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(TimeSelector.TimeField.VAL_FROM)) {\n TimeSelector valToSel = new TimeSelector(selector.getVariable(), VAL_TO);\n if (upperBounds.getOrDefault(valToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, LTE, new TimeLiteral(upper)),\n new ComparableTPGMFactory()));\n }\n }\n }\n return newComparisons;\n }",
"private void loadScheduleList() {\n\n if (listTbagendamentos != null && !listTbagendamentos.isEmpty()) {\n scheduleAgendamento.clear();\n\n for (Tbagendamento agendamento : listTbagendamentos) {\n DefaultScheduleEvent defaultScheduleEvent = new DefaultScheduleEvent();\n defaultScheduleEvent.setTitle(agendamento.getIdcliente().getNmcliente());\n\n Calendar dtDataInicial = new GregorianCalendar();\n dtDataInicial.setTime(agendamento.getTmdataagendamento());\n\n defaultScheduleEvent.setStartDate(dtDataInicial.getTime());\n\n Calendar dtDataFinal = new GregorianCalendar();\n dtDataFinal.setTime(agendamento.getTmdataagendamento());\n dtDataFinal.set(Calendar.MINUTE, dtDataFinal.get(Calendar.MINUTE) + 30);\n\n defaultScheduleEvent.setEndDate(dtDataFinal.getTime());\n defaultScheduleEvent.setData(agendamento.getIdagendamento());\n scheduleAgendamento.addEvent(defaultScheduleEvent);\n }\n }\n }",
"public AgendaMB() {\n GregorianCalendar dtMax = new GregorianCalendar(); \n Date dt = new Date();\n dtMax.setTime(dt); \n GregorianCalendar dtMin = new GregorianCalendar(); \n dtMin.setTime(dt);\n dtMin.add(Calendar.DAY_OF_MONTH, 1);\n dtMax.add(Calendar.DAY_OF_MONTH, 40);\n dataMax = dtMax.getTime();\n dataMin = dtMin.getTime(); \n }",
"public ArrayList<ConsumptionInstance> generateConsumptionInstances(long start_time, long end_time) {\n GregorianCalendar c = (GregorianCalendar) this.start_date.clone();\n ArrayList<ConsumptionInstance> result = new ArrayList<>();\n Collections.sort(this.timings);\n\n while(c.getTimeInMillis() < end_time + Utility.MILLIS_IN_DAY) {\n for (TimeOfDay t : timings) {\n c.set(Calendar.HOUR_OF_DAY, Integer.valueOf(t.getHour()));\n c.set(Calendar.MINUTE, Integer.valueOf(t.getMinute()));\n long millis = c.getTimeInMillis();\n\n if (start_time <= millis && millis < end_time) {\n ConsumptionInstance ci = new ConsumptionInstance(this.id, (GregorianCalendar) c.clone(),\n this.drug);\n if (deleted.contains(millis)) {\n ci.setDeleted(true);\n }\n result.add(ci);\n }\n }\n c.add(Calendar.DAY_OF_MONTH, this.interval);\n }\n\n return result;\n }",
"protected void addDateRange() {\n addFieldset(startDatePicker, \"Start Date\", \"startDate\");\n addFieldset(endDatePicker, \"End Date\", \"endDate\");\n }",
"private void setDateTime() {\n int day, month, year, dayOfWeek, hour, minute;\n Calendar cal;\n if (!mIsUpdateEvent && !mIsAddEvent)\n cal = Calendar.getInstance();\n else\n cal = new GregorianCalendar(mStartYear, mStartMonth, mStartDay, mStartHour, mStartMinute);\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n minute = cal.get(Calendar.MINUTE);\n\n TextView date1 = findViewById(R.id.date1);\n date1.setText(DateTimeUtils.formattedDate(this, dayOfWeek, month, day, year));\n time1 = findViewById(R.id.time1);\n time1.setText((DateTimeUtils.formattedTime(hour, minute)));\n datePicker2 = new TextDatePicker(this, R.id.date2, null);\n datePicker1 = new TextDatePicker(this, R.id.date1, datePicker2);\n datePicker1.day = day;\n datePicker1.month = month;\n datePicker1.year = year;\n\n timePicker2 = new TextTimePicker(this, R.id.time2, null);\n timePicker1 = new TextTimePicker(this, R.id.time1, timePicker2);\n timePicker1.hour = hour;\n timePicker1.minute = minute;\n\n if (mIsUpdateEvent) {\n cal = new GregorianCalendar(mEndYear, mEndMonth, mEndDay, mEndHour, mEndMinute);\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n minute = cal.get(Calendar.MINUTE);\n }\n\n TextView date2 = findViewById(R.id.date2);\n date2.setText(DateTimeUtils.formattedDate(this, dayOfWeek, month, day, year));\n time2 = findViewById(R.id.time2);\n time2.setText((DateTimeUtils.formattedTime(hour, minute)));\n\n datePicker2.day = day;\n datePicker2.month = month;\n datePicker2.year = year;\n\n timePicker2.hour = hour;\n timePicker2.minute = minute;\n\n if (mIsUpdateEvent && mIsAllDay ==1) {\n timePicker1.removeClickListener();\n time1.setText(\"\");\n timePicker2.removeClickListener();\n time2.setText(\"\");\n }\n }",
"private ArrayList<String> dateTimeSelection(){\n int choice;\n String weekDay=null,startTime=null,endTime=null;\n Calendar startCal=null, endCal = null;\n String[] dateTimeSplit;\n ArrayList<String> dateAndTime = new ArrayList<String>();\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"*****************Please choose a date*****************\");\n System.out.println(\" Weekdays \");\n System.out.println(\"______________________________________________________\\n\");\n System.out.println(\"|1. Monday ||2.Tuesday |\");\n System.out.println(\"|3. Wednesday ||4.Thursday |\");\n System.out.println(\"|5. Friday || |\");\n System.out.println(\"______________________________________________________\");\n\n do {\n while (!sc.hasNextInt()) {\n System.out.println(\"Invalid input! Please enter your choice:\");\n sc.next();\n }\n choice = sc.nextInt();\n if((choice < 1) || (choice > 5))\n System.out.println(\"Invalid input! Please enter your choice:\");\n } while ((choice < 1) || (choice > 5));\n\n switch(choice){\n case 1:\n weekDay = \"MON\";\n break;\n case 2:\n weekDay = \"TUE\";\n break;\n case 3:\n weekDay = \"WED\";\n break;\n case 4:\n weekDay = \"THU\";\n break;\n case 5:\n weekDay = \"FRI\";\n break;\n }\n\n dateAndTime.add(weekDay);\n\n sc.nextLine();\n do {\n\n System.out.println(\"\\nPlease input start time (HH mm)\");\n startTime = sc.nextLine();\n while(!startTime.matches(\"^\\\\d{2} \\\\d{2}$\"))\n {\n System.out.println(\"\\nInvalid input! Please enter start time again!\");\n System.out.println(\"\\nPlease enter start time (HH mm):\");\n startTime = sc.nextLine();\n }\n dateTimeSplit = startTime.split(\" \");\n startTime = dateTimeSplit[0]+\":\"+dateTimeSplit[1];\n startCal = DateTimeManager.convertCourseCompoStrToCalendar(weekDay + \" \" + startTime);\n if (startCal == null) {\n System.out.println(\"\\nInvalid input! Please enter start time again!\");\n continue;\n }\n\n System.out.println(\"Please enter end time (HH mm):\");\n endTime = sc.nextLine();\n while (!endTime.matches(\"^\\\\d{2} \\\\d{2}$\")) {\n System.out.println(\"Invalid input! Please enter end time again!\");\n System.out.println(\"Please enter end time (HH mm):\");\n endTime = sc.nextLine();\n }\n dateTimeSplit = endTime.split(\" \");\n endTime = dateTimeSplit[0] + \":\" + dateTimeSplit[1];\n endCal = DateTimeManager.convertCourseCompoStrToCalendar(weekDay + \" \" + endTime);\n if (endCal==null){\n System.out.println(\"Invalid input! Please enter end time again!!\");\n }\n\n else if((endCal.before(startCal))||(endCal.equals(startCal)))\n System.out.println(\"Start time can't be later than equal to end time!\");\n }while((endCal == null)||(startCal == null)||endCal.equals(startCal)||endCal.before(startCal));\n\n dateAndTime.add(startTime+\"-\"+endTime);\n\n return dateAndTime;\n\n }",
"private TaskSeriesCollection createCollection2() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n Task t1 = new Task(\"Task 1\", new Date(10), new Date(20));\n t1.addSubtask(new Task(\"Task 1A\", new Date(10), new Date(15)));\n t1.addSubtask(new Task(\"Task 1B\", new Date(16), new Date(20)));\n t1.setPercentComplete(0.10);\n s1.add(t1);\n Task t2 = new Task(\"Task 2\", new Date(30), new Date(40));\n t2.addSubtask(new Task(\"Task 2A\", new Date(30), new Date(35)));\n t2.addSubtask(new Task(\"Task 2B\", new Date(36), new Date(40)));\n t2.setPercentComplete(0.20);\n s1.add(t2);\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n Task t3 = new Task(\"Task 3\", new Date(50), new Date(60));\n t3.addSubtask(new Task(\"Task 3A\", new Date(50), new Date(55)));\n t3.addSubtask(new Task(\"Task 3B\", new Date(56), new Date(60)));\n t3.setPercentComplete(0.30);\n s2.add(t3);\n result.add(s2);\n return result;\n }",
"public Builder mergeUseTime(hr.client.appuser.CouponCenter.TimeRange value) {\n if (useTimeBuilder_ == null) {\n if (useTime_ != null) {\n useTime_ =\n hr.client.appuser.CouponCenter.TimeRange.newBuilder(useTime_).mergeFrom(value).buildPartial();\n } else {\n useTime_ = value;\n }\n onChanged();\n } else {\n useTimeBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public Builder mergeUseTime(hr.client.appuser.CouponCenter.TimeRange value) {\n if (useTimeBuilder_ == null) {\n if (useTime_ != null) {\n useTime_ =\n hr.client.appuser.CouponCenter.TimeRange.newBuilder(useTime_).mergeFrom(value).buildPartial();\n } else {\n useTime_ = value;\n }\n onChanged();\n } else {\n useTimeBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"private void checkCombinationWhenHrAreEqual(TimeBean obj, List<String> listTimeComb ) {\r\n\t\tif(( obj.getStartMin()==0 ) && (obj.getStartHr() <= obj.getEndSec() ) ) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":00:\"+obj.getEndHr());\r\n\t\t}\r\n\t\t\r\n\t\tif((obj.getEndHr() < obj.getEndMin()) ||( obj.getEndHr() == obj.getEndMin() && obj.getStartSec() == 0)) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":\"+obj.getEndHr()+\":00\");\r\n\t\t}\r\n\r\n\t\tif((obj.getEndHr() < obj.getEndMin()) || (obj.getEndHr() == obj.getEndMin() && obj.getStartSec() <= obj.getEndMin() && obj.getStartSec() <= obj.getEndSec())) {\r\n\t\t\tlistTimeComb.add(obj.getEndHr()+\":\"+obj.getEndHr()+\":\"+obj.getEndHr());\r\n\t\t}\r\n\t}",
"@Override\n\t\tprotected ArrayList<ArrayList<TimeItem>> doInBackground(ArrayList<Object>... params) {\n\t\t\treturn mergeSameTimePoint(params[0]);\n\t\t}",
"private void crearTurnos(){\n Date a = new Date();\n if((dateSeleccion.getDatoFecha()).getDay()>= a.getDay()){\n Calendar dia = Calendar.getInstance();//crear una instancia de calendario se usa para hora empieza\n Calendar aux = Calendar.getInstance();//instancia para horatermina \n dia.setTime(dateSeleccion.getDatoFecha()); //dia que seleccione en el combo\n\n dia.set(Calendar.HOUR_OF_DAY,this.cita.getMedico().getHorarioInicio().getHours());\n dia.set(Calendar.MINUTE,this.cita.getMedico().getHorarioInicio().getMinutes());\n aux.setTime(dateSeleccion.getDatoFecha()); //dia que seleccione en el combo\n aux.set(Calendar.HOUR_OF_DAY,this.cita.getMedico().getHorarioInicio().getHours());\n aux.set(Calendar.MINUTE,this.cita.getMedico().getHorarioInicio().getMinutes()+this.cita.getMedico().getTiempoTurno());\n int rango = (this.cita.getMedico().getHorarioFinal().getHours()\n -this.cita.getMedico().getHorarioInicio().getHours())*60;\n int cantTurnosDia = rango/this.cita.getMedico().getTiempoTurno();\n for (int i=1;i<=cantTurnosDia;i++){\n this.controlador.agregarTurno(this.cita.getMedico(), dia.getTime(), aux.getTime());\n aux.add(Calendar.MINUTE, this.cita.getMedico().getTiempoTurno());\n dia.add(Calendar.MINUTE, this.cita.getMedico().getTiempoTurno());\n }\n //se pueden crear duplicados\n }\n }",
"private static void fillReserveTimeList(ResultSet resultSet\n\t\t\t, Map<MiddayID\n\t\t\t, List<ReserveTime>> reserveTimes){\n\t\ttry {\n\t\t\tList<ReserveTime> morningReserveTimes = new ArrayList<>();\n\t\t\tList<ReserveTime> afternoonReserveTimes = new ArrayList<>();\n\t\t\twhile (resultSet.next()){\n\t\t\t\tReserveTime reserveTime = new ReserveTime();\n\t\t\t\tfillReserveTime(resultSet, reserveTime);\n\t\t\t\tif (reserveTime.getMiddayID() == MiddayID.MORNING)\n\t\t\t\t\tmorningReserveTimes.add(reserveTime);\n\t\t\t\telse if (reserveTime.getMiddayID() == MiddayID.AFTERNOON)\n\t\t\t\t\tafternoonReserveTimes.add(reserveTime);\n\t\t\t}\n\t\t\treserveTimes.put(MiddayID.MORNING, morningReserveTimes);\n\t\t\treserveTimes.put(MiddayID.AFTERNOON, afternoonReserveTimes);\n\t\t}catch(SQLException e) {\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}",
"private void buildDateTimeHypos(ArrayList<DateTimeHypo> hypos, String type, String[] subslots)\n {\n hypos.clear();\n \n SlotHypo[] subHypos = new SlotHypo[subslots.length];\n \n \n for ( SlotHypo sh : slot_hypos )\n {\n if ( !sh.name.startsWith(type) ) continue;\n for ( int i = 0; i < subslots.length; ++i )\n if ( sh.name.equals(type+\".\"+subslots[i]) )\n subHypos[i] = sh;\n }\n \n DateTimeHypo nh = new DateTimeHypo(type);\n nh.belief_prob = 1;\n hypos.add(nh);\n \n int bound = 1;\n for ( SlotHypo sh : subHypos )\n {\n if ( sh == null || sh.value_hypos.isEmpty() )\n continue;\n \n for ( ValueHypo vh : sh.value_hypos )\n {\n for ( int i = 0; i < bound; ++i )\n {\n DateTimeHypo th = new DateTimeHypo(hypos.get(i));\n th.addSVP(new SVP(sh.name,vh.name));\n th.belief_prob = hypos.get(i).belief_prob * vh.belief_prob;\n if ( th.belief_prob > 0.0001 )\n hypos.add(th);\n }\n }\n for ( int i = 0; i < bound; ++i )\n hypos.get(i).belief_prob *= sh.nullProb;\n \n prune(hypos);\n \n bound = hypos.size();\n }\n \n Iterator iter = hypos.iterator();\n if ( iter.hasNext() ) iter.next(); //skip the first\n while ( iter.hasNext() )\n {\n DateTimeHypo h = (DateTimeHypo)iter.next();\n \n /*\n boolean observed = false;\n for ( DateTimeHypo ht : observed_date_time_history )\n {\n if ( ht.equals(h) )\n {\n observed = true;\n break;\n }\n }\n if ( !observed )\n * */\n if ( !h.isValid() )\n iter.remove();\n }\n }",
"public void setTimerListData() {\n for (int i = 0; i < 10; i++) {\n TimerDisplay timer = new TimerDisplay();\n timer.setCurrentDate(\"Jan 0\" + i + \" 2017 00:00\");\n timer.setEndDate(\"Jan 0\" + (i+1) + \" 2017 00:00\");\n timer.setPercentage();\n\n listTimers.add(timer);\n }\n }",
"public static List<String> getAllStartTime(String data) throws SQLException\n {\n \tList<String> all_time = new ArrayList<String>();\n \tResultSet time;\n \tif(data.charAt(0) == 'M')\n \t\ttime = test.readDatabase(\"select distinct Begin_Time from class_2016 where Term_Code = '\"+test.getLatestSemester()+\"' and Monday_Ind1 = 'M' and Wednesday_Ind1 = 'W'and Friday_Ind1 = 'F' and Begin_Time >= 800 and Begin_Time <= 1700 order by Begin_Time\");\n \telse\n \t\ttime = test.readDatabase(\"select distinct Begin_Time from class_2016 where Term_Code = '\"+test.getLatestSemester()+\"' and Tuesday_Ind1 = 'T' and Thursday_Ind1 = 'R' and Begin_Time >= 800 and Begin_Time <= 1700 and (End_Time - Begin_Time) = 120 order by Begin_Time\");\n\t\tall_time = test.writeResultSet(time,\"Begin_Time\");\n \treturn all_time;\n\n }",
"@Test\r\n public void testReflexivityOverlappingTimePeriods(){\n DateTime startAvailability1 = new DateTime(2021, 7, 9, 10, 30);\r\n DateTime endAvailability1 = new DateTime(2021, 7, 9, 11, 30);\r\n DateTime startAvailability2 = new DateTime(2021, 7, 9, 11, 0);\r\n DateTime endAvailability2 = new DateTime(2021, 7, 9, 12, 0);\r\n Availability availability1 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability1, endAvailability1);\r\n Availability availability2 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability2, endAvailability2);\r\n assertTrue(availability1.overlapsWithTimePeriod(availability2));\r\n assertTrue(availability2.overlapsWithTimePeriod(availability1));\r\n }",
"public static ObservableList<LocalTime> generateTime() {\n ArrayList<LocalTime> timeList = new ArrayList<>();\n for (LocalTime tm = LocalTime.MIN; tm.isBefore(LocalTime.parse(\"23:30\")); tm = tm.plusMinutes(30)) {\n timeList.add(tm);\n }\n timeList.add(LocalTime.parse(\"23:30\"));\n return FXCollections.observableArrayList(timeList);\n }",
"private void renewTimes() {\n String time_morgens_new = time_prefs.getString(\"time_morgens\", getResources().getString(R.string.default_morgens));\n String time_mittags_new = time_prefs.getString(\"time_mittags\", getResources().getString(R.string.default_mittags));\n String time_abends_new = time_prefs.getString(\"time_abends\", getResources().getString(R.string.default_abends));\n String time_zur_nacht_new = time_prefs.getString(\"time_morgens\", getResources().getString(R.string.default_morgens));\n /*comparison of class local time variblaes with new Preferences\n deletes alarms affected medicines and creates new alarms for them\n */\n\n if (!time_morgens.equals(time_morgens_new)) {\n //list all affected Meds and iterate for each\n List<Meds> meds = Meds.find(Meds.class, \"time = ?\", \"Morgens\");\n for (Meds m : meds) {\n if (!m.getDays().equals(\"\")) {\n cancelAlarm(m.getId());\n }\n }\n\n for (Meds m : meds) {\n if (!m.getDays().equals(\"\")) {\n createAlarm(m.getDays(), m.getTime(), m.getId());\n }\n }\n }\n\n if (!time_mittags.equals(time_mittags_new)) {\n List<Meds> meds = Meds.find(Meds.class, \"time = ?\", \"Mittags\");\n for (Meds m : meds) {\n if (!m.getDays().equals(\"\")) {\n cancelAlarm(m.getId());\n }\n }\n\n for (Meds m : meds) {\n if (!m.getDays().equals(\"\")) {\n createAlarm(m.getDays(), m.getTime(), m.getId());\n }\n }\n }\n if (!time_abends.equals(time_abends_new)) {\n List<Meds> meds = Meds.find(Meds.class, \"time = ?\", \"Abends\");\n for (Meds m : meds) {\n if (!m.getDays().equals(\"\")) {\n cancelAlarm(m.getId());\n }\n }\n\n for (Meds m : meds) {\n if (!m.getDays().equals(\"\")) {\n createAlarm(m.getDays(), m.getTime(), m.getId());\n }\n }\n }\n if (!time_zur_nacht.equals(time_zur_nacht_new)) {\n List<Meds> meds = Meds.find(Meds.class, \"time = ?\", \"Morgens\");\n for (Meds m : meds) {\n if (!m.getDays().equals(\"\")) {\n cancelAlarm(m.getId());\n }\n }\n\n for (Meds m : meds) {\n if (!m.getDays().equals(\"\")) {\n createAlarm(m.getDays(), m.getTime(), m.getId());\n }\n }\n }\n }",
"public DataElementChartResult generateChartDataPeriodWise( List<Date> selStartPeriodList,\n List<Date> selEndPeriodList, List<String> periodNames, List<DataElement> dataElementList,\n List<DataElementCategoryOptionCombo> decocList, OrganisationUnit orgUnit )\n throws Exception\n {\n DataElementChartResult dataElementChartResult;\n\n String[] series = new String[dataElementList.size()];\n String[] categories = new String[selStartPeriodList.size()];\n Double[][] data = new Double[dataElementList.size()][selStartPeriodList.size()];\n String chartTitle = \"OrganisationUnit : \" + orgUnit.getShortName();\n String xAxis_Title = \"Time Line\";\n String yAxis_Title = \"Value\";\n\n int serviceCount = 0;\n\n for ( DataElement dataElement : dataElementList )\n {\n DataElementCategoryOptionCombo decoc;\n\n DataElementCategoryCombo dataElementCategoryCombo = dataElement.getCategoryCombo();\n\n List<DataElementCategoryOptionCombo> optionCombos = new ArrayList<DataElementCategoryOptionCombo>(\n dataElementCategoryCombo.getOptionCombos() );\n\n if ( deSelection.equalsIgnoreCase( OPTIONCOMBO ) )\n {\n decoc = decocList.get( serviceCount );\n\n series[serviceCount] = dataElement.getName() + \" : \" + decoc.getName();\n \n CaseAggregationCondition caseAggregationCondition = caseAggregationConditionService\n .getCaseAggregationCondition( dataElement, decoc );\n\n if ( caseAggregationCondition == null )\n {\n selectedStatus.add( \"no\" );\n }\n else\n {\n selectedStatus.add( \"yes\" );\n }\n\n yseriesList.add( dataElement.getName() + \" : \" + decoc.getName() );\n }\n else\n {\n decoc = dataElementCategoryService.getDefaultDataElementCategoryOptionCombo();\n series[serviceCount] = dataElement.getName();\n\n CaseAggregationCondition caseAggregationCondition = caseAggregationConditionService\n .getCaseAggregationCondition( dataElement, decoc );\n\n if ( caseAggregationCondition == null )\n {\n selectedStatus.add( \"no\" );\n }\n else\n {\n selectedStatus.add( \"yes\" );\n }\n\n yseriesList.add( dataElement.getName() );\n }\n\n int periodCount = 0;\n for ( Date startDate : selStartPeriodList )\n {\n Date endDate = selEndPeriodList.get( periodCount );\n String drillDownPeriodName = periodNames.get( periodCount );\n String tempStartDate = format.formatDate( startDate );\n String tempEndDate = format.formatDate( endDate );\n\n categories[periodCount] = periodNames.get( periodCount );\n //PeriodType periodType = periodService.getPeriodTypeByName( periodTypeLB );\n\n String values = orgUnit.getId() + \":\" + dataElement.getId() + \":\" + decoc.getId() + \":\" + periodTypeLB\n + \":\" + tempStartDate + \":\" + tempEndDate;\n selectedValues.add( values );\n\n String drillDownData = orgUnit.getId() + \":\" + \"0\" + \":\" + dataElement.getId() + \":\" + decoc.getId()\n + \":\" + periodTypeLB + \":\" + tempStartDate + \":\" + tempEndDate + \":\" + drillDownPeriodName + \":\"\n + deSelection + \":\" + aggChecked;\n selectedDrillDownData.add( drillDownData );\n\n Double aggDataValue = 0.0;\n \n if ( deSelection.equalsIgnoreCase( OPTIONCOMBO ) )\n {\n //System.out.println( \" Inside deSelection.equalsIgnoreCase( OPTIONCOMBO ) \" );\n if ( aggDataCB != null )\n {\n Double temp = aggregationService.getAggregatedDataValue( dataElement, decoc, startDate,\n endDate, orgUnit );\n if ( temp != null )\n aggDataValue += temp;\n //aggDataValue = temp;\n }\n else\n {\n Collection<Period> periods = periodService.getPeriodsBetweenDates( startDate, endDate );\n for ( Period period : periods )\n {\n DataValue dataValue = dataValueService.getDataValue( orgUnit, dataElement, period, decoc );\n try\n {\n aggDataValue += Double.parseDouble( dataValue.getValue() );\n }\n catch ( Exception e )\n {\n }\n }\n }\n }\n else\n {\n //System.out.println( \" Inside not deSelection.equalsIgnoreCase( OPTIONCOMBO ) \" );\n Iterator<DataElementCategoryOptionCombo> optionComboIterator = optionCombos.iterator();\n while ( optionComboIterator.hasNext() )\n {\n DataElementCategoryOptionCombo decoc1 = (DataElementCategoryOptionCombo) optionComboIterator.next();\n\n if ( aggDataCB != null )\n {\n Double temp = aggregationService.getAggregatedDataValue( dataElement, decoc1, startDate,\n endDate, orgUnit );\n if ( temp != null )\n aggDataValue += temp;\n //aggDataValue = temp;\n }\n else\n {\n Collection<Period> periods = periodService.getPeriodsBetweenDates( startDate, endDate );\n for ( Period period : periods )\n {\n DataValue dataValue = dataValueService.getDataValue( orgUnit, dataElement, period, decoc1 );\n try\n {\n aggDataValue += Double.parseDouble( dataValue.getValue() );\n }\n catch ( Exception e )\n {\n }\n }\n }\n }\n }\n //System.out.println( \" Data is : \" + aggDataValue );\n data[serviceCount][periodCount] = aggDataValue;\n\n if ( dataElement.getType().equalsIgnoreCase( DataElement.VALUE_TYPE_INT ) )\n {\n if ( dataElement.getNumberType().equalsIgnoreCase( DataElement.VALUE_TYPE_INT ) )\n {\n data[serviceCount][periodCount] = Math.round( data[serviceCount][periodCount]\n * Math.pow( 10, 0 ) )\n / Math.pow( 10, 0 );\n }\n else\n {\n data[serviceCount][periodCount] = Math.round( data[serviceCount][periodCount]\n * Math.pow( 10, 1 ) )\n / Math.pow( 10, 1 );\n }\n }\n periodCount++;\n }\n\n serviceCount++;\n }\n dataElementChartResult = new DataElementChartResult( series, categories, data, chartTitle, xAxis_Title,\n yAxis_Title );\n\n return dataElementChartResult;\n }",
"@Test\n public void testAddBookedTimeInterval() {\n TimeInterval workingTime=new TimeInterval(new DateTime(2019, 8, 27, 9, 0), new DateTime(2019, 8, 27, 12, 0));\n TimeInterval bookedTime1=new TimeInterval(new DateTime(2019, 8, 27, 10, 0), new DateTime(2019, 8, 27, 11, 0));\n TimeInterval bookedTime2=new TimeInterval(new DateTime(2019, 8, 27, 9, 0), new DateTime(2019, 8, 27, 9, 30));\n TimeInterval bookedTime3=new TimeInterval(new DateTime(2019, 8, 27, 11, 30), new DateTime(2019, 8, 27, 12, 0));\n ArrayList<TimeInterval> freeTime=new ArrayList<>();\n freeTime.add(workingTime);\n TimeManager manager=new TimeManager(freeTime);\n manager.addBookedTimeInterval(bookedTime1);\n System.out.println(manager);\n manager.addBookedTimeInterval(bookedTime2);\n System.out.println(manager);\n manager.addBookedTimeInterval(bookedTime3);\n System.out.println(manager);\n }",
"protected void doAWTimeSlice()\n\t\tthrows DbCompException\n\t{\n//AW:TIMESLICE\n dates.add(_timeSliceBaseTime);\n//AW:TIMESLICE_END\n\t}",
"private void insertValues(String time) {\n\n // Get previously saved values.\n String gameid = String.valueOf(preferences.getInt(\"Game\", -1));\n String carid = String.valueOf(preferences.getInt(\"Car\", -1));\n String trackid = String.valueOf(preferences.getInt(\"Track\", -1));\n String reverse = String.valueOf(preferences.getInt(\"Reverse\", -1));\n\n ContentValues cv = new ContentValues();\n\n // JSON objects for deserialization of Parts and Tuning objects.\n Gson gson = new Gson();\n Type genericType = new TypeToken<PartProfile>() {\n }.getType();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"d/MM/yy HH:mm:ss\");\n PartProfile parts;\n\n // Check if the time is derived from an existing entry.\n if (fromExisting) {\n parts = DBQueries.getPartsForTimeSet(selectedTimeSetId, database);\n }\n else {\n String prefs2 = preferences.getString(\"Parts\", \"PARTS_ERROR\");\n parts = gson.fromJson(prefs2, genericType);\n }\n\n // Put values together to commit them to the database.\n cv.put(\"gameid\", gameid);\n cv.put(\"carid\", carid);\n cv.put(\"trackid\", trackid);\n cv.put(\"time\", time);\n cv.put(\"reverse\", reverse);\n cv.put(\"date\", dateFormat.format(new Date()));\n cv.put(\"comment\", commentBox.getText().toString());\n\n // Commit values and keep PK of inserted row.\n long primaryKeyvalue = database.insert(\"TimeSet\", null, cv);\n cv.clear();\n\n // Commit installed parts into the database.\n HashMap<Integer, Part> installedParts = parts.getInstalledParts();\n\n for (Map.Entry<Integer, Part> entry : installedParts.entrySet()) {\n cv.put(\"timesetid\", primaryKeyvalue);\n cv.put(\"partid\", entry.getValue().getPartId());\n database.insert(\"TimeSet_Parts\", null, cv);\n cv.clear();\n }\n\n // Fetch information of applied tuning values.\n genericType = new TypeToken<TuneProfile>() {\n }.getType();\n\n TuneProfile tunes;\n if (fromExisting) {\n tunes = DBQueries.getTuningForTimeSet(selectedTimeSetId, database);\n }\n else {\n String prefs2 = preferences.getString(\"Tuning\", \"TUNING_ERROR\");\n tunes = gson.fromJson(prefs2, genericType);\n }\n\n // Commit tuning values into database.\n Map<Tuneable, Double> tuning = tunes.getAppliedTuning();\n for (HashMap.Entry<Tuneable, Double> entry : tuning.entrySet()) {\n cv.put(\"timesetid\", primaryKeyvalue);\n cv.put(\"tuneid\", entry.getKey().getTuneId());\n cv.put(\"progress\", entry.getValue());\n database.insert(\"TimeSet_Tuning\", null, cv);\n cv.clear();\n }\n }",
"public Set(int pontos_time_1,int Pontos_time_2, int id_set){\r\n informacoesPonto = new ArrayList<>();\r\n this.pontosTimeMandante = pontos_time_1;\r\n this.pontosTimeVisitante = Pontos_time_2;\r\n this.finalizado = true;\r\n }",
"@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\ttOccslots = new ArrayList<Integer>();\n\t\t\t\tpOccslots = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < teacherDateList.size(); i++){\n\t\t\t\t\tParseObject o = teacherDateList.get(i);\n\t\t\t\t\ttOccslots.add(o.getInt(Constants.SLOTID));\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < parentDateList.size(); i++){\n\t\t\t\t\tParseObject o = parentDateList.get(i);\n\t\t\t\t\tpOccslots.add(o.getInt(Constants.SLOTID));\n\t\t\t\t}\n \t\t\tParseQuery<ParseObject> query = new ParseQuery<ParseObject>(Constants.TIMELINE);\n \t\t\tquery.whereNotContainedIn(Constants.SLOTID, tOccslots);\n \t\t\tquery.whereNotContainedIn(Constants.SLOTID, pOccslots);\n \t\t\tquery.addAscendingOrder(Constants.SLOTID);\n \t\t\ttry {\n\t\t\t\t\ttimesAvailable = query.find();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t\t\tqueriedTimes = new ArrayList<Time>();\n for (ParseObject allTimes : timesAvailable){\n \tTime time = new Time();\n \ttime.setSlot(allTimes.getInt(Constants.SLOTID));\n time.setTeacher(tFirstname+Constants.SPACE+tLastname);\n time.setTime(allTimes.getString(Constants.TIME));\n queriedTimes.add(time);\n } \n timesList.addAll(queriedTimes);\n\t\t\t\treturn null;\n\t\t\t}",
"private void setHourCombo(Time fromTime, Time toTime) {\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\tif (fromTime != null) {\n\t\t\twhile (fromTime.compareTo(toTime) < 0) {\n\t\t\t\tal.add(String.valueOf(fromTime.toString()));\n\t\t\t\tfromTime.setHours(fromTime.getHours() + 1);\n\n\t\t\t}\n\t\t\tlist = FXCollections.observableArrayList(al);\n\t\t\thourCombo.setItems(list);\n\t\t} else {\n\t\t\tDate currentDate = new Date();\n\t\t\tString today = currentDate.toString();\n\t\t\tString[] result = today.split(\" \");\n\t\t\tString time = result[3].substring(0, 8);\n\t\t\tal.add(String.valueOf(time));\n\t\t\tlist = FXCollections.observableArrayList(al);\n\t\t\thourCombo.setItems(list);\n\t\t\thourCombo.setValue(time);\n\t\t}\n\t}",
"public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }",
"public void ActivitySplitter(Population population,Config config, String activityType,Double timeGapInSecond,boolean shouldAddearliestEndTimeAndLatestStartTime) {\r\n\t\tHashMap<String,Tuple<Double,Double>> activities=new HashMap<>();\r\n\t\tHashMap<String,Integer> activityCounter=new HashMap<>();\r\n\t\tHashMap<String,Double> activityDurationSum=new HashMap<>();\r\n\t\tHashMap<String,ArrayList<Double>> activityStartTime=new HashMap<>();\r\n\t\tHashMap<String,ArrayList<Double>> activityEndTime=new HashMap<>();\r\n\t\tdouble startTime=3*3600;\r\n\t\tdouble endTime=27*3600;\r\n\t\tfor(double d=startTime;d<endTime;d=d+timeGapInSecond) {\r\n\t\t\tactivities.put(activityType+\"_\"+d, new Tuple<>(d,d+timeGapInSecond));\r\n\t\t\tactivityCounter.put(activityType+\"_\"+d, 0);\r\n\t\t\tactivityDurationSum.put(activityType+\"_\"+d, 0.);\r\n\t\t\tactivityStartTime.put(activityType+\"_\"+d,new ArrayList<>());\r\n\t\t\tactivityEndTime.put(activityType+\"_\"+d, new ArrayList<>());\r\n\t\t}\r\n\r\n\t\tfor(Person p:population.getPersons().values()) {\r\n\t\t\tfor(PlanElement pe:p.getSelectedPlan().getPlanElements()) {\r\n\t\t\t\tif(pe instanceof Activity) {\r\n\t\t\t\t\tActivity a=(Activity)pe;\r\n\t\t\t\t\tif(a.getType().equals(activityType)) {\r\n\t\t\t\t\t\tfor(Tuple<Double,Double>t:activities.values()) {\r\n\t\t\t\t\t\t\tif(a.getStartTime()>=t.getFirst()&&a.getStartTime()<t.getSecond()&&a.getStartTime()!=Double.NEGATIVE_INFINITY) {\r\n\t\t\t\t\t\t\t\ta.setType(activityType+\"_\"+t.getFirst());\r\n\t\t\t\t\t\t\t\tactivityCounter.put(activityType+\"_\"+t.getFirst(),activityCounter.get(activityType+\"_\"+t.getFirst())+1);\r\n\t\t\t\t\t\t\t\tactivityDurationSum.put(activityType+\"_\"+t.getFirst(),activityDurationSum.get(activityType+\"_\"+t.getFirst())+(a.getEndTime()-a.getStartTime()));\r\n\t\t\t\t\t\t\t\tactivityStartTime.get(activityType+\"_\"+t.getFirst()).add(a.getStartTime());\r\n\t\t\t\t\t\t\t\tactivityEndTime.get(activityType+\"_\"+t.getFirst()).add(a.getEndTime());\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tActivityParams aParams=config.planCalcScore().getActivityParams(activityType);\r\n\t\tfor(String s:activityCounter.keySet()) {\r\n\t\t\tif(activityCounter.get(s)!=0) {\r\n\t\t\t\tActivityParams ap=new ActivityParams(s);\r\n\t\t\t\tif(activityDurationSum.get(s)/activityCounter.get(s)!=0) {\r\n\t\t\t\t\tap.setTypicalDuration(activityDurationSum.get(s)/activityCounter.get(s));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tap.setTypicalDuration(activityDurationSum.get(s)/activityCounter.get(s)+300);\r\n\t\t\t\t}\r\n\t\t\t\tap.setClosingTime(Math.ceil((this.calcAverage(activityEndTime.get(s))+this.calcSD(activityEndTime.get(s)))/1800)*1800);\r\n\t\t\t\tif(shouldAddearliestEndTimeAndLatestStartTime) {\r\n\t\t\t\t\tap.setLatestStartTime(Math.floor(this.calcAverage(activityStartTime.get(s))/900)*900);\r\n\t\t\t\t\tap.setEarliestEndTime(Math.ceil(this.calcAverage(activityEndTime.get(s))/900)*900);\r\n\t\t\t\t}\r\n\t\t\t\tap.setOpeningTime(Math.floor((this.calcAverage(activityStartTime.get(s))-this.calcSD(activityStartTime.get(s)))/1800)*1800);\r\n\t\t\t\tconfig.planCalcScore().addActivityParams(ap);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void fillObservationsData() {\n\n // retrieve all oindex records\n// List<Oindex> oindexList = this.servicioApp.getMeasurementOindexListByStudy(workbookStudy.getStudy().getStudyid(), effectid);\n\n Integer studyId = this.workbookStudy.getStudy().getStudyid();\n\n int variateCount = this.workbookStudy.getVariates().size();\n\n List<Measurement> measurementList = new ArrayList<Measurement>();\n //todo quitar no se usa\n// int observationsCount = this.servicioApp.getObservationsCount(studyId);\n log.info(\"Getting Data Trial ...\");\n List<Object> dataList = this.servicioApp.getObservationsDataMeasurementEffect(studyId, effectid);\n log.info(\"Getting Data Trial Done...\");\n \n log.info(\"Getting List of Obsunit ...\");\n List<Obsunit> obsunits = this.servicioApp.getObsunitListByEffectid(studyId, effectid);\n log.info(\"Getting List of Obsunit...\");\n for (Obsunit obsUnit : obsunits){\n Measurement measurement = new Measurement();\n\n measurement.initMeasurementData(variateCount);\n\n assignMeasurementData(measurement, obsUnit, dataList);\n\n measurementList.add(measurement);\n }\n\n\n workbookStudy.setMeasurements(measurementList);\n\n List<String> factorsReturn = getFactoresReturnList();\n log.info(\"Getting Trial Randomization ...\");\n ResultSet rst = servicioApp.getTrialRandomization(studyId, 0, getFactoresKeyList(), factorsReturn, factorTrial.getFname());\n log.info(\"Getting Trial Randomization done\");\n fillFactorLabelData(rst, factorsReturn);\n }",
"private void buildProjectMonthTotals(List<TimeEntry> timeEntries) {\n projects.clear();\n for(TimeEntry te: timeEntries) {\n if(te.getStart().getYear() == selectedYear && te.getProject() != null) {\n String projectName = te.getProject().getName();\n String month = formatMonthName(te.getStart().getMonth());\n ProjectModel projectData = projects.get(projectName);\n if(projectData == null) {\n // First entry for the project\n projectData = new ProjectModel(projectName);\n projects.put(projectName, projectData);\n }\n projectData.addHours(month, (float) te.getDuration() / 3600.0);\n }\n }\n }",
"public void queryTaskUnionSet1() {\r\n\t\t// task 1\r\n\t\tTask task1 = new Task();\r\n\t\ttask1.setName(\"DEFECTS\");\r\n\t\ttask1.setDisplayName(\"Defects\");\r\n\t\ttask1.setDescription(\"User story to address product defects\");\r\n\t\ttask1 = (Task) aggregateService.create(task1, new Settings());\t\r\n\r\n\t\t// task 2\r\n\t\tTask task2 = new Task();\r\n\t\ttask2.setName(\"FIX_DEFECTS\");\r\n\t\ttask2.setDisplayName(\"Fix defects\");\r\n\t\ttask2.setDescription(\"Task to track the defect fixing effort\");\r\n\t\ttask2 = (Task) aggregateService.create(task2, new Settings());\r\n\r\n\t\t// task 3\r\n\t\tTask task3 = new Task();\r\n\t\ttask3.setName(\"PRIORITIZE_DEFECTS\");\r\n\t\ttask3.setDisplayName(\"Prioritize defects\");\r\n\t\ttask3.setDescription(\"Based upon the effort required for the defects prioritize them\");\r\n\t\ttask3 = (Task) aggregateService.create(task3, new Settings());\r\n\r\n\t\ttask1 = (Task) aggregateService.read(task1, getSettings());\t\t\r\n\r\n\t\t// query the task object\r\n\t\tSettings settings = new Settings();\r\n\t\tsettings.setParam(\"name1\", \"FIX_DEFECTS\");\r\n\t\tsettings.setParam(\"name2\", \"PRIORITIZE_DEFECTS\");\r\n\t\tsettings.setView(aggregateService.getView(\"TASKUNIONSET\"));\t\t\r\n\t\tList<?> toList = aggregateService.query(new Task(), settings);\r\n\r\n\t\tassert(toList.size() == 2);\r\n\r\n\t\tObject obj1 = toList.get(0);\r\n\t\tObject obj2 = toList.get(1);\r\n\r\n\t\tassert(Task.class.isAssignableFrom(obj1.getClass()));\r\n\t\tassert(Task.class.isAssignableFrom(obj2.getClass()));\r\n\t\t\r\n\t\tTask t1 = (Task) obj1;\r\n\t\tTask t2 = (Task) obj2;\t\t\r\n\t\t\r\n\t\tassert( (t1.getName().equals(\"FIX_DEFECTS\") && t2.getName().equals(\"PRIORITIZE_DEFECTS\")) ||\r\n\t\t\t\t(t2.getName().equals(\"FIX_DEFECTS\") && t1.getName().equals(\"PRIORITIZE_DEFECTS\")) );\r\n\t}",
"private synchronized void getRawData (Date begin, Date end, Vector<SensorData> data) {\n for (SensorData sensorData : rawData) {\n if ((sensorData.getDate().before(end) || sensorData.getDate()\n .equals(end))\n && (sensorData.getDate().after(begin) || sensorData\n .getDate().equals(begin))) {\n data.add(sensorData);\n }\n }\n }",
"public void generateTimes() {\n\n\t\tLocalTime currentTime = PropertiesConfig.getMorningSessionBegin();\n\t\tfor (Talk talk : morningSession.getTalks()) {\n\t\t\ttalk.setTime(currentTime);\n\t\t\tcurrentTime = currentTime.plusMinutes(talk.getLength());\n\t\t}\n\n\t\tTalk lunch = new Talk(PropertiesConfig.LUNCH_TITLE);\n\t\tlunch.setTime(PropertiesConfig.getLunchBegin());\n\t\tlunchSession.addTalk(lunch);\n\n\t\tcurrentTime = PropertiesConfig.getAfternoonSessionBegin();\n\t\tfor (Talk talk : afternoonSession.getTalks()) {\n\t\t\ttalk.setTime(currentTime);\n\t\t\tcurrentTime = currentTime.plusMinutes(talk.getLength());\n\t\t}\n\n\t\tTalk meetEvent = new Talk(PropertiesConfig.MEET_EVENT_TITLE);\n\t\tmeetEvent.setTime(currentTime);\n\t\tmeetSession.addTalk(meetEvent);\n\t}",
"public List<Date> retrieveSelectedValues()\n\t{\n\t\tList<Date> selectedValues = new ArrayList<Date>();\n\t\t\n\t\t// for each loop to find all the selected time intervals\n\t\tfor (Widget timeSlot : this.getChildren())\n\t\t{\n\t\t\tif(timeSlot instanceof TimeSlot)\n\t\t\t{\n\t\t\t\tif(((TimeSlot) timeSlot).getValue())\n\t\t\t\t{\n\t\t\t\t\tselectedValues.add(((TimeSlot) timeSlot).getDate());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn selectedValues;\n\t}",
"public void setLineData(ArrayList<Integer> allDay) {\r\n\r\n ArrayList<String> xVals = new ArrayList<String>();\r\n for (int i = 1; i <= 24; i++) {\r\n xVals.add((i) + \"\");\r\n }\r\n\r\n ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n\r\n for (int i = 1; i <= 24; i++) {\r\n vals1.add(new Entry(allDay.get(i-1), i));\r\n }\r\n Log.v(\"vals1\",vals1.toString());\r\n \t\r\n \t\r\n// \tint count = 45;\r\n// \tint range = 100; \r\n// \tArrayList<String> xVals = new ArrayList<String>();\r\n// for (int i = 0; i < count; i++) {\r\n// xVals.add((1990 +i) + \"\");\r\n// }\r\n//\r\n// ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n//\r\n// for (int i = 0; i < count; i++) {\r\n// float mult = (range + 1);\r\n// float val = (float) (Math.random() * mult) + 20;// + (float)\r\n// // ((mult *\r\n// // 0.1) / 10);\r\n// vals1.add(new Entry(val, i));\r\n// }\r\n// \r\n \t\r\n // create a dataset and give it a type\r\n LineDataSet set1 = new LineDataSet(vals1, \"DataSet 1\");\r\n set1.setDrawCubic(true);\r\n set1.setCubicIntensity(0.2f);\r\n set1.setDrawFilled(true);\r\n set1.setDrawCircles(false); \r\n set1.setLineWidth(2f);\r\n set1.setCircleSize(5f);\r\n set1.setHighLightColor(Color.rgb(244, 117, 117));\r\n set1.setColor(Color.rgb(104, 241, 175));\r\n\r\n ArrayList<LineDataSet> dataSets = new ArrayList<LineDataSet>();\r\n dataSets.add(set1);\r\n\r\n // create a data object with the datasets\r\n LineData data = new LineData(xVals, dataSets);\r\n\r\n // set data\r\n nChart.setData(data);\r\n }",
"public ArrayList<Stock> setTime(String startTime, String endTime) {\n return null;\n }",
"private void loadData() {\r\n titleField.setText(existingAppointment.getTitle());\r\n descriptionField.setText(existingAppointment.getDescription());\r\n contactField.setText(existingAppointment.getContact());\r\n customerComboBox.setValue(customerList.stream()\r\n .filter(x -> x.getCustomerId() == existingAppointment.getCustomerId())\r\n .findFirst().get());\r\n typeComboBox.setValue(existingAppointment.getType());\r\n locationComboBox.setValue(existingAppointment.getLocation());\r\n startTimeComboBox.setValue(existingAppointment.getStart().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n endTimeComboBox.setValue(existingAppointment.getEnd().toLocalTime().format(DateTimeFormatter.ofPattern(\"HH:mm\")));\r\n startDatePicker.setValue(existingAppointment.getStart().toLocalDate());\r\n endDatePicker.setValue(existingAppointment.getEnd().toLocalDate());\r\n }",
"void insertEmptyColumns() {\n List<DateTime> starts = new ArrayList<>();\n for (Long startMillis : mColumnsByStartMillis.keySet()) {\n starts.add(new DateTime(startMillis));\n }\n int maxEmptyColumns = 3 / getSegmentStartTimes().length;\n DateTime prev = starts.get(0);\n for (DateTime next : starts) {\n if (!next.isAfter(prev.plusDays(maxEmptyColumns))) {\n for (DateTime dt = prev.plusDays(1); dt.isBefore(next); dt = dt.plusDays(1)) {\n getColumnContainingTime(dt); // creates a column if it doesn't exist yet\n }\n }\n prev = next;\n }\n }",
"public void populateDataForVisitTimeReport(final Date startDate, final Date endDate,\n final List<String> companyCodes) {\n\n // reset\n this.mapCompanyBranchVsListEmployee = new HashMap<>();\n this.mapCompanyBranchVsListOfPurposes = new HashMap<>();\n this.mapCompanyBranchVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchPurposeVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchEmployeePurposeVsVisitTimes = new HashMap<>();\n this.mapCompanyBranchEmployeeVsVisitTimes = new HashMap<>();\n // init\n for (final String companyCode : companyCodes) {\n for (final String branchCode : SummaryReportService.BRANCHES.keySet()) {\n final String key =\n String.format(SummaryReportService.COMPANY_BRANCH_KEY_PATTERN, companyCode, branchCode);\n this.mapCompanyBranchVsListEmployee.put(key, new ArrayList<Integer>());\n this.mapCompanyBranchVsListOfPurposes.put(key, new ArrayList<Short>());\n this.mapCompanyBranchVsVisitTimes.put(key, 0);\n }\n }\n\n final List<Daily_report> listDailyReport = this.getListVisited(startDate, endDate, companyCodes);\n\n for (final Daily_report daily : listDailyReport) {\n final String companyCode = daily.getDai_company_code();\n String branchCode = daily.getDai_point_code();\n\n final int employeeCode = daily.getDai_employee_code();\n final boolean isHQ = daily.getEmployee_mst().getEmp_settle_authority() == AuthorityLevels.HEAD_QUARTER;\n if (isHQ) {\n branchCode = SummaryReportConstants.HQ_CODE;\n }\n final String companyBranchKey =\n String.format(SummaryReportService.COMPANY_BRANCH_KEY_PATTERN, companyCode, branchCode);\n\n if (this.mapCompanyBranchVsListEmployee.containsKey(companyBranchKey)) {\n if (!this.mapCompanyBranchVsListEmployee.get(companyBranchKey).contains(employeeCode)) {\n this.mapCompanyBranchVsListEmployee.get(companyBranchKey).add(employeeCode);\n }\n }\n if (this.mapCompanyBranchVsListOfPurposes.containsKey(companyBranchKey)) {\n if (!this.mapCompanyBranchVsListOfPurposes.get(companyBranchKey)\n .contains(daily.getDai_work_tancode())) {\n this.mapCompanyBranchVsListOfPurposes.get(companyBranchKey).add(daily.getDai_work_tancode());\n }\n }\n if (this.mapCompanyBranchVsVisitTimes.containsKey(companyBranchKey)) {\n this.mapCompanyBranchVsVisitTimes.put(companyBranchKey,\n this.mapCompanyBranchVsVisitTimes.get(companyBranchKey) + 1);\n }\n else {\n this.mapCompanyBranchVsVisitTimes.put(companyBranchKey, 0);\n }\n\n final String companyBranchPurposeKey =\n String.format(SummaryReportService.COMPANY_BRANCH_PURPOSE_KEY_PATTERN, companyCode, branchCode,\n daily.getDai_work_tancode());\n this.updateCountersOfMap(this.mapCompanyBranchPurposeVsVisitTimes, companyBranchPurposeKey);\n\n final String companyBranchEmployeeKey = String.format(\n SummaryReportService.COMPANY_BRANCH_EMPLOYEE_KEY_PATTERN, companyCode, branchCode, employeeCode);\n this.updateCountersOfMap(this.mapCompanyBranchEmployeeVsVisitTimes, companyBranchEmployeeKey);\n\n final String companyBranchEmployeePurposeKey =\n String.format(SummaryReportService.COMPANY_BRANCH_EMPLOYEE_PURPOSE_KEY_PATTERN, companyCode,\n branchCode, employeeCode, daily.getDai_work_tancode());\n this.updateCountersOfMap(this.mapCompanyBranchEmployeePurposeVsVisitTimes, companyBranchEmployeePurposeKey);\n }\n\n }",
"private void setTable(Preset currentPreset) {\n\t\tif(columnNames.length != data.getGroupList().size() + 1){\n\t\t\tcolumnNames = new Object[data.getGroupList().size() + 1];\n\t\t\tcolumnNames[0] = \"Time\";\n\t\t}\n\t\t\n\t\t// Make sure the slot numbers havent changed\n\t\tif(rowData.length != currentPreset.getSlotNumber() || rowData[0].length != columnNames.length){\n\t\t\trowData = new Object[currentPreset.getSlotNumber()][columnNames.length];\n\t\t}\n\n\t\t// Initialize the columns\n\t\tListIterator<Group> groups = data.getGroupList().listIterator();\n\t\tfor(int i = 1; i < columnNames.length; i++){\n\t\t\tcolumnNames[i] = groups.next();\n\t\t}\n\t\t\n\t\t// Create an array for the activities\n\t\tString[] activityNameArray = new String[data.getPlannedActivityList().size() + 1];\n\t\tactivityNameArray[0] = \"Random\";\n\t\tfor(int count = 0; count < data.getPlannedActivityList().size(); count++ ){\n\t\t\tactivityNameArray[count + 1] = data.getPlannedActivityList().get(count).getName();\t\t\t\n\t\t}\n\t\t\n\t\t// Initialize the table.\n\t\tfor(int rowIndex = 0; rowIndex < rowData.length; rowIndex++){\n\t\t\trowData[rowIndex][0] = getTime(currentPreset, rowIndex);\n\t\t\tfor(int colIndex = 1; colIndex < rowData[rowIndex].length; colIndex++){\n\t\t\t\trowData[rowIndex][colIndex] = new JComboBox<String>(activityNameArray);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public ArrayList<BoardGame> filterByTime(ArrayList<BoardGame> list) {\n int time = extractInt(playTime);\n ArrayList<BoardGame> tempList = new ArrayList<>();\n for (BoardGame game: list) {\n //Debug print out\n Log.i(\"FILTER TIME\", \"Game: \" + game.getName() + \" Min Time: \" + game.getMinPlayTime() +\n \" Max Time: \" + game.getMaxPlayTime() + \" Target Time: \" + time);\n if((game.getMinPlayTime() <= time && game.getMaxPlayTime() >= time) || game.getMaxPlayTime() <= time) {\n addGameToList(tempList, game);\n }\n }\n return tempList;\n }",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"public void makeFrequencyLists() {\n\n //times spinner\n Spinner spinner_times = (Spinner) findViewById(R.id.times_id);\n// Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter_times = ArrayAdapter.createFromResource(this,\n R.array.times_array, android.R.layout.simple_spinner_item);\n// Specify the layout to use when the list of choices appears\n adapter_times.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n spinner_times.setAdapter(adapter_times);\n\n //over time spinner\n Spinner spinner_over_time = (Spinner) findViewById(R.id.over_time_id);\n// Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter_over_time = ArrayAdapter.createFromResource(this,\n R.array.over_time_array, android.R.layout.simple_spinner_item);\n// Specify the layout to use when the list of choices appears\n adapter_over_time.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n// Apply the adapter to the spinner\n spinner_over_time.setAdapter(adapter_over_time);\n }",
"public Object[] get_Values(){return new Object[]{ Id, CategoryId, StartTime, BreakTime, EndTime };}",
"public void setSpinners(){\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"HH:mm\");\n LocalTime startHr = setBusinessHoursToLocalHours(8);\n LocalTime endHr = setBusinessHoursToLocalHours(22);\n\n SpinnerValueFactory<LocalTime> startFactory = new SpinnerValueFactory<LocalTime>() {\n {\n setConverter(new LocalTimeStringConverter(formatter,null));\n }\n @Override\n public void decrement(int steps) {\n steps = 15;\n if (getValue() == null)\n setValue(LocalTime.now());\n else {\n LocalTime time = (LocalTime) getValue();\n if(time.equals(startHr)){\n return;\n }\n setValue(time.minusMinutes(steps));\n }\n }\n\n @Override\n public void increment(int steps) {\n steps = 15;\n if (this.getValue() == null)\n setValue(LocalTime.now());\n else {\n LocalTime time = (LocalTime) getValue();\n if(time.equals(endHr)){\n return;\n }\n setValue(time.plusMinutes(steps));\n }\n }\n };\n\n SpinnerValueFactory<LocalTime> endFactory = new SpinnerValueFactory<LocalTime>() {\n {\n setConverter(new LocalTimeStringConverter(formatter,null));\n }\n @Override\n public void decrement(int steps) {\n steps = 15;\n if (getValue() == null)\n setValue(LocalTime.now());\n else {\n LocalTime time = (LocalTime) getValue();\n if(time.equals(startHr)){\n return;\n }\n setValue(time.minusMinutes(steps));\n }\n }\n\n @Override\n public void increment(int steps) {\n steps = 15;\n if (this.getValue() == null)\n setValue(LocalTime.now());\n else {\n LocalTime time = (LocalTime) getValue();\n if(time.equals(endHr)){\n return;\n }\n setValue(time.plusMinutes(steps));\n }\n }\n };\n\n if(setPrevSpinner){\n startFactory.setValue(startLDT.toLocalTime());\n endFactory.setValue(endLDT.toLocalTime());\n } else {\n startFactory.setValue(startHr);\n endFactory.setValue(startHr);\n }\n startSpinner.setValueFactory(startFactory);\n endSpinner.setValueFactory(endFactory);\n\n }",
"public static String[] makeRelativeTimes(int[] timeIndices,\n float timeInc) {\n\n GregorianCalendar utcCalendar =\n new GregorianCalendar(TimeZone.getTimeZone(\"GMT\"));\n String currentDate = null;\n String times = null;\n List timesList = new ArrayList();\n\n Date now = new Date();\n int minInc = (int) (60 * timeInc);\n int minutes = minInc % 60;\n int hours = minInc / 60;\n utcCalendar.setTime(now);\n int curHour = utcCalendar.get(utcCalendar.HOUR_OF_DAY);\n int curMin = utcCalendar.get(utcCalendar.MINUTE);\n // normalize for time inc\n // int diff = curHour- (curHour / timeInc) * timeInc; \n /*\n int diff = curHour % hourInc;\n // System.err.println(\"cur hour:\" + curHour + \" diff:\" + diff);\n utcCalendar.add(utcCalendar.HOUR_OF_DAY, -diff);\n */\n int hdiff = (hours == 0)\n ? 0\n : curHour % hours;\n int mdiff = (minutes == 0)\n ? curMin\n : curMin % minutes;\n // System.err.println(\"cur hour:\" + curHour + \" diff:\" + hdiff);\n // System.err.println(\"cur min:\" + curMin + \" diff:\" + mdiff);\n utcCalendar.add(utcCalendar.HOUR_OF_DAY, -hdiff);\n utcCalendar.add(utcCalendar.MINUTE, -mdiff);\n now = utcCalendar.getTime();\n for (int i = 0; i < timeIndices.length; i++) {\n //Reset the date to now.\n utcCalendar.setTime(now);\n //Go back timeIndices*increment hours\n //utcCalendar.add(utcCalendar.HOUR_OF_DAY,\n // -timeIndices[i] * hourInc);\n utcCalendar.add(utcCalendar.MINUTE, -timeIndices[i] * minInc);\n int newMin = utcCalendar.get(utcCalendar.MINUTE);\n int newHour = utcCalendar.get(utcCalendar.HOUR_OF_DAY);\n int newDay = utcCalendar.get(utcCalendar.DAY_OF_YEAR);\n int newYear = utcCalendar.get(utcCalendar.YEAR);\n String thisDate = \"\" + newYear + StringUtil.padZero(newDay, 3);\n //Do we have a new day\n if ( !Misc.equals(currentDate, thisDate)) {\n if (currentDate != null) {\n //if not the first time through then add it to the list\n timesList.add(makeDateUrl(currentDate, times.toString()));\n }\n currentDate = thisDate;\n times = \"\";\n }\n\n //Append the time \n if (times.length() > 0) {\n times = times + \",\";\n }\n times = times + newHour + \":\" + StringUtil.padZero(newMin, 2);\n }\n\n //add the last one to the list\n if (currentDate != null) {\n timesList.add(makeDateUrl(currentDate, times));\n }\n\n return (String[]) timesList.toArray(new String[timesList.size()]);\n\n }",
"public DataElementChartResult generateChartDataOrgGroupPeriodWise( List<Date> selStartPeriodList,\n List<Date> selEndPeriodList, List<String> periodNames, List<DataElement> dataElementList,\n List<DataElementCategoryOptionCombo> decocList, List<OrganisationUnit> selOUGroupMemberList )\n throws Exception\n {\n DataElementChartResult dataElementChartResult;\n\n String[] series = new String[dataElementList.size()];\n String[] categories = new String[selStartPeriodList.size()];\n Double[][] data = new Double[dataElementList.size()][selStartPeriodList.size()];\n String chartTitle = \"OrganisationUnit : \" + selectedOrgUnit.getShortName() + \"( Group- \"\n + selOrgUnitGroup.getName() + \" )\";\n String xAxis_Title = \"Time Line\";\n String yAxis_Title = \"Value\";\n\n int serviceCount = 0;\n\n for ( DataElement dataElement : dataElementList )\n {\n DataElementCategoryOptionCombo decoc;\n DataElementCategoryCombo dataElementCategoryCombo = dataElement.getCategoryCombo();\n List<DataElementCategoryOptionCombo> optionCombos = new ArrayList<DataElementCategoryOptionCombo>(\n dataElementCategoryCombo.getOptionCombos() );\n\n if ( deSelection.equalsIgnoreCase( OPTIONCOMBO ) )\n {\n decoc = decocList.get( serviceCount );\n series[serviceCount] = dataElement.getName() + \" : \" + decoc.getName();\n yseriesList.add( dataElement.getName() + \" : \" + decoc.getName() );\n }\n else\n {\n decoc = dataElementCategoryService.getDefaultDataElementCategoryOptionCombo();\n series[serviceCount] = dataElement.getName();\n yseriesList.add( dataElement.getName() );\n }\n\n int periodCount = 0;\n for ( Date startDate : selStartPeriodList )\n {\n Date endDate = selEndPeriodList.get( periodCount );\n categories[periodCount] = periodNames.get( periodCount );\n Double aggDataValue = 0.0;\n\n String tempStartDate = format.formatDate( startDate );\n String tempEndDate = format.formatDate( endDate );\n String drillDownPeriodName = periodNames.get( periodCount );\n\n Collection<Period> periods = periodService.getPeriodsBetweenDates( startDate, endDate );\n String drillDownData = selectedOrgUnit.getId() + \":\" + selOrgUnitGroup.getId() + \":\"\n + dataElement.getId() + \":\" + decoc.getId() + \":\" + periodTypeLB + \":\" + tempStartDate + \":\"\n + tempEndDate + \":\" + drillDownPeriodName + \":\" + deSelection + \":\" + aggChecked;\n selectedDrillDownData.add( drillDownData );\n\n int orgGroupCount = 0;\n for ( OrganisationUnit orgUnit : selOUGroupMemberList )\n {\n \n if ( deSelection.equalsIgnoreCase( OPTIONCOMBO ) )\n {\n if ( aggDataCB != null )\n {\n Double tempAggDataValue = aggregationService.getAggregatedDataValue( dataElement, decoc,\n startDate, endDate, orgUnit );\n if ( tempAggDataValue != null )\n aggDataValue += tempAggDataValue;\n }\n else\n {\n for ( Period period : periods )\n {\n DataValue dataValue = dataValueService.getDataValue( orgUnit, dataElement, period,\n decoc );\n try\n {\n aggDataValue += Double.parseDouble( dataValue.getValue() );\n }\n catch ( Exception e )\n {\n }\n }\n }\n }\n else\n {\n Iterator<DataElementCategoryOptionCombo> optionComboIterator = optionCombos.iterator();\n while ( optionComboIterator.hasNext() )\n {\n DataElementCategoryOptionCombo decoc1 = (DataElementCategoryOptionCombo) optionComboIterator\n .next();\n\n if ( aggDataCB != null )\n {\n Double tempAggDataValue = aggregationService.getAggregatedDataValue( dataElement, decoc1,\n startDate, endDate, orgUnit );\n if ( tempAggDataValue != null )\n aggDataValue += tempAggDataValue;\n }\n else\n {\n for ( Period period : periods )\n {\n DataValue dataValue = dataValueService.getDataValue( orgUnit, dataElement, period,\n decoc1 );\n try\n {\n aggDataValue += Double.parseDouble( dataValue.getValue() );\n }\n catch ( Exception e )\n {\n }\n }\n }\n }\n }\n orgGroupCount++;\n }\n\n data[serviceCount][periodCount] = aggDataValue;\n\n if ( dataElement.getType().equalsIgnoreCase( DataElement.VALUE_TYPE_INT ) )\n {\n if ( dataElement.getNumberType().equalsIgnoreCase( DataElement.VALUE_TYPE_INT ) )\n {\n data[serviceCount][periodCount] = Math.round( data[serviceCount][periodCount]\n * Math.pow( 10, 0 ) )\n / Math.pow( 10, 0 );\n }\n else\n {\n data[serviceCount][periodCount] = Math.round( data[serviceCount][periodCount]\n * Math.pow( 10, 1 ) )\n / Math.pow( 10, 1 );\n }\n }\n periodCount++;\n }\n\n serviceCount++;\n }\n\n dataElementChartResult = new DataElementChartResult( series, categories, data, chartTitle, xAxis_Title,\n yAxis_Title );\n\n return dataElementChartResult;\n\n }",
"private TaskSeriesCollection createCollection1() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new Date(1), new Date(2)));\n s1.add(new Task(\"Task 2\", new Date(3), new Date(4)));\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n s2.add(new Task(\"Task 3\", new Date(5), new Date(6)));\n result.add(s2);\n return result;\n }",
"private void fillTrialConditionsData() {\n List<Condition> trialConditions = new ArrayList<Condition>();\n\n int instanceCounter = 1;\n for (Condition condition : this.workbookStudy.getConditions()) {\n if (condition.getDataType().equals(DATA_TYPE_CHAR)) {\n// LevelC levelCFilter = new LevelC(true);\n// LevelCPK levelCPK = new LevelCPK();\n// levelCPK.setLabelid(condition.getLabelId());\n// levelCFilter.setFactorid(condition.getFactorId());\n// levelCFilter.setLevelCPK(levelCPK);\n// List<LevelC> levelCList = this.servicioApp.getListLevelC(levelCFilter, 0, 0, false);\n List<LevelC> levelCList = condition.getFactor().getLevelsC();\n instanceCounter = 1;\n for (LevelC levelC : levelCList) {\n try {\n Condition conditionToAdd = new Condition();\n BeanUtilsBean.getInstance().copyProperties(conditionToAdd, condition);\n conditionToAdd.setValue(levelC.getLvalue());\n conditionToAdd.setInstance(instanceCounter);\n conditionToAdd.setLevelNo(levelC.getLevelCPK().getLevelno());\n trialConditions.add(conditionToAdd);\n instanceCounter++;\n } catch (IllegalAccessException ex) {\n Exceptions.printStackTrace(ex);\n } catch (InvocationTargetException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n } else if (condition.getDataType().equals(DATA_TYPE_NUMERIC)) {\n// LevelN levelNFilter = new LevelN(true);\n// LevelNPK levelnPK = new LevelNPK();\n// levelnPK.setLabelid(condition.getLabelId());\n// levelNFilter.setFactorid(condition.getFactorId());\n// levelNFilter.setLevelNPK(levelnPK);\n// List<LevelN> levelNList = this.servicioApp.getListLevelN(levelNFilter, 0, 0, false);\n List<LevelN> levelNList = condition.getFactor().getLevelsN();\n instanceCounter = 1;\n for (LevelN levelN : levelNList) {\n try {\n Condition conditionToAdd = new Condition();\n BeanUtilsBean.getInstance().copyProperties(conditionToAdd, condition);\n conditionToAdd.setValue(DecimalUtils.getValueAsString(levelN.getLvalue()));\n conditionToAdd.setInstance(instanceCounter);\n conditionToAdd.setLevelNo(levelN.getLevelNPK().getLevelno());\n trialConditions.add(conditionToAdd);\n instanceCounter++;\n } catch (IllegalAccessException ex) {\n Exceptions.printStackTrace(ex);\n } catch (InvocationTargetException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n }\n }\n\n Comparator<Condition> conditionComparator = new Comparator<Condition>() {\n\n @Override\n public int compare(Condition o1, Condition o2) {\n return o1.getInstance().compareTo(o2.getInstance());\n }\n };\n\n Collections.sort(trialConditions, conditionComparator);\n\n this.workbookStudy.setConditionsData(trialConditions);\n }",
"public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }",
"private static void fillBriefServerTimes(ResultSet resultSet, List<ReserveTime> reserveTimes) {\n\t\ttry {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tReserveTime reserveTime = new ReserveTime();\n\t\t\t\treserveTime.setID(resultSet.getInt(1));\n\t\t\t\treserveTime.setDateID(resultSet.getInt(2));\n\t\t\t\treserveTime.setResCodeID(resultSet.getString(3));\n\t\t\t\treserveTime.setStartTime(resultSet.getObject(4, LocalTime.class));\n\t\t\t\treserveTimes.add(reserveTime);\n\t\t\t}\n\t\t}catch (SQLException e){\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}",
"private void createFormattedTimeArray(ArrayList<String> timeArray, ArrayList<String> formattedTimeArray) {\n String timeString = String.join(\" \", timeArray);\n List<DateGroup> dateGroups = dateParser.parse(timeString);\n List<Date> dates = dateGroups.get(0).getDates();\n int dateSize = dates.size();\n for (int i = 0; i < dateSize; i++) {\n Date date = dates.get(i);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"ddMMyy\");\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HHmm\");\n String formattedDate = dateFormat.format(date);\n String formattedTime;\n if (dateGroups.get(0).isTimeInferred()) {\n formattedTime = \"2359\";\n } else {\n formattedTime = timeFormat.format(date);\n }\n formattedTimeArray.add(formattedDate);\n formattedTimeArray.add(formattedTime);\n }\n }",
"public void initializeYears() {\n int j, k;\n WaterPurityReport earliest = _purityReportData.get(1);\n WaterPurityReport latest = _purityReportData.get(_purityReportData.getCount());\n if (earliest != null) {\n// j = earliest.getDate().toInstant().atZone(ZoneId.of(\"EST\")).toLocalDate().getYear();\n// k = latest.getDate().toInstant().atZone(ZoneId.of(\"EST\")).toLocalDate().getYear();\n\n Calendar cal = Calendar.getInstance();\n cal.setTime(earliest.getDate());\n j = cal.get(Calendar.YEAR);\n cal.setTime(latest.getDate());\n k = cal.get(Calendar.YEAR);\n dataGraphYear.setItems(FXCollections.observableArrayList(IntStream.range(j, k+1).boxed().collect(Collectors.toList())));\n }\n }",
"void transform(Map<String, List<Map<String,String>>> data, long startTime, long endTime);",
"private void addOrReplaceDataSeries() {\n int chartMode;\n try {\n m_pLock.lock();\n chartMode = mChartMode;\n } finally {\n m_pLock.unlock();\n }\n\n if (m_pLineChart.getData().size() > 0) {\n m_pLineChart.getData().clear();\n }\n\n switch (chartMode) {\n case CHART_MODE_2_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_2SEC);\n m_pLineChart.getData().add(m_pDataSeries2_2SEC);\n m_pLineChart.getData().add(m_pDataSeries3_2SEC);\n break;\n case CHART_MODE_10_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_10SEC);\n m_pLineChart.getData().add(m_pDataSeries2_10SEC);\n m_pLineChart.getData().add(m_pDataSeries3_10SEC);\n break;\n case CHART_MODE_30_SECONDS:\n m_pLineChart.getData().add(m_pDataSeries1_30SEC);\n m_pLineChart.getData().add(m_pDataSeries2_30SEC);\n m_pLineChart.getData().add(m_pDataSeries3_30SEC);\n break;\n case CHART_MODE_5_MINUTES:\n m_pLineChart.getData().add(m_pDataSeries1_5MIN);\n m_pLineChart.getData().add(m_pDataSeries2_5MIN);\n m_pLineChart.getData().add(m_pDataSeries3_5MIN);\n break;\n default:\n break;\n }\n\n m_pXAxis.setDisable(true);\n int chartRange;\n int tickUnit;\n ObservableList<XYChart.Data<Number, Number>> observableList1, observableList2, observableList3;\n switch (mChartMode) {\n case CHART_MODE_2_SECONDS:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n tickUnit = X_AXIS_TICK_2_SECOND_MODE;\n break;\n case CHART_MODE_10_SECONDS:\n observableList1 = m_pDataSerieObservableList1_10SEC;\n observableList2 = m_pDataSerieObservableList2_10SEC;\n observableList3 = m_pDataSerieObservableList3_10SEC;\n chartRange = X_AXIS_RANGE_10_SECOND_MODE;\n tickUnit = X_AXIS_TICK_10_SECOND_MODE;\n break;\n case CHART_MODE_30_SECONDS:\n observableList1 = m_pDataSerieObservableList1_30SEC;\n observableList2 = m_pDataSerieObservableList2_30SEC;\n observableList3 = m_pDataSerieObservableList3_30SEC;\n chartRange = X_AXIS_RANGE_30_SECOND_MODE;\n tickUnit = X_AXIS_TICK_30_SECOND_MODE;\n break;\n case CHART_MODE_5_MINUTES:\n observableList1 = m_pDataSerieObservableList1_5MIN;\n observableList2 = m_pDataSerieObservableList2_5MIN;\n observableList3 = m_pDataSerieObservableList3_5MIN;\n chartRange = X_AXIS_RANGE_5_MINUTE_MODE;\n tickUnit = X_AXIS_TICK_5_MINUTE_MODE;\n break;\n default:\n observableList1 = m_pDataSerieObservableList1_2SEC;\n observableList2 = m_pDataSerieObservableList2_2SEC;\n observableList3 = m_pDataSerieObservableList3_2SEC;\n chartRange = X_AXIS_RANGE_2_SECOND_MODE;\n tickUnit = X_AXIS_TICK_2_SECOND_MODE;\n break;\n }\n\n if (observableList1.isEmpty() == false && observableList2.isEmpty() == false && observableList3.isEmpty() == false) {\n double maxValue = Math.max(Math.max(observableList1.get(observableList1.size() - 1).getXValue().doubleValue(),\n observableList2.get(observableList1.size() - 1).getXValue().doubleValue()),\n observableList3.get(observableList1.size() - 1).getXValue().doubleValue());\n double newLowerBound = maxValue - chartRange;\n double newUpperBound = maxValue;\n m_pXAxis.setLowerBound(newLowerBound);\n m_pXAxis.setUpperBound(newUpperBound);\n m_pXAxis.setTickUnit(tickUnit);\n m_pXAxis.setDisable(false);\n }\n \n // Update if there is some data series which is not to be plotted\n boolean toPlotDataSeries1 = mToPlotDataSeries1;\n boolean toPlotDataSeries2 = mToPlotDataSeries2;\n boolean toPlotDataSeries3 = mToPlotDataSeries3;\n mToPlotDataSeries1 = true;\n mToPlotDataSeries2 = true;\n mToPlotDataSeries3 = true; \n switchDataSeriesStatus(1, toPlotDataSeries1);\n switchDataSeriesStatus(2, toPlotDataSeries2);\n switchDataSeriesStatus(3, toPlotDataSeries3);\n \n\n }",
"public ArrayList<String> StringArrayListTimeCheck() {\n String temp = null;\n ArrayList<String> newStringList = new ArrayList();\n Calendar cal = Calendar.getInstance();\n for (int i = 0; i < 11; i++) {\n cal.add(Calendar.HOUR, 2);\n SimpleDateFormat sdf = new SimpleDateFormat(\"ha\");\n temp = sdf.format(cal.getTime()).toLowerCase();\n newStringList.add(temp);\n\n }\n return newStringList;\n\n }",
"public Collection<BaseData> getBaseDataByDate(Date startDate, Date endDate){\n\t\tQuery query = em.createQuery(\"from BaseData c where c.date_time >= :sDate AND c.date_time <= :eDate\");\n\t\tquery.setParameter(\"sDate\",startDate);\n\t\tquery.setParameter(\"eDate\", endDate);\n\t\treturn (List<BaseData>)query.getResultList();\n\t}",
"private void mergeProductData(List<ProductView> productViews,\n Map<String, List<ProductDataView>> productDataViews) {\n LOG.debug(\"Enter.\");\n\n productViews.stream().forEach(\n product -> product.setDataDefinitions(productDataViews.get(product.getId())));\n\n LOG.debug(\"Exit.\");\n }",
"private void setupListView() {\n viewModel.getPeriodString().observe(this, (string) -> {\n if(string != null) {\n TextView periodTextView = findViewById(R.id.tvTimeFrame);\n periodTextView.setText(string);\n }\n });\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n int size = prefs.getInt(\"hourSize\", getResources().getInteger(R.integer.hourSizeDefault));\n viewModel.getAppointments().observe(this, (appointments) -> {\n if(appointments != null) {\n for(int day = 0; day < appointments.size(); day++) {\n AppointmentAdapter adapter = new AppointmentAdapter(this, size, popup, viewModel);\n adapter.setList(appointments.get(day));\n listViews.get(day).setAdapter(adapter);\n }\n }\n });\n HourAdapter adapter = new HourAdapter(this, this, size);\n viewModel.getTimeSlots().observe(this, adapter::setList);\n timeSlotView.setAdapter(adapter);\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n adapter.notifyDataSetChanged();\n handler.postDelayed(this, 60*1000);\n }\n }, 60*1000);\n }",
"private TimeRange(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private void createTestData(OHLCSeriesCollection seriesCollection) {\n\t OHLCSeries series = seriesCollection.getSeries(0);\n\t for (int i = 0; i < 10; i++) {\n\t // Generate new bar time\n\t Calendar cal = Calendar.getInstance();\n\t cal.add(Calendar.MINUTE, i);\n\t FixedMillisecond fm = new FixedMillisecond(cal.getTime());\n\t // Add bar to the data. Let's repeat the same bar\n\t series.add(fm, 100, 110, 90, 105);\n\t }\n\t}",
"private void fillStatsRandomlyForDebug() {\n int[] numberOfPeriodsEachDay = {4, 5, 5, 4, 4, 4};\n\n GregorianCalendar dateToFillFrom = new GregorianCalendar(2016, Calendar.AUGUST, 1);\n GregorianCalendar rightNow = new GregorianCalendar();\n rightNow.add(isMonthDisplayed ? Calendar.MONTH : Calendar.WEEK_OF_YEAR, -1);\n\n //sundays are never in statistics\n if (rightNow.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\n rightNow.add(Calendar.DAY_OF_WEEK, -1);\n }\n\n while (dateToFillFrom.get(Calendar.YEAR) != rightNow.get(Calendar.YEAR)\n || dateToFillFrom.get(Calendar.MONTH) != rightNow.get(Calendar.MONTH)\n || dateToFillFrom.get(Calendar.DATE) != rightNow.get(Calendar.DATE)) {\n\n if (dateToFillFrom.get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) {\n ArrayList<Boolean> arr = new ArrayList<>();\n for (int j = 0; j < numberOfPeriodsEachDay[dateToFillFrom.get(Calendar.DAY_OF_WEEK) - 2]; j++) {\n arr.add((ThreadLocalRandom.current().nextInt(0, 2) == 0));\n }\n stats.attendanceHistory.add(new StatsDay(arr, StatsUtils.copyCalendarConstructor(dateToFillFrom)));\n }\n\n dateToFillFrom.add(Calendar.DATE, 1);\n }\n }",
"@Override\n\tpublic List<TimeInit> getAllTimeInit() {\n\t\treturn timeInitDao.getAllTimeInit();\n\t}",
"public void addData() {\n if (daySchedule == null) {\n return;\n }\n int numTimes = daySchedule.size();\n TableLayout tl = findViewById(R.id.table);\n int chosenTime = MainActivity.hour * 60 + MainActivity.minute;\n if(chosenTime == 0)\n {\n Calendar now = Calendar.getInstance();\n chosenTime = now.get(Calendar.HOUR_OF_DAY) * 60 + now.get(Calendar.MINUTE);;\n }\n for (int i = 0; i < numTimes; i++) {\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n Time t = daySchedule.get(i);\n if (!haverford) {\n if (Time.toMinutes(t.leaveBrynMawr()) > chosenTime) {\n Log.d(\"brynmawrtime\", String.valueOf(Time.toMinutes(t.leaveBrynMawr())));\n tr.addView(getTextView(i + 1, t.leaveBrynMawr(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n tr.addView(getTextView(i + numTimes, t.arriveHaverford(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n }\n } else {\n if (Time.toMinutes(t.leaveHaverford()) > chosenTime) {\n tr.addView(getTextView(i + 1, t.leaveHaverford(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n tr.addView(getTextView(i + numTimes, t.arriveBrynMawr(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n }\n }\n tl.addView(tr, getTblLayoutParams());\n }\n }",
"void add(Iterable<S3TimeData> newData) {\n assert newData != null;\n\n synchronized (mux) {\n for (S3TimeData data : newData)\n map.put(data.getKey(), data);\n\n mux.notifyAll();\n }\n }",
"private void initViews() {\n mCancelButton.setOnClickListener(view -> getDialog().dismiss());\n\n mSaveButton.setOnClickListener(view -> {\n //Check if callback is attached or not\n if (mCallback != null) {\n mCallback.onOptionsFiltered(SELECTED_TIME_OPTION);\n }\n getDialog().dismiss();\n });\n\n //Initialize Spinner adapter\n ArrayAdapter<String> adapter = new ArrayAdapter<>(getActivity(), android.R.layout.simple_spinner_item, Constants.TIME_OPTIONS);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mTimeOptionsSpinner.setAdapter(adapter);\n\n mTimeOptionsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n SELECTED_TIME_OPTION = i;\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n SELECTED_TIME_OPTION = 0;\n }\n });\n\n mTimeOptionsSpinner.setSelection(SELECTED_TIME_OPTION);\n }",
"public static void mergingMapReduce(TimePeriod timePeriod) {\n\n\t\tSystem.out.println(\"Starting merging mapreduce...\");\n\n\t\tDBCollection dailyCollection = mongoOps\n\t\t\t\t.getCollection(DAILY_COLLECT_NAME);\n\n\t\tCalendar stDate = Calendar.getInstance();\n\t\tif (timePeriod.equals(TimePeriod.PASTWEEK)) {\n\t\t\tstDate.add(Calendar.DATE, -7);\n\t\t} else if (timePeriod.equals(TimePeriod.PASTMONTH)) {\n\t\t\tstDate.add(Calendar.DATE, -30);\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.println(\"Start date: \" + stDate.getTime().toString());\n\n\t\t// create pipeline operations, first with the $match\n\t\tDBObject matchObj = new BasicDBObject(\"_id.date\", new BasicDBObject(\n\t\t\t\t\"$gte\", counterDateFormat.format(stDate.getTime())));\n\t\tDBObject match = new BasicDBObject(\"$match\", matchObj);\n\n\t\t// build the $projection operation\n\t\tDBObject fields = new BasicDBObject(\"_id.id\", 1);\n\t\tfields.put(\"_id.type\", 1);\n\t\tfields.put(\"value\", 1);\n\t\tDBObject project = new BasicDBObject(\"$project\", fields);\n\n\t\t// the $group operation\n\t\tMap<String, Object> dbObjIdMap = new HashMap<String, Object>();\n\t\tdbObjIdMap.put(\"id\", \"$_id.id\");\n\t\tdbObjIdMap.put(\"type\", \"$_id.type\");\n\t\tDBObject groupFields = new BasicDBObject(\"_id\", new BasicDBObject(\n\t\t\t\tdbObjIdMap));\n\t\tgroupFields.put(\"value\", new BasicDBObject(\"$sum\", \"$value\"));\n\t\tDBObject group = new BasicDBObject(\"$group\", groupFields);\n\n\t\t// $out operation\n\t\tDBObject out = new BasicDBObject(\"$out\",\n\t\t\t\t(timePeriod.equals(TimePeriod.PASTWEEK) ? WEEKLY_COLLECT_NAME\n\t\t\t\t\t\t: MONTHLY_COLLECT_NAME));\n\n\t\tList<DBObject> pipeline = Arrays.asList(match, project, group, out);\n\t\tdailyCollection.aggregate(pipeline);\n\n\t\tSystem.out.println(\"Finished merging mapreduce\");\n\t}",
"@Test\n public void testPartialLimitPushDownMerge() {\n QueryToolChest<Row, GroupByQuery> toolChest = groupByFactory.getToolchest();\n QueryRunner<Row> theRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory.mergeRunners(executorService, getRunner1(0))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> theRunner2 = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(groupByFactory2.mergeRunners(executorService, getRunner2(1))), ((QueryToolChest) (toolChest)));\n QueryRunner<Row> finalRunner = new org.apache.druid.query.FinalizeResultsQueryRunner(toolChest.mergeResults(new QueryRunner<Row>() {\n @Override\n public Sequence<Row> run(QueryPlus<Row> queryPlus, Map<String, Object> responseContext) {\n return Sequences.simple(ImmutableList.of(theRunner.run(queryPlus, responseContext), theRunner2.run(queryPlus, responseContext))).flatMerge(Function.identity(), queryPlus.getQuery().getResultOrdering());\n }\n }), ((QueryToolChest) (toolChest)));\n QuerySegmentSpec intervalSpec = new org.apache.druid.query.spec.MultipleIntervalSegmentSpec(Collections.singletonList(Intervals.utc(1500000000000L, 1600000000000L)));\n GroupByQuery query = GroupByQuery.builder().setDataSource(\"blah\").setQuerySegmentSpec(intervalSpec).setDimensions(new DefaultDimensionSpec(\"dimA\", \"dimA\"), new org.apache.druid.query.dimension.ExtractionDimensionSpec(ColumnHolder.TIME_COLUMN_NAME, \"hour\", ValueType.LONG, new TimeFormatExtractionFn(null, null, null, new org.apache.druid.java.util.common.granularity.PeriodGranularity(new Period(\"PT1H\"), null, DateTimeZone.UTC), true))).setAggregatorSpecs(new LongSumAggregatorFactory(\"metASum\", \"metA\")).setLimitSpec(new DefaultLimitSpec(Arrays.asList(new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"hour\", Direction.ASCENDING, StringComparators.NUMERIC), new org.apache.druid.query.groupby.orderby.OrderByColumnSpec(\"dimA\", Direction.ASCENDING)), 1000)).setContext(ImmutableMap.of(CTX_KEY_APPLY_LIMIT_PUSH_DOWN, true)).setGranularity(ALL).build();\n Sequence<Row> queryResult = finalRunner.run(QueryPlus.wrap(query), new HashMap());\n List<Row> results = queryResult.toList();\n Row expectedRow0 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505260800000L, \"metASum\", 26L);\n Row expectedRow1 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505260800000L, \"metASum\", 7113L);\n Row expectedRow2 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"mango\", \"hour\", 1505264400000L, \"metASum\", 10L);\n Row expectedRow3 = GroupByQueryRunnerTestHelper.createExpectedRow(\"2017-07-14T02:40:00.000Z\", \"dimA\", \"pomegranate\", \"hour\", 1505264400000L, \"metASum\", 7726L);\n Assert.assertEquals(4, results.size());\n Assert.assertEquals(expectedRow0, results.get(0));\n Assert.assertEquals(expectedRow1, results.get(1));\n Assert.assertEquals(expectedRow2, results.get(2));\n Assert.assertEquals(expectedRow3, results.get(3));\n }"
] | [
"0.53348",
"0.5097456",
"0.5087525",
"0.5045606",
"0.49198288",
"0.49189237",
"0.49159324",
"0.49010494",
"0.48954037",
"0.4895338",
"0.48547697",
"0.48516077",
"0.4843712",
"0.48414138",
"0.47902182",
"0.47827062",
"0.47492412",
"0.47492188",
"0.4740906",
"0.47234964",
"0.4711028",
"0.47096452",
"0.46896842",
"0.46821254",
"0.46795243",
"0.46788734",
"0.46663877",
"0.46403444",
"0.46282396",
"0.46271393",
"0.46240166",
"0.46160048",
"0.4602224",
"0.45844582",
"0.45726782",
"0.45666006",
"0.45573598",
"0.4556082",
"0.45513242",
"0.45486122",
"0.45486122",
"0.45475295",
"0.45325348",
"0.45316467",
"0.4527296",
"0.45246685",
"0.45089892",
"0.45076662",
"0.45051542",
"0.45027712",
"0.44981462",
"0.44939542",
"0.44922256",
"0.44800904",
"0.4457494",
"0.44552737",
"0.44544688",
"0.4444007",
"0.44435307",
"0.4442019",
"0.4438857",
"0.44384882",
"0.44279057",
"0.44253743",
"0.43959802",
"0.4395169",
"0.4388679",
"0.43833357",
"0.43748277",
"0.43633756",
"0.43584552",
"0.43553954",
"0.43520817",
"0.43484044",
"0.434553",
"0.4334963",
"0.4328715",
"0.43267584",
"0.43256643",
"0.43220425",
"0.43167302",
"0.430286",
"0.43005186",
"0.42944697",
"0.4293941",
"0.42917958",
"0.42794102",
"0.42771766",
"0.42758164",
"0.42742056",
"0.4268684",
"0.42652863",
"0.42642403",
"0.42573637",
"0.42563227",
"0.42508066",
"0.42453703",
"0.423035",
"0.42302313",
"0.4227651"
] | 0.7400964 | 0 |
Called to reset the table structure after a change | private void fireStructureChanged() {
tableModel.fireTableStructureChanged();
paramsTable.getColumnModel().getColumn(COL_SAMPLING).setCellEditor(
new SamplingEditor());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void resetTable() {\n tableModel.resetDefault();\n updateSummaryTable();\n }",
"public void resetTable() {\n\t\tif (table != null) {\n\t\t\ttable.removeAll();\n\t\t}\n\t}",
"private void repopulateTableForDelete()\n {\n clearTable();\n populateTable(null);\n }",
"public void resetChanges() {\n\t\tthis.resetStatus();\n\t\ttheStructures.resetStatus();\n\n\t\tfireDocumentInit();\n\t}",
"public static void resetTableRam(){\r\n singleton.dtm = new DefaultTableModel();\r\n singleton.dtm.setColumnIdentifiers(ram);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n }",
"private void UpdateTable() {\n\t\t\t\t\n\t\t\t}",
"public void reset() {\n\t\ttry {\n\t\ttr.reset();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Exception when reset the table reader\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void clearTable() {\n fieldTable.removeAllRows();\n populateTableHeader();\n }",
"protected void reset () {\n for (Field field : this.map) {\n this.table.putNumber(field.getName(), field.getDefaultValue());\n }\n }",
"private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }",
"public void reset()\n\t{\n\t\t//taskTable.setFilters(new FilterPipeline());\n\t\tmodel = new TaskTableModel(projects);\n\t\ttaskTable.setModel(model);\n\t\tresetComboxes();\n\t}",
"private void clearTableData() {\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n model.setRowCount(0);\n }",
"public void resetHighscoreTable()\r\n\t{\r\n\t\tcreateArray();\r\n\t\twriteFile();\r\n\t}",
"public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}",
"protected void reloadAndReformatTableData()\n {\n logTable.loadAndFormatData();\n }",
"public void refreshTable() {\n\t\tmyTable.refreshTable();\n\t}",
"@Override\n public void reset() {\n setActive(false);\n if (tablePane != null) {\n tablePane.removeAll();\n }\n table = null;\n tablePane = null;\n }",
"public void reset() {\n\t\tdroppedFiles.clear();\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t((DefaultTableModel) table.getModel()).setRowCount(0);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}",
"private void refreshTable() {\n data = getTableData();\n updateTable();\n }",
"public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}",
"public synchronized final void reset() {\r\n f_index = getDefaultIndex();\r\n f_userSetWidth = -1;\r\n // by default the first column is sorted the others unsorted\r\n f_sort = getDefaultSort();\r\n }",
"private void reinit() {\n \tthis.showRowCount = false;\n this.tableCount = 0;\n this.nullString = \"\";\n\t}",
"public void clear() {\r\n\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\ttable[i] = null;\r\n\t\t}\r\n\r\n\t\tmodificationCount++;\r\n\t\tsize = 0;\r\n\t}",
"public void clearData(){\n\t\t\n\t\tclearTable(conditionTableModel);\n\t\tclearTable(faultTableModel);\n\t}",
"private void reloadPlanTable() {\n\t\t\r\n\t}",
"protected void clearTable() {\n\ttable.setModel(new javax.swing.table.AbstractTableModel() {\n\t public int getRowCount() { return 0; }\n\t public int getColumnCount() { return 0; }\n\t public Object getValueAt(int row, int column) { return \"\"; }\n\t});\n }",
"public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }",
"public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel = new LazyBookDataModel();\r\n\t}",
"public void changeData() {\n\t\tDefaultTableModel dtm = new DefaultTableModel(dataModel.getData(),\n\t\t\t\tdataModel.getHeader());\n\t\tsetModel(dtm);\n\t}",
"public void clearTable() {\n reportTable.getColumns().clear();\n }",
"private void refreshTable(){\n DefaultTableModel dm = (DefaultTableModel)table.getModel();\r\n dm.getDataVector().removeAllElements();\r\n System.out.println(\"Refresh Table\");\r\n\r\n //calling method addRows\r\n addRows();\r\n }",
"@Override\n public void clearRowsWithChanges() {\n }",
"private void changeToScanTable() {\n\t\tswitch (fileType) {\n\t\tcase INVENTORY:\n\t\t\ttableView.setItems(presentationInventoryData);\n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\ttableView.setItems(presentationInitialData);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttableView.getColumns().clear();\n\t\t\tbreak;\n\t\t} // End switch statement\n\t}",
"protected void resetModified()\n {\n m_pool.resetModified();\n\n // reset all other VM sub-structures\n StringTable[] atbl = CONTAINED_TABLE;\n for (int i = 0; i < atbl.length; ++i)\n {\n Enumeration enmr = atbl[i].elements();\n while (enmr.hasMoreElements())\n {\n ((VMStructure) enmr.nextElement()).resetModified();\n }\n }\n\n m_fModified = false;\n }",
"public void reset(){\r\n \ttablero.clear();\r\n \tfalling = null;\r\n \tgameOver = false;\r\n \tlevel = 0;\r\n \ttotalRows = 0;\r\n \tLevelHelper.setLevelSpeed(level, this);\r\n }",
"public void unsetWholeTbl()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(WHOLETBL$2, 0);\n }\n }",
"public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\n\t}",
"public void clearTable() {\n\t\tfor (int i = modelCondTable.getRowCount() - 1; i >= 0; i--) {\n\t\t\tmodelCondTable.removeRow(i);\n\t\t}\n\t}",
"public void clear()\n\t{\n\t\tfor(DBColumn col : _RowData.values())\n\t\t\tcol.clear();\n\t\t\t\n\t\t_MetaData = null;\n\t\t_Parent = null;\n\t\t_Status = DBRowStatus.Unchanged;\n\t}",
"private void clearTable()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n table.removeViews(1, table.getChildCount() - 1);\n }",
"private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }",
"public void reset() {\n initEntries();\n }",
"@Override\n\tpublic void cleanUp() {\n\t\t table = null;\n colFam = null;\n currentEvent = null;\n\t}",
"private void refreashTableView() {\n this.scoreboard.refresh();\n sortScoreboard();\n }",
"public void clear() {\n tableCache.invalidateAll();\n }",
"@Override\n public void reset()\n {\n state = \"initial state\";\n nbChanges = 0;\n nbResets++;\n }",
"public void tableRefChanged() {\r\n\t\t// clear the table Element so it will be recreated\r\n\t\ttableElement = null;\r\n\t\t\r\n\t\t// tell the files that this table has changed\r\n\t\tif (refFiles != null) {\r\n\t\t\tfor(ReferenceFile refFile : refFiles) {\r\n\t\t\t\trefFile.setUpdated(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void updatedTable() {\r\n\t\tfireTableDataChanged();\r\n\t}",
"private void dealToTable()\r\n\t{\r\n\t\tthis.onTable.clear();\r\n\t\tif(this.deck.size() >= Config.TableCards)\r\n\t\t{\r\n\t\t\tthis.onTable.addAll(this.deck.subList(0, Config.TableCards));\r\n\t\t\tthis.deck = this.deck.subList(Config.TableCards, this.deck.size());\r\n\t\t}\r\n\t}",
"public void reset() {\r\n\t\t_tb = new TreeBuffer();\r\n\t}",
"public void clearTable() {\n this.lstDaqHware.clear();\n this.mapDevPBar.clear();\n this.mapDevMotion.clear();\n }",
"@Override\n\tpublic void emptyTable() {\n\t\tresTable.deleteAll();\n\t}",
"private void clearTable() {\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t}",
"public void clear() {\n table = new Handle[defaultSize];\n logicalSize = 0;\n }",
"public void setTableData()\n\t{\n\t\tsetTableData(false);\n\t}",
"public void resetBJTable() {\n\t\t((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).clearTable(blackjack.getCashAmount());\n\t\tif (blackjack.getCashAmount() <= 0) {\n\t\t\tJOptionPane.showMessageDialog(((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)),\n\t\t\t\t\t\"You ran out of cash! Please, go back\\n to the menu and make a deposit to\\n keep playing.\",\n\t\t\t\t\t\"** NO MONEY **\", JOptionPane.PLAIN_MESSAGE);\n\t\t}\n\t\tblackjack.setOkBet(false);\n\t}",
"public void setTableToDefault() {\n TableColumnModel tcm = table.getColumnModel();\n\n for (int i = 0; i < msbQTM.getColumnCount(); i++) {\n tcm.getColumn(i).setPreferredWidth(-1);\n }\n\n table.setColumnModel(tcm);\n }",
"public void emptyTable()\r\n {\r\n final int lastRow = table.getRowCount();\r\n if (lastRow != 0)\r\n {\r\n ((JarModel) table.getModel()).fireTableRowsDeleted(0, lastRow - 1);\r\n }\r\n }",
"public void reset() {\n\t\t\twhile (requisitionItemGrid.getColumnCount() > 0)\n\t\t\t\trequisitionItemGrid.removeColumn(0);\n\n\t\t\tbmoRequisitionType = (BmoRequisitionType)requisitionTypeListBox.getSelectedBmObject();\n\t\t\tif (bmoRequisitionType == null)\n\t\t\t\tbmoRequisitionType = bmoRequisition.getBmoRequisitionType();\n\n\t\t\t// Crea las columnas\n\t\t\tsetColumns();\n\n\t\t\tupdateAmount(id);\n\t\t\tdata.list();\n\t\t\trequisitionItemGrid.redraw();\n\t\t}",
"public void resetIsModified() {\n MTBTypesKey_is_modified = false;\n type_is_modified = false;\n description_is_modified = false;\n tableName_is_modified = false;\n columnName_is_modified = false;\n createUser_is_modified = false;\n createDate_is_modified = false;\n updateUser_is_modified = false;\n updateDate_is_modified = false;\n }",
"@Override\n public void resetAllValues() {\n }",
"private void reloadShoppingCarTable() {\n\t\t\r\n\t}",
"private void setNewTable() {\n\n for (List<Entity> list:\n masterList) {\n for (Entity entity :\n list) {\n entity.removeFromWorld();\n }\n list.clear();\n }\n\n gameFacade.setGameTable(gameFacade.newFullPlayableTable(\"asd\",\n 6, 0.5, 2, 2));\n for (Bumper bumper :\n gameFacade.getBumpers()) {\n Entity bumperEntity = factory.newBumperEntity(bumper);\n targets.add(bumperEntity);\n getGameWorld().addEntity(bumperEntity);\n }\n\n for (Target target :\n gameFacade.getTargets()) {\n Entity targetEntity = factory.newTargetEntity(target);\n targets.add(targetEntity);\n getGameWorld().addEntity(targetEntity);\n }\n }",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\r\n this.setTurnoRojo(true);\r\n for (int i = 0; i < tablero.length - 1; i++) {\r\n for (int j = 0; j < tablero[0].length - 1; j++) {\r\n tablero[i][j] = fichaVacia;\r\n }\r\n }\r\n\r\n for (int i = 0; i < tablero[0].length; i++) {\r\n tablero[0][i] = fichaBorde;\r\n tablero[9][i] = fichaBorde;\r\n }\r\n for (int i = 0; i < tablero.length; i++) {\r\n tablero[i][0] = fichaBorde;\r\n tablero[i][10] = fichaBorde;\r\n }\r\n\r\n for (int i = 1; i < 9; i++) {\r\n tablero[1][i + 1] = new Ficha(\"Azul\", i);\r\n tablero[8][9 - i] = new Ficha(\"Rojo\", i);\r\n\r\n }\r\n }",
"public void clearChangeSet()\r\n\t{\n\t\toriginal = new Hashtable(10);\r\n\t\t//System.out.println(\"111111 in clearChangeSet()\");\r\n\t\tins_mov = new Hashtable(10);\r\n\t\tdel_mod = new Hashtable(10);\r\n\r\n\t\tfor (int i = 0; i < seq.size(); i++) {\r\n\t\t\tReplicated elt = (Replicated) seq.elementAt(i);\r\n\t\t\toriginal.put(elt.getObjectID(), elt);\r\n\t\t}\r\n\t}",
"void clearAllItemsTable();",
"public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}",
"public void undoChanges() {\r\n if (getPageDataStoresStatus() == DataStoreBuffer.STATUS_NOT_MODIFIED)\r\n return;\r\n else\r\n _ds.undoChanges(_ds.getRow());\r\n }",
"public void resetPrimKey(){\r\n //Gets headings and resets them\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:resetPrimKey: table is invalid, primary keys not reset\");\r\n return;\r\n }\r\n Vector<String> tempPrimKeyHeading = new Vector<String>();\r\n for(int i : primKeyIndexes){\r\n tempPrimKeyHeading.add(heading.elementAt(i));\r\n }\r\n setPrimKey(tempPrimKeyHeading);\r\n }",
"void prepareTables();",
"@Override\n\tpublic void reset() {\n\t\tfor (int i = 0; i < _board.length; i++)\n for (int j = 0; j < _board[i].length; j++)\n \t_board[i][j] = null;\n\n\t\t_columnFull = new HashSet<Integer>();\n\t\t_lastPosition = new HashMap<Integer,Integer>();\n\t}",
"public void reset() {\n for (int i = 0; i < this.numRows; i++) {\n this.rows[i] = new int[0];\n }\n for (int k = 0; k < this.numCols; k++) {\n this.cols[k] = new IntOpenHashSet();\n }\n }",
"public void undo() {\n\t\tif(committed){\n\t\t\treturn;\n\t\t}\n\t\tboolean [][] tempGrid = grid;\n\t\tgrid = backupGrid;\n\t\tbackupGrid = tempGrid;\n\n\t\tint [] tempWidths = widths;\n\t\twidths = backupWidths;\n\t\tbackupWidths = tempWidths;\n\n\t\tint [] tempHeights = heights;\n\t\theights = backupHeights;\n\t\tbackupHeights = tempHeights;\n\n\t\tint tempMaxColumnHeight = maxColumnHeight;\n\t\tmaxColumnHeight = backupMaxColumnHeight;\n\t\tbackupMaxColumnHeight = tempMaxColumnHeight;\n\n\t\tcommit();\n\t}",
"public void refreshFnkt() {\r\n\t\ttransactionList = refreshTransactions();\r\n\t\tfillTable();\r\n\t}",
"public void resetTables() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_LOGIN, null, null);\n db.close();\n }",
"public void refreshOntTreeTable() {\n\t\tJTree changeTree = ontChangeTT.getTree();\r\n\t\tTreeTableNode rootNode = (TreeTableNode) changeTree.getModel().getRoot();\r\n\t\trootNode.children = new Vector();\r\n\t\tthis.ontChangeEdPane.setText(\"\");\r\n\t\t\r\n\t\t// populate node tree\r\n\t\tfor (Iterator changeIter = ontChanges.iterator(); changeIter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) changeIter.next();\r\n\t\t\t\r\n\t\t\t// skip checkpoint related changes\r\n\t\t\tif (!swc.isCheckpointRelated /*&& swc.isCommitted*/) {\r\n\t\t\t\tTreeTableNode changeNode = new TreeTableNode(swc);\r\n\t\t\t\trootNode.addChild(changeNode);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tontChangeTT.getTree().updateUI();\r\n\t\tthis.refreshUI();\t\t\r\n\t}",
"public void refreshTable() {\r\n\t\t// THIS is the key method to ensure JTable view is synchronized\r\n\t\tjtable.revalidate();\r\n\t\tjtable.repaint();\r\n\t\tthis.revalidate();\r\n\t\tthis.repaint();\r\n\t}",
"public void tableChanged(TableModelEvent e) {\n reallocateIndexes();\n super.tableChanged(e);\n }",
"private void resetAll() // resetAll method start\n\t{\n\t\theader.reset();\n\t\tdebit.reset();\n\t\tcredit.reset();\n\t}",
"private void reset() {\n\t\tdata.clear();\n\t}",
"@Override\n\tpublic void reset() {\n\t\tthis.prepare();\n\t\tsuper.reset();\n\t}",
"public void flushAllTables() {\n\t}",
"public void refreshData() {\r\n\t\tfireTableDataChanged();\r\n\t\tgetTable().tableChanged(new TableModelEvent(this));\r\n\t}",
"public void DoesNeedCleaning() {\n\t\tSystem.out.println(\"Table is being cleaned right now.\");\n\t}",
"public void resetTables(){\r\n try {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n // Delete All Rows\r\n db.delete(User.TABLE_USER_NAME, null, null);\r\n db.close();\r\n }catch(SQLiteDatabaseLockedException e){\r\n e.printStackTrace();\r\n }\r\n }",
"void resetData(ReadOnlyEntryBook newData);",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }",
"private void rehash(){\n\t\tHashTable that = new HashTable(2 * this.table.length);\n\t\tfor (int i = 0; i < this.table.length; i++){\n\t\t\tif (this.table[i] != null){\n\t\t\t\tthat.addRecord(this.table[i].getValue());\n\t\t\t}\n\t\t}\n\t\tthis.table = that.table;\n\t\treturn;\n\t}",
"public void doEmptyTableList() {\n tableList.deleteList();\n }",
"public void readTable() {\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setRowCount(0);\n\n }",
"protected void reset() {\n\t\t}",
"public void resetContactsTable(){\r\n try {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n // Delete All Rows\r\n db.delete(Contacts.TABLE_CONTACTS, null, null);\r\n db.close();\r\n }catch(SQLiteDatabaseLockedException e){\r\n e.printStackTrace();\r\n }\r\n }",
"public void reset() {\n super.reset();\n }",
"public void clearTable() {\n topLeft = new Item(0, \"blank\");\n topCenter = new Item(0, \"blank\");\n topRight = new Item(0, \"blank\");\n left = new Item(0, \"blank\");\n center = new Item(0, \"blank\");\n right = new Item(0, \"blank\");\n bottomLeft = new Item(0, \"blank\");\n bottomCenter = new Item(0, \"blank\");\n bottomRight = new Item(0, \"blank\");\n result = new Item(0, \"blank\");\n index = 0;\n }",
"public void resetAll() {\n reset(getAll());\n }",
"public void normalizeTable() {\r\n for (int i = 0; i < this.getLogicalColumnCount(); i++) {\r\n normalizeColumn(i);\r\n }\r\n }"
] | [
"0.80917007",
"0.7757503",
"0.7250583",
"0.71979105",
"0.71831316",
"0.71731657",
"0.70712197",
"0.7059613",
"0.70436764",
"0.7033844",
"0.69514847",
"0.6941701",
"0.6923219",
"0.6838232",
"0.6776924",
"0.67727786",
"0.6712323",
"0.6672285",
"0.66720587",
"0.66713697",
"0.66269815",
"0.66269535",
"0.66159207",
"0.66133255",
"0.6602692",
"0.65998656",
"0.65916276",
"0.65694195",
"0.65592694",
"0.654012",
"0.65328115",
"0.65221536",
"0.6519736",
"0.6474417",
"0.647354",
"0.6473537",
"0.64338595",
"0.6433336",
"0.64041346",
"0.6390305",
"0.6374927",
"0.636356",
"0.6363461",
"0.6363021",
"0.6362618",
"0.63543975",
"0.63384634",
"0.63233715",
"0.6317021",
"0.6300713",
"0.62960505",
"0.6292394",
"0.6286278",
"0.6265184",
"0.6264049",
"0.62589103",
"0.6250669",
"0.62479585",
"0.62415665",
"0.6239625",
"0.6236185",
"0.62261283",
"0.6219024",
"0.6218632",
"0.62142015",
"0.6207334",
"0.62048304",
"0.62019587",
"0.6193401",
"0.61881864",
"0.61800754",
"0.61744285",
"0.6171232",
"0.6162483",
"0.61585116",
"0.6151085",
"0.61475194",
"0.6144511",
"0.6141067",
"0.6126071",
"0.6116029",
"0.6115545",
"0.61114115",
"0.61086136",
"0.60916",
"0.609043",
"0.6081188",
"0.60811126",
"0.60811126",
"0.60811126",
"0.60811126",
"0.60789776",
"0.6076371",
"0.6072933",
"0.60676104",
"0.6061656",
"0.60589874",
"0.60567045",
"0.6056114",
"0.60502154",
"0.604688"
] | 0.0 | -1 |
Set the ShowThumbNail property. | public void setShowThumbNail(boolean value) {
getChart().setShowThumb(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setThumbnail(boolean thumbnail);",
"public void setThumb( final int value ) {\n \tcheckWidget();\n \tif( value >= 1 ) {\n thumb = value;\n }\n \tif( value >= maximum - minimum ) {\n \t thumb = maximum - minimum;\n \t selection = minimum;\n \t}\n }",
"void setThumbSizeX(long thumbSizeX);",
"public void setUpperThumbEnabled(boolean upperThumbEnabled) {\n this.upperThumbEnabled = upperThumbEnabled;\n }",
"public void setThumbUrl(String thumbUrl) {\r\n this.thumbUrl = thumbUrl;\r\n }",
"public void setThumbsDown(int v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_thumbsDown == null)\n jcasType.jcas.throwFeatMissing(\"thumbsDown\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setIntValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_thumbsDown, v);}",
"public void setLowerThumbEnabled(boolean lowerThumbEnabled) {\n this.lowerThumbEnabled = lowerThumbEnabled;\n }",
"public boolean isLowerThumbEnabled() {\n return lowerThumbEnabled;\n }",
"public boolean isUpperThumbEnabled() {\n return upperThumbEnabled;\n }",
"public void setThumbsUp(int v) {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_thumbsUp == null)\n jcasType.jcas.throwFeatMissing(\"thumbsUp\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n jcasType.ll_cas.ll_setIntValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_thumbsUp, v);}",
"void setThumbSizeY(long thumbSizeY);",
"void setThumbnail(Bitmap thumbnail) {\n\t\tthis.mThumbnail = thumbnail;\n\t}",
"public void setThumbnail(String thumbnail) {\r\n String old = this.thumbnail;\r\n this.thumbnail = thumbnail;\r\n this.changeSupport.firePropertyChange(\"thumbnail\", old, thumbnail );\r\n }",
"public void setPreview(Drawable drawable) {\n m_thumbnail.setImageDrawable(drawable);\n crossFadeThumbnail();\n }",
"public String getThumbUrl() {\r\n return thumbUrl;\r\n }",
"public void setThumbnailUrl(String url) {\n this.thumbnailUrl = url;\n }",
"private void scanningThumbInit() {\n scanningThumb.setVisibility(GONE);\n }",
"public void setShowNarration(boolean showNarration)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SHOWNARRATION$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SHOWNARRATION$18);\n }\n target.setBooleanValue(showNarration);\n }\n }",
"public void setThumbnail(String thumbnail) {\r\n\t\tthis.thumbnail = thumbnail;\r\n\t}",
"private void setThumbsUpLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n thumbsUpLabel_ = value;\n }",
"public boolean isSetThumbnailUrl() {\n return this.thumbnailUrl != null;\n }",
"public String getThumbPhotoLink() {\n return fullPhoto.getThumbPhotoLink();\n }",
"public Builder setThumbsUpLabel(\n java.lang.String value) {\n copyOnWrite();\n instance.setThumbsUpLabel(value);\n return this;\n }",
"public void configure(T aView) { aView.setType(ThumbWheel.TYPE_RADIAL); aView.setPrefSize(120,16); }",
"@Override\n\tpublic void setTensileShows(Boolean paramBoolean)\n\t{\n\n\t}",
"public void xsetShowNarration(org.apache.xmlbeans.XmlBoolean showNarration)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SHOWNARRATION$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SHOWNARRATION$18);\n }\n target.set(showNarration);\n }\n }",
"private void showImage(String thumbnailURL) {\n if ( ! TextUtils.isEmpty(thumbnailURL)) {\n Picasso.with(getContext())\n .load(thumbnailURL)\n .placeholder(R.drawable.ic_image)\n .error(R.drawable.ic_broken_image)\n .into(mStepThumbnailImageView);\n }\n }",
"public void setDrawThumb(Color color) {\n mStrokePaint.setColor(color);\n drawThumbColor = color;\n }",
"public Builder clearThumbsDownLabel() {\n copyOnWrite();\n instance.clearThumbsDownLabel();\n return this;\n }",
"public String getThumbnailUrl() {\n return this.thumbnailUrl;\n }",
"private void setThumbsDownLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n thumbsDownLabel_ = value;\n }",
"public Builder clearThumbsUpLabel() {\n copyOnWrite();\n instance.clearThumbsUpLabel();\n return this;\n }",
"public void setShowHBar(Boolean aValue)\n {\n if (aValue==_showHBar) return;\n firePropChange(ShowHBar_Prop, _showHBar, _showHBar=aValue);\n }",
"@Override\n protected Dimension getMaximumThumbSize()\n {\n return new Dimension(size, size);\n }",
"@Override\n protected Dimension getMaximumThumbSize()\n {\n return new Dimension(size, size);\n }",
"public void setPreview(Bitmap bitmap) {\n m_thumbnail.setImageBitmap(bitmap);\n crossFadeThumbnail();\n }",
"public Builder setThumbsDownLabel(\n java.lang.String value) {\n copyOnWrite();\n instance.setThumbsDownLabel(value);\n return this;\n }",
"Builder addThumbnailUrl(String value);",
"@Override\n public void setShowGridLines(boolean showGridLines) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.SHOW_GRID_LINESQ_, new Boolean (showGridLines));\n }",
"protected void setPic() {\n }",
"public void setImageVisible(boolean aFlag) {\n this.pictureBox.setVisible(aFlag);\n }",
"public void setShowLink(boolean showLink) {\r\n this.showLink = showLink;\r\n }",
"boolean isThumbnail();",
"public void setShowToolTip( boolean showToolTip )\n {\n this.showToolTip = showToolTip;\n }",
"public boolean addThumbNailInfo(Bitmap thumbnail, int type, String name) {\n\t\tif (thumbnail != null && (type == 0 || type == 1) && name != null) {\n\t\t\tmThumbnail = thumbnail;\n\t\t\tmType = type;\n\t\t\tmName = name;\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void setShowHover(boolean h)\n {\n showHover = h;\n }",
"protected boolean setSkipToPage(int num) {\n\t\tif (mControlView != null) {\n\t\t\tString result = \"\";\n\t\t\tint currentPos = num;\n\t\t\tint count = getTotalPage();\n\t\t\tif (currentPos > 0 && count > 0 && num <= count) {\n\t\t\t\tresult = currentPos + \"/\" + count;\n\t\t\t\tmControlView.setPhotoTimeType(result);\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public void setTrainThumbnail(String trainThumbnail) {\r\n this.trainThumbnail = trainThumbnail == null ? null : trainThumbnail.trim();\r\n }",
"public void togglePreview(boolean visible) {\n m_thumbnail.setVisibility(visible ? View.VISIBLE : View.GONE);\n m_spinner.setVisibility(!visible ? View.VISIBLE: View.GONE);\n }",
"public void updateThumbnail(ExifInterface exif) {\n if (exif.hasThumbnail()) {\n this.mActivity.getCameraAppUI().updatePeekThumbUri(null);\n this.mActivity.getCameraAppUI().updatePeekThumbBitmapWithAnimation(exif.getThumbnailBitmap());\n }\n }",
"private void setUpVideoThumbnail() {\n Pictures pictures = video.getPictures();\n if (pictures != null) {\n List<Size> sizes = pictures.getSizes();\n if (sizes != null && sizes.size() > 0) {\n Size size = sizes.get(sizes.size() - 1);\n if (size != null) {\n String link = size.getLink();\n if (!TextUtils.isEmpty(link)) {\n Glide.with(getActivity())\n .load(link)\n// .placeholder(R.drawable.ic_placeholder)\n// .error(R.drawable.ic_error)\n .into(videoThumbnailImageView);\n }\n }\n }\n }\n }",
"@NonNull\n public String getThumbnailUrl() {\n return thumbnailUrl;\n }",
"public static boolean thumbNailExists(Egg egg, String size) {\n\t\tString path = getThumbnailUriString(egg, size);\n\t\treturn new File(path).exists();\n\t}",
"Builder addThumbnailUrl(URL value);",
"public void setShowGrid(boolean value) {\n\t\tthis.showGrid = value;\n\t}",
"public void setNoOfImages(int noOfImages) {\n this.noOfImages = noOfImages;\n }",
"String getThumbnailUrl() {\n\t\treturn this.mThumbnailUrl;\n\t}",
"public void onPostExecute(TE te) {\n if (te != null) {\n PhotoModule.this.mAppController.getCameraAppUI().updatePeekThumbUri(null);\n PhotoModule.this.mAppController.getCameraAppUI().updatePeekThumbBitmap(te.bitmap);\n }\n }",
"public String getThumbnailUrl();",
"public void setImage25D(boolean b) {\r\n do25D = b;\r\n }",
"public void setVpnForDisplay(Boolean vpnForDisplay) {\n this.vpnForDisplay = vpnForDisplay;\n }",
"public String getThumbnail() {\r\n return thumbnail;\r\n }",
"public void setPreview(boolean preview) {\r\n this.preview = preview;\r\n }",
"public static void verifyThumbNailImages(WebDriver driver, int cardNumber) {\n FindElement.waitForElementXpath(driver, \"(//div[@class = 'spectrum-modal-container']//spectrum-cms-fallback-img//img[contains(@src,'.png')])[\" + cardNumber + \"]\", \"TV modal thumbnail image \" + cardNumber +\"\" );\n }",
"public String getThumbnail() {\r\n\t\treturn thumbnail;\r\n\t}",
"public void setShowGestureLine(boolean show) {\n this.mShowGestureLine = show;\n postInvalidate();\n }",
"private void setPhotoAttcher() {\n\n }",
"public void setThumbColor(Color thumbColor) {\n this.mThumbColor = thumbColor;\n this.mPressedThumbColor = mThumbColor;\n invalidate();\n }",
"@NonNull\n public Builder setDisplayPicture(@Nullable Uri displayPicture) {\n require(displayPicture, nullOr(isWebUri()));\n mProtoBuilder.displayPictureUri = extractString(displayPicture);\n return this;\n }",
"public void setShowDetails( boolean showDetails ) {\n this.showDetails = showDetails;\n details.setVisible(showDetails);\n }",
"public void unsetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(SHOWNARRATION$18);\n }\n }",
"private void showPreview() {\n Glide.with(this)\n .load(imageUri)\n .into(imagePreview);\n imagePreviewLayout.setVisibility(View.VISIBLE);\n imageOriginOptionsLayout.setVisibility(View.GONE);\n }",
"public void setUnselectedImageVisible( final boolean visible ) {\n checkWidget();\n if( showUnselectedImage != visible ) {\n showUnselectedImage = visible;\n updateItems();\n }\n }",
"public void hideMultipleImages(boolean hide){\n this.hideMultipleImages = hide;\n }",
"public int getThumb() {\n \tcheckWidget();\n \treturn thumb;\n }",
"public boolean hasThumbnails()\n {\n return hasImages(thumbnails);\n }",
"public void setShowFilename(boolean showFilename) {\n\t\tthis.showFilename = showFilename;\n\t}",
"@Override\n protected Dimension getMinimumThumbSize()\n {\n return new Dimension(size, size);\n }",
"@Override\n protected Dimension getMinimumThumbSize()\n {\n return new Dimension(size, size);\n }",
"public String thumbprint() {\n return this.thumbprint;\n }",
"public void setMakeImage(boolean value) {\n this.makeImage = value;\n }",
"@Override\n public void setShowTips(boolean showFlag) {\n mesoCfgXML.setTipsOption(showFlag);\n }",
"long getThumbSizeX();",
"public void setDisplayed(boolean show);",
"public void setShowVBar(Boolean aValue)\n {\n if (aValue==_showVBar) return;\n firePropChange(ShowVBar_Prop, _showVBar, _showVBar=aValue);\n }",
"public void setImage25D(boolean flag) {\r\n image25D = flag;\r\n }",
"public void setVisible(boolean newVal) {\n if (newVal != visible) {\n visible = newVal;\n listeners.firePropertyChange(PROPERTY_VISIBLE, !visible, visible);\n }\n }",
"public void showTurtle(int toShow) \n\t{\n\t\tmyTurtle.setVisibility(toShow);\n\t\tupdateTurtleOnView();\n\t}",
"public Image getShowImage() {\n\t\treturn showImage;\n\t}",
"public void setShowNodes(Boolean value) {\n showNodes = value;\n }",
"public boolean supportsThumbIsa() {\r\n return isArm();\r\n }",
"public void show() {\n hidden = false;\n }",
"public final void setShowCustomEditorButton(boolean val) {\n if (getProperty() != null) {\n Property p = getProperty();\n Boolean explicit = (Boolean) p.getValue(\"suppressCustomEditor\"); //NOI18N\n\n if (explicit != null) {\n val = explicit.booleanValue();\n System.err.println(\"Found explicit value: \" + val);\n }\n }\n\n if (showCustomEditorButton != val) {\n showCustomEditorButton = val;\n replaceInner();\n }\n }",
"public void setVisible(boolean val)\r\n\t{\r\n\t\t_isOn = val;\r\n\t}",
"private void changeToPhotoIdleView(boolean bl) {\n this.changeLayoutTo(DefaultLayoutPattern.PREVIEW);\n if (!this.isHeadUpDesplayReady()) {\n return;\n }\n super.changeScreenButtonImage(BaseFastViewFinder.HeadUpDisplaySetupState.PHOTO_STANDBY, false);\n if (bl) {\n this.mFocusRectangles.clearExceptTouchFocus();\n } else {\n this.mFocusRectangles.onUiComponentRemoved();\n }\n this.mFocusRectangles.onRecordingStop();\n if (this.mCameraDevice.getCameraId() == 0) {\n super.setSceneIndicatorVisibleAllNotificationIndicators(1);\n }\n this.getBaseLayout().showLeftIconContainer();\n this.setOrientation(this.getOrientation());\n }",
"@Override\n\tprotected void calculateThumbSize() {\n\t\tsuper.calculateThumbSize();\n\t\trec_upp.setSize(thumbRect.width, thumbRect.height );\n\t}",
"private void showImageDetail() {\n }",
"private void clearThumbsDownLabel() {\n \n thumbsDownLabel_ = getDefaultInstance().getThumbsDownLabel();\n }",
"public void setNumpad5(boolean numpad5) {\n\tthis.numpad5 = numpad5;\n }",
"public void setVisibleDetails(int n) {\n mController.setVisibleDetails(n);\n }"
] | [
"0.6420161",
"0.58586776",
"0.5772845",
"0.57616335",
"0.5700734",
"0.5666051",
"0.5653997",
"0.5577864",
"0.55259436",
"0.5469505",
"0.53524935",
"0.5311353",
"0.52901596",
"0.5269304",
"0.51909924",
"0.5112458",
"0.5105061",
"0.5088429",
"0.50561386",
"0.49374497",
"0.4936641",
"0.49274865",
"0.48886305",
"0.487319",
"0.48619303",
"0.4848076",
"0.48118967",
"0.47938675",
"0.47878277",
"0.47838277",
"0.47813696",
"0.47603357",
"0.47584742",
"0.47528866",
"0.47528866",
"0.4732859",
"0.47146916",
"0.47071686",
"0.47059408",
"0.4702093",
"0.46955723",
"0.4684658",
"0.46743882",
"0.4673126",
"0.46711242",
"0.46563038",
"0.46542805",
"0.46490094",
"0.46476412",
"0.4634818",
"0.46170357",
"0.4599326",
"0.4595731",
"0.45946267",
"0.4592202",
"0.45765755",
"0.45726228",
"0.45630753",
"0.45591697",
"0.45571357",
"0.4554925",
"0.45524657",
"0.4535979",
"0.453346",
"0.4525082",
"0.45236173",
"0.45112726",
"0.45079446",
"0.45031235",
"0.4487109",
"0.44806597",
"0.44746304",
"0.44676852",
"0.4457819",
"0.4454681",
"0.44521868",
"0.44514644",
"0.4450362",
"0.4450362",
"0.44490135",
"0.44295323",
"0.44237894",
"0.4423658",
"0.44075608",
"0.44023752",
"0.43943173",
"0.43835554",
"0.43811852",
"0.43737072",
"0.43718553",
"0.43675837",
"0.43673408",
"0.43664142",
"0.43592787",
"0.43530777",
"0.435048",
"0.43490797",
"0.4343592",
"0.43423483",
"0.43391356"
] | 0.8445084 | 0 |
Set the ShowTable property. | public void setShowTable(boolean value) {
showTable = value;
if (tablePanel != null) {
tablePanel.setVisible(showTable);
tablePanel.invalidate();
tablePanel.validate();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getShowTable() {\n return showTable;\n }",
"public void ShowTable() {\n\t\tupdateTable();\n\t\ttableFrame.setVisible(true);\n\t\t\n\t}",
"public void visibility(boolean state){ this.table.setVisible(state);}",
"public void showTable() {\n JTable table = new JTable();\n table.setModel(this);\n JFrame frame = new JFrame(name);\n frame.add(new JScrollPane(table), BorderLayout.CENTER);\n frame.pack();\n frame.setVisible(true);\n frame.setSize(800, 500);\n }",
"public void show() {\r\n\t\ttry {\r\n\t\t\tdisplayTable();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Show Table SQL Exception: \" + e.getMessage());\r\n\t\t}\r\n\t}",
"public void setVisible(boolean b) {\n if (b) {\n loadTable();\n }\n }",
"public void showTable() {\n frame = new JFrame(\"Interactive Table\");\n\n //Create and set up the content pane.\n this.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"public void setShowColumn(Boolean value) {\n this.showColumn = value;\n }",
"private void showTableControl()\r\n {\r\n debug(\"showTableControl() \");\r\n int index = tabPane.getSelectedIndex();\r\n JTable table = (JTable) tableVector.elementAt(index);\r\n this.setStatusBar(\"Showing table control panel for table[\" + index + \"]\");\r\n HGTableControlPanel.showTableControlsDialog(frame, table, false);\r\n debug(\"showTableControl() - complete\");\r\n }",
"public void setTableData()\n\t{\n\t\tsetTableData(false);\n\t}",
"public void displayTable() {\n\t\tcontent.addComponent(tableDisplay.getGrid());\n\t\tthis.removeStyleName(\"fr_map_component_no_table\");\n\t}",
"public void setTableBarVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_tableBar_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_tableBar_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setTableBarVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"@attribute(value = \"\", required = false)\r\n\tpublic void setPrintCreateTable(Boolean printCreateTable) {\r\n\t\tthis.printCreateTable = printCreateTable;\r\n\t}",
"public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}",
"public static String getShowTableStatement() {\n return SHOW_TABLE_STATEMENT;\n }",
"public void setTable(String aValue) {\n String oldValue = table;\n table = aValue;\n changeSupport.firePropertyChange(\"table\", oldValue, aValue);\n }",
"public void setShowGrid( boolean showGrid )\n {\n this.showGrid = showGrid;\n if ( treeTable != null )\n {\n treeTable.setShowGrid( showGrid );\n }\n }",
"public void setTable(Table table) {\r\n this.table = table;\r\n if (table == null) {\r\n setX(-1);\r\n setY(-1);\r\n setHead(NONE);\r\n setActivated(false);\r\n }\r\n }",
"public void setTable(Table table)\n {\n this.table = table;\n }",
"public void show() {\n if(heading.isEmpty()) {\r\n System.out.println(\"Error:Table:show:no data in heading, nothing to show\");\r\n return;\r\n }\r\n if(rows.isEmpty()) {\r\n System.out.println(\"Error:Table:show:no data in rows, nothing to show\");\r\n return;\r\n }\r\n for(String h : heading) {\r\n System.out.print(h + \" | \");\r\n }\r\n System.out.println(\"\");\r\n Set<String> keys = rows.keySet();\r\n for(String k : keys) {\r\n rows.get(k).show();\r\n System.out.println(\"\");\r\n }\r\n System.out.println(\"\");\r\n }",
"public void setTable(Map<String, VoogaData> properties) {\n\t\tthis.properties = properties;\n\t\tdisplayTable();\n\t}",
"TableView ShowTablePerson() {\n\n personTable = new TableView();\n showPerson();\n\n return this.personTable;\n }",
"public void showAvailTable() {\n if (availDay.getDate() != null) {\n availTable.setVisible(true);\n } \n else {\n showNoDateMess();\n };\n }",
"public void hideAvailTable() {\n availTable.setVisible(false);\n }",
"public void displayTable() {\n System.out.print(\"\\nSpreadsheet Table Details :\\nRows : \" + rowHeaders + \"\\nColumns:\" + colHeaders);\n new SheetParser(tableData).displaySheet();\n }",
"public void setDisplayTables( String displayTables )\n {\n this.displayTables = displayTables;\n }",
"public DisplayTable() {\n initComponents();\n }",
"public void setColumnHeaderVisible(boolean show) {\n\t\ttableViewer.getTable().setHeaderVisible(show);\n\t}",
"private void createTable(GTViewSet viewSet)\r\n\t{\r\n\t\tString[] columnNames = {\r\n\t\t\tRB.getString(\"gui.dialog.NBSelectTraitsPanel.traitsColumn\"),\r\n\t\t\tRB.getString(\"gui.dialog.NBSelectTraitsPanel.experimentColumn\"),\r\n\t\t\tRB.getString(\"gui.dialog.NBSelectTraitsPanel.showColumn\")\r\n\t\t};\r\n\r\n\t\tArrayList<Trait> traits = viewSet.getDataSet().getTraits();\r\n\r\n\t\tint[] selected = null;\r\n\t\tif (mode == SelectTraitsDialog.HEATMAP_TRAITS)\r\n\t\t\tselected = viewSet.getTraits();\r\n\t\telse\r\n\t\t\tselected = viewSet.getTxtTraits();\r\n\r\n\t\tObject[][] data = new Object[traits.size()][3];\r\n\r\n\t\tfor (int i = 0; i < data.length; i++)\r\n\t\t{\r\n\t\t\tdata[i][0] = traits.get(i).getName();\r\n\t\t\tdata[i][1] = traits.get(i).getExperiment();\r\n\r\n\t\t\t// Search the current list of visible traits to see if this trait\r\n\t\t\t// is one of them. If it is, enable it in the table\r\n\t\t\tboolean show = false;\r\n\t\t\tfor (int j = 0; j < selected.length; j++)\r\n\t\t\t\tif (selected[j] == i)\r\n\t\t\t\t\tshow = true;\r\n\r\n\t\t\tdata[i][2] = show;\r\n\t\t}\r\n\r\n\t\ttable.setModel(new DefaultTableModel(data, columnNames)\r\n\t\t{\r\n\t\t\tpublic Class getColumnClass(int c) {\r\n\t\t\t\treturn getValueAt(0, c).getClass();\r\n\t\t\t}\r\n\r\n\t\t\t// Column 1 contains the tickboxes, and must be editable\r\n\t\t\tpublic boolean isCellEditable(int row, int col) {\r\n\t\t\t\treturn col == 2;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(10);\r\n\r\n\t\tTableRowSorter<DefaultTableModel> sorter = new TableRowSorter<>((DefaultTableModel)table.getModel());\r\n\t\ttable.setRowSorter(sorter);\r\n\t}",
"private void displayAllTable() {\n\n nhacungcap = new NhaCungCap();\n nhacungcap.setVisible(true);\n jDestopTable.add(nhacungcap);\n\n thuoc = new SanPham();\n thuoc.setVisible(true);\n jDestopTable.add(thuoc);\n\n khachHang = new KhachHang();\n khachHang.setVisible(true);\n jDestopTable.add(khachHang);\n\n hoaDon = new HoaDon();\n hoaDon.setVisible(true);\n jDestopTable.add(hoaDon);\n\n }",
"public void setShowVerticalLines(boolean show) {\r\n calendarTable.setShowVerticalLines(show);\r\n }",
"TableView ShowTableLuggage() {\n\n tableview = new TableView();\n showLuggageL();\n\n return this.tableview;\n }",
"public void setShowHorizontalLines(boolean show) {\r\n calendarTable.setShowHorizontalLines(show);\r\n }",
"@Override\n\tpublic void setVisible(boolean arg0) {\n\n\t\tlistRestoreSelectedModel.removeAllElements();\n\t\tlistBackupAllTablesModel.removeAllElements();\n\t\tlistRestoreupAllTablesModel.removeAllElements();\n\t\tlistBackupSelectedModel.removeAllElements();\n\t\tgetLabelFileOperationStatus().setText(\"Status: Idle\");\n\t\tif (arg0)\n\t\t\tpopulateAvailableTables();\n\n\t\tsuper.setVisible(arg0);\n\t}",
"public void initTable() {\n this.table.setSelectable(true);\n this.table.setImmediate(true);\n this.table.setWidth(\"100%\");\n this.table.addListener(this);\n this.table.setDropHandler(this);\n this.table.addActionHandler(this);\n this.table.setDragMode(TableDragMode.ROW);\n this.table.setSizeFull();\n\n this.table.setColumnCollapsingAllowed(true);\n // table.setColumnReorderingAllowed(true);\n\n // BReiten definieren\n this.table.setColumnExpandRatio(LABEL_ICON, 1);\n this.table.setColumnExpandRatio(LABEL_DATEINAME, 3);\n this.table.setColumnExpandRatio(LABEL_DATUM, 2);\n this.table.setColumnExpandRatio(LABEL_GROESSE, 1);\n this.table.setColumnExpandRatio(LABEL_ACCESS_MODES, 1);\n this.table.setColumnHeader(LABEL_ICON, \"\");\n }",
"private void displayTable() throws SQLException {\r\n\t\tframe = new JFrame();\r\n\t\tframe.add(prepareTable(), BorderLayout.CENTER);\r\n\t\tframe.setMinimumSize(new Dimension(880, 0));\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}",
"private void onShowTableDetail(ViewNodeJSO viewNode) { \n TableTools.createDataProvider(viewNode).addDataDisplay(cellTable);\n }",
"public void tableViewSetup() {\n nameColumn.setCellValueFactory(new PropertyValueFactory<>(\"Name\"));\n productTable.getColumns().add(nameColumn);\n\n manuColumn.setCellValueFactory(new PropertyValueFactory<>(\"Manufacturer\"));\n productTable.getColumns().add(manuColumn);\n\n typeColumn.setCellValueFactory(new PropertyValueFactory<>(\"Type\"));\n productTable.getColumns().add(typeColumn);\n }",
"private void initTable() {\n \t\t// init table\n \t\ttable.setCaption(TABLE_CAPTION);\n \t\ttable.setPageLength(10);\n \t\ttable.setSelectable(true);\n \t\ttable.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);\n \t\ttable.setColumnCollapsingAllowed(true);\n \t\ttable.setColumnReorderingAllowed(true);\n \t\ttable.setSelectable(true);\n \t\t// this class handles table actions (see handleActions method below)\n \t\ttable.addActionHandler(this);\n \t\ttable.setDescription(ACTION_DESCRIPTION);\n \n \t\t// populate Toolkit table component with test SQL table rows\n \t\ttry {\n \t\t\tQueryContainer qc = new QueryContainer(\"SELECT * FROM employee\",\n \t\t\t\t\tsampleDatabase.getConnection());\n \t\t\ttable.setContainerDataSource(qc);\n \t\t} catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\t// define which columns should be visible on Table component\n \t\ttable.setVisibleColumns(new Object[] { \"FIRSTNAME\", \"LASTNAME\",\n \t\t\t\t\"TITLE\", \"UNIT\" });\n \t\ttable.setItemCaptionPropertyId(\"ID\");\n \t}",
"@RestrictTo(RestrictTo.Scope.LIBRARY)\n public void setShowActionRow(boolean show) {\n mShowActions = show;\n updateActions();\n }",
"public void setTable(javax.swing.JTable aTable) {\r\n\t\tjavax.swing.JTable oldTable = table;\r\n\t\tif (oldTable == aTable)\r\n\t\t\treturn;\r\n\t\tif (oldTable != null)\r\n\t\t\toldTable.getSelectionModel().removeListSelectionListener((ListSelectionListener) this);\r\n\t\tthis.table = aTable;\r\n\t\tif (aTable != null) {\r\n\t\t\taTable.setModel(this);\r\n\t\t\taTable.getSelectionModel().addListSelectionListener((ListSelectionListener) this);\r\n\t\t}\r\n\t}",
"private void setUpTable()\n {\n //Setting the outlook of the table\n bookTable.setColumnReorderingAllowed(true);\n bookTable.setColumnCollapsingAllowed(true);\n \n \n bookTable.setContainerDataSource(allBooksBean);\n \n \n //Setting up the table data row and column\n /*bookTable.addContainerProperty(\"id\", Integer.class, null);\n bookTable.addContainerProperty(\"book name\",String.class, null);\n bookTable.addContainerProperty(\"author name\", String.class, null);\n bookTable.addContainerProperty(\"description\", String.class, null);\n bookTable.addContainerProperty(\"book genres\", String.class, null);\n */\n //The initial values in the table \n db.connectDB();\n try{\n allBooks = db.getAllBooks();\n }catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n db.closeDB();\n allBooksBean.addAll(allBooks);\n \n //Set Visible columns (show certain columnes)\n bookTable.setVisibleColumns(new Object[]{\"id\",\"bookName\", \"authorName\", \"description\" ,\"bookGenreString\"});\n \n //Set height and width\n bookTable.setHeight(\"370px\");\n bookTable.setWidth(\"1000px\");\n \n //Allow the data in the table to be selected\n bookTable.setSelectable(true);\n \n //Save the selected row by saving the change Immediately\n bookTable.setImmediate(true);\n //Set the table on listener for value change\n bookTable.addValueChangeListener(new Property.ValueChangeListener()\n {\n public void valueChange(ValueChangeEvent event) {\n \n }\n\n });\n }",
"protected void setTableDesc(boolean bool)\n\t\t{\n\t\t\tDesc = bool ;\n\t\t}",
"public String getDisplayTables()\n {\n return displayTables;\n }",
"public static void displayTableTitle()\r\n {\n }",
"private void fillTableWithLinkResult(List<LinkSimulationResult> results, boolean showAsTimeSerie) {\n\n TableView<LinkSimulationResult> table = new TableView<>();\n table.getItems().addAll(results);\n\n TableColumn<LinkSimulationResult,String> idOrTimeCol;\n TableColumn<LinkSimulationResult,String> flowCol = new TableColumn<>(\"Flow\");\n TableColumn<LinkSimulationResult,String> velocityCol = new TableColumn<>(\"Velocity\");\n TableColumn<LinkSimulationResult,String> headlossCol = new TableColumn<>(\"Headloss\");\n TableColumn<LinkSimulationResult,String> statusCol = new TableColumn<>(\"Status\");\n\n if (!showAsTimeSerie){\n idOrTimeCol = new TableColumn<>(\"Node ID\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getId()));\n } else {\n idOrTimeCol = new TableColumn<>(\"Time\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getTimeString()));\n }\n flowCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getFlow())));\n velocityCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getVelocity())));\n headlossCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getHeadloss())));\n statusCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getStatus().getName()));\n\n table.getColumns().clear();\n table.getColumns().addAll(idOrTimeCol, flowCol, velocityCol, headlossCol, statusCol);\n\n this.tablePane.getChildren().clear(); // remove the previus table\n this.tablePane.getChildren().addAll(table);\n }",
"public TableForm() {\n initComponents();\n \n setMyTable();\n }",
"public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }",
"public void setTable(DefaultTable table) {\n\t\t\r\n\t}",
"private void PintaTabla() {\n panel.getTablaClientes().setModel(tabla);\n panel.getTablaClientes().getColumnModel().getColumn(0).setPreferredWidth(0);\n panel.getTablaClientes().getColumnModel().getColumn(0).setMaxWidth(0);\n panel.getTablaClientes().getColumnModel().getColumn(0).setMinWidth(0);\n panel.getPanelTabla().setViewportView(panel.getTablaClientes());\n }",
"private void callSetLayerPreviewTable() {\n \t\t\t\t\t\t\tfor(String key : columnUnits.keySet()) {\r\n \t\t\t\t\t\t\t\tString units = columnUnits.get(key);\r\n \t\t\t\t\t\t\t\tcolumnDescriptions.put(key, columnDescriptions.get(key) + \" (\" + units + \")\");\r\n \t\t\t\t\t\t\t}\t\t\r\n \t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\tview.setLayerPreviewTable(layerPreviewFinal.getRows(), columnDisplayOrder, columnDescriptions, columnUnits);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t}",
"public TableEx() {\r\n setStyleName(\"gwtEx-Table\");\r\n rf = getRowFormatter();\r\n this.addClickHandler(tableClickTable);\r\n }",
"public void print() {\r\n this.table.printTable();\r\n }",
"public void setContents(DebugTable debugTable) {\r\n _debugTable = debugTable ;\r\n fireTableStructureChanged() ;\r\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setTable(String table) {\r\n\t\tthis.table = table;\r\n\t}",
"public MostrarDatosJTable() {\n\t\t// Configuracion del JFrame\n\t\tthis.setLayout(null);\n\t\tthis.setSize(340, 260);\n\t\tthis.setTitle(\" Ejemplo de JScrollPane \");\n\t\tconfigurarJScrollPane();\n\t}",
"public static void display(String showTableString) {\n ArrayList<String> commandTokens = new ArrayList<String>(Arrays.asList(showTableString.split(\" \")));\n if(commandTokens.get(1).equals(\"tables\")){\n \tMetaDataHandler md = new MetaDataHandler();\n \tmd.displayListOfTables();\n }\n else if(commandTokens.get(1).equals(\"columns\")){\n \tMetaDataHandler md = new MetaDataHandler();\n \tmd.displayListOfColumns();\n }\n else{\n \tSystem.out.println(\"Not a valid command\");\n }\n }",
"public void setShowGrid(boolean value) {\n\t\tthis.showGrid = value;\n\t}",
"public TableObject()\r\n {\r\n\tsuper(ObjectType.Table);\r\n\tglobal = false;\r\n }",
"public void setTableToDefault() {\n TableColumnModel tcm = table.getColumnModel();\n\n for (int i = 0; i < msbQTM.getColumnCount(); i++) {\n tcm.getColumn(i).setPreferredWidth(-1);\n }\n\n table.setColumnModel(tcm);\n }",
"public Complementos() {\n initComponents();\n String cabecera []={\"Producto\",\"Precio\"};\nString datos[][]={};\nboolean t=true;\nboolean f=false;\nmodelo = new Tablachida(datos,cabecera);\ntabla.setModel(modelo);\nTableColumnModel columnModel = tabla.getColumnModel();\ncolumnModel.getColumn(0).setPreferredWidth(250);\ntabla.setRowHeight(40);\n\n }",
"public Boolean getShowColumn() {\n return this.showColumn;\n }",
"private void Table()\n{\n Object [] Kolom = {\"Nama\", \"No. Telp\", \"Kota Asal\"};\n Table = new DefaultTableModel(null, Kolom);\n Tabel.setModel(Table);\n}",
"public void printTable() {\r\n System.out.println(frame+\") \");\r\n for (int y = 0; y < table.length; y++) {\r\n System.out.println(Arrays.toString(table[y]));\r\n }\r\n frame++;\r\n }",
"public void setTable(RedDevelopmentCardTable table) {\n this.table = table;\n }",
"public void setTable(TableCaracteristique tab) {\n this.table = tab;\n }",
"private void changeToScanTable() {\n\t\tswitch (fileType) {\n\t\tcase INVENTORY:\n\t\t\ttableView.setItems(presentationInventoryData);\n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\ttableView.setItems(presentationInitialData);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttableView.getColumns().clear();\n\t\t\tbreak;\n\t\t} // End switch statement\n\t}",
"private void srediTabelu() {\n ModelTabeleStavka mts = new ModelTabeleStavka();\n mts.setLista(n.getLista());\n tblStavka.setModel(mts);\n }",
"public void setShown(boolean shown){\r\n this.shown = shown;\r\n }",
"public void setVisible(boolean visible);",
"void setVisible(boolean visible);",
"void setVisible(boolean visible);",
"public void toggleTable(View view) {\n\t\tagentsArray.notifyDataSetChanged();\n\t}",
"public table() {\n initComponents();\n }",
"private void initializeTable()\n {\n mTable = new ListView(mData);\n mTable.setPrefSize(200, 250);\n mTable.setEditable(false);\n }",
"public void setShowIndex(Boolean showIndex) {\n this.showIndex = showIndex;\n }",
"public void displayTimesTable() {\n if (table >= TABLE_MIN && table <= TABLE_MAX) {\n System.out.println(table + \" times table:\");\n for (int i=1; i <= TABLE_MAX; ++i) {\n System.out.printf(\"%2d X %2d = %3d\\n\",\n i, table, timesTables[table][i]);\n } // close for\n }\n else\n System.out.println(table + \" is not between \" +\n TABLE_MIN + \" and \" + TABLE_MAX);\n }",
"private void setFormVisible(boolean value){\r\n vb_form.setVisible(value); //Establece el estado grafico del formulario\r\n// if(value){ //Si el estado es visible entonces \r\n// vb_table.relocate(30, 439);\r\n// vb_table.setPrefHeight(133);\r\n// }else{\r\n// vb_table.relocate(30, 64);\r\n// vb_table.setPrefHeight(508);\r\n// }\r\n }",
"public void setVisible(Boolean visible);",
"public void setVisible(boolean v) {\n }",
"public static String getShowCreateTableStatement() {\n return SHOW_CREATE_TABLE_STATEMENT;\n }",
"public void activate()\n {\n this.setBackground(GUIConstants.TABLE_COLOR);\n repaint();\n }",
"public void showTables(){\n\t\tSchema schemaTable = Schema.getSchemaInstance();\n\t\tString currentSchemaName = schemaTable.getCurrentSchema();\n\n\t\ttry{\n\t\t\tArrayList<String> tableList = new ArrayList<String>();\n\n\t\t\tRandomAccessFile tableFile = new RandomAccessFile(\"information_schema.table.tbl\",\"rw\");\n\n\t\t\twhile(tableFile.getFilePointer() < tableFile.length()){\n\t\t\t\tString readSchemaName = \"\";\n\t\t\t\tString readTableName = \"\";\n\n\t\t\t\t//Looks for matching schema name\n\t\t\t\tbyte varcharLength = tableFile.readByte();\n\t\t\t\tfor(int j = 0; j < varcharLength; j++)\n\t\t\t\t\treadSchemaName += (char)tableFile.readByte();\n\n\t\t\t\tbyte varcharTableLength = tableFile.readByte();\n\t\t\t\tfor(int k = 0; k < varcharTableLength; k++)\n\t\t\t\t\treadTableName += (char)tableFile.readByte();\n\t\t\t\t//Looks for matching table name\n\t\t\t\tif(readSchemaName.equals(currentSchemaName)){\t\n\t\t\t\t\ttableList.add(readTableName);\n\t\t\t\t}\n\t\t\t\t//To skip the number of rows part\n\t\t\t\ttableFile.readLong();\n\t\t\t}\n\n\t\t\tif(tableList.size() != 0){\n\t\t\t\t//Printing current Tables in the schema\n\t\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\t\tSystem.out.println(\"Table_in_\" + currentSchemaName);\n\t\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\t\tfor(int i = 0; i < tableList.size() ; i++)\n\t\t\t\t\tSystem.out.println(tableList.get(i));\n\t\t\t\tSystem.out.println(\"------------------------------------------------\");\n\n\t\t\t\t//Clearing table list contents\n\t\t\t\ttableList.removeAll(tableList);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Empty Set...\");\n\t\t\t}\n\n\t\t\t//Closing the file\n\t\t\ttableFile.close();\n\t\t}catch(FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void showNewTableaux() {\n System.out.println(\"Nowa tablica simpleksowa: \");\n DecimalFormat df = new DecimalFormat(\"0.00\");\n for (double[] row : tableaux) {\n for (double element : row) {\n System.out.print(df.format(element) + \"\\t\");\n }\n System.out.println();\n }\n double valueObjectiveFunction = tableaux[numberOfVariables][numberOfConstraints + numberOfVariables];\n System.out.println(\"Wartość funkcji celu = \" + df.format(valueObjectiveFunction));\n for (int i = 0; i < numberOfVariables; i++)\n if (basisVariables[i] < numberOfConstraints)\n System.out.println(\"x\"\n + basisVariables[i]\n + \" = \"\n + df.format(tableaux[numberOfVariables][numberOfConstraints + i]));\n }",
"public ARCTable() {\n initComponents();\n table = new MyJTable();\n tableScrollPane.setViewportView(table);\n }",
"public void view() {\r\n\t\tfor (int i = 0; i < this.getTableNumber(); i++) {\r\n\t\t\tthis.getTables(i).view();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public void setDisplayed(boolean show);",
"public void setVisible(boolean val);",
"@Override\n\tpublic void configTable() {\n\t\tString[][] colNames = { { \"Name\", \"name\" }, { \"Ward No\", \"wardNo\" }, { \"Max. patients\", \"maxPatients\" }, { \"No of Patients\", \"patientCount\" },\n\t\t\t\t{ \"No of Employees\", \"employeeCount\" }};\n\n\t\tfor (String[] colName : colNames) {\n\t\t\tTableColumn<Ward, String> col = new TableColumn<>(colName[0]);\n\t\t\tcol.setCellValueFactory(new PropertyValueFactory<>(colName[1]));\n\t\t\ttable.getColumns().add(col);\n\t\t}\n\n\t\ttable.setItems(tableData);\n\t\t\n\t}",
"public JTable getTable() { return viewTable;}",
"public void displayNoTable() {\n\t\tcontent.removeComponent(tableDisplay.getGrid());\n\t\tthis.addStyleName(\"fr_map_component_no_table\");\n\t}",
"private void fillTableWithNodeResult(List<NodeSimulationResult> results, boolean showAsTimeSerie) {\n TableView<NodeSimulationResult> table = new TableView<>();\n table.getItems().clear();\n table.getItems().addAll(results);\n TableColumn<NodeSimulationResult,String> idOrTimeCol;\n TableColumn<NodeSimulationResult,String> demandCol = new TableColumn<>(\"Demand\");\n TableColumn<NodeSimulationResult,String> headCol = new TableColumn<>(\"Head\");\n TableColumn<NodeSimulationResult,String> pressureCol = new TableColumn<>(\"Pressure\");\n TableColumn<NodeSimulationResult,String> qualityCol = new TableColumn<>(\"Quality\");\n\n if (!showAsTimeSerie){\n idOrTimeCol = new TableColumn<>(\"Node ID\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getId()));\n } else {\n idOrTimeCol = new TableColumn<>(\"Time\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getTimeString()));\n }\n demandCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getDemand())));\n headCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getHead())));\n pressureCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getPressure())));\n qualityCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getQuality())));\n\n table.getColumns().clear();\n table.getColumns().addAll(idOrTimeCol, demandCol, headCol, pressureCol, qualityCol);\n this.tablePane.getChildren().clear(); // remove the previus table\n this.tablePane.getChildren().addAll(table);\n }",
"public Controlador(boolean newTable){\n if(newTable){\n vocabulario = new TSB_OAHashtable<>();\n }\n }",
"public void setShowDisplaySlotPanel(boolean b) {\r\n\r\n }",
"public int setTable(int table) {\n if (table >= TABLE_MIN && table <= TABLE_MAX) {\n this.table = table;\n return this.table;\n }\n else {\n System.out.println(table + \" is not between \" +\n TABLE_MIN + \" and \" + TABLE_MAX);\n return -1;\n }\n }",
"private void setTable() {\n try {\n DefaultTableModel dtm = (DefaultTableModel) table.getModel();\n dtm.setRowCount(0);\n ArrayList<Item> itemList = ItemController.getAllItem();\n if (itemList != null) {\n for (Item item : itemList) {\n String qoh = BatchController.getQOH(item.getCode());\n if (qoh != null) {\n if (item.getRol() >= Integer.valueOf(qoh)) {\n Object row[] = {item.getCode(), item.getDesciption(), item.getRol(), qoh};\n dtm.addRow(row);\n }\n }\n\n }\n }\n if (dtm.getRowCount() == 0) {\n JOptionPane.showMessageDialog(this, \"Stock level is above ROL\");\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(ROL.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(ROL.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void renderArticleTable(){\r\n\t\tarticleTable.setContainerDataSource(loadLatestArticles());\r\n\t\tif(articleDto.isEmpty()){\r\n\t\t\tlabel.setVisible(true);\r\n\t\t\tarticleTable.setVisible(false);\r\n\t\t}else {\r\n\t\t\tlabel.setVisible(false);\r\n\t\t\tarticleTable.setVisible(true);\r\n\t\t}\r\n\t}",
"private void llenarTabla() {\n\t\t// TODO Auto-generated method stub\n\t\tif (gestionando.equals(\"Empleado\")) {\n\t\t\ttry {\n\t\t\t\tObservableList<PersonaObservable> empleados = administradorDelegado.listarEmpleadosObservables();\n\t\t\t\ttable.setItems(empleados);\n\t\t\t\tcolumnCedula.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"cedula\"));\n\t\t\t\tcolumnNombre.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"nombre\"));\n\t\t\t\tcolumnApellidos.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"apellido\"));\n\t\t\t\tcolumnTelefono.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"telefono\"));\n\t\t\t\ttable.getColumns().setAll(columnCedula, columnNombre, columnApellidos, columnTelefono);\n\t\t\t\ttable.setPrefWidth(450);\n\t\t\t\ttable.setPrefHeight(300);\n\t\t\t\ttable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n\n\t\t\t\ttable.getSelectionModel().selectedIndexProperty().addListener(new RowSelectChangeListener());\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else if (gestionando.equals(\"Recolector\")) {\n\t\t\ttry {\n\t\t\t\tObservableList<PersonaObservable> recolectores = administradorDelegado.listarRecolectoresObservables();\n\t\t\t\ttable.setItems(recolectores);\n\t\t\t\tcolumnCedula.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"cedula\"));\n\t\t\t\tcolumnNombre.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"nombre\"));\n\t\t\t\tcolumnApellidos.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"apellido\"));\n\t\t\t\tcolumnTelefono.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"telefono\"));\n\t\t\t\ttable.getColumns().setAll(columnCedula, columnNombre, columnApellidos, columnTelefono);\n\t\t\t\ttable.setPrefWidth(450);\n\t\t\t\ttable.setPrefHeight(300);\n\t\t\t\ttable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n\n\t\t\t\ttable.getSelectionModel().selectedIndexProperty().addListener(new RowSelectChangeListener());\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"public QLDSV() {\n initComponents();\n this.setLocationRelativeTo(null);\n cn = ConnectSQL.ketnoi(\"FPL_DAOTAO\");\n model = (DefaultTableModel) tblShow.getModel();\n loadData();\n display(0);\n tblShow.setRowSelectionInterval(0, 0);\n\n }",
"private void createTable() {\n\t\tfreqTable = new TableView<>();\n\n\t\tTableColumn<WordFrequency, Integer> column1 = new TableColumn<WordFrequency, Integer>(\"No.\");\n\t\tcolumn1.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"serialNumber\"));\n\n\t\tTableColumn<WordFrequency, String> column2 = new TableColumn<WordFrequency, String>(\"Word\");\n\t\tcolumn2.setCellValueFactory(new PropertyValueFactory<WordFrequency, String>(\"word\"));\n\n\t\tTableColumn<WordFrequency, Integer> column3 = new TableColumn<WordFrequency, Integer>(\"Count\");\n\t\tcolumn3.setCellValueFactory(new PropertyValueFactory<WordFrequency, Integer>(\"count\"));\n\n\t\tList<TableColumn<WordFrequency, ?>> list = new ArrayList<TableColumn<WordFrequency, ?>>();\n\t\tlist.add(column1);\n\t\tlist.add(column2);\n\t\tlist.add(column3);\n\n\t\tfreqTable.getColumns().addAll(list);\n\t}"
] | [
"0.78654635",
"0.75400454",
"0.67798835",
"0.67411643",
"0.6695104",
"0.663486",
"0.6590844",
"0.6479933",
"0.6468962",
"0.62586474",
"0.624408",
"0.62429714",
"0.6081598",
"0.6080342",
"0.60734993",
"0.6046355",
"0.60276246",
"0.6026256",
"0.6021737",
"0.5949195",
"0.5938423",
"0.5930538",
"0.5889384",
"0.5887249",
"0.585145",
"0.583632",
"0.5801348",
"0.5772089",
"0.57671374",
"0.57302487",
"0.57238936",
"0.5710937",
"0.5646224",
"0.56440544",
"0.56316304",
"0.5631519",
"0.56191546",
"0.56072307",
"0.56058806",
"0.5575645",
"0.5559557",
"0.5493791",
"0.54874265",
"0.54473734",
"0.5434421",
"0.54326624",
"0.5422794",
"0.54219025",
"0.54033065",
"0.5401532",
"0.53948027",
"0.5392097",
"0.5386216",
"0.5360103",
"0.5357966",
"0.535511",
"0.5340364",
"0.5339975",
"0.53366196",
"0.5335147",
"0.5332829",
"0.53309685",
"0.5323802",
"0.53217584",
"0.530158",
"0.5299612",
"0.5283662",
"0.52800447",
"0.5275158",
"0.5274528",
"0.52661353",
"0.52661353",
"0.52630717",
"0.5254248",
"0.52425385",
"0.524044",
"0.5235645",
"0.52346",
"0.5229603",
"0.5227967",
"0.5223455",
"0.5222016",
"0.52220076",
"0.52210253",
"0.52153784",
"0.52070904",
"0.5206113",
"0.52049184",
"0.52045226",
"0.52010083",
"0.51956576",
"0.51940984",
"0.5192741",
"0.5187942",
"0.51853424",
"0.51713914",
"0.5167926",
"0.5166526",
"0.5163765",
"0.5155946"
] | 0.83293694 | 0 |
Get the ShowTable property. | public boolean getShowTable() {
return showTable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getShowTableStatement() {\n return SHOW_TABLE_STATEMENT;\n }",
"public String getDisplayTables()\n {\n return displayTables;\n }",
"public FRTableDisplay getTableDisplay() {\n\t\treturn tableDisplay;\n\t}",
"public void setShowTable(boolean value) {\n showTable = value;\n if (tablePanel != null) {\n tablePanel.setVisible(showTable);\n tablePanel.invalidate();\n tablePanel.validate();\n }\n }",
"public String getTable() {\n return table;\n }",
"public String getTable() {\n return table;\n }",
"public void ShowTable() {\n\t\tupdateTable();\n\t\ttableFrame.setVisible(true);\n\t\t\n\t}",
"public Table getTable() { return this.table; }",
"public String getTable()\n {\n return table;\n }",
"public Boolean getShowColumn() {\n return this.showColumn;\n }",
"public TablePanel getTable() \n\t{\n\t\treturn table;\n\t}",
"TableView ShowTablePerson() {\n\n personTable = new TableView();\n showPerson();\n\n return this.personTable;\n }",
"public Table getTable() {\n return table;\n }",
"public Table getTable() { \n\t\treturn this.table; \n\t}",
"public TableViewer getTableViewer() {\n return viewer;\n }",
"public Table getTable() {\n return table;\n }",
"public Table getTable() {\n\t\treturn table;\n\t}",
"public JTable getTable() { return viewTable;}",
"public static String getShowCreateTableStatement() {\n return SHOW_CREATE_TABLE_STATEMENT;\n }",
"public void show() {\r\n\t\ttry {\r\n\t\t\tdisplayTable();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Show Table SQL Exception: \" + e.getMessage());\r\n\t\t}\r\n\t}",
"public final Table getTable()\n {\n return table;\n }",
"public static TableLayout getTable(){return table;}",
"public int getVisinaTable() {\n\t\treturn this.visinaTable;\n\t}",
"public final String getTableMode() {\n\t\treturn tableMode;\n\t}",
"Table getTable();",
"public XSSFTable getTable() {\n return table;\n }",
"public JTable getTableau() {\n\t\treturn this.liste;\n\t}",
"public void showTable() {\n JTable table = new JTable();\n table.setModel(this);\n JFrame frame = new JFrame(name);\n frame.add(new JScrollPane(table), BorderLayout.CENTER);\n frame.pack();\n frame.setVisible(true);\n frame.setSize(800, 500);\n }",
"TableType getTableType()\n {\n return tableType;\n }",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"public String table() {\n return tableName;\n }",
"public String table() {\n return tableName;\n }",
"public TableReference getTable() {\r\n return table;\r\n }",
"TableView ShowTableLuggage() {\n\n tableview = new TableView();\n showLuggageL();\n\n return this.tableview;\n }",
"public String getNombreTabla() {\r\n\t\treturn nombreTabla;\r\n\t}",
"public String getSelectedTable() {\n\t\treturn selectedTable;\n\t}",
"public String getTabledesc() {\n return tabledesc;\n }",
"public String getNomTable();",
"public String getTableId() {\n return this.tableId;\n }",
"public String getTableId() {\n return this.tableId;\n }",
"public JTable getTableFrise() {\r\n\t\treturn tableFrise;\r\n\t}",
"protected KDTable getTableForPrintSetting() {\n\t\treturn tblMain;\n\t}",
"public String getTableCode() {\n return tableCode;\n }",
"public void showTable() {\n frame = new JFrame(\"Interactive Table\");\n\n //Create and set up the content pane.\n this.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"public String getTableKey() {\n return tableKey;\n }",
"protected boolean getTableDesc()\n\t\t{\n\t\t\treturn Desc ;\n\t\t}",
"public MyTable getMyTable() {\n\t\treturn myTable;\n\t}",
"public Boolean getIsShow() {\n return isShow;\n }",
"public String getTableData() {\r\n return tableData;\r\n }",
"public JTable getTablePregleFilijale() {\n\t\treturn tablePregleFilijale;\n\t}",
"public TableInfo getTableInfo() {\r\n\t\treturn ti;\r\n\t}",
"private String getTableName() {\n return this.tableName;\n }",
"public int getTableNumber() {\r\n\t\treturn tableNumber;\r\n\t}",
"public int getNumTable() {\n\t\treturn numTable;\n\t}",
"public String getTableFile() \n\t{\n\t return tableFile ;\n\t}",
"private void showTableControl()\r\n {\r\n debug(\"showTableControl() \");\r\n int index = tabPane.getSelectedIndex();\r\n JTable table = (JTable) tableVector.elementAt(index);\r\n this.setStatusBar(\"Showing table control panel for table[\" + index + \"]\");\r\n HGTableControlPanel.showTableControlsDialog(frame, table, false);\r\n debug(\"showTableControl() - complete\");\r\n }",
"public Boolean getIsShow () {\r\n\t\treturn isShow;\r\n\t}",
"public void setShowColumn(Boolean value) {\n this.showColumn = value;\n }",
"public boolean isTableEditable() {\n return tableEditable;\n }",
"private HashMap<Long, String> getTable() {\n return table;\n }",
"@Basic( optional = false )\r\n\t@Column( name = \"table_name\", nullable = false, length = 50 )\r\n\tpublic String getTableName() {\r\n\t\treturn this.tableName;\r\n\t\t\r\n\t}",
"public String getTableName() {\n return this.tableName;\n }",
"public void visibility(boolean state){ this.table.setVisible(state);}",
"public Boolean getShowIndex() {\n return showIndex;\n }",
"public final String getTableName() {\n\t\treturn wTableName;\n\t}",
"public String[] getTabla() {\r\n\t\treturn tabla;\r\n\t}",
"public String getTableName() {\n return this.tableName;\n }",
"public String getTableName() {\n return this.tableName;\n }",
"@VTID(11)\r\n boolean getVisibleInPivotTable();",
"public Long getTABLE_ID() {\n return TABLE_ID;\n }",
"public String getTablename() {\n return tablename;\n }",
"public TableReference getFromTable() {\r\n return fromTable;\r\n }",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"public Boolean getDisplay() {\n return display;\n }",
"@Override\r\n public String toString() {\r\n StringBuilder cad = new StringBuilder(\"\");\r\n cad.append(\"\\nTabla: {\\n\");\r\n for (int i = 0; i < this.table.length; i++) {\r\n if(this.table[i] == null){\r\n cad.append(\"\\t()\\n\");\r\n }else{\r\n cad.append(\"\\t\").append(this.table[i].toString()).append(\"\\n\");\r\n }\r\n }\r\n cad.append(\"}\");\r\n return cad.toString();\r\n }",
"public int getPropertyShowMode()\n {\n return propertyShowMode;\n }",
"public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}",
"@Override\n public java.util.List<Table> getTablesList() {\n return tables_;\n }",
"public boolean getShowVerticalLines() {\r\n return calendarTable.getShowVerticalLines();\r\n }",
"public String getDrivingTableName();",
"public TableUI getTableUI() {\n return tableUI;\n }",
"public String getTable() {\n StringBuilder table = new StringBuilder();\n\n table.append(\" \");\n for (int i = 0; i < matrix.length; i++) {\n table.append(\" \");\n table.append(i + 1);\n }\n table.append(\"\\n\");\n\n for (int i = 0; i < matrix.length; i++) {\n table.append(i + 1);\n table.append(\" \");\n\n for (int j = 0; j < matrix.length; j++) {\n table.append(matrix[i][j] ? 1 : 0);\n table.append(\" \");\n }\n table.append(\"\\n\");\n }\n table.append(\"\\n\");\n\n return table.toString();\n }",
"public DataTableCollection tables() {\r\n return _tables;\r\n }",
"public javax.accessibility.AccessibleTable getAccessibleTable() {\n return this;\n }",
"public boolean getShowGrid() {\n\t\treturn this.showGrid;\n\t}",
"public List<String> tables() {\n return this.tables;\n }",
"public String getTableName() {\n return tableName; \n }",
"public String getTableCaption() {\n return \"The table title\";\n }",
"public String getTableName() {\n return tableName;\n }",
"public String getTableName() {\n return tableName;\n }",
"java.util.List<Table>\n getTablesList();",
"public char[][] getTabla() {\n\t\treturn this.tabla;\n\t}",
"public String getTableName() {\n return tableName;\n }",
"public String getTableName() {\n return tableName;\n }",
"String getTableName();",
"public String getTableName() {\n return getTableName(false, false, false, false);\n }",
"public String getStationTableName() {\n return stationTableName;\n }",
"private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public Map<String, String> getTable() {\n return map; // TODO\n }",
"public String getSourceTable();"
] | [
"0.73524433",
"0.6984811",
"0.6872683",
"0.680992",
"0.6655944",
"0.664997",
"0.6635594",
"0.6626887",
"0.65995145",
"0.6536417",
"0.6523568",
"0.6514579",
"0.64886427",
"0.6480851",
"0.64702785",
"0.6431029",
"0.6406711",
"0.63948226",
"0.63223565",
"0.63208073",
"0.62186766",
"0.6204527",
"0.618987",
"0.6069788",
"0.60643935",
"0.602419",
"0.6021091",
"0.60107064",
"0.6008638",
"0.59866923",
"0.5981632",
"0.5981632",
"0.59736437",
"0.5966606",
"0.5929132",
"0.5925673",
"0.5906084",
"0.58961815",
"0.5888931",
"0.5888931",
"0.5887599",
"0.5886309",
"0.58815795",
"0.58813274",
"0.58790463",
"0.58681625",
"0.58579564",
"0.5842822",
"0.5834208",
"0.5831044",
"0.57977974",
"0.57976604",
"0.577328",
"0.57711506",
"0.57656443",
"0.5761626",
"0.5757479",
"0.57534903",
"0.57425267",
"0.57421064",
"0.5729253",
"0.5723127",
"0.5722462",
"0.5717263",
"0.57144827",
"0.5707027",
"0.57065344",
"0.57065344",
"0.57013893",
"0.5683144",
"0.5680096",
"0.56747717",
"0.5658474",
"0.5658305",
"0.56534415",
"0.56347406",
"0.5631469",
"0.5628343",
"0.5620412",
"0.56027913",
"0.55965304",
"0.55924815",
"0.55749905",
"0.5569545",
"0.5564276",
"0.5557593",
"0.55563694",
"0.55516124",
"0.5549751",
"0.5549751",
"0.5545559",
"0.5543969",
"0.5542529",
"0.5542529",
"0.55425096",
"0.5528463",
"0.55227566",
"0.55207306",
"0.55201036",
"0.55169356"
] | 0.8921447 | 0 |
Set the Infos property. | public void setInfos(List value) {
infos = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setInfo(int i)\r\n\t{\r\n\t\tinfo = i;\r\n\t}",
"public final void setInfo(Info info)\n {\n this.info = info;\n }",
"public void setInfo(String i)\n {\n info = i;\n }",
"public void setInfo(Object o) {\n info = o;\n }",
"@Override\r\n\tpublic void setInfo(Object datos) {\n\t\t\r\n\t}",
"@Override\n public void setInfo(String s) {\n this.info = s;\n\n }",
"public void setInfo (int n)\n\t\t{\n\t\t\tinfo = n ;\n\t\t}",
"protected void setInfoFile(String[] info){\n\n }",
"public void setInfo(String info) {\n this.info = info;\n }",
"public void setInfo(java.util.Map<java.lang.String,java.util.List<java.lang.String>> value) {\n this.info = value;\n }",
"boolean setInfo();",
"public void setInfoWindow(MarkerInfoWindow infoWindow){\n\t\tmInfoWindow = infoWindow;\n\t}",
"private void updateInfoValues() {\n menuPanel.updateInfoPanel( tugCount, simulation.getShipsOnSea(), simulation.getShipsDocked(), simulation.getShipsTugged());\n }",
"public org.ga4gh.models.CallSet.Builder setInfo(java.util.Map<java.lang.String,java.util.List<java.lang.String>> value) {\n validate(fields()[6], value);\n this.info = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"private void setPlayerInformations() {\n\t\t\t\n\t\t\t\n\t\t}",
"public void setInfo(final URL info) {\n this.info = info;\n }",
"public void updateInfo() {\n\t}",
"public List getInfos() {\n return infos;\n }",
"protected abstract void updateInfos();",
"public void set_infos_metadata(short[] value) {\n for (int index0 = 0; index0 < value.length; index0++) {\n setElement_infos_metadata(index0, value[index0]);\n }\n }",
"public void setInformation(String information);",
"public void setOnInfoListener(OnInfoListener onInfoListener) {\n synchronized (this) {\n this.mOnInfoListener = onInfoListener;\n if (onInfoListener != null) {\n this.createListeners();\n }\n return;\n }\n }",
"public List<Info> getInfos() {\n\treturn mInfos;\n }",
"public void setInfoText(String infoText);",
"@Override\n\tpublic void setUpInfoPanel() {\n\t\t\n\t}",
"public void setPointsInfo(PointsInfo[] pointsInfo) {\n this.pointsInfo = pointsInfo;\n }",
"public void setInfos(List<Mensaje> mensajes) {\r\n\t\tthis.infos = mensajes;\r\n\t}",
"public void setHouseInfo(HouseInfo[] houseInfo) {\n this.houseInfo = houseInfo;\n }",
"void setUserInfo(UserInfo info);",
"public void setInfo(InformationField i)\n\tthrows SdpException {\n\tif (i == null)\n\t throw new SdpException(\"The info is null\");\n\tthis.informationField = i;\n }",
"public ArrayList<String[]> getInfos()\n {\n return (this.infos);\n }",
"public int getInfoCount() {\n return info_.size();\n }",
"@Override\n\tpublic boolean isInfoEnabled() {\n\t\treturn false;\n\t}",
"public Info() {\n super();\n }",
"public void setInfoId(java.lang.String infoId) {\n this.infoId = infoId;\n }",
"public void setCarInfo(CarInfo[] carInfo) {\n this.carInfo = carInfo;\n }",
"public void setExtraInfo(String[] extraInfo) {\n this.extraInfo = extraInfo;\n this.bextraInfo = true;\n }",
"private void initInfo(Map<String, String> _info) {\n this.jlCPU.setText(_info.get(\"Model\"));// FIXME may be very long name\n this.jlCores.setText(_info.get(\"TotalCores\"));\n this.jlVendor.setText(_info.get(\"Vendor\"));\n this.jlFrequency.setText(_info.get(\"Mhz\") + \" MHz\");\n this.jlRAM.setText(_info.get(\"Free\").substring(0, 3) + \" / \" + _info.get(\"Ram\") + \" MB\");\n this.jlHostname.setText(_info.get(\"HostName\"));\n this.jlIP.setText(_info.get(\"IP\"));\n this.jlGateway.setText(_info.get(\"DefaultGateway\"));\n this.jlPrimDNS.setText(_info.get(\"PrimaryDns\"));\n }",
"public InfoOptions() {\n\t\tHelpOpt = new ArrayList<String>();\n\t\tDisplayOpt = new ArrayList<String>();\n\t\tNoteOpt = new ArrayList<String>();\n\t\tDelOpt = new ArrayList<String>();\n\t\tChangeNameOpt = new ArrayList<String>();\n\t\tsetDisplay();\n\t\tsetHelp();\n\t\tsetNote();\n\t\tsetDel();\n\t\tsetChangeName();\n\t}",
"public void set_infos_type(int value) {\n setUIntBEElement(offsetBits_infos_type(), 16, value);\n }",
"public void setFamilyInfo(FamilyInfo[] familyInfo) {\n this.familyInfo = familyInfo;\n }",
"public void setInfo_json(String info_json) {\n this.info_json = info_json;\n }",
"public void setExtraInfo (String info) {\n\tthis.extraInfo = info;\n }",
"public void setMyInfo( String toSet ) {\n\t\tmyScoreField.setText( toSet );\n\t}",
"public void setInfo(String info) {\n this.info = info == null ? null : info.trim();\n }",
"public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }",
"protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}",
"public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }",
"public HashMap<Integer, ArrayList<String>> getInfo() {\n\t\treturn infoList;\n\t}",
"@RestrictTo(RestrictTo.Scope.LIBRARY)\n public void setClickInfo(int[] info) {\n mClickInfo = info;\n }",
"private void setInfoPanel()\r\n {\r\n //set up info panel\r\n unitPanel.setPlayer(worldPanel.getCurrentPlayer());\r\n\t\t\t\tunitPanel.setYear(year);\r\n int tempUnit = worldPanel.getCurrentUnit();\r\n\r\n if(worldPanel.getCurrentPlayer() == 1)\r\n {\r\n unitPanel.setImageIcon(worldPanel.player1.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player1.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player1.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player1.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n else\r\n {\r\n unitPanel.setImageIcon(worldPanel.player2.units[tempUnit - 1].getImage());\r\n unitPanel.setAttack(worldPanel.player2.units[tempUnit - 1].getAttack());\r\n unitPanel.setDefence(worldPanel.player2.units[tempUnit - 1].getDefence());\r\n unitPanel.setMovement(worldPanel.player2.units[tempUnit - 1].getMovementsLeft());\r\n }\r\n }",
"public void setContactInfo(ContactInfo[] contactInfo) {\n this.contactInfo = contactInfo;\n }",
"public void setLocationInfo(Location locationInfo) {\n\tthis.locationInfo = locationInfo;\n}",
"public void setClientInfo(ClientInfo clientInfo) {\n this.clientInfo = clientInfo;\n }",
"private void setUsefulURLsInfo () {\n infoList = new ArrayList<> ();\n\n\n // item number 1\n\n Info info = new Info ();// this class will help us to save data easily !\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism.com\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help you identify the level of Autism of a patient ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://stackoverflow.com/\");\n\n infoList.add (info); //adding item 1 to list\n\n\n // item number 2\n info = new Info ();// save the second Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"We Can help solve Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.androidauthority.com/\");\n\n infoList.add (info);//adding item number 2 to list\n\n\n // item 3\n info = new Info ();// save the third Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Say no for Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an article about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://developer.android.com/index.html\");\n infoList.add (info);// adding item 3 to list\n\n\n displayInfo (infoList);\n\n }",
"public String setInfo() {\n\t\treturn \"There is no parameter\";\r\n\t}",
"public void setBaseInfo(BaseInfo baseInfo) {\n this.baseInfo = baseInfo;\n }",
"private void setInfo(String info) {\n TextView textView = (TextView) findViewById(R.id.info);\n textView.setText(info);\n }",
"public void setMovieData(MovieInfo[] movieInfoData) {\n mMovieInfoData = movieInfoData;\n notifyDataSetChanged();\n }",
"public void setCardInfo(CardInfo[] cardInfo) {\n this.cardInfo = cardInfo;\n }",
"@Override\n\tpublic void seCargoListaInfos(ArrayList<Info> infos) {\n\t\t\n\t}",
"public Builder setInfo(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n info_ = value;\n onChanged();\n return this;\n }",
"public void set_infos_noise(int[] value) {\n for (int index0 = 0; index0 < value.length; index0++) {\n setElement_infos_noise(index0, value[index0]);\n }\n }",
"@Override\n public String getInfo(){\n return info;\n }",
"public void setInfoTableName(String name)\n\t{\n\t\tm_infosTableName = name;\n\t}",
"public void addInfo(Info info) {\n\tmInfos.add(info);\n }",
"public void setResult_Weather_Information(YahooWeatherInformation info){\n this.Result_Weather_Information=info;\n }",
"public void info() {\n\t\tstate.info();\n\t}",
"public Object getInfo() {\n return info;\n }",
"public void set_info() {\n System.out.println(\"The name of the donor is \" + donor_name);\n System.out.println(\"The rating of the donor is \" + donor_rating); //display\n }",
"public void setPIInfo(PIInfo newValue) {\n PIInfo oldValue = _piInfo;\n _piInfo = newValue;\n firePropertyChange(PI_INFO_PROP, oldValue, newValue);\n }",
"public String getInfo() {\n return info;\n }",
"@Override\n\tprotected void setupInfoKeys()\n\t{\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\n\t}",
"public void setLocationInfo(boolean locationInfo) {\n this.locationInfo = locationInfo;\n }",
"public InfoBar(){\n infoBar.setFont(textFont);\n infoBar.setColor(textColor);\n }",
"public Informations() {\n initComponents();\n \n Affichage();\n }",
"public void setSongInfoList(ArrayList<SongInfo> list)\n {\n songInfos = list;\n }",
"public void initInfoSystem(){\r\n infoSys = new FedInfoSystem();\r\n subscriberList = new ConcurrentHashMap<String, List>();\r\n //singleCptNodes = new ArrayList<String>();\r\n //infoServiceRequest(\"CPT-UPDATE\", null);\r\n //infoServiceRequest(\"REQ-UPDATE\", null);\r\n }",
"public boolean isInfoEnabled();",
"public String getInfo()\n {\n return info;\n }",
"public void setUserInfo(UserInfo userInfo) {\r\n this.userInfo = userInfo;\r\n }",
"public void setPageInfo(PageInfo pageInfo) {\n this.pageInfo = pageInfo;\n }",
"public void setInformation(String information) {\n this.mInformation = information;\n }",
"public void setOnInfoListener(IMediaPlayer.OnInfoListener l) {\n mOnInfoListener = l;\n }",
"protected final void setExtraInfo(final String info) {\n\t\tif (info == null) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid extra info\");\n\t\t}\n\t\textras = info;\n\t}",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public void setLogfileInfo(LogfileInfo info) {\n logfileInfo = info;\n }",
"public void setRallyInfo(RallyInfo rallyInfo) {\r\n\t\tthis.rallyInfo = rallyInfo;\r\n\t}",
"@Override\r\n\tpublic InfoApi getInfoApi() {\r\n\t\treturn this;\r\n\t}",
"private void setInfoPlayers() {\n\n\t\t//PLAYER 1\n\t\tlblPlayer1name.setText(players.get(0).getName());\n\t\tlblCashP1.setText(\"\" + players.get(0).getMoney());\n\t\tlblBuildP1.setText(\"\" + players.get(0).getNumberBuildings());\n\t\tlblPropP1.setText(\"\" + players.get(0).getOwnproperties().size());\n\t\tlblPosP1.setText(\"\"+ players.get(0).getPosition());\n\n\t\t//PLAYER 2\n\t\tlblPlayer2name.setText(players.get(1).getName());\n\t\tlblCashP2.setText(\"\" + players.get(1).getMoney());\n\t\tlblBuildP2.setText(\"\" + players.get(1).getNumberBuildings());\n\t\tlblPropP2.setText(\"\" + players.get(1).getOwnproperties().size());\n\t\tlblPosP2.setText(\"\"+ players.get(1).getPosition());\n\t\t\n\t\tif(players.size() > 2){\n\t\t\t//PLAYER 3\n\t\t\tlblPlayerName3.setText(players.get(2).getName());\n\t\t\tlblCashP3.setText(\"\" + players.get(2).getMoney());\n\t\t\tlblBuildP3.setText(\"\" + players.get(2).getNumberBuildings());\n\t\t\tlblPropP3.setText(\"\" + players.get(2).getOwnproperties().size());\n\t\t\tlblPosP3.setText(\"\"+ players.get(2).getPosition());\n\n\t\t\tif(players.size() > 3){\n\t\t\t\t//PLAYER 4\n\t\t\t\tlblPlayerName4.setText(players.get(3).getName());\n\t\t\t\tlblCashP4.setText(\"\" + players.get(3).getMoney());\n\t\t\t\tlblBuildP4.setText(\"\" + players.get(3).getNumberBuildings());\n\t\t\t\tlblPropP4.setText(\"\" + players.get(3).getOwnproperties().size());\n\t\t\t\tlblPosP4.setText(\"\"+ players.get(3).getPosition());\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void setPathInfo(String pathInfo) {\n this.pathInfo = pathInfo;\n }",
"public String getInfo() {\n return this.info;\n }",
"public void setSrcInfo(SyncInstanceInfo SrcInfo) {\n this.SrcInfo = SrcInfo;\n }",
"public InfoPanel() {\n setPreferredSize(new Dimension(500, 860));\n }",
"@Override\n public String getInfo() {\n return this.info;\n }",
"private InformationManager() {\n\t\tlives = ConfigurationManager.getConfigurationManager().getConfiguration().getLives();\n\t\tshields = ConfigurationManager.getConfigurationManager().getConfiguration().getShields();\n\t}",
"public void setObjGameInfo(GameInfo objGameInfo) {\n this.objGameInfo = objGameInfo;\n Pintu.setObjGameInfo(objGameInfo);\n Penjaga.setObjGameInfo(objGameInfo);\n\n for (Item objItem : arrItem) {\n objItem.setObjGameInfo(objGameInfo);\n }\n }",
"public void setTheirInfo( String toSet ) {\n\t\ttheirScoreField.setText( toSet );\n\t}",
"public int getInfo()\r\n\t{\r\n\t\treturn info;\r\n\t}",
"public void setInfo(String nombre, String apellidos, String telefono,\n String direccion) {\n _nombre = nombre;\n _apellidos = apellidos;\n _telefono = telefono;\n _direccion = direccion;\n }"
] | [
"0.7050137",
"0.7030637",
"0.69661254",
"0.669266",
"0.66428924",
"0.6637943",
"0.65795684",
"0.6544991",
"0.6495958",
"0.639603",
"0.635016",
"0.6214083",
"0.6144569",
"0.6083446",
"0.6032226",
"0.6018109",
"0.5947655",
"0.59239167",
"0.59186935",
"0.5912058",
"0.5907837",
"0.5900156",
"0.5893333",
"0.58863735",
"0.5886341",
"0.5884615",
"0.5849988",
"0.5824627",
"0.5806382",
"0.57807416",
"0.5728799",
"0.5713867",
"0.5684064",
"0.5678823",
"0.56724334",
"0.5653962",
"0.5636141",
"0.55870235",
"0.5586884",
"0.55723435",
"0.5561559",
"0.5558706",
"0.55581754",
"0.5554627",
"0.5547402",
"0.55444914",
"0.5542639",
"0.5533255",
"0.55254114",
"0.5520527",
"0.5505438",
"0.5499213",
"0.5473802",
"0.54713005",
"0.5438462",
"0.54379725",
"0.54372215",
"0.5427251",
"0.5409119",
"0.5367971",
"0.5367895",
"0.5360421",
"0.5347548",
"0.5339378",
"0.5339092",
"0.53351796",
"0.53268933",
"0.5317663",
"0.5312796",
"0.5311963",
"0.5309206",
"0.5304065",
"0.5297859",
"0.5290824",
"0.52905834",
"0.5285786",
"0.52654314",
"0.5259506",
"0.5249599",
"0.52477086",
"0.5242191",
"0.5237452",
"0.5227523",
"0.52155656",
"0.52147126",
"0.5213869",
"0.5206576",
"0.52023023",
"0.5193895",
"0.51908773",
"0.5190468",
"0.5186483",
"0.5178851",
"0.51738036",
"0.5165027",
"0.51606566",
"0.5160236",
"0.51550704",
"0.5147976",
"0.5142734"
] | 0.6845492 | 3 |
Get the Infos property. | public List getInfos() {
return infos;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<String[]> getInfos()\n {\n return (this.infos);\n }",
"public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }",
"public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getInfo() {\n return info;\n }",
"public List<Info> getInfos() {\n\treturn mInfos;\n }",
"public HashMap<Integer, ArrayList<String>> getInfo() {\n\t\treturn infoList;\n\t}",
"public String getInfo() {\n return info;\n }",
"public String getInfo()\n {\n return info;\n }",
"public Object getInfo() {\n return info;\n }",
"public String getInfo() {\n return this.info;\n }",
"@Override\n public String getInfo() {\n return this.info;\n }",
"public int getInfo ()\n\t\t{\n\t\t\treturn info;\n\t\t}",
"public int getInfo()\r\n\t{\r\n\t\treturn info;\r\n\t}",
"public int getInfoCount() {\n return info_.size();\n }",
"@Override\n public String getInfo(){\n return info;\n }",
"public String getInfo() {\n\t\treturn null;\r\n\t}",
"public String[] getInfoData();",
"public Map<String, Object> getInfo();",
"protected List<Info> getInfo() {\n\n return (List<Info>) getExtraData().get(ProcessListener.EXTRA_DATA_INFO);\n }",
"public List<SatelliteInfo> getSatelliteInfo() {\n\t\treturn this.info;\n\t}",
"public List<Mensaje> getInfos() {\r\n\t\treturn infos;\r\n\t}",
"public String getInfo() {\n return null;\n }",
"Information getInfo();",
"@Override\n public List<List<Integer>> getObjectInfo() {\n List<List<Integer>> currObjectConfig = getVisualInfoFromPieces(OBJECT_INFO_IDENTIFIER);\n return Collections.unmodifiableList(currObjectConfig);\n }",
"public String getInfo_json() {\n return info_json;\n }",
"@Override\r\n\tpublic String getInfo() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getInfo() {\n\t\treturn null;\r\n\t}",
"public String getInformation() {\n return information;\n }",
"String getInfo();",
"@Override\n\tpublic String getInfo() {\n\t\treturn null;\n\t}",
"public com.google.protobuf.ByteString\n getInfoBytes() {\n Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getInfo()\r\n\t{\r\n\t\treturn theItem.getNote();\r\n\t}",
"public com.google.protobuf.ByteString\n getInfoBytes() {\n Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public List<InfoServicio> getInfoServicios(){\n\t\treturn infoServicios;\n\t}",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public String getInformation() {\n return mInformation;\n }",
"@Override\n public List<Information> findAllInfo() {\n return infoDao.findAll();\n }",
"public String getInfoString() {\n/* 140 */ return this.info;\n/* */ }",
"public final String getInfo() {\r\n\t\treturn name;\r\n\t}",
"public URL getInfo() {\n return info;\n }",
"public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }",
"public java.util.Map<java.lang.Integer, java.lang.Integer> getInfoMap() {\n return internalGetInfo().getMap();\n }",
"public JPanel getInfo() {\n return info;\n }",
"public short[] get_infos_metadata() {\n short[] tmp = new short[2];\n for (int index0 = 0; index0 < numElements_infos_metadata(0); index0++) {\n tmp[index0] = getElement_infos_metadata(index0);\n }\n return tmp;\n }",
"public int getInfoTokens() {\n return this.infoTokens;\n }",
"public String info() {\n return name();\n }",
"public String info() {\n return name();\n }",
"public String getInfo() {\n\t\t\n\t\treturn this.appTda_.getInfo( 0 );\n\t}",
"public boolean isInfoEnabled();",
"public int getInfoCount() {\n if (infoBuilder_ == null) {\n return info_.size();\n } else {\n return infoBuilder_.getCount();\n }\n }",
"public String getInfoString();",
"@Override\n public String toString() {\n return info();\n }",
"@HystrixCommand(fallbackMethod = \"fallback\")\n @GetMapping(\"/info\")\n public String getInfos() {\n return exchangeService.getInfoFromRemote();\n }",
"public String getInfo() {\n Object ref = info_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n info_ = s;\n return s;\n }\n }",
"public ImmutableList<String> getInfoMessages() {\n return Lists.immutable.ofAll(infoMessages);\n }",
"public String[] getDetails() {\n\t\treturn details;\n\t}",
"@Schema(description = \"Documentation about this particular index type\")\n\tpublic String getInfo() {\n\t\treturn info;\n\t}",
"public ContactInfo[] getContactInfo() {\n return contactInfo;\n }",
"com.google.protobuf.ByteString\n getInfoBytes();",
"public String getInfo() {\n Object ref = info_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n info_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public abstract String getInfo();",
"public abstract String getInfo();",
"private Iterable<ModelInfo<Project>> infos() {\n return data.keySet();\n }",
"public static String[] getInfo(){\n\t\n\t\treturn new String[]{\n\t\t\t\t\"plugin_name\",\n\t\t\t\t\"plugin_host\",\n\t\t\t\t\"plugin_version\",\n\t\t\t\t\"plugin_author\"\n\t\t};\n\t\t\t\t\n\t}",
"public java.util.List<KeyValuePair> getInfoList() {\n return info_;\n }",
"public InformationField getInfo() {\n\treturn informationField;\n }",
"public HouseInfo[] getHouseInfo() {\n return houseInfo;\n }",
"private int infoCount() {\n return data.size();\n }",
"public InfoView getInfoView() {\r\n return infoPanel;\r\n }",
"@JsonProperty( \"contactInfos\" )\n\tpublic List<ContactInfo> getContactInfos()\n\t{\n\t\treturn m_contactInfos;\n\t}",
"public CarInfo[] getCarInfo() {\n return carInfo;\n }",
"public final synchronized String list()\r\n { return a_info(true); }",
"public String getInfo(){\n return \" name: \" + this.name;\n }",
"@Override\r\n\tpublic InfoApi getInfoApi() {\r\n\t\treturn this;\r\n\t}",
"int getInfoCount();",
"int getInfoCount();",
"int getInfoCount();",
"public String getInformation() {\n\t\treturn \"\";\n\t}",
"public String getInformation() {\n\t\treturn \"\";\n\t}",
"public byte[] getInfoString() {\n return Arrays.copyOf(this.infoString, this.infoString.length);\n }",
"public final ArrayList<String[]> getFullInformation() {\r\n\t\tArrayList<String[]> allInfo = new ArrayList<String[]>();\r\n\r\n\t\tfor (Workout i : workoutList) {\r\n\t\t\tallInfo.add(new String[] { i.getName(), i.getEquipment().toString(), i.getPrimaryMuscle().toString(),\r\n\t\t\t\t\ti.getSecondaryMuscle().toString(), i.getDesc(), i.getReminders() });\r\n\r\n\t\t}\r\n\r\n\t\treturn allInfo;\r\n\t}",
"@NonNull\n T getInfo();",
"public String getMoreInfo() {\n\t\treturn moreInfo;\n\t}",
"public String getMoreInfo() {\n\t\treturn moreInfo;\n\t}",
"public String getPopulationInfo(){\n\t\treturn populationInfo;\n\t}",
"public String getStatusInfoDetails() {\r\n return statusInfoDetails;\r\n }",
"boolean isInfoEnabled();",
"public Object getInfo() {\n // from AddEventHandler\n return new String();\n }",
"public String[] getExtraInfo() {\n return extraInfo;\n }",
"public char[] info() {\n\t\treturn null;\r\n\t}",
"@Override\r\n public String getInfo() {\r\n return \"Photo name: \"+this.info;\r\n }",
"DataCollectionInfo getInfo();",
"public Map<String, Object> getOtherInfo() {\n return otherInfo;\n }",
"@Override\n public ObjectNode info() {\n\n try {\n JsonpDeserializer<ObjectNode> deserializer = new JsonpDeserializerBase<>(EnumSet.allOf(JsonParser.Event.class)) {\n @Override\n public ObjectNode deserialize(JsonParser parser, JsonpMapper mapper, JsonParser.Event event) {\n return mapper.deserialize(parser, ObjectNode.class);\n }\n };\n\n Endpoint<InfoRequest, ObjectNode, ErrorResponse> infoEndpoint = new SimpleEndpoint<>(\n request -> \"GET\", // method\n request -> \"/\", // path\n request -> emptyMap(), // parameters\n SimpleEndpoint.emptyMap(), // headers\n false, // has request body?\n deserializer\n );\n\n return client._transport()\n .performRequest(InfoRequest._INSTANCE, infoEndpoint, null);\n\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getDetails() {\n return toString();\n }",
"public java.lang.Boolean getReceivesInfoEmails() {\n return receivesInfoEmails;\n }",
"public MBeanInfo getInfo() throws InstanceNotFoundException,\r\n\t\t\tIntrospectionException, ReflectionException, IOException {\r\n\t\treturn home.getInfo(objectName);\r\n\t}",
"public PointsInfo[] getPointsInfo() {\n return pointsInfo;\n }",
"public abstract MBeanNotificationInfo[] getNotificationInfo();",
"public String getInfoText();",
"@Override\n\tpublic boolean isInfoEnabled() {\n\t\treturn false;\n\t}"
] | [
"0.7818754",
"0.78082883",
"0.77769476",
"0.77489465",
"0.7678264",
"0.74521965",
"0.7417258",
"0.7404124",
"0.73761404",
"0.7319117",
"0.71527886",
"0.7151147",
"0.7125358",
"0.71067506",
"0.70620066",
"0.69100094",
"0.69057536",
"0.6888026",
"0.6880502",
"0.68761563",
"0.6875419",
"0.6869314",
"0.68587554",
"0.67298937",
"0.6725875",
"0.6725875",
"0.66863793",
"0.66774404",
"0.66554624",
"0.66213167",
"0.6613845",
"0.65825874",
"0.6579152",
"0.656191",
"0.65431297",
"0.65210736",
"0.6514241",
"0.65072364",
"0.64897716",
"0.6462337",
"0.6441951",
"0.6436762",
"0.64321",
"0.6414281",
"0.64121175",
"0.64121175",
"0.63770396",
"0.6370027",
"0.6358783",
"0.6340151",
"0.6339983",
"0.63243395",
"0.63037753",
"0.6300483",
"0.62967765",
"0.6272045",
"0.6265614",
"0.6263389",
"0.6262249",
"0.6260935",
"0.6260935",
"0.62563616",
"0.6239188",
"0.6237153",
"0.6235095",
"0.6233203",
"0.6232056",
"0.62310183",
"0.6227287",
"0.62182844",
"0.6193917",
"0.6191882",
"0.61681247",
"0.6167159",
"0.6167159",
"0.6167159",
"0.6166868",
"0.6166868",
"0.6160751",
"0.6160741",
"0.6125022",
"0.61217433",
"0.61217433",
"0.61060816",
"0.6100082",
"0.60903543",
"0.6085749",
"0.6084393",
"0.6046772",
"0.60381204",
"0.60241234",
"0.60224336",
"0.5998756",
"0.59766185",
"0.5976451",
"0.5974819",
"0.5966319",
"0.59653866",
"0.5951662",
"0.5942709"
] | 0.7783831 | 2 |
Set the Chart property. | public void setVerticalProfileChart(VerticalProfileChart value) {
chart = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setChart(Chart chart) {\r\n \tgetAbstractChart().setChart(chart);\r\n }",
"private void setCustomGraph(){\n\n // Set Touch, Drag and Scale to enable\n chart.setTouchEnabled(false);\n chart.setDragEnabled(false);\n chart.setScaleEnabled(false);\n\n // Controlling right side of y axis\n YAxis yAxisRight = chart.getAxisRight();\n yAxisRight.setEnabled(false);\n\n // Controlling left side of y axis\n YAxis yAxisLeft = chart.getAxisLeft();\n yAxisLeft.setGranularity(1f);\n\n yAxisLeft.setAxisLineColor(Color.TRANSPARENT);\n yAxisLeft.setDrawLabels(false);\n\n chart.getDescription().setEnabled(false);\n\n chart.getAxisLeft().setDrawGridLines(false);\n chart.getXAxis().setDrawGridLines(false);\n\n\n //Controlling X axis\n xAxis = chart.getXAxis();\n //Set the xAxis position to bottom\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n\n IAxisValueFormatter formatter = new IAxisValueFormatter() {\n @Override\n public String getFormattedValue(float value, AxisBase axis) {\n return weeks[(int) value];\n }\n };\n\n // minimum axis-step interval is 1\n xAxis.setGranularity(1f);\n xAxis.setValueFormatter(formatter);\n\n }",
"protected void setChart(XSSFChart chart, String relId) {\n\t\tCTGraphicalObjectData data = graphicFrame.getGraphic().addNewGraphicData();\n\t\tappendChartElement(data, relId);\n\t\tchart.setGraphicFrame(this);\n\t\treturn;\n\t}",
"void setPiechart() {\r\n\t\tOrderA oa = new OrderA();\r\n\r\n\t\tMap<String, Integer> data = oa.getOrders();\r\n\t\tPieChart pieChart = new PieChart();\r\n\r\n\t\tlbltotalorder.setText(\"\" + oa.totalord);\r\n\r\n\t\tPieChart.Data slice1 = new PieChart.Data(\"Pending\", data.get(\"pen\"));\r\n\t\tPieChart.Data slice2 = new PieChart.Data(\"Recieved\", data.get(\"rec\"));\r\n\t\tPieChart.Data slice3 = new PieChart.Data(\"Running\", data.get(\"run\"));\r\n\t\tPieChart.Data slice4 = new PieChart.Data(\"Completed\", data.get(\"com\"));\r\n\r\n\t\tpieChart.getData().add(slice1);\r\n\t\tpieChart.getData().add(slice2);\r\n\t\tpieChart.getData().add(slice3);\r\n\t\tpieChart.getData().add(slice4);\r\n\r\n\t\tpieChart.setPrefSize(400, 250);\r\n\r\n\t\tpieChart.setLegendSide(Side.LEFT);\r\n\t\tpieChart.setStartAngle(30);\r\n\r\n\t\tpierect.getChildren().addAll(pieChart);\r\n\r\n\t}",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"public void setChartType(ChartType chartType) {\r\n setAttribute(\"chartType\", chartType == null ? null : chartType.getValue(), true);\r\n }",
"private Chart(){}",
"public void setAxisProperties(Axis axis) {\n/* 413 */ super.setAxisProperties(axis);\n/* 414 */ ValueAxis valueAxis = (ValueAxis)axis;\n/* 415 */ valueAxis.setAutoRange(this.autoRange);\n/* 416 */ if (!this.autoRange) {\n/* 417 */ valueAxis.setRange(this.minimumValue, this.maximumValue);\n/* */ }\n/* 419 */ valueAxis.setAutoTickUnitSelection(this.autoTickUnitSelection);\n/* */ }",
"@FXML\n public void setGraph(){\n /*\n series.getData().clear();\n for(double x = -400; x <= 400; x += 1)\n series.getData().add(new XYChart.Data<Number,Number> (x, x));\n\n graph.getData().add(series);\n */\n System.out.println(\"vjksdl\");\n }",
"private void setDataPieChart() {\n\t\t\n\t\tchartPie.setTitle(\"Dépense par catégorie\");\n\t\tObservableList<PieChart.Data> pieChartData = FXCollections\n\t\t\t\t.observableArrayList();\n\t\t\n\t\tfor (CategoryLogic cl : ClientLogic.getInstance().getCategories()) {\n\t\t\tint outgo = 0;\n\t\t\tif (IOTransactionLogic.getTransactionsByCategory()\n\t\t\t\t\t.containsKey(cl)) {\n\t\t\t\tfor (IOTransactionLogic tr : IOTransactionLogic\n\t\t\t\t\t\t.getTransactionsByCategory().get(cl)) {\n\t\t\t\t\tif (!tr.isIncome()) {\n\t\t\t\t\t\toutgo += tr.getAmount() * (-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpieChartData.add(new PieChart.Data(cl.getName(), outgo));\n\t\t\t}\n\t\t}\n\t\t\n\t\tpieChartData.forEach(data -> data.nameProperty().bind(Bindings\n\t\t\t\t.concat(data.getName(), \" \", data.pieValueProperty(), \" CHF\")));\n\t\t\n\t\tchartPie.setData(pieChartData);\n\t\tchartPie.setLegendVisible(false);\n\t\t\n\t}",
"public void setModelChartIsVisible(boolean modelChartIsVisible);",
"private void setPieChart(PieChart pieChart, PieDataSet dataSet) {\n pieChart.setUsePercentValues(true);\n\n //set offests for the pie chart layout\n pieChart.setExtraOffsets(5, 5, 5, 5);\n\n //set the speed at which the graph decelerates after drag\n pieChart.setDragDecelerationFrictionCoef(0.9f);\n\n //sets the alpha value of the transparent inner circle\n pieChart.setTransparentCircleRadius(61f);\n\n //sets the color of the center hole of the graph\n pieChart.setHoleColor(mContext.getResources().getColor(R.color.transparent));\n\n pieChart.setHoleRadius(50f);\n\n //sets an animation when drawing the graph\n pieChart.animateY(1000, Easing.EasingOption.EaseInOutCubic);\n\n // disable the pie chart description label\n pieChart.getDescription().setEnabled(false);\n\n PieData pieData = new PieData(dataSet); //create a new instance of PieData passing the data set\n pieData.setValueFormatter(new PercentFormatter());\n\n pieData.setValueTextSize(10f); //set the text sie of the pie chart values\n\n pieData.setValueTextColor(Color.BLACK); //set the color of the pie chart text\n\n pieChart.setDrawCenterText(true);\n pieChart.setDrawEntryLabels(false);\n pieChart.getLegend().setOrientation(Legend.LegendOrientation.HORIZONTAL);\n pieChart.getLegend().setHorizontalAlignment(Legend.LegendHorizontalAlignment.CENTER);\n pieChart.getLegend().setWordWrapEnabled(true);\n pieChart.setData(pieData); //set the data to the pie chart\n\n //PieChart Ends Here\n }",
"public void setCanvas(Canvas canvas) {\r\n\t\tthis.canvas = canvas;\r\n\t}",
"public void setFormat(ChartFormat chartFormat) {\n // check for null pointer\n if( chartFormat == null) {\n // error ..\n eHandler.newError(ErrorType.NULL_ARGUMENT, \"setFormat\");\n\n // exit from method\n return;\n } // end of if statement\n\n // set the format\n format = new ChartFormat(chartFormat);\n\n // force repaint of the window to update it\n repaint();\n\n }",
"public Chart initializeChart();",
"public Builder setProperty(message.Figure.FigureData.FigureProperty value) {\n if (value == null) {\n throw new NullPointerException();\n }\n property_ = value;\n\n bitField0_ |= 0x00000080;\n return this;\n }",
"public void setSettings(LineChartSeriesSettings settings) {\n this.settings = settings;\n }",
"private PieData setPieData(PieDataSet dataSet) {\n PieData pieData = new PieData(dataSet);\n pieData.setValueTextSize(10f);\n\n return pieData;\n }",
"public void setSelDataPoint(DataPoint aDP)\n{\n if(SnapUtils.equals(aDP, _selPoint)) return;\n firePropChange(SelDataPoint_Prop, _selPoint, _selPoint = aDP);\n repaint();\n}",
"@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}",
"public void setProperty(String property) {\n }",
"public void setPainter(Painter painter)\n/* */ {\n/* 104 */ Painter old = getPainter();\n/* 105 */ this.painter = painter;\n/* 106 */ firePropertyChange(\"painter\", old, getPainter());\n/* */ }",
"private void setGraphDataAndStyle() {\n graphView.addSeries(new LineGraphSeries(getSeriesData()));\n graphView.setTitle(\"配速\");\n graphView.getGridLabelRenderer().setLabelFormatter(new DateAxisLabelFormatter(getActivity()));\n graphView.getGridLabelRenderer().setNumVerticalLabels(locations.size());\n graphView.getViewport().setMinX(locations.get(0).getTime());\n graphView.getViewport().setMaxX(locations.get(locations.size()-1).getTime());\n graphView.getViewport().setXAxisBoundsManual(true);\n\n }",
"@Override\n\tpublic void setPaint() {\n\t\tisPaint = true;\n\t}",
"private void setData() {\n BarDataSet set = new BarDataSet(getEntries(), \"Monthly Report\");\n set.setColors(new int[]{R.color.md_blue_700, R.color.md_deep_purple_300}, this);\n mData = new BarData(set);\n mChart.setData(mData);\n mData.setValueFormatter(new LargeValueFormatter());\n }",
"@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}",
"private void setData(int count) {\n\n int goalValue = mSharedPreferences.getData(PREF_GOAL_VALUE);\n Log.e(TAG, \"setData: \" + goalValue);\n\n ArrayList<Entry> values = new ArrayList<>();\n values.add(new Entry(0, 0));\n for (int i = 1; i < count; i++) {\n\n float val = (float) (Math.random() * 10) + values.get(i-1).getY();\n Log.e(TAG, \"val 1: \" + val);\n\n if(val >= goalValue) val = goalValue;\n Log.e(TAG, \"val 2: \" + val);\n\n values.add(new Entry(i, val));\n }\n\n LineDataSet lineDataSet;\n\n if (mChart.getData() != null &&\n mChart.getData().getDataSetCount() > 0) {\n lineDataSet = (LineDataSet)mChart.getData().getDataSetByIndex(0);\n lineDataSet.setValues(values);\n mChart.getData().notifyDataChanged();\n mChart.notifyDataSetChanged();\n } else {\n // create a dataset and give it a type\n lineDataSet = new LineDataSet(values, \"\");\n\n lineDataSet.setColor(ContextCompat.getColor(getContext(), R.color.green));\n lineDataSet.setCircleColor(ContextCompat.getColor(getContext(), R.color.green));\n lineDataSet.setDrawIcons(false);\n lineDataSet.setLineWidth(2f);\n lineDataSet.setCircleRadius(1f);\n lineDataSet.setDrawCircleHole(false);\n lineDataSet.setDrawFilled(true);\n lineDataSet.disableDashedLine();\n\n mChart.setDescription(new Description()); // Hide the description\n mChart.getAxisLeft().setDrawGridLines(false);\n mChart.getAxisLeft().setDrawLabels(false);\n mChart.getAxisRight().setDrawGridLines(false);\n mChart.getAxisRight().setDrawLabels(false);\n mChart.getXAxis().setDrawGridLines(false);\n mChart.getXAxis().setDrawLabels(false);\n mChart.getLegend().setEnabled(false);\n\n lineDataSet.setDrawValues(false);\n\n if (Utils.getSDKInt() >= 18) {\n // fill drawable only supported on api level 18 and above\n final Drawable drawable = ContextCompat.getDrawable(getContext(), R.drawable.ic_add_black_24dp);\n lineDataSet.setFillDrawable(drawable);\n }\n else {\n lineDataSet.setFillColor(Color.BLACK);\n }\n\n\n ArrayList<Entry> values2 = new ArrayList<>();\n values2.add(new Entry(values.get(20).getX(), values.get(20).getY()));\n for (int i = 29; i >= 20; i--) {\n\n float val = (float) (Math.random() * 10) + values.get(i).getY();\n\n Log.d(TAG, \"Golden Values : \" + val);\n values2.add(new Entry(values.get(20).getX() + i, val));\n }\n\n LineDataSet lineDataSet2;\n\n lineDataSet2 = new LineDataSet(values2, \"Predicted\");\n\n lineDataSet2.setColor(ContextCompat.getColor(getContext(), R.color.colorOppositePrimary));\n lineDataSet2.setCircleColor(ContextCompat.getColor(getContext(), R.color.colorOppositePrimary));\n lineDataSet2.setDrawIcons(false);\n lineDataSet2.setLineWidth(2f);\n lineDataSet2.setCircleRadius(1f);\n lineDataSet2.setDrawCircleHole(false);\n lineDataSet2.setDrawFilled(true);\n lineDataSet2.disableDashedLine();\n\n lineDataSet2.setDrawValues(false);\n\n if (Utils.getSDKInt() >= 18) {\n // fill drawable only supported on api level 18 and above\n final Drawable drawable = ContextCompat.getDrawable(getContext(), R.drawable.ic_add_black_24dp);\n lineDataSet2.setFillDrawable(drawable);\n }\n else {\n lineDataSet2.setFillColor(Color.BLACK);\n }\n\n final ArrayList<ILineDataSet> dataSets = new ArrayList<>();\n dataSets.add(lineDataSet); // add the datasets\n// dataSets.add(lineDataSet2);\n\n // create a data object with the datasets\n final LineData data = new LineData(lineDataSet/*, lineDataSet2*/);\n\n // set data\n mChart.setData(data);\n\n// final ArrayList<ILineDataSet> dataSets2 = new ArrayList<>();\n// dataSets.add(lineDataSet2); // add the datasets\n\n // create a data object with the datasets\n// final LineData data2 = new LineData(dataSets2);\n// mChart.setData(data2);\n }\n }",
"public void setGraphPane(GraphPane p) {\n setCanvasPane(p);\n }",
"@Override\n public void setBubbleChartData(BubbleChartData bubbleChartData) {\n this.data = bubbleChartData == null ? BubbleChartData.generateDummyData() : bubbleChartData;\n super.onChartDataChange();\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tfanChart.setName(name);\n\t}",
"public void setProperty(String name,Object value);",
"public Paint getSeriesPaint() {\n return this.seriesPaint;\n}",
"private void setupChart(LineChart chart, LineData data, int color) {\n chart.setData(data);\n\n // get the legend (only possible after setting data)\n // Legend l = chart.getLegend();\n // l.setEnabled(false);\n // chart.getAxisLeft().setEnabled(true);\n // chart.getAxisLeft().setDrawLabels(true);\n // chart.getAxisRight().setEnabled(true);\n // chart.getAxisRight().setDrawLabels(true);\n // chart.getAxisLeft().setSpaceTop(40);\n // chart.getAxisLeft().setSpaceBottom(40);\n /* chart.getAxisLeft().setLabelCount(10,true);\n chart.getAxisRight().setEnabled(false);\n chart.getXAxis().setEnabled(true);\n chart.getXAxis().setDrawAxisLine(true);\n chart.getXAxis().setDrawLabels(true);\n chart.getXAxis().setLabelCount(10,true);*/\n // animate calls invalidate()...\n // chart.animateX(2500);\n lpg_fragment.MyMarkerView markerView = new lpg_fragment.MyMarkerView(getContext(),R.layout.aqimarker);\n chart.setMarkerView(markerView);\n chart.invalidate();\n }",
"protected void setChartShow() {\n\t\tbackIV.setVisibility(View.GONE);\r\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (chartShowFrag == null) {\r\n\t\t\tfTransaction.add(R.id.content, new ChartShowFrag(),\r\n\t\t\t\t\tChartShowFrag.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(chartShowFrag);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.chart_show);\r\n\t}",
"@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}",
"@JSProperty(\"front\")\n void setFront(Chart3dFrameFrontOptions value);",
"private void initChart() {\n Cartesian cartesian = AnyChart.line();\n\n cartesian.animation(true);\n\n cartesian.padding(10d, 20d, 5d, 20d);\n\n cartesian.crosshair().enabled(true);\n cartesian.crosshair()\n .yLabel(true)\n // TODO ystroke\n .yStroke((Stroke) null, null, null, (String) null, (String) null);\n\n cartesian.tooltip().positionMode(TooltipPositionMode.POINT);\n\n cartesian.title(\"Steps taken in this week and last week\");\n\n cartesian.yAxis(0).title(\"Steps\");\n cartesian.xAxis(0).labels().padding(5d, 5d, 5d, 5d);\n\n List<DataEntry> seriesData = new ArrayList<>();\n Log.d(\"Size This Week\",stepsTakenModelsThisWeek.size()+\"\");\n for(int i = 0 ; i<7 ; i++){\n CustomDataEntry c = new CustomDataEntry(days[i],stepsTakenModelsLastWeek.get(i).getSteps());\n if(i<stepsTakenModelsThisWeek.size()){\n c.setValue(\"value2\",stepsTakenModelsThisWeek.get(i).getSteps());\n }else{\n if(DateUtilities.getDayInAbbBySelectedDate(stepsTakenModelsLastWeek.get(i).getDate()).equals(\n DateUtilities.getCurrentDayInAbb()))\n {\n c.setValue(\"value2\",stepsToday);\n }else{\n c.setValue(\"value2\",0);\n }\n }\n seriesData.add(c);\n }\n\n Set set = Set.instantiate();\n set.data(seriesData);\n Mapping series1Mapping = set.mapAs(\"{ x: 'x', value: 'value' }\");\n Mapping series2Mapping = set.mapAs(\"{ x: 'x', value: 'value2' }\");\n\n Line series1 = cartesian.line(series1Mapping);\n series1.name(\"Last Week\");\n series1.hovered().markers().enabled(true);\n series1.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series1.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n Line series2 = cartesian.line(series2Mapping);\n series2.name(\"This Week\");\n series2.hovered().markers().enabled(true);\n series2.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series2.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n\n cartesian.legend().enabled(true);\n cartesian.legend().fontSize(13d);\n cartesian.legend().padding(0d, 0d, 10d, 0d);\n\n chart.setChart(cartesian);\n }",
"private void setData() {\n LineDataSet set1 = new LineDataSet(valuesTemperature, \"Temperature\");\n\n set1.setColor(Color.RED);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n LineData data = new LineData(set1);\n\n // set data\n chartTemperature.setData(data);\n\n // get the legend (only possible after setting data)\n Legend l = chartTemperature.getLegend();\n l.setEnabled(true);\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesPressure, \"Pressure\");\n\n set1.setColor(Color.GREEN);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartPressure.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartPressure.getLegend();\n l.setEnabled(true);\n\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesAltitude, \"Altitude\");\n\n set1.setColor(Color.BLUE);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartAltitude.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartAltitude.getLegend();\n l.setEnabled(true);\n }",
"public void setVisualization(Visualization viz) {\n\t\tm_viz = viz;\n\t}",
"public JFreeChart getChart() {\n return chart;\n }",
"public void setProperty(Integer t) {\n\n\t\t}",
"private void initPieChart(){\n }",
"public Builder setProperty(\n message.Figure.FigureData.FigureProperty.Builder builderForValue) {\n property_ = builderForValue.build();\n\n bitField0_ |= 0x00000080;\n return this;\n }",
"public void setColor(ColorCallback<DatasetContext> colorCallback) {\n\t\t// sets the callback\n\t\tthis.colorCallback = colorCallback;\n\t\t// checks if callback is consistent\n\t\tif (colorCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// otherwise sets null which removes the properties from java script object\n\t\t\tremove(CommonProperty.COLOR);\n\t\t}\n\t}",
"public void setShape(Shape shape) {\n validateShape(shape);\n\n this.shape = shape;\n this.shape.calculate();\n initializeScroller();\n resetScroll();\n }",
"private void setupBarChart() {\n mBarChart.setOnChartValueSelectedListener(this);\n mBarChart.getDescription().setEnabled(false);\n mBarChart.setDrawBorders(true);\n mBarChart.setBorderWidth(1.f);\n mBarChart.setBorderColor(Color.parseColor(\"#616161\"));\n mBarChart.setPinchZoom(true);\n mBarChart.setDrawBarShadow(false);\n mBarChart.setDrawGridBackground(false);\n mBarChart.setTouchEnabled(true);\n mBarChart.setDoubleTapToZoomEnabled(false);\n\n Legend l = mBarChart.getLegend();\n l.setVerticalAlignment(Legend.LegendVerticalAlignment.TOP);\n l.setHorizontalAlignment(Legend.LegendHorizontalAlignment.RIGHT);\n l.setOrientation(Legend.LegendOrientation.VERTICAL);\n l.setDrawInside(true);\n l.setYOffset(0f);\n l.setXOffset(10f);\n l.setYEntrySpace(0f);\n l.setTextSize(8f);\n\n// List<String> list = new ArrayList<String>();\n// for(Report report: mReportList){\n// list.add(report.monthYear);\n// }\n// final String[] stringMonthYear = list.toArray(new String[0]);\n\n XAxis xAxis = mBarChart.getXAxis();\n xAxis.setGranularity(1f);\n xAxis.setPosition(XAxis.XAxisPosition.TOP);\n xAxis.setCenterAxisLabels(true);\n xAxis.setValueFormatter(new IAxisValueFormatter() {\n @Override\n public String getFormattedValue(float value, AxisBase axis) {\n int n = (int) value;\n switch (n) {\n case 0:\n if(mReportList.size()<1){\n break;\n }\n return mReportList.get(0).monthYear;\n case 1:\n if(mReportList.size()<2){\n break;\n }\n return mReportList.get(1).monthYear;\n case 2:\n if(mReportList.size()<3){\n break;\n }\n return mReportList.get(2).monthYear;\n case 3:\n if(mReportList.size()<4){\n break;\n }\n return mReportList.get(3).monthYear;\n }\n if (n < 0) {\n return \"Tháng\";\n } else{\n return \"Tháng\";\n }\n }\n });\n\n YAxis leftAxis = mBarChart.getAxisLeft();\n leftAxis.setValueFormatter(new LargeValueFormatter());\n leftAxis.setDrawGridLines(false);\n leftAxis.setSpaceTop(35f);\n leftAxis.setAxisMinimum(0f); // this replaces setStartAtZero(true)\n\n mBarChart.getAxisRight().setEnabled(false);\n\n float groupSpace = 0.04f;\n float barSpace = 0.03f; // x2 dataset\n float barWidth = 0.45f; // x2 dataset\n // (0.45 + 0.03) * 2 + 0.04 = 1.00 -> interval per \"group\"\n\n int startMonth = 0;\n\n ArrayList<BarEntry> yValsThu = new ArrayList<BarEntry>();\n ArrayList<BarEntry> yValsChi = new ArrayList<BarEntry>();\n\n int i = 0;\n for (Report report : mReportList) {\n yValsThu.add(new BarEntry(i, (float) report.incomeTotal));\n yValsChi.add(new BarEntry(i, (float) report.expenseTotal));\n i++;\n }\n\n BarDataSet setThu, setChi;\n\n if (mBarChart.getData() != null && mBarChart.getData().getDataSetCount() > 0) {\n\n setThu = (BarDataSet) mBarChart.getData().getDataSetByIndex(0);\n setChi = (BarDataSet) mBarChart.getData().getDataSetByIndex(1);\n setThu.setValues(yValsThu);\n setChi.setValues(yValsChi);\n mBarChart.getData().notifyDataChanged();\n mBarChart.notifyDataSetChanged();\n\n } else {\n // create 4 DataSets\n setThu = new BarDataSet(yValsThu, \"Thu\");\n setThu.setColor(Color.parseColor(\"#64dd17\"));\n setChi = new BarDataSet(yValsChi, \"Chi\");\n setChi.setColor(Color.parseColor(\"#2196f3\"));\n\n BarData data = new BarData(setThu, setChi);\n data.setValueFormatter(new LargeValueFormatter());\n\n mBarChart.setData(data);\n }\n\n // specify the width each bar should have\n mBarChart.getBarData().setBarWidth(barWidth);\n\n // restrict the x-axis range\n mBarChart.getXAxis().setAxisMinimum(startMonth);\n\n // barData.getGroupWith(...) is a helper that calculates the width each group needs based on the provided parameters\n mBarChart.getXAxis().setAxisMaximum(startMonth + mBarChart.getBarData().getGroupWidth(groupSpace, barSpace) * mReportList.size());\n mBarChart.groupBars(startMonth, groupSpace, barSpace);\n for (IBarDataSet set : mBarChart.getData().getDataSets()) {\n ((BarDataSet) set).setBarBorderWidth(1.f);\n ((BarDataSet) set).setBarBorderColor(Color.parseColor(\"#616161\"));\n }\n mBarChart.invalidate();\n mBarChart.animateY(800);\n\n //[END Setup Bar Char]\n }",
"public HashMap<Integer, Boolean> getChart() {\n return chart;\n }",
"protected void setChartViewDrawn(boolean drawn)\n {\n mChartViewDrawn = drawn;\n }",
"protected void setOutputPanelChart(ChartPanel chart) {\n\t\toutputPanel.removeAll();\n\t\toutputPanel.setLayout(new BorderLayout());\n\t\toutputPanel.add(chart, BorderLayout.CENTER);\n\t\toutputPanel.validate();\n\t\toutputPanel.setVisible(true);\n\t\t//frame.setVisible(true);\n\t\t//outputPanel.setLayout(new BorderLayout());\n\t\t//outputPanel.validate();\n\t}",
"void setPropertiedGraphView(final PropertiedGraphView<O> propertiedGraphView);",
"@JSProperty(\"pane\")\n void setPane(double value);",
"public void setEffect(RMEffect anEffect)\n{\n if(RMUtils.equals(getEffect(), anEffect)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_effect!=null) { _effect.removePropertyChangeListener(this);\n removePropertyChangeListener(_effect); removeDeepChangeListener(_effect); }\n firePropertyChange(\"Effect\", _effect, _effect = anEffect, -1); // Set value and fire PropertyChange\n if(_effect!=null) { _effect.addPropertyChangeListener(this);\n addPropertyChangeListener(_effect); addDeepChangeListener(_effect); }\n}",
"public void setCanvas(GameCanvas canvas) {\n\t\tthis.canvas = canvas;\n\t\tthis.scale.x = canvas.getWidth()/bounds.getWidth();\n\t\tthis.scale.y = canvas.getHeight()/bounds.getHeight();\n\t}",
"public Rectangle getChartArea() {\n return chartArea;\n }",
"private void initChart() {\r\n /*mCurrentSeries = new XYSeries(\"Sample Data\");\r\n mDataset.addSeries(mCurrentSeries);\r\n mCurrentRenderer = new XYSeriesRenderer();\r\n mRenderer.addSeriesRenderer(mCurrentRenderer);*/\r\n \t\r\n \tList<Integer> MyListValue = new ArrayList<Integer>();\r\n\t\t/*for (int i = 0; i < SpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(SpeakingTimeList.get(i));\r\n\t\t}*/\r\n\t\tfor (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(participantAndSpeakingTimeList.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t\t/*MyList.add(25);\r\n\t\tMyList.add(10);\r\n\t\tMyList.add(15);\r\n\t\tMyList.add(20);*/\r\n\t\t\t\t\r\n\t\tint[] y = new int[MyListValue.size()];\r\n\t\tfor (int i = 0; i < MyListValue.size(); i++) \r\n\t\t\ty[i] = MyListValue.get(i);\r\n\t\t\r\n\t\t//int y[] = {25,10,15,20};\r\n\t \r\n CategorySeries series = new CategorySeries(\"Speaking time in secondes\");\r\n for(int i=0; i < y.length; i++){\r\n series.add(\"Bar\"+(i+1),y[i]);\r\n }\r\n \r\n dataSet = new XYMultipleSeriesDataset(); // collection of series under one object.,there could any\r\n dataSet.addSeries(series.toXYSeries()); // number of series\r\n \r\n //customization of the chart\r\n \r\n XYSeriesRenderer renderer = new XYSeriesRenderer(); // one renderer for one series\r\n renderer.setColor(Color.parseColor(\"#0099FF\"));\r\n renderer.setDisplayChartValues(true);\r\n renderer.setChartValuesSpacing((float) 5.5d);\r\n renderer.setLineWidth((float) 10.5d);\r\n \r\n \r\n mRenderer = new XYMultipleSeriesRenderer(); // collection multiple values for one renderer or series\r\n mRenderer.addSeriesRenderer(renderer);\r\n mRenderer.setChartTitle(\"Speaking time per participant\");\r\n// mRenderer.setXTitle(\"xValues\");\r\n mRenderer.setYTitle(\"Time in secondes\");\r\n mRenderer.setZoomButtonsVisible(true); mRenderer.setShowLegend(true);\r\n mRenderer.setShowGridX(true); // this will show the grid in graph\r\n mRenderer.setShowGridY(true); \r\n// mRenderer.setAntialiasing(true);\r\n mRenderer.setBarSpacing(.5); // adding spacing between the line or stacks\r\n mRenderer.setApplyBackgroundColor(true);\r\n mRenderer.setBackgroundColor(Color.BLACK);\r\n mRenderer.setXAxisMin(0);\r\n mRenderer.setYAxisMin(0);\r\n //mRenderer.setXAxisMax(5);\r\n /*mRenderer.setXAxisMax(ParticipantsList.size()+1);*/\r\n mRenderer.setXAxisMax(participantAndSpeakingTimeList.size()+1);\r\n //mRenderer.setYAxisMax(100);\r\n mRenderer.setYAxisMax(Math.round(getMaxValue()/10)*10+10);\r\n// \r\n \r\n mRenderer.setXLabels(0);\r\n \r\n mRenderer.setXLabelsAngle(90);\r\n mRenderer.setXLabelsAlign(Align.LEFT);\r\n \r\n /*for (int i = 0; i < ParticipantsList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, ParticipantsList.get(i));\r\n\t\t}*/\r\n for (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, participantAndSpeakingTimeList.get(i).getName());\r\n\t\t}\r\n \r\n /*mRenderer.addXTextLabel(1,\"Income\");\r\n mRenderer.addXTextLabel(2,\"Saving\");\r\n mRenderer.addXTextLabel(3,\"Expenditure\");\r\n mRenderer.addXTextLabel(4,\"NetIncome\");*/\r\n \r\n mRenderer.setPanEnabled(true, true); // will fix the chart position\r\n //Intent intent = ChartFactory.getBarChartIntent(context, dataSet, mRenderer,Type.DEFAULT);\r\n \r\n //return intent;\r\n\r\n\t\r\n\t}",
"@JSProperty(\"bottom\")\n void setBottom(Chart3dFrameBottomOptions value);",
"public ChartController()\n {\n \tthis.pieModel = new PieChartModel();\n \tthis.pieModel.set(\"\", 0);\n \tthis.categoryModel = new CartesianChartModel() ;\n \tChartSeries fakultas = new ChartSeries() ;\n \tfakultas.set(\"\", 0);\n \tthis.categoryModel.addSeries(fakultas);\n }",
"public void setProperty(String key, String value) \n\t{\n\t\tif (key.equals(\"MINWIN\")) \n\t\t{\n\t\t\tsetMinWin(Float.parseFloat(value));\n\t\t} \n\t\telse if (key.equals(\"MAXLOSS\")) \n\t\t{\n\t\t\tsetMaxLoss(Float.parseFloat(value));\n\t\t}\n\t\telse if (key.equals(\"PERIOD\")) \n\t\t{\n\t\t\t_period = Integer.parseInt(value);\n\t\t}\n\t\telse if (key.equals(\"MAXWIN\")) \n\t\t{\n\t\t\tsetMaxWin(Float.parseFloat(value));\n\t\t}\n\t}",
"public void setAutoRange() {\n this.customAxis=false;\n addGraphPanel();\n }",
"public JFreeChart getChart() {\n\t\treturn chart_;\n\t}",
"private void setVisualization(Visualization visualization) {\n\t\tremoveVisualization();\n\t\tthis.visualization = visualization;\n\t\tupdateWeights();\n\t\tthis.rootComposite.layout();\n\t}",
"public void setCanvasPane(CanvasPane cp) {\n if(cp instanceof GraphPane) {\n super.setCanvasPane(cp);\n }\n else {\n String err = \"samJGraph can only except display panes of type GraphPane.\";\n throw (new IllegalArgumentException(err));\n }\n }",
"protected void setDrawing(boolean drawing) {\n\tmDrawing = drawing;\n}",
"@Override\n public void run() {\n XYChart.Data<Number, Number> data = new XYChart.Data<>(-x, y);\n data.setNode(new Circle(5, javafx.scene.paint.Color.GREY));\n series.getData().add(data);\n lineChart.getData().add(series);\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) { \n \n XYChart.Series series = new XYChart.Series<>();\n \n \n series.setName(\"Gagnant\");\n series.getData().add(new XYChart.Data(\"Jan\", 100));\n series.getData().add(new XYChart.Data(\"Fev\", 170));\n series.getData().add(new XYChart.Data(\"Mars\", 197));\n series.getData().add(new XYChart.Data(\"Avr\", 160));\n series.getData().add(new XYChart.Data(\"Mai\", 165));\n series.getData().add(new XYChart.Data(\"Juin\", 179));\n series.getData().add(new XYChart.Data(\"Juil\", 195));\n series.getData().add(new XYChart.Data(\"Aout\", 140));\n series.getData().add(new XYChart.Data(\"Sept\", 121));\n series.getData().add(new XYChart.Data(\"Oct\", 173));\n series.getData().add(new XYChart.Data(\"Nov\", 185));\n series.getData().add(new XYChart.Data(\"Dec\", 150));\n \n XYChart.Series perdant = new XYChart.Series<>();\n perdant.setName(\"Perdant\");\n \n perdant.getData().add(new XYChart.Data(\"Jan\", 80));\n perdant.getData().add(new XYChart.Data(\"Fev\", 60));\n perdant.getData().add(new XYChart.Data(\"Mars\", 80));\n perdant.getData().add(new XYChart.Data(\"Avr\", 70));\n perdant.getData().add(new XYChart.Data(\"Mai\", 70));\n perdant.getData().add(new XYChart.Data(\"Juin\", 60));\n perdant.getData().add(new XYChart.Data(\"Juil\", 100));\n perdant.getData().add(new XYChart.Data(\"Aout\", 80));\n perdant.getData().add(new XYChart.Data(\"Sept\", 50));\n perdant.getData().add(new XYChart.Data(\"Oct\", 79));\n perdant.getData().add(new XYChart.Data(\"Nov\", 70));\n perdant.getData().add(new XYChart.Data(\"Dec\", 12));\n \n\n Tooltip tooltip = new Tooltip(\"Le nombre de gagnants ou cours des mois augmentent souvent.\");\n areaChart.getStylesheets().add(\"-fx-color:green;\");\n areaChart.getData().addAll(series, perdant);\n BarChart.getStylesheets().add(\"chart-bar series<1> bar-legend-symbol default-color<red>\");\n BarChart.getData().addAll(perdant);\n\n\n }",
"public void setChartTitle(String chartTitle) {\r\n this.chartTitle = chartTitle;\r\n }",
"@JsProperty(name = \"chart\")\n\tnative Chart getNativeChart();",
"private void setDataLineChart() {\n\t\t\n\t\tchartLine.setTitle(\"Evolution du Solde\");\n\t\tchartLine.getData().clear();\n\t\t\n\t\tXYChart.Series series = new XYChart.Series();\n\t\tseries.getData().clear();\n\t\tseries.setName(\"Evolution du solde\");\n\t\t\n\t\tdouble solde = bal.getAmount();\n\t\tint currentYear = Calendar.getInstance().get(Calendar.YEAR);\n\t\tint currentMonth = Calendar.getInstance().get(Calendar.MONTH);\n\t\tint currentDay = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\t\n\t\t// Create a calendar object and set year and month\n\t\tCalendar mycal = new GregorianCalendar(currentYear, currentMonth,\n\t\t\t\tcurrentDay);\n\t\t\n\t\t// Get the number of days in that month\n\t\tint daysInMonth = mycal.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\t\n\t\tif (!bal.getTransactions().isEmpty()) {\n\t\t\tfor (IOTransactionLogic transaction : bal.getTransactions()\n\t\t\t\t\t.get(currentYear)[currentMonth]) {\n\t\t\t\tsolde -= transaction.getAmount();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < currentDay; ++i) {\n\t\t\tif (!bal.getTransactions().isEmpty()) {\n\t\t\t\tfor (IOTransactionLogic transaction : bal.getTransactions()\n\t\t\t\t\t\t.get(currentYear)[currentMonth]) {\n\t\t\t\t\tjava.sql.Date dat = transaction.getDate();\n\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.setTime(dat);\n\t\t\t\t\tif (cal.get(Calendar.DAY_OF_MONTH) - 1 == i) {\n\t\t\t\t\t\tsolde += transaction.getAmount();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tseries.getData()\n\t\t\t\t\t.add(new XYChart.Data(String.valueOf(i + 1), solde));\n\t\t}\n\t\t\n\t\tchartLine.getData().addAll(series);\n\t\tchartLine.setLegendVisible(false);\n\t}",
"public void set(float signal);",
"protected void configureScaler(Chart chart) {\n // This allows dealing with a difference\n // between emulgl and native\n // TODO : https://github.com/jzy3d/jzy3d-api/issues/304\n scaled = !chart.getCanvas().isNative();\n\n // This allows dealing with a difference\n // between Win+AWT and the other cases when \n // using HiDPI monitors\n // https://github.com/jzy3d/jzy3d-api/issues/101\n IPainter painter = chart.getPainter();\n if(painter.getOS().isWindows() && painter.getWindowingToolkit().isAWT()) {\n scaled = true;\n }\n }",
"public void setProperty(String property) {\n \t\t_property = property;\n \t}",
"public UIXChart()\n {\n super(\"org.apache.myfaces.trinidad.Chart\");\n }",
"public void setProperty(String propertyName, boolean value);",
"@JSProperty(\"side\")\n void setSide(Chart3dFrameSideOptions value);",
"@Override\n\t\t\t\tprotected LineChartPanel getLineChartPanel() {\n\t\t\t\t\treturn lineChartPanel;\n\t\t\t\t}",
"@JSProperty(\"tickLength\")\n void setTickLength(double value);",
"public void setAxProperty(int dispatchPointer,\n String propertyName, Variant newValue)\n throws ActiveXException\n {\n Vector v = new Vector();\n v.addElement(newValue);\n axInvoke(dispatchPointer,propertyName,ActiveXDispatchable.AX_PROPERTYSET,true,v);\n }",
"private void setPenColor() {\n\t}",
"public void setPoint(double value) {\r\n this.point = value;\r\n }",
"public void initializeChart(String subtitle) {\n JFreeChart jfreechart = ChartFactory.createXYLineChart(\n subtitle, \"X\", \"Y\", this.dataset.getXYDataset(),\n PlotOrientation.VERTICAL, true, true, false);\n XYPlot xyplot = (XYPlot) jfreechart.getPlot();\n XYLineAndShapeRenderer xylineandshaperenderer = new XYLineAndShapeRenderer();\n xylineandshaperenderer.setBaseLinesVisible(true);\n\n // System.out.println(\"date set series count: \" + xydataset.getSeriesCount());\n // set visible or not shapes of series\n// System.out.printf(\"sets in the dataset: \"); // TODO delete this \"print\" if necessary\n for (int i = 0; i < this.dataset.seriesCount(); i++) {\n// System.out.printf(this.dataset.getSeries(i).getKey() + \" \");\n xylineandshaperenderer.setSeriesLinesVisible(i, false);\n xylineandshaperenderer.setSeriesShapesVisible(i, this.dataset.shapeVisible(i));\n }\n xylineandshaperenderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator());\n xyplot.setRenderer(xylineandshaperenderer);\n NumberAxis numberaxis = (NumberAxis) xyplot.getRangeAxis();\n numberaxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n this.jPanel = new ChartPanel(jfreechart);\n }",
"public void setHealth(double Health){\r\n health = Health;\r\n }",
"public void setGraph(ActionEvent event)\n {\n theLineGraph.getData().clear();\n double temporary=0;\n theLineGraph.getXAxis().setLabel(\"Days\");\n\n XYChart.Series<String, Number> theGraph = new XYChart.Series<String, Number>();\n\n for (int i=0; i<Driver.save.getLog().size();i++)\n {\n String myI=i+\"\";\n\n if (event.getSource()==caloriesButton)\n {\n temporary=Driver.save.getDayCalories(i);\n theLineGraph.getYAxis().setLabel(\"Calories\");\n\n } else if(event.getSource()==protienButton)\n {\n temporary=Driver.save.getDayProtein(i);\n theLineGraph.getYAxis().setLabel(\"protien\");\n }\n else if (event.getSource()==carbsButton)\n {\n temporary=Driver.save.getDayCarbo(i);\n theLineGraph.getYAxis().setLabel(\"Carbs\");\n }\n else if (event.getSource()==fatsButton)\n {\n temporary=Driver.save.getDayFats(i);\n theLineGraph.getYAxis().setLabel(\"Fats\");\n }\n else if (event.getSource()==bevButton)\n {\n temporary=Driver.save.getDayBevarage(i);\n theLineGraph.getYAxis().setLabel(\"Drinks in ml\");\n }\n\n theGraph.getData().add(new XYChart.Data<String, Number>(myI ,temporary));\n }\n theLineGraph.getData().addAll(theGraph);\n\n }",
"@Override\n public void setGraphData(Object o) {\n\n }",
"public void setDrawValues(boolean draw) {\r\n this.drawValues = draw;\r\n }",
"public void setValue(double speed) {\n\t\tpid.setSetpoint(speed);\n\t}",
"public ShannonsPieChart(ShannonsController ctl){\n\t\t controller = ctl;\n\t\tinitGUI();\n\t}",
"@JSProperty(\"tickColor\")\n void setTickColor(String value);",
"protected void setTimeline(RMTimeline aTimeline)\n{\n // Stop listening to old timeline property changes\n if(getTimeline()!=null) getTimeline().removePropertyChangeListener(this);\n \n // Set anim\n put(\"Anim\", aTimeline);\n \n // Set owner to this shape and start listening for property changes\n if(aTimeline!=null) {\n aTimeline.setOwner(this);\n aTimeline.addPropertyChangeListener(this);\n }\n}",
"public void setProperty(String property) {\n\t\tthis.property = property;\n\t}",
"public void setValue (int _index, Value _value) {\n switch (_index) {\n case 0 : shape.setShapeType(_value.getInteger()); break;\n case 1 : shape.setPixelSize(_value.getBoolean()); break;\n case 2 :\n if (_value instanceof IntegerValue) shape.setRotationAngle(_value.getInteger()*ControlDrawingPanel3D.TO_RAD);\n else shape.setRotationAngle(_value.getDouble());\n break;\n default : super.setValue(_index-SHAPE_PROPERTIES_ADDED,_value); break;\n }\n if (isUnderEjs) updatePanel();\n }",
"public void set(double val);",
"public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }",
"public void SetPieChartImage(String pie) {\n\t\tboolean test = true;\n\t\t\n\t\tif((pie.isEmpty()) && (test)) {\n\t\t\tSystem.err.println(\"*** Warning ChartTypeChooser::\" +\n\t\t\t\"SetPieChartImage():: image is set to an empty string.\");\n\t\t}\n\t\tif ((pie.length() > MAX_SIZE) && (test)) {\n\t\t \tSystem.err.println(\"*** Warning ChartTypeChooser::\" +\n\t\t \t\"SetPieChartImage():: image is a very long name.\");\n\t\t}\n\t\telse if (test) {\n\t\t \tSystem.out.println(\"ChartTypeChooser:: \" +\n\t\t \t\"SetPieChartImage():: chosen image is set to: \" \n\t\t \t+ pie);\n\t\t}\n\t\tm_PieChartImage = pie;\n\t}",
"void setStatusProperty(String property, Double value);",
"@JSProperty(\"tickPosition\")\n void setTickPosition(TickPosition value);",
"public void setAnnotation(DrawingComponent annotation)\n\t{\n\t\tthis.annotation = annotation;\n\t}",
"private void setPieChartData(Poll aPoll) {\n \tObservableList<Poll> pieChartPoll;\n \tint numberofParties = Factory.getInstance().getPartyNames().length; //number of parties\n \tPieChart.Data[] data = new PieChart.Data[numberofParties];\n \tPieChart.Data[] dataVotes = new PieChart.Data[numberofParties];\n \tParty[] sortedBySeats = aPoll.getPartiesSortedBySeats();\n \tParty[] sortedByVotes = aPoll.getPartiesSortedByVotes();\n \t// make this a loop instead. Based on the size of sortedSeats\n \tint i = 0;\n \tfor (i = 0; i < data.length; i++) {\n \t\tdata[i] = new PieChart.Data(sortedBySeats[i].getName(), sortedBySeats[i].getProjectedNumberOfSeats());\n \t\tdataVotes[i] = new PieChart.Data(sortedByVotes[i].getName(), sortedByVotes[i].getProjectedPercentageOfVotes());\n \t}\n \tseatsPieChart.setData(FXCollections.observableArrayList(data)); \n \tprecentVotesPieChart.setData(FXCollections.observableArrayList(dataVotes));\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n colLivro.setCellValueFactory((param) -> new SimpleStringProperty(param.getValue().getIDLivro().getTitulo()));\n colTempo.setCellValueFactory((param) -> {\n LocalDate dataEmprestimo = param.getValue().getDataEmprestimo().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n LocalDate dataAtual = LocalDate.now();\n int daysBetween = (int) Duration.between(dataEmprestimo.atStartOfDay(), dataAtual.atStartOfDay()).toDays();\n return new SimpleStringProperty(Integer.toString(daysBetween));\n });\n \n XYChart.Series serie1 = new XYChart.Series();\n //Date dateGrafico = Date.from(LocalDate.now().minusDays(10).atStartOfDay(ZoneId.systemDefault()).toInstant());\n LocalDate dateGrafico = LocalDate.now().minusDays(10);\n String s;\n EmprestimoDAO emprestimoDAO = new EmprestimoDAO(); \n for(int a=0; a<10; a++)\n {\n\n s = Integer.toString(dateGrafico.getDayOfMonth()) + \"/\" + Integer.toString(dateGrafico.getMonthValue());\n Date dataConvertida = Date.from(dateGrafico.atStartOfDay(ZoneId.systemDefault()).toInstant()); \n int valor = emprestimoDAO.getCountPerDate(dataConvertida);\n System.out.println(valor);\n serie1.getData().add(new XYChart.Data(s, valor));\n dateGrafico = dateGrafico.plusDays(1);\n \n }\n \n \n grafico.getData().clear();\n grafico.getData().add(serie1);\n \n \n Platform.runLater(() -> {\n EmprestimoDAO emprestimoDao = new EmprestimoDAO();\n ObservableList<Emprestimo> listaDeEmprestimos = FXCollections.observableArrayList();\n listaDeEmprestimos.addAll(emprestimoDao.getAllEmprestados());\n tabela.setItems(listaDeEmprestimos);\n });\n }",
"public void setFigure(BigDecimal figure) {\r\n this.figure = figure;\r\n }",
"void setDimension(Dimension dim);"
] | [
"0.6861996",
"0.5910034",
"0.5741698",
"0.56930053",
"0.568811",
"0.5609859",
"0.5566278",
"0.55656797",
"0.552725",
"0.55092585",
"0.54685515",
"0.541051",
"0.54002964",
"0.5396046",
"0.538377",
"0.5358828",
"0.53218865",
"0.52770567",
"0.5275736",
"0.52683586",
"0.5256325",
"0.5254165",
"0.5218958",
"0.52012014",
"0.51912004",
"0.51900953",
"0.5187288",
"0.51713634",
"0.51564956",
"0.51560557",
"0.5131628",
"0.51247436",
"0.5121453",
"0.51126754",
"0.51051164",
"0.51042426",
"0.50911933",
"0.5071039",
"0.50671107",
"0.50667673",
"0.5066606",
"0.5041366",
"0.5023602",
"0.5013282",
"0.50084156",
"0.5004808",
"0.500056",
"0.49977335",
"0.49938414",
"0.4993201",
"0.49893245",
"0.4977718",
"0.49744475",
"0.49703884",
"0.49691457",
"0.49639893",
"0.49587494",
"0.4957664",
"0.49550024",
"0.49478245",
"0.49449274",
"0.49418014",
"0.49350098",
"0.49200842",
"0.4918924",
"0.49188277",
"0.49170706",
"0.49062094",
"0.49053952",
"0.48992154",
"0.48917112",
"0.48809186",
"0.488041",
"0.4876793",
"0.48724386",
"0.48682",
"0.4863794",
"0.48392597",
"0.48390445",
"0.4837436",
"0.4832748",
"0.48279056",
"0.482708",
"0.48247316",
"0.48234397",
"0.48179564",
"0.4817796",
"0.48063308",
"0.48056242",
"0.48032883",
"0.48006323",
"0.48004103",
"0.47972602",
"0.4796583",
"0.479638",
"0.4796348",
"0.47962213",
"0.47889328",
"0.47798094",
"0.4777795"
] | 0.52380997 | 22 |
Get the Chart property. | public VerticalProfileChart getVerticalProfileChart() {
return chart;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@JsOverlay\n\tpublic final IsChart getChart() {\n\t\treturn getNativeChart().getChart();\n\t}",
"public JFreeChart getChart() {\n\t\treturn chart_;\n\t}",
"public Chart getChart() {\r\n return getAbstractChart().getChart();\r\n }",
"public JFreeChart getChart() {\n return chart;\n }",
"public HashMap<Integer, Boolean> getChart() {\n return chart;\n }",
"public message.Figure.FigureData.FigureProperty getProperty() {\n return property_;\n }",
"public message.Figure.FigureData.FigureProperty getProperty() {\n return property_;\n }",
"@JsProperty(name = \"chart\")\n\tnative Chart getNativeChart();",
"public ChartPanel getChartPanel();",
"public Rectangle getChartArea() {\n return chartArea;\n }",
"@Internal\n\tpublic CTChart getCTChart(){\n\t\treturn chart;\n\t}",
"public VisualProperty getVisualProperty() {\n \t\treturn vizProp;\n \t}",
"public ChartPanel getChartPanel(){ \n\t\t return CPUframe; \n\t}",
"public ChartTypes getChartTypes() { return _chartTypes; }",
"public String getProperty();",
"public DatatypeProp getProperty() {\n return property;\n }",
"public String getChartTitle() {\r\n if (chartTitle != null) {\r\n return chartTitle;\r\n }\r\n ValueBinding vb = getValueBinding(\"chartTitle\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) :\r\n DEFAULT_CHART_TITLE;\r\n }",
"public ChartType getChartType() {\r\n return EnumUtil.getEnum(ChartType.values(), getAttribute(\"chartType\"));\r\n }",
"message.Figure.FigureData.FigureProperty getProperty();",
"public HashMap<String, Integer> getGlobalChart() {\n\t\tsynchronized(this.globalChart) {\n\t\t\treturn this.globalChart;\n\t\t}\n\t}",
"public String GetPieChartImage() {\n\t\treturn m_PieChartImage;\n\t}",
"public ImageIcon getChart() {\n\t\t// Creating a new ImageIcon with a with of 1197 and height of 657\n\t\t return new ImageIcon(chart.createBufferedImage(1197,657));\n\t}",
"public JPanel getPanel() {\n\t\treturn barChartPanel;\n\t}",
"public Visualization getVisualization() {\r\n return this.vis;\r\n }",
"Property getProperty();",
"Property getProperty();",
"public Integer getProperty() {\n\t\t\treturn null;\n\t\t}",
"public Chart getChartOfAccounts() {\n return chartOfAccounts;\n }",
"public Chart getChartOfAccounts() {\n return chartOfAccounts;\n }",
"public Property getProperty() {\n\t\treturn _property;\n\t}",
"public Paint getSeriesPaint() {\n return this.seriesPaint;\n}",
"public String getPlot() {\n return plot;\n }",
"@ApiModelProperty(value = \"Chart Of Accounts of the Detailed Estimate Deduction\")\n\n\tpublic String getChartOfAccounts() {\n\t\treturn chartOfAccounts;\n\t}",
"ChartPackage getChartPackage();",
"public Plot getPlot(){\r\n\t\treturn plot;\r\n\t}",
"String getProperty();",
"String getProperty();",
"String getProperty();",
"public LineChartSeriesSettings getSettings() {\n return this.settings;\n }",
"public String GetBubbleChartImage() {\n\t\treturn m_BubbleChartImage;\n\t}",
"PlotControlType getPlotControl();",
"public Integer getChartTemplateId() {\n return chartTemplateId;\n }",
"public Properties getProperty() {\r\n return properties;\r\n }",
"public Paint getPaint() {\n return paint;\n }",
"@JSProperty(\"pane\")\n double getPane();",
"public ChartColumn getChartColumn() throws Exception {\n\t\tif (column == null &&\n\t\t\t\tgetRow() > -1 &&\n\t\t\t\tgetChart() != null &&\n\t\t\t\t!getChart().getColumns().isEmpty() &&\n\t\t\t\tgetRow() < getChart().getColumns().size()) {\n\t\t\tcolumn = getChart().getColumns().get(getRow());\n\t\t}\n\t\treturn column;\n\t}",
"public GraphPane getGraphPane() {\n return (GraphPane)getCanvasPane();\n }",
"@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineWidth() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineWidth());\n }",
"public String GetXYSplineChartImage() {\n\t\treturn m_XYSplineChartImage;\n\t}",
"public BigDecimal getFigure() {\r\n return figure;\r\n }",
"protected Visualizer getVis() {\n\t\treturn myVis;\n\t}",
"@Override\n\t\t\t\tprotected LineChartPanel getLineChartPanel() {\n\t\t\t\t\treturn lineChartPanel;\n\t\t\t\t}",
"@JSProperty(\"tickLength\")\n double getTickLength();",
"java.lang.String getProperty();",
"public DoubleProperty valueProperty() {\n return value;\n }",
"public String getChartConstructor() {\r\n return getAttributeAsString(\"chartConstructor\");\r\n }",
"public String GetBarChartImage() {\n\t\treturn m_BarChartImage;\n\t}",
"public String getMetric() {\n return this.metric;\n }",
"public String Get3DBarChartImage() {\n\t\treturn m_3DBarChartImage;\n\t}",
"public Object getData() {\r\n if (data != null) {\r\n return data;\r\n }\r\n ValueBinding vb = getValueBinding(\"data\");\r\n if (vb != null) {\r\n return vb.getValue(getFacesContext());\r\n } else {\r\n \r\n if(!Beans.isDesignTime()){\r\n setChartTitle(getChartTitle() + \" with default data\");\r\n }\r\n return DEFAULT_DATA;\r\n }\r\n }",
"public String GetScatterPlotChartImage() {\n\t\treturn m_ScatterPlotChartImage;\n\t}",
"public Paint getPaint() {\n return mPaint;\n }",
"public Plot2D getPlotter() {\n\t\treturn plot;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float[]> getLineDasharray() {\n return (PropertyValue<Float[]>) new PropertyValue(nativeGetLineDasharray());\n }",
"public LineChart e() {\n return ((b.b) this.b).k();\n }",
"public String getMetric() {\n return metric;\n }",
"public ObjectProperty<ColorGradient> colorGradientProperty() {\n return colorGradient;\n }",
"public ObservableList<Shape> drawDataProperty() { return drawData; }",
"@Internal\n\tpublic CTChartSpace getCTChartSpace(){\n\t\treturn chartSpace;\n\t}",
"public final DoubleProperty valueProperty() {\n return value;\n }",
"@Override\n\tpublic Pane getchart(int width, int height, boolean withdate) {\n\t\treturn fanChart.getchart(width, height, withdate);\n\t}",
"public String getProperty() {\n return \"\";\n }",
"String getPlotterName();",
"public String GetLineChartImage() {\n\t\treturn m_LineChartImage;\n\t}",
"private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }",
"@JSProperty(\"tickAmount\")\n double getTickAmount();",
"public String getProperty(String name);",
"public int getX()\n {\n return xaxis;\n }",
"public String getChartOfAccountsCode() {\n return chartOfAccountsCode;\n }",
"public static PVProperty getPVProperty() {\n return pvProperty;\n }",
"@NotNull\n public TICPlotType getPlotType() {\n return plotType.get();\n }",
"public Chart getContinuationChartOfAccount() {\n return continuationChartOfAccount;\n }",
"public Chart getContinuationChartOfAccount() {\n return continuationChartOfAccount;\n }",
"public int getPieRotation() {\n return mPieRotation;\n }",
"public DrawingComponent getAnnotation()\n\t{\n\t\treturn this.annotation;\n\t}",
"@JSProperty(\"tickColor\")\n @Nullable\n String getTickColor();",
"public final static String get(int datasetID) {\n\t\t\tString strValue = PROPERTIES.getProperty(datasetID+\"\");\n\t\t\t//log.info(\"GET dataset scale : \"+datasetID+\"=\"+strValue);\n\t\t\treturn strValue;\n\t\t}",
"public double getCopilot() {\r\n return copilot;\r\n }",
"public final ImageDimension[] getDependency()\n {\n return dependency;\n }",
"public String getProperty(String name) {\n return this.getProperty(name, null);\n }",
"public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }",
"public java.util.List<Series> getSeriesElement() { \n\t\tif (mySeries == null) {\n\t\t\tmySeries = new java.util.ArrayList<Series>();\n\t\t}\n\t\treturn mySeries;\n\t}",
"public String dimensionName() {\n return this.dimensionName;\n }",
"public int getPropertyFade()\n {\n return iPropertyFade.getValue();\n }",
"public BPCustomCharts() {\n FacesContext BPCustomcontext = FacesContext.getCurrentInstance();\n ValueBinding bpCustomValueBinding = \n BPCustomcontext.getApplication().createValueBinding(BPCustomChartBean.BEAN_NAME);\n bpCustomBean = \n (BPCustomChartBean) bpCustomValueBinding.getValue(BPCustomcontext); \n }",
"DetailsChartLayoutSettings getLayoutSettings() {\n return layoutSettings;\n }",
"public NGDSeries getSeries() {\n return series;\n }",
"public String getProperty() {\n Object ref = property_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n property_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"@Override\n\tpublic Object getProperty(String name, ImageObserver observer) {\n\t\treturn null;\n\t}",
"Color getCurrentPenColour() {\n return this.currentPenColour;\n }"
] | [
"0.7546865",
"0.72509634",
"0.7161823",
"0.71469843",
"0.70358354",
"0.69983506",
"0.69820565",
"0.69290173",
"0.6748412",
"0.6724672",
"0.64793146",
"0.6407233",
"0.62480277",
"0.6119031",
"0.60005933",
"0.5982601",
"0.59501016",
"0.5944647",
"0.5940069",
"0.5918169",
"0.5903494",
"0.5897444",
"0.58298415",
"0.58038574",
"0.5795505",
"0.5795505",
"0.57852376",
"0.57809824",
"0.57809824",
"0.57700217",
"0.5766888",
"0.57524514",
"0.5745012",
"0.57320976",
"0.5680954",
"0.56708527",
"0.56708527",
"0.56708527",
"0.5668128",
"0.56584775",
"0.5631958",
"0.5626051",
"0.55868685",
"0.55861574",
"0.55781174",
"0.5572146",
"0.5562807",
"0.55427784",
"0.55312496",
"0.5526281",
"0.5524301",
"0.5517166",
"0.5511229",
"0.5503995",
"0.54983026",
"0.54969746",
"0.5480353",
"0.5479692",
"0.5466046",
"0.546523",
"0.5441574",
"0.5435472",
"0.5431676",
"0.54292583",
"0.5421715",
"0.5412492",
"0.5403829",
"0.5392549",
"0.5385341",
"0.5374756",
"0.53706855",
"0.5365669",
"0.535532",
"0.5341989",
"0.5340574",
"0.53310674",
"0.5326262",
"0.53138316",
"0.5310194",
"0.53051174",
"0.53043234",
"0.53042704",
"0.53042704",
"0.52974826",
"0.52940255",
"0.5291101",
"0.5272868",
"0.52689236",
"0.52642554",
"0.52605367",
"0.52561355",
"0.525019",
"0.52499413",
"0.5237396",
"0.52356136",
"0.52288616",
"0.52280974",
"0.5219077",
"0.5216736",
"0.52099967"
] | 0.57025886 | 34 |
Most features will not modify the data returned to the view. This is limited to one feature that manipulates the data per grid view. Defaults to: false | public void setCollectData(int value) {
JsoHelper.setAttribute(getJsObj(), "collectData", value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void reloadGridsData() {\n \n }",
"public void setData(boolean isData);",
"public void setToGridPermanently(){\n this.isPermanent = true;\n }",
"public boolean is_set_feature() {\n return this.feature != null;\n }",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n public boolean flag() {\n cell.setState(cell.getFlaggedState());\n return true;\n }",
"public boolean forUpdateOfColumns() {\n \t\t// by default we report no support\n \t\treturn false;\n \t}",
"public boolean isShowGrid()\n {\n return showGrid;\n }",
"public void setTableData()\n\t{\n\t\tsetTableData(false);\n\t}",
"@Override\n public boolean canUpdate() { return false; }",
"protected boolean provideRefresh() {\n return false;\n }",
"@Override\n void generateFalseData() {\n \n }",
"@Override\n public boolean getDataResult() {\n return true;\n }",
"@Override\n public boolean getDataResult() {\n return true;\n }",
"@Override\n public boolean getDataResult() {\n return true;\n }",
"public void canelDataUpdate() {\n dataModel.cancelDataLoading();\n }",
"public boolean doModify() {\n return true;\n }",
"@Override\n\tpublic boolean model() {\n\t\treturn false;\n\t}",
"public void testEditBooleanCellWithOtherColumnOnSameFeatureName() throws Exception {\n final UITableRepresentation table = localSession.getLocalSessionBrowser().perCategory().selectViewpoint(\"read_only_column\").selectRepresentation(\"read_only_column\")\n .selectRepresentationInstance(\"new read_only_column\", UITableRepresentation.class).open();\n // Get the second line, which is actually the first sub-line of the first top-level line.\n SWTBotTreeItem[] items = table.getTable().getAllItems()[0].getItems();\n\n // Check the values before.\n assertEquals(\"newEReference1 : B0\", items[0].cell(0));\n assertEquals(\"false\", items[0].cell(1));\n assertEquals(\"false\", items[0].cell(2));\n\n pressKey(table.getTable(), \"arrow_down\");\n pressKey(table.getTable(), \"arrow_down\");\n pressKey(table.getTable(), \"arrow_right\");\n pressKey(table.getTable(), \"space\");\n\n table.getTable().display.syncExec(new Runnable() {\n public void run() {\n table.getTable().widget.update();\n }\n });\n \n // Check the values after: no change expected, the column through which we tried to do the edition has canEdit = <%false%>\n assertEquals(\"newEReference1 : B0\", items[0].cell(0));\n assertEquals(\"false\", items[0].cell(1));\n assertEquals(\"false\", items[0].cell(2));\n\n }",
"public void mo1087b() {\n this.f1007h = new SparseBooleanArray();\n notifyDataSetChanged();\n }",
"public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }",
"public void refreshDataFilter();",
"@Override\r\n\t\t\tpublic ObservableValue<Boolean> call(CellDataFeatures<Products, Boolean> arg0) {\n\t\t\t\tProducts products=arg0.getValue();\r\n\t\t\t\tSimpleBooleanProperty booleanProperty=new SimpleBooleanProperty(products.getIs_activated());\r\n\t\t\t\tbooleanProperty.addListener(new ChangeListener<Boolean>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tproducts.setIs_activated(arg2);\r\n\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET is_activated='\"+arg2+\"' WHERE id=\"+products.getId())>0) {\r\n\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\treturn booleanProperty;\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic boolean isEnabled() {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public boolean getKeepChangedValues();",
"public void setIsFromMassUpdate (boolean IsFromMassUpdate);",
"@Override\r\n protected boolean isUseDataSource() {\r\n return true;\r\n }",
"boolean shouldModify();",
"@DataProvider(name = \"populateTestDataProvider\")\n public Object[][] populateTestDataProvider() {\n return new Object[][] { { true }, { false } };\n }",
"public void setHaveData(boolean have) {\n super.setHaveData(have);\n updateStatus();\n }",
"protected boolean isDataChanged() {\n\n\t\treturn true;\n\t}",
"@Override\n public boolean areAllItemsEnabled() {\n return false;\n }",
"@Override\n public boolean isEnabled() {\n return false;\n }",
"@Override\n public boolean isEnabled() {\n return false;\n }",
"public Boolean getAlwaysRequestVisibleRows() {\r\n return getAttributeAsBoolean(\"alwaysRequestVisibleRows\");\r\n }",
"public void setShowGrid(boolean value) {\n\t\tthis.showGrid = value;\n\t}",
"public void processShowGrid(boolean selected) {\n dataManager.showGrid(selected);\n }",
"@Override\r\n\t\tpublic boolean editItem() {\n\t\t\treturn false;\r\n\t\t}",
"boolean doFilter() { return false; }",
"@Override\n public boolean shouldFilter() {\n return true;\n }",
"public void setHasCustom(boolean hasCustom);",
"public void prerender() {\n try{\n if (getSessionBean1().getCurrentAnalysisDSID() == null ) {\n //Select no rows\n getSessionBean1().getAnalysisdsfilelumiRowSet().setObject(1, \"-1\");\n analysisdsfilelumiDataProvider.cursorFirst();\n //analysisdsfilelumiDataProvider.refresh();\n }\n } catch (Exception e) {\n log(\"Cannot switch tso \" + e.getMessage());\n }\n \n analysisdsfilelumiDataProvider.refresh();\n \n }",
"@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}",
"public EsIndexPropertyBuilder setFieldData(Boolean value) {\n this.fieldData = value;\n return this;\n }",
"public void setViewfact( boolean newValue ) {\n __setCache(\"viewfact\", new Boolean(newValue));\n }",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"public boolean isRefreshBudgetDetails() {\r\n return refreshBudgetDetails;\r\n }",
"public default boolean shouldHideEntity(){ return false; }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn false;\n\t}",
"public boolean isVisidonModeEnabled() {\n return false;\n }",
"private void refreshFieldsVisibility()\n {\n \n }",
"@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}",
"@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}",
"public void setKeepChangedValues(boolean keepChanged);",
"@Override\npublic boolean isEnabled() {\n\treturn false;\n}",
"@Override\n\tpublic void setTensileShows(Boolean paramBoolean)\n\t{\n\n\t}",
"public List<Boolean> getLayerVisibility ()\n {\n return _tableModel.getLayerVisibility();\n }",
"private void refreshData() {\r\n\tif (fieldSpeciesContextSpec == null){\r\n\t\tsetData(null);\r\n\t} else {\r\n\t\tsetData(fieldSpeciesContextSpec.computeApplicableParameterList());\r\n\t}\r\n}",
"public boolean updateCustomer() {\n\t\treturn false;\r\n\t}",
"public void editEnabled(boolean enabled){\n }",
"@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}",
"@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}",
"@Override public boolean isEnabled() {\n return true;\n }",
"@Override // com.google.common.collect.ImmutableCollection\n public boolean isPartialView() {\n return true;\n }",
"public boolean is_set_data() {\n return this.data != null;\n }",
"public boolean is_set_data() {\n return this.data != null;\n }",
"@DataProvider(name = \"updateDirtyFieldsDataProvider\")\n public static Object[][] updateDirtyFieldsDataProvider() throws Exception {\n return new Object[][]\n {\n {true},\n {false},\n };\n }",
"@Override\n public boolean isDisableMetadataField() {\n return false;\n }",
"protected void setFilterInMapChanged() {\n rowCount = null;\n }",
"public boolean isEnableBatchRendering()\n {\n return enableBatchRendering;\n }",
"@Override\n public boolean isEnabled() {\n return Boolean.TRUE;\n }",
"public boolean getShowGrid() {\n\t\treturn this.showGrid;\n\t}",
"@Override\n\tpublic boolean datiUscitaImpegno() {\n\t\treturn false;\n\t}",
"public Boolean getIsDiscourseDataset() {\n return isDiscourseDataset;\n }",
"private void toggleMoreWorldOptions() {\n this.showMoreWorldOptions(!this.inMoreWorldOptionsDisplay);\n }",
"public boolean isLoadData() {\n return loadData;\n }",
"@DataProvider(name = \"restartingDocumentListDataProvider\")\r\n\tpublic static Object[][] restartingDocumentListDataProvider() throws Exception\r\n\t{\r\n\t\treturn new Object[][]\r\n\t\t{\r\n\t\t\t{false},\r\n\t\t\t{true},\r\n\t\t};\r\n\t}",
"@Override\r\n\tpublic void updateNiakwork(boolean isEnabled) {\n\t\t\r\n\t}",
"private void FalseFlag() {\r\n\t\tfor(int i = 0; i < rows_size; i ++ ) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].setFlag(false);\r\n\t\t}\r\n\t}",
"protected boolean batch() {\n return batch;\n }",
"public boolean shouldFilter() {\n return true;\n }",
"@Override\n public void onShowRefresh(boolean notUsed) {\n // nothing required for this assignment.\n }",
"@DataProvider(name = \"DataForTest2\")\n public Object[][] DataAreaExclusion() {\n\treturn new Object[][] { new Object[] { null } };\n }",
"@Override\n\tpublic boolean modifyUserData(Client cl) {\n\t\treturn false;\n\t}",
"@Override\n public void setVisible (boolean f)\n { \n }",
"private void toggleVisibleArrays() {\n if (showArray == true) {\n showArray = false;\n } else {\n showArray = true;\n }\n }",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"protected boolean areResultSetRowsTransformedImmediately() {\n \t\treturn false;\n \t}",
"@Override\n\t\t\tprotected void updateEnabled() {\n\t\t\t}",
"public void habDesabGrid(boolean hab){\n this.JTSimpleTable.setEnabled(hab);\n }",
"@Override // com.google.common.collect.ImmutableCollection\n public boolean isPartialView() {\n return true;\n }",
"public boolean isFromMassUpdate();",
"default public <V extends Vec> boolean setUsingData(List<V> dataSet) {\n return setUsingData(dataSet, false);\n }",
"void setAllData()\n {\n this.filteredLessons = allLessons;\n notifyDataSetChanged();\n }",
"public boolean toggleMiniMap() {\n miniMapVisible = !miniMapVisible;\n return miniMapVisible;\n }",
"public void setLoadDemoData(Boolean loadDemoData) {\n this.loadDemoData = loadDemoData;\n }"
] | [
"0.6015381",
"0.59284663",
"0.59087336",
"0.573642",
"0.5692907",
"0.5692907",
"0.5692907",
"0.5689459",
"0.56848776",
"0.56664306",
"0.56441903",
"0.5624024",
"0.5617067",
"0.56108147",
"0.5599925",
"0.5599925",
"0.5599925",
"0.55801266",
"0.5567337",
"0.556141",
"0.55585057",
"0.5550976",
"0.5546129",
"0.55274636",
"0.55206794",
"0.5516008",
"0.5513367",
"0.55121195",
"0.55115443",
"0.5500947",
"0.54784673",
"0.5466214",
"0.5462211",
"0.5452757",
"0.5413362",
"0.5413362",
"0.54116315",
"0.53971606",
"0.53959626",
"0.53397256",
"0.5327616",
"0.5326036",
"0.5323722",
"0.53188485",
"0.5318458",
"0.53112274",
"0.53096986",
"0.5301919",
"0.5301919",
"0.5297163",
"0.5292659",
"0.52797276",
"0.52797276",
"0.5267381",
"0.52635777",
"0.52622366",
"0.52622366",
"0.52616554",
"0.52540165",
"0.5233254",
"0.52302676",
"0.5226353",
"0.5213744",
"0.5212426",
"0.5209192",
"0.5199587",
"0.5199587",
"0.51978856",
"0.51901406",
"0.518312",
"0.518312",
"0.51826906",
"0.51817393",
"0.5180016",
"0.5176522",
"0.5169513",
"0.51610184",
"0.51568305",
"0.5149744",
"0.51470965",
"0.5142867",
"0.5138941",
"0.5138471",
"0.5135916",
"0.51330703",
"0.5132541",
"0.51322365",
"0.51296145",
"0.5128371",
"0.5128092",
"0.51277345",
"0.5127347",
"0.5127253",
"0.5120188",
"0.5119809",
"0.51147413",
"0.5097534",
"0.50901794",
"0.5089221",
"0.50881046",
"0.50861645"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.