|
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.graphx.GraphPanel
|
+--com.elegantj.graphx.line.LineGraph
LineGraph class implements the 2 dimensional and 3 dimensional Line, Point and strip graph with drill down and mouse over effect.
| Field Summary | |
static int |
DATAPOINT_SHAPE_CIRCLE
|
static int |
DATAPOINT_SHAPE_DESH
|
static int |
DATAPOINT_SHAPE_DIAMOND
|
static int |
DATAPOINT_SHAPE_NONE
|
static int |
DATAPOINT_SHAPE_PLUS
|
static int |
DATAPOINT_SHAPE_POT
|
static int |
DATAPOINT_SHAPE_SQUARE
|
static int |
DATAPOINT_SHAPE_STAR
|
static int |
DATAPOINT_SHAPE_TRIANGLE
|
protected static int |
LEGANDS_ORDER_CHANGE
Specifies the constant for refreshing graph |
protected static int |
LINE_CHANGE
Specifies the constant for refreshing graph |
protected static int |
LINE_COLOR_CHANGE
Specifies the constant for refreshing graph |
protected int |
m_ColItemIndex
|
protected int |
m_DataItemIndex
|
java.util.Vector |
m_DataMatrix
contains graph data. |
protected boolean |
m_GraphCurvedLineEnable
Specifies Graph Curved line visibility |
java.util.Vector |
m_GraphFormTable
contains setting of different graph formats. |
GraphLineDetail |
m_GraphLineDetail
Specifies the Graph Line Detail |
protected int |
m_GraphLineStyle
Specifies style for Graph line |
protected boolean |
m_GraphStripEnable
Specifies Graph Strip visibility |
protected boolean |
m_GraphStyledLineEnable
Specifies Graph Styled line visibility |
int |
m_Height
Specifies the total height |
protected boolean |
m_Initialized
Specifies whether the Graph has been initialized or not |
protected boolean |
m_IsRepaint
This flag false then block paint() mathod |
java.awt.Rectangle |
m_OriginalClipRect
Specifies the original clipping rectangle |
protected int |
m_RowItemIndex
|
protected int |
m_ShowDataLabelsType
Specifies show data labels Type |
int |
m_Width
Specifies the total width |
java.util.Vector |
m_XLabelList
contains list of label at x axis. |
java.util.Vector |
m_ZLabelList
contains list of label at z axis. |
static int |
ShowDataLabels_ALWAYS
|
static int |
ShowDataLabels_NEVER
|
static int |
ShowDataLabels_ROLLOVER
|
| 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 | |
LineGraph()
Creates the Graph with default settings |
|
LineGraph(boolean flag)
Creates the Graph with default settings |
|
| Method Summary | |
void |
CreateGraphTypeObject()
create LineGraphTypeObject |
DrillDownDetail |
getDrillDownDetail(GraphicsEx gEx,
int click_x,
int click_y)
Return DrillDownDetail object for given point Cordinate. |
java.awt.Polygon |
getGraphAreaPolygon()
Overriden method for return graph area polygon |
boolean |
getGraphCurvedLineEnable()
get Graph CurvedLine Enable/Disable |
int |
getGraphLineStyle()
get Graph Line style |
boolean |
getGraphStripEnable()
get Graph Strip Enable/Disable |
boolean |
getGraphStyledLineEnable()
get Graph StyledLine Enable/Disable |
java.lang.Object |
getGraphTypeObject()
|
java.awt.Color |
getInverseColor(java.awt.Color inColor)
|
java.awt.Color |
getLineColor(int inIndex)
Get the Line Color for specified index |
java.awt.Color |
getLineColor(java.lang.String inLabel)
Get the Line Color for specified label |
java.util.Vector |
getLineDetailProperties()
Get Line Properties |
LineGraphRowInfo |
getLineGraphRowInfo(int index)
Return the rowInfo for line numbered as index / Z axis label |
int |
getLinePosition()
get Line position |
GraphLineDetail |
getLineProperties()
Get GraphLineDetail Object for Line properties |
java.awt.Color |
getLineShadowColor()
Get Line shadow color |
boolean |
getLineShadowVisible()
Get Line shadow is Enable/Disable |
java.lang.String |
getLineTooltipText()
get Line Tooltip Text |
java.awt.Dimension |
getPreferredSize()
|
int |
getShowDataLabelsType()
set Graph Mouse Over text or DataLabel Text showing type |
java.lang.String |
getTooltipText()
return Line Tooltip text |
int |
getTransperancyInPercent()
get transperancy value of color |
protected java.awt.Rectangle |
getVisibleGraphRect()
Returns the Visible rectangle of the component |
protected int |
indexOf(java.util.Vector vector,
java.lang.String text)
Returns the index of the specified text into given vector |
void |
init()
Initialize graph variables |
void |
paintComponent(java.awt.Graphics g)
paints graph according to properties and data of graph. |
boolean |
populateGraph()
Populates the Graph |
void |
readExternal(java.io.ObjectInput in)
Retrieves the state of the bean |
void |
reDraw()
|
protected void |
refreshProperties(int nFor)
Refreshes the Graph followed by the given changed property |
void |
setGraphCurvedLineEnable(boolean enable)
set Graph CurvedLine Enable/Disable |
void |
setGraphLineStyle(int style)
set Graph Line style |
void |
setGraphStripEnable(boolean enable)
set Graph Strip Enable/Disable |
void |
setGraphStyledLineEnable(boolean enable)
set Graph StyledLine Enable/Disable |
void |
setLineColor(int inIndex,
java.awt.Color inColor)
Set the Line Color for specified index |
void |
setLineColor(java.lang.String inLabel,
java.awt.Color inColor)
Set the Line Color for specified label |
void |
setLineDetailProperties(java.util.Vector invalue)
Set Line Properties |
void |
setLineGraphRowInfo(int index,
LineGraphRowInfo obj)
set the rowInfo object for a line |
void |
setLinePosition(int position)
Set Line Position |
void |
setLineProperties(GraphLineDetail inGraphLineDetail)
Set GraphLineDetail Object Specifying Line properties |
void |
setLineShadowColor(java.awt.Color inColor)
Set Line shadow color |
void |
setLineShadowVisible(boolean isVisible)
Set Line shadow is Enable/Disable |
void |
setLineTooltipText(java.lang.String tooltip)
set Line Tooltip text |
void |
setShowDataLabelsType(int type)
set Graph Mouse Over text or DataLabel Text showing type |
void |
setTransperancyInPercent(int transperancyInPercent)
set Transperancy in line/strip/point color |
void |
update(java.awt.Graphics g)
|
void |
writeExternal(java.io.ObjectOutput out)
Saves the state of the bean |
void |
writeGraphAttributes(XMLWriter xmlwriter)
|
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, 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, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, 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, addMouseListener, 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, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ShowDataLabels_ROLLOVER
public static final int ShowDataLabels_ALWAYS
public static final int ShowDataLabels_NEVER
public static final int DATAPOINT_SHAPE_NONE
public static final int DATAPOINT_SHAPE_SQUARE
public static final int DATAPOINT_SHAPE_CIRCLE
public static final int DATAPOINT_SHAPE_TRIANGLE
public static final int DATAPOINT_SHAPE_DIAMOND
public static final int DATAPOINT_SHAPE_STAR
public static final int DATAPOINT_SHAPE_PLUS
public static final int DATAPOINT_SHAPE_DESH
public static final int DATAPOINT_SHAPE_POT
protected static final int LINE_COLOR_CHANGE
protected static final int LINE_CHANGE
protected static final int LEGANDS_ORDER_CHANGE
protected boolean m_Initialized
public java.awt.Rectangle m_OriginalClipRect
public int m_Width
public int m_Height
public GraphLineDetail m_GraphLineDetail
protected boolean m_GraphStripEnable
protected boolean m_GraphStyledLineEnable
protected boolean m_GraphCurvedLineEnable
protected int m_GraphLineStyle
protected int m_ShowDataLabelsType
public java.util.Vector m_GraphFormTable
public transient java.util.Vector m_XLabelList
public transient java.util.Vector m_ZLabelList
public transient java.util.Vector m_DataMatrix
protected boolean m_IsRepaint
protected int m_RowItemIndex
protected int m_ColItemIndex
protected int m_DataItemIndex
| Constructor Detail |
public LineGraph(boolean flag)
public LineGraph()
| Method Detail |
public void init()
public void setShowDataLabelsType(int type)
type - public int getShowDataLabelsType()
public void setGraphStyledLineEnable(boolean enable)
enable - if true then Graph StyledLine is drawn otherwise lines are drawnpublic boolean getGraphStyledLineEnable()
public void setGraphCurvedLineEnable(boolean enable)
enable - if true then Graph CurvedLine is drawn otherwise lines are drawnpublic boolean getGraphCurvedLineEnable()
public void setGraphLineStyle(int style)
public int getGraphLineStyle()
public void setGraphStripEnable(boolean enable)
enable - if true then Graph strip is drawn otherwise lines are drawnpublic boolean getGraphStripEnable()
public void setLineColor(java.lang.String inLabel,
java.awt.Color inColor)
inLabel - label whose color is to be returninColor - Color object to be setpublic java.awt.Color getLineColor(java.lang.String inLabel)
inLabel - Label whose color is to be return
public void setLineColor(int inIndex,
java.awt.Color inColor)
inIndex - index of label whose color is to be changedinColor - Color to be setpublic java.awt.Color getLineColor(int inIndex)
inIndex - index of label whose color is to be return
public void setLineProperties(GraphLineDetail inGraphLineDetail)
inGraphLineDetail - Object specifying Line Propertiespublic GraphLineDetail getLineProperties()
public LineGraphRowInfo getLineGraphRowInfo(int index)
public void setLineGraphRowInfo(int index,
LineGraphRowInfo obj)
public java.awt.Color getInverseColor(java.awt.Color inColor)
protected int indexOf(java.util.Vector vector,
java.lang.String text)
protected void refreshProperties(int nFor)
refreshProperties in class GraphPanelnFor - the changed property constantpublic void paintComponent(java.awt.Graphics g)
paintComponent in class GraphPanelpublic void update(java.awt.Graphics g)
update in class javax.swing.JComponentpublic void reDraw()
reDraw in class GraphPanelpublic void CreateGraphTypeObject()
public java.lang.Object getGraphTypeObject()
protected java.awt.Rectangle getVisibleGraphRect()
getVisibleGraphRect in class GraphPanelpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic java.awt.Polygon getGraphAreaPolygon()
getGraphAreaPolygon in class GraphPanel
public DrillDownDetail getDrillDownDetail(GraphicsEx gEx,
int click_x,
int click_y)
getDrillDownDetail in class GraphPanelclick_x - X coordinate of Pointclick_y - Y coordinate of Pointpublic java.lang.String getTooltipText()
getTooltipText in class GraphPanelpublic boolean populateGraph()
populateGraph in class GraphPanel
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class GraphPaneljava.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class GraphPaneljava.io.IOException
public void writeGraphAttributes(XMLWriter xmlwriter)
throws org.xml.sax.SAXException
writeGraphAttributes in class GraphPanelorg.xml.sax.SAXExceptionpublic void setLineDetailProperties(java.util.Vector invalue)
public java.util.Vector getLineDetailProperties()
public void setTransperancyInPercent(int transperancyInPercent)
transperancyInPercent - Percentage of trancparency in colorpublic int getTransperancyInPercent()
public void setLineTooltipText(java.lang.String tooltip)
tooltip - String representing Line tooltip textpublic java.lang.String getLineTooltipText()
public void setLinePosition(int position)
position - (GraphConstants.FRONT/GraphConstants.MIDDLE/GraphConstants.BACK)public int getLinePosition()
public void setLineShadowVisible(boolean isVisible)
isVisible - shadow of line is Enable/Disablepublic boolean getLineShadowVisible()
public void setLineShadowColor(java.awt.Color inColor)
inColor - color for shadow of linepublic java.awt.Color getLineShadowColor()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||