/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package j; /** * * @author user */ public class Circulo implements Forma { private float radio; private float color; public Circulo(float f, String amarillo) { this.radio= radio; this.color= color; } public float getRadio() { return radio; } public void setRadio(float radio) { this.radio = radio; } public float getColor() { return color; } public void setColor(float color) { this.color = color; } @Override public boolean cuadroFixText(String text) { System.out.println("Forma: Circulo\nEspacio: "+this.radio*2+"\nLongitud Texto: "+text.length()); return text.length() <= radio*2; //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } }