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 TypeMethodDescriptionvoidaddMouseListener(Object listener) protected StringgetCSSstyle(int defaultPercentW, int defaultPercentH) intgetName()intintgetText()intgetWidth()booleanbooleanstatic Stringvoidrepaint()voidsetBackground(GenericColor color) voidsetEnabled(boolean enabled) voidvoidvoidvoidsetPreferredSize(Dimension dimension) voidvoidsetVisible(boolean visible) abstract StringtoHTML()
-
Field Details
-
enabled
protected boolean enabled -
text
-
name
-
width
protected int width -
height
protected int height -
id
-
parent
-
mouseListener
-
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
-
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()
-