public class GalleryPanel extends javax.swing.JPanel implements Gallery
Title: GalleryPanel class
Description: An extended JPanel class to hold a Chart Series gallery.
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
com.steema.teechart.editors.gallery.GalleryPanel.GalleryChartCollection |
charts
List of Charts showing at Gallery panel.
|
static boolean |
checkMaximize
Determines if Gallery panel will show Chart axis labels or not when maximized.
|
static java.awt.Cursor |
cursorDisabled
The mouse cursor for Series styles that are not allowed (disabled).
|
boolean |
functionsVisible
Determines if Gallery panel shows Functions, or only Series.
|
static int |
galleryNumCols
The default number of Columns in Gallery panel.
|
static int |
galleryNumRows
The default number of Rows in Gallery panel.
|
java.awt.event.ActionListener |
onChangeChart
Event called when a Chart is selected (clicked) at Gallery.
|
java.awt.event.ActionListener |
onSelectedChart
Event called when a Chart is selected and double-clicked at Gallery.
|
java.awt.event.ActionListener |
onSubSelected
Event called when a Series sub-style is selected at sub-Gallery.
|
GalleryChart |
selectedChart |
Series |
selectedSeries |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
GalleryPanel() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSubCharts(Series s) |
void |
createGalleryPage(java.lang.String pageName) |
void |
createGalleryPage(java.lang.String pageName,
boolean functions) |
void |
createGallerySeries(java.lang.Class seriesType) |
IBaseChart |
createSubChart(java.lang.String name) |
static java.lang.String |
galleryPages(int index) |
boolean |
getDisplaySub()
The GalleryPanel will display a sub-gallery when clicking left-bottom
corner small arrow when true.
Default value: true |
java.lang.Class |
getFunctionType()
Returns currently selected Function style, or null if none.
|
java.lang.Object |
getInitArgs() |
int |
getNumCols()
The number of Series type columns to display in the Chart Gallery Panel.
|
int |
getNumRows()
The number of Series type rows to display in the Chart Gallery Panel.
|
java.lang.Class |
getSeriesType() |
boolean |
getSmooth()
Determines if the chart gallery will display charts in normal mode
or "smooth" mode.
|
int |
getSubIndex() |
boolean |
getView3D()
View Series Types in Gallery Panel as 3D/2D.
|
protected void |
processKeyEvent(java.awt.event.KeyEvent e) |
void |
resizeCharts() |
void |
setDisplaySub(boolean value)
Sets if GalleryPanel will display a sub-gallery when clicking
left-bottom corner small arrow when true.
Default value: true |
void |
setNumCols(int value)
Sets the number of Series type columns to display in the Chart Gallery
Panel.
|
void |
setNumRows(int value)
Sets the number of Series type rows to display in the Chart Gallery
Panel.
Default value: 4 |
void |
setSmooth(boolean value)
The chart gallery will display charts in "smooth" mode when true.
Default value: false |
void |
setSubSelected(Series s,
int index) |
void |
setView3D(boolean value)
View Series Types in Gallery Panel as 3D/2D.
|
protected void |
subSelected(java.lang.Object sender) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int galleryNumRows
public static final int galleryNumCols
public static final java.awt.Cursor cursorDisabled
public static final boolean checkMaximize
public boolean functionsVisible
public GalleryChart selectedChart
public Series selectedSeries
public java.awt.event.ActionListener onSelectedChart
public java.awt.event.ActionListener onSubSelected
public java.awt.event.ActionListener onChangeChart
public com.steema.teechart.editors.gallery.GalleryPanel.GalleryChartCollection charts
public boolean getSmooth()
public void setSmooth(boolean value)
value
- booleanpublic boolean getDisplaySub()
public void setDisplaySub(boolean value)
value
- booleanpublic int getNumRows()
public void setNumRows(int value)
value
- intpublic int getNumCols()
public void setNumCols(int value)
value
- intpublic boolean getView3D()
public void setView3D(boolean value)
value
- booleanpublic IBaseChart createSubChart(java.lang.String name)
createSubChart
in interface Gallery
protected void addSubCharts(Series s)
protected void subSelected(java.lang.Object sender) throws java.lang.IllegalAccessException, java.lang.InstantiationException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
public void setSubSelected(Series s, int index)
public java.lang.Class getFunctionType()
public java.lang.Object getInitArgs()
public java.lang.Class getSeriesType()
public int getSubIndex()
public void resizeCharts()
public static java.lang.String galleryPages(int index)
public void createGalleryPage(java.lang.String pageName) throws java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
public void createGalleryPage(java.lang.String pageName, boolean functions) throws java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
public void createGallerySeries(java.lang.Class seriesType) throws java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
protected void processKeyEvent(java.awt.event.KeyEvent e)
processKeyEvent
in class javax.swing.JComponent