|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.action.Action
net.sf.latexdraw.actions.Export
public class Export
This action allows to export a drawing in different formats.
This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
Nested Class Summary | |
---|---|
static class |
Export.ExportFormat
The enumeration defines the different formats managed to export drawing. |
Nested classes/interfaces inherited from class org.malai.action.Action |
---|
Action.ActionStatus |
Field Summary | |
---|---|
protected ICanvas |
canvas
The canvas that contains views. |
protected ExportDialog |
dialogueBox
The dialogue chooser used to select the targeted file. |
protected boolean |
exported
Defines if the shapes have been successfully exported. |
protected Export.ExportFormat |
format
The format with which the drawing must be exported. |
Fields inherited from class org.malai.action.Action |
---|
status |
Constructor Summary | |
---|---|
Export()
Creates the action. |
Method Summary | |
---|---|
boolean |
canDo()
|
protected java.awt.image.BufferedImage |
createRenderedImage()
|
protected void |
doActionBody()
This method contains the core code to execute when the action is executed. |
protected boolean |
export(java.io.File file)
|
protected boolean |
exportAsBMP(java.io.File file)
Exports the drawing as a BMP picture. |
protected boolean |
exportAsJPG(java.io.File file)
Exports the drawing as a JPG picture. |
protected boolean |
exportAsPDF(java.io.File file)
Creates a pdf document of the given views (compiled using latex). |
protected boolean |
exportAsPNG(java.io.File file)
Exports the drawing as a PNG picture. |
protected boolean |
exportAsPS(java.io.File file)
Creates a ps document of the given views (compiled using latex). |
protected boolean |
exportAsPST(java.io.File file)
Exports the drawing as a PST document. |
void |
flush()
When an action is no more useful it can be flushes to release the used data. |
boolean |
hadEffect()
|
boolean |
isRegisterable()
Specifies if the action must be saved in the action register. |
void |
setCanvas(ICanvas canvas)
|
void |
setDialogueBox(ExportDialog dialogueBox)
|
void |
setFormat(Export.ExportFormat format)
|
Methods inherited from class org.malai.action.Action |
---|
abort, cancelledBy, doIt, done, getStatus, isDone, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Export.ExportFormat format
protected ICanvas canvas
protected boolean exported
protected ExportDialog dialogueBox
Constructor Detail |
---|
public Export()
Method Detail |
---|
public void flush()
Action
flush
in class Action
public boolean isRegisterable()
Action
isRegisterable
in class Action
protected void doActionBody()
Action
doActionBody
in class Action
protected boolean export(java.io.File file)
public boolean canDo()
canDo
in class Action
public boolean hadEffect()
hadEffect
in class Action
protected boolean exportAsPNG(java.io.File file)
file
- The targeted location.
protected boolean exportAsJPG(java.io.File file)
file
- The targeted location.
protected boolean exportAsPS(java.io.File file)
file
- The targeted location.
protected boolean exportAsPDF(java.io.File file)
file
- The targeted location.
protected boolean exportAsPST(java.io.File file)
file
- The targeted location.
protected boolean exportAsBMP(java.io.File file)
file
- The targeted location.
protected java.awt.image.BufferedImage createRenderedImage()
public void setDialogueBox(ExportDialog dialogueBox)
dialogueBox
- The file chooser to set.public void setFormat(Export.ExportFormat format)
format
- The format to set.public void setCanvas(ICanvas canvas)
canvas
- The canvas to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |