public interface LayoutContext extends Persistent, Observable
Modifier and Type | Method and Description |
---|---|
void |
addFFrame(IFFrame frame,
boolean clearSelection,
boolean select)
It adds a fframe to Arraylist of FFrames .
|
void |
addFFrameSameProperties(IFFrame frame)
It adds a fframe to Arraylist of FFrames with the same properties.
|
void |
addTocObserver(TocModelObserver observer) |
void |
clearSelection()
Clear the selection of FFrames.
|
Iterator |
deepiterator()
Get an Iterator over al elements in the layout.
|
void |
delFFrame(IFFrame frame)
Remove the fframe of parameter.
|
void |
delFFrame(int index)
Remove the fframe of index.
|
void |
delFFrameSelected()
Remove the fframes selected.
|
void |
fullRefresh()
Refresh all FFrames of Layout.
|
IFFrame[] |
getAllFFrames()
It returns all the fframes included them erased and modified in all its
previous forms.
|
AffineTransform |
getAT()
Returns the AffineTransform that is applying in the Layout.
|
Attributes |
getAttributes()
It returns the print attributes of the Layout.
|
IFFrame |
getFFrame(int i)
It obtains the FFrame from an index.
|
IFFrame[] |
getFFrames()
It obtains the Array with all the FFrames that have been added al Layout.
|
FrameCommandsRecord |
getFrameCommandsRecord()
Returns the EditableFeatureSource, is the control of all change in the
FFrames of Layout.
|
int |
getNumBefore()
Returns other number before the current fframes.
|
int |
getNumBehind()
Returns other number behind the current fframes.
|
boolean |
getRuler()
Returns if is shown or not the rule of the Layout.
|
IFFrame[] |
getSelectedFFrames()
Gets the list of selected FFrames
|
<T> T[] |
getSelectedFFrames(Class<T> clazz)
Gets the list of selected FFrames that are instance of the provided
Class.
|
MapContext |
getTocModel()
Gets the model of the TOC.
|
boolean |
hasDocBeenOpened()
True when the document window has been opened at least once, false
otherwise.
|
boolean |
isAdjustingToGrid()
It returns if has been applying in the fframes that are added to Layout
the grid, or not.
|
boolean |
isEditable()
It returns if the Layout is in edition.
|
boolean |
isGridVisible()
It returns if has been showing the grid of Layout, or not.
|
Iterator |
iterator() |
void |
notifAllObservers()
Call all LayoutDrawListeners.
|
void |
notifyTocUpdated(TocModelChangedNotification.Type notificationType)
Triggers a notification to the TocModel observers of type
TocModelChangedNotification#MODEL_CHANGED |
void |
removeTocObserver(TocModelObserver observer) |
void |
removeTocObservers() |
void |
setAdjustToGrid(boolean b)
It inserts if has been applying in the fframes that are added to Layout
the grid, or not.
|
void |
setAtributes(Attributes attributes)
Inserts the print attributes of Layout.
|
void |
setEditable(boolean b)
It inserts if the Layout is in edition.
|
void |
setGridVisible(boolean b)
It inserts if draws the Grid in the Layout or not.
|
void |
setHasDocBeenOpened(boolean hasBeenOpened)
True when the document window has been opened at least once, false
otherwise.
|
void |
setNumBefore(int numBefore) |
void |
setNumBehind(int numBehind) |
void |
setRuler(boolean b)
It inserts if is shown or not the rule of the Layout.
|
void |
setTocModel(MapContext tocModel)
Sets the model of the TOC.
|
void |
updateFFrames()
It orders the FFrames depending on its position specified by level.
|
loadFromState, saveToState
addObserver, deleteObserver, deleteObservers
AffineTransform getAT()
void notifAllObservers()
Attributes getAttributes()
void setAtributes(Attributes attributes)
attributes
- Attributes.IFFrame[] getFFrames()
IFFrame getFFrame(int i)
void updateFFrames()
void delFFrameSelected()
void clearSelection()
void delFFrame(int index)
void delFFrame(IFFrame frame)
frame
- FFrame to remove.FrameCommandsRecord getFrameCommandsRecord()
void addFFrame(IFFrame frame, boolean clearSelection, boolean select)
frame
- fframe to add.clearSelection
- True True if clean the selection of the fframes
already added and false if intends to maintain the same selection.select
- Boolean that indicates if has to remain selected the FFrame
that is added or not.void addFFrameSameProperties(IFFrame frame)
frame
- fframe to add.int getNumBehind()
int getNumBefore()
IFFrame[] getAllFFrames()
IFFrame[] getSelectedFFrames()
<T> T[] getSelectedFFrames(Class<T> clazz)
T
- clazz
- A classboolean isEditable()
void setEditable(boolean b)
b
- True if Layout is in edition.boolean isAdjustingToGrid()
void setAdjustToGrid(boolean b)
b
- true if has been applying the grid.void setRuler(boolean b)
b
- True if is shown or not the rule of the Layout.boolean getRuler()
boolean isGridVisible()
void setGridVisible(boolean b)
b
- True if draws the Grid in the Layout.void fullRefresh()
void setNumBehind(int numBehind)
void setNumBefore(int numBefore)
void setTocModel(MapContext tocModel)
MapContext getTocModel()
void notifyTocUpdated(TocModelChangedNotification.Type notificationType)
TocModelChangedNotification#MODEL_CHANGED
void addTocObserver(TocModelObserver observer)
void removeTocObserver(TocModelObserver observer)
void removeTocObservers()
boolean hasDocBeenOpened()
void setHasDocBeenOpened(boolean hasBeenOpened)
Iterator deepiterator()
Iterator iterator()