Skip to content

Instantly share code, notes, and snippets.

View ghostandthemachine's full-sized avatar

Jon Rose ghostandthemachine

  • Origin Rose
  • Boulder, Colorado
View GitHub Profile
class BaseObject{
int cx;
int cy;
int px;
int py;
int x;
int y;
int xOffset = 0;
int yOffset = 0;
int w;
class Toggle extends BaseObject{
Toggle(){
super("",1,1,mouseX,mouseY);
w = 25;
h = 25;
scaleable = false;
}
void display(){
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);
import java.lang.Object.*;
class BaseNode{
int cx;
int cy;
int px;
int py;
int x;
int y;
/*
* 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.
/*
* 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
/*
* 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.
/*
* 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;
#!/usr/bin/ruby
class Utilities
@@cycle = nil
def self.cycle(a,b)
@@cycle == a ? @@cycle = b : @@cycle = a
end
end
start = Time.now
/*
* 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.
*