Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## igeo
Class IGraphicServer

    java.lang.Object
      igeo.IGraphicServer

    public class IGraphicServer

extends java.lang.Object

A server to contain graphic objects to manage drawing process.

Author:
  Satoru Sugihara

Field Summary
`static igeo.gui.IGraphicMode` | `defaultMode`
`java.util.HashMap<igeo.gui.IView,java.util.ArrayList<IGraphicI>>` | `graphics2D` graphic elements already flattened in 2D; need to be sorted and vary depending on view
`java.util.ArrayList<IGraphicI>` | `graphics3D` graphic elements keeping 3D info; no need to be sorted due to depth buffer
`igeo.gui.IGraphicMode[]` | `modes`
`igeo.gui.IPanelI` | `panel`
`IServer` | `server`
`boolean` | `useGL`
`java.util.ArrayList<igeo.gui.IView>` | `views`

Constructor Summary
`IGraphicServer(IServer s, igeo.gui.IPanelI p)`

Method Summary
`void` | `add(IGraphicI e, igeo.gui.IView view)`
`void` | `add(IObject e)`
`void` | `addView(igeo.gui.IView v)`
`void` | `background(IColor c1, IColor c2, IColor c3, IColor c4)`
`void` | `bg(IColor c1, IColor c2, IColor c3, IColor c4)`
`void` | `clearObjects()` remove all the graphic objects
`void` | `clearViews()` remove all views.
`void` | `disableGL()`
`void` | `enableGL()`
`java.util.ArrayList<IGraphicI>` | `getObjects(igeo.gui.IView view)`
`boolean` | `isGL()`
`void` | `remove(IGraphicI g)`
`void` | `setMode(igeo.gui.IGraphicMode m)`
`igeo.gui.IView` | `view(int i)`
`int` | `viewNum()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### defaultMode

    public static igeo.gui.IGraphicMode defaultMode

### graphics3D

    public java.util.ArrayList<IGraphicI> graphics3D

  graphic elements keeping 3D info; no need to be sorted due to depth buffer

### graphics2D

    public java.util.HashMap<igeo.gui.IView,java.util.ArrayList<IGraphicI>> graphics2D

  graphic elements already flattened in 2D; need to be sorted and vary depending on view

### views

    public java.util.ArrayList<igeo.gui.IView> views

### server

    public IServer server

### panel

    public igeo.gui.IPanelI panel

### modes

    public igeo.gui.IGraphicMode[] modes

### useGL

    public boolean useGL

Constructor Detail

### IGraphicServer

    public IGraphicServer(IServer s,
                          igeo.gui.IPanelI p)

Method Detail

### addView

    public void addView(igeo.gui.IView v)

### view

    public igeo.gui.IView view(int i)

### viewNum

    public int viewNum()

### setMode

    public void setMode(igeo.gui.IGraphicMode m)

### enableGL

    public void enableGL()

### disableGL

    public void disableGL()

### isGL

    public boolean isGL()

### bg

    public void bg(IColor c1,
                   IColor c2,
                   IColor c3,
                   IColor c4)

### background

    public void background(IColor c1,
                           IColor c2,
                           IColor c3,
                           IColor c4)

### add

    public void add(IObject e)

### add

    public void add(IGraphicI e,
                    igeo.gui.IView view)

### getObjects

    public java.util.ArrayList<IGraphicI> getObjects(igeo.gui.IView view)

### remove

    public void remove(IGraphicI g)

### clearObjects

    public void clearObjects()

  remove all the graphic objects

### clearViews

    public void clearViews()

  remove all views. don't clearViews before clearObjects

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD