Package org.jmol.awtjs.swing
Class Component
java.lang.Object
org.jmol.awtjs.swing.Component
- Direct Known Subclasses:
Container
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMouseListener
(Object listener) protected String
getCSSstyle
(int defaultPercentW, int defaultPercentH) int
getName()
int
int
getText()
int
getWidth()
boolean
boolean
static String
void
repaint()
void
setBackground
(javajs.api.GenericColor color) void
setEnabled
(boolean enabled) void
void
void
void
setPreferredSize
(Dimension dimension) void
void
setVisible
(boolean visible) abstract String
toHTML()
-
Field Details
-
_visible
private boolean _visible -
enabled
protected boolean enabled -
text
-
name
-
width
protected int width -
height
protected int height -
id
-
parent
-
mouseListener
-
bgcolor
private javajs.api.GenericColor bgcolor -
minWidth
protected int minWidth -
minHeight
protected int minHeight -
renderWidth
protected int renderWidth -
renderHeight
protected int renderHeight
-
-
Constructor Details
-
Component
-
-
Method Details
-
setParent
-
newID
-
toHTML
-
setBackground
public void setBackground(javajs.api.GenericColor color) -
setText
-
setName
-
getName
-
getParent
-
setPreferredSize
-
addMouseListener
-
getText
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) -
getHeight
public int getHeight() -
getWidth
public int getWidth() -
setMinimumSize
-
getSubcomponentWidth
public int getSubcomponentWidth() -
getSubcomponentHeight
public int getSubcomponentHeight() -
getCSSstyle
-
repaint
public void repaint()
-