WindowUtils class. Demonstrates the
definition of a cross-platform library with several platform-specific
implementations based on JNA native library definitions.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void |
| ICON_SIZE | back to summary |
|---|---|
| public static final int ICON_SIZE | |
| ShapedWindowDemo | back to summary |
|---|---|
| public ShapedWindowDemo() | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| Modifier and Type | Field and Description |
|---|---|
| private Stroke | |
| private Stroke | |
| private Stroke | |
| private Stroke | |
| private Stroke |
| Modifier and Type | Method and Description |
|---|---|
| public Image | |
| private String | |
| protected void | paintComponent(Graphics
the graphics)Graphics object to protectOverrides javax. null.
|
| protected void |
| border | back to summary |
|---|---|
| private Stroke border | |
| hourHand | back to summary |
|---|---|
| private Stroke hourHand | |
| minuteHand | back to summary |
|---|---|
| private Stroke minuteHand | |
| secondHand | back to summary |
|---|---|
| private Stroke secondHand | |
| ticks | back to summary |
|---|---|
| private Stroke ticks | |
| ClockFace | back to summary |
|---|---|
| public ClockFace(Dimension size) | |
| getIconImage | back to summary |
|---|---|
| public Image getIconImage() | |
| getRomanNumeral | back to summary |
|---|---|
| private String getRomanNumeral(int number) | |
| paintComponent | back to summary |
|---|---|
| protected void paintComponent(Graphics graphics) Overrides javax. Doc from javax. Calls the UI delegate's paint method, if the UI delegate
is non-
If you override this in a subclass you should not make permanent
changes to the passed in
The passed in
| |
| paintFace | back to summary |
|---|---|
| protected void paintFace(Graphics graphics, int size) | |