|
Quaqua 8.0 2011-10-02 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.randelshofer.quaqua.osx.OSXAquaPainter
public class OSXAquaPainter
Renders Aqua user interface controls using the JavaRuntimeSupport framework API which is present in OS X 10.6 and 10.7.
References:
OpenJDK LaF classes
OpenJDK JRSUIControl classes
OpenJDK native code.
Nested Class Summary | |
---|---|
static class |
OSXAquaPainter.Direction
|
static class |
OSXAquaPainter.HorizontalAlignment
|
static class |
OSXAquaPainter.Key
Property keys. |
static class |
OSXAquaPainter.Orientation
|
static class |
OSXAquaPainter.ScrollBarPart
|
static class |
OSXAquaPainter.SegmentPosition
|
static class |
OSXAquaPainter.Size
|
static class |
OSXAquaPainter.State
|
static class |
OSXAquaPainter.Variant
|
static class |
OSXAquaPainter.VerticalAlignment
|
static class |
OSXAquaPainter.Widget
|
static class |
OSXAquaPainter.WindowType
|
Constructor Summary | |
---|---|
OSXAquaPainter()
|
Method Summary | |
---|---|
void |
dispose()
|
protected void |
finalize()
|
OSXAquaPainter.Widget |
getWidget()
|
static boolean |
isNativeCodeAvailable()
Load the native code. |
void |
paint(java.awt.image.BufferedImage image,
double x,
double y,
double width,
double height)
Paints the widget on the specified image. |
void |
paint(int[] imageData,
int imgWidth,
int imgHeight,
double x,
double y,
double width,
double height)
Paints the widget on the specified image. |
void |
setAnimating(boolean b)
Specifies whether to animate a JRSUIControl. |
void |
setDirection(OSXAquaPainter.Direction direction)
Sets the direction of the JRSUIControl. |
void |
setHorizontalAlignment(OSXAquaPainter.HorizontalAlignment halignment)
Sets the horizontal alignment of the JRSUIControl. |
void |
setOrientation(OSXAquaPainter.Orientation orientation)
Sets the orientation of the JRSUIControl. |
void |
setScrollBarPart(OSXAquaPainter.ScrollBarPart sbpart)
Specifies the desired scroll bar part of the JRSUIControl. |
void |
setSegmentPosition(OSXAquaPainter.SegmentPosition segpos)
Sets the segment position of the JRSUIControl. |
void |
setShowArrows(boolean b)
Specifies whether to show arrows on a JRSUIControl. |
void |
setSize(OSXAquaPainter.Size size)
Sets the size variant of the JRSUIControl. |
void |
setState(OSXAquaPainter.State state)
Sets the state of the JRSUIControl. |
void |
setValueByKey(OSXAquaPainter.Key key,
double value)
Sets a key value of the JRSUIControl. |
void |
setVariant(OSXAquaPainter.Variant variant)
Specifies the desired variant of the JRSUIControl. |
void |
setVerticalAlignment(OSXAquaPainter.VerticalAlignment valignment)
Sets the vertical alignment of the JRSUIControl. |
void |
setWidget(OSXAquaPainter.Widget widget)
Sets the widget type of the JRSUIControl. |
void |
setWindowType(OSXAquaPainter.WindowType wtype)
Specifies the desired window type of the JRSUIControl. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSXAquaPainter()
Method Detail |
---|
public static boolean isNativeCodeAvailable()
public void dispose()
public OSXAquaPainter.Widget getWidget()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setWidget(OSXAquaPainter.Widget widget)
public void setState(OSXAquaPainter.State state)
public void setValueByKey(OSXAquaPainter.Key key, double value)
public void setSize(OSXAquaPainter.Size size)
public void setDirection(OSXAquaPainter.Direction direction)
public void setOrientation(OSXAquaPainter.Orientation orientation)
public void setHorizontalAlignment(OSXAquaPainter.HorizontalAlignment halignment)
public void setVerticalAlignment(OSXAquaPainter.VerticalAlignment valignment)
public void setSegmentPosition(OSXAquaPainter.SegmentPosition segpos)
public void setScrollBarPart(OSXAquaPainter.ScrollBarPart sbpart)
public void setVariant(OSXAquaPainter.Variant variant)
public void setWindowType(OSXAquaPainter.WindowType wtype)
public void setShowArrows(boolean b)
public void setAnimating(boolean b)
public void paint(int[] imageData, int imgWidth, int imgHeight, double x, double y, double width, double height)
BufferedImage.TYPE_INT_ARGB_PRE
.
public void paint(java.awt.image.BufferedImage image, double x, double y, double width, double height)
BufferedImage.TYPE_INT_ARGB_PRE
.
java.lang.IllegalArgumentException
- if the image type is not BufferedImage.TYPE_INT_ARGB_PRE
.
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |