edu.stanford.math.plex
public class BCPlot extends javax.swing.JPanel
BCPlot
class does simple plotting of PersistenceIntervals.Modifier and Type | Class and Description |
---|---|
protected class |
BCPlot.DrawingPane
The component inside the scroll pane.
|
protected class |
BCPlot.fileSaveMenuHandler |
protected class |
BCPlot.Ruler |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
backgroundImageName |
protected java.awt.Color |
barcodeBarColor |
protected int |
barcodeBarHeight |
protected int |
barcodeBarSpacing |
protected BCPlot.DrawingPane |
barcodePane |
protected java.awt.Rectangle |
baseRegionUsedForPlotLegendRulerLabels |
protected java.awt.image.BufferedImage |
bufferedImage |
protected static int |
CIRCLE_SIZE |
protected static int |
DEFAULT_BARS_PER_PAGE |
protected javax.swing.Action |
fileSaveMenuHandler |
protected static int |
FIXED_RULER_HEIGHT |
protected BCPlot.Ruler |
fixedRuler |
protected java.awt.Color |
fixedRulerBorderColor |
protected java.awt.Color |
fixedRulerColor |
protected java.awt.Font |
fixedRulerFont |
protected java.awt.Color |
fixedRulerFontColor |
protected java.awt.FontMetrics |
fixedRulerFontMetrics |
protected java.awt.Color |
fixedRulerMajorTickColor |
protected java.awt.Color |
fixedRulerMinorTickColor |
protected int |
fullVisualizationHeight |
protected int |
fullVisualizationWidth |
protected int |
gridHeight |
protected java.lang.Boolean |
gridIsVisible |
protected java.awt.Font |
gridRulerFont |
protected java.awt.Color |
gridRulerFontColor |
protected java.awt.FontMetrics |
gridRulerFontMetrics |
protected java.awt.Color |
gridTickMajorColor |
protected java.awt.Color |
gridTickMinorColor |
protected int |
gridWidth |
protected int |
heightOfBaseRegionUsedForPlotLegendRulerLabels |
protected java.awt.Font |
labelFont |
protected java.awt.Color |
labelFontColor |
protected java.awt.FontMetrics |
labelFontMetrics |
protected int |
leftMargin |
protected java.awt.Font |
legendMajorFont |
protected java.awt.Color |
legendMajorFontColor |
protected java.awt.FontMetrics |
legendMajorFontMetrics |
protected java.lang.String |
legendMajorString |
protected java.awt.Font |
legendMinorFont |
protected java.awt.Color |
legendMinorFontColor |
protected java.awt.FontMetrics |
legendMinorFontMetrics |
protected java.lang.String |
legendMinorString |
protected static int |
MAX_DISPLAYABLE_BARS |
protected static int |
MAX_GRID_HEIGHT_PER_PAGE |
protected double |
pixelsPerUnit |
protected java.lang.Boolean |
plotBeingSaved |
protected boolean |
plotTypeScatter |
protected double |
plotUpperBound |
protected double[][] |
plotValue |
protected int |
rightMargin |
protected static long |
serialVersionUID |
protected java.lang.Boolean |
thereIsaBackgroundImage |
protected int |
tickGap |
protected int |
tickMajorPlacement |
protected java.awt.Color |
tickUpperBoundColor |
protected double |
unitsPerPixel |
protected java.awt.Color |
upperBoundFontColor |
protected int |
upperMargin |
protected int |
widthOfSideRegionUsedForPlotLegendRulerLabels |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier | Constructor and Description |
---|---|
protected |
BCPlot() |
protected |
BCPlot(double[][] values,
double upperBound,
boolean forceScatter) |
Modifier and Type | Method and Description |
---|---|
protected javax.swing.JMenuBar |
createMenuBar() |
static void |
doPlot(java.lang.String label,
double[][] intervals,
double upperBound)
Make a barcode plot -- call via Plex.plot().
|
static void |
doScatter(java.lang.String label,
double[][] intervals,
double upperBound)
Make a barcode scatterplot -- call via Plex.scatter().
|
protected java.lang.String[] |
getFormats() |
int |
getMaxDisplayableBars()
Returns the maximum number of barcodes that can be "plotted".
|
protected static java.lang.String |
illegal_interval_string(int i,
double a,
double b) |
protected void |
initJFrame() |
protected static void |
plot(java.lang.String legend,
double[][] values,
double upperBound,
boolean forceScatter)
Create the plot window and display results.
|
protected void |
setMajorLegend(java.lang.String s)
Sets the Major Legend
|
protected void |
validate(double[][] numbers,
double upperBound)
Validate the upperBound and the values used for the Barcode Plot
|
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, 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, hide, 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
protected static final int CIRCLE_SIZE
protected static final long serialVersionUID
protected boolean plotTypeScatter
protected BCPlot.Ruler fixedRuler
protected static final int FIXED_RULER_HEIGHT
protected static final int MAX_GRID_HEIGHT_PER_PAGE
protected static final int MAX_DISPLAYABLE_BARS
protected static final int DEFAULT_BARS_PER_PAGE
protected BCPlot.DrawingPane barcodePane
protected javax.swing.Action fileSaveMenuHandler
protected java.awt.Rectangle baseRegionUsedForPlotLegendRulerLabels
protected int heightOfBaseRegionUsedForPlotLegendRulerLabels
protected int widthOfSideRegionUsedForPlotLegendRulerLabels
protected int leftMargin
protected int rightMargin
protected java.lang.String legendMajorString
protected java.lang.String legendMinorString
protected int fullVisualizationWidth
protected int gridWidth
protected int gridHeight
protected int fullVisualizationHeight
protected double[][] plotValue
protected double plotUpperBound
protected java.awt.Color gridRulerFontColor
protected java.awt.Color tickUpperBoundColor
protected java.awt.Color gridTickMinorColor
protected java.awt.Color gridTickMajorColor
protected java.awt.Color upperBoundFontColor
protected java.awt.Color labelFontColor
protected java.awt.Color legendMinorFontColor
protected java.awt.Color legendMajorFontColor
protected java.awt.Color fixedRulerBorderColor
protected java.awt.Color fixedRulerColor
protected java.awt.Color barcodeBarColor
protected java.awt.Color fixedRulerFontColor
protected java.awt.Color fixedRulerMinorTickColor
protected java.awt.Color fixedRulerMajorTickColor
protected java.awt.Font labelFont
protected java.awt.Font legendMinorFont
protected java.awt.Font legendMajorFont
protected java.awt.Font gridRulerFont
protected java.awt.Font fixedRulerFont
protected java.awt.FontMetrics legendMinorFontMetrics
protected java.awt.FontMetrics legendMajorFontMetrics
protected java.awt.FontMetrics fixedRulerFontMetrics
protected java.awt.FontMetrics labelFontMetrics
protected java.awt.FontMetrics gridRulerFontMetrics
protected int upperMargin
protected int barcodeBarHeight
protected int barcodeBarSpacing
protected java.lang.Boolean gridIsVisible
protected java.lang.Boolean plotBeingSaved
protected double unitsPerPixel
protected double pixelsPerUnit
protected int tickMajorPlacement
protected int tickGap
protected java.awt.image.BufferedImage bufferedImage
protected java.lang.Boolean thereIsaBackgroundImage
protected java.lang.String backgroundImageName
protected BCPlot()
protected BCPlot(double[][] values, double upperBound, boolean forceScatter)
public int getMaxDisplayableBars()
protected void setMajorLegend(java.lang.String s)
protected static java.lang.String illegal_interval_string(int i, double a, double b)
protected void validate(double[][] numbers, double upperBound)
protected void initJFrame()
protected javax.swing.JMenuBar createMenuBar()
protected java.lang.String[] getFormats()
protected static void plot(java.lang.String legend, double[][] values, double upperBound, boolean forceScatter)
public static void doPlot(java.lang.String label, double[][] intervals, double upperBound)
label
- Window label.intervals
- An array of double[2] of [x,y] intervals to plot.upperBound
- Display the range from 0 to upperBound.Plex.plot(edu.stanford.math.plex.PersistenceInterval[], java.lang.String, double)
public static void doScatter(java.lang.String label, double[][] intervals, double upperBound)
label
- Window label.intervals
- An array of double[2] of x,y points to plot.upperBound
- Display the square from 0 to upperBound.Plex.scatter(edu.stanford.math.plex.PersistenceInterval[], java.lang.String, double)