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

## igeo
Class IObject

    java.lang.Object
      igeo.IObject

Direct Known Subclasses:
  IAgent, ICurveR, IGeometry, ILayer, IMeshR, IPointR, IPolycurve, ISurfaceR, IVectorObject

    public class IObject

extends java.lang.Object

A base class of iGeo object to be contained by IServer. Only instances of sub-classes of IObject can be carried by IServer. IObject contains three types of subobjects. One IParameterObject, multiple IGraphicObject and multiple IDynamics. If you assign IServerI in the constructor, the instance is contained by the server. If not the instance is contained by a server found in static IG methods.

Author:
  Satoru Sugihara

Field Summary
`IAttribute` | `attribute`
`java.util.ArrayList<IDynamics>` | `dynamics`
`java.util.ArrayList<IGraphicObject>` | `graphics`
`IParameterObject` | `parameter`
`IServer` | `server`

Constructor Summary
`IObject()` IObject is stored in default IServer (through current static IG instance)
`IObject(IObject e)`
`IObject(IServerI holder)` IObject is stored in the IServer via holder
`IObject(IServerI holder, IObject e)`

Method Summary
`void` | `addDynamics(IDynamics dyna)`
`double` | `alpha()`
`int` | `alphaInt()`
`IAttribute` | `attr()` get attributes
`IObject` | `attr(IAttribute at)` set attributes
`IObject` | `attr(IObject obj)` set a duplicate of attributes of another object.
`double` | `blue()`
`int` | `blueInt()`
`void` | `clearDynamics()`
`void` | `clearGraphics()`
`java.awt.Color` | `clr()`
`IObject` | `clr(java.awt.Color c)`
`IObject` | `clr(java.awt.Color c, float alpha)` to set color, with alpha value overwritten
`IObject` | `clr(java.awt.Color c, int alpha)` to set color, with alpha value overwritten
`IObject` | `clr(double dgray)`
`IObject` | `clr(double dgray, double dalpha)`
`IObject` | `clr(double dr, double dg, double db)`
`IObject` | `clr(double dr, double dg, double db, double da)`
`IObject` | `clr(float fgray)`
`IObject` | `clr(float fgray, float falpha)`
`IObject` | `clr(float fr, float fg, float fb)`
`IObject` | `clr(float fr, float fg, float fb, float fa)`
`IObject` | `clr(int gray)`
`IObject` | `clr(int gray, int alpha)`
`IObject` | `clr(int r, int g, int b)`
`IObject` | `clr(int r, int g, int b, int a)`
`IObject` | `cp()` alias of dup()
`IGraphicObject` | `createGraphic(IGraphicMode m)`
`void` | `del()`
`void` | `deletDynamics(int index)`
`void` | `deleteDynamics()`
`void` | `deleteDynamics(IDynamics dyn)`
`void` | `deleteGraphic()` delete all graphics
`IObject` | `dup()` duplicate object
`int` | `dynamicsNum()`
`java.awt.Color` | `getColor()`
`IDynamics` | `getDynamics(int i)`
`IGraphicObject` | `getGraphic(IGraphicMode m)`
`IGraphicObject` | `getGraphic(int i)`
`IParameterObject` | `getParameter()`
`int` | `graphicsNum()`
`double` | `gray()`
`int` | `grayInt()`
`double` | `green()`
`int` | `greenInt()`
`int` | `greyInt()`
`IObject` | `hide()`
`IObject` | `hsb(double dh, double ds, double db)`
`IObject` | `hsb(double dh, double ds, double db, double da)`
`IObject` | `hsb(float h, float s, float b)`
`IObject` | `hsb(float h, float s, float b, float a)`
`void` | `initGraphic(IServerI holder)`
`void` | `initObject(IServerI holder)`
`boolean` | `isValid()` checking parameters validity.
`boolean` | `isVisible()`
`ILayer` | `layer()` Get layer of the object
`IObject` | `layer(ILayer l)` Set layer by ILayer object
`IObject` | `layer(java.lang.String layerName)` Set layer by layer name.
`java.lang.String` | `name()`
`IObject` | `name(java.lang.String name)`
`double` | `red()`
`int` | `redInt()`
`void` | `resetGraphic()` update whole graphic by deleting current one when there is major change.
`IServer` | `server()`
`IObject` | `setColor(java.awt.Color c)`
`IObject` | `setColor(java.awt.Color c, int alpha)`
`IObject` | `setColor(double dgray)`
`IObject` | `setColor(double dgray, double dalpha)`
`IObject` | `setColor(double dr, double dg, double db)`
`IObject` | `setColor(double dr, double dg, double db, double da)`
`IObject` | `setColor(float fgray)`
`IObject` | `setColor(float fgray, float falpha)`
`IObject` | `setColor(float fr, float fg, float fb)`
`IObject` | `setColor(float fr, float fg, float fb, float fa)`
`IObject` | `setColor(int gray)`
`IObject` | `setColor(int gray, int alpha)`
`IObject` | `setColor(int r, int g, int b)`
`IObject` | `setColor(int r, int g, int b, int a)`
`IObject` | `setHSBColor(double h, double s, double b)`
`IObject` | `setHSBColor(double h, double s, double b, double a)`
`IObject` | `setHSBColor(float h, float s, float b)`
`IObject` | `setHSBColor(float h, float s, float b, float a)`
`void` | `setParameter(IParameterObject param)`
`IObject` | `show()`
`void` | `syncColor()` update color of all graphics by the color in attribute
`void` | `syncGraphic()` update all graphics by the attribute
`void` | `syncWeight()` update weight of all graphics by the color in attribute
`void` | `updateGraphic()` update graphic when control point location changes or some minor change.
`boolean` | `visible()`
`float` | `weight()`
`IObject` | `weight(double w)`
`IObject` | `weight(float w)`

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

Field Detail

### server

    public IServer server

### parameter

    public IParameterObject parameter

### graphics

    public java.util.ArrayList<IGraphicObject> graphics

### dynamics

    public java.util.ArrayList<IDynamics> dynamics

### attribute

    public IAttribute attribute

Constructor Detail

### IObject

    public IObject()

  IObject is stored in default IServer (through current static IG instance)

### IObject

    public IObject(IServerI holder)

  IObject is stored in the IServer via holder

### IObject

    public IObject(IObject e)

### IObject

    public IObject(IServerI holder,
                   IObject e)

Method Detail

### dup

    public IObject dup()

  duplicate object

### cp

    public IObject cp()

  alias of dup()

### initObject

    public void initObject(IServerI holder)

### initGraphic

    public void initGraphic(IServerI holder)

### del

    public void del()

### isValid

    public boolean isValid()

  checking parameters validity. to be overriden.

### setParameter

    public void setParameter(IParameterObject param)

### addDynamics

    public void addDynamics(IDynamics dyna)

### getParameter

    public IParameterObject getParameter()

### getGraphic

    public IGraphicObject getGraphic(int i)

### getDynamics

    public IDynamics getDynamics(int i)

### graphicsNum

    public int graphicsNum()

### dynamicsNum

    public int dynamicsNum()

### clearGraphics

    public void clearGraphics()

### clearDynamics

    public void clearDynamics()

### deletDynamics

    public void deletDynamics(int index)

### deleteDynamics

    public void deleteDynamics(IDynamics dyn)

### deleteDynamics

    public void deleteDynamics()

### getGraphic

    public IGraphicObject getGraphic(IGraphicMode m)

### createGraphic

    public IGraphicObject createGraphic(IGraphicMode m)

### deleteGraphic

    public void deleteGraphic()

  delete all graphics

### updateGraphic

    public void updateGraphic()

  update graphic when control point location changes or some minor change.

### resetGraphic

    public void resetGraphic()

  update whole graphic by deleting current one when there is major change.

### server

    public IServer server()

### name

    public java.lang.String name()

### name

    public IObject name(java.lang.String name)

### layer

    public ILayer layer()

  Get layer of the object

### layer

    public IObject layer(ILayer l)

  Set layer by ILayer object

### layer

    public IObject layer(java.lang.String layerName)

  Set layer by layer name. If the layer specified by the name is not existing in the server, a new layer is automatically created in the server

### attr

    public IAttribute attr()

  get attributes

### attr

    public IObject attr(IAttribute at)

  set attributes

### attr

    public IObject attr(IObject obj)

  set a duplicate of attributes of another object. if obj is null or its attributes is null, ignored.

### visible

    public boolean visible()

### isVisible

    public boolean isVisible()

### hide

    public IObject hide()

### show

    public IObject show()

### syncGraphic

    public void syncGraphic()

  update all graphics by the attribute

### syncColor

    public void syncColor()

  update color of all graphics by the color in attribute

### syncWeight

    public void syncWeight()

  update weight of all graphics by the color in attribute

### clr

    public java.awt.Color clr()

  Returns:
    returns whatever Color of any graphics member. (first found)

### weight

    public float weight()

  Returns:
    returns weight in attribute if any attribute exists. if not default weight in IConfig

### redInt

    public int redInt()

### greenInt

    public int greenInt()

### blueInt

    public int blueInt()

### alphaInt

    public int alphaInt()

### grayInt

    public int grayInt()

### greyInt

    public int greyInt()

### red

    public double red()

### green

    public double green()

### blue

    public double blue()

### alpha

    public double alpha()

### gray

    public double gray()

### clr

    public IObject clr(java.awt.Color c)

### clr

    public IObject clr(java.awt.Color c,
                       int alpha)

  to set color, with alpha value overwritten

### clr

    public IObject clr(java.awt.Color c,
                       float alpha)

  to set color, with alpha value overwritten

### clr

    public IObject clr(int gray)

### clr

    public IObject clr(double dgray)

### clr

    public IObject clr(float fgray)

### clr

    public IObject clr(int gray,
                       int alpha)

### clr

    public IObject clr(double dgray,
                       double dalpha)

### clr

    public IObject clr(float fgray,
                       float falpha)

### clr

    public IObject clr(int r,
                       int g,
                       int b)

### clr

    public IObject clr(double dr,
                       double dg,
                       double db)

### clr

    public IObject clr(float fr,
                       float fg,
                       float fb)

### clr

    public IObject clr(int r,
                       int g,
                       int b,
                       int a)

### clr

    public IObject clr(double dr,
                       double dg,
                       double db,
                       double da)

### clr

    public IObject clr(float fr,
                       float fg,
                       float fb,
                       float fa)

### hsb

    public IObject hsb(double dh,
                       double ds,
                       double db,
                       double da)

### hsb

    public IObject hsb(float h,
                       float s,
                       float b,
                       float a)

### hsb

    public IObject hsb(double dh,
                       double ds,
                       double db)

### hsb

    public IObject hsb(float h,
                       float s,
                       float b)

### weight

    public IObject weight(double w)

### weight

    public IObject weight(float w)

### getColor

    public java.awt.Color getColor()

  Returns:
    returns whatever Color of any graphics member. (first found)

### setColor

    public IObject setColor(java.awt.Color c)

### setColor

    public IObject setColor(java.awt.Color c,
                            int alpha)

### setColor

    public IObject setColor(int gray)

### setColor

    public IObject setColor(float fgray)

### setColor

    public IObject setColor(double dgray)

### setColor

    public IObject setColor(int gray,
                            int alpha)

### setColor

    public IObject setColor(float fgray,
                            float falpha)

### setColor

    public IObject setColor(double dgray,
                            double dalpha)

### setColor

    public IObject setColor(int r,
                            int g,
                            int b)

### setColor

    public IObject setColor(float fr,
                            float fg,
                            float fb)

### setColor

    public IObject setColor(double dr,
                            double dg,
                            double db)

### setColor

    public IObject setColor(int r,
                            int g,
                            int b,
                            int a)

### setColor

    public IObject setColor(float fr,
                            float fg,
                            float fb,
                            float fa)

### setColor

    public IObject setColor(double dr,
                            double dg,
                            double db,
                            double da)

### setHSBColor

    public IObject setHSBColor(float h,
                               float s,
                               float b,
                               float a)

### setHSBColor

    public IObject setHSBColor(double h,
                               double s,
                               double b,
                               double a)

### setHSBColor

    public IObject setHSBColor(float h,
                               float s,
                               float b)

### setHSBColor

    public IObject setHSBColor(double h,
                               double s,
                               double b)

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