home *** CD-ROM | disk | FTP | other *** search
- package printplugin;
-
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Graphics;
- import javax.swing.Icon;
-
- class TimePageRenderer$HeaderItem implements Icon {
- // $FF: renamed from: mX int
- private int field_0;
- // $FF: renamed from: mY int
- private int field_1;
- private String mTitle;
- // $FF: synthetic field
- private final TimePageRenderer this$0;
-
- public TimePageRenderer$HeaderItem(TimePageRenderer this$0, String title) {
- this.this$0 = this$0;
- this.mTitle = title;
- }
-
- public int getIconHeight() {
- return 22;
- }
-
- public int getIconWidth() {
- return 180;
- }
-
- 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.setColor(Color.lightGray);
- g.fillRect(x + this.field_0, y + this.field_1, this.getIconWidth(), this.getIconHeight());
- g.setColor(Color.black);
- g.setFont(TimePageRenderer.COL_HEADER_FONT);
- g.drawString(this.mTitle, x + this.field_0, y + this.field_1 + this.getIconHeight() - 3);
- g.drawRect(x + this.field_0, y + this.field_1, this.getIconWidth(), this.getIconHeight());
- }
- }
-