|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecteTextReader.Diagram
public class Diagram
Field Summary | |
---|---|
private java.lang.String |
addend
|
private java.lang.String |
addstart
|
private int |
b
|
private javax.swing.JSlider |
bluefield
|
private java.awt.Canvas |
canvas
|
private DBClient |
client
|
private ContentPane |
content
|
private int |
currentmode
|
private java.awt.event.ActionListener |
diagramlistener
|
private javax.swing.JButton |
draw
|
private boolean |
editableDiagram
|
static int |
ERASE
|
private javax.swing.JButton |
eraser
|
private javax.swing.JFrame |
f
|
private int |
g
|
private javax.swing.JSlider |
greenfield
|
private java.awt.Image |
image
|
private java.io.OutputStream |
imagestream
|
private java.awt.event.ActionListener |
loglistener
|
private int |
nid
|
static int |
NORMAL
|
private Notation |
notationdiagram
|
private java.util.Vector |
pdata
|
private java.util.Vector |
plots
|
private int |
r
|
private javax.swing.JButton |
rainbow
|
static int |
RAINBOW
|
private javax.swing.JSlider |
redfield
|
private int |
size
|
private javax.swing.JSlider |
sizeslider
|
private javax.swing.JTextField |
titlefield
|
private java.lang.String |
url
|
private java.lang.String |
user
|
private java.lang.String |
viewmode
|
private int |
x1
|
private int |
y1
|
Constructor Summary | |
---|---|
Diagram(ContentPane content,
java.awt.event.ActionListener loglistener,
java.awt.event.ActionListener diagramlistener)
Constructs a new JFrame object used to display Diagrams. |
|
Diagram(ContentPane content,
java.awt.event.ActionListener loglistener,
boolean editableDiagram)
|
Method Summary | |
---|---|
void |
createDiagram(Notation info,
java.lang.String userName)
A method that brings up the GUI for diagram creation and stores the current canvas to the database. |
void |
dispose()
Disposes of the current diagram |
java.lang.String |
getAddEnd()
Returns the address end of the current Diagram Notation . |
java.lang.String |
getAddStart()
Returns the address start of the current Diagram Notation . |
java.awt.Canvas |
getCanvas()
Returns an Canvas of the current diagram display. |
int |
getID()
Returns the ID of the last diagram created by this object |
java.awt.Dimension |
getSize()
Returns the size of the current Diagram by getting the Dimension
of its JFrame . |
java.lang.String |
getTitle()
Returns the title of the current diagram display. |
java.lang.String |
getViewmode()
return the viewing mode of this diagram |
private void |
loadDiagram(Notation n)
loads the current diagram from the database, and returns an java.awt.Image object representing the current version of the digram |
void |
stateChanged(javax.swing.event.ChangeEvent e)
Inherited from ChangeListener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int x1
private int y1
private int r
private int g
private int b
private int size
private int currentmode
private int nid
private java.util.Vector plots
private java.util.Vector pdata
private DBClient client
private java.awt.Canvas canvas
private java.io.OutputStream imagestream
private java.lang.String user
private java.lang.String url
private java.lang.String addstart
private java.lang.String addend
private java.lang.String viewmode
private javax.swing.JTextField titlefield
private javax.swing.JSlider sizeslider
private javax.swing.JSlider redfield
private javax.swing.JSlider greenfield
private javax.swing.JSlider bluefield
private javax.swing.JButton draw
private javax.swing.JButton eraser
private javax.swing.JButton rainbow
private javax.swing.JFrame f
private java.awt.Image image
private Notation notationdiagram
private ContentPane content
private boolean editableDiagram
private java.awt.event.ActionListener loglistener
private java.awt.event.ActionListener diagramlistener
public static int NORMAL
public static int RAINBOW
public static int ERASE
Constructor Detail |
---|
public Diagram(ContentPane content, java.awt.event.ActionListener loglistener, java.awt.event.ActionListener diagramlistener)
public Diagram(ContentPane content, java.awt.event.ActionListener loglistener, boolean editableDiagram)
Method Detail |
---|
public void createDiagram(Notation info, java.lang.String userName)
duser
- The username of the Diagram authordurl
- The url of the currently displayed pagedaddstart
- The start of the diagram notation in the eText pagedaddend
- The end of the diagram notation in the eText pagepublic void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
e
- The change event fired by the slidersprivate void loadDiagram(Notation n)
public int getID()
public java.awt.Canvas getCanvas()
Canvas
of the current diagram display.
public java.lang.String getAddStart()
Notation
.
Notation
.public java.lang.String getAddEnd()
Notation
.
Notation
.public java.lang.String getTitle()
public java.lang.String getViewmode()
public java.awt.Dimension getSize()
Dimension
of its JFrame
.
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |