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

org.iherus.codegen.Codectx Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) 2016-~, Bosco.Liao ([email protected]).
 *
 * 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 org.iherus.codegen;

public final class Codectx {

	/******************************************************************/
	// About Qrcode.
	/******************************************************************/

	public static final int DEFAULT_CODE_WIDTH = 250;

	public static final int DEFAULT_CODE_HEIGHT = 250;

	public static final int DEFAULT_CODE_MARGIN = 10;

	public static final int DEFAULT_CODE_PADDING = 0;

	public static final int DEFAULT_CODE_BORDER_SIZE = 0;

	public static final int DEFAULT_CODE_BORDER_RADIUS = 0;

	public static final int DEFAULT_CODE_BORDER_DASH_GRANULARITY = 5;

	public static final String DEFAULT_CODE_BORDER_COLOR = "#808080";

	public static final String DEFAULT_CODE_MASTER_COLOR = "#000000";

	public static final String DEFAULT_CODE_SLAVE_COLOR = "#FFFFFF";

	/******************************************************************/
	// About Logo.
	/******************************************************************/

	public static final int DEFAULT_LOGO_RATIO = 5;

	public static final int DEFAULT_LOGO_BORDER_SIZE = 2;

	public static final int DEFAULT_LOGO_ARCWIDTH = 10;

	public static final int DEFAULT_LOGO_PADDING = 5;

	public static final int DEFAULT_LOGO_MARGIN = 5;

	public static final int DEFAULT_LOGO_PANEL_RADIUS = 15;

	public static final String DEFAULT_LOGO_BORDER_COLOR = "#808080";

	public static final String DEFAULT_LOGO_BACKGROUND_COLOR = "#FFFFFF";

	public static final String DEFAULT_LOGO_PANEL_COLOR = "#FFFFFF";

	/******************************************************************/
	// About Write.
	/******************************************************************/

	public static final String IMAGE_TYPE = "PNG";

	public static enum BorderStyle {

		SOLID, DASHED;
	}
	
	public static enum LogoShape {
		RECTANGLE, CIRCLE;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy