Package org.pentaho.reporting.engine.classic.core.style

Examples of org.pentaho.reporting.engine.classic.core.style.BorderStyle


                                                  final boolean cellHasFocus)
    {
      final JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
      if (value instanceof BorderStyle)
      {
        final BorderStyle style = (BorderStyle) value;
        final StrokeIcon strokeIcon = new StrokeIcon(style.createStroke(2));
        label.setIcon(strokeIcon);
      }
      else
      {
        label.setIcon(null);
View Full Code Here


        maybeBorderWidth instanceof Number == false)
    {
      return;
    }

    final BorderStyle style = (BorderStyle) maybeBorderStyle;
    final Color color = (Color) maybeBorderColor;
    final Number number = (Number) maybeBorderWidth;
    final Float width = new Float(number.floatValue());

    styleSheet.setStyleProperty(ElementStyleKeys.BORDER_TOP_WIDTH, width);
View Full Code Here

    if (value == null)
    {
      return "";
    }

    final BorderStyle borderStyle = StrokeUtility.translateStrokeStyle(value);
    final float width = value.getLineWidth();
    return borderStyle + ", " + width;
  }
View Full Code Here

    if (width < 0)
    {
      setValue(null);
      return;
    }
    BorderStyle style = BorderStyle.getBorderStyle(strings[0].trim());
    if (style == null)
    {
      style = BorderStyle.getBorderStyle(strings[1].trim());
    }
    if (style == null)
    {
      setValue(null);
    }
    else
    {
      setValue(style.createStroke(width));
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.style.BorderStyle

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.