home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Component;
- import java.awt.Dimension;
- import java.awt.Graphics;
- import java.awt.Image;
-
- public class ZeroGa2 extends Component {
- // $FF: renamed from: a java.awt.Image
- public Image field_0 = null;
-
- public void update(Graphics var1) {
- this.paint(var1);
- }
-
- public void paint(Graphics var1) {
- if (this.field_0 == null) {
- super.paint(var1);
- } else {
- var1.clearRect(0, 0, this.getSize().width, this.getSize().height);
- var1.drawImage(this.field_0, 0, 0, this);
- super.paint(var1);
- }
-
- }
-
- // $FF: renamed from: a (java.awt.Image) void
- public void method_0(Image var1) {
- if (this.field_0 != null) {
- this.field_0.flush();
- }
-
- this.field_0 = var1;
- if (this.field_0 != null) {
- ((Component)this).prepareImage(this.field_0, this);
- this.setSize(this.getSize());
- ((Component)this).repaint();
- }
-
- }
-
- public Dimension getSize() {
- return this.field_0 == null ? new Dimension(0, 0) : new Dimension(this.field_0.getWidth(this), this.field_0.getHeight(this));
- }
-
- public Dimension getPreferredSize() {
- return this.getSize();
- }
-
- public Dimension getMaximumSize() {
- return this.getSize();
- }
-
- public Dimension getMinimumSize() {
- return this.getSize();
- }
-
- public void setSize(Dimension var1) {
- super.setSize(this.getSize());
- }
- }
-