|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.sf.jaxodraw.gui.panel.edit.JaxoEditPanel
public abstract class JaxoEditPanel
A parent class for edit panel components.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
protected |
JaxoEditPanel()
Create without LayoutManager. |
protected |
JaxoEditPanel(LayoutManager l)
Create with given LayoutManager. |
Method Summary | |
---|---|
abstract void |
addEditPanelListener(JaxoEditPanelListener listener)
Adds the given listener as an ActionListener to this panel. |
protected TitledBorder |
createBorder(String title)
Returns a TitledBorder with given text. |
protected TitledBorder |
createI18NBorder(String key)
Returns a TitledBorder with translated text. |
protected JLabel |
createI18NLabel(String key)
Returns a JLabel with translated text. |
protected JLabel |
createLabel(String title)
Returns a JLabel with given text. |
protected Dimension |
getCheckBoxPanelSize()
Returns the size of a single checkbox panel. |
protected GridLayout |
getOneColumnPanelLayout()
Returns the layout of one column. |
protected GridLayout |
getPanelLayout()
Get the PanelLayout. |
protected JSpinner |
getSpinner(float value,
float min,
float max,
float step,
String name)
Returns a JSpinner. |
protected JSpinner |
getSpinner(int value,
int min,
int max,
int step,
String name)
Returns a JSpinner. |
protected void |
setCheckBoxPanelSize(Dimension newSize)
Sets the size of a single checkbox panel. |
protected void |
setLineBoxLayout()
Set LayoutManager to a new LINE_AXIS BoxLayout |
protected void |
setOneColumnPanelLayout(GridLayout newLayout)
Sets the layout of one column. |
protected void |
setPanelLayout(GridLayout newLayout)
Set the PanelLayout. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected JaxoEditPanel()
protected JaxoEditPanel(LayoutManager l)
l
- A LayoutManager, may be null.Method Detail |
---|
protected void setLineBoxLayout()
protected TitledBorder createI18NBorder(String key)
key
- A key to be translated by the JaxoLanguage class.
protected JLabel createI18NLabel(String key)
key
- A key to be translated by the JaxoLanguage class.
protected TitledBorder createBorder(String title)
title
- The title text of the border.
protected JLabel createLabel(String title)
title
- The text for the label.
protected JSpinner getSpinner(float value, float min, float max, float step, String name)
value
- The value of the corresponding SpinnerNumberModel.min
- The min value of the corresponding SpinnerNumberModel.max
- The max value of the corresponding SpinnerNumberModel.step
- The step size of the corresponding SpinnerNumberModel.name
- The name to set for the JSpinner.
protected JSpinner getSpinner(int value, int min, int max, int step, String name)
value
- The value of the corresponding SpinnerNumberModel.min
- The min value of the corresponding SpinnerNumberModel.max
- The max value of the corresponding SpinnerNumberModel.step
- The step size of the corresponding SpinnerNumberModel.name
- The name to set for the JSpinner.
public abstract void addEditPanelListener(JaxoEditPanelListener listener)
listener
- The listener to add to this panel.protected GridLayout getPanelLayout()
protected void setPanelLayout(GridLayout newLayout)
newLayout
- the panelLayout.protected GridLayout getOneColumnPanelLayout()
protected void setOneColumnPanelLayout(GridLayout newLayout)
newLayout
- the layout of one column.protected Dimension getCheckBoxPanelSize()
protected void setCheckBoxPanelSize(Dimension newSize)
newSize
- the size of a single checkbox panel.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |