net.sf.latexdraw.glib.views.pst
Class PSTGridView
java.lang.Object
net.sf.latexdraw.glib.views.AbstractView<S>
net.sf.latexdraw.glib.views.AbstractCodeView<S>
net.sf.latexdraw.glib.views.pst.PSTShapeView<IGrid>
net.sf.latexdraw.glib.views.pst.PSTGridView
- All Implemented Interfaces:
- IAbstractView
class PSTGridView
- extends PSTShapeView<IGrid>
Defines a PSTricks view of the LGrid model.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
04/17/2008
- Since:
- 3.0
- Author:
- Arnaud BLOUIN
Constructor Summary |
protected |
PSTGridView(IGrid model)
Creates and initialises a LGrid PSTricks view. |
Method Summary |
private java.lang.StringBuilder |
getParamsCode(float ppc,
double unit)
Returns the PST code of the parameters of the grid. |
void |
updateCache(IPoint d,
float ppc)
Updates the cache. |
Methods inherited from class net.sf.latexdraw.glib.views.pst.PSTShapeView |
addColour, getArrowsParametersCode, getArrowsStyleCode, getBorderPositionCode, getColourName, getDoubleBorderCode, getFillingCode, getLineCode, getRotationHeaderCode, getShadowCode, getShowPointsCode, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PSTGridView
protected PSTGridView(IGrid model)
- Creates and initialises a LGrid PSTricks view.
- Parameters:
model
- The model to view.
- Throws:
java.lang.IllegalArgumentException
- If the given model is not valid.- Since:
- 3.0
getParamsCode
private java.lang.StringBuilder getParamsCode(float ppc,
double unit)
- Returns the PST code of the parameters of the grid.
updateCache
public void updateCache(IPoint d,
float ppc)
- Description copied from class:
PSTShapeView
- Updates the cache.
- Specified by:
updateCache
in class PSTShapeView<IGrid>
- Parameters:
d
- The origin point of the PST drawing.ppc
- The number of point per centimetre.