|
||||||||||
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
nl.tudelft.simulation.dsol.gui.animation2D.GridPanel
nl.tudelft.simulation.dsol.gui.animation2D.AnimationPanel
nl.tudelft.simulation.dsol.gui.editor2D.Editor2DPanel
public class Editor2DPanel
Editor2DPanel.java
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
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 | |
---|---|
static int |
EDIT_MODE_MOVE
Edit mode is 'move' |
static int |
EDIT_MODE_ROTATE
Edit mode is 'rotate' |
static int |
LOCALAXISSIZE
Line size of the representation of the local axis system |
static int |
MODE_DELETE
Delete Object Mode |
static int |
MODE_EDIT
Edit Object Mode |
static int |
MODE_IDLE
Idle Mode |
static int |
MODE_NEW
New Object mMode |
static int |
MODE_SELECT
Selection Mode |
static int |
PLACEHOLDERSIZE
Placeholder size |
Fields inherited from class nl.tudelft.simulation.dsol.gui.animation2D.GridPanel |
---|
DOWN, extent, formatter, GRIDCOLOR, gridSize, homeExtent, IN, lastDimension, LEFT, OUT, RIGHT, UP |
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 | |
---|---|
Editor2DPanel(Rectangle2D extent,
Dimension size,
DSOLApplicationInterface application)
Constructor |
Method Summary | |
---|---|
EditMenu |
getEditMenu()
|
EditableRenderable2DInterface |
getSelectedEditableRenderable()
|
int |
getSelectedEditMode()
|
int |
getSelectedMode()
|
CartesianPoint |
getSelectedPoint()
|
Class |
getSelectedRenderableClass()
|
void |
objectAdded(NamingEvent namingEvent)
|
void |
paintComponent(Graphics g)
|
void |
setSelectedEditableRenderable(EditableRenderable2DInterface selectedEditableRenderable)
|
void |
setSelectedEditMode(int selectedEditMode)
|
void |
setSelectedMode(int mode)
|
void |
setSelectedPoint(CartesianPoint selectedPoint)
|
void |
setSelectedRenderableClass(Class selectedRenderableClass)
|
Methods inherited from class nl.tudelft.simulation.dsol.gui.animation2D.AnimationPanel |
---|
getDragLine, getElements, isDragLineEnabled, isShowGrid, namingExceptionThrown, notify, objectRemoved, objectRenamed, setDragLineEnabled, showGrid |
Methods inherited from class nl.tudelft.simulation.dsol.gui.animation2D.GridPanel |
---|
drawGrid, getExtent, home, pan, setShowGrid, zoom |
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 |
Field Detail |
---|
public static final int MODE_IDLE
public static final int MODE_SELECT
public static final int MODE_NEW
public static final int MODE_EDIT
public static final int MODE_DELETE
public static final int EDIT_MODE_MOVE
public static final int EDIT_MODE_ROTATE
public static final int PLACEHOLDERSIZE
public static final int LOCALAXISSIZE
Constructor Detail |
---|
public Editor2DPanel(Rectangle2D extent, Dimension size, DSOLApplicationInterface application)
extent
- Extendsize
- Sizeapplication
- DSOL ApplicationMethod Detail |
---|
public void objectAdded(NamingEvent namingEvent)
objectAdded
in interface NamespaceChangeListener
objectAdded
in class AnimationPanel
NamespaceChangeListener.objectAdded(javax.naming.event.NamingEvent)
public void paintComponent(Graphics g)
paintComponent
in class AnimationPanel
JComponent.paintComponent(java.awt.Graphics)
public EditMenu getEditMenu()
public int getSelectedMode()
public void setSelectedMode(int mode)
mode
- the selectedMode to set.public EditableRenderable2DInterface getSelectedEditableRenderable()
public void setSelectedEditableRenderable(EditableRenderable2DInterface selectedEditableRenderable)
selectedEditableRenderable
- The selected editable renderable to
set.public Class getSelectedRenderableClass()
public void setSelectedRenderableClass(Class selectedRenderableClass)
selectedRenderableClass
- The selectedRenderableClass to set.public int getSelectedEditMode()
public void setSelectedEditMode(int selectedEditMode)
selectedEditMode
- The selectedEditMode to set.public CartesianPoint getSelectedPoint()
public void setSelectedPoint(CartesianPoint selectedPoint)
selectedPoint
- The selectedPoint to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |