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

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

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

Rectangle.reshape介绍

暂无

代码示例

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

/**
 * update the geometry of the autoscroll region
 */
private void updateRegion() {
  Insets    i    = autoScroll.getAutoscrollInsets();
  Dimension size = component.getSize();
  if (size.width != outer.width || size.height != outer.height)
    outer.reshape(0, 0, size.width, size.height);
  if (inner.x != i.left || inner.y != i.top)
    inner.setLocation(i.left, i.top);
  int newWidth  = size.width -  (i.left + i.right);
  int newHeight = size.height - (i.top  + i.bottom);
  if (newWidth != inner.width || newHeight != inner.height)
    inner.setSize(newWidth, newHeight);
}

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

/**
 * update the geometry of the autoscroll region
 */
private void updateRegion() {
  Insets    i    = autoScroll.getAutoscrollInsets();
  Dimension size = component.getSize();
  if (size.width != outer.width || size.height !=
      outer.height)
    outer.reshape(0, 0, size.width, size.height);
  if (inner.x != i.left || inner.y != i.top)
    inner.setLocation(i.left, i.top);
  int newWidth  = size.width -  (i.left + i.right);
  int newHeight = size.height - (i.top  + i.bottom);
  if (newWidth != inner.width || newHeight !=
      inner.height)
    inner.setSize(newWidth, newHeight);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-extension-openide

outer.reshape(visible.x, visible.y, visible.width, visible.height);
inner.reshape(visible.x + i.left,
     visible.y + i.top,
     visible.width - (i.left + i.right),

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

outer.reshape(visible.x, visible.y, visible.width, visible.height);
inner.reshape(
  visible.x + i.left,
  visible.y + i.top,

相关文章