|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectComponent
Container
JComponent
SampleDimensionPanel
public class SampleDimensionPanel
An editable table listing the categories in a GridSampleDimension. The table is
backed by a CategoryTable model.
| display/geotk-widgets-swing (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class 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 Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SampleDimensionPanel()
Creates a new panel which will use the default palette factory. |
|
SampleDimensionPanel(PaletteFactory paletteFactory)
Creates a new panel which will use the given factory for creating color palettes. |
|
| Method Summary | |
|---|---|
void |
commitEdit()
Forces the current value to be taken from the editable fields and set them as the current values. |
List<GridSampleDimension> |
getSampleDimensions()
Returns the sample dimensions. |
boolean |
isEditable()
Returns true if the sample dimension is editable. |
void |
setEditable(boolean editable)
Sets whatever edition should be allowed for this component. |
void |
setSampleDimensions(List<GridSampleDimension> bands)
Sets the sample dimensions to make available in this panel. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SampleDimensionPanel()
public SampleDimensionPanel(PaletteFactory paletteFactory)
paletteFactory - The factory to use for loading colors from a palette name,
or null for the default.| Method Detail |
|---|
public List<GridSampleDimension> getSampleDimensions()
throws ParseException
setSampleDimensions(List) if the
user didn't edited the values, or a list containing new GridSampleDimension
instances otherwise.
Tip: consider invoking commitEdit() before to invoke this method.
null if none.
ParseException - If at least two categories have overlapping range of sample values.public void setSampleDimensions(List<GridSampleDimension> bands)
bands - The sample dimensions to show, or null if none.public boolean isEditable()
true if the sample dimension is editable.
true if the sample dimension is editable.public void setEditable(boolean editable)
editable - false for disabling edition, or true for re-enabling it.
public void commitEdit()
throws ParseException
ParseException - If at least one values couldn't be commited.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||