private class MTBAwtPoint2DDataIOSwing.PointConfigPanel
extends de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
implements de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener
Modifier and Type | Field and Description |
---|---|
private JPanel |
mainPanel
Main panel.
|
private de.unihalle.informatik.Alida.operator.ALDParameterDescriptor |
paramDescr
(Operator) parameter descriptor of associated parameter.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponentTextField |
xField
Field for x-coordinate.
|
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponentTextField |
yField
Field for y-coordinate.
|
Constructor and Description |
---|
PointConfigPanel(Object obj,
de.unihalle.informatik.Alida.operator.ALDParameterDescriptor d)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disableComponent() |
void |
dispose() |
void |
enableComponent() |
JComponent |
getJComponent() |
void |
handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event) |
Point2D.Double |
readData()
Gets the current coordinates.
|
void |
setValue(Point2D.Double p)
Displays specified coordinates.
|
private JPanel mainPanel
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponentTextField xField
private de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponentTextField yField
private de.unihalle.informatik.Alida.operator.ALDParameterDescriptor paramDescr
public PointConfigPanel(Object obj, de.unihalle.informatik.Alida.operator.ALDParameterDescriptor d)
obj
- Default object.d
- (Operator) parameter descriptor.public JComponent getJComponent()
getJComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void setValue(Point2D.Double p)
p
- Point to display.public Point2D.Double readData()
public void handleValueChangeEvent(de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeEvent event)
handleValueChangeEvent
in interface de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeListener
public void disableComponent()
disableComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void enableComponent()
enableComponent
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
public void dispose()
dispose
in class de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.