Examples of CSSValuePair


Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

        {
          counterValue = CSSValueFactory.parseFunction(value);
          value = value.getNextLexicalUnit();
        }
      }
      counterSpecs.add(new CSSValuePair
          (new CSSConstant(identifier), counterValue));
    }

    return new CSSValueList(counterSpecs);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

      }

      if (pageOrientation == PageFormat.LANDSCAPE ||
          pageOrientation == PageFormat.REVERSE_LANDSCAPE)
      {
        return new CSSValuePair(CSSNumericValue.createPtValue(ps.getHeight()),
            CSSNumericValue.createPtValue(ps.getWidth()));
      }
      else
      {
        return new CSSValuePair(CSSNumericValue.createPtValue(ps.getWidth()),
            CSSNumericValue.createPtValue(ps.getHeight()));
      }
    }
    else
    {
      final CSSNumericValue horizontalWidth = (CSSNumericValue) parseWidth(value);
      if (horizontalWidth == null)
      {
        return null;
      }

      value = value.getNextLexicalUnit();

      final CSSNumericValue verticalWidth;
      if (value == null)
      {
        verticalWidth = horizontalWidth;
      }
      else
      {
        verticalWidth = (CSSNumericValue) parseWidth(value);
        if (verticalWidth == null)
        {
          return null;
        }
      }

      return new CSSValuePair(horizontalWidth, verticalWidth);
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

            return null;
          }
        }
      }

      values.add(new CSSValuePair(horizontal, vertical));
      value = CSSValueFactory.parseComma(value);
    }

    return new CSSValueList(values);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

      {
        return null;
      }
    }

    return new CSSValuePair(firstValue, secondValue);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

  protected void addToResultList(ArrayList values,
                                 CSSValue firstPosition,
                                 CSSValue secondPosition)
  {
    values.add(new CSSValuePair(firstPosition, secondPosition));
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

    // this might be invalid ...
    if (BlockProgression.TB.equals(blockProgression))
    {
      if (rightToLeft)
      {
        layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, LEFT_TOP));
      }
      else
      {
        layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
      }
    }
    else if (BlockProgression.RL.equals(blockProgression))
    {
      if (rightToLeft)
      {
        layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
      }
      else
      {
        layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, LEFT_TOP));
      }
    }
    else if (BlockProgression.LR.equals(blockProgression))
    {
      if (rightToLeft)
      {
        layoutContext.setValue(key, new CSSValuePair(RIGHT_BOTTOM, RIGHT_BOTTOM));
      }
      else
      {
        layoutContext.setValue(key, new CSSValuePair(LEFT_TOP, LEFT_TOP));
      }
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

                      final LayoutElement currentNode,
                      final StyleKey key)
  {
    final PageSize ps = process.getOutputMetaData().getDefaultPageSize();
    final CSSValue page =
        new CSSValuePair(CSSNumericValue.createPtValue(ps.getWidth()),
            CSSNumericValue.createPtValue(ps.getHeight()));
    currentNode.getLayoutStyle().setValue(PageStyleKeys.SIZE, page);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

      ps = process.getOutputMetaData().getDefaultPageSize();
    }
    // if it is stll null, then the output target is not valid.
    // We will crash in that case ..
    final CSSValue page =
        new CSSValuePair(CSSNumericValue.createPtValue(ps.getWidth()),
            CSSNumericValue.createPtValue(ps.getHeight()));
    layoutContext.setValue(PageStyleKeys.SIZE, page);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

      }
      return new CSSValueList(retValus);
    }
    else if (value instanceof CSSValuePair)
    {
      final CSSValuePair pair = (CSSValuePair) value;
      return new CSSValuePair
          (resolveValue(pair.getFirstValue(), element),
              resolveValue(pair.getSecondValue(), element));
    }
    else
    {
      return value;
    }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.values.CSSValuePair

      return false;
    }

    if (value instanceof CSSValuePair)
    {
      final CSSValuePair pair = (CSSValuePair) value;
      if (containsResolveableFunction(pair.getFirstValue()))
      {
        return true;
      }
      if (containsResolveableFunction(pair.getSecondValue()))
      {
        return true;
      }
      return false;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.