mascoptLib.gui.views
Class View

java.lang.Object
  |
  +--java.awt.Component
        |
        +--mascoptLib.gui.views.GObject
              |
              +--mascoptLib.gui.views.View
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
GView

public class View
extends GObject

View description : ;

See Also:
Serialized Form

Field Summary
 Dimension preferredSize
           
 
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
View(int x, int y, double zoomFactor)
           
 
Method Summary
 void addLayer(Layer layer)
           
 boolean contains(Layer l)
           
 Component getFirstComponentAt(Point p)
           
 int getLayerCount()
           
 int getLayerIndex(Layer l)
           
 LayerInfo getLayerInfo(Layer l)
           
 Dimension getPreferredSize()
           
 Dimension getReal(Dimension dim)
           
 Point getReal(Point p)
           
 Rectangle getReal(Rectangle r)
           
 Point getRealCenter()
           
 Dimension getView(Dimension dim)
           
 Point getView(Point p)
           
 Rectangle getView(Rectangle r)
           
 double getZoom()
           
 void insertLayer(int index, Layer layer)
           
 void insertLayerInfo(int index, LayerInfo li)
           
 void paint(Graphics g)
           
 void removeLayer(Layer layer)
           
 void repaint()
           
 void setDisplayMessage(String s)
           
 void setLocation(int x, int y)
           
 void setLocation(Point p)
           
 void setPreferredSize(Dimension dim)
           
 void setPreferredSize(int x, int y)
           
 void setRealCenter(Point p)
           
 void setVisibleLayer(Layer layer, boolean visible)
           
 void setZoom(double newZoom)
           
 void translate(int realX, int realY)
           
 void translate(Point realPoint)
           
 void updateZoom(double newZoom)
           
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

preferredSize

public Dimension preferredSize
Constructor Detail

View

public View(int x,
            int y,
            double zoomFactor)
Method Detail

setLocation

public void setLocation(int x,
                        int y)
Overrides:
setLocation in class Component

setLocation

public void setLocation(Point p)
Overrides:
setLocation in class Component

addLayer

public void addLayer(Layer layer)
Overrides:
addLayer in class GObject

removeLayer

public void removeLayer(Layer layer)
Overrides:
removeLayer in class GObject

insertLayer

public void insertLayer(int index,
                        Layer layer)

insertLayerInfo

public void insertLayerInfo(int index,
                            LayerInfo li)

getLayerCount

public int getLayerCount()

getLayerIndex

public int getLayerIndex(Layer l)

contains

public boolean contains(Layer l)

getLayerInfo

public LayerInfo getLayerInfo(Layer l)

setVisibleLayer

public void setVisibleLayer(Layer layer,
                            boolean visible)

getRealCenter

public Point getRealCenter()

setRealCenter

public void setRealCenter(Point p)

translate

public void translate(int realX,
                      int realY)
Overrides:
translate in class GObject

translate

public void translate(Point realPoint)

getZoom

public double getZoom()

setZoom

public void setZoom(double newZoom)

updateZoom

public void updateZoom(double newZoom)

getReal

public Point getReal(Point p)

getReal

public Dimension getReal(Dimension dim)

getReal

public Rectangle getReal(Rectangle r)

getView

public Point getView(Point p)

getView

public Dimension getView(Dimension dim)

getView

public Rectangle getView(Rectangle r)

repaint

public void repaint()
Overrides:
repaint in class GObject

setDisplayMessage

public void setDisplayMessage(String s)

getPreferredSize

public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component

setPreferredSize

public void setPreferredSize(int x,
                             int y)

setPreferredSize

public void setPreferredSize(Dimension dim)

paint

public void paint(Graphics g)
Overrides:
paint in class Component

getFirstComponentAt

public Component getFirstComponentAt(Point p)