public class SLAxes extends SLComponent implements SLLocator, SLCameraChangeListener
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
AUTO_AXIS |
static int |
AXES_GRID_AUTO |
static int |
AXES_GRID_MANUAL |
static int |
AXES_IJ |
static int |
AXES_NORMAL |
static int |
AXES_TICK_AUTO |
static int |
AXES_TICK_LABEL_AUTO |
static int |
AXES_TICK_LABEL_MANUAL |
static int |
AXES_TICK_MANUAL |
static int |
AXES_TIGHT |
static int |
AXES_XY |
protected SLCamera |
camera |
protected java.util.ArrayList |
children |
static int |
HIDE_AXIS |
static int |
SHOW_AXIS |
name, selected
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(SLComponentEvent e)
Although each component is painted on down the children hierarchy there
are some cases for cross-talk between the axes and its children.
|
void |
addChild(SLComponent b) |
void |
addSLComponentListener(SLComponentEventListener listen) |
void |
applyPreferences(java.lang.String repos,
SLAxesPreferences p) |
java.awt.Color |
getAxesColor() |
java.awt.Font |
getAxesFont() |
float |
getAxesLineThickness() |
boolean |
getAxesOn() |
DblMatrix |
getAxisHideThreshold() |
double |
getBottomBorder() |
double |
getBottomMargin() |
boolean |
getBoxOn() |
SLCamera |
getCamera() |
java.util.List |
getChildren() |
DblMatrix |
getCoordinate(double[] pixel)
Get the coordinate for the given screen pixel location.
|
DblMatrix |
getCoordinate(int[] pixel)
Get the coordinate for the given screen pixel location.
|
double |
getCurrentBottomMargin() |
double |
getCurrentLeftMargin() |
double |
getCurrentRightMargin() |
double |
getCurrentTopMargin() |
int[] |
getDataBoundingBox()
// Get the 2D coordinate for the given screen pixel location.
|
DblMatrix |
getExtentX()
Gets the extent in the X-direction.
|
DblMatrix |
getExtentY()
Gets the extent in the Y-direction.
|
DblMatrix |
getExtentZ()
Gets the extent in the Z-direction.
|
java.awt.Graphics |
getGraphics() |
boolean |
getGridOn() |
double |
getLeftBorder() |
double |
getLeftMargin() |
int[] |
getPixel(DblMatrix x,
DblMatrix y) |
int[] |
getPixel(DblMatrix x,
DblMatrix y,
DblMatrix z) |
DblMatrix |
getPixelAsDbl(DblMatrix x,
DblMatrix y) |
DblMatrix |
getPixelAsDbl(DblMatrix x,
DblMatrix y,
DblMatrix z) |
float[] |
getPixelAsFloat(DblMatrix x,
DblMatrix y) |
float[] |
getPixelAsFloat(DblMatrix x,
DblMatrix y,
DblMatrix z) |
double |
getRightBorder() |
double |
getRightMargin() |
DblMatrix |
getSceneCenter() |
java.awt.Font |
getTitleFont() |
double |
getTopBorder() |
double |
getTopMargin() |
int |
getXAxesStrategy() |
int |
getXAxisHide() |
java.awt.Font |
getXLabelFont() |
DblMatrix |
getXLim() |
DblMatrix |
getXRange() |
int |
getYAxesStrategy() |
int |
getYAxisHide() |
java.awt.Font |
getYLabelFont() |
DblMatrix |
getYLim() |
DblMatrix |
getYRange() |
int |
getZAxisHide() |
DblMatrix |
getZLim() |
DblMatrix |
getZRange() |
boolean |
hasChild(SLComponent b) |
SLLine |
newLine(DblMatrix x,
DblMatrix y)
Adds a new SLLine to the this SLAxes.
|
SLLine |
newLine(DblMatrix x,
DblMatrix y,
java.awt.Color col)
Adds a new SLLine to the this SLAxes.
|
void |
paint(java.awt.Graphics g) |
void |
paintSL(java.awt.Graphics g) |
void |
refreshGrid() |
void |
refreshOriginalGrid() |
void |
removeAllChild() |
void |
removeChild(SLComponent b) |
void |
removeSLComponentListener(SLComponentEventListener listen) |
void |
setAxesColor(java.awt.Color b) |
void |
setAxesFont(java.awt.Font f) |
void |
setAxesFontSize(float size) |
void |
setAxesFontSize(int size) |
void |
setAxesLineThickness(float x) |
void |
setAxesOn(boolean x) |
void |
setAxesStrategy(int n) |
void |
setAxisHideThreshold(DblMatrix c) |
void |
setBackgroundColor(java.awt.Color b) |
void |
setBoxOn(boolean x) |
void |
setCamera(SLCamera c) |
void |
setExtentX(DblMatrix ex) |
void |
setExtentY(DblMatrix ex) |
void |
setExtentZ(DblMatrix ex) |
void |
setGridOn(boolean x) |
void |
setLineThickness(int x) |
void |
setOrientation(int j) |
void |
setTitle(java.lang.String title) |
void |
setTitleColor(java.awt.Color b) |
void |
setTitleFont(java.awt.Font f) |
void |
setXAxesStrategy(int n) |
void |
setXAxisHide(int c) |
void |
setXLabel(java.lang.String label) |
void |
setXLabelColor(java.awt.Color b) |
void |
setXLabelFont(java.awt.Font f) |
void |
setXLim(DblMatrix xlim) |
void |
setYAxesStrategy(int n) |
void |
setYAxisHide(int c) |
void |
setYLabel(java.lang.String label) |
void |
setYLabelColor(java.awt.Color b) |
void |
setYLabelFont(java.awt.Font f) |
void |
setYLim(DblMatrix ylim) |
void |
setZAxisHide(int c) |
void |
setZLabel(java.lang.String label) |
void |
setZLabelColor(java.awt.Color b) |
void |
setZLabelFont(java.awt.Font f) |
void |
stateChanged(SLCameraChangeEvent ev) |
void |
updatePreferences(java.lang.String repos,
SLAxesPreferences p)
Deprecated.
|
getName, getXBounds, getYBounds, getZBounds, isSelected, seenIntersecting, setName, setSelected, superComponentPaint
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, updateUI
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, 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, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected java.util.ArrayList children
public static final int AXES_TIGHT
public static final int AXES_NORMAL
public static final int AXES_IJ
public static final int AXES_XY
public static final int AXES_GRID_AUTO
public static final int AXES_GRID_MANUAL
public static final int AXES_TICK_AUTO
public static final int AXES_TICK_MANUAL
public static final int AXES_TICK_LABEL_AUTO
public static final int AXES_TICK_LABEL_MANUAL
public static final int HIDE_AXIS
public static final int SHOW_AXIS
public static final int AUTO_AXIS
protected SLCamera camera
public SLAxes(SLFigure fig)
public SLLine newLine(DblMatrix x, DblMatrix y, java.awt.Color col)
public void setAxisHideThreshold(DblMatrix c)
public DblMatrix getAxisHideThreshold()
public void setZAxisHide(int c)
public void setXAxisHide(int c)
public void setYAxisHide(int c)
public int getZAxisHide()
public int getXAxisHide()
public int getYAxisHide()
public void setCamera(SLCamera c)
public void stateChanged(SLCameraChangeEvent ev)
stateChanged
in interface SLCameraChangeListener
public SLCamera getCamera()
public java.util.List getChildren()
getChildren
in class SLComponent
public void setXLim(DblMatrix xlim)
public void setYLim(DblMatrix ylim)
public void setLineThickness(int x)
public void setAxesLineThickness(float x)
public float getAxesLineThickness()
public void setAxesStrategy(int n)
public void setXAxesStrategy(int n)
public void setYAxesStrategy(int n)
public int getXAxesStrategy()
public int getYAxesStrategy()
@Deprecated public void updatePreferences(java.lang.String repos, SLAxesPreferences p)
applyPreferences(String repos,SLAxesPreferences p)
public void applyPreferences(java.lang.String repos, SLAxesPreferences p)
public java.awt.Font getAxesFont()
public java.awt.Font getYLabelFont()
public java.awt.Font getXLabelFont()
public java.awt.Font getTitleFont()
public double getCurrentLeftMargin()
public double getCurrentRightMargin()
public double getCurrentTopMargin()
public double getCurrentBottomMargin()
public double getLeftMargin()
public double getRightMargin()
public double getTopBorder()
public double getBottomBorder()
public double getLeftBorder()
public double getRightBorder()
public double getTopMargin()
public double getBottomMargin()
public void setGridOn(boolean x)
public void setAxesOn(boolean x)
public void setBoxOn(boolean x)
public boolean getGridOn()
public boolean getBoxOn()
public boolean getAxesOn()
public DblMatrix getSceneCenter()
public void setExtentX(DblMatrix ex)
public void setExtentY(DblMatrix ex)
public void setExtentZ(DblMatrix ex)
public DblMatrix getExtentX()
public DblMatrix getExtentY()
public DblMatrix getExtentZ()
public DblMatrix getXRange()
public DblMatrix getYRange()
public DblMatrix getZRange()
public void setBackgroundColor(java.awt.Color b)
public void setAxesColor(java.awt.Color b)
public void setXLabelColor(java.awt.Color b)
public void setYLabelColor(java.awt.Color b)
public void setTitleColor(java.awt.Color b)
public void setZLabelColor(java.awt.Color b)
public java.awt.Color getAxesColor()
public float[] getPixelAsFloat(DblMatrix x, DblMatrix y)
getPixelAsFloat
in interface SLLocator
public DblMatrix getPixelAsDbl(DblMatrix x, DblMatrix y)
getPixelAsDbl
in interface SLLocator
public void setXLabelFont(java.awt.Font f)
public void setYLabelFont(java.awt.Font f)
public void setZLabelFont(java.awt.Font f)
public void setTitleFont(java.awt.Font f)
public void setAxesFontSize(int size)
public void setAxesFontSize(float size)
public void setAxesFont(java.awt.Font f)
public void refreshGrid()
public void refreshOriginalGrid()
public void actionPerformed(SLComponentEvent e)
actionPerformed
in class SLComponent
public DblMatrix getCoordinate(int[] pixel)
getCoordinate
in interface SLLocator
public DblMatrix getCoordinate(double[] pixel)
getCoordinate
in interface SLLocator
public int[] getDataBoundingBox()
public float[] getPixelAsFloat(DblMatrix x, DblMatrix y, DblMatrix z)
getPixelAsFloat
in interface SLLocator
public DblMatrix getPixelAsDbl(DblMatrix x, DblMatrix y, DblMatrix z)
getPixelAsDbl
in interface SLLocator
public java.awt.Graphics getGraphics()
getGraphics
in class SLComponent
public void addSLComponentListener(SLComponentEventListener listen)
public void removeSLComponentListener(SLComponentEventListener listen)
public void addChild(SLComponent b)
addChild
in class SLComponent
public boolean hasChild(SLComponent b)
hasChild
in class SLComponent
public void removeChild(SLComponent b)
public void removeAllChild()
public void paint(java.awt.Graphics g)
paint
in class SLComponent
public void setOrientation(int j)
public void setTitle(java.lang.String title)
public void setXLabel(java.lang.String label)
public void setYLabel(java.lang.String label)
public void setZLabel(java.lang.String label)
public void paintSL(java.awt.Graphics g)
paintSL
in class SLComponent
Copyright © 2011, 2013. Daniel P. Dougherty