This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseObject{ | |
int cx; | |
int cy; | |
int px; | |
int py; | |
int x; | |
int y; | |
int xOffset = 0; | |
int yOffset = 0; | |
int w; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Toggle extends BaseObject{ | |
Toggle(){ | |
super("",1,1,mouseX,mouseY); | |
w = 25; | |
h = 25; | |
scaleable = false; | |
} | |
void display(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private SGNode createSmiley() { | |
SGShape circle = new SGShape(); | |
circle.setShape(new Ellipse2D.Float(-20f, -20f, 40f, 40f)); | |
circle.setFillPaint(Color.YELLOW); | |
circle.setMode(SGShape.Mode.STROKE_FILL); | |
circle.setDrawStroke(new BasicStroke(0.15f)); | |
circle.setDrawPaint(Color.black); | |
circle.setAntialiasingHint(RenderingHints.VALUE_ANTIALIAS_ON); | |
SGShape leftEye = createFill(new Ellipse2D.Float(-8.5f, -11f, 5f, 8f)); | |
SGShape leftDimple = createStroke(createArc(4f, P(-14.6f, 5.7f), P(-10.6f, 2.7f)), 0.5f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.Object.*; | |
class BaseNode{ | |
int cx; | |
int cy; | |
int px; | |
int py; | |
int x; | |
int y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The contents of this file are subject to the terms of the Common Development | |
* and Distribution License (the License). You may not use this file except in | |
* compliance with the License. | |
* | |
* You can obtain a copy of the License at http://www.netbeans.org/cddl.html | |
* or http://www.netbeans.org/cddl.txt. | |
* | |
* When distributing Covered Code, include this CDDL Header Notice in each file | |
* and include the License file at http://www.netbeans.org/cddl.txt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | |
* | |
* Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved. | |
* | |
* The contents of this file are subject to the terms of either the GNU | |
* General Public License Version 2 only ("GPL") or the Common | |
* Development and Distribution License("CDDL") (collectively, the | |
* "License"). You may not use this file except in compliance with the | |
* License. You can obtain a copy of the License at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The contents of this file are subject to the terms of the Common Development | |
* and Distribution License (the License). You may not use this file except in | |
* compliance with the License. | |
* | |
* You can obtain a copy of the License at http://www.netbeans.org/cddl.html | |
* or http://www.netbeans.org/cddl.txt. | |
* | |
* When distributing Covered Code, include this CDDL Header Notice in each file | |
* and include the License file at http://www.netbeans.org/cddl.txt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package ofvisual.node; | |
import org.netbeans.api.visual.action.*; | |
import java.awt.BasicStroke; | |
import java.awt.Color; | |
import java.awt.Graphics2D; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
class Utilities | |
@@cycle = nil | |
def self.cycle(a,b) | |
@@cycle == a ? @@cycle = b : @@cycle = a | |
end | |
end | |
start = Time.now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 11/01/2004 | |
* | |
* SearchToolBar.java - Toolbar used by RText for quick searching. | |
* Copyright (C) 2004 Robert Futrell | |
* robert_futrell at users.sourceforge.net | |
* http://rtext.fifesoft.com | |
* | |
* This file is a part of RText. | |
* |
OlderNewer