|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--au.edu.swin.synergy.plugin.diagram.BViewport
Inner Class Summary | |
class |
BViewport.BClipboardOwner
Need to give the clipboard something to talk to |
class |
BViewport.BUndoableEdit
Every time an edit is made, this will be used to determine what to do when it is undone or redone. |
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Field Summary | |
int |
kAdded
|
static int |
kAdditiveSelect
|
static int |
kExclusiveSelect
|
int |
kMoved
|
int |
kRemoved
|
int |
kResized
|
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
BViewport(BPlugin par)
Please complete the missing tags for BViewport |
Method Summary | |
void |
addSelectionListener(BSelectionListener l)
|
void |
adjustmentValueChanged(AdjustmentEvent e)
What to do when the scroll bar is clicked... |
void |
backTransformPoint(BScalarPoint pt)
Please complete the missing tags for mouseClicked |
void |
bringSelectionToFront()
|
int |
calcXOffset(int spacing)
|
int |
calcYOffset(int spacing)
|
void |
continueAdd(Point pt)
|
void |
disablePalette()
|
void |
doCopySelection(Vector currentSelection)
Takes the currently selected items and places a copy of them on the clipboard. |
void |
doCutSelection()
This will take the currently selected items, place a copy of them on the system clipboard and delete the selection. |
boolean |
doDeleteSelection(boolean isUndoable)
|
void |
dontScrollOnInit()
|
void |
doPasteDrawables()
This will paste the contents of the clipboard to the model |
void |
doRedo()
This will call the redo method on the edit manager to redo the last command undone. |
void |
doUndo()
This will call the undo method on the edit manager to undo the last command undone. |
void |
dragAdd(BScalarPoint deltaXY)
|
void |
dragDrag(BScalarPoint deltaXY)
|
void |
dragMove(BScalarPoint deltaXY)
|
void |
dragResize(BScalarPoint deltaXY)
|
void |
drawGrid(Graphics g)
|
void |
drawRuler(Graphics g)
|
void |
enableGrid(boolean enable)
|
void |
enableRuler(boolean enable)
|
void |
enableSnap(boolean snap)
|
void |
fireSelection()
|
BDiagram |
getDiagram()
Returns the diagram the viewport contains |
Color |
getGridColour()
|
int |
getHalfHeight()
|
BScalarPoint |
getHalfWH()
|
int |
getHalfWidth()
|
int |
getMajorRulerSpace()
|
int |
getMinorRulerSpace()
|
BSplitable |
getNewView()
|
BScalar |
getOOZ()
|
Color |
getRulerColour()
|
BScalarRect |
getViewBounds()
|
BScalarRect |
getViewCoords()
|
int |
getXPos()
|
int |
getYPos()
|
BScalar |
getZ()
|
void |
initPopup()
|
boolean |
isGridEnabled()
|
boolean |
isRulerEnabled()
|
boolean |
isSnapEnabled()
|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
Please complete the missing tags for mouseDragged |
void |
mouseEntered(MouseEvent e)
Please complete the missing tags for mouseEntered |
void |
mouseExited(MouseEvent e)
Please complete the missing tags for mouseExited |
void |
mouseMoved(MouseEvent e)
Please complete the missing tags for mouseMoved |
void |
mousePressed(MouseEvent e)
Please complete the missing tags for mousePressed |
void |
mouseReleased(MouseEvent e)
Please complete the missing tags for mouseReleased |
void |
paintComponent(Graphics g)
Please complete the missing tags for paintComponent |
int |
print(Graphics graphics,
PageFormat pageFormat,
int pageIndex)
print to the graphics context... |
void |
refreshPalette()
|
void |
relinquishUndoManager()
This will tell the viewport to use the edit support matching the given key |
void |
removeHorzAdjustable()
|
void |
removeSelectionListener(BSelectionListener l)
|
void |
removeVertAdjustable()
|
void |
render(Graphics g)
|
void |
repaint()
|
void |
scroll(BScalarPoint deltaXY)
|
void |
select(BDrawable drawable,
int type)
|
void |
sendSelectionToBack()
|
void |
setBounds(int x,
int y,
int w,
int h)
|
void |
setCurrentEditSupport(Object key)
This will tell the viewport to use the edit support matching the given key |
void |
setDiagram(BDiagram diagram)
Please complete the missing tags for setDiagram |
void |
setDiagramPlugin(BDiagramPlugin fDiagramPlugin)
|
void |
setDrawablePalette(BDrawablePalette drawablePalette)
Please complete the missing tags for setDrawablePalette |
void |
setEditSupport(Object key,
UndoableEditSupport editSupport,
BUndoManager undoManager)
Sets the undo manager to use |
void |
setGridColour(Color c)
|
void |
setGridType(int type)
|
void |
setHorzAdjustable(Adjustable horz)
|
void |
setMajorRulerSpace(int space)
|
void |
setMinorRulerSpace(int space)
|
void |
setRulerColour(Color c)
|
void |
setVertAdjustable(Adjustable vert)
|
void |
specialRepaint()
|
void |
startAdd(BDrawable drawable,
Point pt)
|
void |
startDrag(BScalarPoint pt)
|
void |
startMove(BScalarPoint pt)
|
void |
startPopup()
|
void |
startResize(BDrawable drawable,
BScalarPoint point,
int sizer)
|
void |
startScroll()
|
void |
startZoom()
|
void |
stopAdd(Point pt,
int modifiers,
boolean isUndoable)
|
void |
stopDrag(BScalarPoint pt)
|
void |
stopMove(BScalarPoint pt,
boolean undoable)
|
void |
stopPopup(int hitRes,
int x,
int y)
|
void |
stopResize(BScalarPoint point,
boolean undoable)
|
void |
undoMove(BDrawable[] drawable,
BScalarPoint point)
|
void |
undoRemove(BDrawable[] drawable)
|
void |
undoResize(BDrawable drawable,
BScalarPoint point,
int sizerNum)
|
void |
unregisterUndoManager(Object key)
Call this when the window is being closed never to be undone again |
void |
unselectAll()
|
void |
zoomIn()
|
void |
zoomOut()
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int kExclusiveSelect
public static final int kAdditiveSelect
public final int kAdded
public final int kRemoved
public final int kMoved
public final int kResized
Constructor Detail |
public BViewport(BPlugin par)
- Method Detail |
public void initPopup()
public void refreshPalette()
public void disablePalette()
public void dontScrollOnInit()
public void setBounds(int x, int y, int w, int h)
public void setDiagram(BDiagram diagram)
- public BDiagram getDiagram()
public void setDrawablePalette(BDrawablePalette drawablePalette)
- public void setGridType(int type)
public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException
public void repaint()
public void specialRepaint()
public void paintComponent(Graphics g)
- public void render(Graphics g)
public void backTransformPoint(BScalarPoint pt)
- public void mouseClicked(MouseEvent e)
public void mouseEntered(MouseEvent e)
- public void mouseExited(MouseEvent e)
- public void mousePressed(MouseEvent e)
- public void mouseReleased(MouseEvent e)
- public void mouseDragged(MouseEvent e)
- public void mouseMoved(MouseEvent e)
- public void select(BDrawable drawable, int type)
public void unselectAll()
public void bringSelectionToFront()
public void sendSelectionToBack()
public void doCutSelection()
public void setEditSupport(Object key, UndoableEditSupport editSupport, BUndoManager undoManager)
key
- The named value for this undo managerundoManager
- The undo managerpublic void relinquishUndoManager()
key
- The key for the edit support to usepublic void unregisterUndoManager(Object key)
public void setCurrentEditSupport(Object key)
key
- The key for the edit support to usepublic void doCopySelection(Vector currentSelection)
public void doPasteDrawables()
public void doUndo()
public void doRedo()
public boolean doDeleteSelection(boolean isUndoable)
public void continueAdd(Point pt)
public void startAdd(BDrawable drawable, Point pt)
public void dragAdd(BScalarPoint deltaXY)
public void stopAdd(Point pt, int modifiers, boolean isUndoable)
public void startDrag(BScalarPoint pt)
public void dragDrag(BScalarPoint deltaXY)
public void stopDrag(BScalarPoint pt)
public void startMove(BScalarPoint pt)
public void dragMove(BScalarPoint deltaXY)
public void stopMove(BScalarPoint pt, boolean undoable)
public void undoMove(BDrawable[] drawable, BScalarPoint point)
public void undoRemove(BDrawable[] drawable)
public void startResize(BDrawable drawable, BScalarPoint point, int sizer)
public void dragResize(BScalarPoint deltaXY)
public void stopResize(BScalarPoint point, boolean undoable)
public void undoResize(BDrawable drawable, BScalarPoint point, int sizerNum)
public void stopPopup(int hitRes, int x, int y)
public void startPopup()
public void startZoom()
public void startScroll()
public void scroll(BScalarPoint deltaXY)
public void zoomIn()
public void zoomOut()
public int calcYOffset(int spacing)
public int calcXOffset(int spacing)
public void drawGrid(Graphics g)
public void drawRuler(Graphics g)
public void enableGrid(boolean enable)
public boolean isGridEnabled()
public boolean isSnapEnabled()
public void enableSnap(boolean snap)
public void enableRuler(boolean enable)
public boolean isRulerEnabled()
public void setMinorRulerSpace(int space)
public int getMinorRulerSpace()
public void setMajorRulerSpace(int space)
public int getMajorRulerSpace()
public void setGridColour(Color c)
public Color getGridColour()
public void setRulerColour(Color c)
public Color getRulerColour()
public void adjustmentValueChanged(AdjustmentEvent e)
public void setHorzAdjustable(Adjustable horz)
public void setVertAdjustable(Adjustable vert)
public void removeHorzAdjustable()
public void removeVertAdjustable()
public BSplitable getNewView()
public BScalar getZ()
public BScalar getOOZ()
public int getHalfWidth()
public int getHalfHeight()
public int getXPos()
public int getYPos()
public BScalarRect getViewCoords()
public BScalarRect getViewBounds()
public BScalarPoint getHalfWH()
public void addSelectionListener(BSelectionListener l)
public void removeSelectionListener(BSelectionListener l)
public void fireSelection()
public void setDiagramPlugin(BDiagramPlugin fDiagramPlugin)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |