/* * [CommentSlashSlash.java] * * Summary: Describes one // type Comment token for display, single line. May not contain \n!. * * Copyright: (c) 2004-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 2.0 2009-04-19 tidy comments, more accurate colour names */ package com.mindprod.jtokens.java; import com.mindprod.jtokens.Comment; import java.awt.Color; import static com.mindprod.jtokens.TokenColourScheme.COMMON_FOREGROUND_FOR_COMMENT_SLASH_SLASH; /** * Describes one // type Comment token for display, single line. May not contain \n!. * * @author Roedy Green, Canadian Mind Products * @version 2.0 2009-04-19 tidy comments, more accurate colour names * @since 2004-04-24 */ public final class CommentSlashSlash extends Comment { /** * version number for the class */ static final long serialVersionUID = 1L; /** * Constructor * * @param comment text including delimiters but no embedded \n */ public CommentSlashSlash( String comment ) { super( comment ); } /** * foreground colour to render this token. * * @return Color object. */ public Color getForeground() { return COMMON_FOREGROUND_FOR_COMMENT_SLASH_SLASH; } /** * get the text surrounded by CSS html * @return decorated HTML in a " + getRawHTML() + ""; } }