|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--org.PingOO.DLAI.lib.graph.Graph2D
|
+--org.PingOO.DLAI.lib.graph.G2Dint
This class is an extension of Graph2D class.
It adds interactive selection of the plotting range and can display the mouse position in user coordinates.
Note: To hide Any pop-window press the key h in the window. This will hide the window at any time. Depending on your windowing system the mouse button might have to be pressed in the popup window to ensure it has the keyboard focus.
| Inner Class Summary | |
protected class |
G2Dint.G2DintActionListener
|
protected class |
G2Dint.G2DintKeyListener
|
protected class |
G2Dint.G2DintMouseListener
|
protected class |
G2Dint.G2DintMouseMotionListener
|
protected class |
G2Dint.Gin
Popup a window to output data after a Graphics Input command the window contains the following : X value, Y value |
protected class |
G2Dint.Range
A popup window for altering the range of the plot |
| Inner classes inherited from class org.PingOO.DLAI.lib.graph.Graph2D |
Graph2D.Graph2DKeyListener,
Graph2D.LoadMessage |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
| Field Summary | |
private G2Dint.Gin |
cpgin
This popup window for the cursor position command. |
protected java.awt.event.ActionListener |
defaultActionListener
|
protected java.awt.event.MouseListener |
defaultMouseListener
|
protected java.awt.event.MouseMotionListener |
defaultMouseMotionListener
|
private G2Dint.Gin |
dpgin
This popup window for the data point command. |
protected boolean |
drag
Sets to true when a rectangle is being dragged out by the mouse. |
private G2Dint.Range |
range
The popup window to manually set the range. |
protected boolean |
userlimits
User limits. |
private int |
x0
Button Down position |
private int |
x1
Button Drag position |
private int |
x1old
Previous Button Drag position |
protected Axis |
xaxis
Attached X Axis which must be registered with this class. |
private int |
y0
Button Down position |
private int |
y1
Button Drag position |
private int |
y1old
Previous Button Drag position |
protected Axis |
yaxis
Attached Y Axis which must be registered with this class. |
| Fields inherited from class org.PingOO.DLAI.lib.graph.Graph2D |
axis,
borderBottom,
borderLeft,
borderRight,
borderTop,
clearAll,
DataBackground,
datarect,
dataset,
DefaultBackground,
defaultKeyListener,
drawgrid,
drawzero,
frame,
framecolor,
gridcolor,
lastText,
load_thread,
loadingData,
markers,
paintAll,
square,
zerocolor |
| Fields inherited from class java.awt.Canvas |
base,
graphicsConfig,
nameCounter,
serialVersionUID |
| Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
| Constructor Summary | |
G2Dint()
|
|
| Method Summary | |
void |
attachAxis(Axis a)
Attach axis to be used for the drag scaling. |
Axis |
createXAxis()
Create Xaxis to be used for the drag scaling |
Axis |
createYAxis()
Create Yaxis to be used for the drag scaling |
protected double[] |
getClosestPoint(int ix,
int iy)
Find the closest data point to the cursor |
void |
update(java.awt.Graphics g)
New update method incorporating mouse dragging. |
| Methods inherited from class org.PingOO.DLAI.lib.graph.Graph2D |
attachDataSet,
createAxis,
detachAxes,
detachAxis,
detachDataSet,
detachDataSets,
drawAxis,
drawFrame,
finishedloading,
ForceSquare,
getDataRectangle,
getMarkers,
getXmax,
getXmin,
getYmax,
getYmin,
loadDataSet,
loadFile,
loadmessage,
paint,
paintBeforeData,
paintFirst,
paintLast,
setDataBackground,
setGraphBackground,
setMarkers,
startedloading |
| Methods inherited from class java.awt.Canvas |
|
| Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
disableEvents,
dispatchEvent,
dispatchEventImpl,
doLayout,
enable,
enable,
enableEvents,
enableInputMethods,
eventEnabled,
firePropertyChange,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getMinimumSize,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getPreferredSize,
getSize,
getSize,
getToolkit,
getToolkitImpl,
getTreeLock,
getWidth,
getWindowForObject,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
initIDs,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
lightweightPrint,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
paramString,
postEvent,
preferredSize,
prepareImage,
prepareImage,
print,
printAll,
processComponentEvent,
processEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
readObject,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setFont,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
validate,
writeObject |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
| Field Detail |
protected boolean drag
true when a rectangle is being dragged out by the mouse.protected boolean userlimits
private G2Dint.Gin cpgin
private G2Dint.Gin dpgin
private G2Dint.Range range
private int x0
private int y0
private int x1
private int y1
private int x1old
private int y1old
protected Axis xaxis
protected Axis yaxis
protected java.awt.event.MouseListener defaultMouseListener
protected java.awt.event.MouseMotionListener defaultMouseMotionListener
protected java.awt.event.ActionListener defaultActionListener
| Constructor Detail |
public G2Dint()
| Method Detail |
public Axis createXAxis()
public Axis createYAxis()
public void attachAxis(Axis a)
Axis.BOTTOM or Axis.TOP.
Axis.LEFT or Axis.RIGHT.a - Axis to attachAxispublic void update(java.awt.Graphics g)
protected double[] getClosestPoint(int ix,
int iy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||