|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvDefaultManagerFrame
ilog.views.IlvConstantModeManagerFrame
public class IlvConstantModeManagerFrame
IlvConstantModeManagerFrame is an extended
IlvDefaultManagerFrame that handles resize events
automatically.
IlvConstantModeManagerFrame keeps the sub manager zoom level
constant by adjusting frame margins to meet the required size.
When a sub manager uses a IlvConstantModeManagerFrame, it has
the following behavior:
IlvManager.moveResize(IlvRect)
but not IlvManager.applyTransform(IlvTransformer).
Call IlvManager.applyTransform(IlvTransformer) to apply a specific
transformation only.
IlvConstantModeManagerFrame objects cannot have negative margins,
when both left and right margins become zero, the sub manager stops the reshape
operation.
IlvConstantModeManagerFrame objects listens to sub manager or
grapher content changes. When the bounding box of the sub manager grows, in
order to keep the global bounding box constant the frame tries to reduce the
margins first.
| Field Summary |
|---|
| Fields inherited from class ilog.views.IlvDefaultManagerFrame |
|---|
BOTTOM, CENTER, LEFT, RIGHT, TOP, WRAPPED |
| Constructor Summary | |
|---|---|
IlvConstantModeManagerFrame()
Creates a IlvConstantModeManagerFrame instance. |
|
IlvConstantModeManagerFrame(float minimumMargin)
Creates a Creates a IlvConstantModeManagerFrame instance.constant mode manager frame with a minimum margin. |
|
IlvConstantModeManagerFrame(IlvConstantModeManagerFrame source)
Creates an IlvConstantModeManagerFrame by copying the
specified one. |
|
IlvConstantModeManagerFrame(IlvInputStream stream)
Reads an IlvConstantModeManagerFrame from an
IlvInputStream. |
|
| Method Summary | |
|---|---|
IlvManagerFrame |
copy()
Creates an IlvConstantModeManagerFrame by copying itself. |
float |
getMinimumMargin()
Gets the minimum margin allowed. |
void |
managerChanged(IlvManager manager)
This function adjusts the margins after its manager has been changed. |
boolean |
moveResize(IlvManager manager,
IlvRect size)
Adjusts the margins to meet the specified size. |
void |
setBottomMargin(float margin)
Sets the bottom margin. |
void |
setLeftMargin(float margin)
Sets the left margin. |
void |
setMinimumMargin(float minimumMargin)
Set the minimum margin allowed. |
void |
setRightMargin(float margin)
Sets the right margin. |
void |
setTopMargin(float margin)
Sets the top 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 |
| Methods inherited from interface ilog.views.IlvManagerFrame |
|---|
contains, draw, getBottomMargin, getLeftMargin, getRightMargin, getTopMargin, isOpaque |
| Constructor Detail |
|---|
public IlvConstantModeManagerFrame()
IlvConstantModeManagerFrame instance.
public IlvConstantModeManagerFrame(float minimumMargin)
IlvConstantModeManagerFrame instance.constant mode manager frame with a minimum margin.
minimumMargin - The minimum margin allowed, must not be negative.public IlvConstantModeManagerFrame(IlvConstantModeManagerFrame source)
IlvConstantModeManagerFrame by copying the
specified one.
source - The IlvConstantModeManagerFrame object
to copy.copy()
public IlvConstantModeManagerFrame(IlvInputStream stream)
throws IOException,
IlvReadFileException
IlvConstantModeManagerFrame from an
IlvInputStream.
stream - The input stream to read from.
IOException
IlvReadFileException| Method Detail |
|---|
public IlvManagerFrame copy()
IlvConstantModeManagerFrame by copying itself.
copy in interface IlvManagerFramecopy in class IlvDefaultManagerFrame
public void write(IlvOutputStream stream)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvDefaultManagerFramestream - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.public float getMinimumMargin()
public void setTopMargin(float margin)
setTopMargin in class IlvDefaultManagerFramemargin - Must be greater than or equal to the minimum margin.
If not, the minimum margin is set.public void setBottomMargin(float margin)
setBottomMargin in class IlvDefaultManagerFramemargin - Must be greater than or equal to the minimum margin.
If not, the minimum margin is set.public void setLeftMargin(float margin)
setLeftMargin in class IlvDefaultManagerFramemargin - Must be greater than or equal to the minimum margin.
If not, the minimum margin is set.public void setRightMargin(float margin)
setRightMargin in class IlvDefaultManagerFramemargin - Must be greater than or equal to the minimum margin.
If not, the minimum margin is set.public void setMinimumMargin(float minimumMargin)
minimumMargin - The minimum margin allowed, must not be negative.
public boolean moveResize(IlvManager manager,
IlvRect size)
moveResize() of a submanager is called.
moveResize in interface IlvResizableManagerFramemoveResize in class IlvDefaultManagerFramemanager - The manager to be transformed. This object must have a
IlvResizableManagerFrame manager frame.size - The new size to be applied to the submanager.
true, to indicate the frame is capable of resizing the inner
manager.public void managerChanged(IlvManager manager)
applyTransform() method of the inner
manager. When the bounding box of the inner manager grows, the frame tries to
reduce the margins first in order to keep the global bounding box constant.
managerChanged in interface IlvResizableManagerFramemanagerChanged in class IlvDefaultManagerFramemanager - The inner manager that has been changed.
|
||||||||||
| PREV CLASS Documentation homepage. NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||