static final Color SPINE_COLOR_RIGHT = new Color(100, 100, 100);
static final Color BORDER = Color.black;
+ public static final Color UNCACHED_ICON_COLOR = new Color(0, 80, 220);
+
public static final int TEXT_HEIGHT = 50;
public static final int TEXT_WIDTH = COVER_WIDTH + 40;
g.fillRect(clip.x, clip.y, clip.width, clip.height);
if (!cached) {
- UIUtils.drawEllipse3D(g, new Color(0, 80, 220), COVER_WIDTH + HOFFSET + 30, 10, 20, 20);
+ UIUtils.drawEllipse3D(g, UNCACHED_ICON_COLOR, COVER_WIDTH + HOFFSET + 30, 10, 20, 20);
}
}
import java.awt.BorderLayout;
import java.awt.Color;
+import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.JLabel;
* Initialise this {@link BookLine}.
*/
protected void init() {
- // TODO: image
+ // TODO: image?
iconCached = new JLabel(" ");
iconNotCached = new JLabel(" * ");
+ iconNotCached.setForeground(BookCoverImager.UNCACHED_ICON_COLOR);
+ iconCached.setPreferredSize(iconNotCached.getPreferredSize());
+
title = new JLabel();
secondary = new JLabel();
secondary.setForeground(AUTHOR_COLOR);
String main = info.getMainInfo();
String optSecondary = info.getSecondaryInfo(seeWordCount);
- //TODO: max size limit?
+ // TODO: max size limit?
title.setText(main);
secondary.setText(optSecondary + " ");