Package org.jfree.ui

Examples of org.jfree.ui.FloatDimension


  protected static PageHeader initPageHeader(String label)
  {
    PageHeader pHeader = new PageHeader();
    pHeader.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.yellow);
    pHeader.setName("Page-Header");
    pHeader.getStyle().setStyleProperty(ElementStyleSheet.MINIMUMSIZE, new FloatDimension(0, 91));
    pHeader.getStyle().setFontDefinitionProperty(HEADER_FONT);
    pHeader.setDisplayOnFirstPage(true);

    pHeader.addElement(LabelElementFactory.createLabelElement(null, new Rectangle2D.Double(0,0,400, 20),null, null, null, label));
    return pHeader;
View Full Code Here


    float[] columnWidth = new float[]{60, 60, 64, 64, 64, 64, 64, 64};

    int cellHeight = 12;
    for (int i = 0; i < tm.getColumnCount(); i++)
    {
      tfFactory.setMinimumSize(new FloatDimension(columnWidth[i] - 4,
          cellHeight));
      tfFactory.setAbsolutePosition(new Point2D.Float(columnPos[i] + 2, 0));
      tfFactory.setFieldname(tm.getColumnName(i));
      items.addElement(tfFactory.createElement());
    }
View Full Code Here

   * @return the created dimension object.
   */
  public static Dimension2D createAWTDimension
          (final long width, final long height)
  {
    return new FloatDimension
            ((float) (width / CORRECTION_FACTOR), (float) (height / CORRECTION_FACTOR));
  }
View Full Code Here

   * @return the created dimension object.
   */
  public static Dimension2D createAWTDimension
          (final long width, final long height)
  {
    return new FloatDimension
            ((float) (width / CORRECTION_FACTOR), (float) (height / CORRECTION_FACTOR));
  }
View Full Code Here

  public Object readObject (final ObjectInputStream in)
          throws IOException, ClassNotFoundException
  {
    final double w = in.readDouble();
    final double h = in.readDouble();
    return new FloatDimension((float) w, (float) h);
  }
View Full Code Here

  public Object readObject (final ObjectInputStream in)
          throws IOException, ClassNotFoundException
  {
    final double w = in.readDouble();
    final double h = in.readDouble();
    return new FloatDimension((float) w, (float) h);
  }
View Full Code Here

     * Creates an object based on the description.
     *
     * @return The object.
     */
    public Object createObject() {
        final Dimension2D dim = new FloatDimension();

        final float width = getFloatParameter("width");
        final float height = getFloatParameter("height");
        dim.setSize(width, height);
        return dim;
    }
View Full Code Here

     * Creates an object based on the description.
     *
     * @return The object.
     */
    public Object createObject() {
        final Dimension2D dim = new FloatDimension();

        final float width = getFloatParameter("width");
        final float height = getFloatParameter("height");
        dim.setSize(width, height);
        return dim;
    }
View Full Code Here

TOP

Related Classes of org.jfree.ui.FloatDimension

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.