java.awt.Rectangle.toString()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中java.awt.Rectangle.toString方法的一些代码示例,展示了Rectangle.toString的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rectangle.toString方法的具体详情如下:
包路径:java.awt.Rectangle
类名称:Rectangle
方法名:toString

Rectangle.toString介绍

[英]Returns a String representing this Rectangle and its values.
[中]返回一个String表示这个Rectangle及其值。

代码示例

代码示例来源:origin: org.apache.poi/poi

@Override
  protected Object[][] getAttributeMap() {
    return new Object[][]{
      // record, version, instance are directly fetched
      { "UID", field_1_UID, "UID2", field_2_UID },
      { "Uncompressed Size", field_2_cb },
      { "Bounds", getBounds().toString() },
      { "Size in EMU", getSizeEMU().toString() },
      { "Compressed Size", field_5_cbSave },
      { "Compression", field_6_fCompression },
      { "Filter", field_7_fFilter },
      { "Extra Data", "" },
      { "Remaining Data", remainingData }
    };
  }
}

代码示例来源:origin: org.apache.poi/poi

@Override
  protected Object[][] getAttributeMap() {
    return new Object[][]{
      { "UID", field_1_UID },
      { "Uncompressed Size", field_2_cb },
      { "Bounds", getBounds().toString() },
      { "Size in EMU", getSizeEMU().toString() },
      { "Compressed Size", field_5_cbSave },
      { "Compression", field_6_fCompression },
      { "Filter", field_7_fFilter },
      { "Extra Data", getPicturedata() },
    };
  }
}

代码示例来源:origin: geotools/geotools

.append("\n")
        .append("Requested raster dimension = ")
        .append(requestedRasterArea.toString())
        .append("\n")
        .append("Corresponding raster source region = ")
        .append(requestedRasterArea.toString());
LOGGER.log(Level.FINER, sb.toString());

代码示例来源:origin: geotools/geotools

.append("\n")
        .append("Requested raster dimension = ")
        .append(requestedRasterArea.toString())
        .append("\n")
        .append("Corresponding raster source region = ")
        .append(requestedRasterArea.toString());
LOGGER.log(Level.FINE, sb.toString());

代码示例来源:origin: geotools/geotools

.append("\n")
.append("Requested raster dimension = ")
.append(requestedRasterArea.toString())
.append("\n")
.append("Corresponding raster source region = ")
.append(computedRasterArea.toString())
.append("\n")
.append("Corresponding source Envelope = ")

代码示例来源:origin: geotools/geotools

+ requestedBBox.toString()
        + "\nRequested raster dimension = "
        + requestedRasterArea.toString()
        + "\nCorresponding raster source region = "
        + coverageRequestedRasterArea.toString();
LOGGER.log(Level.FINE, message);

代码示例来源:origin: geotools/geotools

.append("\n")
        .append("Requested raster dimension = ")
        .append(requestedDim.toString())
        .append("\n")
        .append("Corresponding raster source region = ")
        .append(sourceRegion.toString());
LOGGER.log(Level.FINE, sb.toString());

代码示例来源:origin: geotools/geotools

.append(crs.toWKT())
.append(" dim ")
.append((pixelDimension == null) ? " null" : pixelDimension.toString())
.toString());

代码示例来源:origin: senbox-org/s1tbx

@Override
  public String toString() {
    return rect.toString();
  }
}

代码示例来源:origin: net.imagej/ij

private String toString(Rectangle r) {
  if (r==null) return "";
  String s = r.toString();
  return s.substring(19, s.length()-1);
}

代码示例来源:origin: stackoverflow.com

package examples;
import java.awt.*;

public class Rectangle {
public static void main(String[] args) {
  java.awt.Rectangle rect = new java.awt.Rectangle();
  System.out.println(rect.toString());    
}
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

@Override
 public String toString() {
  return "MultiSplitLayout.Divider " + getBounds().toString();
 }
}

代码示例来源:origin: org.cytoscape/swing-application-impl

/**
   * Outputs Diagnostics Related to Screen/Window Dimensions.
   */
  private static void outputDiagnostics(Dimension screenDimension, Rectangle containerBounds,
                     Dimension preferredSizeOfPanel, final CytoPanelName compassDirection)
  {
    System.err.println("Compass Direction:  " + compassDirection);
    System.err.println("Screen Dimension:  " + screenDimension);
    System.err.println("Container Bounds:  " + containerBounds.toString());
    System.err.println("Preferred Size of Panel:  " + preferredSizeOfPanel.toString());
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

@Override
 public String toString() {
  return "MultiSplitLayout.Divider " + getBounds().toString();
 }
}

代码示例来源:origin: stackoverflow.com

GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
for (GraphicsDevice gd : ge.getScreenDevices()) {
  Rectangle bounds = gd.getDefaultConfiguration().getBounds();
  System.out.println(bounds.toString());
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
 public String toString() {
  return "MultiSplitLayout.Divider " + getBounds().toString();
 }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

@Override
 public String toString() {
  return "MultiSplitLayout.Divider " + getBounds().toString();
 }
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

@Override
 public String toString() {
  return "MultiSplitLayout.Divider " + getBounds().toString();
 }
}

代码示例来源:origin: robotframework/SwingLibrary

@RobotKeyword("Checks that component is not visible.\n"
    +"Fails if even one pixel of the component is visible.\n\n"
    +"Example:\n"
    + "| `Component Should Not Be Visible` | myComponent |\n")
@ArgumentNames({ "identifier"})
public void componentShouldNotBeVisible(String identifier) {
  Rectangle visible = operator(identifier).getVisibleRect();
  Assert.assertTrue(identifier + " is visible. Visible " + visible.toString(), visible.isEmpty());
}

代码示例来源:origin: cytoscape/application

/**
   * Outputs Diagnostics Related to Screen/Frame Dimensions.
   */
  private static void outputDiagnostics(Dimension screenDimension, Rectangle containerBounds,
                     Dimension preferredSizeOfPanel, int compassDirection) {
    CyLogger.getLogger().warn("Compass Direction:  " + compassDirection);
    CyLogger.getLogger().warn("Screen Dimension:  " + screenDimension);
    CyLogger.getLogger().warn("Container Bounds:  " + containerBounds.toString());
    CyLogger.getLogger().warn("Preferred Size of Panel:  " + preferredSizeOfPanel.toString());
  }
}

相关文章