Package org.jfree.layouting.input.style.values

Examples of org.jfree.layouting.input.style.values.CSSConstant


                      final LayoutElement currentNode,
                      final StyleKey key)
  {
    final LayoutContext layoutContext = currentNode.getLayoutContext();
    final CSSValue value = layoutContext.getValue(key);
    final CSSConstant result;
    if (FontStretch.WIDER.equals(value))
    {
      // ask the parent ...
      final CSSConstant parentStretch = queryParent(currentNode.getParent());
      result = FontStretch.getByOrder(FontStretch.getOrder(parentStretch) + 1);
    }
    else if (FontStretch.NARROWER.equals(value))
    {
      // ask the parent ...
      final CSSConstant parentStretch = queryParent(currentNode.getParent());
      result = FontStretch.getByOrder(FontStretch.getOrder(parentStretch) - 1);
    }
    else if (value instanceof CSSConstant)
    {
      final CSSConstant stretch = (CSSConstant) lookupValue((CSSConstant) value);
      if (stretch != null)
      {
        result = stretch;
      }
      else
View Full Code Here


    if (value instanceof CSSConstant == false)
    {
      // fine, we're done here ...
      return;
    }
    final CSSConstant constant = (CSSConstant) value;
    final LayoutElement parent = currentNode.getParent();
    if (parent != null)
    {
      final double parentFontSize =
              parent.getLayoutContext().getFontSpecification().getFontSize();
View Full Code Here

  protected boolean resolveItem(final LayoutProcess process,
                                final LayoutElement currentNode,
                                final StyleKey key, final int index,
                                final CSSConstant item)
  {
    final CSSConstant bvalue = (CSSConstant) lookupValue(item);
    final BackgroundSpecification backgroundSpecification =
            currentNode.getLayoutContext().getBackgroundSpecification();
    backgroundSpecification.setBackgroundClip(index, bvalue);
    return true;
  }
View Full Code Here

  protected boolean resolveItem(final LayoutProcess process,
                                final LayoutElement currentNode,
                                final StyleKey key, final int index,
                                final CSSConstant item)
  {
    final CSSConstant bvalue = (CSSConstant) lookupValue(item);
    final BackgroundSpecification backgroundSpecification =
            currentNode.getLayoutContext().getBackgroundSpecification();
    backgroundSpecification.setBackgroundAttachment(index, bvalue);
    return true;
  }
View Full Code Here

    if ("auto".equalsIgnoreCase(ident))
    {
      return CSSAutoValue.getInstance();
    }

    return new CSSConstant(ident);
  }
View Full Code Here

  protected boolean resolveItem(final LayoutProcess process,
                                final LayoutElement currentNode,
                                final StyleKey key, final int index,
                                final CSSConstant item)
  {
    final CSSConstant bvalue = (CSSConstant) lookupValue(item);
    final BackgroundSpecification backgroundSpecification =
            currentNode.getLayoutContext().getBackgroundSpecification();
    backgroundSpecification.setBackgroundOrigin(index, bvalue);
    return true;
  }
View Full Code Here

    {
      // this is a sub-string alignment.
      return;
    }

    final CSSConstant alignValue =
            (CSSConstant) resolveValue(process, currentNode, key);
    layoutContext.setValue(TextStyleKeys.TEXT_ALIGN, alignValue);
  }
View Full Code Here

  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
    {
      if ("none".equalsIgnoreCase(value.getStringValue()))
      {
        return new CSSConstant("none");
      }
      if ("all".equalsIgnoreCase(value.getStringValue()))
      {
        return new CSSConstant("all");
      }
      return null;
    }
    else if (value.getLexicalUnitType() == LexicalUnit.SAC_INTEGER)
    {
View Full Code Here

*/
public class DropInitialBeforeAlignReadHandler extends AlignmentBaselineReadHandler
{
  public DropInitialBeforeAlignReadHandler()
  {
    addValue(new CSSConstant("caps-height"));
  }
View Full Code Here

public class DropInitialValueReadHandler extends OneOfConstantsReadHandler
{
  public DropInitialValueReadHandler()
  {
    super(false);
    addValue(new CSSConstant("initial"));
  }
View Full Code Here

TOP

Related Classes of org.jfree.layouting.input.style.values.CSSConstant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.