ElegantJCharts Java API Specification v2.0

com.elegantj.graphx
Class GeneralProperty

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.elegantj.graphx.GeneralProperty
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable
Direct Known Subclasses:
CombinedGraphGeneralProperty

public class GeneralProperty
extends javax.swing.JPanel
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.beans.PropertyChangeListener

Create General Property panel

See Also:
Serialized Form

Field Summary
protected  int m_GraphType
           
protected  HashtableEx m_hLabelPropertyTable
           
static int[] m_HorAlignAV
           
static java.lang.String[] m_HorAlignDV
           
static java.lang.String[] m_LabelAlignDV
           
static int[] m_MOAlignAV
           
static java.lang.String[] m_MOAlignDV
           
protected  GraphPanel m_Object
           
protected  javax.swing.JPanel m_Parent
           
static int[] m_VertAlignAV
           
static java.lang.String[] m_VertAlignDV
           
protected  javax.swing.JRadioButton rbDoubleYAxis
           
protected  javax.swing.JRadioButton rbSingleYAxis
           
 javax.swing.JComboBox xAxislabelAlignChoice
           
 javax.swing.JComboBox xAxisNameAlignChoice
           
 javax.swing.JComboBox[] yAxisNameAlignChoice
           
 
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
GeneralProperty(javax.swing.JPanel parent, GraphPanel inDataObject)
           
GeneralProperty(javax.swing.JPanel parent, GraphPanel inDataObject, boolean bStandAlone)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
protected  void addYAxisNameAlignChoice(javax.swing.JComboBox alignChoice)
          Adds Alignment ComboBox to be notified for any change
 void getAxisNameChoice(int graphType)
           
 java.lang.Object getHashTableValue(java.lang.String propertyName)
          Get value of given property from Hashtable
 java.lang.Object getHashTableValues(java.lang.String propertyName)
          get property to Hashtable
 int getHorizontalAlign(javax.swing.JComboBox choice)
           
 java.awt.Insets getInsets()
           
 int getVerticalAlign(javax.swing.JComboBox choice)
           
 void init()
          Create Property panel
 void initComponent()
          Initialize components
 void initGraphTypeValues()
           
 void initSingleYaxisProp()
           
static boolean isAreaGraph(int graphtype)
           
static boolean isBarGraph(int graphtype)
           
static boolean isCandleGraph(int graphtype)
           
static boolean isHistogramGraph(int graphtype)
           
static boolean isLineGraph(int graphtype)
           
static boolean isPieGraph(int graphtype)
           
static boolean isRadarGraph(int graphtype)
           
static boolean isScatterGraph(int graphtype)
           
 void itemStateChanged(java.awt.event.ItemEvent evt)
          Processing Item selection change event
 void okClicked()
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
protected  void removeEntryFromHashtable(java.lang.Object key)
          removeEntryFromHashtable remove entry for property not required in subclass
 void setAxisNameChoice(int graphType)
           
 void setHashTableValues(java.lang.String propertyName, java.lang.Object value)
          Set property to Hashtable
 void setHorizontalAlign(javax.swing.JComboBox choice, int align)
           
 void setText(javax.swing.JTextField textComp, java.lang.String text)
           
 void setVerticalAlign(javax.swing.JComboBox choice, int align)
           
 void updateSingleYAxis(java.lang.Object value)
           
 
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, 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, paint, 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, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
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, 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, 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

rbSingleYAxis

protected javax.swing.JRadioButton rbSingleYAxis

rbDoubleYAxis

protected javax.swing.JRadioButton rbDoubleYAxis

m_Parent

protected javax.swing.JPanel m_Parent

m_Object

protected GraphPanel m_Object

m_hLabelPropertyTable

protected HashtableEx m_hLabelPropertyTable

xAxisNameAlignChoice

public javax.swing.JComboBox xAxisNameAlignChoice

xAxislabelAlignChoice

public javax.swing.JComboBox xAxislabelAlignChoice

yAxisNameAlignChoice

public javax.swing.JComboBox[] yAxisNameAlignChoice

m_VertAlignDV

public static java.lang.String[] m_VertAlignDV

m_VertAlignAV

public static int[] m_VertAlignAV

m_HorAlignDV

public static java.lang.String[] m_HorAlignDV

m_HorAlignAV

public static int[] m_HorAlignAV

m_MOAlignDV

public static java.lang.String[] m_MOAlignDV

m_MOAlignAV

public static int[] m_MOAlignAV

m_LabelAlignDV

public static java.lang.String[] m_LabelAlignDV

m_GraphType

protected int m_GraphType
Constructor Detail

GeneralProperty

public GeneralProperty(javax.swing.JPanel parent,
                       GraphPanel inDataObject)

GeneralProperty

public GeneralProperty(javax.swing.JPanel parent,
                       GraphPanel inDataObject,
                       boolean bStandAlone)
Method Detail

init

public void init()
Create Property panel


initGraphTypeValues

public void initGraphTypeValues()

initComponent

public void initComponent()
Initialize components


setText

public void setText(javax.swing.JTextField textComp,
                    java.lang.String text)

okClicked

public void okClicked()

addYAxisNameAlignChoice

protected void addYAxisNameAlignChoice(javax.swing.JComboBox alignChoice)
Adds Alignment ComboBox to be notified for any change


setAxisNameChoice

public void setAxisNameChoice(int graphType)

getAxisNameChoice

public void getAxisNameChoice(int graphType)

setHorizontalAlign

public void setHorizontalAlign(javax.swing.JComboBox choice,
                               int align)

getHorizontalAlign

public int getHorizontalAlign(javax.swing.JComboBox choice)

setVerticalAlign

public void setVerticalAlign(javax.swing.JComboBox choice,
                             int align)

getVerticalAlign

public int getVerticalAlign(javax.swing.JComboBox choice)

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent evt)
Processing Item selection change event

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
evt - Item event

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

setHashTableValues

public void setHashTableValues(java.lang.String propertyName,
                               java.lang.Object value)
Set property to Hashtable

Parameters:
propertyName -
value -

getHashTableValues

public java.lang.Object getHashTableValues(java.lang.String propertyName)
get property to Hashtable

Parameters:
propertyName -
Returns:
object

getHashTableValue

public java.lang.Object getHashTableValue(java.lang.String propertyName)
Get value of given property from Hashtable

Parameters:
propertyName - the property name
Returns:
value the value for given property

removeEntryFromHashtable

protected void removeEntryFromHashtable(java.lang.Object key)
removeEntryFromHashtable remove entry for property not required in subclass


getInsets

public java.awt.Insets getInsets()
Overrides:
getInsets in class javax.swing.JComponent

updateSingleYAxis

public void updateSingleYAxis(java.lang.Object value)

initSingleYaxisProp

public void initSingleYaxisProp()

isBarGraph

public static boolean isBarGraph(int graphtype)

isLineGraph

public static boolean isLineGraph(int graphtype)

isScatterGraph

public static boolean isScatterGraph(int graphtype)

isAreaGraph

public static boolean isAreaGraph(int graphtype)

isHistogramGraph

public static boolean isHistogramGraph(int graphtype)

isPieGraph

public static boolean isPieGraph(int graphtype)

isCandleGraph

public static boolean isCandleGraph(int graphtype)

isRadarGraph

public static boolean isRadarGraph(int graphtype)

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.