public class DefaultLayoutPanel extends LayoutPanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static File |
defaultPDFFolderPath |
protected LayoutDocument |
layoutDocument |
static String |
PDF_AND_PS_FILECHOOSER |
static String |
PERSISTENCE_DEFINITION_NAME |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
DefaultLayoutPanel()
Creates a new Layout object.
|
Modifier and Type | Method and Description |
---|---|
void |
backColorChanged(ColorEvent e) |
IFFrameDialog |
createFFrameDialog(IFFrame fframe)
The dialogs are created here each time that are needed.
|
protected void |
createToc() |
void |
drawLayoutPrint(Graphics2D g2)
Method to print the Layout without modify the Affinetransform.
|
Document |
getDocument() |
LayoutContext |
getLayoutContext()
Returns the LayoutContext.
|
LayoutControl |
getLayoutControl()
Returns LayoutControl.
|
WindowInfo |
getWindowInfo()
This method is used to get an initial ViewInfo object
for this Map.
|
WindowLayout |
getWindowLayout()
Método para obtener un windowData con las propiedades de la
ventana del documento como pueden ser tamaños, posiciones y
estados de sliders, divisores etc.
|
Object |
getWindowModel()
Gets the window model, the identity, the object which will be used
to identify te window.
|
Object |
getWindowProfile()
Gets the profile for this window
|
void |
hideToc() |
boolean |
isShowIconTag() |
void |
layoutToPDF()
It opens a dialog to select pdf file where to save the Layout in this
format.
|
void |
layoutToPDF(File file) |
void |
layoutToPDF(String suggestedName)
Opens a dialog where to pick a PDF-file to save the current Layout
suggesting a name for the file given by the first argument
|
void |
layoutToPS()
It opens a dialog to select ps file where to save the Layout in this
format.
|
void |
layoutToPS(String suggestedName)
Opens a dialog where to pick a PS-file to save the current Layout
suggesting a name for the file given by the first argument
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
obtainRect(boolean isPrint)
It obtains the rectángulo that represents the sheet with the
characteristics
that contains attributes and differentiating if is to visualize in screen
or
for print.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDocument(Document document) |
void |
setLayoutManager(LayoutManager layoutManager) |
void |
setShowIconTag(boolean modeDebug) |
protected void |
setToc() |
void |
setWindowLayout(WindowLayout layout)
Método para cargar los datos de la ventana de proyecto.
|
void |
showFConfig()
It shows the dialog of configuration of the Layout.
|
boolean |
showFProperties()
It shows the dialog of Layout´s properties.
|
void |
showPagePropertiesWindow(PrinterJob job)
Open the dialog of Layout properties.
|
void |
showPrintDialog(PrinterJob job)
It shows the dialog of printing of the Layout.
|
void |
showToc() |
void |
update(Observable observable,
Object notification)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
void |
windowActivated()
This method it is invoked when the window is activated.
|
void |
windowClosed()
This method it is invoked when the window is closed
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String PERSISTENCE_DEFINITION_NAME
public static final String PDF_AND_PS_FILECHOOSER
public static File defaultPDFFolderPath
protected LayoutDocument layoutDocument
public void setDocument(Document document)
protected void createToc()
protected void setToc()
public void showPagePropertiesWindow(PrinterJob job)
job
- PrinterJobpublic void obtainRect(boolean isPrint)
LayoutPanel
obtainRect
in class LayoutPanel
public void showFConfig()
LayoutPanel
showFConfig
in class LayoutPanel
public boolean showFProperties()
LayoutPanel
showFProperties
in class LayoutPanel
public void showPrintDialog(PrinterJob job)
LayoutPanel
showPrintDialog
in class LayoutPanel
job
- PrinterJobpublic IFFrameDialog createFFrameDialog(IFFrame fframe)
LayoutPanel
createFFrameDialog
in class LayoutPanel
fframe
- Rectangle that represents the place that occupied the element
added.public WindowInfo getWindowInfo()
com.iver.mdiApp.ui.MDIManager.IWindow#getWindowInfo()
public LayoutContext getLayoutContext()
LayoutPanel
getLayoutContext
in class LayoutPanel
public LayoutControl getLayoutControl()
LayoutPanel
getLayoutControl
in class LayoutPanel
public void windowActivated()
IWindowListener
com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
public Object getWindowModel()
SingletonWindow
com.iver.mdiApp.ui.MDIManager.SingletonWindow#getWindowModel()
public Document getDocument()
public void windowClosed()
IWindowListener
IWindowListener.windowClosed()
public void backColorChanged(ColorEvent e)
public void layoutToPDF(File file)
layoutToPDF
in class LayoutPanel
public void layoutToPDF(String suggestedName)
LayoutPanel
layoutToPDF
in class LayoutPanel
public void layoutToPS(String suggestedName)
LayoutPanel
layoutToPS
in class LayoutPanel
public void layoutToPDF()
LayoutPanel
layoutToPDF
in class LayoutPanel
public void layoutToPS()
LayoutPanel
layoutToPS
in class LayoutPanel
public boolean isShowIconTag()
isShowIconTag
in class LayoutPanel
public void setShowIconTag(boolean modeDebug)
setShowIconTag
in class LayoutPanel
modeDebug
- The bModeDebug to set.public void update(Observable observable, Object notification)
Observer
Observable
object is changed and this
Observer
has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer
and other Observer
s listening to the same
Observable
.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver
and prepare this method
implementation to handle receiving DefaultComplexNotification
instances
as well as direct notification objects.
observable
- the observable object.notification
- the notification data.public Object getWindowProfile()
IWindow
Gets the profile for this window
public void saveToState(PersistentState state) throws PersistenceException
Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
PersistenceException
public static void registerPersistent()
public WindowLayout getWindowLayout()
IDocumentWindow
public void setWindowLayout(WindowLayout layout)
IDocumentWindow
public void setLayoutManager(LayoutManager layoutManager)
setLayoutManager
in class LayoutPanel
public void drawLayoutPrint(Graphics2D g2)
drawLayoutPrint
in class LayoutPanel
g2
- Geaphics2Dpublic void hideToc()
hideToc
in class LayoutPanel
public void showToc()
showToc
in class LayoutPanel