public class LinearScale extends AbstractVisionComponent implements DesignerInitializable
Modifier and Type | Class and Description |
---|---|
static class |
LinearScale.Indicator |
static class |
LinearScale.IndicatorField
Represents the columns in the indicator dataset
|
static class |
LinearScale.IndicatorStyle |
class |
LinearScale.Tick |
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
DOWN |
static java.lang.String |
LABEL_FORMAT |
static int |
LEFT |
static int |
RIGHT |
static int |
UP |
antialias, context, cursorCode
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
RESERVED_SET_KEY
COMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
COMPONENT_RUNNING
Constructor and Description |
---|
LinearScale() |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getFineTickColor() |
java.awt.Font |
getFineTickFont() |
java.awt.Color |
getFineTickLabelColor() |
java.lang.String |
getFineTickLabelFormat() |
double |
getFineTickLength() |
double |
getFineTickSpan() |
float |
getFineTickStroke() |
Dataset |
getIndicators() |
int |
getLabelAngle() |
java.awt.Color |
getMajorTickColor() |
java.awt.Font |
getMajorTickFont() |
java.awt.Color |
getMajorTickLabelColor() |
java.lang.String |
getMajorTickLabelFormat() |
double |
getMajorTickLength() |
double |
getMajorTickSpan() |
float |
getMajorTickStroke() |
double |
getMargin() |
double |
getMaxValue() |
java.awt.Color |
getMinorTickColor() |
java.awt.Font |
getMinorTickFont() |
java.awt.Color |
getMinorTickLabelColor() |
java.lang.String |
getMinorTickLabelFormat() |
double |
getMinorTickLength() |
double |
getMinorTickSpan() |
float |
getMinorTickStroke() |
double |
getMinValue() |
Dataset |
getTranslatedIndicators() |
void |
initialize() |
boolean |
isMirror() |
boolean |
isReverseRange() |
static void |
main(java.lang.String[] args) |
protected void |
paintComponent(java.awt.Graphics _g) |
protected void |
paintIndicators(java.awt.Graphics2D g,
java.awt.Rectangle area,
int pass) |
protected static void |
paintLabel(java.awt.Graphics2D g,
java.lang.String label,
java.awt.Color labelColor,
boolean mirror,
int labelAngle,
double x1,
double x2,
double y) |
void |
setFineTickColor(java.awt.Color color) |
void |
setFineTickFont(java.awt.Font font) |
void |
setFineTickLabelColor(java.awt.Color color) |
void |
setFineTickLabelFormat(java.lang.String format) |
void |
setFineTickLength(double width) |
void |
setFineTickSpan(double span) |
void |
setFineTickStroke(float stroke) |
void |
setIndicators(Dataset indicators) |
void |
setLabelAngle(int labelAngle) |
void |
setMajorTickColor(java.awt.Color color) |
void |
setMajorTickFont(java.awt.Font font) |
void |
setMajorTickLabelColor(java.awt.Color color) |
void |
setMajorTickLabelFormat(java.lang.String format) |
void |
setMajorTickLength(double width) |
void |
setMajorTickSpan(double span) |
void |
setMajorTickStroke(float stroke) |
void |
setMargin(double margin) |
void |
setMaxValue(double maxValue) |
void |
setMinorTickColor(java.awt.Color color) |
void |
setMinorTickFont(java.awt.Font font) |
void |
setMinorTickLabelColor(java.awt.Color color) |
void |
setMinorTickLabelFormat(java.lang.String format) |
void |
setMinorTickLength(double width) |
void |
setMinorTickSpan(double span) |
void |
setMinorTickStroke(float stroke) |
void |
setMinValue(double minValue) |
void |
setMirror(boolean mirror) |
void |
setReverseRange(boolean reverseRange) |
getAppContext, getCursorCode, getDataQuality, getDynamicProps, getProperties, getPropertyValue, getStyles, getToolTipText, isAntialias, isPropertyDefined, localeChanged, onShutdown, onStartup, paintChildren, setAntialias, setCursorCode, setDataQuality, setDynamicProps, setName, setPropertyValue, setStyles, setToolTipText, setVisible, shutdownComponent, startupComponent, updateQuality
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, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, 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, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, 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, getAccessibleContext, 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, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int RIGHT
public static final int DOWN
public static final int UP
public static final int LEFT
public static final java.lang.String LABEL_FORMAT
public void initialize()
initialize
in interface DesignerInitializable
public Dataset getTranslatedIndicators()
public Dataset getIndicators()
public void setIndicators(Dataset indicators)
public double getMargin()
public void setMargin(double margin)
public double getMinValue()
public void setMinValue(double minValue)
public double getMaxValue()
public void setMaxValue(double maxValue)
public boolean isMirror()
public void setMirror(boolean mirror)
public boolean isReverseRange()
public void setReverseRange(boolean reverseRange)
public int getLabelAngle()
public void setLabelAngle(int labelAngle)
public double getMajorTickSpan()
public void setMajorTickSpan(double span)
public double getMajorTickLength()
public void setMajorTickLength(double width)
public float getMajorTickStroke()
public void setMajorTickStroke(float stroke)
public java.awt.Color getMajorTickColor()
public void setMajorTickColor(java.awt.Color color)
public java.lang.String getMajorTickLabelFormat()
public void setMajorTickLabelFormat(java.lang.String format)
public java.awt.Font getMajorTickFont()
public void setMajorTickFont(java.awt.Font font)
public java.awt.Color getMajorTickLabelColor()
public void setMajorTickLabelColor(java.awt.Color color)
public double getMinorTickSpan()
public void setMinorTickSpan(double span)
public double getMinorTickLength()
public void setMinorTickLength(double width)
public float getMinorTickStroke()
public void setMinorTickStroke(float stroke)
public java.awt.Color getMinorTickColor()
public void setMinorTickColor(java.awt.Color color)
public java.lang.String getMinorTickLabelFormat()
public void setMinorTickLabelFormat(java.lang.String format)
public java.awt.Font getMinorTickFont()
public void setMinorTickFont(java.awt.Font font)
public java.awt.Color getMinorTickLabelColor()
public void setMinorTickLabelColor(java.awt.Color color)
public double getFineTickSpan()
public void setFineTickSpan(double span)
public double getFineTickLength()
public void setFineTickLength(double width)
public float getFineTickStroke()
public void setFineTickStroke(float stroke)
public java.awt.Color getFineTickColor()
public void setFineTickColor(java.awt.Color color)
public java.lang.String getFineTickLabelFormat()
public void setFineTickLabelFormat(java.lang.String format)
public java.awt.Font getFineTickFont()
public void setFineTickFont(java.awt.Font font)
public java.awt.Color getFineTickLabelColor()
public void setFineTickLabelColor(java.awt.Color color)
protected void paintComponent(java.awt.Graphics _g)
paintComponent
in class AbstractVisionComponent
protected void paintIndicators(java.awt.Graphics2D g, java.awt.Rectangle area, int pass)
protected static void paintLabel(java.awt.Graphics2D g, java.lang.String label, java.awt.Color labelColor, boolean mirror, int labelAngle, double x1, double x2, double y)
public static void main(java.lang.String[] args)