/* * $Id: Trait.java,v 1.13 2003/03/05 15:19:31 jeremias Exp $ * ============================================================================ * The Apache Software License, Version 1.1 * ============================================================================ * * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. The end-user documentation included with the redistribution, if any, must * include the following acknowledgment: "This product includes software * developed by the Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, if * and wherever such third-party acknowledgments normally appear. * * 4. The names "FOP" and "Apache Software Foundation" must not be used to * endorse or promote products derived from this software without prior * written permission. For written permission, please contact * apache@apache.org. * * 5. Products derived from this software may not be called "Apache", nor may * "Apache" appear in their name, without prior written permission of the * Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU- * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ============================================================================ * * This software consists of voluntary contributions made by many individuals * on behalf of the Apache Software Foundation and was originally created by * James Tauber . For more information on the Apache * Software Foundation, please see . */ package org.apache.fop.area; import org.apache.fop.datatypes.ColorType; import org.apache.fop.traits.BorderProps; import java.io.Serializable; import java.util.Map; import java.util.HashMap; import java.util.Iterator; // properties should be serialized by the holder /** * Area traits used for rendering. * This class represents an area trait that specifies a value for rendering. */ public class Trait implements Serializable { /** * Id reference line, not resolved. * not sure if this is needed. */ public static final Integer ID_LINK = new Integer(0); /** * Internal link trait. * This is resolved and provides a link to an internal area. */ public static final Integer INTERNAL_LINK = new Integer(1); //resolved /** * External link. A URL link to an external resource. */ public static final Integer EXTERNAL_LINK = new Integer(2); /** * The font name from the font setup. */ public static final Integer FONT_NAME = new Integer(3); /** * Font size for the current font. */ public static final Integer FONT_SIZE = new Integer(4); /** * The current colour. */ public static final Integer COLOR = new Integer(7); /** * Don't think this is necessary. */ public static final Integer ID_AREA = new Integer(8); /** * Background trait for an area. */ public static final Integer BACKGROUND = new Integer(9); /** * Underline trait used when rendering inline parent. */ public static final Integer UNDERLINE = new Integer(10); /** * Overline trait used when rendering inline parent. */ public static final Integer OVERLINE = new Integer(11); /** * Linethrough trait used when rendering inline parent. */ public static final Integer LINETHROUGH = new Integer(12); /** * Shadow offset. */ public static final Integer OFFSET = new Integer(13); /** * The shadow for text. */ public static final Integer SHADOW = new Integer(14); /** * The border start. */ public static final Integer BORDER_START = new Integer(15); /** * The border end. */ public static final Integer BORDER_END = new Integer(16); /** * The border before. */ public static final Integer BORDER_BEFORE = new Integer(17); /** * The border after. */ public static final Integer BORDER_AFTER = new Integer(18); /** * The padding start. */ public static final Integer PADDING_START = new Integer(19); /** * The padding end. */ public static final Integer PADDING_END = new Integer(20); /** * The padding before. */ public static final Integer PADDING_BEFORE = new Integer(21); /** * The padding after. */ public static final Integer PADDING_AFTER = new Integer(22); private static final Map TRAIT_INFO = new HashMap(); private static class TraitInfo { private String name; private Class clazz; // Class of trait data public TraitInfo(String name, Class clazz) { this.name = name; this.clazz = clazz; } public String getName() { return this.name; } public Class getClazz() { return this.clazz; } } static { // Create a hashmap mapping trait code to name for external representation TRAIT_INFO.put(ID_LIN
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>jQuery UI Resizable Demos</title>
</head>
<body>

<ul>
	<li><a href="default.html">Default functionality</a></li>
	<li><a href="aspect-ratio.html">Preserve aspect ratio</a></li>
	<li><a href="max-min.html">Maximum / minimum size</a></li>
	<li><a href="constrain-area.html">Constrain resize area</a></li>
	<li><a href="delay-start.html">Delay start</a></li>
	<li><a href="snap-to-grid.html">Snap to grid</a></li>
	<li><a href="visual-feedback.html">Visual feedback</a></li>
	<li><a href="synchronous-resize.html">Synchronous resize</a></li>
	<li><a href="animate.html">Animate</a></li>
	<li><a href="helper.html">Resize Helper</a></li>
	<li><a href="textarea.html">Textarea</a></li>
</ul>

</body>
</html>