package bluej.stride.generic;
import javafx.scene.Node;
import bluej.utility.javafx.SharedTransition;
public abstract class DocumentedSingleCanvasFrame
extends SingleCanvasFrame{
protected DocumentationTextArea documentationPane;
protected DocumentedSingleCanvasFrame(InteractionManager editor, String caption, String stylePrefix)
{
super(editor, caption, stylePrefix);
documentationPane = new DocumentationTextArea(editor, this, this, stylePrefix);
contents.setAll(documentationPane, getHeaderRow(), canvas);
}
public String getDocumentation()
{
return documentationPane.getText();
}
public void setDocumentation(String s)
{
documentationPane.setText(s);
}
public void setDocumentationPromptText(String s)
{
documentationPane.setPromptText(s);
}
@Override
public void pullUpContents()
{
}
@Override
protected double getRightMarginFor(Node n)
{
if (n == documentationPane.getNode())
return 6.0;
else{ return super.getRightMarginFor(n);
}
}
@Override
protected double getLeftMarginFor(Node n)
{
if (n == documentationPane.getNode())
return 6.0;
else{ return super.getLeftMarginFor(n);
}
}
@Override
protected double getBottomMarginFor(Node n)
{
if (n == documentationPane.getNode())
return 4.0;
else{ return super.getBottomMarginFor(n);
}
}
}
top,
use,
map,
abstract class DocumentedSingleCanvasFrame
. DocumentedSingleCanvasFrame
. getDocumentation
. setDocumentation
. setDocumentationPromptText
. pullUpContents
. getRightMarginFor
. getLeftMarginFor
. getBottomMarginFor
82 neLoCode
+ 0 LoComm