Logo Search packages:      
Sourcecode: jfractionlab version File versions  Download package

FieldOfCircles.java

package jfractionlab.displays;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JComponent;

import jfractionlab.JFractionLab;

public class FieldOfCircles extends JComponent {

      static final long serialVersionUID = JFractionLab.serialVersionUID;
            /**
             * 
             */
            public FieldOfCircles() {
            
            }
            /**
             * 
             * @param numerator
             * @param denominator
             */
            public FieldOfCircles(int numerator, int denominator){
                  
            }//konstruktor bildklasse

            /**
             * 
             */
            @Override
            public void paintComponent(Graphics g){
                  Graphics2D screen2D = (Graphics2D)g;
//                screen2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                  //Farbe einstellen
                  screen2D.setColor(Color.yellow);
            }//paint

//          private void getShorterSide(){
//                if (getHeight() < getWidth()){
//                      shorterside = getHeight();
//                }else{
//                      shorterside = getWidth();
//                }//if
//          }//getKleineSeite

}//pizzaklasse

Generated by  Doxygen 1.6.0   Back to index