|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.graphic.linkbundle.IlvDefaultLinkBundleFrame
public class IlvDefaultLinkBundleFrame
The default frame for an IlvLinkBundle.
The IlvDefaultLinkBundleFrame class defines
the default frame that is drawn around an IlvLinkBundle when
this link bundle is added into another link bundle or into a grapher.
IlvLinkBundle.setFrame(ilog.views.graphic.linkbundle.IlvLinkBundleFrame),
setBackground(java.awt.Paint),
setMargin(float),
Serialized Form| Constructor Summary | |
|---|---|
IlvDefaultLinkBundleFrame()
Creates a default link bundle frame. |
|
IlvDefaultLinkBundleFrame(IlvDefaultLinkBundleFrame source)
Creates an IlvDefaultLinkBundleFrame
by copying the specified one. |
|
IlvDefaultLinkBundleFrame(IlvInputStream stream)
Reads an IlvDefaultLinkBundleFrame from an
IlvInputStream. |
|
| Method Summary | |
|---|---|
IlvRect |
boundingBox(IlvLinkBundle linkBundle,
IlvTransformer transformer)
Returns the bounding rectangle of the frame for a given link bundle and transformer. |
boolean |
contains(IlvLinkBundle linkBundle,
IlvPoint p,
IlvPoint tp,
IlvTransformer transformer)
Tests if a point lies within the outline of the frame. |
IlvLinkBundleFrame |
copy()
Creates an IlvDefaultLinkBundleFrame by copying
this one. |
void |
draw(IlvLinkBundle linkBundle,
Graphics g,
IlvTransformer t)
Draws the frame for a given link bundle. |
Paint |
getBackground()
Returns the Paint object used to draw the background of the
link bundle. |
float |
getMargin()
Returns the margin. |
float |
getMargin(IlvLinkBundle linkBundle,
IlvTransformer t)
Returns the margin of the specified link bundle. |
void |
setBackground(Paint p)
Changes the Paint object used to draw the background of the
link bundle. |
void |
setMargin(float margin)
Sets the margin. |
void |
write(IlvOutputStream stream)
Writes the frame to an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDefaultLinkBundleFrame()
public IlvDefaultLinkBundleFrame(IlvDefaultLinkBundleFrame source)
IlvDefaultLinkBundleFrame
by copying the specified one.
source - The origin of the copy.copy()
public IlvDefaultLinkBundleFrame(IlvInputStream stream)
throws IOException,
IlvReadFileException
IlvDefaultLinkBundleFrame from an
IlvInputStream.
stream - The input stream.
IOException
IlvReadFileException| Method Detail |
|---|
public IlvLinkBundleFrame copy()
IlvDefaultLinkBundleFrame by copying
this one.
copy in interface IlvLinkBundleFrame
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectstream - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.
public float getMargin(IlvLinkBundle linkBundle,
IlvTransformer t)
getMargin in interface IlvLinkBundleFramelinkBundle - The link bundle.t - The transformer used to draw the link bundle and the frame.
public IlvRect boundingBox(IlvLinkBundle linkBundle,
IlvTransformer transformer)
boundingBox in interface IlvLinkBundleFramelinkBundle - The link bundle.transformer - The transformer used to draw the link bundle.public float getMargin()
public void setMargin(float margin)
public Paint getBackground()
Paint object used to draw the background of the
link bundle.
setBackground(java.awt.Paint)public void setBackground(Paint p)
Paint object used to draw the background of the
link bundle.
getBackground()
public void draw(IlvLinkBundle linkBundle,
Graphics g,
IlvTransformer t)
draw in interface IlvLinkBundleFramelinkBundle - The link bundle.g - The Graphics used to draw the frame.t - The transformer used to draw the frame.
public boolean contains(IlvLinkBundle linkBundle,
IlvPoint p,
IlvPoint tp,
IlvTransformer transformer)
contains in interface IlvLinkBundleFramelinkBundle - The link bundle.p - The point to be tested.tp - The point p transformed by the transformer t.transformer - The transformation that is used to draw the frame.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||