|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent insensa.view.image.map.RectColorLegent
public class RectColorLegent
Nested Class Summary | |
---|---|
class |
RectColorLegent.legendMotionListener
|
class |
RectColorLegent.legendMouseAdapter
|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
private java.awt.Color |
backgroundColor
|
private int |
borderSize
|
private java.util.List<java.awt.Color> |
colorList
|
private boolean |
enableRangeLabel
|
private java.awt.Font |
font
|
private int |
fontSize
|
private int |
hGap
|
private java.awt.image.BufferedImage |
image
|
private java.awt.Dimension |
legendSize
|
private java.awt.Point |
offset
|
private java.awt.Point |
position
|
private int |
precision
|
private java.text.DecimalFormat |
precisionFormat
|
(package private) java.util.List<ClassificationRange> |
rangeList
|
private java.awt.Dimension |
rectColorSize
|
private static long |
serialVersionUID
|
private java.awt.Dimension |
size
|
private int |
textWidth
|
private java.lang.String |
title
|
private int |
vGap
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
RectColorLegent()
|
Method Summary | |
---|---|
private java.awt.image.BufferedImage |
addBorder(java.awt.image.BufferedImage image)
|
private void |
calcSize()
|
void |
createColorLegend()
|
java.awt.image.BufferedImage |
createNewImage(java.awt.Dimension dim)
|
java.awt.Color |
getBackgroundColor()
|
int |
getBorderSize()
|
java.util.List<java.awt.Color> |
getColorList()
|
javax.swing.JComponent |
getComponent()
|
java.awt.Font |
getFont()
|
int |
getFontSize()
|
int |
gethGap()
|
java.awt.image.BufferedImage |
getImage()
|
java.awt.Dimension |
getLegendSize()
|
int |
getPrecision()
|
java.util.List<ClassificationRange> |
getRangeList()
|
java.awt.Dimension |
getRectColorSize()
|
IImageMapSettings |
getSettingsPanel()
|
java.awt.Dimension |
getSize()
|
java.lang.String |
getTitle()
|
int |
getvGap()
|
boolean |
isEnableRangeLabel()
|
boolean |
isInvert()
|
protected void |
paintComponent(java.awt.Graphics g)
|
void |
refresh(java.awt.Dimension dim)
|
void |
refreshLegend(java.util.List<ClassificationRange> rangeList,
java.util.List<java.awt.Color> colorList)
|
void |
resizeImage(java.awt.Dimension dim)
|
void |
setBackgroundColor(java.awt.Color backgroundColor)
|
void |
setBorderSize(int borderSize)
|
void |
setColorList(java.util.List<java.awt.Color> colorList)
|
void |
setEnableRangeLabel(boolean enableRangeLabel)
|
void |
setFont(java.awt.Font font)
|
void |
setFontSize(int fontSize)
|
void |
sethGap(int hGap)
|
void |
setInvert(boolean invert)
|
void |
setPrecision(int maxPrecision)
|
void |
setRangeList(java.util.List<ClassificationRange> rangeList)
|
void |
setRectColorSize(java.awt.Dimension rectColorSize)
|
void |
setTitle(java.lang.String title)
|
void |
setvGap(int vGap)
|
Methods inherited from class javax.swing.JComponent |
---|
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, getGraphics, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
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, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private java.awt.image.BufferedImage image
private java.awt.Point position
private java.awt.Point offset
private java.awt.Dimension legendSize
private java.awt.Dimension size
private java.util.List<java.awt.Color> colorList
private java.text.DecimalFormat precisionFormat
private java.lang.String title
private int borderSize
private int hGap
private int vGap
private int precision
private int fontSize
private int textWidth
private java.awt.Font font
private boolean enableRangeLabel
private java.awt.Dimension rectColorSize
private java.awt.Color backgroundColor
java.util.List<ClassificationRange> rangeList
Constructor Detail |
---|
public RectColorLegent()
Method Detail |
---|
private java.awt.image.BufferedImage addBorder(java.awt.image.BufferedImage image)
image
-
private void calcSize()
public void createColorLegend()
createColorLegend
in interface ILegendComponent
ILegendComponent.createColorLegend()
public java.awt.image.BufferedImage createNewImage(java.awt.Dimension dim) throws java.io.IOException
createNewImage
in interface ImageComponent
java.io.IOException
ImageComponent.createNewImage(java.awt.Dimension)
public java.awt.Color getBackgroundColor()
public int getBorderSize()
getBorderSize
in interface ILegendComponent
ILegendComponent.getBorderSize()
public java.util.List<java.awt.Color> getColorList()
public javax.swing.JComponent getComponent()
getComponent
in interface ImageComponent
ImageComponent.getComponent()
public java.awt.Font getFont()
getFont
in interface java.awt.MenuContainer
getFont
in class java.awt.Component
Component.getFont()
public int getFontSize()
public int gethGap()
public java.awt.image.BufferedImage getImage()
getImage
in interface ImageComponent
ImageComponent.getImage()
public java.awt.Dimension getLegendSize()
public int getPrecision()
getPrecision
in interface ILegendComponent
ILegendComponent.getPrecision()
public java.util.List<ClassificationRange> getRangeList()
public java.awt.Dimension getRectColorSize()
public IImageMapSettings getSettingsPanel()
getSettingsPanel
in interface ILegendComponent
ILegendComponent.getSettingsPanel()
public java.awt.Dimension getSize()
getSize
in class java.awt.Component
Component.getSize()
public java.lang.String getTitle()
public int getvGap()
public boolean isEnableRangeLabel()
public boolean isInvert()
isInvert
in interface ILegendComponent
ILegendComponent.isInvert()
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
JComponent.paintComponent(java.awt.Graphics)
public void refresh(java.awt.Dimension dim) throws java.io.IOException
refresh
in interface ImageComponent
java.io.IOException
ImageComponent.refresh(java.awt.Dimension)
public void refreshLegend(java.util.List<ClassificationRange> rangeList, java.util.List<java.awt.Color> colorList) throws java.io.IOException
refreshLegend
in interface ILegendComponent
java.io.IOException
ILegendComponent.refreshLegend(java.util.List, java.util.List)
public void resizeImage(java.awt.Dimension dim) throws java.io.IOException
resizeImage
in interface ImageComponent
java.io.IOException
ImageComponent.resizeImage(java.awt.Dimension)
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor
- public void setBorderSize(int borderSize)
setBorderSize
in interface ILegendComponent
ILegendComponent.setBorderSize(int)
public void setColorList(java.util.List<java.awt.Color> colorList)
setColorList
in interface ILegendComponent
ILegendComponent.setColorList(java.util.List)
public void setEnableRangeLabel(boolean enableRangeLabel)
enableRangeLabel
- public void setFont(java.awt.Font font)
setFont
in class javax.swing.JComponent
JComponent.setFont(java.awt.Font)
public void setFontSize(int fontSize)
fontSize
- public void sethGap(int hGap)
hGap
- public void setInvert(boolean invert)
setInvert
in interface ILegendComponent
ILegendComponent.setInvert(boolean)
public void setPrecision(int maxPrecision)
setPrecision
in interface ILegendComponent
ILegendComponent.setPrecision(int)
public void setRangeList(java.util.List<ClassificationRange> rangeList)
setRangeList
in interface ILegendComponent
ILegendComponent.setRangeList(java.util.List)
public void setRectColorSize(java.awt.Dimension rectColorSize)
rectColorSize
- public void setTitle(java.lang.String title)
title
- public void setvGap(int vGap)
vGap
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |