|
|
|||||||
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 | +--vipratech.beans.standardbeans.XYGraph
The XYGraph class allows Y values to be plotted against X. The Y values can be scaled against the left axis (Y1) or the right axis (Y2) allowing for multiple plots with different scaling. There are numerous other variables that can be configured at design time for scaling and display of the plot. The XYGraph instantiates vipratech.beans.standardbeans.Trace objects to draw the plot lines on the graph.
The YXGraph receives data using property change events. There is a channel1(PropertyChangeEvent event) method and a channel2(PropertyChange event) method for writing either a single point or a Vector of up to 5 points against a Y axis scale. Poinrs are described vipratech.beans.standardbeans.resources.PointFloat.java.
SimpleDataSource
,
Trace
,
PointFloat
, Serialized FormFields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
XYGraph()
Constructor. |
Method Summary | |
void |
channel1(java.beans.PropertyChangeEvent event)
Method to receive property change events to the y1 axis. |
void |
channel2(java.beans.PropertyChangeEvent event)
Method to receive property change events to the y2 axis. |
java.lang.Object |
clone()
Method to clone the Object for Printing |
void |
destroy()
Disposes of offscreen graphics. |
void |
finalize()
|
java.lang.String |
getAxisLabelX()
Returns x-axis label. |
java.lang.String |
getAxisLabelY1()
Returns left hand y-axis label. |
java.lang.String |
getAxisLabelY2()
Returns right hand y-axis label. |
int |
getAxisWidthY1()
Returns the size of the space on the left hand side of the graph. |
int |
getAxisWidthY2()
Returns the size of the space on the right hand side of the graph. |
java.lang.String |
getComment1()
Returns the first comment line. |
java.lang.String |
getComment2()
Returns the second comment line. |
int |
getDecimalPlacesX()
Returns number of decimal places for x-axis values. |
int |
getDecimalPlacesY1()
Returns number of decimal places for left hand y-axis values. |
int |
getDecimalPlacesY2()
Returns number of decimal places for right hand y-axis values. |
boolean |
getGridVisible()
Returns the visibility of the grid. |
java.awt.Color |
getLabelColorY1()
Returns the left hand y1-axis label color. |
java.awt.Color |
getLabelColorY2()
Returns the right hand y2-axis label color. |
java.util.Locale |
getLocale()
Returns the locale for this component. |
float |
getMaxX()
Returns maximum value on the horizontal axis. |
float |
getMaxY1()
Returns maximum value on the left hand vertical axis. |
float |
getMaxY2()
Returns maximum value on the right hand vertical axis. |
java.awt.Dimension |
getMinimumSize()
Minimum paper size is 200 x 150 pixels. |
float |
getMinX()
Returns minimum value on the horizontal axis. |
float |
getMinY1()
Returns minimum value on the left hand vertical axis. |
float |
getMinY2()
Returns minimum value on the right hand vertical axis. |
boolean |
getOffscreenGraphics()
Returns true if the offscreen graphics are loaded. |
boolean |
getRightToLeft()
Returns the right to left toggle. |
int |
getTicksX()
Returns number of tick marks and grid lines along the horizontal axis. |
int |
getTicksY()
Returns number of tick marks and grid lines along the vertical axis. |
java.lang.String |
getTitle()
Returns the graph title. |
boolean |
getY1AxisVisible()
Returns the visibility of the left hand y axis. |
boolean |
getY2AxisVisible()
Returns the visibility of the right hand y axis. |
void |
paint(java.awt.Graphics g)
Draws the image to the screen. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Method to receive property change events for changing language labels. |
void |
reset()
Resets to a blank graph paper. |
void |
setAxisLabelX(java.lang.String axisLabelX)
Sets x-axis label. |
void |
setAxisLabelY1(java.lang.String axisLabelY1)
Sets left hand y-axis label. |
void |
setAxisLabelY2(java.lang.String axisLabelY2)
Sets right hand y-axis label. |
void |
setAxisWidthY1(int axisWidthY1)
Sets the size of the space on the left hand side of the graph. |
void |
setAxisWidthY2(int axisWidthY2)
Sets the size of the space on the right hand side of the graph. |
void |
setComment1(java.lang.String comment1)
Sets the first comment line. |
void |
setComment2(java.lang.String comment2)
Sets the second comment line. |
void |
setDecimalPlacesX(int decimalPlacesX)
Sets number of decimal places for x-axis values. |
void |
setDecimalPlacesY1(int decimalPlacesY1)
Sets number of decimal places for left hand y-axis values. |
void |
setDecimalPlacesY2(int decimalPlacesY2)
Sets number of decimal places for right hand y-axis values. |
void |
setGridVisible(boolean gridVisible)
Sets the grid to be visible. |
void |
setLabelColorY1(java.awt.Color labelColorY1)
Sets the left hand y1-axis label color. |
void |
setLabelColorY2(java.awt.Color labelColorY2)
Sets the right hand y2-axis label color. |
void |
setLocale(java.util.Locale locale)
Sets the locale for this component. |
void |
setMaxX(float maxX)
Sets maximum value on the horizontal axis. |
void |
setMaxY1(float maxY1)
Sets maximum value on the left hand vertical axis. |
void |
setMaxY2(float maxY2)
Sets maximum value on the right hand vertical axis. |
void |
setMinX(float minX)
Sets minimum value on the horizontal axis. |
void |
setMinY1(float minY1)
Sets minimum value on the left hand vertical axis. |
void |
setMinY2(float minY2)
Sets minimum value on the right hand vertical axis. |
void |
setRightToLeft(boolean rightToLeft)
Toggles the graph to display data right to left. |
void |
setTicksX(int ticksX)
Sets number of tick marks and grid lines along the horizontal axis. |
void |
setTicksY(int ticksY)
Sets number of tick marks and grid lines along the vertical axis. |
void |
setTitle(java.lang.String title)
Sets the graph title. |
void |
setY1AxisVisible(boolean y1AxisVisible)
Sets the left hand y axis visible. |
void |
setY2AxisVisible(boolean y2AxisVisible)
Sets the right hand y axis visible. |
void |
update(java.awt.Graphics g)
Overides update method to minimise screen flicker. |
Methods inherited from class java.awt.Canvas |
addNotify |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
dispatchEvent,
doLayout,
enable,
enable,
enableInputMethods,
getAlignmentX,
getAlignmentY,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getName,
getParent,
getPeer,
getPreferredSize,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
preferredSize,
prepareImage,
prepareImage,
print,
printAll,
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,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
validate |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public XYGraph()
Method Detail |
public final void finalize()
public final void paint(java.awt.Graphics g)
public final void update(java.awt.Graphics g)
public final void reset()
public final void channel1(java.beans.PropertyChangeEvent event)
public final void channel2(java.beans.PropertyChangeEvent event)
public final void propertyChange(java.beans.PropertyChangeEvent event)
public final void destroy()
public final java.awt.Dimension getMinimumSize()
public final void setGridVisible(boolean gridVisible)
public final boolean getGridVisible()
public final void setMaxX(float maxX)
public final float getMaxX()
public final void setMinX(float minX)
public final float getMinX()
public final void setMaxY1(float maxY1)
public final float getMaxY1()
public final void setMinY1(float minY1)
public final float getMinY1()
public final void setMaxY2(float maxY2)
public final float getMaxY2()
public final void setMinY2(float minY2)
public final float getMinY2()
public final void setTicksX(int ticksX)
public final int getTicksX()
public final void setTicksY(int ticksY)
public final int getTicksY()
public final void setDecimalPlacesX(int decimalPlacesX)
public final int getDecimalPlacesX()
public final void setDecimalPlacesY1(int decimalPlacesY1)
public final int getDecimalPlacesY1()
public final void setDecimalPlacesY2(int decimalPlacesY2)
public final int getDecimalPlacesY2()
public final void setAxisLabelX(java.lang.String axisLabelX)
public final java.lang.String getAxisLabelX()
public final void setAxisLabelY1(java.lang.String axisLabelY1)
public final java.lang.String getAxisLabelY1()
public final void setAxisLabelY2(java.lang.String axisLabelY2)
public final java.lang.String getAxisLabelY2()
public final void setTitle(java.lang.String title)
public final java.lang.String getTitle()
public final void setY1AxisVisible(boolean y1AxisVisible)
public final boolean getY1AxisVisible()
public final void setY2AxisVisible(boolean y2AxisVisible)
public final boolean getY2AxisVisible()
public final void setAxisWidthY1(int axisWidthY1)
public final int getAxisWidthY1()
public final void setAxisWidthY2(int axisWidthY2)
public final int getAxisWidthY2()
public final void setComment1(java.lang.String comment1)
public final java.lang.String getComment1()
public final void setComment2(java.lang.String comment2)
public final java.lang.String getComment2()
public final void setLocale(java.util.Locale locale)
public final java.util.Locale getLocale()
public final void setLabelColorY1(java.awt.Color labelColorY1)
public final java.awt.Color getLabelColorY1()
public final void setLabelColorY2(java.awt.Color labelColorY2)
public final java.awt.Color getLabelColorY2()
public final boolean getOffscreenGraphics()
public final void setRightToLeft(boolean rightToLeft)
public final boolean getRightToLeft()
public java.lang.Object clone()
|
dathe@chemie.uni-leipzig.de" | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |