|
||||||||||
| 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.JaxoOptionsPanel
public class JaxoOptionsPanel
A parent class for all option panels.
| 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 net.sf.jaxodraw.object.JaxoObjectEditPanel |
|---|
TYPE_COLOR, TYPE_FILL_COLOR, TYPE_LINE_COLOR |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JaxoOptionsPanel(JaxoObject ob)
Constructor: initializes the panel. |
|
| Method Summary | |
|---|---|
void |
add2PointsPanel(Point[] points,
int gridx,
int gridy)
Adds a 2PointEdit panel at the given position with the given width. |
void |
add3PointsPanel(Point[] points,
int gridx,
int gridy)
Adds a 3points panel at the given position. |
void |
add3PointsPanel(Point[] points,
int gridx,
int gridy,
int gridwidth)
Adds a 3points panel at the given position with the given width. |
void |
add4PointsPanel(Point[] points,
int gridx,
int gridy)
Adds a 4points panel at the given position. |
void |
add4PointsPanel(Point[] points,
int gridx,
int gridy,
int gridwidth)
Adds a 4points panel at the given position with the given width. |
void |
addArrowOptionsEditPanel(JaxoArrow arrow,
int gridx,
int gridy)
Adds an edit panel for an arrow at the given position. |
void |
addArrowPanel(boolean arrow,
boolean flip,
float oldPosition,
int gridx,
int gridy)
Adds an arrow panel for an object at the given position. |
void |
addCenterSizePanel(int x,
int y,
int w,
int h,
int gridx,
int gridy)
Adds a position/size panel at the given position. |
void |
addChangeListener(ChangeListener l)
ChangeEvents will be fired everytime the object that is being edited changes. |
void |
addColorPanel(Color color,
int type,
int gridx,
int gridy)
Adds a color panel at the given position. |
void |
addDashPanel(float dash,
int gridx,
int gridy)
Adds a dash panel for an arc object at the given position. |
void |
addDoubleLinePanel(boolean dLine,
float dlSep,
int gridx,
int gridy)
Adds a double line panel for an object at the given position. |
void |
addFillLineColorPanels(Color color,
Color fillColor,
boolean isFilled,
int fillX,
int fillY,
int lineX,
int lineY)
Adds a fill and a line color panel at the given positions. |
void |
addLatexAlignPanel(int allign,
int gridx,
int gridy)
Adds a latex align edit panel at the given position. |
void |
addLatexFontSizePanel(int size,
int gridx,
int gridy)
Adds a latex font size edit panel at the given position. |
void |
addLineColorPanel(Color color,
int gridx,
int gridy)
Adds a line color panel at the given position. |
void |
addPositionPanel(int x,
int y,
int gridx,
int gridy)
Adds a position edit panel at the given position with the given width. |
void |
addPSFontPanel(Font font,
int gridx,
int gridy,
int gridwidth)
Adds a postscript text font edit panel at the given position. |
void |
addReScalePanel(int gridx,
int gridy)
Adds a scale panel for an object at the given position. |
void |
addRotationPanel(int angle,
int gridx,
int gridy)
Adds a rotation panel for a vertex at the given position. |
void |
addStretchingPanel(boolean noFreqStretching,
int gridx,
int gridy)
Adds a stretching panel for a photon bezier at the given position. |
void |
addStrokePanel(float width,
int gridx,
int gridy)
Adds a stroke panel for an arc object at the given position. |
void |
addSymmPanel(boolean symm,
int gridx,
int gridy)
Adds a symmetry panel for a photon line at the given position. |
void |
addTextPanel(String text,
int gridx,
int gridy)
Adds a text edit panel at the given position. |
void |
addWigglePanel(int amp,
int gridx,
int gridy)
Adds a wiggle panel for a group at the given position. |
void |
addWigglePanel(int amp,
int wiggles,
int gridx,
int gridy)
Adds a wiggle panel for an object at the given position. |
void |
addXYRPanel(int x,
int y,
int r,
int gridx,
int gridy)
Adds a XYR panel at the given position. |
protected void |
fireStateChanged()
Notifies all listeners of a state change. |
JaxoObject |
getObject()
The object that is being edited. |
static List<Integer> |
getRotationAngleDefaults()
List of numbers of default rotation angles to display to the user. |
boolean |
hasChanged()
Determines wether the object has been modified. |
void |
removeChangeListener(ChangeListener l)
Removes a change listener. |
protected void |
resetObject()
Reset 'object' (and GUI) to initial value. |
void |
setObject(JaxoObject value)
Set the object that is being edited. |
void |
setTitleAndIcon(String newTitle,
String newIcon)
Set title (message key) and icon (filename) that are displayed in the dialog. |
void |
show(Component parent,
Location l)
Display the EditPanel for the current object. |
protected void |
showDialog(Component parent,
Location l)
Show a dialog for this panel. |
| 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 JaxoOptionsPanel(JaxoObject ob)
ob - The object to be edited by this panel.| Method Detail |
|---|
public static List<Integer> getRotationAngleDefaults()
public void addChangeListener(ChangeListener l)
addChangeListener in interface JaxoObjectEditPanell - The listener to add.public void removeChangeListener(ChangeListener l)
l - The listener to remove.protected void fireStateChanged()
public final void setObject(JaxoObject value)
value - the object that is being edited.public final JaxoObject getObject()
public final void add3PointsPanel(Point[] points,
int gridx,
int gridy)
add3PointsPanel in interface JaxoObjectEditPanelpoints - The points of the arc object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void add3PointsPanel(Point[] points,
int gridx,
int gridy,
int gridwidth)
add3PointsPanel in interface JaxoObjectEditPanelpoints - The points of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.gridwidth - The width of the subpanel.
public final void add4PointsPanel(Point[] points,
int gridx,
int gridy)
add4PointsPanel in interface JaxoObjectEditPanelpoints - The points of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void add4PointsPanel(Point[] points,
int gridx,
int gridy,
int gridwidth)
add4PointsPanel in interface JaxoObjectEditPanelpoints - The points of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.gridwidth - The width of the subpanel.
public final void addPositionPanel(int x,
int y,
int gridx,
int gridy)
addPositionPanel in interface JaxoObjectEditPanelx - The x position of the object to be edited by this panel.y - The y position of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void add2PointsPanel(Point[] points,
int gridx,
int gridy)
add2PointsPanel in interface JaxoObjectEditPanelpoints - The points of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addXYRPanel(int x,
int y,
int r,
int gridx,
int gridy)
addXYRPanel in interface JaxoObjectEditPanelx - The x position of the object to be edited by this panel.y - The r position of the object to be edited by this panel.r - The radius of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addCenterSizePanel(int x,
int y,
int w,
int h,
int gridx,
int gridy)
addCenterSizePanel in interface JaxoObjectEditPanelx - The x position of the object to be edited by this panel.y - The y position of the object to be edited by this panel.w - The width of the object to be edited by this panel.h - The height of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addDashPanel(float dash,
int gridx,
int gridy)
addDashPanel in interface JaxoObjectEditPaneldash - The dash sizie of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addStrokePanel(float width,
int gridx,
int gridy)
addStrokePanel in interface JaxoObjectEditPanelwidth - The the stroke width of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addReScalePanel(int gridx,
int gridy)
addReScalePanel in interface JaxoObjectEditPanelgridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addWigglePanel(int amp,
int wiggles,
int gridx,
int gridy)
addWigglePanel in interface JaxoObjectEditPanelamp - The oamplitude of the bject to be edited by this panel.wiggles - The wiggles of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addWigglePanel(int amp,
int gridx,
int gridy)
addWigglePanel in interface JaxoObjectEditPanelamp - The amplitude of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addSymmPanel(boolean symm,
int gridx,
int gridy)
addSymmPanel in interface JaxoObjectEditPanelsymm - The symmetry of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addStretchingPanel(boolean noFreqStretching,
int gridx,
int gridy)
addStretchingPanel in interface JaxoObjectEditPanelnoFreqStretching - The stretching parameter of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addRotationPanel(int angle,
int gridx,
int gridy)
addRotationPanel in interface JaxoObjectEditPanelangle - The rotation angle of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addArrowPanel(boolean arrow,
boolean flip,
float oldPosition,
int gridx,
int gridy)
addArrowPanel in interface JaxoObjectEditPanelarrow - The arrow of the object to be edited by this panel.flip - The flip of the arrow.oldPosition - The old position of the Arrowgridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addArrowOptionsEditPanel(JaxoArrow arrow,
int gridx,
int gridy)
JaxoArrow.getEditPanel() returns null,
then nothing happens.
addArrowOptionsEditPanel in interface JaxoObjectEditPanelarrow - The arrow to be edited.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addDoubleLinePanel(boolean dLine,
float dlSep,
int gridx,
int gridy)
addDoubleLinePanel in interface JaxoObjectEditPaneldLine - The doubleLine of the object to be edited by this panel.dlSep - The double line separation of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addLineColorPanel(Color color,
int gridx,
int gridy)
addLineColorPanel in interface JaxoObjectEditPanelcolor - The color of the object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addFillLineColorPanels(Color color,
Color fillColor,
boolean isFilled,
int fillX,
int fillY,
int lineX,
int lineY)
addFillLineColorPanels in interface JaxoObjectEditPanelcolor - The color of the object to be edited by this panel.fillColor - The fill color of the object.isFilled - Whether the object is filled.fillX - The x position of the fill subpanel.fillY - The y position of the fill subpanel.lineX - The x position of the line subpanel.lineY - The y position of the line subpanel.
public final void addColorPanel(Color color,
int type,
int gridx,
int gridy)
addColorPanel in interface JaxoObjectEditPanelcolor - The color of the object to be edited by this panel.type - The color mode.
Should be one of JaxoObjectEditPanel.TYPE_COLOR, JaxoObjectEditPanel.TYPE_LINE_COLOR or
JaxoObjectEditPanel.TYPE_FILL_COLOR.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addTextPanel(String text,
int gridx,
int gridy)
addTextPanel in interface JaxoObjectEditPaneltext - The text object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addPSFontPanel(Font font,
int gridx,
int gridy,
int gridwidth)
addPSFontPanel in interface JaxoObjectEditPanelfont - The font of the text to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.gridwidth - The width of the subpanel.
public final void addLatexAlignPanel(int allign,
int gridx,
int gridy)
addLatexAlignPanel in interface JaxoObjectEditPanelallign - The align property of the text to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void addLatexFontSizePanel(int size,
int gridx,
int gridy)
addLatexFontSizePanel in interface JaxoObjectEditPanelsize - The text size of the text to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.
public final void show(Component parent,
Location l)
show in interface JaxoObjectEditPanelparent - The parent component for the edit panel windowl - The location for for the edit panel windowpublic boolean hasChanged()
hasChanged in interface JaxoObjectEditPanel
public void setTitleAndIcon(String newTitle,
String newIcon)
setTitleAndIcon in interface JaxoObjectEditPanelnewTitle - the title.newIcon - the icon.protected void resetObject()
protected final void showDialog(Component parent,
Location l)
parent - the parent component.l - the location.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||