Package com.cosylab.vdct.graphics
Class Decorator
- java.lang.Object
-
- com.cosylab.vdct.graphics.Decorator
-
- All Implemented Interfaces:
VisualComponent
- Direct Known Subclasses:
BorderDecorator,DrawingSurface
public abstract class Decorator extends Object implements VisualComponent
Decorator (using Decorator pattern) Creation date: (10.12.2000 11:02:55)- Author:
- Matej Sekoranja
-
-
Constructor Summary
Constructors Constructor Description Decorator()Insert the method's description here.Decorator(VisualComponent component)ComponentManager constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(Graphics g)Default implementation Creation date: (10.12.2000 11:25:20)VisualComponentgetComponent()Insert the method's description here.intgetComponentHeight()Insert the method's description here.intgetComponentWidth()Insert the method's description here.voidresize(int x0, int y0, int width, int height)Default implementation Creation date: (10.12.2000 11:26:54)voidsetComponent(VisualComponent newComponent)Insert the method's description here.
-
-
-
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.- Parameters:
component- component
-
-
Method Detail
-
draw
public void draw(Graphics g)
Default implementation Creation date: (10.12.2000 11:25:20)- Specified by:
drawin interfaceVisualComponent- Parameters:
g- g
-
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:
getComponentHeightin interfaceVisualComponent- Returns:
- something
-
getComponentWidth
public int getComponentWidth()
Insert the method's description here. Creation date: (11.12.2000 16:23:02)- Specified by:
getComponentWidthin interfaceVisualComponent- 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:
resizein interfaceVisualComponent- Parameters:
x0- x0y0- y0width- widthheight- height
-
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
-
-