org.sunflow.system

Class ImagePanel

Implemented Interfaces:
Display

public class ImagePanel
extends JPanel
implements Display

Constructor Summary

ImagePanel()

Method Summary

void
fit()
void
imageBegin(int w, int h, int bucketSize)
void
imageEnd()
void
imageFill(int x, int y, int w, int h, Color c)
void
imagePrepare(int x, int y, int w, int h, int id)
void
imageUpdate(int x, int y, int w, int h, Color[] data)
void
reset()
void
save(String filename)
@Override
void paintComponent(Graphics g)

Constructor Details

ImagePanel

public ImagePanel()

Method Details

fit

public void fit()

imageBegin

public void imageBegin(int w,
                       int h,
                       int bucketSize)
Specified by:
imageBegin in interface Display

imageEnd

public void imageEnd()
Specified by:
imageEnd in interface Display

imageFill

public void imageFill(int x,
                      int y,
                      int w,
                      int h,
                      Color c)
Specified by:
imageFill in interface Display

imagePrepare

public void imagePrepare(int x,
                         int y,
                         int w,
                         int h,
                         int id)
Specified by:
imagePrepare in interface Display

imageUpdate

public void imageUpdate(int x,
                        int y,
                        int w,
                        int h,
                        Color[] data)
Specified by:
imageUpdate in interface Display

reset

public void reset()

save

public void save(String filename)

void paintComponent

public @Override void paintComponent(Graphics g)