public class ScaleBar
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
boolean |
digital |
int |
digprecision |
java.awt.Graphics2D |
g2 |
boolean |
hor |
java.lang.String |
label |
float |
maxredlight |
float |
maxvalue |
float |
minredlight |
float |
minvalue |
protected java.text.NumberFormat |
nf |
int |
precision |
float |
step |
float |
substep |
float |
value |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ScaleBar()
This is the default constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getDigprecision() |
int |
getDigPrecision() |
java.lang.String |
getLabel() |
float |
getMaxredlight() |
float |
getMaxvalue() |
float |
getMinredlight() |
float |
getMinvalue() |
int |
getPrecision() |
float |
getStep() |
float |
getSubstep() |
float |
getValue() |
boolean |
isDigital() |
boolean |
isHor() |
static void |
main(java.lang.String[] arg) |
void |
paint(java.awt.Graphics arg0) |
void |
setDigital(boolean digital) |
void |
setDigprecision(int digprecision) |
void |
setDigPrecision(int precision) |
void |
setHor(boolean hor) |
void |
setHorizontal() |
void |
setLabel(java.lang.String label) |
void |
setMaxredlight(float maxredlight) |
void |
setMaxvalue(float maxvalue) |
void |
setMinredlight(float minredlight) |
void |
setMinvalue(float minvalue) |
void |
setPrecision(int precision) |
void |
setStep(float step) |
void |
setSubstep(float substep) |
void |
setValue(float value) |
void |
setVertical() |
void |
update(java.awt.Graphics arg0) |
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, 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
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 java.awt.Graphics2D g2
public float maxvalue
public float minvalue
public float minredlight
public float maxredlight
public float value
public float step
public float substep
public java.lang.String label
public boolean digital
public boolean hor
public int precision
protected java.text.NumberFormat nf
public int digprecision
public boolean isDigital()
public void setDigital(boolean digital)
public int getDigprecision()
public void setDigprecision(int digprecision)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public float getSubstep()
public void setSubstep(float substep)
public void paint(java.awt.Graphics arg0)
paint
in class javax.swing.JComponent
public void update(java.awt.Graphics arg0)
update
in class javax.swing.JComponent
public static void main(java.lang.String[] arg)
public float getMaxvalue()
public void setMaxvalue(float maxvalue)
public float getMinvalue()
public void setMinvalue(float minvalue)
public float getStep()
public void setStep(float step)
public float getValue()
public void setValue(float value)
public float getMaxredlight()
public void setMaxredlight(float maxredlight)
public float getMinredlight()
public void setMinredlight(float minredlight)
public int getPrecision()
public void setPrecision(int precision)
public int getDigPrecision()
public void setDigPrecision(int precision)
public void setHorizontal()
public void setVertical()
public boolean isHor()
public void setHor(boolean hor)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.