|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object processing.app.SketchCode
public class SketchCode
Represents a single tab of a sketch.
Constructor Summary | |
---|---|
SketchCode(java.io.File file,
java.lang.String extension)
|
Method Summary | |
---|---|
void |
addPreprocOffset(int extra)
|
javax.swing.text.Document |
getDocument()
|
java.lang.String |
getExtension()
|
java.io.File |
getFile()
|
java.lang.String |
getFileName()
|
int |
getLineCount()
|
int |
getPreprocOffset()
|
java.lang.String |
getPrettyName()
|
java.lang.String |
getProgram()
|
int |
getScrollPosition()
|
int |
getSelectionStart()
|
int |
getSelectionStop()
|
javax.swing.undo.UndoManager |
getUndo()
|
boolean |
isExtension(java.lang.String what)
|
boolean |
isModified()
|
void |
load()
Load this piece of code from a file. |
void |
save()
Save this piece of code, regardless of whether the modified flag is set or not. |
void |
saveAs(java.io.File newFile)
Save this file to another location, used by Sketch.saveAs() |
void |
setDocument(javax.swing.text.Document d)
|
void |
setModified(boolean modified)
|
void |
setPreprocOffset(int preprocOffset)
|
void |
setProgram(java.lang.String replacement)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SketchCode(java.io.File file, java.lang.String extension)
Method Detail |
---|
public java.io.File getFile()
public java.lang.String getFileName()
public java.lang.String getPrettyName()
public java.lang.String getExtension()
public boolean isExtension(java.lang.String what)
public java.lang.String getProgram()
public void setProgram(java.lang.String replacement)
public int getLineCount()
public void setModified(boolean modified)
public boolean isModified()
public void setPreprocOffset(int preprocOffset)
public int getPreprocOffset()
public void addPreprocOffset(int extra)
public javax.swing.text.Document getDocument()
public void setDocument(javax.swing.text.Document d)
public javax.swing.undo.UndoManager getUndo()
public int getSelectionStart()
public int getSelectionStop()
public int getScrollPosition()
public void load() throws java.io.IOException
java.io.IOException
public void save() throws java.io.IOException
java.io.IOException
public void saveAs(java.io.File newFile) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |