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

org.fit.cssbox.layout.InlineElement Maven / Gradle / Ivy

Go to download

CSSBox is an (X)HTML/CSS rendering engine written in pure Java. Its primary purpose is to provide a complete information about the rendered page suitable for further processing. However, it also allows displaying the rendered document.

There is a newer version: 5.0.2
Show newest version
/*
 * InlineElement.java
 * Copyright (c) 2005-2011 Radek Burget
 *
 * CSSBox is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *  
 * CSSBox is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *  
 * You should have received a copy of the GNU Lesser General Public License
 * along with CSSBox. If not, see .
 *
 * Created on 19.10.2011, 11:25:26 by burgetr
 */
package org.fit.cssbox.layout;

import cz.vutbr.web.css.CSSProperty;

/**
 * This interface defines the properties common for all the inline-level element boxes
 * 
 * @author burgetr
 */
public interface InlineElement extends Inline
{

    /**
     * Obtains the vertical alignment of the element as specified in the style.
     * @return a vertical alignment value
     */
    public CSSProperty.VerticalAlign getVerticalAlign();

    /**
     * Assigns the line box assigned to this inline box and all the inline sub-boxes.
     * @param linebox The assigned linebox.
     */
    public void setLineBox(LineBox linebox);
    
    /**
     * Returns the line box used for positioning this element.
     */
    public LineBox getLineBox();
    
    /**
     * Obtains the offset of the content edge from the line box top
     * @return the difference between the content edge and the top of the line box in pixels. Positive numbers mean the content box is inside the line box.  
     */
    public int getLineboxOffset();
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy