|
kiyut.citra 2.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkiyut.citra.canvas.AbstractFXContext
kiyut.citra.canvas.FXContextManager
public class FXContextManager
Global or application wide singleton instances implementation of FXContext
| Field Summary |
|---|
| Fields inherited from class kiyut.citra.canvas.AbstractFXContext |
|---|
canvas, filter, filterMode, interactor, selectionStroke1, selectionStroke2, selectionStrokePaint1, selectionStrokePaint2, tool, toolOverlayFillPaint, toolOverlayStrokePaint |
| Method Summary | |
|---|---|
static FXContextManager |
getInstance()
Returns the single instance. |
org.openide.util.Lookup |
getLookup()
Return this object lookup |
void |
open(File file)
Open Image File as the specified file param |
void |
revert()
Reopen the Image File |
void |
saveAs()
Save As the current active canvas, and update the file location |
void |
saveCopy()
Save Copy the current active canvas, does not update the file location |
protected void |
saveImpl(BufferedImage image,
boolean copy)
Save the supplied image. |
void |
setFilter(FXFilter filter)
Overidden to put filter into the lookup |
| Methods inherited from class kiyut.citra.canvas.AbstractFXContext |
|---|
getCanvas, getFilter, getSelectionStroke1, getSelectionStroke2, getSelectionStrokePaint1, getSelectionStrokePaint2, getTool, getToolOverlayFillPaint, getToolOverlayStrokePaint, isFilterMode, setCanvas, setFilterMode, setTool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FXContextManager getInstance()
public org.openide.util.Lookup getLookup()
public void setFilter(FXFilter filter)
setFilter in interface FXContextsetFilter in class AbstractFXContextpublic void open(File file)
file - Filerevert()public void revert()
open(File)public void saveAs()
saveCopy(),
saveImpl(BufferedImage, boolean)public void saveCopy()
saveAs(),
saveImpl(BufferedImage, boolean)
protected void saveImpl(BufferedImage image,
boolean copy)
image - BufferedImagecopy - true (saveCopy) or false (saveAs)saveAs(),
saveCopy()
|
kiyut.citra 2.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||