|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
ilog.views.IlvManagerView
ilog.cpl.graphic.views.IlpManagerView
public class IlpManagerView
This is a subclass of ILOG JViews IlvManagerView
that adds support for IlpViewsViewInteractor.
| Nested Class Summary | |
|---|---|
static class |
IlpManagerView.DeafManagerViewInteractor
A manager view interactor that doesn't react to any event. |
| Nested classes/interfaces inherited from class ilog.views.IlvManagerView |
|---|
IlvManagerView.FitAreaCalculator |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static Color |
DEFAULT_BACKGROUND_COLOR
Default background color. |
| Fields inherited from class ilog.views.IlvManagerView |
|---|
DIRECT_REDRAW, THREADED_REDRAW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlpManagerView(IlpGraphicView cplView)
Creates a new manager view. |
|
IlpManagerView(IlpGraphicView cplView,
IlvManager manager)
Creates a new manager view to display the contents of the specified manager. |
|
IlpManagerView(IlpGraphicView cplView,
IlvManager manager,
IlvTransformer t)
Creates a new manager view. |
|
IlpManagerView(IlpGraphicView cplView,
IlvManager manager,
IlvTransformer t,
boolean isInteracted)
Creates a new manager view. |
|
| Method Summary | |
|---|---|
void |
addPaintListener(ActionListener listener)
Adds a listener that is called when paint(Graphics) is
invoked. |
IlpGraphicView |
getGraphicView()
Returns the graphic view to which this manager view belongs. |
boolean |
isInteractedByToolBar()
Checks whether this manager view is interacted by the toolbar or not. |
void |
paint(Graphics g)
Paint the manager view. |
protected void |
processEvent(AWTEvent event)
Process events that occur in this manager view. |
void |
removePaintListener(ActionListener listener)
Removes a listener added through addPaintListener. |
void |
verifyTransformer()
Checks a transformer before setting it to a view. |
void |
zoomBack(boolean redraw)
Go back to the previous zoom applied on the manager view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ilog.views.IlvObjectInteractorContext |
|---|
getCursor, getGraphics, isCursorSet |
| Field Detail |
|---|
public static final Color DEFAULT_BACKGROUND_COLOR
| Constructor Detail |
|---|
public IlpManagerView(IlpGraphicView cplView)
cplView - The graphic view to which the manager view shall belong.
public IlpManagerView(IlpGraphicView cplView,
IlvManager manager)
cplView - The graphic view to which the manager view shall belong.manager - The manager to which the manager view shall be connected.
public IlpManagerView(IlpGraphicView cplView,
IlvManager manager,
IlvTransformer t,
boolean isInteracted)
cplView - The graphic view to which the manager view shall belong.manager - The manager to which the manager view shall be connected.t - The initial value for the transformation used to draw the content
of the manager.isInteracted - Defines if this manager view will be interacted
through view's toolbar.
public IlpManagerView(IlpGraphicView cplView,
IlvManager manager,
IlvTransformer t)
cplView - The graphic view to which the manager view shall belong.manager - The manager to which the manager view shall be connected.t - The initial value for the transformation used to draw the content
of the manager.| Method Detail |
|---|
public void addPaintListener(ActionListener listener)
paint(Graphics) is
invoked.
public void removePaintListener(ActionListener listener)
addPaintListener.
public void paint(Graphics g)
paint in class IlvManagerViewg - The specified Graphics.protected void processEvent(AWTEvent event)
processEvent in class IlvManagerViewevent - EventIlvManagerViewInteractorpublic void verifyTransformer()
IlvManagerViewsetTransformer or
addTransformer. It is used to verify
that the zoom factor is the same along the x and y axis
if the view must maintain the aspect ratio and is within the
range of the minimal and maximal zoom factor.
You do not need to call this method.
verifyTransformer in class IlvManagerViewIlvManagerView.setTransformer(ilog.views.IlvTransformer),
IlvManagerView.addTransformer(IlvTransformer),
IlvManagerView.setZoomFactorRange(double, double),
IlvManagerView.setKeepingAspectRatio(boolean)public void zoomBack(boolean redraw)
redraw - If true, the view is redrawn..public IlpGraphicView getGraphicView()
public boolean isInteractedByToolBar()
true if it's interacted by the toolbar.
false otherwise.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||