rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
return null;
NumberFormatter formatter = (NumberFormatter) ftf.getFormatter(); return (DecimalFormat) formatter.getFormat();
public DecimalFormat getFormat() { return null; }
else if (model instanceof SpinnerListModel) return new ListEditor(this);
protected JComponent createEditor(SpinnerModel model) { if (model instanceof SpinnerDateModel) return new DateEditor(this); else if (model instanceof SpinnerNumberModel) return new NumberEditor(this); else return new DefaultEditor(this); }
if (this.editor instanceof DefaultEditor) ((DefaultEditor) editor).dismiss(this); else if (this.editor instanceof ChangeListener) removeChangeListener((ChangeListener) this.editor); if (editor instanceof ChangeListener) addChangeListener((ChangeListener) editor);
JComponent oldEditor = this.editor; if (oldEditor instanceof DefaultEditor) ((DefaultEditor) oldEditor).dismiss(this); else if (oldEditor instanceof ChangeListener) removeChangeListener((ChangeListener) oldEditor);
public void setEditor(JComponent editor) { if (editor == null) throw new IllegalArgumentException("editor may not be null"); if (this.editor instanceof DefaultEditor) ((DefaultEditor) editor).dismiss(this); else if (this.editor instanceof ChangeListener) removeChangeListener((ChangeListener) ...
firePropertyChange("editor", oldEditor, editor);
public void setEditor(JComponent editor) { if (editor == null) throw new IllegalArgumentException("editor may not be null"); if (this.editor instanceof DefaultEditor) ((DefaultEditor) editor).dismiss(this); else if (this.editor instanceof ChangeListener) removeChangeListener((ChangeListener) ...
if (editor == null)
public void setModel(SpinnerModel newModel) { if (newModel == null) throw new IllegalArgumentException(); if (model == newModel) return; SpinnerModel oldModel = model; model = newModel; firePropertyChange("model", oldModel, newModel); if (editor == null) setEditor(createEditor(mo...
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) {
public synchronized void draw(Shape shape, Shape clip, AffineTransform tx, Color color, int mode) {
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { vgaIO.setGRAF(0, convertColor(color)); vgaIO.setGRAF(3, (mode == PAINT_MODE) ? LOGOP_NONE : LOGOP_XOR); draw(shape, tx, 0, mode); }
draw(shape, tx, 0, mode);
draw(shape, clip, tx, 0, mode);
public synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { vgaIO.setGRAF(0, convertColor(color)); vgaIO.setGRAF(3, (mode == PAINT_MODE) ? LOGOP_NONE : LOGOP_XOR); draw(shape, tx, 0, mode); }
try { if (parent != null) checkExpandParents(parent); } catch (ExpandVetoException e) { return; }
protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); try { if (parent != null) checkExpandParents(parent); } catch (ExpandVetoException e) { // Expansion vetoed. return; } doExpandParents(path, st...
if (treeModelListener == null) treeModelListener = createTreeModelListener(); model.addTreeModelListener(treeModelListener);
public void setModel(TreeModel model) { if (treeModel == model) return; TreeModel oldValue = treeModel; treeModel = model; firePropertyChange(TREE_MODEL_PROPERTY, oldValue, model); // add treeModelListener to the new model if (treeModelListener == null) treeModelListener = createTreeModel...
return maxSize;
return new Dimension(Short.MAX_VALUE, Short.MAX_VALUE);
public Dimension getMaximumSize(JComponent c) { return maxSize; }
return minSize;
return new Dimension(0, 0);
public Dimension getMinimumSize(JComponent c) { return minSize; }
Dimension pref = verticalPrefSize;
Dimension pref = new Dimension(2, 0);
public Dimension getPreferredSize(JComponent c) { Dimension pref = verticalPrefSize; if (c instanceof JSeparator) { JSeparator s = (JSeparator) c; if (s.getOrientation() == JSeparator.HORIZONTAL) pref = horizontalPrefSize; } return pref; }
pref = horizontalPrefSize;
pref = new Dimension(0, 2);
public Dimension getPreferredSize(JComponent c) { Dimension pref = verticalPrefSize; if (c instanceof JSeparator) { JSeparator s = (JSeparator) c; if (s.getOrientation() == JSeparator.HORIZONTAL) pref = horizontalPrefSize; } return pref; }
try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { System.out.println("Information Message: Properties file is being " + "created for first time use: File name " + getConfigurationRes...
if (configurationResource == null || configurationResource == "") { configurationResource = "TN5250JDefaults.props"; usingDefaults = true;
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
catch (SecurityException se) { System.out.println(se.getMessage());
else { try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { System.out.println("Information Message: Properties file is being " + "created for first time use: File name " + getConfigura...
private void loadConfigurationResource() { sesProps = new Properties(); try { FileInputStream in = new FileInputStream(settingsDirectory() + getConfigurationResource()); sesProps.load(in); if (sesProps.size() == 0) loadDefaults(); } catch (IOException ioe) { ...
String moreIndent = indent + sPrettyXDFOutputIndentation;
String moreIndent = indent + Specification.getInstance().getPrettyXDFOutputIndentation();
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
if (sPrettyXDFOutput) {
if (Specification.getInstance().isPrettyXDFOutput()) {
protected void specificIOStyleToXDF( OutputStream outputstream,String indent) { //open the code writeOut(outputstream, "<" + classXDFNodeName); writeOut(outputstream, " count=\"" + getCount() + "\""); writeOut(outputstream, ">"); //write out nodes in formatCommandList synchronized (formatComm...
splash.setVisible(false);
private String getConnectSession () { Connect sc = new Connect(frame1,LangTool.getString("ss.title"),sessions); // load the new session information from the session property file loadSessions(); return sc.getConnectKey(); }
m.splash.setVisible(false);
static public void main(String[] args) { if (isSpecified("-MDI",args)) { useMDIFrames = true; } if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap de...
splash.setVisible(false);
synchronized void newSession(String sel,String[] args) { Properties sesProps = new Properties(); String propFileName = null; String session = args[0]; // Start loading properties sesProps.put(SESSION_HOST,session); if (isSpecified("-e",args)) sesProps.put(SESSION_TN_ENHANCED,"1"...
throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE);
throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE);
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) _NamingContextImplBase.methods.get(method); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue())...
public synchronized void registerFileSystem(FileSystem fs) { filesystems.put(fs.getDevice(), fs);
public void registerFileSystem(FileSystem fs) { final Device device = fs.getDevice(); synchronized (this) { filesystems.put(device, fs); }
public synchronized void registerFileSystem(FileSystem fs) { filesystems.put(fs.getDevice(), fs); }
return "JMenuBar";
StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",margin="); if (getMargin() != null) sb.append(getMargin()); sb.append(",paintBorder=").append(isBorderPainted()); return sb.toString();
protected String paramString() { return "JMenuBar"; }
if (b != old) { firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, old, b);
firePropertyChange("borderPainted", old, b);
public void setBorderPainted(boolean b) { boolean old = borderPainted; borderPainted = b; if (b != old) { firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); } }
if (m.equals(this.margin))
if (m != margin)
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin);
Insets oldMargin = margin; margin = m; firePropertyChange("margin", oldMargin, margin);
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
this.margin = m;
public void setMargin(Insets m) { if (m.equals(this.margin)) { Insets oldMargin = this.margin; this.margin = m; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, margin); } this.margin = m; }
selectionModel = model;
public void setSelectionModel(SingleSelectionModel model) { selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel);
firePropertyChange("model", oldModel, selectionModel);
public void setSelectionModel(SingleSelectionModel model) { selectionModel = model; if (selectionModel != model) { SingleSelectionModel oldModel = selectionModel; selectionModel = model; firePropertyChange(MODEL_CHANGED_PROPERTY, oldModel, this.selectionModel); } }
ArcIterator(Arc2D a, AffineTransform xform)
public ArcIterator(Arc2D a, AffineTransform xform)
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180);
double start = a.getAngleStart() * (Math.PI / 180); double extent = a.getAngleExtent() * (Math.PI / 180); if (extent < 0) { extent = -extent; start = 2 * Math.PI - extent + start; } this.start = start; this.extent = extent;
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
double e = extent < 0 ? -extent : extent;
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
else if (e == 0)
else if (extent == 0)
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
else if (e <= Math.PI / 2.0)
else if (extent <= Math.PI / 2.0)
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
else if (e <= Math.PI)
else if (extent <= Math.PI)
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
else if (e <= 3.0 * (Math.PI / 2.0))
else if (extent <= 3.0 * (Math.PI / 2.0))
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; i...
if (w <= 0 || h <= 0)
double extent = getAngleExtent(); if (w <= 0 || h <= 0 || extent == 0) return false; double mx = getX() + w / 2; double my = getY() + h / 2; double dx = (x - mx) * 2 / w; double dy = (y - my) * 2 / h; if ((dx * dx + dy * dy) >= 1.0) return false; double angle = Math.toDegrees(Math.atan2(-dy, dx)); if (getArcType() !=...
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); if (w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
throw new Error("not implemented");
return sgn < 0; }
public boolean contains(double x, double y) { double w = getWidth(); double h = getHeight(); if (w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
double end = start + getAngleExtent();
double extent = getAngleExtent(); double end = start + extent; if (extent >= 360 || extent <= -360) return true; if (extent < 0) { end = start; start += extent; }
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
if (start < 0)
while (start < 0)
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
if (end < 0)
while (end < start)
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
if (a < 0)
while (a < start)
public boolean containsAngle(double a) { double start = getAngleStart(); double end = start + getAngleExtent(); start %= 360; if (start < 0) start += 360; end %= 360; if (end < 0) end += 360; a %= 360; if (a < 0) a += 360; return a >= start && a <= end; }
double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0)
double extent = getAngleExtent(); if (extent == 0) return false; if (contains(x, y) || contains(x, y + h) || contains(x + w, y) || contains(x + w, y + h)) return true; Rectangle2D rect = new Rectangle2D.Double(x, y, w, h); double a = getWidth() / 2.0; double b = getHeight() / 2.0; double mx = getX() + a; double my ...
public boolean intersects(double x, double y, double w, double h) { double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
throw new Error("not implemented");
public boolean intersects(double x, double y, double w, double h) { double mw = getWidth(); double mh = getHeight(); if (mw <= 0 || mh <= 0 || w <= 0 || h <= 0) return false; // XXX Finish implementing. throw new Error("not implemented"); }
throw new Error("not implemented");
if ((p2.getX() - p1.getX()) * (p3.getY() - p1.getY()) - (p3.getX() - p1.getX()) * (p2.getY() - p1.getY()) > 0) { Point2D p = p3; p3 = p1; p1 = p; } double dx1 = (p1.getX() - p2.getX()) / p1.distance(p2); double dy1 = (p1.getY() - p2.getY()) / p1.distance(p2); double dx2 = (p2.getX() - p3.getX()) / p3.distance(p2); do...
public void setArcByTangent(Point2D p1, Point2D p2, Point2D p3, double r) { // XXX Implement. throw new Error("not implemented"); }
(BranchElement) createBranchElement(null, SimpleAttributeSet.EMPTY);
(BranchElement) createBranchElement(null, null);
protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement root = (BranchElement) createBranchElement(null, SimpleAttributeSet.EMPTY); Element[] array = new Element[1]; array[0] = createLeafElement(root, SimpleAttributeSet.EMPTY, 0, 1); root.replace(0, 0, array); return ro...
array[0] = createLeafElement(root, SimpleAttributeSet.EMPTY, 0, 1);
array[0] = createLeafElement(root, null, 0, 1);
protected AbstractDocument.AbstractElement createDefaultRoot() { BranchElement root = (BranchElement) createBranchElement(null, SimpleAttributeSet.EMPTY); Element[] array = new Element[1]; array[0] = createLeafElement(root, SimpleAttributeSet.EMPTY, 0, 1); root.replace(0, 0, array); return ro...
int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element firstElement = rootElement.getElement(elementIndex); oldElementIndex = elementIndex; if (offset > 0 && firstElement.getStartOffset() != offset) {
int length = event.getLength();
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
String s = getText(offset - 1, 1); if (s.equals("\n") )
text = getText(offset, length); } catch (BadLocationException ex)
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
int newEl2EndOffset = end; boolean replaceNext = false; if (rootElement.getElementCount() > elementIndex + 1) { replaceNext = true; newEl2EndOffset = rootElement.getElement(elementIndex + 1).getEndOffset(); } Element newEl1 = createLeafElement(rootElement, firstElement.getAttributes(), firstElement.getStartOffset(), of...
AssertionError err = new AssertionError(); err.initCause(ex); throw err;
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
catch (BadLocationException ble)
catch (BadLocationException ex)
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
AssertionError ae = new AssertionError(); ae.initCause(ble); throw ae;
AssertionError err = new AssertionError(); err.initCause(ex); throw err; } boolean lastCharIsLineBreak = text.charAt(text.length() - 1) == '\n'; int lineIndex = -1; int lineStart = -1; int lineEnd = -1; Element[] removed = null; BranchElement root = (BranchElement) rootElement; boolean updateStructure = true; if (prev...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
Element[] removed = new Element[1]; Element[] added;
if (updateStructure) { ArrayList lines = new ArrayList(); int len = lineEnd - lineStart;
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
String str = content.getString(offset, eventLength); ArrayList elts = new ArrayList();
text = getText(lineStart, len); } catch (BadLocationException ex) { AssertionError err = new AssertionError(); err.initCause(ex); throw err; } int prevLineBreak = 0; int lineBreak = text.indexOf('\n'); do { lineBreak++; lines.add(createLeafElement(root, null, lineStart + prevLineBreak, lineStart + lineBreak)); prevLine...
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
int j = firstElement.getStartOffset(); int i = str.indexOf('\n', 0); int contentLength = content.length(); while (i != -1 && i <= eventLength) { elts.add(createLeafElement(rootElement, SimpleAttributeSet.EMPTY, j, offset + i + 1)); j = offset + i + 1; if (j >= contentLength) break; i = str.indexOf('\n', i + 1); } ...
Element[] added = (Element[]) lines.toArray(new Element[lines.size()]); event.addEdit(new ElementEdit(root, lineIndex, removed, added)); root.replace(lineIndex, removed.length, added);
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
catch (BadLocationException e) { AssertionError ae = new AssertionError(); ae.initCause(e); throw ae; }
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int eventLength = event.getLength(); int end = offset + event.getLength(); int oldElementIndex, elementIndex = rootElement.getElementIndex(offset); Element fi...
rootElement.replace(i1, i2 - i1 + 1, added);
((BranchElement) rootElement).replace(i1, i2 - i1 + 1, added);
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); // added and removed are Element arrays used to add an ElementEdit // to the DocumentEvent if there were entire lines added or removed // from the Document Element[] added = new Element[1]; Element[] removed; in...
ProtectionDomain protDomain) { ByteBuffer buffer = ByteBuffer.wrap(data, offset, length); VmType<?> vmType = LoadCompileService.defineClass(name, buffer, protDomain, loader.getVmClassLoader()); return vmType.asClass();
ProtectionDomain protDomain) { return loader.defineClass(name, data, offset, length, protDomain);
static Class defineClass(ClassLoader loader, String name, byte[] data, int offset, int length, ProtectionDomain protDomain) { ByteBuffer buffer = ByteBuffer.wrap(data, offset, length); VmType<?> vmType = LoadCompileService.defineClass(name, buffer, prot...
this.stackOffset = -1;
public IRBasicBlock( int startPC, int endPC, boolean startOfExceptionHandler) { super(startPC, endPC, startOfExceptionHandler); this.predecessors = new BootableArrayList(); this.successors = new BootableArrayList(); this.phiReferences = new BootableArrayList(); }
attribOrder.add(0,"align"); attribOrder.add(0,"axisUnits"); attribOrder.add(0,"axisDatatype");
private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOrder.a...
attribHash.put("aligh", new XMLAttribute(null, Constants.STRING_TYPE));
attribHash.put("align", new XMLAttribute(null, Constants.STRING_TYPE));
private void init() { classXDFNodeName = "axis"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0,"valueList"); attribOrder.add(0,"axisIdRef"); attribOrder.add(0,"axisId"); attribOrder.add(0,"align"); //not sure what it is??? attribOrder.a...
throw new BAD_OPERATION("Invalid enumeration code " + code);
BAD_OPERATION bad = new BAD_OPERATION("Invalid policy code " + code); bad.minor = Minor.PolicyType; throw bad;
public static ImplicitActivationPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { throw new BAD_OPERATION("Invalid enumeration code " + code); } }
if (axis instanceof FieldAxis) { setFieldAxis((FieldAxis) axis); } else if (canAddAxisObjToArray((Axis) axis)) { getAxes().add((Axis) axis); updateChildLocators((Axis) axis, "add"); updateNotesLocationOrder();
if (canAddAxisObjToArray(axis)) { if (axis instanceof FieldAxis) { setFieldAxis((FieldAxis) axis); } else { getAxes().add((Axis) axis); updateChildLocators((Axis) axis, "add"); updateNotesLocationOrder(); getXMLDataIOStyle().getIOAxesOrder().add(axis); } getXMLDataIOStyle().getIOAxesOrder().add(axis);
public AxisInterface addAxis(AxisInterface axis) { if (axis instanceof FieldAxis) { setFieldAxis((FieldAxis) axis); } else if (canAddAxisObjToArray((Axis) axis)) { //check if the axis can be added// getDataCube().incrementDimension((Axis) axis); //increment the DataCube ...
List axisList = getAxes(); if (axisList.size() == 0 || !this.hasFieldAxis() ){ return null; } Object axisObj = axisList.get(0); if (axisObj instanceof FieldAxis) return (FieldAxis) axisObj; else return null;
FieldAxis fieldAxis = null; if (hasFieldAxis) { List axisList = getAxes(); Iterator iter = axisList.iterator(); while (iter.hasNext()) { Object axis = (Object) iter.next(); if (axis instanceof FieldAxis) { return (FieldAxis) axis; } } } return fieldAxis;
public FieldAxis getFieldAxis() { List axisList = getAxes(); if (axisList.size() == 0 || !this.hasFieldAxis() ){ //empty axisList or lacks field Axis return null; } Object axisObj = axisList.get(0); if (axisObj instanceof FieldAxis) return (FieldAxis) axisObj; ...
attribHash.put(AXISLIST_XML_ATTRIBUTE_NAME, new XMLAttribute(Collections.synchronizedList(new ArrayList()), Constants.LIST_TYPE));
protected void init() { super.init(); classXDFNodeName = "array"; // order matters! these are in *reverse* order of their // occurence in the XDF DTD attribOrder.add(0, NOTES_XML_ATTRIBUTE_NAME); attribOrder.add(0, DATACUBE_XML_ATTRIBUTE_NAME); attribOrder.add(0, XML...
boolean isRemoveSuccess = removeFromList(axisObj, getAxes(), AXISLIST_XML_ATTRIBUTE_NAME); if (isRemoveSuccess) { getDataCube().reset(); updateChildLocators(axisObj, "remove");
boolean isRemoveSuccess = false; if (axisObj instanceof FieldAxis) { isRemoveSuccess = setFieldAxis(null); } else { isRemoveSuccess = removeFromList(axisObj, getAxes(), AXISLIST_XML_ATTRIBUTE_NAME); if (isRemoveSuccess) { getDataCube().reset(); updateChildLocators(axisObj, "remove"); getXMLDataIOStyle().setIOAxesOrder(...
public boolean removeAxis (AxisInterface axisObj) { boolean isRemoveSuccess = removeFromList(axisObj, getAxes(), AXISLIST_XML_ATTRIBUTE_NAME); if (isRemoveSuccess) { //remove successful getDataCube().reset(); // reset data within the datacube updateChildLocators(axisObj, "remove");...
addAxis((AxisInterface) iter.next());
{ AxisInterface axis = (AxisInterface) iter.next(); addAxis(axis); }
public void setAxisList (List axisList) { // remove the existing axes List oldAxisList = getAxes(); int lastindex = oldAxisList.size()-1; for (int i = lastindex; i >= 0; i--) { removeAxis(i); } //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axis...
if (!canAddAxisObjToArray(fieldAxis))
if (fieldAxis != null && !canAddAxisObjToArray(fieldAxis))
public boolean setFieldAxis (FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return false; hasFieldAxis = false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { ...
hasFieldAxis = false;
public boolean setFieldAxis (FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return false; hasFieldAxis = false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { ...
if (getFieldAxis() != null) { List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { axisList.add(0, fieldAxis); hasFieldAxis = true; } } else { if (fieldAxis != null) { getAxes().add(0, fieldAxis); hasFieldAxis = true; getDataCube().reset(); }
if (hasFieldAxis) { FieldAxis removeAxis = null; if (fieldAxis != null) { removeAxis = (FieldAxis) getAxes().get(0); getAxes().set(0, fieldAxis); } else { removeAxis = (FieldAxis) getAxes().remove(0); hasFieldAxis = false; } int removeIndex = getXMLDataIOStyle().getIOAxesOrder().lastIndexOf(removeAxis); getXMLDataI...
public boolean setFieldAxis (FieldAxis fieldAxis) { if (!canAddAxisObjToArray(fieldAxis)) return false; hasFieldAxis = false; if (getFieldAxis() != null) { // replace or removal List axisList = getAxes(); axisList.remove(0); if (fieldAxis != null) { ...
public String[] getAxisTags() { List axisList = getParentArray().getAxes(); int stop = axisList.size(); String[] tags = new String[stop]; String tag; String axisId; String tempTag;
public String[] getAxisTags () {
public String[] getAxisTags() { List axisList = getParentArray().getAxes(); int stop = axisList.size(); String[] tags = new String[stop]; String tag; String axisId; String tempTag; int counter = stop; for (int i = 0; i < stop; i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); ...
int counter = stop; for (int i = 0; i < stop; i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); counter--; tag = "d" + counter; tempTag = (String) tagHash.get(axisId); if (tempTag!=null) tag = tempTag; tags[i] = tag; } return tags;
for (int i = 0; i < stop; i++) { tags[i] = "d" + i; } return tags;
public String[] getAxisTags() { List axisList = getParentArray().getAxes(); int stop = axisList.size(); String[] tags = new String[stop]; String tag; String axisId; String tempTag; int counter = stop; for (int i = 0; i < stop; i++) { axisId = ((AxisInterface)axisList.get(i)).getAxisId(); ...
protected String removeAxisTag(String axisId) { return (String) getTagHash().remove(axisId);
protected String removeAxisTag (String axisId) { String tagName = (String) tagHash.remove(axisId); if (tagName != null) axisIdHash.remove(tagName); needToCheckAxisOrder = true; return tagName;
protected String removeAxisTag(String axisId) { return (String) getTagHash().remove(axisId); }
tagHash.put(axisId, tag); }
if (tag != null && tag.length() > 1 && tag.startsWith("d") ) { tagHash.put(axisId, tag); axisIdHash.put(tag, axisId); needToCheckAxisOrder = true; } else { Log.errorln("setAxisTag() got mal-formed tag string:"+tag+", cannot set."); } }
public void setAxisTag(String tag, String axisId) { //insert in hash table, return tag value tagHash.put(axisId, tag); }
"ctrl shift PAGE_UP", "scrollRightExtendSelection",
"ctrl shift PAGE_UP", "scrollLeftExtendSelection",
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
"ctrl shift PAGE_DOWN", "scrollLeftExtendSelection",
"ctrl shift PAGE_DOWN", "scrollRightExtendSelection",
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
"PAGE_UP", "scrollUpChangeSelection"
"PAGE_UP", "scrollUpChangeSelection", "ctrl shift LEFT", "selectPreviousColumnExtendSelection", "shift KP_UP", "selectPreviousRowExtendSelection", "ctrl shift UP", "selectPreviousRowExtendSelection", "ctrl shift RIGHT", "selectNextColumnExtendSelection", "ctrl shift KP_RIGHT", "selectNextColumnExtendSelection", "ctrl...
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
public long getAtime() {
public synchronized long getAtime() {
public long getAtime() { return Ext2Utils.get32(data, 8); }
public long getBlocks() {
public synchronized long getBlocks() {
public long getBlocks() { return Ext2Utils.get32(data, 28); }
public long getCtime() {
public synchronized long getCtime() {
public long getCtime() { return Ext2Utils.get32(data, 12); }
public long getDirACL() {
public synchronized long getDirACL() {
public long getDirACL() { return Ext2Utils.get32(data, 108); }
public long getDtime() {
public synchronized long getDtime() {
public long getDtime() { return Ext2Utils.get32(data, 20); }
public long getFAddr() {
public synchronized long getFAddr() {
public long getFAddr() { return Ext2Utils.get32(data, 112); }
public long getFileACL() {
public synchronized long getFileACL() {
public long getFileACL() { return Ext2Utils.get32(data, 104); }
public long getFlags() {
public synchronized long getFlags() {
public long getFlags() { return Ext2Utils.get32(data, 32); }
public long getGeneration() {
public synchronized long getGeneration() {
public long getGeneration() { return Ext2Utils.get32(data, 100); }
public int getGid() {
public synchronized int getGid() {
public int getGid() { return Ext2Utils.get16(data, 24); }
public int getLinksCount() {
public synchronized int getLinksCount() {
public int getLinksCount() { return Ext2Utils.get16(data, 26); }
public int getMode() {
public synchronized int getMode() {
public int getMode() { int iMode=Ext2Utils.get16(data, 0); //log.debug("INode.getIMode(): "+Ext2Print.hexFormat(iMode)); return iMode; }
public long getMtime() {
public synchronized long getMtime() {
public long getMtime() { return Ext2Utils.get32(data, 16); }
public long getOSD1() {
public synchronized long getOSD1() {
public long getOSD1() { return Ext2Utils.get32(data, 36); }
public long getSize() {
public synchronized long getSize() {
public long getSize() { return Ext2Utils.get32(data, 4); }
public int getUid() {
public synchronized int getUid() {
public int getUid() { return Ext2Utils.get16(data, 2); }
public void setAtime(long atime) {
public synchronized void setAtime(long atime) {
public void setAtime(long atime) { Ext2Utils.set32(data, 8, atime); setDirty(true); }
public void setBlocks(long count) {
public synchronized void setBlocks(long count) {
public void setBlocks(long count) { log.debug("setBlocks("+count+")"); Ext2Utils.set32(data, 28, count); setDirty(true); }
public void setCtime(long ctime) {
public synchronized void setCtime(long ctime) {
public void setCtime(long ctime) { Ext2Utils.set32(data, 12, ctime); setDirty(true); }
public void setDirACL(long acl) {
public synchronized void setDirACL(long acl) {
public void setDirACL(long acl) { Ext2Utils.set32(data, 108, acl); setDirty(true); }
public void setDtime(long dtime) {
public synchronized void setDtime(long dtime) {
public void setDtime(long dtime) { Ext2Utils.set32(data, 20, dtime); setDirty(true); }
public void setFAddr(long faddr) {
public synchronized void setFAddr(long faddr) {
public void setFAddr(long faddr) { Ext2Utils.set32(data, 112, faddr); setDirty(true); }
public void setFileACL(long acl) {
public synchronized void setFileACL(long acl) {
public void setFileACL(long acl) { Ext2Utils.set32(data, 104, acl); setDirty(true); }