|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.diagram.PaintDevice
public abstract class PaintDevice
A PaintDevice is an intelligent container of Drawable objects, computing their layout and displaying them in a way that is to be made concrete by a subclass.
| Constructor Summary | |
|---|---|
protected |
PaintDevice()
|
| Method Summary | |
|---|---|
void |
addOtherDrawable(Drawable drawable)
|
void |
addSequenceElement(SequenceElement elem)
|
void |
announce(int height)
|
void |
clear()
|
void |
close()
This method is called once when no Drawable object will be added anymore. |
void |
computeAxes(int leftAxis)
|
void |
computeBounds()
Computes the width and height of this PaintDevice (this is necessary before a frame and a descriptive text can be set). |
Color |
getColor(String name)
|
Diagram |
getDiagram()
|
Font |
getFont(boolean bold)
|
int |
getHeight()
|
Line |
getRightBound()
|
int |
getTextHeight()
|
abstract int |
getTextHeight(boolean bold)
|
int |
getTextWidth(String text)
|
abstract int |
getTextWidth(String text,
boolean bold)
|
int |
getWidth()
|
boolean |
isEmpty()
|
Iterator<Drawable> |
iterator()
Returns an iterator over the visible drawable elements that are displayed by this PanelPaintDevice. |
void |
reinitialize()
This method is called by the diagram when all objects/lifelines are known. |
void |
setDiagram(Diagram diagram)
|
void |
writeToStream(OutputStream stream)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PaintDevice()
| Method Detail |
|---|
public void setDiagram(Diagram diagram)
public Color getColor(String name)
public void reinitialize()
public Font getFont(boolean bold)
public Line getRightBound()
public void addOtherDrawable(Drawable drawable)
public void addSequenceElement(SequenceElement elem)
public boolean isEmpty()
public void computeAxes(int leftAxis)
public abstract int getTextWidth(String text,
boolean bold)
public int getTextWidth(String text)
public abstract int getTextHeight(boolean bold)
public int getTextHeight()
public int getWidth()
public int getHeight()
public void clear()
public void computeBounds()
public void close()
public void announce(int height)
public Diagram getDiagram()
public void writeToStream(OutputStream stream)
throws IOException
IOExceptionpublic Iterator<Drawable> iterator()
iterator in interface Iterable<Drawable>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||