CCurve -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //******************************************************************** // CCurve.java Author: Lewis/Loftus // // Solution to Programming Project 11.10 // // Encapsulates the C-curve fractal. //******************************************************************** import java.awt.Graphics; public class CCurve extends RecursiveFractal { private final int MAX_ORDER = 15; private final String name = "The C-Curve Fractal"; private final int NUM_COORDINATES = 4; private final int LEFTX = 0, RIGHTX = 1, TOPY = 2, BOTTOMY = 3; int order; public CCurve() { order = 1; } //----------------------------------------------------------------- // Returns the maximum fractal order. //----------------------------------------------------------------- public int getMaxOrder() { return MAX_ORDER; } //----------------------------------------------------------------- // Returns the current fractal order. //----------------------------------------------------------------- public int getOrder() { return order; } //-----------------------------------------------------------------...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Page1 / 2

CCurve -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online