public interface JaxoObjectEditPanel
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_COLOR
Defines an EditPanel for a simple color, of eg a vertex, a text, etc.
|
static int |
TYPE_FILL_COLOR
Defines a ColorEditPanel for a fill color.
|
static int |
TYPE_LINE_COLOR
Defines a ColorEditPanel for a the line color of a fill object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add2PointsPanel(java.awt.Point[] points,
int gridx,
int gridy)
Adds a 2PointEdit panel at the given position with the given width.
|
void |
add3PointsPanel(java.awt.Point[] points,
int gridx,
int gridy)
Adds a 3points panel at the given position.
|
void |
add3PointsPanel(java.awt.Point[] points,
int gridx,
int gridy,
int gridwidth)
Adds a 3points panel at the given position with the given width.
|
void |
add4PointsPanel(java.awt.Point[] points,
int gridx,
int gridy)
Adds a 4points panel at the given position.
|
void |
add4PointsPanel(java.awt.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(javax.swing.event.ChangeListener l)
ChangeEvents will be fired everytime the object that is being
edited changes.
|
void |
addColorPanel(java.awt.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(java.awt.Color color,
java.awt.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(java.awt.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(java.awt.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(java.lang.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.
|
boolean |
hasChanged()
Determines wether the object has been modified.
|
void |
setTitleAndIcon(java.lang.String newTitle,
java.lang.String newIcon)
Set title (message key) and icon (filename) that are displayed in the dialog.
|
void |
show(java.awt.Component parent,
Location l)
Display the EditPanel for the current object.
|
static final int TYPE_COLOR
static final int TYPE_LINE_COLOR
static final int TYPE_FILL_COLOR
void addChangeListener(javax.swing.event.ChangeListener l)
l - The listener to add.void show(java.awt.Component parent,
Location l)
parent - The parent component for the edit panel windowl - The location for for the edit panel windowboolean hasChanged()
void setTitleAndIcon(java.lang.String newTitle,
java.lang.String newIcon)
newTitle - the title.newIcon - the icon.void add3PointsPanel(java.awt.Point[] points,
int gridx,
int gridy)
points - 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.void add3PointsPanel(java.awt.Point[] points,
int gridx,
int gridy,
int gridwidth)
points - 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.void add4PointsPanel(java.awt.Point[] points,
int gridx,
int gridy)
points - 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.void add4PointsPanel(java.awt.Point[] points,
int gridx,
int gridy,
int gridwidth)
points - 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.void addPositionPanel(int x,
int y,
int gridx,
int gridy)
x - 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.void add2PointsPanel(java.awt.Point[] points,
int gridx,
int gridy)
points - 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.void addXYRPanel(int x,
int y,
int r,
int gridx,
int gridy)
x - 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.gridx - The x position of the subpanel.gridy - The y position of the subpanel.r - The radius of the object to be edited by this panel.void addCenterSizePanel(int x,
int y,
int w,
int h,
int gridx,
int gridy)
x - 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.void addDashPanel(float dash,
int gridx,
int gridy)
dash - 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.void addStrokePanel(float width,
int gridx,
int gridy)
width - 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.void addReScalePanel(int gridx,
int gridy)
gridx - The x position of the subpanel.gridy - The y position of the subpanel.void addWigglePanel(int amp,
int wiggles,
int gridx,
int gridy)
amp - 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.void addWigglePanel(int amp,
int gridx,
int gridy)
amp - 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.void addSymmPanel(boolean symm,
int gridx,
int gridy)
symm - 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.void addStretchingPanel(boolean noFreqStretching,
int gridx,
int gridy)
noFreqStretching - 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.void addRotationPanel(int angle,
int gridx,
int gridy)
angle - 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.void addArrowPanel(boolean arrow,
boolean flip,
float oldPosition,
int gridx,
int gridy)
arrow - 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.void addArrowOptionsEditPanel(JaxoArrow arrow, int gridx, int gridy)
JaxoArrow.getEditPanel() returns null,
then nothing happens.arrow - The arrow to be edited.gridx - The x position of the subpanel.gridy - The y position of the subpanel.void addDoubleLinePanel(boolean dLine,
float dlSep,
int gridx,
int gridy)
dLine - 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.void addLineColorPanel(java.awt.Color color,
int gridx,
int gridy)
color - 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.void addFillLineColorPanels(java.awt.Color color,
java.awt.Color fillColor,
boolean isFilled,
int fillX,
int fillY,
int lineX,
int lineY)
color - 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.void addColorPanel(java.awt.Color color,
int type,
int gridx,
int gridy)
color - The color of the object to be edited by this panel.type - The color mode.
Should be one of TYPE_COLOR, TYPE_LINE_COLOR or
TYPE_FILL_COLOR.gridx - The x position of the subpanel.gridy - The y position of the subpanel.void addTextPanel(java.lang.String text,
int gridx,
int gridy)
text - The text object to be edited by this panel.gridx - The x position of the subpanel.gridy - The y position of the subpanel.void addPSFontPanel(java.awt.Font font,
int gridx,
int gridy,
int gridwidth)
font - 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.void addLatexAlignPanel(int allign,
int gridx,
int gridy)
allign - 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.void addLatexFontSizePanel(int size,
int gridx,
int gridy)
size - 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.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.