home *** CD-ROM | disk | FTP | other *** search
- package printplugin;
-
- import devplugin.Program;
- import java.awt.Component;
- import java.awt.Graphics;
-
- public class ProgramItem {
- private Program mProgram;
- private ProgramIcon mIcon;
- // $FF: renamed from: mx double
- private double field_0;
- // $FF: renamed from: my double
- private double field_1;
-
- public ProgramItem(Program prog, ProgramIconSettings settings) {
- this.mProgram = prog;
- this.mIcon = new ProgramIcon(prog, settings, ChannelPageRenderer.COLUMN_WIDTH);
- }
-
- public void setPos(double x, double y) {
- this.field_0 = x;
- this.field_1 = y;
- }
-
- public double getX() {
- return this.field_0;
- }
-
- public double getY() {
- return this.field_1;
- }
-
- public int getHeight() {
- return this.mIcon.getIconHeight();
- }
-
- public void setMaximumHeight(int maxHeight) {
- this.mIcon.setMaximumHeight(maxHeight);
- }
-
- public Program getProgram() {
- return this.mProgram;
- }
-
- public void paint(Graphics g, int x, int y) {
- this.mIcon.paintIcon((Component)null, g, x, y);
- }
-
- public void paint(Graphics g) {
- this.paint(g, (int)this.getX(), (int)this.getY());
- }
- }
-