|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmol.awt.Platform
public class Platform
| Field Summary | |
|---|---|
private Mouse |
mouse
|
| Constructor Summary | |
|---|---|
Platform()
|
|
| Method Summary | |
|---|---|
Object |
allocateRgbImage(int windowWidth,
int windowHeight,
int[] pBuffer,
int windowSize,
boolean backgroundTransparent)
|
void |
clearMouse()
|
Object |
createImage(Object data)
can be ignored (return null) if platform cannot save images |
void |
disposeGraphics(Object gOffscreen)
|
void |
disposeMouse()
|
void |
drawImage(Object g,
Object img,
int x,
int y)
|
int[] |
drawImageToBuffer(Object gOffscreen,
Object imageOffscreen,
Object imageobj,
int width,
int height,
int bgcolor)
|
void |
flushImage(Object imagePixelBuffer)
|
int |
fontStringWidth(Object fontMetrics,
String text)
|
int |
getFontAscent(Object fontMetrics)
|
int |
getFontDescent(Object fontMetrics)
|
Object |
getFontMetrics(Object graphics,
Object font)
|
Object |
getGraphics(Object image)
|
int |
getImageHeight(Object image)
|
int |
getImageWidth(Object image)
|
Object |
getJpgImage(Viewer viewer,
int quality,
String comment)
used for JPG writing only; can be ignored |
void |
getMouseManager(Viewer viewer,
ActionManager actionManager)
|
Object |
getStaticGraphics(Object image,
boolean backgroundTransparent)
|
void |
grabPixels(Object image,
int imageWidth,
int imageHeight,
int[] values)
used for JPG writing only; can be ignored |
int[] |
grabPixels(Object image,
int x,
int y,
int width,
int height)
|
boolean |
handleOldJvm10Event(int id,
int x,
int y,
int modifiers,
long time)
|
boolean |
hasFocus(Object display)
|
Object |
newBufferedImage(Object image,
int w,
int h)
|
Object |
newBufferedRgbImage(int w,
int h)
|
Object |
newFont(String fontFace,
boolean isBold,
boolean isItalic,
float fontSize)
|
void |
renderOffScreen(String text,
Font3D font3d,
Object gObj,
int mapWidth,
int height,
int ascent)
|
void |
renderScreenImage(JmolViewer viewer,
Object g,
Object size)
legacy apps will use this |
void |
repaint(Object display)
|
void |
requestFocusInWindow(Object display)
|
void |
setCursor(int c,
Object display)
|
void |
setTransparentCursor(Object display)
|
boolean |
waitForDisplay(Object display,
Object image)
can be ignored (return false) if platform cannot save images |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Mouse mouse
| Constructor Detail |
|---|
public Platform()
| Method Detail |
|---|
public boolean hasFocus(Object display)
hasFocus in interface ApiPlatformpublic void requestFocusInWindow(Object display)
requestFocusInWindow in interface ApiPlatformpublic void repaint(Object display)
repaint in interface ApiPlatform
public void renderScreenImage(JmolViewer viewer,
Object g,
Object size)
renderScreenImage in interface ApiPlatformviewer - g - size - public void setTransparentCursor(Object display)
setTransparentCursor in interface ApiPlatform
public void setCursor(int c,
Object display)
setCursor in interface ApiPlatform
public void getMouseManager(Viewer viewer,
ActionManager actionManager)
getMouseManager in interface ApiPlatform
public boolean handleOldJvm10Event(int id,
int x,
int y,
int modifiers,
long time)
handleOldJvm10Event in interface ApiPlatformpublic void clearMouse()
clearMouse in interface ApiPlatformpublic void disposeMouse()
disposeMouse in interface ApiPlatform
public Object allocateRgbImage(int windowWidth,
int windowHeight,
int[] pBuffer,
int windowSize,
boolean backgroundTransparent)
allocateRgbImage in interface ApiPlatformpublic Object createImage(Object data)
ApiPlatform
createImage in interface ApiPlatformpublic void disposeGraphics(Object gOffscreen)
disposeGraphics in interface ApiPlatform
public void drawImage(Object g,
Object img,
int x,
int y)
drawImage in interface ApiPlatform
public int[] drawImageToBuffer(Object gOffscreen,
Object imageOffscreen,
Object imageobj,
int width,
int height,
int bgcolor)
drawImageToBuffer in interface ApiPlatformpublic void flushImage(Object imagePixelBuffer)
flushImage in interface ApiPlatformpublic Object getGraphics(Object image)
getGraphics in interface ApiPlatformpublic int getImageHeight(Object image)
getImageHeight in interface ApiPlatformpublic int getImageWidth(Object image)
getImageWidth in interface ApiPlatform
public Object getJpgImage(Viewer viewer,
int quality,
String comment)
ApiPlatform
getJpgImage in interface ApiPlatform
public Object getStaticGraphics(Object image,
boolean backgroundTransparent)
getStaticGraphics in interface ApiPlatform
public void grabPixels(Object image,
int imageWidth,
int imageHeight,
int[] values)
ApiPlatform
grabPixels in interface ApiPlatform
public int[] grabPixels(Object image,
int x,
int y,
int width,
int height)
grabPixels in interface ApiPlatform
public Object newBufferedImage(Object image,
int w,
int h)
newBufferedImage in interface ApiPlatform
public Object newBufferedRgbImage(int w,
int h)
newBufferedRgbImage in interface ApiPlatform
public void renderOffScreen(String text,
Font3D font3d,
Object gObj,
int mapWidth,
int height,
int ascent)
renderOffScreen in interface ApiPlatform
public boolean waitForDisplay(Object display,
Object image)
throws InterruptedException
ApiPlatform
waitForDisplay in interface ApiPlatformInterruptedException
public int fontStringWidth(Object fontMetrics,
String text)
fontStringWidth in interface ApiPlatformpublic int getFontAscent(Object fontMetrics)
getFontAscent in interface ApiPlatformpublic int getFontDescent(Object fontMetrics)
getFontDescent in interface ApiPlatform
public Object getFontMetrics(Object graphics,
Object font)
getFontMetrics in interface ApiPlatform
public Object newFont(String fontFace,
boolean isBold,
boolean isItalic,
float fontSize)
newFont in interface ApiPlatform
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||