All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.vandermeer.asciitable.v1.V1_StandardTableThemes Maven / Gradle / Ivy

/* Copyright 2014 Sven van der Meer 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package de.vandermeer.asciitable.v1;

/**
 * Predefined render themes for the ASCII table.
 *
 * @author     Sven van der Meer <[email protected]>
 * @version    v1.0.0 build 160319 (19-Mar-16) for Java 1.7
 * @since      v0.0.1
 */
public enum V1_StandardTableThemes implements V1_TableTheme {

	/**
	 * A theme for plain ASCII-7 boxes (basically the characters '-', '|' and '+').
	 * 
	 * +----+----+----+
	 * |    |    |    |
	 * +----+----+----+
	 * |    |    |    |
	 * +----+----+----+
	 * 
*/ PLAIN_7BIT( "plain ASCII-7 boxes (basically the characters '-', '|' and '+')", new char[]{'+', '+', '+', '-', '+', '+', '+', '|', '+', '+', '+'} ), /** * UTF-8 characters with double lines vertically and horizontally. *
	 * ╔════╦════╦════╗
	 * ║    ║    ║    ║
	 * ╠════╬════╬════╣
	 * ║    ║    ║    ║
	 * ╚════╩════╩════╝
	 * 
*/ DOUBLE( "UTF-8 characters with double lines vertically and horizontally", new char[]{ V1_CharactersBoxDrawing.DOUBLE_DOWN_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_DOWN_AND_LEFT.utf, V1_CharactersBoxDrawing.DOUBLE_DOWN_AND_RIGHT.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_UP_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_UP_AND_LEFT.utf, V1_CharactersBoxDrawing.DOUBLE_UP_AND_RIGHT.utf, V1_CharactersBoxDrawing.DOUBLE_VERTICAL.utf, V1_CharactersBoxDrawing.DOUBLE_VERTICAL_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_VERTICAL_AND_LEFT.utf, V1_CharactersBoxDrawing.DOUBLE_VERTICAL_AND_RIGHT.utf } ), /** * UTF-8 characters with double lines vertically and light (single) lines horizontally. *
	 * ╓────╥────╥────╖
	 * ║    ║    ║    ║
	 * ╟────╫────╫────╢
	 * ║    ║    ║    ║
	 * ╙────╨────╨────╜
	 * 
*/ DOUBLE_LIGHT( "UTF-8 characters with double lines vertically and light (single) lines horizontally", new char[]{ V1_CharactersBoxDrawing.DOUBLE_LIGHT_DOWN_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_LIGHT_DOWN_AND_LEFT.utf, V1_CharactersBoxDrawing.DOUBLE_LIGHT_DOWN_AND_RIGHT.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_LIGHT_UP_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_LIGHT_UP_AND_LEFT.utf, V1_CharactersBoxDrawing.DOUBLE_LIGHT_UP_AND_RIGHT.utf, V1_CharactersBoxDrawing.DOUBLE_VERTICAL.utf, V1_CharactersBoxDrawing.DOUBLE_LIGHT_VERTICAL_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_LIGHT_VERTICAL_AND_LEFT.utf, V1_CharactersBoxDrawing.DOUBLE_LIGHT_VERTICAL_AND_RIGHT.utf } ), /** * UTF-8 characters with heavy (thick) lines vertically and horizontally *
	 * ┏━┳━┳━┓
	 * ┃    ┃    ┃    ┃
	 * ┣━╋━╋━┫
	 * ┃    ┃    ┃    ┃
	 * ┗━┻━┻━┛
	 * 
*/ HEAVY( "UTF-8 characters with heavy (thick) lines vertically and horizontally", new char[]{ V1_CharactersBoxDrawing.HEAVY_DOWN_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_DOWN_AND_LEFT.utf, V1_CharactersBoxDrawing.HEAVY_DOWN_AND_RIGHT.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_UP_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_UP_AND_LEFT.utf, V1_CharactersBoxDrawing.HEAVY_UP_AND_RIGHT.utf, V1_CharactersBoxDrawing.HEAVY_VERTICAL.utf, V1_CharactersBoxDrawing.HEAVY_VERTICAL_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_VERTICAL_AND_LEFT.utf, V1_CharactersBoxDrawing.HEAVY_VERTICAL_AND_RIGHT.utf } ), /** * UTF-8 characters with heavy (thick) lines vertically and horizontally. */ HEAVY_LIGHT( "UTF-8 characters with heavy (thick) lines vertically and horizontally", new char[]{ V1_CharactersBoxDrawing.HEAVY_LIGHT_DOWN_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_LIGHT_DOWN_AND_LEFT.utf, V1_CharactersBoxDrawing.HEAVY_LIGHT_DOWN_AND_RIGHT.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_LIGHT_UP_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_LIGHT_UP_AND_LEFT.utf, V1_CharactersBoxDrawing.HEAVY_LIGHT_UP_AND_RIGHT.utf, V1_CharactersBoxDrawing.HEAVY_VERTICAL.utf, V1_CharactersBoxDrawing.HEAVY_LIGHT_VERTICAL_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_LIGHT_VERTICAL_AND_LEFT.utf, V1_CharactersBoxDrawing.HEAVY_LIGHT_VERTICAL_AND_RIGHT.utf } ), /** * UTF-8 characters with light (single) lines vertically and horizontally. *
	 * ┌────┬────┬────┐
	 * │    │    │    │
	 * ├────┼────┼────┤
	 * │    │    │    │
	 * └────┴────┴────┘
	 * 
*/ LIGHT( "UTF-8 characters with light (single) lines vertically and horizontally", new char[]{ V1_CharactersBoxDrawing.LIGHT_DOWN_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_DOWN_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_DOWN_AND_RIGHT.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_UP_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_UP_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_UP_AND_RIGHT.utf, V1_CharactersBoxDrawing.LIGHT_VERTICAL.utf, V1_CharactersBoxDrawing.LIGHT_VERTICAL_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_VERTICAL_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_VERTICAL_AND_RIGHT.utf } ), /** * UTF-8 characters with light (single) lines vertically and double lines horizontally *
	 * ╒════╤════╤════╕
	 * │    │    │    │
	 * ╞════╪════╪════╡
	 * │    │    │    │
	 * ╘════╧════╧════╛
	 * 
*/ LIGHT_DOUBLE( "UTF-8 characters with light (single) lines vertically and double lines horizontally", new char[]{ V1_CharactersBoxDrawing.LIGHT_DOUBLE_DOWN_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_DOUBLE_DOWN_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_DOUBLE_DOWN_AND_RIGHT.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_DOUBLE_UP_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_DOUBLE_UP_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_DOUBLE_UP_AND_RIGHT.utf, V1_CharactersBoxDrawing.LIGHT_VERTICAL.utf, V1_CharactersBoxDrawing.LIGHT_DOUBLE_VERTICAL_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_DOUBLE_VERTICAL_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_DOUBLE_VERTICAL_AND_RIGHT.utf } ), /** * UTF-8 characters with light (single) lines vertically and heavy lines horizontally */ LIGHT_HEAVY( "UTF-8 characters with light (single) lines vertically and heavy lines horizontally", new char[]{ V1_CharactersBoxDrawing.LIGHT_HEAVY_DOWN_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HEAVY_DOWN_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_HEAVY_DOWN_AND_RIGHT.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HEAVY_UP_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HEAVY_UP_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_HEAVY_UP_AND_RIGHT.utf, V1_CharactersBoxDrawing.LIGHT_VERTICAL.utf, V1_CharactersBoxDrawing.LIGHT_HEAVY_VERTICAL_AND_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HEAVY_VERTICAL_AND_LEFT.utf, V1_CharactersBoxDrawing.LIGHT_HEAVY_VERTICAL_AND_RIGHT.utf } ), /** * LaTeX style plain plain ASCII-7 boxes (basically the characters '-' and ' '). *
	 * ----------------
	 *                 
	 * ----------------
	 *                 
	 * ----------------
	 * 
*/ LATEX_7BIT( "LaTeX style plain ASCII-7 boxes (basically the characters '-' and ' ')", new char[]{'-', '-', '-', '-', '-', '-', '-', ' ', '-', '-', '-'} ), /** * LaTeX style UTF-8 characters with double lines horizontally. *
	 * ════════════════
	 *                 
	 * ════════════════
	 *                 
	 * ════════════════
	 * 
*/ LATEX_DOUBLE( "LaTeX style UTF-8 characters with double lines horizontally", new char[]{ V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, ' ', V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, V1_CharactersBoxDrawing.DOUBLE_HORIZONTAL.utf, } ), /** * LaTeX style UTF-8 characters with heavy (thick) lines horizontally *
	 * ━━━━━━━
	 *             
	 * ━━━━━━━
	 *             
	 * ━━━━━━━
	 * 
*/ LATEX_HEAVY( "LaTeX style UTF-8 characters with heavy (thick) lines horizontally", new char[]{ V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, ' ', V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf, V1_CharactersBoxDrawing.HEAVY_HORIZONTAL.utf } ), /** * LaTeX style UTF-8 characters with light (single) lines horizontally. *
	 * ────────────────
	 *                 
	 * ────────────────
	 *                 
	 * ────────────────
	 * 
*/ LATEX_LIGHT( "LaTeX style UTF-8 characters with light (single) lines horizontally", new char[]{ V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, ' ', V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL.utf } ), /** * LaTeX style UTF-8 characters with light double dash lines horizontally. *
	 * ────────────────
	 *                 
	 * ────────────────
	 *                 
	 * ────────────────
	 * 
*/ LATEX_LIGHT_DOUBLE_DASH( "LaTeX style UTF-8 characters with light double dash lines horizontally", new char[]{ V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, ' ', V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_DOUBLE_DASH.utf } ), /** * LaTeX style UTF-8 characters with light triple dash lines horizontally. *
	 * ────────────────
	 *                 
	 * ────────────────
	 *                 
	 * ────────────────
	 * 
*/ LATEX_LIGHT_TRIPLE_DASH( "LaTeX style UTF-8 characters with light triple dash lines horizontally", new char[]{ V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, ' ', V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf, V1_CharactersBoxDrawing.LIGHT_HORIZONTAL_TRIPLE_DASH.utf } ), ; /** Option description */ String description; /** Option value, the actual theme */ char[] theme; V1_StandardTableThemes(String description, char[] theme){ this.description=description; this.theme=theme; } @Override public Object getDescription() { return this.description; } @Override public char[] getTheme() { return this.theme; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy