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

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


        return fallback;
      }
      return null;
    }

    final CSSConstant constant = (CSSConstant) value;
    final CSSValue resolvedValue = lookupValue(constant);
    if (resolvedValue != null)
    {
//      layoutContext.setValue(key, resolvedValue);
      return resolvedValue;
View Full Code Here


  {
    if (value.getLexicalUnitType() == LexicalUnit.SAC_IDENT)
    {
      if ("none".equalsIgnoreCase(value.getStringValue()))
      {
        return new CSSConstant ("none");
      }
      return null;
    }

    // todo
View Full Code Here

public class HyphenateReadHandler extends OneOfConstantsReadHandler
{
  public HyphenateReadHandler()
  {
    super(true);
    addValue(new CSSConstant("none"));
  }
View Full Code Here

      {
        return null;
      }
      if ("hanging".equalsIgnoreCase(value.getStringValue()))
      {
        return new CSSValueList (new CSSValue[]{cssvalue, new CSSConstant("hanging")});
      }
      else
      {
        return null;
      }
View Full Code Here

    }
    if ("auto".equalsIgnoreCase(value.getStringValue()))
    {
      return CSSAutoValue.getInstance();
    }
    return new CSSConstant(value.getStringValue());
  }
View Full Code Here

    if (width != null)
    {
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant style;
    if (unit != null)
    {
      style = (CSSConstant) lookupValue(unit);
      if (style != null)
      {
View Full Code Here

  {
    LibLayoutBoot.getInstance().start();
    DefaultLayoutContext layoutContext =
            new DefaultLayoutContext
                    (new ContextId(0, 0,0), "Bah", "buh", null, new AttributeMap());
    layoutContext.getStyle().setValue(FontStyleKeys.FONT_FAMILY, new CSSConstant("helvetica"));
    final FontSpecification fontSpecification = layoutContext.getFontSpecification();
    fontSpecification.setFontFamily("Arial");
    fontSpecification.setFontSize(12);

    final FlowHtmlOutputProcessor out =
View Full Code Here

   * @param unit
   * @return
   */
  public Map createValues(LexicalUnit unit)
  {
    final CSSConstant topStyle = (CSSConstant) lookupValue(unit);
    if (topStyle == null)
    {
      return null;
    }

    unit = unit.getNextLexicalUnit();

    final CSSConstant rightStyle;
    if (unit == null)
    {
      rightStyle = topStyle;
    }
    else
    {
      rightStyle = (CSSConstant) lookupValue(unit);
      if (rightStyle == null)
      {
        return null;
      }
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant bottomStyle;
    if (unit == null)
    {
      bottomStyle = topStyle;
    }
    else
    {
      bottomStyle = (CSSConstant) lookupValue(unit);
      if (bottomStyle == null)
      {
        return null;
      }
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant leftStyle;
    if (unit == null)
    {
      leftStyle = rightStyle;
    }
    else
View Full Code Here

    if (width != null)
    {
      unit = unit.getNextLexicalUnit();
    }

    final CSSConstant style;
    if (unit != null)
    {
      style = (CSSConstant) lookupValue(unit);
      if (style != null)
      {
View Full Code Here

      if (value.getLexicalUnitType() != LexicalUnit.SAC_IDENT)
      {
        return null;
      }

      final CSSConstant horizontal;
      final CSSConstant vertical;

      final String horizontalString = value.getStringValue();
      if ("repeat-x".equalsIgnoreCase(horizontalString))
      {
        horizontal = BackgroundRepeat.REPEAT;
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.