|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.openapi.util.DimensionService
public class DimensionService
This class represents map between strings and rectangles. It's intended to store sizes of window, dialogs, etc.
| Method Summary | |
|---|---|
void |
disposeComponent()
Component should dispose system resources or perform another cleanup in this method. |
java.lang.String |
getComponentName()
Unique name of this component. |
int |
getExtendedState(java.lang.String key)
|
static DimensionService |
getInstance()
|
java.awt.Point |
getLocation(java.lang.String key)
|
java.awt.Dimension |
getSize(java.lang.String key)
|
void |
initComponent()
Component should do initialization and communication with another components in this method. |
void |
readExternal(org.jdom.Element element)
|
void |
setExtendedState(java.lang.String key,
int extendedState)
|
void |
setLocation(java.lang.String key,
java.awt.Point point)
Store specified point under the key. |
void |
setSize(java.lang.String key,
java.awt.Dimension size)
Store specified size under the key. |
void |
writeExternal(org.jdom.Element element)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DimensionService getInstance()
public void initComponent()
BaseComponent
initComponent in interface BaseComponentpublic void disposeComponent()
BaseComponent
disposeComponent in interface BaseComponentpublic java.awt.Point getLocation(java.lang.String key)
key. The method returns
null if there is no stored value under the key. If point
is outside of current screen bounds then the method returns null. It
properly works in multimonitor configuration.
java.lang.IllegalArgumentException - if key is null.
public void setLocation(java.lang.String key,
java.awt.Point point)
point under the key. If point is
null then the value stored under key will be removed.
java.lang.IllegalArgumentException - if key is null.public java.awt.Dimension getSize(java.lang.String key)
key. The method returns
null if there is no stored value under the key.
java.lang.IllegalArgumentException - if key is null.
public void setSize(java.lang.String key,
java.awt.Dimension size)
size under the key. If size is
null then the value stored under key will be removed.
java.lang.IllegalArgumentException - if key is null.
public void readExternal(org.jdom.Element element)
throws InvalidDataException
readExternal in interface JDOMExternalizableInvalidDataException
public void writeExternal(org.jdom.Element element)
throws WriteExternalException
writeExternal in interface JDOMExternalizableWriteExternalExceptionpublic java.lang.String getComponentName()
BaseComponent
getComponentName in interface BaseComponent
public void setExtendedState(java.lang.String key,
int extendedState)
public int getExtendedState(java.lang.String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||