public class GPane
extends javax.swing.JPanel
implements java.awt.event.FocusListener, java.awt.print.Printable
isReady()
) before invoking drawing methods.
(A GPanelNotReadyException is thrown after a blocking timeout of 30 sec)GPanel
,
Serialized FormModifier and Type | Field and Description |
---|---|
java.awt.Color |
backgroundColor
Property for bean support.
|
boolean |
enableFocus |
java.awt.Color |
penColor
Property for bean support.
|
double |
xmax
Property for bean support.
|
double |
xmin
Property for bean support.
|
double |
ymax
Property for bean support.
|
double |
ymin
Property for bean support.
|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
GPane()
Create a GPane to be used as embedded graphics component with default size 100x100 pixels.
|
GPane(Size size)
Create a GPane to be used as embedded graphics component with given size.
|
GPane(Size size,
boolean embedded)
Create a GPane with given size.
|
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(java.awt.geom.AffineTransform at)
Apply the given AffineTransform to offscreen buffer.
|
void |
arc(double radius,
double startAngle,
double extendAngle)
Draw an arc with center at the current graph position
and given radius in window coordinates.
|
java.awt.Color |
bgColor(java.awt.Color color)
Set the background color.
|
void |
circle(double radius)
Draw a circle with center at the current graph position
and given radius in horizontal window coordinates.
|
void |
clear()
Clear the graphics window (fully paint with background color)
(and the offscreen buffer used by the window).
|
void |
clearStore(java.awt.Color color)
Clear store buffer by uniformly painting it with with given color.
|
java.awt.Color |
color(java.awt.Color color)
Same as setColor() (deprecated).
|
void |
cubicBezier(double x1,
double y1,
double xc1,
double yc1,
double xc2,
double yc2,
double x2,
double y2)
Draw a cubic bezier curve.
|
void |
cubicBezier(java.awt.geom.Point2D.Double pt1,
java.awt.geom.Point2D.Double ptc1,
java.awt.geom.Point2D.Double ptc2,
java.awt.geom.Point2D.Double pt2)
Draw a cubic bezier curve.
|
static void |
delay(int time)
Delay execution for the given amount of time ( in ms ).
|
void |
dispose()
Release all used system resources (offscreen buffer, graphics context)
and unblock getKeyWait() and getKeyCodeWait() and waiting Monitor.putSleep().
|
void |
draw(double x,
double y)
Draw a line from current graph position to given window coordinates and
set the graph position to the endpoint.
|
void |
draw(java.awt.geom.Point2D.Double pt)
Draw a line from current graph position to given point (in window coordinates)
and set the graph position to the endpoint.
|
void |
ellipse(double a,
double b)
Draw an ellipse with center at the current graph position
and given horizontal and vertical axes.
|
boolean |
enableRepaint(boolean doRepaint)
Enable or disable the automatic repaint in graphics methods.
|
void |
erase()
Same as clear() but let the current graph position unchanged.
|
void |
fill(double x,
double y,
java.awt.Color color,
java.awt.Color replacement)
Change the color of the bounded region with the given internal point
to the replacement color using the flood fill algorithm.
|
void |
fill(java.awt.geom.Point2D.Double pt,
java.awt.Color color,
java.awt.Color replacement)
Change the color of the bounded region with the given internal point
to the replacement color using the flood fill algorithm.
|
void |
fillArc(double radius,
int startAngle,
int extendAngle)
Draw a filled arc with center at the current graph position
and given radius in window coordinates.
|
void |
fillCircle(double radius)
Draw a filled circle with center at the current graph position
and given radius in window coordinates using the current color.
|
void |
fillEllipse(double a,
double b)
Draw a filled ellipse with center at the current graph position
and given horizontal and vertical axes.
|
void |
fillGeneralPath(java.awt.geom.GeneralPath gp)
Fill a figure defined by the given GeneralPath (using window coordinates)
using the current color.
|
void |
fillPolygon(double[] x,
double[] y)
Draw a filled polygon with given corner coordinates in window coordinates
using the current color.
|
void |
fillPolygon(java.awt.geom.Point2D.Double[] corner)
Draw a filled polygon with given corner points in window coordinates
using the current color.
|
void |
fillRectangle(double width,
double height)
Draw a filled rectangle with center at the current graph position
and given width and height in window coordinates using the current color.
|
void |
fillRectangle(double x1,
double y1,
double x2,
double y2)
Draw a filled rectangle with given opposite corners
in window coordinates using the current color.
|
void |
fillRectangle(java.awt.geom.Point2D.Double pt1,
java.awt.geom.Point2D.Double pt2)
Draw a filled rectangle with given opposite corner points
in window coordinates using the current color.
|
void |
fillTriangle(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Draw a filled triangle with given corner coordinates in window coordinates
using the current color.
|
void |
fillTriangle(java.awt.geom.Point2D.Double pt1,
java.awt.geom.Point2D.Double pt2,
java.awt.geom.Point2D.Double pt3)
Draw a filled triangle with given corners in window coordinates
using the current color.
|
void |
focusGained(java.awt.event.FocusEvent evt)
Essentially for internal use only.
|
void |
focusLost(java.awt.event.FocusEvent evt)
Essentially for internal use only.
|
void |
font(java.awt.Font font)
Select the given font for all following text operations.
|
void |
generalPath(java.awt.geom.GeneralPath gp)
Draw a figure defined by the given GeneralPath (using window coordinates).
|
java.lang.String |
getAbout()
Return copywrite information
|
java.awt.Color |
getBackgroundColor()
Return the color of the background
|
java.awt.Color |
getBgColor()
Return the current background color.
|
boolean |
getEnableFocus()
Return true, if the focus is enabled; otherwise false.
|
java.awt.Graphics2D |
getOffG2D()
Return the Graphics2D context of the offscreen buffer
|
java.awt.Color |
getPenColor()
Return the color of the pen.
|
java.awt.Color |
getPixelColor(double x,
double y)
Return the color of the pixel at given window coordinates.
|
java.awt.Color |
getPixelColor(java.awt.geom.Point2D.Double pt)
Return the color of the pixel at given point (in window coordinates).
|
java.awt.geom.Point2D.Double |
getPos()
Return reference to point of current graph position (in window coordinates).
|
double |
getPosX()
Return window coordinate x of current graph position.
|
double |
getPosY()
Return window coordinate y of current graph position.
|
java.lang.String |
getVersion()
Return version information
|
GWindow |
getWindow()
Return a reference to the GWindow used by the GPane.
|
double |
getXmax()
Return the xmax range value.
|
double |
getXmin()
Return the ymin range value.
|
double |
getYmax()
Return the ymax range value.
|
double |
getYmin()
Return the ymin range value.
|
boolean |
image(java.awt.image.BufferedImage bi,
double x,
double y)
Show the GIF image from given BufferedImage at x, y window coordinates
(specifies lowerleft corner of image).
|
boolean |
image(java.awt.image.BufferedImage bi,
java.awt.geom.Point2D.Double pt)
Show the GIF image from given BufferedImage at given point(in window coordinates)
(specifies lowerleft corner of image).
|
boolean |
image(java.lang.String imagePath,
double x,
double y)
Show the GIF image from given file path at x, y window coordinates
(specifies lowerleft corner of image).
|
boolean |
image(java.lang.String imagePath,
java.awt.geom.Point2D.Double pt)
Show the GIF image from given file path at given point(in window coordinates)
(specifies lowerleft corner of image).
|
double |
imageHeight(java.lang.String imagePath)
Return the height (vertical size) of the GIF image from the given path (in window coordinates).
|
double |
imageWidth(java.lang.String imagePath)
Return the width (horizontal size) of the GIF image from the given path (in window coordinates).
|
boolean |
isReady()
Test if GPane is fully initialized.
|
void |
line(double x1,
double y1,
double x2,
double y2)
Draws a line with given window coordinates
and set the graph position to the endpoint.
|
void |
line(java.awt.geom.Point2D.Double pt1,
java.awt.geom.Point2D.Double pt2)
Draws a line with given points (in window coordinates)
and set the graph position to the endpoint.
|
void |
lineWidth(int width)
Set the current line width in pixels.
|
void |
move(double x,
double y)
Set the current graph position to given window coordinates
(without drawing anything).
|
void |
move(int x,
int y)
Same as move(double x, double y)
|
void |
move(java.awt.geom.Point2D.Double pt)
Set the current graph position to given point (in window coordinates)
(without drawing anything).
|
void |
paintComponent(java.awt.Graphics g)
For internal use only.
|
void |
point(double x,
double y)
Draw a single point at the given window coordinates.
|
void |
point(java.awt.geom.Point2D.Double pt)
Draw a single point at the given pt (in window coordinates).
|
void |
polygon(double[] x,
double[] y)
Draw a polygon with given corner coordinates in window coordinates.
|
void |
polygon(java.awt.geom.Point2D.Double[] corner)
Draw a polygon with given corner points in window coordinates.
|
void |
pos(double x,
double y)
Same as move(double x, double y).
|
void |
pos(java.awt.geom.Point2D.Double pt)
Same as move(Point2D.Double pt).
|
boolean |
print(GPrintable gp)
Same as print(GPrintable gp, double scale)
with scale = 1.
|
boolean |
print(GPrintable gp,
double scale)
Print the graphics context to an attached printer with
the given magnification scale factor.
|
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int pageIndex)
For internal use only.
|
boolean |
printScreen()
Same printScreen(double scale) with scale = 1.
|
boolean |
printScreen(double scale)
Print the current screen view to an attached printer
with the given magnification scale factor.
|
void |
quadraticBezier(double x1,
double y1,
double xc,
double yc,
double x2,
double y2)
Draw a quadratic bezier curve.
|
void |
quadraticBezier(java.awt.geom.Point2D.Double pt1,
java.awt.geom.Point2D.Double ptc,
java.awt.geom.Point2D.Double pt2)
Draw a quadratic bezier curve.
|
void |
recallGraphics()
Copy graphics from store buffer to offscreen buffer
and render it on the screen window (if enableRepaint(true)).
|
void |
rectangle(double width,
double height)
Draw a rectangle with center at the current graph position
and given width and height in window coordinates.
|
void |
rectangle(double x1,
double y1,
double x2,
double y2)
Draw a rectangle with given opposite corners
in window coordinates.
|
void |
rectangle(java.awt.geom.Point2D.Double pt1,
java.awt.geom.Point2D.Double pt2)
Draw a rectangle with given opposite corner points
in window coordinates.
|
void |
repaint()
Override JPanel's repaint() to inhibit explicit repainting
while printing.
|
void |
repaint(int x,
int y,
int width,
int height)
Override JPanel's repaint(int x, int y, int width, int height)
to inhibit explicit repainting while printing.
|
void |
setBackgroundColor(java.awt.Color value)
Set the color of the background.
|
java.awt.Color |
setColor(java.awt.Color color)
Set the given new color and return the previous color
|
void |
setEnableFocus(boolean enable)
Enable/disable the focus.
|
void |
setEnableResize(boolean enable)
Enable/disable resizing.
|
void |
setPaintMode()
Set the paint mode of the graphics context to overwrite
with current color.
|
void |
setPenColor(java.awt.Color value)
Set the color of the pen.
|
void |
setXmax(double value)
Set the xmax range value.
|
void |
setXmin(double value)
Set the xmin range value.
|
void |
setXORMode(java.awt.Color c)
Sets the paint mode to alternate between the current color and the given color.
|
void |
setYmax(double value)
Set the xmax range value.
|
void |
setYmin(double value)
Set the ymin range value.
|
void |
storeGraphics()
Create a store buffer and copy current graphics to it.
|
void |
text(char c)
Draw a char at the current graph position.
|
void |
text(double x,
double y,
char c)
Draw a char at the given position.
|
void |
text(double x,
double y,
java.lang.String str)
Draw a string at the given x-y position.
|
void |
text(double x,
double y,
java.lang.String str,
java.awt.Font font,
java.awt.Color textColor,
java.awt.Color bgColor)
Draw a string at the given position with extended text attributes.
|
void |
text(java.awt.geom.Point2D.Double pt,
char c)
Draw a char at the given position.
|
void |
text(java.awt.geom.Point2D.Double pt,
java.lang.String str)
Draw a string at the given position.
|
void |
text(java.awt.geom.Point2D.Double pt,
java.lang.String str,
java.awt.Font font,
java.awt.Color textColor,
java.awt.Color bgColor)
Draw a string at the given position with extended text attributes.
|
void |
text(java.lang.String str)
Draw a string at the current graph position.
|
void |
title(java.lang.String title)
Set the title in the window's title bar.
|
java.awt.Point |
toUser(double windowX,
double windowY)
Return reference to point in user coordinate of given window coordinates.
|
java.awt.Point |
toUser(java.awt.geom.Point2D.Double windowPt)
Return reference to point in user coordinate of given point in window coordinate.
|
int |
toUserHeight(double windowHeight)
Return user coordinates increment y of given window coordinates increment y.
|
int |
toUserWidth(double windowWidth)
Return user coordinates increment x of given window coordinates increment x.
|
int |
toUserX(double windowX)
Return user coordinate x of given window coordinate x.
|
int |
toUserY(double windowY)
Return user coordinate y of given window coordinate y.
|
java.awt.geom.Point2D.Double |
toWindow(int userX,
int userY)
Return reference to point in window coordinates of given user coordinates.
|
java.awt.geom.Point2D.Double |
toWindow(java.awt.Point userPt)
Return reference to point in window coordinates of given point in user coordinates.
|
double |
toWindowHeight(int userHeight)
Return window coordinates increment y of given user coordinates increment y.
|
double |
toWindowWidth(int userWidth)
Return window coordinates increment x of given user coordinates increment x.
|
double |
toWindowX(int userX)
Return window coordinate x of given user coordinate x.
|
double |
toWindowY(int userY)
Return window coordinate y of given user coordinate y.
|
void |
triangle(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Draw a triangle with given corner coordinates in window coordinates.
|
void |
triangle(java.awt.geom.Point2D.Double pt1,
java.awt.geom.Point2D.Double pt2,
java.awt.geom.Point2D.Double pt3)
Draw a triangle with given corners in window coordinates.
|
void |
visible(boolean isVisible)
Select if GPane's window is visible or not.
|
void |
window(double xmin,
double xmax,
double ymin,
double ymax)
Set window coordinates.
|
void |
windowSize(int width,
int height)
Set the size of the entire window (including title bar and borders)
in device coordinates.
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public java.awt.Color backgroundColor
public java.awt.Color penColor
public double xmin
public double xmax
public double ymin
public double ymax
public boolean enableFocus
public GPane()
public GPane(Size size)
public GPane(Size size, boolean embedded)
public void window(double xmin, double xmax, double ymin, double ymax)
public void visible(boolean isVisible)
public GWindow getWindow()
public void repaint()
repaint
in class java.awt.Component
public void repaint(int x, int y, int width, int height)
repaint
in class java.awt.Component
public boolean isReady()
public boolean print(GPrintable gp, double scale)
import ch.aplu.util.*;
public class PrintEx extends GPane implements GPrintable
{
public PrintEx()
{
draw(); // Draw on screen
print(this); // Draw on printer
}
public void draw()
{
move(0, 0);
draw(1, 0);
draw(1, 1);
draw(0, 1);
draw(0, 0);
line(0, 1, 1, 0);
line(0, 0, 1, 1);
}
public static void main(String[] args)
{
new PrintEx();
}
}
public boolean print(GPrintable gp)
public boolean printScreen(double scale)
public boolean printScreen()
public java.awt.Color bgColor(java.awt.Color color)
public java.awt.Color getBgColor()
public void title(java.lang.String title)
public int toUserX(double windowX)
public int toUserY(double windowY)
public java.awt.Point toUser(java.awt.geom.Point2D.Double windowPt)
public java.awt.Point toUser(double windowX, double windowY)
public int toUserWidth(double windowWidth)
public int toUserHeight(double windowHeight)
public double toWindowX(int userX)
public double toWindowY(int userY)
public java.awt.geom.Point2D.Double toWindow(java.awt.Point userPt)
public java.awt.geom.Point2D.Double toWindow(int userX, int userY)
public double toWindowWidth(int userWidth)
public double toWindowHeight(int userHeight)
public void lineWidth(int width)
public java.awt.Color color(java.awt.Color color)
public java.awt.Color setColor(java.awt.Color color)
public void line(double x1, double y1, double x2, double y2)
public void line(java.awt.geom.Point2D.Double pt1, java.awt.geom.Point2D.Double pt2)
public void draw(double x, double y)
public void draw(java.awt.geom.Point2D.Double pt)
public void move(double x, double y)
public void move(int x, int y)
move
in class java.awt.Component
public void pos(double x, double y)
public void move(java.awt.geom.Point2D.Double pt)
public void pos(java.awt.geom.Point2D.Double pt)
public double getPosX()
public double getPosY()
public java.awt.geom.Point2D.Double getPos()
public void clear()
public void erase()
public void circle(double radius)
public void fillCircle(double radius)
public void ellipse(double a, double b)
public void fillEllipse(double a, double b)
public void rectangle(double width, double height)
public void rectangle(double x1, double y1, double x2, double y2)
public void rectangle(java.awt.geom.Point2D.Double pt1, java.awt.geom.Point2D.Double pt2)
public void fillRectangle(double width, double height)
public void fillRectangle(double x1, double y1, double x2, double y2)
public void fillRectangle(java.awt.geom.Point2D.Double pt1, java.awt.geom.Point2D.Double pt2)
public void arc(double radius, double startAngle, double extendAngle)
public void fillArc(double radius, int startAngle, int extendAngle)
public void polygon(double[] x, double[] y)
public void polygon(java.awt.geom.Point2D.Double[] corner)
public void fillPolygon(double[] x, double[] y)
public void fillPolygon(java.awt.geom.Point2D.Double[] corner)
public void quadraticBezier(java.awt.geom.Point2D.Double pt1, java.awt.geom.Point2D.Double ptc, java.awt.geom.Point2D.Double pt2)
public void quadraticBezier(double x1, double y1, double xc, double yc, double x2, double y2)
public void cubicBezier(java.awt.geom.Point2D.Double pt1, java.awt.geom.Point2D.Double ptc1, java.awt.geom.Point2D.Double ptc2, java.awt.geom.Point2D.Double pt2)
public void cubicBezier(double x1, double y1, double xc1, double yc1, double xc2, double yc2, double x2, double y2)
public void triangle(double x1, double y1, double x2, double y2, double x3, double y3)
public void triangle(java.awt.geom.Point2D.Double pt1, java.awt.geom.Point2D.Double pt2, java.awt.geom.Point2D.Double pt3)
public void fillTriangle(double x1, double y1, double x2, double y2, double x3, double y3)
public void fillTriangle(java.awt.geom.Point2D.Double pt1, java.awt.geom.Point2D.Double pt2, java.awt.geom.Point2D.Double pt3)
public void generalPath(java.awt.geom.GeneralPath gp)
public void fillGeneralPath(java.awt.geom.GeneralPath gp)
public void text(java.lang.String str)
public void text(char c)
public void text(double x, double y, java.lang.String str)
public void text(java.awt.geom.Point2D.Double pt, java.lang.String str)
public void text(double x, double y, char c)
public void text(java.awt.geom.Point2D.Double pt, char c)
public void text(double x, double y, java.lang.String str, java.awt.Font font, java.awt.Color textColor, java.awt.Color bgColor)
public void text(java.awt.geom.Point2D.Double pt, java.lang.String str, java.awt.Font font, java.awt.Color textColor, java.awt.Color bgColor)
public void font(java.awt.Font font)
public void point(double x, double y)
public void point(java.awt.geom.Point2D.Double pt)
public void fill(java.awt.geom.Point2D.Double pt, java.awt.Color color, java.awt.Color replacement)
public void fill(double x, double y, java.awt.Color color, java.awt.Color replacement)
public boolean image(java.lang.String imagePath, double x, double y)
public boolean image(java.lang.String imagePath, java.awt.geom.Point2D.Double pt)
public boolean image(java.awt.image.BufferedImage bi, double x, double y)
public boolean image(java.awt.image.BufferedImage bi, java.awt.geom.Point2D.Double pt)
public double imageWidth(java.lang.String imagePath)
public double imageHeight(java.lang.String imagePath)
public void applyTransform(java.awt.geom.AffineTransform at)
public boolean enableRepaint(boolean doRepaint)
public void setPaintMode()
public void setXORMode(java.awt.Color c)
public java.awt.Graphics2D getOffG2D()
public void dispose()
public void storeGraphics()
recallGraphics()
,
clearStore(java.awt.Color)
public void recallGraphics()
storeGraphics()
,
clearStore(java.awt.Color)
public void clearStore(java.awt.Color color)
storeGraphics()
,
recallGraphics()
public java.lang.String getVersion()
public java.lang.String getAbout()
public void focusGained(java.awt.event.FocusEvent evt)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent evt)
focusLost
in interface java.awt.event.FocusListener
public void windowSize(int width, int height)
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
print
in interface java.awt.print.Printable
public java.awt.Color getPixelColor(double x, double y)
public java.awt.Color getPixelColor(java.awt.geom.Point2D.Double pt)
public void setBackgroundColor(java.awt.Color value)
public java.awt.Color getBackgroundColor()
public void setPenColor(java.awt.Color value)
public java.awt.Color getPenColor()
public void setXmin(double value)
public double getXmin()
public void setXmax(double value)
public double getXmax()
public void setYmin(double value)
public double getYmin()
public void setYmax(double value)
public double getYmax()
public void setEnableFocus(boolean enable)
public boolean getEnableFocus()
public void setEnableResize(boolean enable)
public static void delay(int time)