org.problets.domain.model.output.view
Class LineOutputView

java.lang.Object
  extended by org.problets.domain.model.output.view.LineOutputView

public class LineOutputView
extends java.lang.Object

To view the LineOutput object

Author:
Brian Kunert, Amruth Kumar

Constructor Summary
LineOutputView(LineOutput inLineOutput, java.awt.Font inFont, java.awt.FontMetrics inFontMetrics)
          Constructs a LineOutputView and sets the pointer to the LineOutput object
 
Method Summary
 LineOutput getLineOutput()
          Gets the pointer to the LineOutput object
 int getNumReturns()
          Get the number of lines that this LineOutputView is on
 java.lang.String getOutput()
          Gets the output of the LineOutput object
 int getX()
          Gets the x-coordinate of the LineOutputView
 int getY()
          Gets the y-coordinate of the LineOutputView
 boolean isBorderShown()
          relays whether the border is shown or not
 boolean isInArea(int x, int y, java.awt.Graphics g)
          Relays whether the coordinates are in the area of this LineOutputView
static void main(java.lang.String[] args)
          Sets the y coordinate of this LineOutputView public void setY( int y ) { posY = y; }
 void moveView(int x, int y)
          Moves the LineOutputView x pixels to the left or right an y pixels up an down
 void paintView(java.awt.Point point, java.awt.Graphics g)
           
 void setCoordinates(int x, int y)
          Sets both the x and y coordinates of this LineOutputView
 void showBorder(boolean borderShow)
          Tells the LineOutputView to show its border
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineOutputView

public LineOutputView(LineOutput inLineOutput,
                      java.awt.Font inFont,
                      java.awt.FontMetrics inFontMetrics)
Constructs a LineOutputView and sets the pointer to the LineOutput object

Method Detail

paintView

public void paintView(java.awt.Point point,
                      java.awt.Graphics g)

getLineOutput

public LineOutput getLineOutput()
Gets the pointer to the LineOutput object


getNumReturns

public int getNumReturns()
Get the number of lines that this LineOutputView is on


getX

public int getX()
Gets the x-coordinate of the LineOutputView


getY

public int getY()
Gets the y-coordinate of the LineOutputView


getOutput

public java.lang.String getOutput()
Gets the output of the LineOutput object


isBorderShown

public boolean isBorderShown()
relays whether the border is shown or not


isInArea

public boolean isInArea(int x,
                        int y,
                        java.awt.Graphics g)
Relays whether the coordinates are in the area of this LineOutputView


setCoordinates

public void setCoordinates(int x,
                           int y)
Sets both the x and y coordinates of this LineOutputView


moveView

public void moveView(int x,
                     int y)
Moves the LineOutputView x pixels to the left or right an y pixels up an down


showBorder

public void showBorder(boolean borderShow)
Tells the LineOutputView to show its border


main

public static void main(java.lang.String[] args)
Sets the y coordinate of this LineOutputView public void setY( int y ) { posY = y; }