|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--com.elegantj.data.comp.panel.DataPanel
|
+--com.elegantj.graphx.GraphEx
This class acts as a container for Graph
| Field Summary | |
static int |
AREA_GRAPH
Area Graph Type |
static int |
BAR_GRAPH
Bar Graph Type |
static int |
BUBBLE_GRAPH
Bubble Graph Type |
static int |
COMBINED_GRAPH
Combined Graph Type |
static int |
DOUGHNUT_GRAPH
Doughnut Graph Type |
static java.lang.String[] |
GRAPH_SUBTYPE_NAMES
|
static int[] |
GRAPH_SUBTYPES
|
static java.lang.String[] |
GRAPH_TYPE_NAMES
Specifies the Graph Type Display values |
static int[] |
GRAPH_TYPES
|
static int |
HISTOGRAM_GRAPH
Histogram Graph Type |
static int |
LINE_GRAPH
Line Graph Type |
static int |
PIE_GRAPH
Pie Graph Type |
static int |
RADAR_GRAPH
Radar Graph Type |
static java.util.ResourceBundle |
RESOURCE_BUNDLE
Specifies the resource bundle |
static int |
STOCK_GRAPH
Stock Graph Type |
static int |
XYSCATTER_GRAPH
XYScatter Graph Type |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
GraphEx()
|
|
| Method Summary | |
void |
addContainerListener(java.awt.event.ContainerListener l)
Adds the specified container listener to receive container events from this container. |
void |
addMouseListener(java.awt.event.MouseListener l)
Adds the specified mouse listener to receive mouse events from this component. |
java.lang.Object |
clone()
Clone of the object |
protected void |
doGraphChanged(int graph)
This method sets the graph as the selected graphtype from menuitem or combobox |
static int |
getBasicGraphType(int type)
Converts the basic graph type related to sub type |
GraphPanel |
getGraph()
Gets the Graph Object |
java.util.Vector |
getGraphData()
Gets the graph data |
java.awt.image.BufferedImage |
getGraphImage()
Get graph image |
static int |
getGraphIndex(java.lang.String graphName)
|
GraphPanel |
getGraphObject(int type)
This method retrieves the graph object. |
int |
getGraphSubType()
Gets the Graph sub type |
static java.util.Vector |
getGraphSubTypes(int graphBasicType)
|
static java.util.Vector |
getGraphSubTypesName(int graphBasicType)
|
int |
getGraphType()
Gets the Graph Type |
static int |
getGraphType(java.lang.String graphName)
|
static java.lang.String |
getImageName(java.lang.String graphName)
|
protected java.awt.Rectangle |
getScaledSize(java.awt.Graphics g,
java.awt.Rectangle rect,
boolean visible)
|
static java.lang.String |
getTempletName(java.lang.String graphName)
|
protected java.awt.Rectangle |
getVisibleGraphRect()
Returns the Visible rectangle of the component |
void |
init()
|
boolean |
isDrillDownGraph()
Get given graph is drill down graph or not |
static GraphPanel |
loadFromXML(java.io.File xmlFile)
Read Xml sheet to graph properties |
static GraphPanel |
loadFromXML(java.lang.String xmlFile)
Read Xml sheet to graph properties |
void |
paint(java.awt.Graphics g)
paints graph according to properties and data of graph. |
void |
paintEx(java.awt.Graphics g)
Paints graph according to properties and data of graph. |
void |
populateGraph()
populate graph |
void |
readExternal(java.io.ObjectInput in)
This method retrieves the state of the bean |
void |
reDrawGraph()
|
void |
setBackground(java.awt.Color c)
Sets the Background color. |
void |
setBounds(int x,
int y,
int width,
int height)
|
void |
setBounds(java.awt.Rectangle r)
|
void |
setDefaultProperties()
Set default properties to Graph |
void |
setDrillDownGraph(boolean isDrillDownGraph)
Set given graph as drill down graph |
void |
setFont(java.awt.Font f)
Sets the Font. |
void |
setForeground(java.awt.Color c)
Sets the Foreground color. |
boolean |
setGraph(boolean isSetProperty)
draw Graph with default properties |
void |
setGraph(GraphPanel graph)
|
void |
setGraphData(java.util.Vector graphData)
Sets the graph data |
void |
setGraphImage(java.awt.Image image)
Set graph image If graph image is specified then paint image if graph image is null then normal painting of graph is called |
void |
setGraphSubType(int type)
Sets the Graph sub type |
void |
setGraphType(int type)
Sets the Graph Type |
void |
setLegendAreaWidth(java.util.Vector data)
Set Legend Area width to maximum Data String Width |
void |
setPrinting(boolean bPrinting)
|
void |
writeExternal(java.io.ObjectOutput out)
This method saves the state of the bean |
| Methods inherited from class com.elegantj.data.comp.panel.DataPanel |
clone, getBandName, getColumnName, getColumnNo, getDataValue, getDisplayValue, getPattern, getPatternColor, isColumnField, isLayered, setBandName, setBorder, setColumnName, setColumnNo, setDataValue, setDisplayValue, setLayered, setOpaque, setPattern, setPatternColor |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final transient java.util.ResourceBundle RESOURCE_BUNDLE
public static final int BAR_GRAPH
public static final int LINE_GRAPH
public static final int AREA_GRAPH
public static final int PIE_GRAPH
public static final int RADAR_GRAPH
public static final int COMBINED_GRAPH
public static final int HISTOGRAM_GRAPH
public static final int XYSCATTER_GRAPH
public static final int BUBBLE_GRAPH
public static final int STOCK_GRAPH
public static final int DOUGHNUT_GRAPH
public static final int[] GRAPH_TYPES
public static final java.lang.String[] GRAPH_TYPE_NAMES
public static final int[] GRAPH_SUBTYPES
public static final java.lang.String[] GRAPH_SUBTYPE_NAMES
| Constructor Detail |
public GraphEx()
| Method Detail |
public void init()
public void setGraph(GraphPanel graph)
public GraphPanel getGraph()
public void setGraphType(int type)
public int getGraphType()
public void setGraphSubType(int type)
public int getGraphSubType()
public static int getBasicGraphType(int type)
public void setGraphData(java.util.Vector graphData)
graphData - the double dimensional vector containing the graph data,
first element of the vector should be column namespublic java.util.Vector getGraphData()
public GraphPanel getGraphObject(int type)
type -
public void reDrawGraph()
public boolean setGraph(boolean isSetProperty)
isSetProperty - true for set Default properties otherwize false
public void setLegendAreaWidth(java.util.Vector data)
public void populateGraph()
protected void doGraphChanged(int graph)
public void setDefaultProperties()
public void setBackground(java.awt.Color c)
setBackground in class com.elegantj.data.comp.panel.DataPanelpublic void setForeground(java.awt.Color c)
setForeground in class javax.swing.JComponentpublic void setFont(java.awt.Font f)
setFont in class javax.swing.JComponentpublic void addMouseListener(java.awt.event.MouseListener l)
addMouseListener in class java.awt.Componentl - the mouse listenerpublic void addContainerListener(java.awt.event.ContainerListener l)
addContainerListener in class java.awt.Containerl - the container listenerpublic void setGraphImage(java.awt.Image image)
image - the graph imagepublic java.awt.image.BufferedImage getGraphImage()
public void setDrillDownGraph(boolean isDrillDownGraph)
isDrillDownGraph - true - if drill down graph; false - otherwisepublic boolean isDrillDownGraph()
public void paint(java.awt.Graphics g)
paint in class com.elegantj.data.comp.panel.DataPanelpublic void paintEx(java.awt.Graphics g)
protected java.awt.Rectangle getScaledSize(java.awt.Graphics g,
java.awt.Rectangle rect,
boolean visible)
g - Instance of Graphicsrect - Visible rectvisible - Wheather Graph is Fit into Visible Size
protected java.awt.Rectangle getVisibleGraphRect()
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class java.awt.Componentpublic void setBounds(java.awt.Rectangle r)
setBounds in class java.awt.Componentpublic void setPrinting(boolean bPrinting)
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class com.elegantj.data.comp.panel.DataPaneljava.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class com.elegantj.data.comp.panel.DataPaneljava.io.IOExceptionpublic java.lang.Object clone()
clone in interface com.elegantj.data.comp.DatabaseColumnclone in class com.elegantj.data.comp.panel.DataPanelpublic static java.util.Vector getGraphSubTypesName(int graphBasicType)
public static java.util.Vector getGraphSubTypes(int graphBasicType)
public static java.lang.String getImageName(java.lang.String graphName)
public static java.lang.String getTempletName(java.lang.String graphName)
public static int getGraphType(java.lang.String graphName)
public static int getGraphIndex(java.lang.String graphName)
public static GraphPanel loadFromXML(java.io.File xmlFile)
public static GraphPanel loadFromXML(java.lang.String xmlFile)
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||