|
||||||||||
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.button.JaxoGridButtons
public class JaxoGridButtons
Responsible for displaying and modifying the buttons of the grid button menu.
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 | |
---|---|
JaxoGridButtons()
Constructor: lays out the grid button panel. |
Method Summary | |
---|---|
void |
addActionListener(ActionListener l)
Adds the given ActionListener to all buttons in this panel. |
void |
mouseClicked(MouseEvent e)
Does nothing. |
void |
mouseEntered(MouseEvent e)
Does nothing. |
void |
mouseExited(MouseEvent e)
Does nothing. |
void |
mousePressed(MouseEvent e)
Processes the right-click on the zoom button. |
void |
mouseReleased(MouseEvent e)
Does nothing. |
void |
pressButton(int mode)
Sets the specified button as pressed. |
void |
propertyChange(PropertyChangeEvent e)
Applies a property change event. |
void |
setDefault(int mode)
Set the button corresponding to mode as default. |
void |
updateLanguage()
Updates the component with the current language as set in the preferences ( JaxoPrefs.PREF_LANGUAGE ). |
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 |
---|
public JaxoGridButtons()
Method Detail |
---|
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- the change event.public final void addActionListener(ActionListener l)
l
- The ActionListener to add.public final void setDefault(int mode)
mode
- The button to set as default.public final void pressButton(int mode)
mode
- The mode specifying the button to be pressed,
as defined in JaxoConstants
.public final void updateLanguage()
JaxoPrefs.PREF_LANGUAGE
).
updateLanguage
in interface JaxoLocalized
public final void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
e
- The MouseEvent to be processed.public final void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- The MouseEvent to be processed.public final void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
e
- The MouseEvent to be processed.public final void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
e
- The MouseEvent to be processed.public final void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
e
- The MouseEvent to be processed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |