com.cosylab.vdct.graphics
Class Decorator

java.lang.Object
  extended by com.cosylab.vdct.graphics.Decorator
All Implemented Interfaces:
VisualComponent
Direct Known Subclasses:
BorderDecorator, DrawingSurface

public abstract class Decorator
extends java.lang.Object
implements VisualComponent

Decorator (using Decorator pattern) Creation date: (10.12.2000 11:02:55)

Author:
Matej Sekoranja

Constructor Summary
Decorator()
          Insert the method's description here.
Decorator(VisualComponent component)
          ComponentManager constructor comment.
 
Method Summary
 void draw(java.awt.Graphics g)
          Default implementation Creation date: (10.12.2000 11:25:20)
 VisualComponent getComponent()
          Insert the method's description here.
 int getComponentHeight()
          Insert the method's description here.
 int getComponentWidth()
          Insert the method's description here.
 void resize(int x0, int y0, int width, int height)
          Default implementation Creation date: (10.12.2000 11:26:54)
 void setComponent(VisualComponent newComponent)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decorator

public Decorator()
Insert the method's description here. Creation date: (10.12.2000 13:25:58)


Decorator

public Decorator(VisualComponent component)
ComponentManager constructor comment.

Method Detail

draw

public void draw(java.awt.Graphics g)
Default implementation Creation date: (10.12.2000 11:25:20)

Specified by:
draw in interface VisualComponent

getComponent

public VisualComponent getComponent()
Insert the method's description here. Creation date: (10.12.2000 13:02:11)

Returns:
com.cosylab.vdct.graphics.VisualComponent

getComponentHeight

public int getComponentHeight()
Insert the method's description here. Creation date: (11.12.2000 16:23:31)

Specified by:
getComponentHeight in interface VisualComponent

getComponentWidth

public int getComponentWidth()
Insert the method's description here. Creation date: (11.12.2000 16:23:02)

Specified by:
getComponentWidth in interface VisualComponent
Returns:
int

resize

public void resize(int x0,
                   int y0,
                   int width,
                   int height)
Default implementation Creation date: (10.12.2000 11:26:54)

Specified by:
resize in interface VisualComponent

setComponent

public void setComponent(VisualComponent newComponent)
Insert the method's description here. Creation date: (10.12.2000 13:02:11)

Parameters:
newComponent - com.cosylab.vdct.graphics.VisualComponent