text
stringlengths
14
410k
label
int32
0
9
public static void main(String[] args) throws IOException { FileSystem fs = FileSystem.get(new Configuration()); Path[] pages = FileUtil.stat2Paths(fs.listStatus(new Path(args[0]), new PathFilter(){ @Override public boolean accept(Path path) { return path.getName().endsWith(".html"); } })); FS...
9
private Koordinate getMax(WarMachine warMachine, Koordinate koord, Ausrichtung ausrichtung) { switch (ausrichtung) { case XPLUS: return new Koordinate(koord.getX() + warMachine.getLaenge() - 1, koord.getY() + warMachine.getBreite() - 1); case XMINUS: return koord; case YPLUS: return new Koordin...
4
public static int getMouseButtonCode(MouseEvent e) { switch (e.getButton()) { case MouseEvent.BUTTON1: return MOUSE_BUTTON_1; case MouseEvent.BUTTON2: return MOUSE_BUTTON_2; case MouseEvent.BUTTON3: return MOUSE_BUTTON_3; ...
3
public synchronized boolean equals(Object obj) { if (!(obj instanceof BatchFileFetchResult)) return false; BatchFileFetchResult other = (BatchFileFetchResult) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equal...
9
private boolean validarDatos() { //unicamente valido el numero de cuenta boolean valido = false; Validaciones val = new Validaciones(); if (jTextField1.getText().equals("") || jTextField2.getText().equals("")){ mensajeError("Ingrese un valor para Desde.. Hasta."); ...
6
private void createWheel(int n, boolean edges) { double d = canvas.getHeight() / 3 * Math.sqrt(n) / 5; createVertex(0.0, 0.0, getNewVertexID()); for (int i = 0; i < n; ++i) { createVertex(d * Math.sin(i * 2 * Math.PI / n), -d * Math.cos(i * 2 * Math.PI / n), getN...
3
public Connection avaaYhteys() throws DAOPoikkeus { try { return DriverManager.getConnection( DBConnectionProperties.getInstance().getProperty("url"), DBConnectionProperties.getInstance().getProperty("username"), DBConnectionProperties.getInstance().getProperty("password")); } catch(Exception e)...
1
public void start() { end = false; try { ServerSocket ss = new ServerSocket(port); while (!end) { //Accept socket and create a new ClientThread Socket s = ss.accept(); ClientThread ct = new ClientThread(s); clientList.add(ct); ct.start(); } try { //Attempt to close sockets/clients...
5
private BufferedImage decode() throws IOException { ImageReadParam readParam = null; if (getDecode() != null) { // we have to allocate our own buffered image so that we can // install our colour model which will do the desired decode readParam = n...
3
public boolean equals(Object obj) { if (!(obj instanceof UUID)) return false; if (((UUID)obj).variant() != this.variant()) return false; UUID id = (UUID)obj; return (mostSigBits == id.mostSigBits && leastSigBits == id.leastSigBits); }
3
@Override public String introduceYourself() { return "TextQuest"; }
0
private boolean check1(int i, int j) { int first = getMatrix(i, j); if (first == 0 || first == -1) { return false; } int second = getMatrix(i, j + 1); int third = getMatrix(i, j + 2); if (first == second && first == third) { return true; } return false; }
4
public Void doInBackground() { setProgress(0); ArrayList<Point2D> ser = new ArrayList<Point2D>(); int count = 0; int total = seqs.size()*(seqs.size()-1)/2; int step = total/10+1; int[] hist = new int[seqs.getMaxSeqLength()]; ...
7
private String checkFieldAndReturnTransferType() { int fromProjectID = ((KeyValue) cmbFromProject.getSelectedItem()).getKey(); int toProjectID = ((KeyValue) cmbToProject.getSelectedItem()).getKey(); int fromDepartmentID = ((KeyValue) cmbFromDepartment.getSelectedItem()).getKey(); int toD...
9
public Date getToOpenDate () { Date toOpenDate = null; for (ReceptionsFilter filter: filters) { if (filter instanceof OpenDateReceptionsFilter) { OpenDateReceptionsFilter openDateFilter = (OpenDateReceptionsFilter) filter; Date filterToOpenDate = openDateFil...
6
public String nextToken() throws JSONException { char c; char q; StringBuffer sb = new StringBuffer(); do { c = next(); } while (Character.isWhitespace(c)); if (c == '"' || c == '\'') { q = c; for (;;) { c = next(); ...
9
private final boolean cvc(int i) { if (i < 2 || !cons(i) || cons(i - 1) || !cons(i - 2)) return false; { int ch = b[i]; if (ch == 'w' || ch == 'x' || ch == 'y') return false; } return true; }
7
public static void rotateExpansionVector() { int eX = expansionVector.x, eY = expansionVector.y; if(eX == 1 && eY == 0) { eX = 0; eY = 1; } else if(eX == 0 && eY == 1) { eX = -1; eY = 0; } else if(eX == -1 && eY == 0) { eX = 0; eY = -1; } else if(eX == 0 && eY == -1) { e...
8
public static boolean canUseReju(){ return ActionBar.getNode(0).canUse() && Equipment.containsOneOf(EquipShield.shieldId) && ActionBar.getAdrenaline() == 1000 && getHpPercent() <= Eat.HEAL_PERCENT && getHpPercent() > Eat.HEAL_PERCENT - 10; }
4
@Override public void mousePressed(MouseEvent e) { if (_action != null) { if ((!isInBounds(e.getPoint())) || (_cards == null)) { return; } for (int i = _cards.size() - 1; i >= 0; i--) { if (_cards.get(i).isInBounds(e.getPoint())) { ...
5
public InnerClassInfo[] getOuterClasses() { if ((status & OUTERCLASSES) == 0) loadInfo(OUTERCLASSES); return outerClasses; }
1
static void setEngineColor(String turn) throws IOException { switch (turn) { case "white": color = "white"; isForced = false; while (true) { if (Moves.computeMove() == 1) { break; } ...
4
public static void Filegen(String srcFilePath, String destFilePath,int rtpStreamPort) { int bytesRecieved = 0; int fileIndex=0; FileOutputStream fo=null; DataOutputStream dOut=null; long videoDuration = 0; File sourceVideo=new File(srcFilePath); VideoDetails ...
9
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed // TODO add your handling code here: programmerThread.stop(); hidePanels(lastPane); world.worldDeleter(); world.initWorld(); //paint this.repaint()...
0
private void getLastLogin() { try { directory = new File("C:/PassGuard/"); lastLoginName = new File("C:/PassGuard/LatestLogin"); if (!directory.isDirectory()) { directory.mkdir(); } if (lastLoginName.isFile()) { reader = new BufferedReader(new FileReader(lastLoginName));...
4
public SkipWhileIterator(Iterable<T> source, Predicate<T> predicate) { this._source = source.iterator(); this._predicate = predicate; }
0
private static void startPlugins() { List<IPlugin> pluginList = plugins.getPluginList(); for (IPlugin plugin : pluginList) { try { // if (plugin instanceof org.myjfinal.plugin.activerecord.ActiveRecordPlugin) { org.myjfinal.plugin.activerecord.ActiveRecordPlugin arp = (ActiveRecordPlugin) plugin; ...
5
public void restorePlayerData() { p.getEquipment().clear();//clear equipment, without this it doesn't remove items p.getInventory().setContents(inventory); p.setExp(exp); p.getInventory().setBoots(boots); p.getInventory().setLeggings(leggins); p.getInventory().setChestpla...
3
public void mergeContinueStack(VariableStack stack) { if (continueStack == null) continueStack = stack; else continueStack.merge(stack); }
1
private long fromVals(final int wordNumber, final int[] vals) { if(wordNumber * 32 > vals.length) { System.out.println("Wordnumber is too large for vals\t" + wordNumber + "\t" + vals.length); return -1; } int last = (wordNumber + 1) * 32; if(last > vals.length) { last = vals.length; } ...
7
private void bijnamenToevoegen(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { List<String> fouten = new ArrayList<>(); long docentNr = Long.parseLong(request.getParameter("docentNr")); String bijnaam = request.getParameter("bijnaam"); if (bijnaam == null || b...
4
@Override public Object applyFilters(PropertyContainer container, Object value) { for (int i = 0; i < filters.size(); i++) { PropertyFilter filter = (PropertyFilter) filters.get(i); value = filter.filter(container, value); } return value; }
1
public ArrayList<Integer> spiralOrder(int[][] matrix) { ArrayList<Integer> result = new ArrayList<Integer>(); if (matrix.length == 0) return result; init(matrix.length, matrix[0].length); while (!closed) { result.add(matrix[index[0]][index[1]]); next()...
2
@Override protected void reactPressed(MouseEvent event) { ProgramState curr = StateMachine.getState(); if (curr != ProgramState.ARR_EDITING && curr != ProgramState.ARR_PLAYING) { if (isPressed) { isPressed = false; releaseImage(); StateMach...
3
@Override public E getEdge(D s, D e) { IndexVertex<D> vs = null ; IndexVertex<D> ve = null ; double weight = -1; Iterator<IndexVertex<D>> it = vset.iterator(); while ( it.hasNext()) { IndexVertex<D> iv = it.next(); if ( iv.getData().equals(s) ) { vs = iv; } if ( iv.ge...
9
public boolean loadClassDuration(OffRec off, boolean ignoreSSL) throws IOException { if (off.getKey() == null) return false; // https://www.edx.org/api/catalog/v2/courses/course-v1:DelftX+TP101x+3T2015 // "https://www.edx.org/api/catalog/v2/courses/course-v1:"; String newUrl = "https://www.edx.org/api/cat...
4
private ArrayList<MelhorPropostaCupom> ordenarPropostas(ArrayList<MelhorPropostaCupom> propostasAceitas){ ArrayList<MelhorPropostaCupom> propostasOrdenadas = new ArrayList<MelhorPropostaCupom>(); int count = propostasAceitas.size(); AID menorAID; while(propostasAceitas.size() > 0){ MelhorPropostaCu...
3
private static void checkColumnForMostWanted() throws Exception { HashMap<String, Double> outputVals = new HashMap<String, Double>(); BufferedReader reader = new BufferedReader(new FileReader(new File( ConfigReader.getChinaDir() + File.separator + "Kathryn_update_NCBI_MostWanted" + File.separator + ...
7
public NodeList findNodes(String expr) throws XPathExpressionException { return (NodeList) evaluateXPath(expr, NODESET); }
0
* The type of the patch, as a constant from OPT. */ public void storeUndo(UndoPatch undo, int patchType) { undo.opTag = patchType; while (patchIndex < undoPatches.size()) { undoPatches.remove(undoPatches.size() - 1); } if (!undoCanMerge || patchIndex == 0 || !undoCompatible(und...
4
public static int position(Byte[] jeu, byte player){ int val=0; byte opponent=0; Byte empty = 0; if (player == 1) opponent = 2; else if (player == 2) opponent = 1; else System.out.println("erreur IA"); /* POSITION IA */ int [] tabIA = {0, 0,500, 1000, //vert ...
7
public static void findMaxSubArray(int[] inputArray) { int maxStartIndex = 0; int maxEndIndex = 0; int maxSum = Integer.MIN_VALUE; int cumulativeSum = 0; int maxStartIndexUntilNow = 0; for (int currentIndex = 0; currentIndex < inputArray.length; currentIndex++) { ...
8
public void run() { while (running == true) { if (socket.isClosed()) { listener.receiveMessage("DIS:", client); } String line; try { line = in.readLine(); if (line != null) listener.receiveMessage(line, client); } catch (SocketTimeoutException e) { c...
5
public static char[][] build_trans_block(int[] key_num,String key) { int col=key_num.length; int row=26/col; if(row*col!=26) { row+=1; } char[][] result=new char[row][col]; boolean[] filled=new boolean[26]; int cur_row=0; int cur_col=0; for(int i=0;i<key.length();i++) { char cur...
7
public void execute(String[] args) throws Exception { processArguments(args); String theAttr = (String)attributeNames.toArray()[0]; String theVal = (String)attributeNames.toArray()[1]; if (objectName == null) throw new CommandException("Missing object name"); log.debug("attribute names: " + at...
9
public void stopKI() { // Set the State to KI stop switch (state) { case caculateKI: setState(State.stopCaculateKI); break; case caculateHelpKI: setState(State.stopCaculateHelpKI); break; case checkPossible: ...
7
public Object getStat() throws Exception { Connection c = con.connect(); try { ResultSet set = c.prepareStatement(query).executeQuery(); if (set.next()) { return set.getObject(1); } else { return "<Empty Query Result>"; ...
1
public static Position getNextPosition(LineNumberReader reader) { try { String line = reader.readLine(); if(line == null) { throw new PositionFileException("The specified file contains not enough positions"); } try { String[] parts = line.split(","); if(parts.length < 3) { throw new Posi...
4
public Wall[] getWalls(){ Wall[] wallsRes = new Wall[walls.size()]; for (int i = 0; i < walls.size(); i++){ wallsRes[i] = walls.get(i); } return wallsRes; }
1
public static int findNumThanks(String content) { if (content != null && !content.equals("")) if (content.contains("Thanks") || content.contains("thanks") || content.contains("Thank you") || content.contains("thank you") || content.contains("thx")) return 1; return 0; }
7
private ArrayList<String> sortAlphanumeric(ArrayList<String> array) { ArrayList<String> sorted = new ArrayList<String>(); for (String s : array) { sorted.add(binarySearch(s, sorted), s); } return sorted; }
1
@Inject public SchedulerProvider( SchedulerConfiguration schedulerConfiguration ) throws SchedulerException { StdSchedulerFactory schedulerFactory = new StdSchedulerFactory(); if ( schedulerConfiguration.getProperties() != null ) { schedulerFactory.initialize( schedu...
2
public void addThread(ChatServerThread thread){ //replaces the first dead thread with this one, taking its id int count = threads.size(); boolean found = false; for (int i = 0; i<count; i++){ ChatServerThread thread2 = threads.get(i); if (thread2==null || !thread2.isAlive()){ ...
4
public void displayInfo(){ String myPieces = ""; String needPieces = ""; for(int i=0; i < manager.myPieces.length; i++){ if(manager.myPieces[i]){ myPieces = myPieces + i + ", "; } else { needPieces = needPieces + i + ", "; } } myPiecesPanel.havePieces.setText(myPieces); neededPiecesPanel.ne...
9
private final String getChunk(String s, int slength, int marker) { StringBuilder chunk = new StringBuilder(); char c = s.charAt(marker); chunk.append(c); marker++; if (isDigit(c)) { while (marker < slength) { c = s.charAt(marker...
5
protected void attemptFeedSheep(Player player, Sheep sheep) { /* Support for sheared state (setting), using that now. * If the sheep is sheared, then add to growing (if holding a food item and the sheep isn't growing already. Remove from naked list. * If not sheared, then add to naked list. */ if ( sheep....
5
public static void main(String[] args) { String[][] test={{"JFK","SFO"},{"JFK","ATL"},{"SFO","ATL"},{"ATL","JFK"},{"ATL","SFO"}}; System.out.println(new OJ332().findItinerary(test)); }
0
public boolean containsPoint(float pointX, float pointY) { // FIRST MOVE THE POINT TO LOCAL COORDINATES pointX = pointX - x; pointY = pointY - y; boolean inXRange = false; if ((pointX > aabbX) && (pointX < (aabbX + aabbWidth))) { inXRange = true; ...
5
public void stillGraphics(Client curPlr, int absX, int absY, int heightLevel, int id, int pause) { for(Player p : Server.getPlayerManager().getClientRegion((curPlr).currentRegion)){ if (p == null) continue; if (!p.isActive) continue; if (p.disconnected) continue; Client c = (Client) p; i...
6
public Item(String aDescription, int aPartNumber) { description = aDescription; partNumber = aPartNumber; }
0
public static synchronized Address getInstance(String addressType) { int index = -1; if (addresses == null) { addresses = new ArrayList<>(); Address address = new Address(addressType); addresses.add(address); index = 0; } else { int counter = 0; for (Address address : addresses) { if (addr...
4
private void getVariables() { for (int i = 0; i < exprBool.length(); i++) { char c = exprBool.charAt(i); if (c >= 'A' && c <= 'Z') { if (variables.indexOf(c) < 0) variables += c; } } }
4
public static void main(String[] args) { /* Exceptions - Rules to Remember * A try block may be followed by multiple catch blocks, and the catch blocks may be followed by a single finally block * A try block may be followed by either a catch or a finally block...
1
private void addOption(Element rootElement, String attrName, Serializable attrValue) { if (attrValue != null) { rootElement.setAttribute(attrName, attrValue.toString()); } }
1
@ Override public boolean equals(Object obj) { if (obj instanceof Coordinate2D) { Coordinate2D another = (Coordinate2D) obj; return (x == another.getX () && y == another.getY ()); } else return false; }
2
public void setConcurrent(){ this.concurrent = true; }
0
@Override public void removeEdgesTo(N to) { if(containsNode(to)) { for(N node : nodes.keySet()) { List<WeightedEdge<N, W>> edgesFrom = edgesFrom(node); for(WeightedEdge<N, W> edge : edgesFrom) { if(edge.to.equals(to)) { nodes.get(node).remove(edge); } } } } }
4
public void test5() { if (b) ; else if (b) { if (b || (new Integer(i)).toString().contains("Whatever") && new Double(d).compareTo(new Double(5.0)) > 55 || !(i >> 2 > 0) && (new String()) instanceof Object) ; } else ; }
7
private static int facSum(int n, int[] f){ int s = 0; for(char c : Integer.toString(n).toCharArray()){ s+=f[Integer.parseInt(""+c)]; } return s; }
1
public void load(){ Scanner sc; try { sc = new Scanner(new File("save.txt")).useDelimiter("\\s"); // Luetaan tiedostosta save.txt, käytetään erottimena " " pelaajat.removeAll(pelaajat); pelaajat.add(new Pelaaja(sc.nextLine())); pelaajat.add(new Pelaaja(sc.nextLine())); currentPelaaja=sc.nextInt(); ...
4
@Override public YamlPermissionRcon getRcon() throws DataLoadFailedException { checkCache(PermissionType.GROUP, "rcon"); return (YamlPermissionRcon) cache.get(PermissionType.RCON).get("rcon"); }
0
private void push(JSONObject jo) throws JSONException { if (this.top >= maxdepth) { throw new JSONException("Nesting too deep."); } this.stack[this.top] = jo; this.mode = jo == null ? 'a' : 'k'; this.top += 1; }
2
@After public void tearDown() throws Exception { this.cacheKey = null; this.cache = null; }
0
public HashMap<String, String> getRow(String testcase,String ...sheetName) { HashMap<String,String> testData = new HashMap<String,String>(); String testSheetName; if (sheetName.length == 1){ testSheetName = sheetName[0]; }else{ testSheetName = getTestSheetName(testcase); } HSSFSheet testSheet...
5
public static Family getFamily() { String name = System.getProperty("os.name"); if(name.equalsIgnoreCase("freebsd")) return Family.FREEBSD; else if(name.equalsIgnoreCase("openbsd")) return Family.OPENBSD; else if(name.equalsIgnoreCase("mac os x")) return Family.OSX; else if(name.equalsIgnoreCase("solaris") |...
7
@Override public String toString(){ return "Hero : " + hero.toString() + "\n"; //"Weapon : " + weaponSlot.toString() + "\n"+ //"head armor : " + headArmorSlot.toString() + "\n" + //"Body armor : " + bodyArmorSlot.toString() + "\n"; }
0
@Override public void incCount(E data) { if(head == null){ // We have an empty list - create the first node with data as its value head = new ListNode(data); }else { // We have a non-empty list - let's try to find a matching node ListNode current = head; // Is the head a match? If so, increment and ...
5
public static boolean isCacheOld(String player) { PlayerCache checkPlayer = getPlayerCache(player); if(checkPlayer._playerJobs.isEmpty()) return true; if (Bukkit.getPlayer(player) != null) return false; boolean deletecache = false; Iterator<Stri...
6
private int checkNumber(int i) { int sum = 0; List<Integer> djelitelji = new ArrayList<Integer>(); for (Integer prim : primBrojevi) { if (i == prim) { return 1; } else { if (i % prim == 0) { sum++; djelitelji.add(prim); } } } if (sum == 1) { return 4; } else if (sum % 2 =...
8
public String getRef() { return ref; }
0
public void log(Clickstream clickstream) { if (clickstream == null) return; StringBuilder output = new StringBuilder(); String hostname = clickstream.getHostname(); HttpSession session = clickstream.getSession(); String initialReferrer = clickstream.getInitialReferrer(); Date start = clickstream.getStart(...
7
@Override public Object getCellEditorValue() { if (isPushed) { doEditing(); } isPushed = false; return new String(label); }
1
public void populateSerialsJlist() { journalSerialListModel.clear(); conferenceSerialListModel.clear(); viewConferences.clear(); viewJournals.clear(); if (!model.getConferences().isEmpty()) { getAddConPaperButton().setEnabled(true); for (int i = 0; i < model.getConferences().size(); i++) { ...
8
public synchronized void cancel(Cancelable root) { root.cancelTask(); TreeNode rootNode = findNodeInTaskTrees(root); if (rootNode instanceof TreeNode) { List children = rootNode.getChildren(); TreeNode parentNode = rootNode.getParent(); for (Iterator iter = children.iterator(); iter.hasNex...
3
public void enter(String plr,int num) throws InterruptedException, FileNotFoundException, UnsupportedEncodingException{ String gname; int found=0; int amt=0; int write=0; int cnt=0; String nme; while (found==0){ cnt=GosLink2.names.size(); for (int i=0;i<cnt;i++){ if(GosLink2.names.get(i)!=null){...
9
@Override public boolean verifier() throws SemantiqueException { if(gauche instanceof Identificateur && !gauche.verifier()){ GestionnaireSemantique.getInstance().add(new SemantiqueException("La declaration de la variable "+((Identificateur) gauche).getNom()+" a la ligne "+line+" est manquant...
4
private Roster readRoster(ByteArrayInputStream inputStream) throws XmlException, IOException { final Roster roster = new Roster(); try { SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser(); saxParser.parse(inputStream, new DefaultHandler() { @Overr...
6
@Override public Object getClock() { return (Object) this.clock; }
0
public static void main(String[] args){ boolean estMisAssertion = false; assert estMisAssertion = true; System.out.println("Lancement du programme Pair"); if (estMisAssertion) System.out.println("Veuillez patienter quelques instants ...\n"); FichierConfiguration fichierConf = new FichierConfiguration("confi...
5
public String getTypeAlias(String typeSig) { String alias = (String) aliasesHash.get(typeSig); if (alias == null) { StringBuffer newSig = new StringBuffer(); int index = 0, nextindex; while ((nextindex = typeSig.indexOf('L', index)) != -1) { newSig.append(typeSig.substring(index, nextindex + 1)); i...
2
@Override public void fatalError(JoeException someException) { System.out.println(someException.getMessage()) ; this.errorOccurred = true; } // end method fatalError
0
protected void checkForHitLeft(Paddle paddle) { if (ballX <= (paddle.getX() + ballSize)) { if (ballY >= paddle.getY() - ballSize + 1 && ballY <= paddle.getY() + paddle.getLength() - 1) { hits1++; dx = right; dy = 0; // this is a direct hit int paddleCenter = paddle.getY() + paddle.getLength() ...
5
public String getName() { return name; }
0
@NotifyChange({"sessionChronometrages","finisOrNotCreated"}) public void initSession(){ //sessionChronometragePrincipale =new SessionChronometrage(course, voiture); //voiturePrincipale = voiture; if(course != null){ if(voiturePrincipale != null){ this.sessionChronometragePrincipale =null; for(Session...
6
private Object processMessage(Object obj, Throwable t) { StringBuilder str = new StringBuilder(); obj = str.append("会话ID:").append(ESBSessionUtils.getSessionID()).append(":").append(ESBSessionUtils.getServers().length) .append(":").append(obj); if (t != null && t ins...
8
public void delStep(int i){ if (steps.size()>i && !steps.isEmpty() && i > -1){ steps.remove(i); calcMashSchedule(); } }
3
public boolean isInferenceComplete() { if (inferenceWorker != null) { return inferenceWorker.isDone(); } return true; }
1
@Override public boolean isDone(Game game) { boolean ended = super.isFinished(game); if(ended) return true; if(game.getNumSprites(itype) - game.getNumDisabledSprites(itype) >= limit && canEnd) { countScore(game); return true; } return fa...
3
private List<INode> mergeVirtualPlaces(ISubModel model) { List<INode> markToBeDeleted = new ArrayList<INode>(); /* Parcours des places susceptibles d'être liées (VIRTUAL) */ LOG.fine("Processing virtual places"); for (IPlace place : model.getPlaces()) { if (place.isTyped(IPlace.VIRTUAL)) { IPlace virtua...
8
public void move() { x += dx; y += dy; if (x < 1) { x = 1; } if (y < 1) { y = 1; } //System.out.println("OLD-Mouse: " + this.oldMousePos[0] + " | " + this.oldMousePos[1] + " Neue Mouse-Pos " + this.mousePosition[0] + " | " ...
5