Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Renderable classes can be "rendered", either by a GUI or a text console.
- * See the Swing Tutorial on JTable for more info about cell rendering.
- * @author J. Dalbey
- */
- public interface Renderable
- {
- /**
- * Return a printable representation of this item that could be used
- * in a console user interface. If this item is empty, this method
- * must return an appropriate number of blanks.
- * @return String representing this item.
- */
- String getText();
- /**
- * Return a String representing a graphical depiction of this item that could be used
- * in a Graphical user interface. Most often this string is the name of a file
- * containing the image to be associated with an item.
- * @return String representing this item.
- */
- String toString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement