|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.supple.wlib.java2.SwingUtils
Field Summary | |
protected static java.awt.image.BufferedImage |
buffer
|
protected static java.awt.Graphics2D |
graphics
|
Constructor Summary | |
SwingUtils()
|
Method Summary | |
static javax.swing.JLabel |
createJLabel(java.io.Serializable label)
|
static java.util.Vector |
getSameRenderingObjects(UiObject obj)
Returns a vector of other objects (exluding self) that are constrained to be rendered the same way |
static javax.swing.JComponent |
getSwingComponentWithContextMenu(javax.swing.JComponent c,
SwingWidget w)
Connects a swing widget to mouse listeners and transfer handlers, so that customization commands can be performed |
static javax.swing.JComponent |
getSwingComponentWithContextMenu(SwingWidget w,
int hints)
Connects a swing widget to mouse listeners and transfer handlers, so that customization commands can be performed |
static java.lang.String |
getTypicalString(int length)
Produces a "typical" string of a given length |
static java.util.Vector |
getTypicalStringList(int length,
int number)
Produces an array of "typical" strings of a given length |
static java.awt.geom.Rectangle2D |
getTypicalStringSize(int length,
java.awt.Font font)
Returns the size of the "typical" string of a given lenght as rendered using a particular font |
static UiObject |
getUiObjectOfJComponent(javax.swing.JComponent component)
Returns the UiObject that is connected to a JComponent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.awt.image.BufferedImage buffer
protected static java.awt.Graphics2D graphics
Constructor Detail |
public SwingUtils()
Method Detail |
public static javax.swing.JLabel createJLabel(java.io.Serializable label)
public static java.lang.String getTypicalString(int length)
length
- the lenght for the string
public static java.awt.geom.Rectangle2D getTypicalStringSize(int length, java.awt.Font font)
length
- the lenghtfont
- font
public static java.util.Vector getTypicalStringList(int length, int number)
length
- the lenght for the stringnumber
- How many strings should be returned in the collection
public static javax.swing.JComponent getSwingComponentWithContextMenu(SwingWidget w, int hints)
w
- public static javax.swing.JComponent getSwingComponentWithContextMenu(javax.swing.JComponent c, SwingWidget w)
w
- public static UiObject getUiObjectOfJComponent(javax.swing.JComponent component)
component
-
public static java.util.Vector getSameRenderingObjects(UiObject obj)
obj
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |