net.sf.latexdraw.glib.views.pst
Class PSTClassicalView<S extends IShape>
java.lang.Object
net.sf.latexdraw.glib.views.AbstractView<S>
net.sf.latexdraw.glib.views.AbstractCodeView<S>
net.sf.latexdraw.glib.views.pst.PSTShapeView<S>
net.sf.latexdraw.glib.views.pst.PSTClassicalView<S>
- All Implemented Interfaces:
- IAbstractView
- Direct Known Subclasses:
- PSTArcView, PSTBezierCurveView, PSTDotView, PSTEllipseView, PSTFreeHandView, PSTPolygonView, PSTRectView, PSTRhombusView, PSTTriangleView
abstract class PSTClassicalView<S extends IShape>
- extends PSTShapeView<S>
Defines methods for classical PSTricks views.
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/15/2008
- Since:
- 3.0
- Author:
- Arnaud BLOUIN
Constructor Summary |
protected |
PSTClassicalView(S model)
Creates and initialises an abstract PSTricks view for classical model. |
Method Summary |
private void |
addCode(java.lang.StringBuilder mainCodeBuilder,
java.lang.StringBuilder codeToAdd)
|
protected java.lang.StringBuilder |
getPropertiesCode(float ppc)
|
Methods inherited from class net.sf.latexdraw.glib.views.pst.PSTShapeView |
addColour, getArrowsParametersCode, getArrowsStyleCode, getBorderPositionCode, getColourName, getDoubleBorderCode, getFillingCode, getLineCode, getRotationHeaderCode, getShadowCode, getShowPointsCode, update, updateCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PSTClassicalView
protected PSTClassicalView(S model)
- Creates and initialises an abstract PSTricks view for classical model.
- Parameters:
model
- The model to view.
- Throws:
java.lang.IllegalArgumentException
- If the given model is not valid.- Since:
- 3.0
getPropertiesCode
protected java.lang.StringBuilder getPropertiesCode(float ppc)
- Parameters:
ppc
- The number of pixels per centimetre.
- Returns:
- The properties PSTricks code of the model.
- Since:
- 3.0
addCode
private void addCode(java.lang.StringBuilder mainCodeBuilder,
java.lang.StringBuilder codeToAdd)