home *** CD-ROM | disk | FTP | other *** search
- package printplugin;
-
- import devplugin.Program;
- import java.awt.Component;
- import java.awt.Graphics;
- import javax.swing.Icon;
-
- class TimePageRenderer$ProgramItem implements Icon {
- private Icon mIcon;
- // $FF: renamed from: mX int
- private int field_0;
- // $FF: renamed from: mY int
- private int field_1;
- private Program mProgram;
- // $FF: synthetic field
- private final TimePageRenderer this$0;
-
- public TimePageRenderer$ProgramItem(TimePageRenderer this$0, Program prog) {
- this.this$0 = this$0;
- this.mProgram = prog;
- ProgramIcon ico = new ProgramIcon(prog, TimePageRenderer.access$200(this$0), 180);
- ico.setMaximumHeight(300);
- this.mIcon = ico;
- }
-
- public int getIconHeight() {
- return this.mIcon.getIconHeight() + TimePageRenderer.CHANNEL_FONT.getSize() + 10;
- }
-
- public int getIconWidth() {
- return this.mIcon.getIconWidth();
- }
-
- public void setPos(int x, int y) {
- this.field_0 = x;
- this.field_1 = y;
- }
-
- public void paintIcon(Component comp, Graphics g, int x, int y) {
- g.setFont(TimePageRenderer.CHANNEL_FONT);
- g.drawString(this.mProgram.getChannel().getName() + ":", x + this.field_0, y + this.field_1 + 2 + TimePageRenderer.CHANNEL_FONT.getSize());
- this.mIcon.paintIcon((Component)null, g, x + this.field_0, y + this.field_1 + TimePageRenderer.CHANNEL_FONT.getSize() + 4);
- }
- }
-