public class JBDimension
extends java.awt.Dimension
Modifier and Type | Class and Description |
---|---|
static class |
JBDimension.JBDimensionUIResource |
Constructor and Description |
---|
JBDimension(int width,
int height) |
JBDimension(int width,
int height,
boolean preScaled) |
Modifier and Type | Method and Description |
---|---|
JBDimension.JBDimensionUIResource |
asUIResource() |
static JBDimension |
create(java.awt.Dimension from) |
static JBDimension |
create(java.awt.Dimension from,
boolean preScaled) |
boolean |
equals(java.lang.Object obj) |
int |
height() |
double |
height2d() |
JBDimension |
newSize() |
protected void |
set(int width,
int height) |
protected void |
set(com.intellij.util.ui.JBDimension.Size2D size2d) |
JBDimension |
size() |
boolean |
update()
Updates the size according to current
ScaleType.USR_SCALE if necessary. |
int |
width() |
double |
width2d() |
JBDimension |
withHeight(int height) |
JBDimension |
withWidth(int width) |
public JBDimension(int width, int height)
public JBDimension(int width, int height, boolean preScaled)
public static JBDimension create(java.awt.Dimension from, boolean preScaled)
public static JBDimension create(java.awt.Dimension from)
public JBDimension.JBDimensionUIResource asUIResource()
public JBDimension withWidth(int width)
public JBDimension withHeight(int height)
protected void set(int width, int height)
protected void set(com.intellij.util.ui.JBDimension.Size2D size2d)
public boolean update()
ScaleType.USR_SCALE
if necessary.public JBDimension size()
public JBDimension newSize()
public int width()
public int height()
public double width2d()
public double height2d()
public boolean equals(java.lang.Object obj)
equals
in class java.awt.Dimension