import be.nikiroo.fanfix.data.MetaData;
import be.nikiroo.fanfix.data.Story;
+import be.nikiroo.utils.ui.UIUtils;
/**
* A book item presented in a {@link LocalReaderFrame}.
* TRUE if it is present in the {@link LocalReader} cache
*/
public void setCached(boolean cached) {
- this.cached = cached;
+ if (this.cached != cached) {
+ this.cached = cached;
+ invalidate();
+ }
}
/**
g.fillRect(clip.x, clip.y, clip.width, clip.height);
if (cached) {
- g.setColor(Color.green);
- g.fillOval(COVER_WIDTH + HOFFSET + 30, 10, 20, 20);
+ UIUtils.drawEllipse3D(g, Color.green.darker(), COVER_WIDTH
+ + HOFFSET + 30, 10, 20, 20);
}
}
}