public class EView extends View implements KeyListener
activeRepaintTimer, ANONYMOUS, mouse, name, OPENGL_VIEW, STD_VIEW
Modifier | Constructor and Description |
---|---|
protected |
EView(String viewType,
Vector<Camera> v,
String t,
int w,
int h,
boolean visible,
boolean decorated) |
protected |
EView(String viewType,
Vector<Camera> v,
String t,
int w,
int h,
boolean bar,
boolean visible,
boolean decorated,
JMenuBar mnb) |
Modifier and Type | Method and Description |
---|---|
void |
destroyView()
Destroy this view.
|
Component |
getFrame()
Get the java.awt.Component for this View.
|
boolean |
isSelected() |
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
void |
setLocation(int x,
int y)
Moves this component to a new location.
|
void |
setResizable(boolean resizable)
Sets whether this View is resizable by the user.
|
void |
setSize(int width,
int height)
Resizes this component so that it has width width and height height.
|
void |
setTitle(String t)
Sets the title for this frame to the specified string.
|
void |
setVisible(boolean b)
Shows or hides this View depending on the value of parameter b.
|
activate, centerOnGlyph, centerOnGlyph, centerOnGlyph, centerOnGlyph, centerOnRegion, centerOnRegion, close, deactivate, fromPanelToVSCoordinates, fromVSToPanelCoordinates, getActiveCamera, getActiveLayer, getAntialiasing, getBackgroundColor, getCameraNumber, getCursor, getDetectMultiFills, getGlobalView, getGlobalView, getGlobalView, getGlobalView, getGraphicsContext, getImage, getJava2DPainter, getLayerCount, getLayerVisibility, getLens, getName, getNotifyCursorMoved, getPanel, getPanelFactory, getPanelSize, getRefreshRate, getViewType, getVisibilityPadding, getVisibleRegion, getVisibleRegion, getVisibleRegionHeight, getVisibleRegionWidth, isBlank, rasterize, rasterize, registerViewPanelFactory, removeRepaintListener, repaint, repaint, setActiveLayer, setActiveLayer, setActiveRepaintInterval, setAntialiasing, setBackgroundColor, setBlank, setCursorIcon, setCursorIcon, setDetectMultiFills, setJava2DPainter, setLayerVisibility, setLens, setListener, setListener, setListener, setNotifyCursorMoved, setRefreshRate, setStatusBarFont, setStatusBarForeground, setStatusBarText, setVisibilityPadding, updateFont
protected EView(String viewType, Vector<Camera> v, String t, int w, int h, boolean visible, boolean decorated)
viewType
- one of View.STD_VIEW, View.OPENGL_VIEW - determines the type of view and acceleration method. The use of OPENGL_VIEW requires the following Java property: -Dsun.java2d.opengl=truev
- list of cameras that will constitue the layers of this View.t
- view name/title.w
- width of window in pixelsh
- height of window in pixelsvisible
- should the view be made visible automatically or notdecorated
- should the view be decorated with the underlying window manager's window frame or notprotected EView(String viewType, Vector<Camera> v, String t, int w, int h, boolean bar, boolean visible, boolean decorated, JMenuBar mnb)
viewType
- one of View.STD_VIEW, View.OPENGL_VIEW - determines the type of view and acceleration method. The use of OPENGL_VIEW requires the following Java property: -Dsun.java2d.opengl=truev
- list of camerast
- view namew
- width of window in pixelsh
- height of window in pixelsbar
- true -> add a status bar to this view (below main panel)visible
- should the view be made visible automatically or notdecorated
- should the view be decorated with the underlying window manager's window frame or notmnb
- a menu bar, already configured with actionListeners already attached to items (it is just added to the view). No effect if null.public Component getFrame()
View
public boolean isSelected()
isSelected
in class View
public void setLocation(int x, int y)
View
setLocation
in class View
x
- the x-coordinate of the new location's top-left corner in the parent's coordinate spacey
- the y-coordinate of the new location's top-left corner in the parent's coordinate spacepublic void setTitle(String t)
View
public void setSize(int width, int height)
View
public void setResizable(boolean resizable)
View
setResizable
in class View
resizable
- - true if this frame is resizable; false otherwise.public void setVisible(boolean b)
View
setVisible
in class View
b
- true to show, false to hide.public void destroyView()
View
destroyView
in class View
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.